us.off-the-clock.polls.pollView

off-the-clock.us

Documentation

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.

main object

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

cid string cid Required

A content identifier (CID) referencing immutable data.

closesAt string datetime Optional

An RFC 3339 formatted timestamp.

indexedAt string datetime Required

An RFC 3339 formatted timestamp.

opensAt string datetime Optional

An RFC 3339 formatted timestamp.

prompt string Required

No description available.

record unknown Required

The poll as written.

replyCount integer Required

No description available.

minimum: 0
results array of ref#result Required

No description available.

state string Required

No description available.

maxLength: 32 bytes
Known values: pending, open, closed
uri string at-uri Required

An AT Protocol URI (e.g., at://did:plc:xyz/app.bsky.feed.post/abc).

viewerVote ref #viewerVote Optional

No description available.

voters integer Required

Members with a counting vote, abstentions included.

minimum: 0
View raw schema
{
  "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 object

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 string Optional

No description available.

maxLength: 1000 bytes
key string Required

No description available.

maxLength: 64 bytes
votes integer Required

No description available.

minimum: 0
View raw schema
{
  "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 object

No description available.

Properties

uri string at-uri Required

An AT Protocol URI (e.g., at://did:plc:xyz/app.bsky.feed.post/abc).

View raw schema
{
  "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"
}

Lexicon Garden

@