social.pmsky.vote

pmsky.social

Documentation

main record

No description available.

Record Key tid Timestamp-based ID

Properties

aid string Optional

The persistent, anonymous identifier for the user casting the vote.

cid string cid Optional

Optionally, CID specifying the specific version of 'uri' resource this vote applies to.

cts string datetime Required

Timestamp when this vote was created.

reasons array of string Optional

An optional array of predefined reasons justifying the vote.

sig bytes Optional

Signature of dag-cbor encoded vote.

src string did Required

the account creating the vote, not necessarily the same as the user who voted

uri string uri Required

AT URI of the record, repository (account), or other resource that this vote applies to.

val integer Required

The value of the vote. The exact meaning depends on what is being voted on, but generally '+1' means 'approval', -1 means 'disapproval', and 0 indicates 'neutrality'.

View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "src",
      "uri",
      "val",
      "cts"
    ],
    "properties": {
      "aid": {
        "type": "string",
        "description": "The persistent, anonymous identifier for the user casting the vote."
      },
      "cid": {
        "type": "string",
        "format": "cid",
        "description": "Optionally, CID specifying the specific version of 'uri' resource this vote applies to."
      },
      "cts": {
        "type": "string",
        "format": "datetime",
        "description": "Timestamp when this vote was created."
      },
      "sig": {
        "type": "bytes",
        "description": "Signature of dag-cbor encoded vote."
      },
      "src": {
        "type": "string",
        "format": "did",
        "description": "the account creating the vote, not necessarily the same as the user who voted"
      },
      "uri": {
        "type": "string",
        "format": "uri",
        "description": "AT URI of the record, repository (account), or other resource that this vote applies to."
      },
      "val": {
        "type": "integer",
        "description": "The value of the vote. The exact meaning depends on what is being voted on, but generally '+1' means 'approval', -1 means 'disapproval', and 0 indicates 'neutrality'."
      },
      "reasons": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "An optional array of predefined reasons justifying the vote."
      }
    },
    "description": "A vote record, representing a user's approval or disapproval of the referenced resource. The resource my be a proposal, a post, a web page, or anything that can be agreed or disagreed with."
  }
}

Lexicon Garden

@