us.off-the-clock.polls.vote

off-the-clock.us

Documentation

A member's answer to a us.off-the-clock.polls.poll in the same space. The member's newest vote counts; one with no entries is an abstention. Votes are records in the space, so every member who reads it can see who voted and how. A client may add createdAt, the time it cast the vote; the AppView trusts it up to five minutes before it indexes the vote and never after.

main record

A member's answer to a us.off-the-clock.polls.poll in the same space. The member's newest vote counts; one with no entries is an abstention. Votes are records in the space, so every member who reads it can see who voted and how. A client may add createdAt, the time it cast the vote; the AppView trusts it up to five minutes before it indexes the vote and never after.

Record Key tid Timestamp-based ID

Properties

votes array of ref #entry Required

The chosen options by key, at most one entry per key; empty to abstain.

View raw schema
{
  "description": "A member's answer to a us.off-the-clock.polls.poll in the same space. The member's newest vote counts; one with no entries is an abstention. Votes are records in the space, so every member who reads it can see who voted and how. A client may add createdAt, the time it cast the vote; the AppView trusts it up to five minutes before it indexes the vote and never after.",
  "key": "tid",
  "record": {
    "properties": {
      "poll": {
        "description": "The poll, with the CID of the version the voter saw.",
        "ref": "com.atproto.repo.strongRef",
        "type": "ref"
      },
      "votes": {
        "description": "The chosen options by key, at most one entry per key; empty to abstain.",
        "items": {
          "ref": "#entry",
          "type": "ref"
        },
        "type": "array"
      }
    },
    "required": [
      "poll",
      "votes"
    ],
    "type": "object"
  },
  "type": "record"
}
entry object

No description available.

Properties

input string Optional

The voter's typed answer, for an option that allows input.

maxLength: 1000 bytesminLength: 1 bytesmaxGraphemes: 100 graphemesminGraphemes: 1 graphemes
key string Required

No description available.

maxLength: 64 bytesminLength: 1 bytes
View raw schema
{
  "properties": {
    "input": {
      "description": "The voter's typed answer, for an option that allows input.",
      "maxGraphemes": 100,
      "maxLength": 1000,
      "minGraphemes": 1,
      "minLength": 1,
      "type": "string"
    },
    "key": {
      "maxLength": 64,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "key"
  ],
  "type": "object"
}

Lexicon Garden

@