···2121import type * as PubLeafletBlocksHorizontalRule from '../blocks/horizontalRule'
2222import type * as PubLeafletBlocksBskyPost from '../blocks/bskyPost'
2323import type * as PubLeafletBlocksPage from '../blocks/page'
2424+import type * as PubLeafletBlocksPoll from '../blocks/poll'
24252526const is$typed = _is$typed,
2627 validate = _validate
···5758 | $Typed<PubLeafletBlocksHorizontalRule.Main>
5859 | $Typed<PubLeafletBlocksBskyPost.Main>
5960 | $Typed<PubLeafletBlocksPage.Main>
6161+ | $Typed<PubLeafletBlocksPoll.Main>
6062 | { $type: string }
6163 alignment?:
6264 | 'lex:pub.leaflet.pages.linearDocument#textAlignLeft'
+48
lexicons/api/types/pub/leaflet/poll/definition.ts
···11+/**
22+ * GENERATED CODE - DO NOT MODIFY
33+ */
44+import { type ValidationResult, BlobRef } from '@atproto/lexicon'
55+import { CID } from 'multiformats/cid'
66+import { validate as _validate } from '../../../../lexicons'
77+import {
88+ type $Typed,
99+ is$typed as _is$typed,
1010+ type OmitKey,
1111+} from '../../../../util'
1212+1313+const is$typed = _is$typed,
1414+ validate = _validate
1515+const id = 'pub.leaflet.poll.definition'
1616+1717+export interface Record {
1818+ $type: 'pub.leaflet.poll.definition'
1919+ name: string
2020+ options: Option[]
2121+ endDate?: string
2222+ [k: string]: unknown
2323+}
2424+2525+const hashRecord = 'main'
2626+2727+export function isRecord<V>(v: V) {
2828+ return is$typed(v, id, hashRecord)
2929+}
3030+3131+export function validateRecord<V>(v: V) {
3232+ return validate<Record & V>(v, id, hashRecord, true)
3333+}
3434+3535+export interface Option {
3636+ $type?: 'pub.leaflet.poll.definition#option'
3737+ text?: string
3838+}
3939+4040+const hashOption = 'option'
4141+4242+export function isOption<V>(v: V) {
4343+ return is$typed(v, id, hashOption)
4444+}
4545+4646+export function validateOption<V>(v: V) {
4747+ return validate<Option & V>(v, id, hashOption)
4848+}
+33
lexicons/api/types/pub/leaflet/poll/vote.ts
···11+/**
22+ * GENERATED CODE - DO NOT MODIFY
33+ */
44+import { type ValidationResult, BlobRef } from '@atproto/lexicon'
55+import { CID } from 'multiformats/cid'
66+import { validate as _validate } from '../../../../lexicons'
77+import {
88+ type $Typed,
99+ is$typed as _is$typed,
1010+ type OmitKey,
1111+} from '../../../../util'
1212+import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
1313+1414+const is$typed = _is$typed,
1515+ validate = _validate
1616+const id = 'pub.leaflet.poll.vote'
1717+1818+export interface Record {
1919+ $type: 'pub.leaflet.poll.vote'
2020+ poll: ComAtprotoRepoStrongRef.Main
2121+ option: string
2222+ [k: string]: unknown
2323+}
2424+2525+const hashRecord = 'main'
2626+2727+export function isRecord<V>(v: V) {
2828+ return is$typed(v, id, hashRecord)
2929+}
3030+3131+export function validateRecord<V>(v: V) {
3232+ return validate<Record & V>(v, id, hashRecord, true)
3333+}