app.protoimsg.chat.vote

lexicon.store View official

Documentation

A vote on a poll. Lives in the voter's repo.

main record

A vote on a poll. Lives in the voter's repo.

Record Key tid Timestamp-based ID

Properties

createdAt string datetime Required

Timestamp of vote.

poll string at-uri Required

AT-URI of the poll being voted on.

selectedOptions array of integer Required

Indices of selected options (0-based).

maxLength: 10 items
View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "poll",
      "selectedOptions",
      "createdAt"
    ],
    "properties": {
      "poll": {
        "type": "string",
        "format": "at-uri",
        "description": "AT-URI of the poll being voted on."
      },
      "createdAt": {
        "type": "string",
        "format": "datetime",
        "description": "Timestamp of vote."
      },
      "selectedOptions": {
        "type": "array",
        "items": {
          "type": "integer",
          "minimum": 0
        },
        "maxLength": 10,
        "description": "Indices of selected options (0-based)."
      }
    }
  },
  "description": "A vote on a poll. Lives in the voter's repo."
}

Lexicon Garden

@