# us.off-the-clock.polls.vote

> Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.polls.vote)
- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.polls.vote/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.polls.vote/examples)

## Definitions

### `us.off-the-clock.polls.vote#entry`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `input` | `string` | No | The voter's typed answer, for an option that allows input. |
| `key` | `string` | Yes |  |

### `us.off-the-clock.polls.vote`

**Type**: `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.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `poll` | `ref` → `com.atproto.repo.strongRef` | Yes | The poll, with the CID of the version the voter saw. |
| `votes` | `array` | Yes | The chosen options by key, at most one entry per key; empty to abstain. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "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"
    },
    "main": {
      "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"
    }
  },
  "id": "us.off-the-clock.polls.vote",
  "lexicon": 1
}
```
