us.off-the-clock.polls.pollView

off-the-clock.us

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A us.off-the-clock.polls.poll with its results: a row per option key, then a row per distinct typed answer under an option that takes input. There is no anonymous voting: the rows name their voters.",
      "properties": {
        "author": {
          "ref": "app.bsky.actor.defs#profileViewBasic",
          "type": "ref"
        },
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "closesAt": {
          "format": "datetime",
          "type": "string"
        },
        "indexedAt": {
          "format": "datetime",
          "type": "string"
        },
        "labels": {
          "items": {
            "ref": "com.atproto.label.defs#label",
            "type": "ref"
          },
          "type": "array"
        },
        "opensAt": {
          "format": "datetime",
          "type": "string"
        },
        "prompt": {
          "type": "string"
        },
        "record": {
          "description": "The poll as written.",
          "type": "unknown"
        },
        "replyCount": {
          "minimum": 0,
          "type": "integer"
        },
        "results": {
          "items": {
            "ref": "#result",
            "type": "ref"
          },
          "type": "array"
        },
        "state": {
          "knownValues": [
            "pending",
            "open",
            "closed"
          ],
          "maxLength": 32,
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        },
        "viewerVote": {
          "ref": "#viewerVote",
          "type": "ref"
        },
        "voters": {
          "description": "Members with a counting vote, abstentions included.",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "uri",
        "cid",
        "author",
        "record",
        "prompt",
        "results",
        "voters",
        "state",
        "replyCount",
        "indexedAt"
      ],
      "type": "object"
    },
    "result": {
      "description": "The votes for one key with no typed answer, or for one typed answer (compared trimmed and without case, shown as first typed).",
      "properties": {
        "input": {
          "maxLength": 1000,
          "type": "string"
        },
        "key": {
          "maxLength": 64,
          "type": "string"
        },
        "recentVoters": {
          "description": "Up to three of the row's voters, newest first; every one with getPoll's allVoters.",
          "items": {
            "ref": "app.bsky.actor.defs#profileViewBasic",
            "type": "ref"
          },
          "type": "array"
        },
        "votes": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "key",
        "votes",
        "recentVoters"
      ],
      "type": "object"
    },
    "viewerVote": {
      "properties": {
        "uri": {
          "format": "at-uri",
          "type": "string"
        },
        "votes": {
          "items": {
            "ref": "us.off-the-clock.polls.vote#entry",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "uri",
        "votes"
      ],
      "type": "object"
    }
  },
  "id": "us.off-the-clock.polls.pollView",
  "lexicon": 1
}

Validate Record

Validate a record against us.off-the-clock.polls.pollView

Validation Options
Automatically resolve and include external schemas for full validation
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:tevv7zpavtjtsvqrrwwipobt
CID
bafyreicuvkr4yp35wuos522dj4ffrlkm24dkclx6d66onqw2ydx2bq4wvy
Indexed At
2026-10-26 23:37 UTC
AT-URI
at://did:plc:tevv7zpavtjtsvqrrwwipobt/com.atproto.lexicon.schema/us.off-the-clock.polls.pollView

Referenced Schemas (3)

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • 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…

  • A question a member asks a content space, with two to ten options that members answer with us.off-the-clock.polls.vote records. Each option is named by a key that stays the same when the poll is edited, so votes follow …

  • One poll of a content space the viewer reads, with its results counted now: each member's newest vote cast between opensAt and closesAt by a member the viewer may see.

  • club.fellas.v0.poll.definition recordnot from the namespace authority

    A poll posted within the fella space.

  • A poll record. Lives in the author's own repo, either as a public record (attached to a post via embed.external and indexed from the firehose) or inside an ATProto Space (permissioned data), where the AppView is told ab…

Lexicon Garden

@