/** * GENERATED CODE - DO NOT MODIFY */ import { type LexiconDoc, Lexicons, ValidationError, type ValidationResult, } from 'npm:@atproto/lexicon' import { type $Typed, is$typed, maybe$typed } from './util.ts' export const schemaDict = { AppBskyActorDefs: { lexicon: 1, id: 'app.bsky.actor.defs', defs: { profileViewBasic: { type: 'object', required: ['did', 'handle'], properties: { did: { type: 'string', format: 'did', }, handle: { type: 'string', format: 'handle', }, displayName: { type: 'string', maxGraphemes: 64, maxLength: 640, }, avatar: { type: 'string', format: 'uri', }, associated: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileAssociated', }, viewer: { type: 'ref', ref: 'lex:app.bsky.actor.defs#viewerState', }, labels: { type: 'array', items: { type: 'ref', ref: 'lex:com.atproto.label.defs#label', }, }, createdAt: { type: 'string', format: 'datetime', }, verification: { type: 'ref', ref: 'lex:app.bsky.actor.defs#verificationState', }, status: { type: 'ref', ref: 'lex:app.bsky.actor.defs#statusView', }, }, }, profileView: { type: 'object', required: ['did', 'handle'], properties: { did: { type: 'string', format: 'did', }, handle: { type: 'string', format: 'handle', }, displayName: { type: 'string', maxGraphemes: 64, maxLength: 640, }, description: { type: 'string', maxGraphemes: 256, maxLength: 2560, }, avatar: { type: 'string', format: 'uri', }, associated: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileAssociated', }, indexedAt: { type: 'string', format: 'datetime', }, createdAt: { type: 'string', format: 'datetime', }, viewer: { type: 'ref', ref: 'lex:app.bsky.actor.defs#viewerState', }, labels: { type: 'array', items: { type: 'ref', ref: 'lex:com.atproto.label.defs#label', }, }, verification: { type: 'ref', ref: 'lex:app.bsky.actor.defs#verificationState', }, status: { type: 'ref', ref: 'lex:app.bsky.actor.defs#statusView', }, }, }, profileViewDetailed: { type: 'object', required: ['did', 'handle'], properties: { did: { type: 'string', format: 'did', }, handle: { type: 'string', format: 'handle', }, displayName: { type: 'string', maxGraphemes: 64, maxLength: 640, }, description: { type: 'string', maxGraphemes: 256, maxLength: 2560, }, avatar: { type: 'string', format: 'uri', }, banner: { type: 'string', format: 'uri', }, followersCount: { type: 'integer', }, followsCount: { type: 'integer', }, postsCount: { type: 'integer', }, associated: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileAssociated', }, joinedViaStarterPack: { type: 'ref', ref: 'lex:app.bsky.graph.defs#starterPackViewBasic', }, indexedAt: { type: 'string', format: 'datetime', }, createdAt: { type: 'string', format: 'datetime', }, viewer: { type: 'ref', ref: 'lex:app.bsky.actor.defs#viewerState', }, labels: { type: 'array', items: { type: 'ref', ref: 'lex:com.atproto.label.defs#label', }, }, pinnedPost: { type: 'ref', ref: 'lex:com.atproto.repo.strongRef', }, verification: { type: 'ref', ref: 'lex:app.bsky.actor.defs#verificationState', }, status: { type: 'ref', ref: 'lex:app.bsky.actor.defs#statusView', }, }, }, profileAssociated: { type: 'object', properties: { lists: { type: 'integer', }, feedgens: { type: 'integer', }, starterPacks: { type: 'integer', }, labeler: { type: 'boolean', }, chat: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileAssociatedChat', }, activitySubscription: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileAssociatedActivitySubscription', }, }, }, profileAssociatedChat: { type: 'object', required: ['allowIncoming'], properties: { allowIncoming: { type: 'string', knownValues: ['all', 'none', 'following'], }, }, }, profileAssociatedActivitySubscription: { type: 'object', required: ['allowSubscriptions'], properties: { allowSubscriptions: { type: 'string', knownValues: ['followers', 'mutuals', 'none'], }, }, }, viewerState: { type: 'object', description: "Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests.", properties: { muted: { type: 'boolean', }, mutedByList: { type: 'ref', ref: 'lex:app.bsky.graph.defs#listViewBasic', }, blockedBy: { type: 'boolean', }, blocking: { type: 'string', format: 'at-uri', }, blockingByList: { type: 'ref', ref: 'lex:app.bsky.graph.defs#listViewBasic', }, following: { type: 'string', format: 'at-uri', }, followedBy: { type: 'string', format: 'at-uri', }, knownFollowers: { description: 'This property is present only in selected cases, as an optimization.', type: 'ref', ref: 'lex:app.bsky.actor.defs#knownFollowers', }, activitySubscription: { description: 'This property is present only in selected cases, as an optimization.', type: 'ref', ref: 'lex:app.bsky.notification.defs#activitySubscription', }, }, }, knownFollowers: { type: 'object', description: "The subject's followers whom you also follow", required: ['count', 'followers'], properties: { count: { type: 'integer', }, followers: { type: 'array', minLength: 0, maxLength: 5, items: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileViewBasic', }, }, }, }, verificationState: { type: 'object', description: 'Represents the verification information about the user this object is attached to.', required: ['verifications', 'verifiedStatus', 'trustedVerifierStatus'], properties: { verifications: { type: 'array', description: 'All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included.', items: { type: 'ref', ref: 'lex:app.bsky.actor.defs#verificationView', }, }, verifiedStatus: { type: 'string', description: "The user's status as a verified account.", knownValues: ['valid', 'invalid', 'none'], }, trustedVerifierStatus: { type: 'string', description: "The user's status as a trusted verifier.", knownValues: ['valid', 'invalid', 'none'], }, }, }, verificationView: { type: 'object', description: 'An individual verification for an associated subject.', required: ['issuer', 'uri', 'isValid', 'createdAt'], properties: { issuer: { type: 'string', description: 'The user who issued this verification.', format: 'did', }, uri: { type: 'string', description: 'The AT-URI of the verification record.', format: 'at-uri', }, isValid: { type: 'boolean', description: 'True if the verification passes validation, otherwise false.', }, createdAt: { type: 'string', description: 'Timestamp when the verification was created.', format: 'datetime', }, }, }, preferences: { type: 'array', items: { type: 'union', refs: [ 'lex:app.bsky.actor.defs#adultContentPref', 'lex:app.bsky.actor.defs#contentLabelPref', 'lex:app.bsky.actor.defs#savedFeedsPref', 'lex:app.bsky.actor.defs#savedFeedsPrefV2', 'lex:app.bsky.actor.defs#personalDetailsPref', 'lex:app.bsky.actor.defs#feedViewPref', 'lex:app.bsky.actor.defs#threadViewPref', 'lex:app.bsky.actor.defs#interestsPref', 'lex:app.bsky.actor.defs#mutedWordsPref', 'lex:app.bsky.actor.defs#hiddenPostsPref', 'lex:app.bsky.actor.defs#bskyAppStatePref', 'lex:app.bsky.actor.defs#labelersPref', 'lex:app.bsky.actor.defs#postInteractionSettingsPref', 'lex:app.bsky.actor.defs#verificationPrefs', ], }, }, adultContentPref: { type: 'object', required: ['enabled'], properties: { enabled: { type: 'boolean', default: false, }, }, }, contentLabelPref: { type: 'object', required: ['label', 'visibility'], properties: { labelerDid: { type: 'string', description: 'Which labeler does this preference apply to? If undefined, applies globally.', format: 'did', }, label: { type: 'string', }, visibility: { type: 'string', knownValues: ['ignore', 'show', 'warn', 'hide'], }, }, }, savedFeed: { type: 'object', required: ['id', 'type', 'value', 'pinned'], properties: { id: { type: 'string', }, type: { type: 'string', knownValues: ['feed', 'list', 'timeline'], }, value: { type: 'string', }, pinned: { type: 'boolean', }, }, }, savedFeedsPrefV2: { type: 'object', required: ['items'], properties: { items: { type: 'array', items: { type: 'ref', ref: 'lex:app.bsky.actor.defs#savedFeed', }, }, }, }, savedFeedsPref: { type: 'object', required: ['pinned', 'saved'], properties: { pinned: { type: 'array', items: { type: 'string', format: 'at-uri', }, }, saved: { type: 'array', items: { type: 'string', format: 'at-uri', }, }, timelineIndex: { type: 'integer', }, }, }, personalDetailsPref: { type: 'object', properties: { birthDate: { type: 'string', format: 'datetime', description: 'The birth date of account owner.', }, }, }, feedViewPref: { type: 'object', required: ['feed'], properties: { feed: { type: 'string', description: 'The URI of the feed, or an identifier which describes the feed.', }, hideReplies: { type: 'boolean', description: 'Hide replies in the feed.', }, hideRepliesByUnfollowed: { type: 'boolean', description: 'Hide replies in the feed if they are not by followed users.', default: true, }, hideRepliesByLikeCount: { type: 'integer', description: 'Hide replies in the feed if they do not have this number of likes.', }, hideReposts: { type: 'boolean', description: 'Hide reposts in the feed.', }, hideQuotePosts: { type: 'boolean', description: 'Hide quote posts in the feed.', }, }, }, threadViewPref: { type: 'object', properties: { sort: { type: 'string', description: 'Sorting mode for threads.', knownValues: [ 'oldest', 'newest', 'most-likes', 'random', 'hotness', ], }, prioritizeFollowedUsers: { type: 'boolean', description: 'Show followed users at the top of all replies.', }, }, }, interestsPref: { type: 'object', required: ['tags'], properties: { tags: { type: 'array', maxLength: 100, items: { type: 'string', maxLength: 640, maxGraphemes: 64, }, description: "A list of tags which describe the account owner's interests gathered during onboarding.", }, }, }, mutedWordTarget: { type: 'string', knownValues: ['content', 'tag'], maxLength: 640, maxGraphemes: 64, }, mutedWord: { type: 'object', description: 'A word that the account owner has muted.', required: ['value', 'targets'], properties: { id: { type: 'string', }, value: { type: 'string', description: 'The muted word itself.', maxLength: 10000, maxGraphemes: 1000, }, targets: { type: 'array', description: 'The intended targets of the muted word.', items: { type: 'ref', ref: 'lex:app.bsky.actor.defs#mutedWordTarget', }, }, actorTarget: { type: 'string', description: 'Groups of users to apply the muted word to. If undefined, applies to all users.', knownValues: ['all', 'exclude-following'], default: 'all', }, expiresAt: { type: 'string', format: 'datetime', description: 'The date and time at which the muted word will expire and no longer be applied.', }, }, }, mutedWordsPref: { type: 'object', required: ['items'], properties: { items: { type: 'array', items: { type: 'ref', ref: 'lex:app.bsky.actor.defs#mutedWord', }, description: 'A list of words the account owner has muted.', }, }, }, hiddenPostsPref: { type: 'object', required: ['items'], properties: { items: { type: 'array', items: { type: 'string', format: 'at-uri', }, description: 'A list of URIs of posts the account owner has hidden.', }, }, }, labelersPref: { type: 'object', required: ['labelers'], properties: { labelers: { type: 'array', items: { type: 'ref', ref: 'lex:app.bsky.actor.defs#labelerPrefItem', }, }, }, }, labelerPrefItem: { type: 'object', required: ['did'], properties: { did: { type: 'string', format: 'did', }, }, }, bskyAppStatePref: { description: "A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this.", type: 'object', properties: { activeProgressGuide: { type: 'ref', ref: 'lex:app.bsky.actor.defs#bskyAppProgressGuide', }, queuedNudges: { description: 'An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user.', type: 'array', maxLength: 1000, items: { type: 'string', maxLength: 100, }, }, nuxs: { description: 'Storage for NUXs the user has encountered.', type: 'array', maxLength: 100, items: { type: 'ref', ref: 'lex:app.bsky.actor.defs#nux', }, }, }, }, bskyAppProgressGuide: { description: 'If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress.', type: 'object', required: ['guide'], properties: { guide: { type: 'string', maxLength: 100, }, }, }, nux: { type: 'object', description: 'A new user experiences (NUX) storage object', required: ['id', 'completed'], properties: { id: { type: 'string', maxLength: 100, }, completed: { type: 'boolean', default: false, }, data: { description: 'Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters.', type: 'string', maxLength: 3000, maxGraphemes: 300, }, expiresAt: { type: 'string', format: 'datetime', description: 'The date and time at which the NUX will expire and should be considered completed.', }, }, }, verificationPrefs: { type: 'object', description: 'Preferences for how verified accounts appear in the app.', required: [], properties: { hideBadges: { description: 'Hide the blue check badges for verified accounts and trusted verifiers.', type: 'boolean', default: false, }, }, }, postInteractionSettingsPref: { type: 'object', description: 'Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.', required: [], properties: { threadgateAllowRules: { description: 'Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply.', type: 'array', maxLength: 5, items: { type: 'union', refs: [ 'lex:app.bsky.feed.threadgate#mentionRule', 'lex:app.bsky.feed.threadgate#followerRule', 'lex:app.bsky.feed.threadgate#followingRule', 'lex:app.bsky.feed.threadgate#listRule', ], }, }, postgateEmbeddingRules: { description: 'Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed.', type: 'array', maxLength: 5, items: { type: 'union', refs: ['lex:app.bsky.feed.postgate#disableRule'], }, }, }, }, statusView: { type: 'object', required: ['status', 'record'], properties: { status: { type: 'string', description: 'The status for the account.', knownValues: ['app.bsky.actor.status#live'], }, record: { type: 'unknown', }, embed: { type: 'union', description: 'An optional embed associated with the status.', refs: ['lex:app.bsky.embed.external#view'], }, expiresAt: { type: 'string', description: 'The date when this status will expire. The application might choose to no longer return the status after expiration.', format: 'datetime', }, isActive: { type: 'boolean', description: 'True if the status is not expired, false if it is expired. Only present if expiration was set.', }, }, }, }, }, AppBskyActorGetProfile: { lexicon: 1, id: 'app.bsky.actor.getProfile', defs: { main: { type: 'query', description: 'Get detailed profile view of an actor. Does not require auth, but contains relevant metadata with auth.', parameters: { type: 'params', required: ['actor'], properties: { actor: { type: 'string', format: 'at-identifier', description: 'Handle or DID of account to fetch profile of.', }, }, }, output: { encoding: 'application/json', schema: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileViewDetailed', }, }, }, }, }, AppBskyActorGetProfiles: { lexicon: 1, id: 'app.bsky.actor.getProfiles', defs: { main: { type: 'query', description: 'Get detailed profile views of multiple actors.', parameters: { type: 'params', required: ['actors'], properties: { actors: { type: 'array', items: { type: 'string', format: 'at-identifier', }, maxLength: 25, }, }, }, output: { encoding: 'application/json', schema: { type: 'object', required: ['profiles'], properties: { profiles: { type: 'array', items: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileViewDetailed', }, }, }, }, }, }, }, }, AppBskyEmbedDefs: { lexicon: 1, id: 'app.bsky.embed.defs', defs: { aspectRatio: { type: 'object', description: 'width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.', required: ['width', 'height'], properties: { width: { type: 'integer', minimum: 1, }, height: { type: 'integer', minimum: 1, }, }, }, }, }, AppBskyEmbedExternal: { lexicon: 1, id: 'app.bsky.embed.external', defs: { main: { type: 'object', description: "A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post).", required: ['external'], properties: { external: { type: 'ref', ref: 'lex:app.bsky.embed.external#external', }, }, }, external: { type: 'object', required: ['uri', 'title', 'description'], properties: { uri: { type: 'string', format: 'uri', }, title: { type: 'string', }, description: { type: 'string', }, thumb: { type: 'blob', accept: ['image/*'], maxSize: 1000000, }, }, }, view: { type: 'object', required: ['external'], properties: { external: { type: 'ref', ref: 'lex:app.bsky.embed.external#viewExternal', }, }, }, viewExternal: { type: 'object', required: ['uri', 'title', 'description'], properties: { uri: { type: 'string', format: 'uri', }, title: { type: 'string', }, description: { type: 'string', }, thumb: { type: 'string', format: 'uri', }, }, }, }, }, AppBskyEmbedImages: { lexicon: 1, id: 'app.bsky.embed.images', description: 'A set of images embedded in a Bluesky record (eg, a post).', defs: { main: { type: 'object', required: ['images'], properties: { images: { type: 'array', items: { type: 'ref', ref: 'lex:app.bsky.embed.images#image', }, maxLength: 4, }, }, }, image: { type: 'object', required: ['image', 'alt'], properties: { image: { type: 'blob', accept: ['image/*'], maxSize: 1000000, }, alt: { type: 'string', description: 'Alt text description of the image, for accessibility.', }, aspectRatio: { type: 'ref', ref: 'lex:app.bsky.embed.defs#aspectRatio', }, }, }, view: { type: 'object', required: ['images'], properties: { images: { type: 'array', items: { type: 'ref', ref: 'lex:app.bsky.embed.images#viewImage', }, maxLength: 4, }, }, }, viewImage: { type: 'object', required: ['thumb', 'fullsize', 'alt'], properties: { thumb: { type: 'string', format: 'uri', description: 'Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.', }, fullsize: { type: 'string', format: 'uri', description: 'Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View.', }, alt: { type: 'string', description: 'Alt text description of the image, for accessibility.', }, aspectRatio: { type: 'ref', ref: 'lex:app.bsky.embed.defs#aspectRatio', }, }, }, }, }, AppBskyEmbedRecord: { lexicon: 1, id: 'app.bsky.embed.record', description: 'A representation of a record embedded in a Bluesky record (eg, a post). For example, a quote-post, or sharing a feed generator record.', defs: { main: { type: 'object', required: ['record'], properties: { record: { type: 'ref', ref: 'lex:com.atproto.repo.strongRef', }, }, }, view: { type: 'object', required: ['record'], properties: { record: { type: 'union', refs: [ 'lex:app.bsky.embed.record#viewRecord', 'lex:app.bsky.embed.record#viewNotFound', 'lex:app.bsky.embed.record#viewBlocked', 'lex:app.bsky.embed.record#viewDetached', 'lex:app.bsky.feed.defs#generatorView', 'lex:app.bsky.graph.defs#listView', 'lex:app.bsky.labeler.defs#labelerView', 'lex:app.bsky.graph.defs#starterPackViewBasic', ], }, }, }, viewRecord: { type: 'object', required: ['uri', 'cid', 'author', 'value', 'indexedAt'], properties: { uri: { type: 'string', format: 'at-uri', }, cid: { type: 'string', format: 'cid', }, author: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileViewBasic', }, value: { type: 'unknown', description: 'The record data itself.', }, labels: { type: 'array', items: { type: 'ref', ref: 'lex:com.atproto.label.defs#label', }, }, replyCount: { type: 'integer', }, repostCount: { type: 'integer', }, likeCount: { type: 'integer', }, quoteCount: { type: 'integer', }, embeds: { type: 'array', items: { type: 'union', refs: [ 'lex:app.bsky.embed.images#view', 'lex:app.bsky.embed.video#view', 'lex:app.bsky.embed.external#view', 'lex:app.bsky.embed.record#view', 'lex:app.bsky.embed.recordWithMedia#view', ], }, }, indexedAt: { type: 'string', format: 'datetime', }, }, }, viewNotFound: { type: 'object', required: ['uri', 'notFound'], properties: { uri: { type: 'string', format: 'at-uri', }, notFound: { type: 'boolean', const: true, }, }, }, viewBlocked: { type: 'object', required: ['uri', 'blocked', 'author'], properties: { uri: { type: 'string', format: 'at-uri', }, blocked: { type: 'boolean', const: true, }, author: { type: 'ref', ref: 'lex:app.bsky.feed.defs#blockedAuthor', }, }, }, viewDetached: { type: 'object', required: ['uri', 'detached'], properties: { uri: { type: 'string', format: 'at-uri', }, detached: { type: 'boolean', const: true, }, }, }, }, }, AppBskyEmbedRecordWithMedia: { lexicon: 1, id: 'app.bsky.embed.recordWithMedia', description: 'A representation of a record embedded in a Bluesky record (eg, a post), alongside other compatible embeds. For example, a quote post and image, or a quote post and external URL card.', defs: { main: { type: 'object', required: ['record', 'media'], properties: { record: { type: 'ref', ref: 'lex:app.bsky.embed.record', }, media: { type: 'union', refs: [ 'lex:app.bsky.embed.images', 'lex:app.bsky.embed.video', 'lex:app.bsky.embed.external', ], }, }, }, view: { type: 'object', required: ['record', 'media'], properties: { record: { type: 'ref', ref: 'lex:app.bsky.embed.record#view', }, media: { type: 'union', refs: [ 'lex:app.bsky.embed.images#view', 'lex:app.bsky.embed.video#view', 'lex:app.bsky.embed.external#view', ], }, }, }, }, }, AppBskyEmbedVideo: { lexicon: 1, id: 'app.bsky.embed.video', description: 'A video embedded in a Bluesky record (eg, a post).', defs: { main: { type: 'object', required: ['video'], properties: { video: { type: 'blob', description: 'The mp4 video file. May be up to 100mb, formerly limited to 50mb.', accept: ['video/mp4'], maxSize: 100000000, }, captions: { type: 'array', items: { type: 'ref', ref: 'lex:app.bsky.embed.video#caption', }, maxLength: 20, }, alt: { type: 'string', description: 'Alt text description of the video, for accessibility.', maxGraphemes: 1000, maxLength: 10000, }, aspectRatio: { type: 'ref', ref: 'lex:app.bsky.embed.defs#aspectRatio', }, }, }, caption: { type: 'object', required: ['lang', 'file'], properties: { lang: { type: 'string', format: 'language', }, file: { type: 'blob', accept: ['text/vtt'], maxSize: 20000, }, }, }, view: { type: 'object', required: ['cid', 'playlist'], properties: { cid: { type: 'string', format: 'cid', }, playlist: { type: 'string', format: 'uri', }, thumbnail: { type: 'string', format: 'uri', }, alt: { type: 'string', maxGraphemes: 1000, maxLength: 10000, }, aspectRatio: { type: 'ref', ref: 'lex:app.bsky.embed.defs#aspectRatio', }, }, }, }, }, AppBskyFeedDefs: { lexicon: 1, id: 'app.bsky.feed.defs', defs: { postView: { type: 'object', required: ['uri', 'cid', 'author', 'record', 'indexedAt'], properties: { uri: { type: 'string', format: 'at-uri', }, cid: { type: 'string', format: 'cid', }, author: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileViewBasic', }, record: { type: 'unknown', }, embed: { type: 'union', refs: [ 'lex:app.bsky.embed.images#view', 'lex:app.bsky.embed.video#view', 'lex:app.bsky.embed.external#view', 'lex:app.bsky.embed.record#view', 'lex:app.bsky.embed.recordWithMedia#view', ], }, replyCount: { type: 'integer', }, repostCount: { type: 'integer', }, likeCount: { type: 'integer', }, quoteCount: { type: 'integer', }, indexedAt: { type: 'string', format: 'datetime', }, viewer: { type: 'ref', ref: 'lex:app.bsky.feed.defs#viewerState', }, labels: { type: 'array', items: { type: 'ref', ref: 'lex:com.atproto.label.defs#label', }, }, threadgate: { type: 'ref', ref: 'lex:app.bsky.feed.defs#threadgateView', }, }, }, viewerState: { type: 'object', description: "Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests.", properties: { repost: { type: 'string', format: 'at-uri', }, like: { type: 'string', format: 'at-uri', }, threadMuted: { type: 'boolean', }, replyDisabled: { type: 'boolean', }, embeddingDisabled: { type: 'boolean', }, pinned: { type: 'boolean', }, }, }, threadContext: { type: 'object', description: 'Metadata about this post within the context of the thread it is in.', properties: { rootAuthorLike: { type: 'string', format: 'at-uri', }, }, }, feedViewPost: { type: 'object', required: ['post'], properties: { post: { type: 'ref', ref: 'lex:app.bsky.feed.defs#postView', }, reply: { type: 'ref', ref: 'lex:app.bsky.feed.defs#replyRef', }, reason: { type: 'union', refs: [ 'lex:app.bsky.feed.defs#reasonRepost', 'lex:app.bsky.feed.defs#reasonPin', ], }, feedContext: { type: 'string', description: 'Context provided by feed generator that may be passed back alongside interactions.', maxLength: 2000, }, reqId: { type: 'string', description: 'Unique identifier per request that may be passed back alongside interactions.', maxLength: 100, }, }, }, replyRef: { type: 'object', required: ['root', 'parent'], properties: { root: { type: 'union', refs: [ 'lex:app.bsky.feed.defs#postView', 'lex:app.bsky.feed.defs#notFoundPost', 'lex:app.bsky.feed.defs#blockedPost', ], }, parent: { type: 'union', refs: [ 'lex:app.bsky.feed.defs#postView', 'lex:app.bsky.feed.defs#notFoundPost', 'lex:app.bsky.feed.defs#blockedPost', ], }, grandparentAuthor: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileViewBasic', description: 'When parent is a reply to another post, this is the author of that post.', }, }, }, reasonRepost: { type: 'object', required: ['by', 'indexedAt'], properties: { by: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileViewBasic', }, uri: { type: 'string', format: 'at-uri', }, cid: { type: 'string', format: 'cid', }, indexedAt: { type: 'string', format: 'datetime', }, }, }, reasonPin: { type: 'object', properties: {}, }, threadViewPost: { type: 'object', required: ['post'], properties: { post: { type: 'ref', ref: 'lex:app.bsky.feed.defs#postView', }, parent: { type: 'union', refs: [ 'lex:app.bsky.feed.defs#threadViewPost', 'lex:app.bsky.feed.defs#notFoundPost', 'lex:app.bsky.feed.defs#blockedPost', ], }, replies: { type: 'array', items: { type: 'union', refs: [ 'lex:app.bsky.feed.defs#threadViewPost', 'lex:app.bsky.feed.defs#notFoundPost', 'lex:app.bsky.feed.defs#blockedPost', ], }, }, threadContext: { type: 'ref', ref: 'lex:app.bsky.feed.defs#threadContext', }, }, }, notFoundPost: { type: 'object', required: ['uri', 'notFound'], properties: { uri: { type: 'string', format: 'at-uri', }, notFound: { type: 'boolean', const: true, }, }, }, blockedPost: { type: 'object', required: ['uri', 'blocked', 'author'], properties: { uri: { type: 'string', format: 'at-uri', }, blocked: { type: 'boolean', const: true, }, author: { type: 'ref', ref: 'lex:app.bsky.feed.defs#blockedAuthor', }, }, }, blockedAuthor: { type: 'object', required: ['did'], properties: { did: { type: 'string', format: 'did', }, viewer: { type: 'ref', ref: 'lex:app.bsky.actor.defs#viewerState', }, }, }, generatorView: { type: 'object', required: ['uri', 'cid', 'did', 'creator', 'displayName', 'indexedAt'], properties: { uri: { type: 'string', format: 'at-uri', }, cid: { type: 'string', format: 'cid', }, did: { type: 'string', format: 'did', }, creator: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileView', }, displayName: { type: 'string', }, description: { type: 'string', maxGraphemes: 300, maxLength: 3000, }, descriptionFacets: { type: 'array', items: { type: 'ref', ref: 'lex:app.bsky.richtext.facet', }, }, avatar: { type: 'string', format: 'uri', }, likeCount: { type: 'integer', minimum: 0, }, acceptsInteractions: { type: 'boolean', }, labels: { type: 'array', items: { type: 'ref', ref: 'lex:com.atproto.label.defs#label', }, }, viewer: { type: 'ref', ref: 'lex:app.bsky.feed.defs#generatorViewerState', }, contentMode: { type: 'string', knownValues: [ 'app.bsky.feed.defs#contentModeUnspecified', 'app.bsky.feed.defs#contentModeVideo', ], }, indexedAt: { type: 'string', format: 'datetime', }, }, }, generatorViewerState: { type: 'object', properties: { like: { type: 'string', format: 'at-uri', }, }, }, skeletonFeedPost: { type: 'object', required: ['post'], properties: { post: { type: 'string', format: 'at-uri', }, reason: { type: 'union', refs: [ 'lex:app.bsky.feed.defs#skeletonReasonRepost', 'lex:app.bsky.feed.defs#skeletonReasonPin', ], }, feedContext: { type: 'string', description: 'Context that will be passed through to client and may be passed to feed generator back alongside interactions.', maxLength: 2000, }, }, }, skeletonReasonRepost: { type: 'object', required: ['repost'], properties: { repost: { type: 'string', format: 'at-uri', }, }, }, skeletonReasonPin: { type: 'object', properties: {}, }, threadgateView: { type: 'object', properties: { uri: { type: 'string', format: 'at-uri', }, cid: { type: 'string', format: 'cid', }, record: { type: 'unknown', }, lists: { type: 'array', items: { type: 'ref', ref: 'lex:app.bsky.graph.defs#listViewBasic', }, }, }, }, interaction: { type: 'object', properties: { item: { type: 'string', format: 'at-uri', }, event: { type: 'string', knownValues: [ 'app.bsky.feed.defs#requestLess', 'app.bsky.feed.defs#requestMore', 'app.bsky.feed.defs#clickthroughItem', 'app.bsky.feed.defs#clickthroughAuthor', 'app.bsky.feed.defs#clickthroughReposter', 'app.bsky.feed.defs#clickthroughEmbed', 'app.bsky.feed.defs#interactionSeen', 'app.bsky.feed.defs#interactionLike', 'app.bsky.feed.defs#interactionRepost', 'app.bsky.feed.defs#interactionReply', 'app.bsky.feed.defs#interactionQuote', 'app.bsky.feed.defs#interactionShare', ], }, feedContext: { type: 'string', description: 'Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.', maxLength: 2000, }, reqId: { type: 'string', description: 'Unique identifier per request that may be passed back alongside interactions.', maxLength: 100, }, }, }, requestLess: { type: 'token', description: 'Request that less content like the given feed item be shown in the feed', }, requestMore: { type: 'token', description: 'Request that more content like the given feed item be shown in the feed', }, clickthroughItem: { type: 'token', description: 'User clicked through to the feed item', }, clickthroughAuthor: { type: 'token', description: 'User clicked through to the author of the feed item', }, clickthroughReposter: { type: 'token', description: 'User clicked through to the reposter of the feed item', }, clickthroughEmbed: { type: 'token', description: 'User clicked through to the embedded content of the feed item', }, contentModeUnspecified: { type: 'token', description: 'Declares the feed generator returns any types of posts.', }, contentModeVideo: { type: 'token', description: 'Declares the feed generator returns posts containing app.bsky.embed.video embeds.', }, interactionSeen: { type: 'token', description: 'Feed item was seen by user', }, interactionLike: { type: 'token', description: 'User liked the feed item', }, interactionRepost: { type: 'token', description: 'User reposted the feed item', }, interactionReply: { type: 'token', description: 'User replied to the feed item', }, interactionQuote: { type: 'token', description: 'User quoted the feed item', }, interactionShare: { type: 'token', description: 'User shared the feed item', }, }, }, AppBskyFeedGetActorFeeds: { lexicon: 1, id: 'app.bsky.feed.getActorFeeds', defs: { main: { type: 'query', description: "Get a list of feeds (feed generator records) created by the actor (in the actor's repo).", parameters: { type: 'params', required: ['actor'], properties: { actor: { type: 'string', format: 'at-identifier', }, limit: { type: 'integer', minimum: 1, maximum: 100, default: 50, }, cursor: { type: 'string', }, }, }, output: { encoding: 'application/json', schema: { type: 'object', required: ['feeds'], properties: { cursor: { type: 'string', }, feeds: { type: 'array', items: { type: 'ref', ref: 'lex:app.bsky.feed.defs#generatorView', }, }, }, }, }, }, }, }, AppBskyFeedGetFeedGenerator: { lexicon: 1, id: 'app.bsky.feed.getFeedGenerator', defs: { main: { type: 'query', description: 'Get information about a feed generator. Implemented by AppView.', parameters: { type: 'params', required: ['feed'], properties: { feed: { type: 'string', format: 'at-uri', description: 'AT-URI of the feed generator record.', }, }, }, output: { encoding: 'application/json', schema: { type: 'object', required: ['view', 'isOnline', 'isValid'], properties: { view: { type: 'ref', ref: 'lex:app.bsky.feed.defs#generatorView', }, isOnline: { type: 'boolean', description: 'Indicates whether the feed generator service has been online recently, or else seems to be inactive.', }, isValid: { type: 'boolean', description: 'Indicates whether the feed generator service is compatible with the record declaration.', }, }, }, }, }, }, }, AppBskyFeedGetFeedGenerators: { lexicon: 1, id: 'app.bsky.feed.getFeedGenerators', defs: { main: { type: 'query', description: 'Get information about a list of feed generators.', parameters: { type: 'params', required: ['feeds'], properties: { feeds: { type: 'array', items: { type: 'string', format: 'at-uri', }, }, }, }, output: { encoding: 'application/json', schema: { type: 'object', required: ['feeds'], properties: { feeds: { type: 'array', items: { type: 'ref', ref: 'lex:app.bsky.feed.defs#generatorView', }, }, }, }, }, }, }, }, AppBskyFeedGetPosts: { lexicon: 1, id: 'app.bsky.feed.getPosts', defs: { main: { type: 'query', description: "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.", parameters: { type: 'params', required: ['uris'], properties: { uris: { type: 'array', description: 'List of post AT-URIs to return hydrated views for.', items: { type: 'string', format: 'at-uri', }, maxLength: 25, }, }, }, output: { encoding: 'application/json', schema: { type: 'object', required: ['posts'], properties: { posts: { type: 'array', items: { type: 'ref', ref: 'lex:app.bsky.feed.defs#postView', }, }, }, }, }, }, }, }, AppBskyFeedPostgate: { lexicon: 1, id: 'app.bsky.feed.postgate', defs: { main: { type: 'record', key: 'tid', description: 'Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.', record: { type: 'object', required: ['post', 'createdAt'], properties: { createdAt: { type: 'string', format: 'datetime', }, post: { type: 'string', format: 'at-uri', description: 'Reference (AT-URI) to the post record.', }, detachedEmbeddingUris: { type: 'array', maxLength: 50, items: { type: 'string', format: 'at-uri', }, description: 'List of AT-URIs embedding this post that the author has detached from.', }, embeddingRules: { description: 'List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed.', type: 'array', maxLength: 5, items: { type: 'union', refs: ['lex:app.bsky.feed.postgate#disableRule'], }, }, }, }, }, disableRule: { type: 'object', description: 'Disables embedding of this post.', properties: {}, }, }, }, AppBskyFeedThreadgate: { lexicon: 1, id: 'app.bsky.feed.threadgate', defs: { main: { type: 'record', key: 'tid', description: "Record defining interaction gating rules for a thread (aka, reply controls). The record key (rkey) of the threadgate record must match the record key of the thread's root post, and that record must be in the same repository.", record: { type: 'object', required: ['post', 'createdAt'], properties: { post: { type: 'string', format: 'at-uri', description: 'Reference (AT-URI) to the post record.', }, allow: { description: 'List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply.', type: 'array', maxLength: 5, items: { type: 'union', refs: [ 'lex:app.bsky.feed.threadgate#mentionRule', 'lex:app.bsky.feed.threadgate#followerRule', 'lex:app.bsky.feed.threadgate#followingRule', 'lex:app.bsky.feed.threadgate#listRule', ], }, }, createdAt: { type: 'string', format: 'datetime', }, hiddenReplies: { type: 'array', maxLength: 50, items: { type: 'string', format: 'at-uri', }, description: 'List of hidden reply URIs.', }, }, }, }, mentionRule: { type: 'object', description: 'Allow replies from actors mentioned in your post.', properties: {}, }, followerRule: { type: 'object', description: 'Allow replies from actors who follow you.', properties: {}, }, followingRule: { type: 'object', description: 'Allow replies from actors you follow.', properties: {}, }, listRule: { type: 'object', description: 'Allow replies from actors on a list.', required: ['list'], properties: { list: { type: 'string', format: 'at-uri', }, }, }, }, }, AppBskyGraphDefs: { lexicon: 1, id: 'app.bsky.graph.defs', defs: { listViewBasic: { type: 'object', required: ['uri', 'cid', 'name', 'purpose'], properties: { uri: { type: 'string', format: 'at-uri', }, cid: { type: 'string', format: 'cid', }, name: { type: 'string', maxLength: 64, minLength: 1, }, purpose: { type: 'ref', ref: 'lex:app.bsky.graph.defs#listPurpose', }, avatar: { type: 'string', format: 'uri', }, listItemCount: { type: 'integer', minimum: 0, }, labels: { type: 'array', items: { type: 'ref', ref: 'lex:com.atproto.label.defs#label', }, }, viewer: { type: 'ref', ref: 'lex:app.bsky.graph.defs#listViewerState', }, indexedAt: { type: 'string', format: 'datetime', }, }, }, listView: { type: 'object', required: ['uri', 'cid', 'creator', 'name', 'purpose', 'indexedAt'], properties: { uri: { type: 'string', format: 'at-uri', }, cid: { type: 'string', format: 'cid', }, creator: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileView', }, name: { type: 'string', maxLength: 64, minLength: 1, }, purpose: { type: 'ref', ref: 'lex:app.bsky.graph.defs#listPurpose', }, description: { type: 'string', maxGraphemes: 300, maxLength: 3000, }, descriptionFacets: { type: 'array', items: { type: 'ref', ref: 'lex:app.bsky.richtext.facet', }, }, avatar: { type: 'string', format: 'uri', }, listItemCount: { type: 'integer', minimum: 0, }, labels: { type: 'array', items: { type: 'ref', ref: 'lex:com.atproto.label.defs#label', }, }, viewer: { type: 'ref', ref: 'lex:app.bsky.graph.defs#listViewerState', }, indexedAt: { type: 'string', format: 'datetime', }, }, }, listItemView: { type: 'object', required: ['uri', 'subject'], properties: { uri: { type: 'string', format: 'at-uri', }, subject: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileView', }, }, }, starterPackView: { type: 'object', required: ['uri', 'cid', 'record', 'creator', 'indexedAt'], properties: { uri: { type: 'string', format: 'at-uri', }, cid: { type: 'string', format: 'cid', }, record: { type: 'unknown', }, creator: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileViewBasic', }, list: { type: 'ref', ref: 'lex:app.bsky.graph.defs#listViewBasic', }, listItemsSample: { type: 'array', maxLength: 12, items: { type: 'ref', ref: 'lex:app.bsky.graph.defs#listItemView', }, }, feeds: { type: 'array', maxLength: 3, items: { type: 'ref', ref: 'lex:app.bsky.feed.defs#generatorView', }, }, joinedWeekCount: { type: 'integer', minimum: 0, }, joinedAllTimeCount: { type: 'integer', minimum: 0, }, labels: { type: 'array', items: { type: 'ref', ref: 'lex:com.atproto.label.defs#label', }, }, indexedAt: { type: 'string', format: 'datetime', }, }, }, starterPackViewBasic: { type: 'object', required: ['uri', 'cid', 'record', 'creator', 'indexedAt'], properties: { uri: { type: 'string', format: 'at-uri', }, cid: { type: 'string', format: 'cid', }, record: { type: 'unknown', }, creator: { type: 'ref', ref: 'lex:app.bsky.actor.defs#profileViewBasic', }, listItemCount: { type: 'integer', minimum: 0, }, joinedWeekCount: { type: 'integer', minimum: 0, }, joinedAllTimeCount: { type: 'integer', minimum: 0, }, labels: { type: 'array', items: { type: 'ref', ref: 'lex:com.atproto.label.defs#label', }, }, indexedAt: { type: 'string', format: 'datetime', }, }, }, listPurpose: { type: 'string', knownValues: [ 'app.bsky.graph.defs#modlist', 'app.bsky.graph.defs#curatelist', 'app.bsky.graph.defs#referencelist', ], }, modlist: { type: 'token', description: 'A list of actors to apply an aggregate moderation action (mute/block) on.', }, curatelist: { type: 'token', description: 'A list of actors used for curation purposes such as list feeds or interaction gating.', }, referencelist: { type: 'token', description: 'A list of actors used for only for reference purposes such as within a starter pack.', }, listViewerState: { type: 'object', properties: { muted: { type: 'boolean', }, blocked: { type: 'string', format: 'at-uri', }, }, }, notFoundActor: { type: 'object', description: 'indicates that a handle or DID could not be resolved', required: ['actor', 'notFound'], properties: { actor: { type: 'string', format: 'at-identifier', }, notFound: { type: 'boolean', const: true, }, }, }, relationship: { type: 'object', description: 'lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)', required: ['did'], properties: { did: { type: 'string', format: 'did', }, following: { type: 'string', format: 'at-uri', description: 'if the actor follows this DID, this is the AT-URI of the follow record', }, followedBy: { type: 'string', format: 'at-uri', description: 'if the actor is followed by this DID, contains the AT-URI of the follow record', }, }, }, }, }, AppBskyNotificationDefs: { lexicon: 1, id: 'app.bsky.notification.defs', defs: { recordDeleted: { type: 'object', properties: {}, }, chatPreference: { type: 'object', required: ['include', 'push'], properties: { include: { type: 'string', knownValues: ['all', 'accepted'], }, push: { type: 'boolean', }, }, }, filterablePreference: { type: 'object', required: ['include', 'list', 'push'], properties: { include: { type: 'string', knownValues: ['all', 'follows'], }, list: { type: 'boolean', }, push: { type: 'boolean', }, }, }, preference: { type: 'object', required: ['list', 'push'], properties: { list: { type: 'boolean', }, push: { type: 'boolean', }, }, }, preferences: { type: 'object', required: [ 'chat', 'follow', 'like', 'likeViaRepost', 'mention', 'quote', 'reply', 'repost', 'repostViaRepost', 'starterpackJoined', 'subscribedPost', 'unverified', 'verified', ], properties: { chat: { type: 'ref', ref: 'lex:app.bsky.notification.defs#chatPreference', }, follow: { type: 'ref', ref: 'lex:app.bsky.notification.defs#filterablePreference', }, like: { type: 'ref', ref: 'lex:app.bsky.notification.defs#filterablePreference', }, likeViaRepost: { type: 'ref', ref: 'lex:app.bsky.notification.defs#filterablePreference', }, mention: { type: 'ref', ref: 'lex:app.bsky.notification.defs#filterablePreference', }, quote: { type: 'ref', ref: 'lex:app.bsky.notification.defs#filterablePreference', }, reply: { type: 'ref', ref: 'lex:app.bsky.notification.defs#filterablePreference', }, repost: { type: 'ref', ref: 'lex:app.bsky.notification.defs#filterablePreference', }, repostViaRepost: { type: 'ref', ref: 'lex:app.bsky.notification.defs#filterablePreference', }, starterpackJoined: { type: 'ref', ref: 'lex:app.bsky.notification.defs#preference', }, subscribedPost: { type: 'ref', ref: 'lex:app.bsky.notification.defs#preference', }, unverified: { type: 'ref', ref: 'lex:app.bsky.notification.defs#preference', }, verified: { type: 'ref', ref: 'lex:app.bsky.notification.defs#preference', }, }, }, activitySubscription: { type: 'object', required: ['post', 'reply'], properties: { post: { type: 'boolean', }, reply: { type: 'boolean', }, }, }, subjectActivitySubscription: { description: 'Object used to store activity subscription data in stash.', type: 'object', required: ['subject', 'activitySubscription'], properties: { subject: { type: 'string', format: 'did', }, activitySubscription: { type: 'ref', ref: 'lex:app.bsky.notification.defs#activitySubscription', }, }, }, }, }, AppBskyRichtextFacet: { lexicon: 1, id: 'app.bsky.richtext.facet', defs: { main: { type: 'object', description: 'Annotation of a sub-string within rich text.', required: ['index', 'features'], properties: { index: { type: 'ref', ref: 'lex:app.bsky.richtext.facet#byteSlice', }, features: { type: 'array', items: { type: 'union', refs: [ 'lex:app.bsky.richtext.facet#mention', 'lex:app.bsky.richtext.facet#link', 'lex:app.bsky.richtext.facet#tag', ], }, }, }, }, mention: { type: 'object', description: "Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID.", required: ['did'], properties: { did: { type: 'string', format: 'did', }, }, }, link: { type: 'object', description: 'Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL.', required: ['uri'], properties: { uri: { type: 'string', format: 'uri', }, }, }, tag: { type: 'object', description: "Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags').", required: ['tag'], properties: { tag: { type: 'string', maxLength: 640, maxGraphemes: 64, }, }, }, byteSlice: { type: 'object', description: 'Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets.', required: ['byteStart', 'byteEnd'], properties: { byteStart: { type: 'integer', minimum: 0, }, byteEnd: { type: 'integer', minimum: 0, }, }, }, }, }, ComAtprotoLabelDefs: { lexicon: 1, id: 'com.atproto.label.defs', defs: { label: { type: 'object', description: 'Metadata tag on an atproto resource (eg, repo or record).', required: ['src', 'uri', 'val', 'cts'], properties: { ver: { type: 'integer', description: 'The AT Protocol version of the label object.', }, src: { type: 'string', format: 'did', description: 'DID of the actor who created this label.', }, uri: { type: 'string', format: 'uri', description: 'AT URI of the record, repository (account), or other resource that this label applies to.', }, cid: { type: 'string', format: 'cid', description: "Optionally, CID specifying the specific version of 'uri' resource this label applies to.", }, val: { type: 'string', maxLength: 128, description: 'The short string name of the value or type of this label.', }, neg: { type: 'boolean', description: 'If true, this is a negation label, overwriting a previous label.', }, cts: { type: 'string', format: 'datetime', description: 'Timestamp when this label was created.', }, exp: { type: 'string', format: 'datetime', description: 'Timestamp at which this label expires (no longer applies).', }, sig: { type: 'bytes', description: 'Signature of dag-cbor encoded label.', }, }, }, selfLabels: { type: 'object', description: 'Metadata tags on an atproto record, published by the author within the record.', required: ['values'], properties: { values: { type: 'array', items: { type: 'ref', ref: 'lex:com.atproto.label.defs#selfLabel', }, maxLength: 10, }, }, }, selfLabel: { type: 'object', description: 'Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel.', required: ['val'], properties: { val: { type: 'string', maxLength: 128, description: 'The short string name of the value or type of this label.', }, }, }, labelValueDefinition: { type: 'object', description: 'Declares a label value and its expected interpretations and behaviors.', required: ['identifier', 'severity', 'blurs', 'locales'], properties: { identifier: { type: 'string', description: "The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+).", maxLength: 100, maxGraphemes: 100, }, severity: { type: 'string', description: "How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing.", knownValues: ['inform', 'alert', 'none'], }, blurs: { type: 'string', description: "What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing.", knownValues: ['content', 'media', 'none'], }, defaultSetting: { type: 'string', description: 'The default setting for this label.', knownValues: ['ignore', 'warn', 'hide'], default: 'warn', }, adultOnly: { type: 'boolean', description: 'Does the user need to have adult content enabled in order to configure this label?', }, locales: { type: 'array', items: { type: 'ref', ref: 'lex:com.atproto.label.defs#labelValueDefinitionStrings', }, }, }, }, labelValueDefinitionStrings: { type: 'object', description: 'Strings which describe the label in the UI, localized into a specific language.', required: ['lang', 'name', 'description'], properties: { lang: { type: 'string', description: 'The code of the language these strings are written in.', format: 'language', }, name: { type: 'string', description: 'A short human-readable name for the label.', maxGraphemes: 64, maxLength: 640, }, description: { type: 'string', description: 'A longer description of what the label means and why it might be applied.', maxGraphemes: 10000, maxLength: 100000, }, }, }, labelValue: { type: 'string', knownValues: [ '!hide', '!no-promote', '!warn', '!no-unauthenticated', 'dmca-violation', 'doxxing', 'porn', 'sexual', 'nudity', 'nsfl', 'gore', ], }, }, }, ComAtprotoRepoStrongRef: { lexicon: 1, id: 'com.atproto.repo.strongRef', description: 'A URI with a content-hash fingerprint.', defs: { main: { type: 'object', required: ['uri', 'cid'], properties: { uri: { type: 'string', format: 'at-uri', }, cid: { type: 'string', format: 'cid', }, }, }, }, }, PartyWheyAppBskyActorDefs: { lexicon: 1, id: 'party.whey.app.bsky.actor.defs', defs: { profileViewBasicRef: { type: 'object', required: ['did'], properties: { did: { type: 'string', format: 'did', }, }, }, profileViewRef: { type: 'object', required: ['did'], properties: { did: { type: 'string', format: 'did', }, }, }, profileViewDetailedRef: { type: 'object', required: ['did'], properties: { did: { type: 'string', format: 'did', }, }, }, }, }, PartyWheyAppBskyFeedDefs: { lexicon: 1, id: 'party.whey.app.bsky.feed.defs', defs: { postViewRef: { type: 'object', description: 'A pointer to a app.bsky.feed.defs#postView', required: ['uri', 'cid'], properties: { uri: { type: 'string', format: 'at-uri', }, cid: { type: 'string', format: 'cid', }, }, }, feedViewPostRef: { type: 'object', required: ['post'], properties: { post: { type: 'union', refs: [ 'lex:app.bsky.feed.defs#postView', 'lex:party.whey.app.bsky.feed.defs#postViewRef', ], }, reply: { type: 'union', refs: [ 'lex:app.bsky.feed.defs#replyRef', 'lex:party.whey.app.bsky.feed.defs#replyRef', ], }, reason: { type: 'union', refs: [ 'lex:app.bsky.feed.defs#reasonRepost', 'lex:app.bsky.feed.defs#reasonPin', ], }, feedContext: { type: 'string', description: 'Context provided by feed generator that may be passed back alongside interactions.', maxLength: 2000, }, reqId: { type: 'string', description: 'Unique identifier per request that may be passed back alongside interactions.', maxLength: 100, }, }, }, replyRef: { type: 'object', required: ['root', 'parent'], properties: { root: { type: 'union', refs: [ 'lex:party.whey.app.bsky.feed.defs#postViewRef', 'lex:app.bsky.feed.defs#postView', 'lex:app.bsky.feed.defs#notFoundPost', 'lex:app.bsky.feed.defs#blockedPost', ], }, parent: { type: 'union', refs: [ 'lex:party.whey.app.bsky.feed.defs#postViewRef', 'lex:app.bsky.feed.defs#postView', 'lex:app.bsky.feed.defs#notFoundPost', 'lex:app.bsky.feed.defs#blockedPost', ], }, grandparentAuthor: { type: 'union', refs: [ 'lex:party.whey.app.bsky.actor.defs#profileViewBasicRef', 'lex:app.bsky.actor.defs#profileViewBasic', ], description: 'When parent is a reply to another post, this is the author of that post.', }, }, }, threadViewPostRef: { type: 'object', required: ['post'], properties: { post: { type: 'union', refs: [ 'lex:party.whey.app.bsky.feed.defs#postViewRef', 'lex:app.bsky.feed.defs#postView', ], }, parent: { type: 'union', refs: [ 'lex:party.whey.app.bsky.feed.defs#threadViewPostRef', 'lex:app.bsky.feed.defs#threadViewPost', 'lex:app.bsky.feed.defs#notFoundPost', 'lex:app.bsky.feed.defs#blockedPost', ], }, replies: { type: 'array', items: { type: 'union', refs: [ 'lex:party.whey.app.bsky.feed.defs#threadViewPostRef', 'lex:app.bsky.feed.defs#threadViewPost', 'lex:app.bsky.feed.defs#notFoundPost', 'lex:app.bsky.feed.defs#blockedPost', ], }, }, threadContext: { type: 'ref', ref: 'lex:app.bsky.feed.defs#threadContext', }, }, }, }, }, PartyWheyAppBskyFeedGetActorLikesPartial: { lexicon: 1, id: 'party.whey.app.bsky.feed.getActorLikesPartial', defs: { main: { type: 'query', description: 'Get a list of posts liked by an actor. May require auth, (if so, actor must be the requesting account).', parameters: { type: 'params', required: ['actor'], properties: { actor: { type: 'string', format: 'at-identifier', }, limit: { type: 'integer', minimum: 1, maximum: 100, default: 50, }, cursor: { type: 'string', }, }, }, output: { encoding: 'application/json', schema: { type: 'object', required: ['feed'], properties: { cursor: { type: 'string', }, feed: { type: 'array', items: { type: 'union', refs: [ 'lex:party.whey.app.bsky.feed.defs#feedViewPostRef', 'lex:app.bsky.feed.defs#feedViewPost', ], }, }, }, }, }, errors: [ { name: 'BlockedActor', }, { name: 'BlockedByActor', }, ], }, }, }, PartyWheyAppBskyFeedGetAuthorFeedPartial: { lexicon: 1, id: 'party.whey.app.bsky.feed.getAuthorFeedPartial', defs: { main: { type: 'query', description: "Get a view of an actor's 'author feed' (post and reposts by the author). Does not require auth.", parameters: { type: 'params', required: ['actor'], properties: { actor: { type: 'string', format: 'at-identifier', }, limit: { type: 'integer', minimum: 1, maximum: 100, default: 50, }, cursor: { type: 'string', }, filter: { type: 'string', description: 'Combinations of post/repost types to include in response.', knownValues: [ 'posts_with_replies', 'posts_no_replies', 'posts_with_media', 'posts_and_author_threads', 'posts_with_video', ], default: 'posts_with_replies', }, includePins: { type: 'boolean', default: false, }, }, }, output: { encoding: 'application/json', schema: { type: 'object', required: ['feed'], properties: { cursor: { type: 'string', }, feed: { type: 'array', items: { type: 'union', refs: [ 'lex:party.whey.app.bsky.feed.defs#feedViewPostRef', 'lex:app.bsky.feed.defs#feedViewPost', ], }, }, }, }, }, errors: [ { name: 'BlockedActor', }, { name: 'BlockedByActor', }, ], }, }, }, PartyWheyAppBskyFeedGetLikesPartial: { lexicon: 1, id: 'party.whey.app.bsky.feed.getLikesPartial', defs: { main: { type: 'query', description: 'Get like records which reference a subject (by AT-URI and CID).', parameters: { type: 'params', required: ['uri'], properties: { uri: { type: 'string', format: 'at-uri', description: 'AT-URI of the subject (eg, a post record).', }, cid: { type: 'string', format: 'cid', description: 'CID of the subject record (aka, specific version of record), to filter likes.', }, limit: { type: 'integer', minimum: 1, maximum: 100, default: 50, }, cursor: { type: 'string', }, }, }, output: { encoding: 'application/json', schema: { type: 'object', required: ['uri', 'likes'], properties: { uri: { type: 'string', format: 'at-uri', }, cid: { type: 'string', format: 'cid', }, cursor: { type: 'string', }, likes: { type: 'array', items: { type: 'ref', ref: 'lex:party.whey.app.bsky.feed.getLikesPartial#like', }, }, }, }, }, }, like: { type: 'object', required: ['indexedAt', 'createdAt', 'actor'], properties: { indexedAt: { type: 'string', format: 'datetime', }, createdAt: { type: 'string', format: 'datetime', }, actor: { type: 'ref', ref: 'lex:party.whey.app.bsky.actor.defs#profileViewRef', }, }, }, }, }, PartyWheyAppBskyFeedGetListFeedPartial: { lexicon: 1, id: 'party.whey.app.bsky.feed.getListFeedPartial', defs: { main: { type: 'query', description: 'Get a feed of recent posts from a list (posts and reposts from any actors on the list). Does not require auth.', parameters: { type: 'params', required: ['list'], properties: { list: { type: 'string', format: 'at-uri', description: 'Reference (AT-URI) to the list record.', }, limit: { type: 'integer', minimum: 1, maximum: 100, default: 50, }, cursor: { type: 'string', }, }, }, output: { encoding: 'application/json', schema: { type: 'object', required: ['feed'], properties: { cursor: { type: 'string', }, feed: { type: 'array', items: { type: 'ref', ref: 'lex:party.whey.app.bsky.feed.defs#feedViewPostRef', }, }, }, }, }, errors: [ { name: 'UnknownList', }, ], }, }, }, PartyWheyAppBskyFeedGetPostThreadPartial: { lexicon: 1, id: 'party.whey.app.bsky.feed.getPostThreadPartial', defs: { main: { type: 'query', description: 'Get posts in a thread. Does not require auth, but additional metadata and filtering will be applied for authed requests.', parameters: { type: 'params', required: ['uri'], properties: { uri: { type: 'string', format: 'at-uri', description: 'Reference (AT-URI) to post record.', }, depth: { type: 'integer', description: 'How many levels of reply depth should be included in response.', default: 6, minimum: 0, maximum: 1000, }, parentHeight: { type: 'integer', description: 'How many levels of parent (and grandparent, etc) post to include.', default: 80, minimum: 0, maximum: 1000, }, }, }, output: { encoding: 'application/json', schema: { type: 'object', required: ['thread'], properties: { thread: { type: 'union', refs: [ 'lex:party.whey.app.bsky.feed.defs#threadViewPostRef', 'lex:app.bsky.feed.defs#threadViewPost', 'lex:app.bsky.feed.defs#notFoundPost', 'lex:app.bsky.feed.defs#blockedPost', ], }, threadgate: { type: 'ref', ref: 'lex:app.bsky.feed.defs#threadgateView', }, }, }, }, errors: [ { name: 'NotFound', }, ], }, }, }, PartyWheyAppBskyFeedGetQuotesPartial: { lexicon: 1, id: 'party.whey.app.bsky.feed.getQuotesPartial', defs: { main: { type: 'query', description: 'Get a list of quotes for a given post.', parameters: { type: 'params', required: ['uri'], properties: { uri: { type: 'string', format: 'at-uri', description: 'Reference (AT-URI) of post record', }, cid: { type: 'string', format: 'cid', description: 'If supplied, filters to quotes of specific version (by CID) of the post record.', }, limit: { type: 'integer', minimum: 1, maximum: 100, default: 50, }, cursor: { type: 'string', }, }, }, output: { encoding: 'application/json', schema: { type: 'object', required: ['uri', 'posts'], properties: { uri: { type: 'string', format: 'at-uri', }, cid: { type: 'string', format: 'cid', }, cursor: { type: 'string', }, posts: { type: 'array', items: { type: 'union', refs: [ 'lex:party.whey.app.bsky.feed.defs#postViewRef', 'lex:app.bsky.feed.defs#postView', ], }, }, }, }, }, }, }, }, PartyWheyAppBskyFeedGetRepostedByPartial: { lexicon: 1, id: 'party.whey.app.bsky.feed.getRepostedByPartial', defs: { main: { type: 'query', description: 'Get a list of reposts for a given post.', parameters: { type: 'params', required: ['uri'], properties: { uri: { type: 'string', format: 'at-uri', description: 'Reference (AT-URI) of post record', }, cid: { type: 'string', format: 'cid', description: 'If supplied, filters to reposts of specific version (by CID) of the post record.', }, limit: { type: 'integer', minimum: 1, maximum: 100, default: 50, }, cursor: { type: 'string', }, }, }, output: { encoding: 'application/json', schema: { type: 'object', required: ['uri', 'repostedBy'], properties: { uri: { type: 'string', format: 'at-uri', }, cid: { type: 'string', format: 'cid', }, cursor: { type: 'string', }, repostedBy: { type: 'array', items: { type: 'union', refs: [ 'lex:party.whey.app.bsky.actor.defs#profileViewRef', 'lex:app.bsky.actor.defs#profileView', ], }, }, }, }, }, }, }, }, } as const satisfies Record export const schemas = Object.values(schemaDict) satisfies LexiconDoc[] export const lexicons: Lexicons = new Lexicons(schemas) export function validate( v: unknown, id: string, hash: string, requiredType: true, ): ValidationResult export function validate( v: unknown, id: string, hash: string, requiredType?: false, ): ValidationResult export function validate( v: unknown, id: string, hash: string, requiredType?: boolean, ): ValidationResult { return (requiredType ? is$typed : maybe$typed)(v, id, hash) ? lexicons.validate(`${id}#${hash}`, v) : { success: false, error: new ValidationError( `Must be an object with "${hash === 'main' ? id : `${id}#${hash}`}" $type property`, ), } } export const ids = { AppBskyActorDefs: 'app.bsky.actor.defs', AppBskyActorGetProfile: 'app.bsky.actor.getProfile', AppBskyActorGetProfiles: 'app.bsky.actor.getProfiles', AppBskyEmbedDefs: 'app.bsky.embed.defs', AppBskyEmbedExternal: 'app.bsky.embed.external', AppBskyEmbedImages: 'app.bsky.embed.images', AppBskyEmbedRecord: 'app.bsky.embed.record', AppBskyEmbedRecordWithMedia: 'app.bsky.embed.recordWithMedia', AppBskyEmbedVideo: 'app.bsky.embed.video', AppBskyFeedDefs: 'app.bsky.feed.defs', AppBskyFeedGetActorFeeds: 'app.bsky.feed.getActorFeeds', AppBskyFeedGetFeedGenerator: 'app.bsky.feed.getFeedGenerator', AppBskyFeedGetFeedGenerators: 'app.bsky.feed.getFeedGenerators', AppBskyFeedGetPosts: 'app.bsky.feed.getPosts', AppBskyFeedPostgate: 'app.bsky.feed.postgate', AppBskyFeedThreadgate: 'app.bsky.feed.threadgate', AppBskyGraphDefs: 'app.bsky.graph.defs', AppBskyNotificationDefs: 'app.bsky.notification.defs', AppBskyRichtextFacet: 'app.bsky.richtext.facet', ComAtprotoLabelDefs: 'com.atproto.label.defs', ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef', PartyWheyAppBskyActorDefs: 'party.whey.app.bsky.actor.defs', PartyWheyAppBskyFeedDefs: 'party.whey.app.bsky.feed.defs', PartyWheyAppBskyFeedGetActorLikesPartial: 'party.whey.app.bsky.feed.getActorLikesPartial', PartyWheyAppBskyFeedGetAuthorFeedPartial: 'party.whey.app.bsky.feed.getAuthorFeedPartial', PartyWheyAppBskyFeedGetLikesPartial: 'party.whey.app.bsky.feed.getLikesPartial', PartyWheyAppBskyFeedGetListFeedPartial: 'party.whey.app.bsky.feed.getListFeedPartial', PartyWheyAppBskyFeedGetPostThreadPartial: 'party.whey.app.bsky.feed.getPostThreadPartial', PartyWheyAppBskyFeedGetQuotesPartial: 'party.whey.app.bsky.feed.getQuotesPartial', PartyWheyAppBskyFeedGetRepostedByPartial: 'party.whey.app.bsky.feed.getRepostedByPartial', } as const