···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as bsky from './app/bsky.js'
-5
src/lexicons/com.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as atproto from './com/atproto.js'
-5
src/lexicons/tools.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as ozone from './tools/ozone.js'
-138
src/lib/bluesky.ts
···11-import { BskyAgent } from "@atproto/api";
22-import type { AppBskyFeedDefs, AppBskyActorDefs } from "@atproto/api";
33-44-const BSKY_PUBLIC_API = "https://public.api.bsky.app";
55-66-// Reuse agent instance for connection pooling
77-let agent: BskyAgent | null = null;
88-99-function getAgent(): BskyAgent {
1010- if (!agent) {
1111- agent = new BskyAgent({ service: BSKY_PUBLIC_API });
1212- }
1313- return agent;
1414-}
1515-1616-export interface CommentNode {
1717- uri: string;
1818- author: {
1919- handle: string;
2020- displayName: string;
2121- avatar?: string;
2222- };
2323- text: string;
2424- createdAt: string;
2525- replies: CommentNode[];
2626-}
2727-2828-/**
2929- * Check if a reply is a valid ThreadViewPost with actual content
3030- */
3131-function isValidThreadViewPost(
3232- reply: AppBskyFeedDefs.ThreadViewPost | AppBskyFeedDefs.NotFoundPost | AppBskyFeedDefs.BlockedPost | { $type: string }
3333-): reply is AppBskyFeedDefs.ThreadViewPost {
3434- return (
3535- "$type" in reply &&
3636- (reply as AppBskyFeedDefs.ThreadViewPost).$type === "app.bsky.feed.defs#threadViewPost"
3737- );
3838-}
3939-4040-/**
4141- * Extract text from a post record
4242- */
4343-function getPostText(record: { [_ in string]: unknown }): string | null {
4444- if ("text" in record && typeof record.text === "string") {
4545- return record.text;
4646- }
4747- return null;
4848-}
4949-5050-/**
5151- * Flatten nested replies from the thread structure
5252- */
5353-function flattenReplies(
5454- replies: (AppBskyFeedDefs.ThreadViewPost | AppBskyFeedDefs.NotFoundPost | AppBskyFeedDefs.BlockedPost | { $type: string })[] | undefined,
5555- depth: number,
5656- maxDepth: number
5757-): CommentNode[] {
5858- if (!replies || depth >= maxDepth) return [];
5959-6060- const result: CommentNode[] = [];
6161-6262- for (const reply of replies) {
6363- // Skip non-ThreadViewPost types (NotFoundPost, BlockedPost, etc.)
6464- if (!isValidThreadViewPost(reply)) {
6565- continue;
6666- }
6767-6868- const post = reply.post;
6969- const record = post.record;
7070- const text = getPostText(record);
7171-7272- // Skip posts without text
7373- if (!text) {
7474- continue;
7575- }
7676-7777- const author = post.author as AppBskyActorDefs.ProfileViewBasic;
7878-7979- result.push({
8080- uri: post.uri,
8181- author: {
8282- handle: author.handle,
8383- displayName: author.displayName || author.handle,
8484- avatar: author.avatar,
8585- },
8686- text,
8787- createdAt: post.indexedAt,
8888- replies: flattenReplies(reply.replies, depth + 1, maxDepth),
8989- });
9090- }
9191-9292- return result;
9393-}
9494-9595-/**
9696- * Fetch comments for a Bluesky post using the official @atproto/api SDK
9797- */
9898-export async function fetchComments(
9999- postUri: string,
100100- maxDepth: number = 4
101101-): Promise<CommentNode[]> {
102102- const bskyAgent = getAgent();
103103-104104- const response = await bskyAgent.getPostThread({
105105- uri: postUri,
106106- depth: maxDepth + 1,
107107- parentHeight: 0, // We only want replies, not parent posts
108108- });
109109-110110- const thread = response.data.thread;
111111-112112- // Handle different thread types - must be a valid ThreadViewPost
113113- if (!isValidThreadViewPost(thread)) {
114114- return [];
115115- }
116116-117117- // thread.replies contains ThreadViewPost | NotFoundPost | BlockedPost
118118- return flattenReplies(thread.replies, 0, maxDepth);
119119-}
120120-121121-/**
122122- * Convert AT URI to web URL
123123- */
124124-export function atUriToWebUrl(uri: string): string {
125125- const match = uri.match(/at:\/\/([^/]+)\/app\.bsky\.feed\.post\/(.+)/);
126126- if (!match) return "#";
127127- const [, did, rkey] = match;
128128- return `https://bsky.app/profile/${did}/post/${rkey}`;
129129-}
130130-131131-/**
132132- * Get the Bluesky web URL for a post where users can reply
133133- * Bluesky intent/compose only supports 'text' parameter, not 'reply'
134134- * So we link directly to the post where users can click reply
135135- */
136136-export function getReplyUrl(uri: string): string {
137137- return atUriToWebUrl(uri);
138138-}
-11
src/lexicons/app/bsky.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as actor from './bsky/actor.js'
66-export * as embed from './bsky/embed.js'
77-export * as feed from './bsky/feed.js'
88-export * as graph from './bsky/graph.js'
99-export * as labeler from './bsky/labeler.js'
1010-export * as notification from './bsky/notification.js'
1111-export * as richtext from './bsky/richtext.js'
-7
src/lexicons/com/atproto.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as label from './atproto/label.js'
66-export * as moderation from './atproto/moderation.js'
77-export * as repo from './atproto/repo.js'
-5
src/lexicons/tools/ozone.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as report from './ozone/report.js'
-6
src/lexicons/app/bsky/actor.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as defs from './actor/defs.js'
66-export * as status from './actor/status.js'
-10
src/lexicons/app/bsky/embed.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as defs from './embed/defs.js'
66-export * as external from './embed/external.js'
77-export * as images from './embed/images.js'
88-export * as record from './embed/record.js'
99-export * as recordWithMedia from './embed/recordWithMedia.js'
1010-export * as video from './embed/video.js'
-8
src/lexicons/app/bsky/feed.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as defs from './feed/defs.js'
66-export * as post from './feed/post.js'
77-export * as postgate from './feed/postgate.js'
88-export * as threadgate from './feed/threadgate.js'
-5
src/lexicons/app/bsky/graph.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as defs from './graph/defs.js'
-5
src/lexicons/app/bsky/labeler.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as defs from './labeler/defs.js'
-5
src/lexicons/app/bsky/notification.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as defs from './notification/defs.js'
-5
src/lexicons/app/bsky/richtext.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as facet from './richtext/facet.js'
-5
src/lexicons/com/atproto/label.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as defs from './label/defs.js'
-5
src/lexicons/com/atproto/moderation.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as defs from './moderation/defs.js'
-5
src/lexicons/com/atproto/repo.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as strongRef from './repo/strongRef.js'
-5
src/lexicons/tools/ozone/report.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * as defs from './report/defs.js'
-1285
src/lexicons/app/bsky/actor/defs.defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-import { l } from '@atproto/lex'
66-import * as EmbedExternal from '../embed/external.defs.js'
77-import * as LabelDefs from '../../../com/atproto/label/defs.defs.js'
88-import * as GraphDefs from '../graph/defs.defs.js'
99-import * as NotificationDefs from '../notification/defs.defs.js'
1010-import * as RepoStrongRef from '../../../com/atproto/repo/strongRef.defs.js'
1111-import * as FeedThreadgate from '../feed/threadgate.defs.js'
1212-import * as FeedPostgate from '../feed/postgate.defs.js'
1313-1414-const $nsid = 'app.bsky.actor.defs'
1515-1616-export { $nsid }
1717-1818-/** A new user experiences (NUX) storage object */
1919-type Nux = {
2020- $type?: 'app.bsky.actor.defs#nux'
2121- id: string
2222-2323- /**
2424- * Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters.
2525- */
2626- data?: string
2727- completed: boolean
2828-2929- /**
3030- * The date and time at which the NUX will expire and should be considered completed.
3131- */
3232- expiresAt?: l.DatetimeString
3333-}
3434-3535-export type { Nux }
3636-3737-/** A new user experiences (NUX) storage object */
3838-const nux = /*#__PURE__*/ l.typedObject<Nux>(
3939- $nsid,
4040- 'nux',
4141- /*#__PURE__*/ l.object({
4242- id: /*#__PURE__*/ l.string({ maxLength: 100 }),
4343- data: /*#__PURE__*/ l.optional(
4444- /*#__PURE__*/ l.string({ maxLength: 3000, maxGraphemes: 300 }),
4545- ),
4646- completed: /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.boolean(), false),
4747- expiresAt: /*#__PURE__*/ l.optional(
4848- /*#__PURE__*/ l.string({ format: 'datetime' }),
4949- ),
5050- }),
5151-)
5252-5353-export { nux }
5454-5555-/** A word that the account owner has muted. */
5656-type MutedWord = {
5757- $type?: 'app.bsky.actor.defs#mutedWord'
5858- id?: string
5959-6060- /**
6161- * The muted word itself.
6262- */
6363- value: string
6464-6565- /**
6666- * The intended targets of the muted word.
6767- */
6868- targets: MutedWordTarget[]
6969-7070- /**
7171- * The date and time at which the muted word will expire and no longer be applied.
7272- */
7373- expiresAt?: l.DatetimeString
7474-7575- /**
7676- * Groups of users to apply the muted word to. If undefined, applies to all users.
7777- */
7878- actorTarget?: 'all' | 'exclude-following' | l.UnknownString
7979-}
8080-8181-export type { MutedWord }
8282-8383-/** A word that the account owner has muted. */
8484-const mutedWord = /*#__PURE__*/ l.typedObject<MutedWord>(
8585- $nsid,
8686- 'mutedWord',
8787- /*#__PURE__*/ l.object({
8888- id: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
8989- value: /*#__PURE__*/ l.string({ maxLength: 10000, maxGraphemes: 1000 }),
9090- targets: /*#__PURE__*/ l.array(
9191- /*#__PURE__*/ l.ref<MutedWordTarget>((() => mutedWordTarget) as any),
9292- ),
9393- expiresAt: /*#__PURE__*/ l.optional(
9494- /*#__PURE__*/ l.string({ format: 'datetime' }),
9595- ),
9696- actorTarget: /*#__PURE__*/ l.optional(
9797- /*#__PURE__*/ l.withDefault(
9898- /*#__PURE__*/ l.string<{ knownValues: ['all', 'exclude-following'] }>(),
9999- 'all',
100100- ),
101101- ),
102102- }),
103103-)
104104-105105-export { mutedWord }
106106-107107-type SavedFeed = {
108108- $type?: 'app.bsky.actor.defs#savedFeed'
109109- id: string
110110- type: 'feed' | 'list' | 'timeline' | l.UnknownString
111111- value: string
112112- pinned: boolean
113113-}
114114-115115-export type { SavedFeed }
116116-117117-const savedFeed = /*#__PURE__*/ l.typedObject<SavedFeed>(
118118- $nsid,
119119- 'savedFeed',
120120- /*#__PURE__*/ l.object({
121121- id: /*#__PURE__*/ l.string(),
122122- type: /*#__PURE__*/ l.string<{
123123- knownValues: ['feed', 'list', 'timeline']
124124- }>(),
125125- value: /*#__PURE__*/ l.string(),
126126- pinned: /*#__PURE__*/ l.boolean(),
127127- }),
128128-)
129129-130130-export { savedFeed }
131131-132132-type StatusView = {
133133- $type?: 'app.bsky.actor.defs#statusView'
134134- cid?: l.CidString
135135- uri?: l.AtUriString
136136-137137- /**
138138- * An optional embed associated with the status.
139139- */
140140- embed?: l.$Typed<EmbedExternal.View> | l.Unknown$TypedObject
141141- labels?: LabelDefs.Label[]
142142- record: l.LexMap
143143-144144- /**
145145- * The status for the account.
146146- */
147147- status: 'app.bsky.actor.status#live' | l.UnknownString
148148-149149- /**
150150- * True if the status is not expired, false if it is expired. Only present if expiration was set.
151151- */
152152- isActive?: boolean
153153-154154- /**
155155- * The date when this status will expire. The application might choose to no longer return the status after expiration.
156156- */
157157- expiresAt?: l.DatetimeString
158158-159159- /**
160160- * True if the user's go-live access has been disabled by a moderator, false otherwise.
161161- */
162162- isDisabled?: boolean
163163-}
164164-165165-export type { StatusView }
166166-167167-const statusView = /*#__PURE__*/ l.typedObject<StatusView>(
168168- $nsid,
169169- 'statusView',
170170- /*#__PURE__*/ l.object({
171171- cid: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'cid' })),
172172- uri: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'at-uri' })),
173173- embed: /*#__PURE__*/ l.optional(
174174- /*#__PURE__*/ l.typedUnion(
175175- [
176176- /*#__PURE__*/ l.typedRef<EmbedExternal.View>(
177177- (() => EmbedExternal.view) as any,
178178- ),
179179- ],
180180- false,
181181- ),
182182- ),
183183- labels: /*#__PURE__*/ l.optional(
184184- /*#__PURE__*/ l.array(
185185- /*#__PURE__*/ l.ref<LabelDefs.Label>((() => LabelDefs.label) as any),
186186- ),
187187- ),
188188- record: /*#__PURE__*/ l.lexMap(),
189189- status: /*#__PURE__*/ l.string<{
190190- knownValues: ['app.bsky.actor.status#live']
191191- }>(),
192192- isActive: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
193193- expiresAt: /*#__PURE__*/ l.optional(
194194- /*#__PURE__*/ l.string({ format: 'datetime' }),
195195- ),
196196- isDisabled: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
197197- }),
198198-)
199199-200200-export { statusView }
201201-202202-type Preferences = (
203203- | l.$Typed<AdultContentPref>
204204- | l.$Typed<ContentLabelPref>
205205- | l.$Typed<SavedFeedsPref>
206206- | l.$Typed<SavedFeedsPrefV2>
207207- | l.$Typed<PersonalDetailsPref>
208208- | l.$Typed<DeclaredAgePref>
209209- | l.$Typed<FeedViewPref>
210210- | l.$Typed<ThreadViewPref>
211211- | l.$Typed<InterestsPref>
212212- | l.$Typed<MutedWordsPref>
213213- | l.$Typed<HiddenPostsPref>
214214- | l.$Typed<BskyAppStatePref>
215215- | l.$Typed<LabelersPref>
216216- | l.$Typed<PostInteractionSettingsPref>
217217- | l.$Typed<VerificationPrefs>
218218- | l.$Typed<LiveEventPreferences>
219219- | l.Unknown$TypedObject
220220-)[]
221221-222222-export type { Preferences }
223223-224224-const preferences = /*#__PURE__*/ l.array<Preferences[number]>(
225225- /*#__PURE__*/ l.typedUnion(
226226- [
227227- /*#__PURE__*/ l.typedRef<AdultContentPref>(
228228- (() => adultContentPref) as any,
229229- ),
230230- /*#__PURE__*/ l.typedRef<ContentLabelPref>(
231231- (() => contentLabelPref) as any,
232232- ),
233233- /*#__PURE__*/ l.typedRef<SavedFeedsPref>((() => savedFeedsPref) as any),
234234- /*#__PURE__*/ l.typedRef<SavedFeedsPrefV2>(
235235- (() => savedFeedsPrefV2) as any,
236236- ),
237237- /*#__PURE__*/ l.typedRef<PersonalDetailsPref>(
238238- (() => personalDetailsPref) as any,
239239- ),
240240- /*#__PURE__*/ l.typedRef<DeclaredAgePref>((() => declaredAgePref) as any),
241241- /*#__PURE__*/ l.typedRef<FeedViewPref>((() => feedViewPref) as any),
242242- /*#__PURE__*/ l.typedRef<ThreadViewPref>((() => threadViewPref) as any),
243243- /*#__PURE__*/ l.typedRef<InterestsPref>((() => interestsPref) as any),
244244- /*#__PURE__*/ l.typedRef<MutedWordsPref>((() => mutedWordsPref) as any),
245245- /*#__PURE__*/ l.typedRef<HiddenPostsPref>((() => hiddenPostsPref) as any),
246246- /*#__PURE__*/ l.typedRef<BskyAppStatePref>(
247247- (() => bskyAppStatePref) as any,
248248- ),
249249- /*#__PURE__*/ l.typedRef<LabelersPref>((() => labelersPref) as any),
250250- /*#__PURE__*/ l.typedRef<PostInteractionSettingsPref>(
251251- (() => postInteractionSettingsPref) as any,
252252- ),
253253- /*#__PURE__*/ l.typedRef<VerificationPrefs>(
254254- (() => verificationPrefs) as any,
255255- ),
256256- /*#__PURE__*/ l.typedRef<LiveEventPreferences>(
257257- (() => liveEventPreferences) as any,
258258- ),
259259- ],
260260- false,
261261- ),
262262-)
263263-264264-export { preferences }
265265-266266-type ProfileView = {
267267- $type?: 'app.bsky.actor.defs#profileView'
268268- did: l.DidString
269269-270270- /**
271271- * Debug information for internal development
272272- */
273273- debug?: l.LexMap
274274- avatar?: l.UriString
275275- handle: l.HandleString
276276- labels?: LabelDefs.Label[]
277277- status?: StatusView
278278- viewer?: ViewerState
279279- pronouns?: string
280280- createdAt?: l.DatetimeString
281281- indexedAt?: l.DatetimeString
282282- associated?: ProfileAssociated
283283- description?: string
284284- displayName?: string
285285- verification?: VerificationState
286286-}
287287-288288-export type { ProfileView }
289289-290290-const profileView = /*#__PURE__*/ l.typedObject<ProfileView>(
291291- $nsid,
292292- 'profileView',
293293- /*#__PURE__*/ l.object({
294294- did: /*#__PURE__*/ l.string({ format: 'did' }),
295295- debug: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.lexMap()),
296296- avatar: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'uri' })),
297297- handle: /*#__PURE__*/ l.string({ format: 'handle' }),
298298- labels: /*#__PURE__*/ l.optional(
299299- /*#__PURE__*/ l.array(
300300- /*#__PURE__*/ l.ref<LabelDefs.Label>((() => LabelDefs.label) as any),
301301- ),
302302- ),
303303- status: /*#__PURE__*/ l.optional(
304304- /*#__PURE__*/ l.ref<StatusView>((() => statusView) as any),
305305- ),
306306- viewer: /*#__PURE__*/ l.optional(
307307- /*#__PURE__*/ l.ref<ViewerState>((() => viewerState) as any),
308308- ),
309309- pronouns: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
310310- createdAt: /*#__PURE__*/ l.optional(
311311- /*#__PURE__*/ l.string({ format: 'datetime' }),
312312- ),
313313- indexedAt: /*#__PURE__*/ l.optional(
314314- /*#__PURE__*/ l.string({ format: 'datetime' }),
315315- ),
316316- associated: /*#__PURE__*/ l.optional(
317317- /*#__PURE__*/ l.ref<ProfileAssociated>((() => profileAssociated) as any),
318318- ),
319319- description: /*#__PURE__*/ l.optional(
320320- /*#__PURE__*/ l.string({ maxLength: 2560, maxGraphemes: 256 }),
321321- ),
322322- displayName: /*#__PURE__*/ l.optional(
323323- /*#__PURE__*/ l.string({ maxLength: 640, maxGraphemes: 64 }),
324324- ),
325325- verification: /*#__PURE__*/ l.optional(
326326- /*#__PURE__*/ l.ref<VerificationState>((() => verificationState) as any),
327327- ),
328328- }),
329329-)
330330-331331-export { profileView }
332332-333333-/** Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. */
334334-type ViewerState = {
335335- $type?: 'app.bsky.actor.defs#viewerState'
336336- muted?: boolean
337337- blocking?: l.AtUriString
338338- blockedBy?: boolean
339339- following?: l.AtUriString
340340- followedBy?: l.AtUriString
341341- mutedByList?: GraphDefs.ListViewBasic
342342- blockingByList?: GraphDefs.ListViewBasic
343343-344344- /**
345345- * This property is present only in selected cases, as an optimization.
346346- */
347347- knownFollowers?: KnownFollowers
348348-349349- /**
350350- * This property is present only in selected cases, as an optimization.
351351- */
352352- activitySubscription?: NotificationDefs.ActivitySubscription
353353-}
354354-355355-export type { ViewerState }
356356-357357-/** Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. */
358358-const viewerState = /*#__PURE__*/ l.typedObject<ViewerState>(
359359- $nsid,
360360- 'viewerState',
361361- /*#__PURE__*/ l.object({
362362- muted: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
363363- blocking: /*#__PURE__*/ l.optional(
364364- /*#__PURE__*/ l.string({ format: 'at-uri' }),
365365- ),
366366- blockedBy: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
367367- following: /*#__PURE__*/ l.optional(
368368- /*#__PURE__*/ l.string({ format: 'at-uri' }),
369369- ),
370370- followedBy: /*#__PURE__*/ l.optional(
371371- /*#__PURE__*/ l.string({ format: 'at-uri' }),
372372- ),
373373- mutedByList: /*#__PURE__*/ l.optional(
374374- /*#__PURE__*/ l.ref<GraphDefs.ListViewBasic>(
375375- (() => GraphDefs.listViewBasic) as any,
376376- ),
377377- ),
378378- blockingByList: /*#__PURE__*/ l.optional(
379379- /*#__PURE__*/ l.ref<GraphDefs.ListViewBasic>(
380380- (() => GraphDefs.listViewBasic) as any,
381381- ),
382382- ),
383383- knownFollowers: /*#__PURE__*/ l.optional(
384384- /*#__PURE__*/ l.ref<KnownFollowers>((() => knownFollowers) as any),
385385- ),
386386- activitySubscription: /*#__PURE__*/ l.optional(
387387- /*#__PURE__*/ l.ref<NotificationDefs.ActivitySubscription>(
388388- (() => NotificationDefs.activitySubscription) as any,
389389- ),
390390- ),
391391- }),
392392-)
393393-394394-export { viewerState }
395395-396396-type FeedViewPref = {
397397- $type?: 'app.bsky.actor.defs#feedViewPref'
398398-399399- /**
400400- * The URI of the feed, or an identifier which describes the feed.
401401- */
402402- feed: string
403403-404404- /**
405405- * Hide replies in the feed.
406406- */
407407- hideReplies?: boolean
408408-409409- /**
410410- * Hide reposts in the feed.
411411- */
412412- hideReposts?: boolean
413413-414414- /**
415415- * Hide quote posts in the feed.
416416- */
417417- hideQuotePosts?: boolean
418418-419419- /**
420420- * Hide replies in the feed if they do not have this number of likes.
421421- */
422422- hideRepliesByLikeCount?: number
423423-424424- /**
425425- * Hide replies in the feed if they are not by followed users.
426426- */
427427- hideRepliesByUnfollowed?: boolean
428428-}
429429-430430-export type { FeedViewPref }
431431-432432-const feedViewPref = /*#__PURE__*/ l.typedObject<FeedViewPref>(
433433- $nsid,
434434- 'feedViewPref',
435435- /*#__PURE__*/ l.object({
436436- feed: /*#__PURE__*/ l.string(),
437437- hideReplies: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
438438- hideReposts: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
439439- hideQuotePosts: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
440440- hideRepliesByLikeCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
441441- hideRepliesByUnfollowed: /*#__PURE__*/ l.optional(
442442- /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.boolean(), true),
443443- ),
444444- }),
445445-)
446446-447447-export { feedViewPref }
448448-449449-type LabelersPref = {
450450- $type?: 'app.bsky.actor.defs#labelersPref'
451451- labelers: LabelerPrefItem[]
452452-}
453453-454454-export type { LabelersPref }
455455-456456-const labelersPref = /*#__PURE__*/ l.typedObject<LabelersPref>(
457457- $nsid,
458458- 'labelersPref',
459459- /*#__PURE__*/ l.object({
460460- labelers: /*#__PURE__*/ l.array(
461461- /*#__PURE__*/ l.ref<LabelerPrefItem>((() => labelerPrefItem) as any),
462462- ),
463463- }),
464464-)
465465-466466-export { labelersPref }
467467-468468-type InterestsPref = {
469469- $type?: 'app.bsky.actor.defs#interestsPref'
470470-471471- /**
472472- * A list of tags which describe the account owner's interests gathered during onboarding.
473473- */
474474- tags: string[]
475475-}
476476-477477-export type { InterestsPref }
478478-479479-const interestsPref = /*#__PURE__*/ l.typedObject<InterestsPref>(
480480- $nsid,
481481- 'interestsPref',
482482- /*#__PURE__*/ l.object({
483483- tags: /*#__PURE__*/ l.array(
484484- /*#__PURE__*/ l.string({ maxLength: 640, maxGraphemes: 64 }),
485485- { maxLength: 100 },
486486- ),
487487- }),
488488-)
489489-490490-export { interestsPref }
491491-492492-/** The subject's followers whom you also follow */
493493-type KnownFollowers = {
494494- $type?: 'app.bsky.actor.defs#knownFollowers'
495495- count: number
496496- followers: ProfileViewBasic[]
497497-}
498498-499499-export type { KnownFollowers }
500500-501501-/** The subject's followers whom you also follow */
502502-const knownFollowers = /*#__PURE__*/ l.typedObject<KnownFollowers>(
503503- $nsid,
504504- 'knownFollowers',
505505- /*#__PURE__*/ l.object({
506506- count: /*#__PURE__*/ l.integer(),
507507- followers: /*#__PURE__*/ l.array(
508508- /*#__PURE__*/ l.ref<ProfileViewBasic>((() => profileViewBasic) as any),
509509- { maxLength: 5, minLength: 0 },
510510- ),
511511- }),
512512-)
513513-514514-export { knownFollowers }
515515-516516-type MutedWordsPref = {
517517- $type?: 'app.bsky.actor.defs#mutedWordsPref'
518518-519519- /**
520520- * A list of words the account owner has muted.
521521- */
522522- items: MutedWord[]
523523-}
524524-525525-export type { MutedWordsPref }
526526-527527-const mutedWordsPref = /*#__PURE__*/ l.typedObject<MutedWordsPref>(
528528- $nsid,
529529- 'mutedWordsPref',
530530- /*#__PURE__*/ l.object({
531531- items: /*#__PURE__*/ l.array(
532532- /*#__PURE__*/ l.ref<MutedWord>((() => mutedWord) as any),
533533- ),
534534- }),
535535-)
536536-537537-export { mutedWordsPref }
538538-539539-type SavedFeedsPref = {
540540- $type?: 'app.bsky.actor.defs#savedFeedsPref'
541541- saved: l.AtUriString[]
542542- pinned: l.AtUriString[]
543543- timelineIndex?: number
544544-}
545545-546546-export type { SavedFeedsPref }
547547-548548-const savedFeedsPref = /*#__PURE__*/ l.typedObject<SavedFeedsPref>(
549549- $nsid,
550550- 'savedFeedsPref',
551551- /*#__PURE__*/ l.object({
552552- saved: /*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ format: 'at-uri' })),
553553- pinned: /*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ format: 'at-uri' })),
554554- timelineIndex: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
555555- }),
556556-)
557557-558558-export { savedFeedsPref }
559559-560560-type ThreadViewPref = {
561561- $type?: 'app.bsky.actor.defs#threadViewPref'
562562-563563- /**
564564- * Sorting mode for threads.
565565- */
566566- sort?:
567567- | 'oldest'
568568- | 'newest'
569569- | 'most-likes'
570570- | 'random'
571571- | 'hotness'
572572- | l.UnknownString
573573-}
574574-575575-export type { ThreadViewPref }
576576-577577-const threadViewPref = /*#__PURE__*/ l.typedObject<ThreadViewPref>(
578578- $nsid,
579579- 'threadViewPref',
580580- /*#__PURE__*/ l.object({
581581- sort: /*#__PURE__*/ l.optional(
582582- /*#__PURE__*/ l.string<{
583583- knownValues: ['oldest', 'newest', 'most-likes', 'random', 'hotness']
584584- }>(),
585585- ),
586586- }),
587587-)
588588-589589-export { threadViewPref }
590590-591591-/** Read-only preference containing value(s) inferred from the user's declared birthdate. Absence of this preference object in the response indicates that the user has not made a declaration. */
592592-type DeclaredAgePref = {
593593- $type?: 'app.bsky.actor.defs#declaredAgePref'
594594-595595- /**
596596- * Indicates if the user has declared that they are over 13 years of age.
597597- */
598598- isOverAge13?: boolean
599599-600600- /**
601601- * Indicates if the user has declared that they are over 16 years of age.
602602- */
603603- isOverAge16?: boolean
604604-605605- /**
606606- * Indicates if the user has declared that they are over 18 years of age.
607607- */
608608- isOverAge18?: boolean
609609-}
610610-611611-export type { DeclaredAgePref }
612612-613613-/** Read-only preference containing value(s) inferred from the user's declared birthdate. Absence of this preference object in the response indicates that the user has not made a declaration. */
614614-const declaredAgePref = /*#__PURE__*/ l.typedObject<DeclaredAgePref>(
615615- $nsid,
616616- 'declaredAgePref',
617617- /*#__PURE__*/ l.object({
618618- isOverAge13: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
619619- isOverAge16: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
620620- isOverAge18: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
621621- }),
622622-)
623623-624624-export { declaredAgePref }
625625-626626-type HiddenPostsPref = {
627627- $type?: 'app.bsky.actor.defs#hiddenPostsPref'
628628-629629- /**
630630- * A list of URIs of posts the account owner has hidden.
631631- */
632632- items: l.AtUriString[]
633633-}
634634-635635-export type { HiddenPostsPref }
636636-637637-const hiddenPostsPref = /*#__PURE__*/ l.typedObject<HiddenPostsPref>(
638638- $nsid,
639639- 'hiddenPostsPref',
640640- /*#__PURE__*/ l.object({
641641- items: /*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ format: 'at-uri' })),
642642- }),
643643-)
644644-645645-export { hiddenPostsPref }
646646-647647-type LabelerPrefItem = {
648648- $type?: 'app.bsky.actor.defs#labelerPrefItem'
649649- did: l.DidString
650650-}
651651-652652-export type { LabelerPrefItem }
653653-654654-const labelerPrefItem = /*#__PURE__*/ l.typedObject<LabelerPrefItem>(
655655- $nsid,
656656- 'labelerPrefItem',
657657- /*#__PURE__*/ l.object({ did: /*#__PURE__*/ l.string({ format: 'did' }) }),
658658-)
659659-660660-export { labelerPrefItem }
661661-662662-type MutedWordTarget = 'content' | 'tag' | l.UnknownString
663663-664664-export type { MutedWordTarget }
665665-666666-const mutedWordTarget = /*#__PURE__*/ l.string<{
667667- maxLength: 640
668668- knownValues: ['content', 'tag']
669669- maxGraphemes: 64
670670-}>({ maxLength: 640, maxGraphemes: 64 })
671671-672672-export { mutedWordTarget }
673673-674674-type AdultContentPref = {
675675- $type?: 'app.bsky.actor.defs#adultContentPref'
676676- enabled: boolean
677677-}
678678-679679-export type { AdultContentPref }
680680-681681-const adultContentPref = /*#__PURE__*/ l.typedObject<AdultContentPref>(
682682- $nsid,
683683- 'adultContentPref',
684684- /*#__PURE__*/ l.object({
685685- enabled: /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.boolean(), false),
686686- }),
687687-)
688688-689689-export { adultContentPref }
690690-691691-/** A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this. */
692692-type BskyAppStatePref = {
693693- $type?: 'app.bsky.actor.defs#bskyAppStatePref'
694694-695695- /**
696696- * Storage for NUXs the user has encountered.
697697- */
698698- nuxs?: Nux[]
699699-700700- /**
701701- * An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user.
702702- */
703703- queuedNudges?: string[]
704704- activeProgressGuide?: BskyAppProgressGuide
705705-}
706706-707707-export type { BskyAppStatePref }
708708-709709-/** A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this. */
710710-const bskyAppStatePref = /*#__PURE__*/ l.typedObject<BskyAppStatePref>(
711711- $nsid,
712712- 'bskyAppStatePref',
713713- /*#__PURE__*/ l.object({
714714- nuxs: /*#__PURE__*/ l.optional(
715715- /*#__PURE__*/ l.array(/*#__PURE__*/ l.ref<Nux>((() => nux) as any), {
716716- maxLength: 100,
717717- }),
718718- ),
719719- queuedNudges: /*#__PURE__*/ l.optional(
720720- /*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ maxLength: 100 }), {
721721- maxLength: 1000,
722722- }),
723723- ),
724724- activeProgressGuide: /*#__PURE__*/ l.optional(
725725- /*#__PURE__*/ l.ref<BskyAppProgressGuide>(
726726- (() => bskyAppProgressGuide) as any,
727727- ),
728728- ),
729729- }),
730730-)
731731-732732-export { bskyAppStatePref }
733733-734734-type ContentLabelPref = {
735735- $type?: 'app.bsky.actor.defs#contentLabelPref'
736736- label: string
737737-738738- /**
739739- * Which labeler does this preference apply to? If undefined, applies globally.
740740- */
741741- labelerDid?: l.DidString
742742- visibility: 'ignore' | 'show' | 'warn' | 'hide' | l.UnknownString
743743-}
744744-745745-export type { ContentLabelPref }
746746-747747-const contentLabelPref = /*#__PURE__*/ l.typedObject<ContentLabelPref>(
748748- $nsid,
749749- 'contentLabelPref',
750750- /*#__PURE__*/ l.object({
751751- label: /*#__PURE__*/ l.string(),
752752- labelerDid: /*#__PURE__*/ l.optional(
753753- /*#__PURE__*/ l.string({ format: 'did' }),
754754- ),
755755- visibility: /*#__PURE__*/ l.string<{
756756- knownValues: ['ignore', 'show', 'warn', 'hide']
757757- }>(),
758758- }),
759759-)
760760-761761-export { contentLabelPref }
762762-763763-type ProfileViewBasic = {
764764- $type?: 'app.bsky.actor.defs#profileViewBasic'
765765- did: l.DidString
766766-767767- /**
768768- * Debug information for internal development
769769- */
770770- debug?: l.LexMap
771771- avatar?: l.UriString
772772- handle: l.HandleString
773773- labels?: LabelDefs.Label[]
774774- status?: StatusView
775775- viewer?: ViewerState
776776- pronouns?: string
777777- createdAt?: l.DatetimeString
778778- associated?: ProfileAssociated
779779- displayName?: string
780780- verification?: VerificationState
781781-}
782782-783783-export type { ProfileViewBasic }
784784-785785-const profileViewBasic = /*#__PURE__*/ l.typedObject<ProfileViewBasic>(
786786- $nsid,
787787- 'profileViewBasic',
788788- /*#__PURE__*/ l.object({
789789- did: /*#__PURE__*/ l.string({ format: 'did' }),
790790- debug: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.lexMap()),
791791- avatar: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'uri' })),
792792- handle: /*#__PURE__*/ l.string({ format: 'handle' }),
793793- labels: /*#__PURE__*/ l.optional(
794794- /*#__PURE__*/ l.array(
795795- /*#__PURE__*/ l.ref<LabelDefs.Label>((() => LabelDefs.label) as any),
796796- ),
797797- ),
798798- status: /*#__PURE__*/ l.optional(
799799- /*#__PURE__*/ l.ref<StatusView>((() => statusView) as any),
800800- ),
801801- viewer: /*#__PURE__*/ l.optional(
802802- /*#__PURE__*/ l.ref<ViewerState>((() => viewerState) as any),
803803- ),
804804- pronouns: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
805805- createdAt: /*#__PURE__*/ l.optional(
806806- /*#__PURE__*/ l.string({ format: 'datetime' }),
807807- ),
808808- associated: /*#__PURE__*/ l.optional(
809809- /*#__PURE__*/ l.ref<ProfileAssociated>((() => profileAssociated) as any),
810810- ),
811811- displayName: /*#__PURE__*/ l.optional(
812812- /*#__PURE__*/ l.string({ maxLength: 640, maxGraphemes: 64 }),
813813- ),
814814- verification: /*#__PURE__*/ l.optional(
815815- /*#__PURE__*/ l.ref<VerificationState>((() => verificationState) as any),
816816- ),
817817- }),
818818-)
819819-820820-export { profileViewBasic }
821821-822822-type SavedFeedsPrefV2 = {
823823- $type?: 'app.bsky.actor.defs#savedFeedsPrefV2'
824824- items: SavedFeed[]
825825-}
826826-827827-export type { SavedFeedsPrefV2 }
828828-829829-const savedFeedsPrefV2 = /*#__PURE__*/ l.typedObject<SavedFeedsPrefV2>(
830830- $nsid,
831831- 'savedFeedsPrefV2',
832832- /*#__PURE__*/ l.object({
833833- items: /*#__PURE__*/ l.array(
834834- /*#__PURE__*/ l.ref<SavedFeed>((() => savedFeed) as any),
835835- ),
836836- }),
837837-)
838838-839839-export { savedFeedsPrefV2 }
840840-841841-/** An individual verification for an associated subject. */
842842-type VerificationView = {
843843- $type?: 'app.bsky.actor.defs#verificationView'
844844-845845- /**
846846- * The AT-URI of the verification record.
847847- */
848848- uri: l.AtUriString
849849-850850- /**
851851- * The user who issued this verification.
852852- */
853853- issuer: l.DidString
854854-855855- /**
856856- * True if the verification passes validation, otherwise false.
857857- */
858858- isValid: boolean
859859-860860- /**
861861- * Timestamp when the verification was created.
862862- */
863863- createdAt: l.DatetimeString
864864-}
865865-866866-export type { VerificationView }
867867-868868-/** An individual verification for an associated subject. */
869869-const verificationView = /*#__PURE__*/ l.typedObject<VerificationView>(
870870- $nsid,
871871- 'verificationView',
872872- /*#__PURE__*/ l.object({
873873- uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),
874874- issuer: /*#__PURE__*/ l.string({ format: 'did' }),
875875- isValid: /*#__PURE__*/ l.boolean(),
876876- createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
877877- }),
878878-)
879879-880880-export { verificationView }
881881-882882-type ProfileAssociated = {
883883- $type?: 'app.bsky.actor.defs#profileAssociated'
884884- chat?: ProfileAssociatedChat
885885- germ?: ProfileAssociatedGerm
886886- lists?: number
887887- labeler?: boolean
888888- feedgens?: number
889889- starterPacks?: number
890890- activitySubscription?: ProfileAssociatedActivitySubscription
891891-}
892892-893893-export type { ProfileAssociated }
894894-895895-const profileAssociated = /*#__PURE__*/ l.typedObject<ProfileAssociated>(
896896- $nsid,
897897- 'profileAssociated',
898898- /*#__PURE__*/ l.object({
899899- chat: /*#__PURE__*/ l.optional(
900900- /*#__PURE__*/ l.ref<ProfileAssociatedChat>(
901901- (() => profileAssociatedChat) as any,
902902- ),
903903- ),
904904- germ: /*#__PURE__*/ l.optional(
905905- /*#__PURE__*/ l.ref<ProfileAssociatedGerm>(
906906- (() => profileAssociatedGerm) as any,
907907- ),
908908- ),
909909- lists: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
910910- labeler: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
911911- feedgens: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
912912- starterPacks: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
913913- activitySubscription: /*#__PURE__*/ l.optional(
914914- /*#__PURE__*/ l.ref<ProfileAssociatedActivitySubscription>(
915915- (() => profileAssociatedActivitySubscription) as any,
916916- ),
917917- ),
918918- }),
919919-)
920920-921921-export { profileAssociated }
922922-923923-/** Preferences for how verified accounts appear in the app. */
924924-type VerificationPrefs = {
925925- $type?: 'app.bsky.actor.defs#verificationPrefs'
926926-927927- /**
928928- * Hide the blue check badges for verified accounts and trusted verifiers.
929929- */
930930- hideBadges?: boolean
931931-}
932932-933933-export type { VerificationPrefs }
934934-935935-/** Preferences for how verified accounts appear in the app. */
936936-const verificationPrefs = /*#__PURE__*/ l.typedObject<VerificationPrefs>(
937937- $nsid,
938938- 'verificationPrefs',
939939- /*#__PURE__*/ l.object({
940940- hideBadges: /*#__PURE__*/ l.optional(
941941- /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.boolean(), false),
942942- ),
943943- }),
944944-)
945945-946946-export { verificationPrefs }
947947-948948-/** Represents the verification information about the user this object is attached to. */
949949-type VerificationState = {
950950- $type?: 'app.bsky.actor.defs#verificationState'
951951-952952- /**
953953- * All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included.
954954- */
955955- verifications: VerificationView[]
956956-957957- /**
958958- * The user's status as a verified account.
959959- */
960960- verifiedStatus: 'valid' | 'invalid' | 'none' | l.UnknownString
961961-962962- /**
963963- * The user's status as a trusted verifier.
964964- */
965965- trustedVerifierStatus: 'valid' | 'invalid' | 'none' | l.UnknownString
966966-}
967967-968968-export type { VerificationState }
969969-970970-/** Represents the verification information about the user this object is attached to. */
971971-const verificationState = /*#__PURE__*/ l.typedObject<VerificationState>(
972972- $nsid,
973973- 'verificationState',
974974- /*#__PURE__*/ l.object({
975975- verifications: /*#__PURE__*/ l.array(
976976- /*#__PURE__*/ l.ref<VerificationView>((() => verificationView) as any),
977977- ),
978978- verifiedStatus: /*#__PURE__*/ l.string<{
979979- knownValues: ['valid', 'invalid', 'none']
980980- }>(),
981981- trustedVerifierStatus: /*#__PURE__*/ l.string<{
982982- knownValues: ['valid', 'invalid', 'none']
983983- }>(),
984984- }),
985985-)
986986-987987-export { verificationState }
988988-989989-type PersonalDetailsPref = {
990990- $type?: 'app.bsky.actor.defs#personalDetailsPref'
991991-992992- /**
993993- * The birth date of account owner.
994994- */
995995- birthDate?: l.DatetimeString
996996-}
997997-998998-export type { PersonalDetailsPref }
999999-10001000-const personalDetailsPref = /*#__PURE__*/ l.typedObject<PersonalDetailsPref>(
10011001- $nsid,
10021002- 'personalDetailsPref',
10031003- /*#__PURE__*/ l.object({
10041004- birthDate: /*#__PURE__*/ l.optional(
10051005- /*#__PURE__*/ l.string({ format: 'datetime' }),
10061006- ),
10071007- }),
10081008-)
10091009-10101010-export { personalDetailsPref }
10111011-10121012-type ProfileViewDetailed = {
10131013- $type?: 'app.bsky.actor.defs#profileViewDetailed'
10141014- did: l.DidString
10151015-10161016- /**
10171017- * Debug information for internal development
10181018- */
10191019- debug?: l.LexMap
10201020- avatar?: l.UriString
10211021- banner?: l.UriString
10221022- handle: l.HandleString
10231023- labels?: LabelDefs.Label[]
10241024- status?: StatusView
10251025- viewer?: ViewerState
10261026- website?: l.UriString
10271027- pronouns?: string
10281028- createdAt?: l.DatetimeString
10291029- indexedAt?: l.DatetimeString
10301030- associated?: ProfileAssociated
10311031- pinnedPost?: RepoStrongRef.Main
10321032- postsCount?: number
10331033- description?: string
10341034- displayName?: string
10351035- followsCount?: number
10361036- verification?: VerificationState
10371037- followersCount?: number
10381038- joinedViaStarterPack?: GraphDefs.StarterPackViewBasic
10391039-}
10401040-10411041-export type { ProfileViewDetailed }
10421042-10431043-const profileViewDetailed = /*#__PURE__*/ l.typedObject<ProfileViewDetailed>(
10441044- $nsid,
10451045- 'profileViewDetailed',
10461046- /*#__PURE__*/ l.object({
10471047- did: /*#__PURE__*/ l.string({ format: 'did' }),
10481048- debug: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.lexMap()),
10491049- avatar: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'uri' })),
10501050- banner: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'uri' })),
10511051- handle: /*#__PURE__*/ l.string({ format: 'handle' }),
10521052- labels: /*#__PURE__*/ l.optional(
10531053- /*#__PURE__*/ l.array(
10541054- /*#__PURE__*/ l.ref<LabelDefs.Label>((() => LabelDefs.label) as any),
10551055- ),
10561056- ),
10571057- status: /*#__PURE__*/ l.optional(
10581058- /*#__PURE__*/ l.ref<StatusView>((() => statusView) as any),
10591059- ),
10601060- viewer: /*#__PURE__*/ l.optional(
10611061- /*#__PURE__*/ l.ref<ViewerState>((() => viewerState) as any),
10621062- ),
10631063- website: /*#__PURE__*/ l.optional(
10641064- /*#__PURE__*/ l.string({ format: 'uri' }),
10651065- ),
10661066- pronouns: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
10671067- createdAt: /*#__PURE__*/ l.optional(
10681068- /*#__PURE__*/ l.string({ format: 'datetime' }),
10691069- ),
10701070- indexedAt: /*#__PURE__*/ l.optional(
10711071- /*#__PURE__*/ l.string({ format: 'datetime' }),
10721072- ),
10731073- associated: /*#__PURE__*/ l.optional(
10741074- /*#__PURE__*/ l.ref<ProfileAssociated>((() => profileAssociated) as any),
10751075- ),
10761076- pinnedPost: /*#__PURE__*/ l.optional(
10771077- /*#__PURE__*/ l.ref<RepoStrongRef.Main>(
10781078- (() => RepoStrongRef.main) as any,
10791079- ),
10801080- ),
10811081- postsCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
10821082- description: /*#__PURE__*/ l.optional(
10831083- /*#__PURE__*/ l.string({ maxLength: 2560, maxGraphemes: 256 }),
10841084- ),
10851085- displayName: /*#__PURE__*/ l.optional(
10861086- /*#__PURE__*/ l.string({ maxLength: 640, maxGraphemes: 64 }),
10871087- ),
10881088- followsCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
10891089- verification: /*#__PURE__*/ l.optional(
10901090- /*#__PURE__*/ l.ref<VerificationState>((() => verificationState) as any),
10911091- ),
10921092- followersCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
10931093- joinedViaStarterPack: /*#__PURE__*/ l.optional(
10941094- /*#__PURE__*/ l.ref<GraphDefs.StarterPackViewBasic>(
10951095- (() => GraphDefs.starterPackViewBasic) as any,
10961096- ),
10971097- ),
10981098- }),
10991099-)
11001100-11011101-export { profileViewDetailed }
11021102-11031103-/** If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress. */
11041104-type BskyAppProgressGuide = {
11051105- $type?: 'app.bsky.actor.defs#bskyAppProgressGuide'
11061106- guide: string
11071107-}
11081108-11091109-export type { BskyAppProgressGuide }
11101110-11111111-/** If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress. */
11121112-const bskyAppProgressGuide = /*#__PURE__*/ l.typedObject<BskyAppProgressGuide>(
11131113- $nsid,
11141114- 'bskyAppProgressGuide',
11151115- /*#__PURE__*/ l.object({ guide: /*#__PURE__*/ l.string({ maxLength: 100 }) }),
11161116-)
11171117-11181118-export { bskyAppProgressGuide }
11191119-11201120-/** Preferences for live events. */
11211121-type LiveEventPreferences = {
11221122- $type?: 'app.bsky.actor.defs#liveEventPreferences'
11231123-11241124- /**
11251125- * Whether to hide all feeds from live events.
11261126- */
11271127- hideAllFeeds?: boolean
11281128-11291129- /**
11301130- * A list of feed IDs that the user has hidden from live events.
11311131- */
11321132- hiddenFeedIds?: string[]
11331133-}
11341134-11351135-export type { LiveEventPreferences }
11361136-11371137-/** Preferences for live events. */
11381138-const liveEventPreferences = /*#__PURE__*/ l.typedObject<LiveEventPreferences>(
11391139- $nsid,
11401140- 'liveEventPreferences',
11411141- /*#__PURE__*/ l.object({
11421142- hideAllFeeds: /*#__PURE__*/ l.optional(
11431143- /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.boolean(), false),
11441144- ),
11451145- hiddenFeedIds: /*#__PURE__*/ l.optional(
11461146- /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),
11471147- ),
11481148- }),
11491149-)
11501150-11511151-export { liveEventPreferences }
11521152-11531153-type ProfileAssociatedChat = {
11541154- $type?: 'app.bsky.actor.defs#profileAssociatedChat'
11551155- allowIncoming: 'all' | 'none' | 'following' | l.UnknownString
11561156-}
11571157-11581158-export type { ProfileAssociatedChat }
11591159-11601160-const profileAssociatedChat =
11611161- /*#__PURE__*/ l.typedObject<ProfileAssociatedChat>(
11621162- $nsid,
11631163- 'profileAssociatedChat',
11641164- /*#__PURE__*/ l.object({
11651165- allowIncoming: /*#__PURE__*/ l.string<{
11661166- knownValues: ['all', 'none', 'following']
11671167- }>(),
11681168- }),
11691169- )
11701170-11711171-export { profileAssociatedChat }
11721172-11731173-type ProfileAssociatedGerm = {
11741174- $type?: 'app.bsky.actor.defs#profileAssociatedGerm'
11751175- messageMeUrl: l.UriString
11761176- showButtonTo: 'usersIFollow' | 'everyone' | l.UnknownString
11771177-}
11781178-11791179-export type { ProfileAssociatedGerm }
11801180-11811181-const profileAssociatedGerm =
11821182- /*#__PURE__*/ l.typedObject<ProfileAssociatedGerm>(
11831183- $nsid,
11841184- 'profileAssociatedGerm',
11851185- /*#__PURE__*/ l.object({
11861186- messageMeUrl: /*#__PURE__*/ l.string({ format: 'uri' }),
11871187- showButtonTo: /*#__PURE__*/ l.string<{
11881188- knownValues: ['usersIFollow', 'everyone']
11891189- }>(),
11901190- }),
11911191- )
11921192-11931193-export { profileAssociatedGerm }
11941194-11951195-/** 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. */
11961196-type PostInteractionSettingsPref = {
11971197- $type?: 'app.bsky.actor.defs#postInteractionSettingsPref'
11981198-11991199- /**
12001200- * 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.
12011201- */
12021202- threadgateAllowRules?: (
12031203- | l.$Typed<FeedThreadgate.MentionRule>
12041204- | l.$Typed<FeedThreadgate.FollowerRule>
12051205- | l.$Typed<FeedThreadgate.FollowingRule>
12061206- | l.$Typed<FeedThreadgate.ListRule>
12071207- | l.Unknown$TypedObject
12081208- )[]
12091209-12101210- /**
12111211- * 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.
12121212- */
12131213- postgateEmbeddingRules?: (
12141214- | l.$Typed<FeedPostgate.DisableRule>
12151215- | l.Unknown$TypedObject
12161216- )[]
12171217-}
12181218-12191219-export type { PostInteractionSettingsPref }
12201220-12211221-/** 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. */
12221222-const postInteractionSettingsPref =
12231223- /*#__PURE__*/ l.typedObject<PostInteractionSettingsPref>(
12241224- $nsid,
12251225- 'postInteractionSettingsPref',
12261226- /*#__PURE__*/ l.object({
12271227- threadgateAllowRules: /*#__PURE__*/ l.optional(
12281228- /*#__PURE__*/ l.array(
12291229- /*#__PURE__*/ l.typedUnion(
12301230- [
12311231- /*#__PURE__*/ l.typedRef<FeedThreadgate.MentionRule>(
12321232- (() => FeedThreadgate.mentionRule) as any,
12331233- ),
12341234- /*#__PURE__*/ l.typedRef<FeedThreadgate.FollowerRule>(
12351235- (() => FeedThreadgate.followerRule) as any,
12361236- ),
12371237- /*#__PURE__*/ l.typedRef<FeedThreadgate.FollowingRule>(
12381238- (() => FeedThreadgate.followingRule) as any,
12391239- ),
12401240- /*#__PURE__*/ l.typedRef<FeedThreadgate.ListRule>(
12411241- (() => FeedThreadgate.listRule) as any,
12421242- ),
12431243- ],
12441244- false,
12451245- ),
12461246- { maxLength: 5 },
12471247- ),
12481248- ),
12491249- postgateEmbeddingRules: /*#__PURE__*/ l.optional(
12501250- /*#__PURE__*/ l.array(
12511251- /*#__PURE__*/ l.typedUnion(
12521252- [
12531253- /*#__PURE__*/ l.typedRef<FeedPostgate.DisableRule>(
12541254- (() => FeedPostgate.disableRule) as any,
12551255- ),
12561256- ],
12571257- false,
12581258- ),
12591259- { maxLength: 5 },
12601260- ),
12611261- ),
12621262- }),
12631263- )
12641264-12651265-export { postInteractionSettingsPref }
12661266-12671267-type ProfileAssociatedActivitySubscription = {
12681268- $type?: 'app.bsky.actor.defs#profileAssociatedActivitySubscription'
12691269- allowSubscriptions: 'followers' | 'mutuals' | 'none' | l.UnknownString
12701270-}
12711271-12721272-export type { ProfileAssociatedActivitySubscription }
12731273-12741274-const profileAssociatedActivitySubscription =
12751275- /*#__PURE__*/ l.typedObject<ProfileAssociatedActivitySubscription>(
12761276- $nsid,
12771277- 'profileAssociatedActivitySubscription',
12781278- /*#__PURE__*/ l.object({
12791279- allowSubscriptions: /*#__PURE__*/ l.string<{
12801280- knownValues: ['followers', 'mutuals', 'none']
12811281- }>(),
12821282- }),
12831283- )
12841284-12851285-export { profileAssociatedActivitySubscription }
-5
src/lexicons/app/bsky/actor/defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './defs.defs.js'
-83
src/lexicons/app/bsky/actor/status.defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-import { l } from '@atproto/lex'
66-import * as EmbedExternal from '../embed/external.defs.js'
77-88-const $nsid = 'app.bsky.actor.status'
99-1010-export { $nsid }
1111-1212-/** Advertises an account as currently offering live content. */
1313-type Live = 'app.bsky.actor.status#live'
1414-1515-export type { Live }
1616-1717-/** Advertises an account as currently offering live content. */
1818-const live = /*#__PURE__*/ l.token($nsid, 'live')
1919-2020-export { live }
2121-2222-/** A declaration of a Bluesky account status. */
2323-type Main = {
2424- $type: 'app.bsky.actor.status'
2525-2626- /**
2727- * An optional embed associated with the status.
2828- */
2929- embed?: l.$Typed<EmbedExternal.Main> | l.Unknown$TypedObject
3030-3131- /**
3232- * The status for the account.
3333- */
3434- status: 'app.bsky.actor.status#live' | l.UnknownString
3535- createdAt: l.DatetimeString
3636-3737- /**
3838- * The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.
3939- */
4040- durationMinutes?: number
4141-}
4242-4343-export type { Main }
4444-4545-/** A declaration of a Bluesky account status. */
4646-const main = /*#__PURE__*/ l.record<'literal:self', Main>(
4747- 'literal:self',
4848- $nsid,
4949- /*#__PURE__*/ l.object({
5050- embed: /*#__PURE__*/ l.optional(
5151- /*#__PURE__*/ l.typedUnion(
5252- [
5353- /*#__PURE__*/ l.typedRef<EmbedExternal.Main>(
5454- (() => EmbedExternal.main) as any,
5555- ),
5656- ],
5757- false,
5858- ),
5959- ),
6060- status: /*#__PURE__*/ l.string<{
6161- knownValues: ['app.bsky.actor.status#live']
6262- }>(),
6363- createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
6464- durationMinutes: /*#__PURE__*/ l.optional(
6565- /*#__PURE__*/ l.integer({ minimum: 1 }),
6666- ),
6767- }),
6868-)
6969-7070-export { main }
7171-7272-export const $type = $nsid
7373-export const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)
7474-export const $build = /*#__PURE__*/ main.build.bind(main)
7575-export const $assert = /*#__PURE__*/ main.assert.bind(main)
7676-export const $check = /*#__PURE__*/ main.check.bind(main)
7777-export const $cast = /*#__PURE__*/ main.cast.bind(main)
7878-export const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)
7979-export const $matches = /*#__PURE__*/ main.matches.bind(main)
8080-export const $parse = /*#__PURE__*/ main.parse.bind(main)
8181-export const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)
8282-export const $validate = /*#__PURE__*/ main.validate.bind(main)
8383-export const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)
-6
src/lexicons/app/bsky/actor/status.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './status.defs.js'
66-export { main as default } from './status.defs.js'
-30
src/lexicons/app/bsky/embed/defs.defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-import { l } from '@atproto/lex'
66-77-const $nsid = 'app.bsky.embed.defs'
88-99-export { $nsid }
1010-1111-/** width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. */
1212-type AspectRatio = {
1313- $type?: 'app.bsky.embed.defs#aspectRatio'
1414- width: number
1515- height: number
1616-}
1717-1818-export type { AspectRatio }
1919-2020-/** width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. */
2121-const aspectRatio = /*#__PURE__*/ l.typedObject<AspectRatio>(
2222- $nsid,
2323- 'aspectRatio',
2424- /*#__PURE__*/ l.object({
2525- width: /*#__PURE__*/ l.integer({ minimum: 1 }),
2626- height: /*#__PURE__*/ l.integer({ minimum: 1 }),
2727- }),
2828-)
2929-3030-export { aspectRatio }
-5
src/lexicons/app/bsky/embed/defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './defs.defs.js'
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './external.defs.js'
66-export { main as default } from './external.defs.js'
-129
src/lexicons/app/bsky/embed/images.defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-import { l } from '@atproto/lex'
66-import * as EmbedDefs from './defs.defs.js'
77-88-const $nsid = 'app.bsky.embed.images'
99-1010-export { $nsid }
1111-1212-type Main = { $type?: 'app.bsky.embed.images'; images: Image[] }
1313-1414-export type { Main }
1515-1616-const main = /*#__PURE__*/ l.typedObject<Main>(
1717- $nsid,
1818- 'main',
1919- /*#__PURE__*/ l.object({
2020- images: /*#__PURE__*/ l.array(
2121- /*#__PURE__*/ l.ref<Image>((() => image) as any),
2222- { maxLength: 4 },
2323- ),
2424- }),
2525-)
2626-2727-export { main }
2828-2929-export const $type = $nsid
3030-export const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)
3131-export const $build = /*#__PURE__*/ main.build.bind(main)
3232-export const $assert = /*#__PURE__*/ main.assert.bind(main)
3333-export const $check = /*#__PURE__*/ main.check.bind(main)
3434-export const $cast = /*#__PURE__*/ main.cast.bind(main)
3535-export const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)
3636-export const $matches = /*#__PURE__*/ main.matches.bind(main)
3737-export const $parse = /*#__PURE__*/ main.parse.bind(main)
3838-export const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)
3939-export const $validate = /*#__PURE__*/ main.validate.bind(main)
4040-export const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)
4141-4242-type View = { $type?: 'app.bsky.embed.images#view'; images: ViewImage[] }
4343-4444-export type { View }
4545-4646-const view = /*#__PURE__*/ l.typedObject<View>(
4747- $nsid,
4848- 'view',
4949- /*#__PURE__*/ l.object({
5050- images: /*#__PURE__*/ l.array(
5151- /*#__PURE__*/ l.ref<ViewImage>((() => viewImage) as any),
5252- { maxLength: 4 },
5353- ),
5454- }),
5555-)
5656-5757-export { view }
5858-5959-type Image = {
6060- $type?: 'app.bsky.embed.images#image'
6161-6262- /**
6363- * Alt text description of the image, for accessibility.
6464- */
6565- alt: string
6666-6767- /**
6868- * The raw image file. May be up to 2 MB, formerly limited to 1 MB.
6969- */
7070- image: l.BlobRef
7171- aspectRatio?: EmbedDefs.AspectRatio
7272-}
7373-7474-export type { Image }
7575-7676-const image = /*#__PURE__*/ l.typedObject<Image>(
7777- $nsid,
7878- 'image',
7979- /*#__PURE__*/ l.object({
8080- alt: /*#__PURE__*/ l.string(),
8181- image: /*#__PURE__*/ l.blob({ accept: ['image/*'], maxSize: 2000000 }),
8282- aspectRatio: /*#__PURE__*/ l.optional(
8383- /*#__PURE__*/ l.ref<EmbedDefs.AspectRatio>(
8484- (() => EmbedDefs.aspectRatio) as any,
8585- ),
8686- ),
8787- }),
8888-)
8989-9090-export { image }
9191-9292-type ViewImage = {
9393- $type?: 'app.bsky.embed.images#viewImage'
9494-9595- /**
9696- * Alt text description of the image, for accessibility.
9797- */
9898- alt: string
9999-100100- /**
101101- * Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.
102102- */
103103- thumb: l.UriString
104104-105105- /**
106106- * 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.
107107- */
108108- fullsize: l.UriString
109109- aspectRatio?: EmbedDefs.AspectRatio
110110-}
111111-112112-export type { ViewImage }
113113-114114-const viewImage = /*#__PURE__*/ l.typedObject<ViewImage>(
115115- $nsid,
116116- 'viewImage',
117117- /*#__PURE__*/ l.object({
118118- alt: /*#__PURE__*/ l.string(),
119119- thumb: /*#__PURE__*/ l.string({ format: 'uri' }),
120120- fullsize: /*#__PURE__*/ l.string({ format: 'uri' }),
121121- aspectRatio: /*#__PURE__*/ l.optional(
122122- /*#__PURE__*/ l.ref<EmbedDefs.AspectRatio>(
123123- (() => EmbedDefs.aspectRatio) as any,
124124- ),
125125- ),
126126- }),
127127-)
128128-129129-export { viewImage }
-6
src/lexicons/app/bsky/embed/images.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './images.defs.js'
66-export { main as default } from './images.defs.js'
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './record.defs.js'
66-export { main as default } from './record.defs.js'
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './recordWithMedia.defs.js'
66-export { main as default } from './recordWithMedia.defs.js'
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './video.defs.js'
66-export { main as default } from './video.defs.js'
-817
src/lexicons/app/bsky/feed/defs.defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-import { l } from '@atproto/lex'
66-import * as EmbedImages from '../embed/images.defs.js'
77-import * as EmbedVideo from '../embed/video.defs.js'
88-import * as EmbedExternal from '../embed/external.defs.js'
99-import * as EmbedRecord from '../embed/record.defs.js'
1010-import * as EmbedRecordWithMedia from '../embed/recordWithMedia.defs.js'
1111-import * as ActorDefs from '../actor/defs.defs.js'
1212-import * as LabelDefs from '../../../com/atproto/label/defs.defs.js'
1313-import * as RichtextFacet from '../richtext/facet.defs.js'
1414-import * as GraphDefs from '../graph/defs.defs.js'
1515-1616-const $nsid = 'app.bsky.feed.defs'
1717-1818-export { $nsid }
1919-2020-type PostView = {
2121- $type?: 'app.bsky.feed.defs#postView'
2222- cid: l.CidString
2323- uri: l.AtUriString
2424-2525- /**
2626- * Debug information for internal development
2727- */
2828- debug?: l.LexMap
2929- embed?:
3030- | l.$Typed<EmbedImages.View>
3131- | l.$Typed<EmbedVideo.View>
3232- | l.$Typed<EmbedExternal.View>
3333- | l.$Typed<EmbedRecord.View>
3434- | l.$Typed<EmbedRecordWithMedia.View>
3535- | l.Unknown$TypedObject
3636- author: ActorDefs.ProfileViewBasic
3737- labels?: LabelDefs.Label[]
3838- record: l.LexMap
3939- viewer?: ViewerState
4040- indexedAt: l.DatetimeString
4141- likeCount?: number
4242- quoteCount?: number
4343- replyCount?: number
4444- threadgate?: ThreadgateView
4545- repostCount?: number
4646- bookmarkCount?: number
4747-}
4848-4949-export type { PostView }
5050-5151-const postView = /*#__PURE__*/ l.typedObject<PostView>(
5252- $nsid,
5353- 'postView',
5454- /*#__PURE__*/ l.object({
5555- cid: /*#__PURE__*/ l.string({ format: 'cid' }),
5656- uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),
5757- debug: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.lexMap()),
5858- embed: /*#__PURE__*/ l.optional(
5959- /*#__PURE__*/ l.typedUnion(
6060- [
6161- /*#__PURE__*/ l.typedRef<EmbedImages.View>(
6262- (() => EmbedImages.view) as any,
6363- ),
6464- /*#__PURE__*/ l.typedRef<EmbedVideo.View>(
6565- (() => EmbedVideo.view) as any,
6666- ),
6767- /*#__PURE__*/ l.typedRef<EmbedExternal.View>(
6868- (() => EmbedExternal.view) as any,
6969- ),
7070- /*#__PURE__*/ l.typedRef<EmbedRecord.View>(
7171- (() => EmbedRecord.view) as any,
7272- ),
7373- /*#__PURE__*/ l.typedRef<EmbedRecordWithMedia.View>(
7474- (() => EmbedRecordWithMedia.view) as any,
7575- ),
7676- ],
7777- false,
7878- ),
7979- ),
8080- author: /*#__PURE__*/ l.ref<ActorDefs.ProfileViewBasic>(
8181- (() => ActorDefs.profileViewBasic) as any,
8282- ),
8383- labels: /*#__PURE__*/ l.optional(
8484- /*#__PURE__*/ l.array(
8585- /*#__PURE__*/ l.ref<LabelDefs.Label>((() => LabelDefs.label) as any),
8686- ),
8787- ),
8888- record: /*#__PURE__*/ l.lexMap(),
8989- viewer: /*#__PURE__*/ l.optional(
9090- /*#__PURE__*/ l.ref<ViewerState>((() => viewerState) as any),
9191- ),
9292- indexedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
9393- likeCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
9494- quoteCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
9595- replyCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
9696- threadgate: /*#__PURE__*/ l.optional(
9797- /*#__PURE__*/ l.ref<ThreadgateView>((() => threadgateView) as any),
9898- ),
9999- repostCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
100100- bookmarkCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
101101- }),
102102-)
103103-104104-export { postView }
105105-106106-type ReplyRef = {
107107- $type?: 'app.bsky.feed.defs#replyRef'
108108- root:
109109- | l.$Typed<PostView>
110110- | l.$Typed<NotFoundPost>
111111- | l.$Typed<BlockedPost>
112112- | l.Unknown$TypedObject
113113- parent:
114114- | l.$Typed<PostView>
115115- | l.$Typed<NotFoundPost>
116116- | l.$Typed<BlockedPost>
117117- | l.Unknown$TypedObject
118118-119119- /**
120120- * When parent is a reply to another post, this is the author of that post.
121121- */
122122- grandparentAuthor?: ActorDefs.ProfileViewBasic
123123-}
124124-125125-export type { ReplyRef }
126126-127127-const replyRef = /*#__PURE__*/ l.typedObject<ReplyRef>(
128128- $nsid,
129129- 'replyRef',
130130- /*#__PURE__*/ l.object({
131131- root: /*#__PURE__*/ l.typedUnion(
132132- [
133133- /*#__PURE__*/ l.typedRef<PostView>((() => postView) as any),
134134- /*#__PURE__*/ l.typedRef<NotFoundPost>((() => notFoundPost) as any),
135135- /*#__PURE__*/ l.typedRef<BlockedPost>((() => blockedPost) as any),
136136- ],
137137- false,
138138- ),
139139- parent: /*#__PURE__*/ l.typedUnion(
140140- [
141141- /*#__PURE__*/ l.typedRef<PostView>((() => postView) as any),
142142- /*#__PURE__*/ l.typedRef<NotFoundPost>((() => notFoundPost) as any),
143143- /*#__PURE__*/ l.typedRef<BlockedPost>((() => blockedPost) as any),
144144- ],
145145- false,
146146- ),
147147- grandparentAuthor: /*#__PURE__*/ l.optional(
148148- /*#__PURE__*/ l.ref<ActorDefs.ProfileViewBasic>(
149149- (() => ActorDefs.profileViewBasic) as any,
150150- ),
151151- ),
152152- }),
153153-)
154154-155155-export { replyRef }
156156-157157-type ReasonPin = { $type?: 'app.bsky.feed.defs#reasonPin' }
158158-159159-export type { ReasonPin }
160160-161161-const reasonPin = /*#__PURE__*/ l.typedObject<ReasonPin>(
162162- $nsid,
163163- 'reasonPin',
164164- /*#__PURE__*/ l.object({}),
165165-)
166166-167167-export { reasonPin }
168168-169169-type BlockedPost = {
170170- $type?: 'app.bsky.feed.defs#blockedPost'
171171- uri: l.AtUriString
172172- author: BlockedAuthor
173173- blocked: true
174174-}
175175-176176-export type { BlockedPost }
177177-178178-const blockedPost = /*#__PURE__*/ l.typedObject<BlockedPost>(
179179- $nsid,
180180- 'blockedPost',
181181- /*#__PURE__*/ l.object({
182182- uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),
183183- author: /*#__PURE__*/ l.ref<BlockedAuthor>((() => blockedAuthor) as any),
184184- blocked: /*#__PURE__*/ l.literal(true),
185185- }),
186186-)
187187-188188-export { blockedPost }
189189-190190-type Interaction = {
191191- $type?: 'app.bsky.feed.defs#interaction'
192192- item?: l.AtUriString
193193- event?:
194194- | 'app.bsky.feed.defs#requestLess'
195195- | 'app.bsky.feed.defs#requestMore'
196196- | 'app.bsky.feed.defs#clickthroughItem'
197197- | 'app.bsky.feed.defs#clickthroughAuthor'
198198- | 'app.bsky.feed.defs#clickthroughReposter'
199199- | 'app.bsky.feed.defs#clickthroughEmbed'
200200- | 'app.bsky.feed.defs#interactionSeen'
201201- | 'app.bsky.feed.defs#interactionLike'
202202- | 'app.bsky.feed.defs#interactionRepost'
203203- | 'app.bsky.feed.defs#interactionReply'
204204- | 'app.bsky.feed.defs#interactionQuote'
205205- | 'app.bsky.feed.defs#interactionShare'
206206- | l.UnknownString
207207-208208- /**
209209- * Unique identifier per request that may be passed back alongside interactions.
210210- */
211211- reqId?: string
212212-213213- /**
214214- * Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.
215215- */
216216- feedContext?: string
217217-}
218218-219219-export type { Interaction }
220220-221221-const interaction = /*#__PURE__*/ l.typedObject<Interaction>(
222222- $nsid,
223223- 'interaction',
224224- /*#__PURE__*/ l.object({
225225- item: /*#__PURE__*/ l.optional(
226226- /*#__PURE__*/ l.string({ format: 'at-uri' }),
227227- ),
228228- event: /*#__PURE__*/ l.optional(
229229- /*#__PURE__*/ l.string<{
230230- knownValues: [
231231- 'app.bsky.feed.defs#requestLess',
232232- 'app.bsky.feed.defs#requestMore',
233233- 'app.bsky.feed.defs#clickthroughItem',
234234- 'app.bsky.feed.defs#clickthroughAuthor',
235235- 'app.bsky.feed.defs#clickthroughReposter',
236236- 'app.bsky.feed.defs#clickthroughEmbed',
237237- 'app.bsky.feed.defs#interactionSeen',
238238- 'app.bsky.feed.defs#interactionLike',
239239- 'app.bsky.feed.defs#interactionRepost',
240240- 'app.bsky.feed.defs#interactionReply',
241241- 'app.bsky.feed.defs#interactionQuote',
242242- 'app.bsky.feed.defs#interactionShare',
243243- ]
244244- }>(),
245245- ),
246246- reqId: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ maxLength: 100 })),
247247- feedContext: /*#__PURE__*/ l.optional(
248248- /*#__PURE__*/ l.string({ maxLength: 2000 }),
249249- ),
250250- }),
251251-)
252252-253253-export { interaction }
254254-255255-/** Request that less content like the given feed item be shown in the feed */
256256-type RequestLess = 'app.bsky.feed.defs#requestLess'
257257-258258-export type { RequestLess }
259259-260260-/** Request that less content like the given feed item be shown in the feed */
261261-const requestLess = /*#__PURE__*/ l.token($nsid, 'requestLess')
262262-263263-export { requestLess }
264264-265265-/** Request that more content like the given feed item be shown in the feed */
266266-type RequestMore = 'app.bsky.feed.defs#requestMore'
267267-268268-export type { RequestMore }
269269-270270-/** Request that more content like the given feed item be shown in the feed */
271271-const requestMore = /*#__PURE__*/ l.token($nsid, 'requestMore')
272272-273273-export { requestMore }
274274-275275-/** Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. */
276276-type ViewerState = {
277277- $type?: 'app.bsky.feed.defs#viewerState'
278278- like?: l.AtUriString
279279- pinned?: boolean
280280- repost?: l.AtUriString
281281- bookmarked?: boolean
282282- threadMuted?: boolean
283283- replyDisabled?: boolean
284284- embeddingDisabled?: boolean
285285-}
286286-287287-export type { ViewerState }
288288-289289-/** Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. */
290290-const viewerState = /*#__PURE__*/ l.typedObject<ViewerState>(
291291- $nsid,
292292- 'viewerState',
293293- /*#__PURE__*/ l.object({
294294- like: /*#__PURE__*/ l.optional(
295295- /*#__PURE__*/ l.string({ format: 'at-uri' }),
296296- ),
297297- pinned: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
298298- repost: /*#__PURE__*/ l.optional(
299299- /*#__PURE__*/ l.string({ format: 'at-uri' }),
300300- ),
301301- bookmarked: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
302302- threadMuted: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
303303- replyDisabled: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
304304- embeddingDisabled: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
305305- }),
306306-)
307307-308308-export { viewerState }
309309-310310-type FeedViewPost = {
311311- $type?: 'app.bsky.feed.defs#feedViewPost'
312312- post: PostView
313313- reply?: ReplyRef
314314-315315- /**
316316- * Unique identifier per request that may be passed back alongside interactions.
317317- */
318318- reqId?: string
319319- reason?: l.$Typed<ReasonRepost> | l.$Typed<ReasonPin> | l.Unknown$TypedObject
320320-321321- /**
322322- * Context provided by feed generator that may be passed back alongside interactions.
323323- */
324324- feedContext?: string
325325-}
326326-327327-export type { FeedViewPost }
328328-329329-const feedViewPost = /*#__PURE__*/ l.typedObject<FeedViewPost>(
330330- $nsid,
331331- 'feedViewPost',
332332- /*#__PURE__*/ l.object({
333333- post: /*#__PURE__*/ l.ref<PostView>((() => postView) as any),
334334- reply: /*#__PURE__*/ l.optional(
335335- /*#__PURE__*/ l.ref<ReplyRef>((() => replyRef) as any),
336336- ),
337337- reqId: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ maxLength: 100 })),
338338- reason: /*#__PURE__*/ l.optional(
339339- /*#__PURE__*/ l.typedUnion(
340340- [
341341- /*#__PURE__*/ l.typedRef<ReasonRepost>((() => reasonRepost) as any),
342342- /*#__PURE__*/ l.typedRef<ReasonPin>((() => reasonPin) as any),
343343- ],
344344- false,
345345- ),
346346- ),
347347- feedContext: /*#__PURE__*/ l.optional(
348348- /*#__PURE__*/ l.string({ maxLength: 2000 }),
349349- ),
350350- }),
351351-)
352352-353353-export { feedViewPost }
354354-355355-type NotFoundPost = {
356356- $type?: 'app.bsky.feed.defs#notFoundPost'
357357- uri: l.AtUriString
358358- notFound: true
359359-}
360360-361361-export type { NotFoundPost }
362362-363363-const notFoundPost = /*#__PURE__*/ l.typedObject<NotFoundPost>(
364364- $nsid,
365365- 'notFoundPost',
366366- /*#__PURE__*/ l.object({
367367- uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),
368368- notFound: /*#__PURE__*/ l.literal(true),
369369- }),
370370-)
371371-372372-export { notFoundPost }
373373-374374-type ReasonRepost = {
375375- $type?: 'app.bsky.feed.defs#reasonRepost'
376376- by: ActorDefs.ProfileViewBasic
377377- cid?: l.CidString
378378- uri?: l.AtUriString
379379- indexedAt: l.DatetimeString
380380-}
381381-382382-export type { ReasonRepost }
383383-384384-const reasonRepost = /*#__PURE__*/ l.typedObject<ReasonRepost>(
385385- $nsid,
386386- 'reasonRepost',
387387- /*#__PURE__*/ l.object({
388388- by: /*#__PURE__*/ l.ref<ActorDefs.ProfileViewBasic>(
389389- (() => ActorDefs.profileViewBasic) as any,
390390- ),
391391- cid: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'cid' })),
392392- uri: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'at-uri' })),
393393- indexedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
394394- }),
395395-)
396396-397397-export { reasonRepost }
398398-399399-type BlockedAuthor = {
400400- $type?: 'app.bsky.feed.defs#blockedAuthor'
401401- did: l.DidString
402402- viewer?: ActorDefs.ViewerState
403403-}
404404-405405-export type { BlockedAuthor }
406406-407407-const blockedAuthor = /*#__PURE__*/ l.typedObject<BlockedAuthor>(
408408- $nsid,
409409- 'blockedAuthor',
410410- /*#__PURE__*/ l.object({
411411- did: /*#__PURE__*/ l.string({ format: 'did' }),
412412- viewer: /*#__PURE__*/ l.optional(
413413- /*#__PURE__*/ l.ref<ActorDefs.ViewerState>(
414414- (() => ActorDefs.viewerState) as any,
415415- ),
416416- ),
417417- }),
418418-)
419419-420420-export { blockedAuthor }
421421-422422-type GeneratorView = {
423423- $type?: 'app.bsky.feed.defs#generatorView'
424424- cid: l.CidString
425425- did: l.DidString
426426- uri: l.AtUriString
427427- avatar?: l.UriString
428428- labels?: LabelDefs.Label[]
429429- viewer?: GeneratorViewerState
430430- creator: ActorDefs.ProfileView
431431- indexedAt: l.DatetimeString
432432- likeCount?: number
433433- contentMode?:
434434- | 'app.bsky.feed.defs#contentModeUnspecified'
435435- | 'app.bsky.feed.defs#contentModeVideo'
436436- | l.UnknownString
437437- description?: string
438438- displayName: string
439439- descriptionFacets?: RichtextFacet.Main[]
440440- acceptsInteractions?: boolean
441441-}
442442-443443-export type { GeneratorView }
444444-445445-const generatorView = /*#__PURE__*/ l.typedObject<GeneratorView>(
446446- $nsid,
447447- 'generatorView',
448448- /*#__PURE__*/ l.object({
449449- cid: /*#__PURE__*/ l.string({ format: 'cid' }),
450450- did: /*#__PURE__*/ l.string({ format: 'did' }),
451451- uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),
452452- avatar: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'uri' })),
453453- labels: /*#__PURE__*/ l.optional(
454454- /*#__PURE__*/ l.array(
455455- /*#__PURE__*/ l.ref<LabelDefs.Label>((() => LabelDefs.label) as any),
456456- ),
457457- ),
458458- viewer: /*#__PURE__*/ l.optional(
459459- /*#__PURE__*/ l.ref<GeneratorViewerState>(
460460- (() => generatorViewerState) as any,
461461- ),
462462- ),
463463- creator: /*#__PURE__*/ l.ref<ActorDefs.ProfileView>(
464464- (() => ActorDefs.profileView) as any,
465465- ),
466466- indexedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
467467- likeCount: /*#__PURE__*/ l.optional(
468468- /*#__PURE__*/ l.integer({ minimum: 0 }),
469469- ),
470470- contentMode: /*#__PURE__*/ l.optional(
471471- /*#__PURE__*/ l.string<{
472472- knownValues: [
473473- 'app.bsky.feed.defs#contentModeUnspecified',
474474- 'app.bsky.feed.defs#contentModeVideo',
475475- ]
476476- }>(),
477477- ),
478478- description: /*#__PURE__*/ l.optional(
479479- /*#__PURE__*/ l.string({ maxLength: 3000, maxGraphemes: 300 }),
480480- ),
481481- displayName: /*#__PURE__*/ l.string(),
482482- descriptionFacets: /*#__PURE__*/ l.optional(
483483- /*#__PURE__*/ l.array(
484484- /*#__PURE__*/ l.ref<RichtextFacet.Main>(
485485- (() => RichtextFacet.main) as any,
486486- ),
487487- ),
488488- ),
489489- acceptsInteractions: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
490490- }),
491491-)
492492-493493-export { generatorView }
494494-495495-/** Metadata about this post within the context of the thread it is in. */
496496-type ThreadContext = {
497497- $type?: 'app.bsky.feed.defs#threadContext'
498498- rootAuthorLike?: l.AtUriString
499499-}
500500-501501-export type { ThreadContext }
502502-503503-/** Metadata about this post within the context of the thread it is in. */
504504-const threadContext = /*#__PURE__*/ l.typedObject<ThreadContext>(
505505- $nsid,
506506- 'threadContext',
507507- /*#__PURE__*/ l.object({
508508- rootAuthorLike: /*#__PURE__*/ l.optional(
509509- /*#__PURE__*/ l.string({ format: 'at-uri' }),
510510- ),
511511- }),
512512-)
513513-514514-export { threadContext }
515515-516516-type ThreadViewPost = {
517517- $type?: 'app.bsky.feed.defs#threadViewPost'
518518- post: PostView
519519- parent?:
520520- | l.$Typed<ThreadViewPost>
521521- | l.$Typed<NotFoundPost>
522522- | l.$Typed<BlockedPost>
523523- | l.Unknown$TypedObject
524524- replies?: (
525525- | l.$Typed<ThreadViewPost>
526526- | l.$Typed<NotFoundPost>
527527- | l.$Typed<BlockedPost>
528528- | l.Unknown$TypedObject
529529- )[]
530530- threadContext?: ThreadContext
531531-}
532532-533533-export type { ThreadViewPost }
534534-535535-const threadViewPost = /*#__PURE__*/ l.typedObject<ThreadViewPost>(
536536- $nsid,
537537- 'threadViewPost',
538538- /*#__PURE__*/ l.object({
539539- post: /*#__PURE__*/ l.ref<PostView>((() => postView) as any),
540540- parent: /*#__PURE__*/ l.optional(
541541- /*#__PURE__*/ l.typedUnion(
542542- [
543543- /*#__PURE__*/ l.typedRef<ThreadViewPost>(
544544- (() => threadViewPost) as any,
545545- ),
546546- /*#__PURE__*/ l.typedRef<NotFoundPost>((() => notFoundPost) as any),
547547- /*#__PURE__*/ l.typedRef<BlockedPost>((() => blockedPost) as any),
548548- ],
549549- false,
550550- ),
551551- ),
552552- replies: /*#__PURE__*/ l.optional(
553553- /*#__PURE__*/ l.array(
554554- /*#__PURE__*/ l.typedUnion(
555555- [
556556- /*#__PURE__*/ l.typedRef<ThreadViewPost>(
557557- (() => threadViewPost) as any,
558558- ),
559559- /*#__PURE__*/ l.typedRef<NotFoundPost>((() => notFoundPost) as any),
560560- /*#__PURE__*/ l.typedRef<BlockedPost>((() => blockedPost) as any),
561561- ],
562562- false,
563563- ),
564564- ),
565565- ),
566566- threadContext: /*#__PURE__*/ l.optional(
567567- /*#__PURE__*/ l.ref<ThreadContext>((() => threadContext) as any),
568568- ),
569569- }),
570570-)
571571-572572-export { threadViewPost }
573573-574574-type ThreadgateView = {
575575- $type?: 'app.bsky.feed.defs#threadgateView'
576576- cid?: l.CidString
577577- uri?: l.AtUriString
578578- lists?: GraphDefs.ListViewBasic[]
579579- record?: l.LexMap
580580-}
581581-582582-export type { ThreadgateView }
583583-584584-const threadgateView = /*#__PURE__*/ l.typedObject<ThreadgateView>(
585585- $nsid,
586586- 'threadgateView',
587587- /*#__PURE__*/ l.object({
588588- cid: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'cid' })),
589589- uri: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'at-uri' })),
590590- lists: /*#__PURE__*/ l.optional(
591591- /*#__PURE__*/ l.array(
592592- /*#__PURE__*/ l.ref<GraphDefs.ListViewBasic>(
593593- (() => GraphDefs.listViewBasic) as any,
594594- ),
595595- ),
596596- ),
597597- record: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.lexMap()),
598598- }),
599599-)
600600-601601-export { threadgateView }
602602-603603-/** User liked the feed item */
604604-type InteractionLike = 'app.bsky.feed.defs#interactionLike'
605605-606606-export type { InteractionLike }
607607-608608-/** User liked the feed item */
609609-const interactionLike = /*#__PURE__*/ l.token($nsid, 'interactionLike')
610610-611611-export { interactionLike }
612612-613613-/** Feed item was seen by user */
614614-type InteractionSeen = 'app.bsky.feed.defs#interactionSeen'
615615-616616-export type { InteractionSeen }
617617-618618-/** Feed item was seen by user */
619619-const interactionSeen = /*#__PURE__*/ l.token($nsid, 'interactionSeen')
620620-621621-export { interactionSeen }
622622-623623-/** User clicked through to the feed item */
624624-type ClickthroughItem = 'app.bsky.feed.defs#clickthroughItem'
625625-626626-export type { ClickthroughItem }
627627-628628-/** User clicked through to the feed item */
629629-const clickthroughItem = /*#__PURE__*/ l.token($nsid, 'clickthroughItem')
630630-631631-export { clickthroughItem }
632632-633633-/** Declares the feed generator returns posts containing app.bsky.embed.video embeds. */
634634-type ContentModeVideo = 'app.bsky.feed.defs#contentModeVideo'
635635-636636-export type { ContentModeVideo }
637637-638638-/** Declares the feed generator returns posts containing app.bsky.embed.video embeds. */
639639-const contentModeVideo = /*#__PURE__*/ l.token($nsid, 'contentModeVideo')
640640-641641-export { contentModeVideo }
642642-643643-/** User quoted the feed item */
644644-type InteractionQuote = 'app.bsky.feed.defs#interactionQuote'
645645-646646-export type { InteractionQuote }
647647-648648-/** User quoted the feed item */
649649-const interactionQuote = /*#__PURE__*/ l.token($nsid, 'interactionQuote')
650650-651651-export { interactionQuote }
652652-653653-/** User replied to the feed item */
654654-type InteractionReply = 'app.bsky.feed.defs#interactionReply'
655655-656656-export type { InteractionReply }
657657-658658-/** User replied to the feed item */
659659-const interactionReply = /*#__PURE__*/ l.token($nsid, 'interactionReply')
660660-661661-export { interactionReply }
662662-663663-/** User shared the feed item */
664664-type InteractionShare = 'app.bsky.feed.defs#interactionShare'
665665-666666-export type { InteractionShare }
667667-668668-/** User shared the feed item */
669669-const interactionShare = /*#__PURE__*/ l.token($nsid, 'interactionShare')
670670-671671-export { interactionShare }
672672-673673-type SkeletonFeedPost = {
674674- $type?: 'app.bsky.feed.defs#skeletonFeedPost'
675675- post: l.AtUriString
676676- reason?:
677677- | l.$Typed<SkeletonReasonRepost>
678678- | l.$Typed<SkeletonReasonPin>
679679- | l.Unknown$TypedObject
680680-681681- /**
682682- * Context that will be passed through to client and may be passed to feed generator back alongside interactions.
683683- */
684684- feedContext?: string
685685-}
686686-687687-export type { SkeletonFeedPost }
688688-689689-const skeletonFeedPost = /*#__PURE__*/ l.typedObject<SkeletonFeedPost>(
690690- $nsid,
691691- 'skeletonFeedPost',
692692- /*#__PURE__*/ l.object({
693693- post: /*#__PURE__*/ l.string({ format: 'at-uri' }),
694694- reason: /*#__PURE__*/ l.optional(
695695- /*#__PURE__*/ l.typedUnion(
696696- [
697697- /*#__PURE__*/ l.typedRef<SkeletonReasonRepost>(
698698- (() => skeletonReasonRepost) as any,
699699- ),
700700- /*#__PURE__*/ l.typedRef<SkeletonReasonPin>(
701701- (() => skeletonReasonPin) as any,
702702- ),
703703- ],
704704- false,
705705- ),
706706- ),
707707- feedContext: /*#__PURE__*/ l.optional(
708708- /*#__PURE__*/ l.string({ maxLength: 2000 }),
709709- ),
710710- }),
711711-)
712712-713713-export { skeletonFeedPost }
714714-715715-/** User clicked through to the embedded content of the feed item */
716716-type ClickthroughEmbed = 'app.bsky.feed.defs#clickthroughEmbed'
717717-718718-export type { ClickthroughEmbed }
719719-720720-/** User clicked through to the embedded content of the feed item */
721721-const clickthroughEmbed = /*#__PURE__*/ l.token($nsid, 'clickthroughEmbed')
722722-723723-export { clickthroughEmbed }
724724-725725-/** User reposted the feed item */
726726-type InteractionRepost = 'app.bsky.feed.defs#interactionRepost'
727727-728728-export type { InteractionRepost }
729729-730730-/** User reposted the feed item */
731731-const interactionRepost = /*#__PURE__*/ l.token($nsid, 'interactionRepost')
732732-733733-export { interactionRepost }
734734-735735-type SkeletonReasonPin = { $type?: 'app.bsky.feed.defs#skeletonReasonPin' }
736736-737737-export type { SkeletonReasonPin }
738738-739739-const skeletonReasonPin = /*#__PURE__*/ l.typedObject<SkeletonReasonPin>(
740740- $nsid,
741741- 'skeletonReasonPin',
742742- /*#__PURE__*/ l.object({}),
743743-)
744744-745745-export { skeletonReasonPin }
746746-747747-/** User clicked through to the author of the feed item */
748748-type ClickthroughAuthor = 'app.bsky.feed.defs#clickthroughAuthor'
749749-750750-export type { ClickthroughAuthor }
751751-752752-/** User clicked through to the author of the feed item */
753753-const clickthroughAuthor = /*#__PURE__*/ l.token($nsid, 'clickthroughAuthor')
754754-755755-export { clickthroughAuthor }
756756-757757-/** User clicked through to the reposter of the feed item */
758758-type ClickthroughReposter = 'app.bsky.feed.defs#clickthroughReposter'
759759-760760-export type { ClickthroughReposter }
761761-762762-/** User clicked through to the reposter of the feed item */
763763-const clickthroughReposter = /*#__PURE__*/ l.token(
764764- $nsid,
765765- 'clickthroughReposter',
766766-)
767767-768768-export { clickthroughReposter }
769769-770770-type GeneratorViewerState = {
771771- $type?: 'app.bsky.feed.defs#generatorViewerState'
772772- like?: l.AtUriString
773773-}
774774-775775-export type { GeneratorViewerState }
776776-777777-const generatorViewerState = /*#__PURE__*/ l.typedObject<GeneratorViewerState>(
778778- $nsid,
779779- 'generatorViewerState',
780780- /*#__PURE__*/ l.object({
781781- like: /*#__PURE__*/ l.optional(
782782- /*#__PURE__*/ l.string({ format: 'at-uri' }),
783783- ),
784784- }),
785785-)
786786-787787-export { generatorViewerState }
788788-789789-type SkeletonReasonRepost = {
790790- $type?: 'app.bsky.feed.defs#skeletonReasonRepost'
791791- repost: l.AtUriString
792792-}
793793-794794-export type { SkeletonReasonRepost }
795795-796796-const skeletonReasonRepost = /*#__PURE__*/ l.typedObject<SkeletonReasonRepost>(
797797- $nsid,
798798- 'skeletonReasonRepost',
799799- /*#__PURE__*/ l.object({
800800- repost: /*#__PURE__*/ l.string({ format: 'at-uri' }),
801801- }),
802802-)
803803-804804-export { skeletonReasonRepost }
805805-806806-/** Declares the feed generator returns any types of posts. */
807807-type ContentModeUnspecified = 'app.bsky.feed.defs#contentModeUnspecified'
808808-809809-export type { ContentModeUnspecified }
810810-811811-/** Declares the feed generator returns any types of posts. */
812812-const contentModeUnspecified = /*#__PURE__*/ l.token(
813813- $nsid,
814814- 'contentModeUnspecified',
815815-)
816816-817817-export { contentModeUnspecified }
-5
src/lexicons/app/bsky/feed/defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './defs.defs.js'
-225
src/lexicons/app/bsky/feed/post.defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-import { l } from '@atproto/lex'
66-import * as EmbedImages from '../embed/images.defs.js'
77-import * as EmbedVideo from '../embed/video.defs.js'
88-import * as EmbedExternal from '../embed/external.defs.js'
99-import * as EmbedRecord from '../embed/record.defs.js'
1010-import * as EmbedRecordWithMedia from '../embed/recordWithMedia.defs.js'
1111-import * as RichtextFacet from '../richtext/facet.defs.js'
1212-import * as LabelDefs from '../../../com/atproto/label/defs.defs.js'
1313-import * as RepoStrongRef from '../../../com/atproto/repo/strongRef.defs.js'
1414-1515-const $nsid = 'app.bsky.feed.post'
1616-1717-export { $nsid }
1818-1919-/** Record containing a Bluesky post. */
2020-type Main = {
2121- $type: 'app.bsky.feed.post'
2222-2323- /**
2424- * Additional hashtags, in addition to any included in post text and facets.
2525- */
2626- tags?: string[]
2727-2828- /**
2929- * The primary post content. May be an empty string, if there are embeds.
3030- */
3131- text: string
3232- embed?:
3333- | l.$Typed<EmbedImages.Main>
3434- | l.$Typed<EmbedVideo.Main>
3535- | l.$Typed<EmbedExternal.Main>
3636- | l.$Typed<EmbedRecord.Main>
3737- | l.$Typed<EmbedRecordWithMedia.Main>
3838- | l.Unknown$TypedObject
3939-4040- /**
4141- * Indicates human language of post primary text content.
4242- */
4343- langs?: l.LanguageString[]
4444- reply?: ReplyRef
4545-4646- /**
4747- * Annotations of text (mentions, URLs, hashtags, etc)
4848- */
4949- facets?: RichtextFacet.Main[]
5050-5151- /**
5252- * Self-label values for this post. Effectively content warnings.
5353- */
5454- labels?: l.$Typed<LabelDefs.SelfLabels> | l.Unknown$TypedObject
5555-5656- /**
5757- * @deprecated replaced by app.bsky.richtext.facet.
5858- */
5959- entities?: Entity[]
6060-6161- /**
6262- * Client-declared timestamp when this post was originally created.
6363- */
6464- createdAt: l.DatetimeString
6565-}
6666-6767-export type { Main }
6868-6969-/** Record containing a Bluesky post. */
7070-const main = /*#__PURE__*/ l.record<'tid', Main>(
7171- 'tid',
7272- $nsid,
7373- /*#__PURE__*/ l.object({
7474- tags: /*#__PURE__*/ l.optional(
7575- /*#__PURE__*/ l.array(
7676- /*#__PURE__*/ l.string({ maxLength: 640, maxGraphemes: 64 }),
7777- { maxLength: 8 },
7878- ),
7979- ),
8080- text: /*#__PURE__*/ l.string({ maxLength: 3000, maxGraphemes: 300 }),
8181- embed: /*#__PURE__*/ l.optional(
8282- /*#__PURE__*/ l.typedUnion(
8383- [
8484- /*#__PURE__*/ l.typedRef<EmbedImages.Main>(
8585- (() => EmbedImages.main) as any,
8686- ),
8787- /*#__PURE__*/ l.typedRef<EmbedVideo.Main>(
8888- (() => EmbedVideo.main) as any,
8989- ),
9090- /*#__PURE__*/ l.typedRef<EmbedExternal.Main>(
9191- (() => EmbedExternal.main) as any,
9292- ),
9393- /*#__PURE__*/ l.typedRef<EmbedRecord.Main>(
9494- (() => EmbedRecord.main) as any,
9595- ),
9696- /*#__PURE__*/ l.typedRef<EmbedRecordWithMedia.Main>(
9797- (() => EmbedRecordWithMedia.main) as any,
9898- ),
9999- ],
100100- false,
101101- ),
102102- ),
103103- langs: /*#__PURE__*/ l.optional(
104104- /*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ format: 'language' }), {
105105- maxLength: 3,
106106- }),
107107- ),
108108- reply: /*#__PURE__*/ l.optional(
109109- /*#__PURE__*/ l.ref<ReplyRef>((() => replyRef) as any),
110110- ),
111111- facets: /*#__PURE__*/ l.optional(
112112- /*#__PURE__*/ l.array(
113113- /*#__PURE__*/ l.ref<RichtextFacet.Main>(
114114- (() => RichtextFacet.main) as any,
115115- ),
116116- ),
117117- ),
118118- labels: /*#__PURE__*/ l.optional(
119119- /*#__PURE__*/ l.typedUnion(
120120- [
121121- /*#__PURE__*/ l.typedRef<LabelDefs.SelfLabels>(
122122- (() => LabelDefs.selfLabels) as any,
123123- ),
124124- ],
125125- false,
126126- ),
127127- ),
128128- entities: /*#__PURE__*/ l.optional(
129129- /*#__PURE__*/ l.array(/*#__PURE__*/ l.ref<Entity>((() => entity) as any)),
130130- ),
131131- createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
132132- }),
133133-)
134134-135135-export { main }
136136-137137-export const $type = $nsid
138138-export const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)
139139-export const $build = /*#__PURE__*/ main.build.bind(main)
140140-export const $assert = /*#__PURE__*/ main.assert.bind(main)
141141-export const $check = /*#__PURE__*/ main.check.bind(main)
142142-export const $cast = /*#__PURE__*/ main.cast.bind(main)
143143-export const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)
144144-export const $matches = /*#__PURE__*/ main.matches.bind(main)
145145-export const $parse = /*#__PURE__*/ main.parse.bind(main)
146146-export const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)
147147-export const $validate = /*#__PURE__*/ main.validate.bind(main)
148148-export const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)
149149-150150-/** @deprecated use facets instead. */
151151-type Entity = {
152152- $type?: 'app.bsky.feed.post#entity'
153153-154154- /**
155155- * Expected values are 'mention' and 'link'.
156156- */
157157- type: string
158158- index: TextSlice
159159- value: string
160160-}
161161-162162-export type { Entity }
163163-164164-/** @deprecated use facets instead. */
165165-const entity = /*#__PURE__*/ l.typedObject<Entity>(
166166- $nsid,
167167- 'entity',
168168- /*#__PURE__*/ l.object({
169169- type: /*#__PURE__*/ l.string(),
170170- index: /*#__PURE__*/ l.ref<TextSlice>((() => textSlice) as any),
171171- value: /*#__PURE__*/ l.string(),
172172- }),
173173-)
174174-175175-export { entity }
176176-177177-type ReplyRef = {
178178- $type?: 'app.bsky.feed.post#replyRef'
179179- root: RepoStrongRef.Main
180180- parent: RepoStrongRef.Main
181181-}
182182-183183-export type { ReplyRef }
184184-185185-const replyRef = /*#__PURE__*/ l.typedObject<ReplyRef>(
186186- $nsid,
187187- 'replyRef',
188188- /*#__PURE__*/ l.object({
189189- root: /*#__PURE__*/ l.ref<RepoStrongRef.Main>(
190190- (() => RepoStrongRef.main) as any,
191191- ),
192192- parent: /*#__PURE__*/ l.ref<RepoStrongRef.Main>(
193193- (() => RepoStrongRef.main) as any,
194194- ),
195195- }),
196196-)
197197-198198-export { replyRef }
199199-200200-/**
201201- * A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings.
202202- * @deprecated . Use app.bsky.richtext instead
203203- */
204204-type TextSlice = {
205205- $type?: 'app.bsky.feed.post#textSlice'
206206- end: number
207207- start: number
208208-}
209209-210210-export type { TextSlice }
211211-212212-/**
213213- * A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings.
214214- * @deprecated . Use app.bsky.richtext instead
215215- */
216216-const textSlice = /*#__PURE__*/ l.typedObject<TextSlice>(
217217- $nsid,
218218- 'textSlice',
219219- /*#__PURE__*/ l.object({
220220- end: /*#__PURE__*/ l.integer({ minimum: 0 }),
221221- start: /*#__PURE__*/ l.integer({ minimum: 0 }),
222222- }),
223223-)
224224-225225-export { textSlice }
-6
src/lexicons/app/bsky/feed/post.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './post.defs.js'
66-export { main as default } from './post.defs.js'
-85
src/lexicons/app/bsky/feed/postgate.defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-import { l } from '@atproto/lex'
66-77-const $nsid = 'app.bsky.feed.postgate'
88-99-export { $nsid }
1010-1111-/** 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. */
1212-type Main = {
1313- $type: 'app.bsky.feed.postgate'
1414-1515- /**
1616- * Reference (AT-URI) to the post record.
1717- */
1818- post: l.AtUriString
1919- createdAt: l.DatetimeString
2020-2121- /**
2222- * 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.
2323- */
2424- embeddingRules?: (l.$Typed<DisableRule> | l.Unknown$TypedObject)[]
2525-2626- /**
2727- * List of AT-URIs embedding this post that the author has detached from.
2828- */
2929- detachedEmbeddingUris?: l.AtUriString[]
3030-}
3131-3232-export type { Main }
3333-3434-/** 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. */
3535-const main = /*#__PURE__*/ l.record<'tid', Main>(
3636- 'tid',
3737- $nsid,
3838- /*#__PURE__*/ l.object({
3939- post: /*#__PURE__*/ l.string({ format: 'at-uri' }),
4040- createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
4141- embeddingRules: /*#__PURE__*/ l.optional(
4242- /*#__PURE__*/ l.array(
4343- /*#__PURE__*/ l.typedUnion(
4444- [/*#__PURE__*/ l.typedRef<DisableRule>((() => disableRule) as any)],
4545- false,
4646- ),
4747- { maxLength: 5 },
4848- ),
4949- ),
5050- detachedEmbeddingUris: /*#__PURE__*/ l.optional(
5151- /*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ format: 'at-uri' }), {
5252- maxLength: 50,
5353- }),
5454- ),
5555- }),
5656-)
5757-5858-export { main }
5959-6060-export const $type = $nsid
6161-export const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)
6262-export const $build = /*#__PURE__*/ main.build.bind(main)
6363-export const $assert = /*#__PURE__*/ main.assert.bind(main)
6464-export const $check = /*#__PURE__*/ main.check.bind(main)
6565-export const $cast = /*#__PURE__*/ main.cast.bind(main)
6666-export const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)
6767-export const $matches = /*#__PURE__*/ main.matches.bind(main)
6868-export const $parse = /*#__PURE__*/ main.parse.bind(main)
6969-export const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)
7070-export const $validate = /*#__PURE__*/ main.validate.bind(main)
7171-export const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)
7272-7373-/** Disables embedding of this post. */
7474-type DisableRule = { $type?: 'app.bsky.feed.postgate#disableRule' }
7575-7676-export type { DisableRule }
7777-7878-/** Disables embedding of this post. */
7979-const disableRule = /*#__PURE__*/ l.typedObject<DisableRule>(
8080- $nsid,
8181- 'disableRule',
8282- /*#__PURE__*/ l.object({}),
8383-)
8484-8585-export { disableRule }
-6
src/lexicons/app/bsky/feed/postgate.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './postgate.defs.js'
66-export { main as default } from './postgate.defs.js'
-145
src/lexicons/app/bsky/feed/threadgate.defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-import { l } from '@atproto/lex'
66-77-const $nsid = 'app.bsky.feed.threadgate'
88-99-export { $nsid }
1010-1111-/** 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. */
1212-type Main = {
1313- $type: 'app.bsky.feed.threadgate'
1414-1515- /**
1616- * Reference (AT-URI) to the post record.
1717- */
1818- post: l.AtUriString
1919-2020- /**
2121- * 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.
2222- */
2323- allow?: (
2424- | l.$Typed<MentionRule>
2525- | l.$Typed<FollowerRule>
2626- | l.$Typed<FollowingRule>
2727- | l.$Typed<ListRule>
2828- | l.Unknown$TypedObject
2929- )[]
3030- createdAt: l.DatetimeString
3131-3232- /**
3333- * List of hidden reply URIs.
3434- */
3535- hiddenReplies?: l.AtUriString[]
3636-}
3737-3838-export type { Main }
3939-4040-/** 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. */
4141-const main = /*#__PURE__*/ l.record<'tid', Main>(
4242- 'tid',
4343- $nsid,
4444- /*#__PURE__*/ l.object({
4545- post: /*#__PURE__*/ l.string({ format: 'at-uri' }),
4646- allow: /*#__PURE__*/ l.optional(
4747- /*#__PURE__*/ l.array(
4848- /*#__PURE__*/ l.typedUnion(
4949- [
5050- /*#__PURE__*/ l.typedRef<MentionRule>((() => mentionRule) as any),
5151- /*#__PURE__*/ l.typedRef<FollowerRule>((() => followerRule) as any),
5252- /*#__PURE__*/ l.typedRef<FollowingRule>(
5353- (() => followingRule) as any,
5454- ),
5555- /*#__PURE__*/ l.typedRef<ListRule>((() => listRule) as any),
5656- ],
5757- false,
5858- ),
5959- { maxLength: 5 },
6060- ),
6161- ),
6262- createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
6363- hiddenReplies: /*#__PURE__*/ l.optional(
6464- /*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ format: 'at-uri' }), {
6565- maxLength: 300,
6666- }),
6767- ),
6868- }),
6969-)
7070-7171-export { main }
7272-7373-export const $type = $nsid
7474-export const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)
7575-export const $build = /*#__PURE__*/ main.build.bind(main)
7676-export const $assert = /*#__PURE__*/ main.assert.bind(main)
7777-export const $check = /*#__PURE__*/ main.check.bind(main)
7878-export const $cast = /*#__PURE__*/ main.cast.bind(main)
7979-export const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)
8080-export const $matches = /*#__PURE__*/ main.matches.bind(main)
8181-export const $parse = /*#__PURE__*/ main.parse.bind(main)
8282-export const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)
8383-export const $validate = /*#__PURE__*/ main.validate.bind(main)
8484-export const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)
8585-8686-/** Allow replies from actors on a list. */
8787-type ListRule = {
8888- $type?: 'app.bsky.feed.threadgate#listRule'
8989- list: l.AtUriString
9090-}
9191-9292-export type { ListRule }
9393-9494-/** Allow replies from actors on a list. */
9595-const listRule = /*#__PURE__*/ l.typedObject<ListRule>(
9696- $nsid,
9797- 'listRule',
9898- /*#__PURE__*/ l.object({
9999- list: /*#__PURE__*/ l.string({ format: 'at-uri' }),
100100- }),
101101-)
102102-103103-export { listRule }
104104-105105-/** Allow replies from actors mentioned in your post. */
106106-type MentionRule = { $type?: 'app.bsky.feed.threadgate#mentionRule' }
107107-108108-export type { MentionRule }
109109-110110-/** Allow replies from actors mentioned in your post. */
111111-const mentionRule = /*#__PURE__*/ l.typedObject<MentionRule>(
112112- $nsid,
113113- 'mentionRule',
114114- /*#__PURE__*/ l.object({}),
115115-)
116116-117117-export { mentionRule }
118118-119119-/** Allow replies from actors who follow you. */
120120-type FollowerRule = { $type?: 'app.bsky.feed.threadgate#followerRule' }
121121-122122-export type { FollowerRule }
123123-124124-/** Allow replies from actors who follow you. */
125125-const followerRule = /*#__PURE__*/ l.typedObject<FollowerRule>(
126126- $nsid,
127127- 'followerRule',
128128- /*#__PURE__*/ l.object({}),
129129-)
130130-131131-export { followerRule }
132132-133133-/** Allow replies from actors you follow. */
134134-type FollowingRule = { $type?: 'app.bsky.feed.threadgate#followingRule' }
135135-136136-export type { FollowingRule }
137137-138138-/** Allow replies from actors you follow. */
139139-const followingRule = /*#__PURE__*/ l.typedObject<FollowingRule>(
140140- $nsid,
141141- 'followingRule',
142142- /*#__PURE__*/ l.object({}),
143143-)
144144-145145-export { followingRule }
-6
src/lexicons/app/bsky/feed/threadgate.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './threadgate.defs.js'
66-export { main as default } from './threadgate.defs.js'
-397
src/lexicons/app/bsky/graph/defs.defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-import { l } from '@atproto/lex'
66-import * as LabelDefs from '../../../com/atproto/label/defs.defs.js'
77-import * as ActorDefs from '../actor/defs.defs.js'
88-import * as RichtextFacet from '../richtext/facet.defs.js'
99-import * as FeedDefs from '../feed/defs.defs.js'
1010-1111-const $nsid = 'app.bsky.graph.defs'
1212-1313-export { $nsid }
1414-1515-/** A list of actors to apply an aggregate moderation action (mute/block) on. */
1616-type Modlist = 'app.bsky.graph.defs#modlist'
1717-1818-export type { Modlist }
1919-2020-/** A list of actors to apply an aggregate moderation action (mute/block) on. */
2121-const modlist = /*#__PURE__*/ l.token($nsid, 'modlist')
2222-2323-export { modlist }
2424-2525-type ListView = {
2626- $type?: 'app.bsky.graph.defs#listView'
2727- cid: l.CidString
2828- uri: l.AtUriString
2929- name: string
3030- avatar?: l.UriString
3131- labels?: LabelDefs.Label[]
3232- viewer?: ListViewerState
3333- creator: ActorDefs.ProfileView
3434- purpose: ListPurpose
3535- indexedAt: l.DatetimeString
3636- description?: string
3737- listItemCount?: number
3838- descriptionFacets?: RichtextFacet.Main[]
3939-}
4040-4141-export type { ListView }
4242-4343-const listView = /*#__PURE__*/ l.typedObject<ListView>(
4444- $nsid,
4545- 'listView',
4646- /*#__PURE__*/ l.object({
4747- cid: /*#__PURE__*/ l.string({ format: 'cid' }),
4848- uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),
4949- name: /*#__PURE__*/ l.string({ maxLength: 64, minLength: 1 }),
5050- avatar: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'uri' })),
5151- labels: /*#__PURE__*/ l.optional(
5252- /*#__PURE__*/ l.array(
5353- /*#__PURE__*/ l.ref<LabelDefs.Label>((() => LabelDefs.label) as any),
5454- ),
5555- ),
5656- viewer: /*#__PURE__*/ l.optional(
5757- /*#__PURE__*/ l.ref<ListViewerState>((() => listViewerState) as any),
5858- ),
5959- creator: /*#__PURE__*/ l.ref<ActorDefs.ProfileView>(
6060- (() => ActorDefs.profileView) as any,
6161- ),
6262- purpose: /*#__PURE__*/ l.ref<ListPurpose>((() => listPurpose) as any),
6363- indexedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
6464- description: /*#__PURE__*/ l.optional(
6565- /*#__PURE__*/ l.string({ maxLength: 3000, maxGraphemes: 300 }),
6666- ),
6767- listItemCount: /*#__PURE__*/ l.optional(
6868- /*#__PURE__*/ l.integer({ minimum: 0 }),
6969- ),
7070- descriptionFacets: /*#__PURE__*/ l.optional(
7171- /*#__PURE__*/ l.array(
7272- /*#__PURE__*/ l.ref<RichtextFacet.Main>(
7373- (() => RichtextFacet.main) as any,
7474- ),
7575- ),
7676- ),
7777- }),
7878-)
7979-8080-export { listView }
8181-8282-/** A list of actors used for curation purposes such as list feeds or interaction gating. */
8383-type Curatelist = 'app.bsky.graph.defs#curatelist'
8484-8585-export type { Curatelist }
8686-8787-/** A list of actors used for curation purposes such as list feeds or interaction gating. */
8888-const curatelist = /*#__PURE__*/ l.token($nsid, 'curatelist')
8989-9090-export { curatelist }
9191-9292-type ListPurpose =
9393- | 'app.bsky.graph.defs#modlist'
9494- | 'app.bsky.graph.defs#curatelist'
9595- | 'app.bsky.graph.defs#referencelist'
9696- | l.UnknownString
9797-9898-export type { ListPurpose }
9999-100100-const listPurpose = /*#__PURE__*/ l.string<{
101101- knownValues: [
102102- 'app.bsky.graph.defs#modlist',
103103- 'app.bsky.graph.defs#curatelist',
104104- 'app.bsky.graph.defs#referencelist',
105105- ]
106106-}>()
107107-108108-export { listPurpose }
109109-110110-type ListItemView = {
111111- $type?: 'app.bsky.graph.defs#listItemView'
112112- uri: l.AtUriString
113113- subject: ActorDefs.ProfileView
114114-}
115115-116116-export type { ListItemView }
117117-118118-const listItemView = /*#__PURE__*/ l.typedObject<ListItemView>(
119119- $nsid,
120120- 'listItemView',
121121- /*#__PURE__*/ l.object({
122122- uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),
123123- subject: /*#__PURE__*/ l.ref<ActorDefs.ProfileView>(
124124- (() => ActorDefs.profileView) as any,
125125- ),
126126- }),
127127-)
128128-129129-export { listItemView }
130130-131131-/** lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object) */
132132-type Relationship = {
133133- $type?: 'app.bsky.graph.defs#relationship'
134134- did: l.DidString
135135-136136- /**
137137- * if the actor blocks this DID, this is the AT-URI of the block record
138138- */
139139- blocking?: l.AtUriString
140140-141141- /**
142142- * if the actor is blocked by this DID, contains the AT-URI of the block record
143143- */
144144- blockedBy?: l.AtUriString
145145-146146- /**
147147- * if the actor follows this DID, this is the AT-URI of the follow record
148148- */
149149- following?: l.AtUriString
150150-151151- /**
152152- * if the actor is followed by this DID, contains the AT-URI of the follow record
153153- */
154154- followedBy?: l.AtUriString
155155-156156- /**
157157- * if the actor is blocked by this DID via a block list, contains the AT-URI of the listblock record
158158- */
159159- blockedByList?: l.AtUriString
160160-161161- /**
162162- * if the actor blocks this DID via a block list, this is the AT-URI of the listblock record
163163- */
164164- blockingByList?: l.AtUriString
165165-}
166166-167167-export type { Relationship }
168168-169169-/** lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object) */
170170-const relationship = /*#__PURE__*/ l.typedObject<Relationship>(
171171- $nsid,
172172- 'relationship',
173173- /*#__PURE__*/ l.object({
174174- did: /*#__PURE__*/ l.string({ format: 'did' }),
175175- blocking: /*#__PURE__*/ l.optional(
176176- /*#__PURE__*/ l.string({ format: 'at-uri' }),
177177- ),
178178- blockedBy: /*#__PURE__*/ l.optional(
179179- /*#__PURE__*/ l.string({ format: 'at-uri' }),
180180- ),
181181- following: /*#__PURE__*/ l.optional(
182182- /*#__PURE__*/ l.string({ format: 'at-uri' }),
183183- ),
184184- followedBy: /*#__PURE__*/ l.optional(
185185- /*#__PURE__*/ l.string({ format: 'at-uri' }),
186186- ),
187187- blockedByList: /*#__PURE__*/ l.optional(
188188- /*#__PURE__*/ l.string({ format: 'at-uri' }),
189189- ),
190190- blockingByList: /*#__PURE__*/ l.optional(
191191- /*#__PURE__*/ l.string({ format: 'at-uri' }),
192192- ),
193193- }),
194194-)
195195-196196-export { relationship }
197197-198198-type ListViewBasic = {
199199- $type?: 'app.bsky.graph.defs#listViewBasic'
200200- cid: l.CidString
201201- uri: l.AtUriString
202202- name: string
203203- avatar?: l.UriString
204204- labels?: LabelDefs.Label[]
205205- viewer?: ListViewerState
206206- purpose: ListPurpose
207207- indexedAt?: l.DatetimeString
208208- listItemCount?: number
209209-}
210210-211211-export type { ListViewBasic }
212212-213213-const listViewBasic = /*#__PURE__*/ l.typedObject<ListViewBasic>(
214214- $nsid,
215215- 'listViewBasic',
216216- /*#__PURE__*/ l.object({
217217- cid: /*#__PURE__*/ l.string({ format: 'cid' }),
218218- uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),
219219- name: /*#__PURE__*/ l.string({ maxLength: 64, minLength: 1 }),
220220- avatar: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'uri' })),
221221- labels: /*#__PURE__*/ l.optional(
222222- /*#__PURE__*/ l.array(
223223- /*#__PURE__*/ l.ref<LabelDefs.Label>((() => LabelDefs.label) as any),
224224- ),
225225- ),
226226- viewer: /*#__PURE__*/ l.optional(
227227- /*#__PURE__*/ l.ref<ListViewerState>((() => listViewerState) as any),
228228- ),
229229- purpose: /*#__PURE__*/ l.ref<ListPurpose>((() => listPurpose) as any),
230230- indexedAt: /*#__PURE__*/ l.optional(
231231- /*#__PURE__*/ l.string({ format: 'datetime' }),
232232- ),
233233- listItemCount: /*#__PURE__*/ l.optional(
234234- /*#__PURE__*/ l.integer({ minimum: 0 }),
235235- ),
236236- }),
237237-)
238238-239239-export { listViewBasic }
240240-241241-/** indicates that a handle or DID could not be resolved */
242242-type NotFoundActor = {
243243- $type?: 'app.bsky.graph.defs#notFoundActor'
244244- actor: l.AtIdentifierString
245245- notFound: true
246246-}
247247-248248-export type { NotFoundActor }
249249-250250-/** indicates that a handle or DID could not be resolved */
251251-const notFoundActor = /*#__PURE__*/ l.typedObject<NotFoundActor>(
252252- $nsid,
253253- 'notFoundActor',
254254- /*#__PURE__*/ l.object({
255255- actor: /*#__PURE__*/ l.string({ format: 'at-identifier' }),
256256- notFound: /*#__PURE__*/ l.literal(true),
257257- }),
258258-)
259259-260260-export { notFoundActor }
261261-262262-/** A list of actors used for only for reference purposes such as within a starter pack. */
263263-type Referencelist = 'app.bsky.graph.defs#referencelist'
264264-265265-export type { Referencelist }
266266-267267-/** A list of actors used for only for reference purposes such as within a starter pack. */
268268-const referencelist = /*#__PURE__*/ l.token($nsid, 'referencelist')
269269-270270-export { referencelist }
271271-272272-type ListViewerState = {
273273- $type?: 'app.bsky.graph.defs#listViewerState'
274274- muted?: boolean
275275- blocked?: l.AtUriString
276276-}
277277-278278-export type { ListViewerState }
279279-280280-const listViewerState = /*#__PURE__*/ l.typedObject<ListViewerState>(
281281- $nsid,
282282- 'listViewerState',
283283- /*#__PURE__*/ l.object({
284284- muted: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
285285- blocked: /*#__PURE__*/ l.optional(
286286- /*#__PURE__*/ l.string({ format: 'at-uri' }),
287287- ),
288288- }),
289289-)
290290-291291-export { listViewerState }
292292-293293-type StarterPackView = {
294294- $type?: 'app.bsky.graph.defs#starterPackView'
295295- cid: l.CidString
296296- uri: l.AtUriString
297297- list?: ListViewBasic
298298- feeds?: FeedDefs.GeneratorView[]
299299- labels?: LabelDefs.Label[]
300300- record: l.LexMap
301301- creator: ActorDefs.ProfileViewBasic
302302- indexedAt: l.DatetimeString
303303- joinedWeekCount?: number
304304- listItemsSample?: ListItemView[]
305305- joinedAllTimeCount?: number
306306-}
307307-308308-export type { StarterPackView }
309309-310310-const starterPackView = /*#__PURE__*/ l.typedObject<StarterPackView>(
311311- $nsid,
312312- 'starterPackView',
313313- /*#__PURE__*/ l.object({
314314- cid: /*#__PURE__*/ l.string({ format: 'cid' }),
315315- uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),
316316- list: /*#__PURE__*/ l.optional(
317317- /*#__PURE__*/ l.ref<ListViewBasic>((() => listViewBasic) as any),
318318- ),
319319- feeds: /*#__PURE__*/ l.optional(
320320- /*#__PURE__*/ l.array(
321321- /*#__PURE__*/ l.ref<FeedDefs.GeneratorView>(
322322- (() => FeedDefs.generatorView) as any,
323323- ),
324324- { maxLength: 3 },
325325- ),
326326- ),
327327- labels: /*#__PURE__*/ l.optional(
328328- /*#__PURE__*/ l.array(
329329- /*#__PURE__*/ l.ref<LabelDefs.Label>((() => LabelDefs.label) as any),
330330- ),
331331- ),
332332- record: /*#__PURE__*/ l.lexMap(),
333333- creator: /*#__PURE__*/ l.ref<ActorDefs.ProfileViewBasic>(
334334- (() => ActorDefs.profileViewBasic) as any,
335335- ),
336336- indexedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
337337- joinedWeekCount: /*#__PURE__*/ l.optional(
338338- /*#__PURE__*/ l.integer({ minimum: 0 }),
339339- ),
340340- listItemsSample: /*#__PURE__*/ l.optional(
341341- /*#__PURE__*/ l.array(
342342- /*#__PURE__*/ l.ref<ListItemView>((() => listItemView) as any),
343343- { maxLength: 12 },
344344- ),
345345- ),
346346- joinedAllTimeCount: /*#__PURE__*/ l.optional(
347347- /*#__PURE__*/ l.integer({ minimum: 0 }),
348348- ),
349349- }),
350350-)
351351-352352-export { starterPackView }
353353-354354-type StarterPackViewBasic = {
355355- $type?: 'app.bsky.graph.defs#starterPackViewBasic'
356356- cid: l.CidString
357357- uri: l.AtUriString
358358- labels?: LabelDefs.Label[]
359359- record: l.LexMap
360360- creator: ActorDefs.ProfileViewBasic
361361- indexedAt: l.DatetimeString
362362- listItemCount?: number
363363- joinedWeekCount?: number
364364- joinedAllTimeCount?: number
365365-}
366366-367367-export type { StarterPackViewBasic }
368368-369369-const starterPackViewBasic = /*#__PURE__*/ l.typedObject<StarterPackViewBasic>(
370370- $nsid,
371371- 'starterPackViewBasic',
372372- /*#__PURE__*/ l.object({
373373- cid: /*#__PURE__*/ l.string({ format: 'cid' }),
374374- uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),
375375- labels: /*#__PURE__*/ l.optional(
376376- /*#__PURE__*/ l.array(
377377- /*#__PURE__*/ l.ref<LabelDefs.Label>((() => LabelDefs.label) as any),
378378- ),
379379- ),
380380- record: /*#__PURE__*/ l.lexMap(),
381381- creator: /*#__PURE__*/ l.ref<ActorDefs.ProfileViewBasic>(
382382- (() => ActorDefs.profileViewBasic) as any,
383383- ),
384384- indexedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
385385- listItemCount: /*#__PURE__*/ l.optional(
386386- /*#__PURE__*/ l.integer({ minimum: 0 }),
387387- ),
388388- joinedWeekCount: /*#__PURE__*/ l.optional(
389389- /*#__PURE__*/ l.integer({ minimum: 0 }),
390390- ),
391391- joinedAllTimeCount: /*#__PURE__*/ l.optional(
392392- /*#__PURE__*/ l.integer({ minimum: 0 }),
393393- ),
394394- }),
395395-)
396396-397397-export { starterPackViewBasic }
-5
src/lexicons/app/bsky/graph/defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './defs.defs.js'
-186
src/lexicons/app/bsky/labeler/defs.defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-import { l } from '@atproto/lex'
66-import * as LabelDefs from '../../../com/atproto/label/defs.defs.js'
77-import * as ActorDefs from '../actor/defs.defs.js'
88-import * as ModerationDefs from '../../../com/atproto/moderation/defs.defs.js'
99-1010-const $nsid = 'app.bsky.labeler.defs'
1111-1212-export { $nsid }
1313-1414-type LabelerView = {
1515- $type?: 'app.bsky.labeler.defs#labelerView'
1616- cid: l.CidString
1717- uri: l.AtUriString
1818- labels?: LabelDefs.Label[]
1919- viewer?: LabelerViewerState
2020- creator: ActorDefs.ProfileView
2121- indexedAt: l.DatetimeString
2222- likeCount?: number
2323-}
2424-2525-export type { LabelerView }
2626-2727-const labelerView = /*#__PURE__*/ l.typedObject<LabelerView>(
2828- $nsid,
2929- 'labelerView',
3030- /*#__PURE__*/ l.object({
3131- cid: /*#__PURE__*/ l.string({ format: 'cid' }),
3232- uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),
3333- labels: /*#__PURE__*/ l.optional(
3434- /*#__PURE__*/ l.array(
3535- /*#__PURE__*/ l.ref<LabelDefs.Label>((() => LabelDefs.label) as any),
3636- ),
3737- ),
3838- viewer: /*#__PURE__*/ l.optional(
3939- /*#__PURE__*/ l.ref<LabelerViewerState>(
4040- (() => labelerViewerState) as any,
4141- ),
4242- ),
4343- creator: /*#__PURE__*/ l.ref<ActorDefs.ProfileView>(
4444- (() => ActorDefs.profileView) as any,
4545- ),
4646- indexedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
4747- likeCount: /*#__PURE__*/ l.optional(
4848- /*#__PURE__*/ l.integer({ minimum: 0 }),
4949- ),
5050- }),
5151-)
5252-5353-export { labelerView }
5454-5555-type LabelerPolicies = {
5656- $type?: 'app.bsky.labeler.defs#labelerPolicies'
5757-5858- /**
5959- * The label values which this labeler publishes. May include global or custom labels.
6060- */
6161- labelValues: LabelDefs.LabelValue[]
6262-6363- /**
6464- * Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler.
6565- */
6666- labelValueDefinitions?: LabelDefs.LabelValueDefinition[]
6767-}
6868-6969-export type { LabelerPolicies }
7070-7171-const labelerPolicies = /*#__PURE__*/ l.typedObject<LabelerPolicies>(
7272- $nsid,
7373- 'labelerPolicies',
7474- /*#__PURE__*/ l.object({
7575- labelValues: /*#__PURE__*/ l.array(
7676- /*#__PURE__*/ l.ref<LabelDefs.LabelValue>(
7777- (() => LabelDefs.labelValue) as any,
7878- ),
7979- ),
8080- labelValueDefinitions: /*#__PURE__*/ l.optional(
8181- /*#__PURE__*/ l.array(
8282- /*#__PURE__*/ l.ref<LabelDefs.LabelValueDefinition>(
8383- (() => LabelDefs.labelValueDefinition) as any,
8484- ),
8585- ),
8686- ),
8787- }),
8888-)
8989-9090-export { labelerPolicies }
9191-9292-type LabelerViewerState = {
9393- $type?: 'app.bsky.labeler.defs#labelerViewerState'
9494- like?: l.AtUriString
9595-}
9696-9797-export type { LabelerViewerState }
9898-9999-const labelerViewerState = /*#__PURE__*/ l.typedObject<LabelerViewerState>(
100100- $nsid,
101101- 'labelerViewerState',
102102- /*#__PURE__*/ l.object({
103103- like: /*#__PURE__*/ l.optional(
104104- /*#__PURE__*/ l.string({ format: 'at-uri' }),
105105- ),
106106- }),
107107-)
108108-109109-export { labelerViewerState }
110110-111111-type LabelerViewDetailed = {
112112- $type?: 'app.bsky.labeler.defs#labelerViewDetailed'
113113- cid: l.CidString
114114- uri: l.AtUriString
115115- labels?: LabelDefs.Label[]
116116- viewer?: LabelerViewerState
117117- creator: ActorDefs.ProfileView
118118- policies: LabelerPolicies
119119- indexedAt: l.DatetimeString
120120- likeCount?: number
121121-122122- /**
123123- * The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.
124124- */
125125- reasonTypes?: ModerationDefs.ReasonType[]
126126-127127- /**
128128- * The set of subject types (account, record, etc) this service accepts reports on.
129129- */
130130- subjectTypes?: ModerationDefs.SubjectType[]
131131-132132- /**
133133- * Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.
134134- */
135135- subjectCollections?: l.NsidString[]
136136-}
137137-138138-export type { LabelerViewDetailed }
139139-140140-const labelerViewDetailed = /*#__PURE__*/ l.typedObject<LabelerViewDetailed>(
141141- $nsid,
142142- 'labelerViewDetailed',
143143- /*#__PURE__*/ l.object({
144144- cid: /*#__PURE__*/ l.string({ format: 'cid' }),
145145- uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),
146146- labels: /*#__PURE__*/ l.optional(
147147- /*#__PURE__*/ l.array(
148148- /*#__PURE__*/ l.ref<LabelDefs.Label>((() => LabelDefs.label) as any),
149149- ),
150150- ),
151151- viewer: /*#__PURE__*/ l.optional(
152152- /*#__PURE__*/ l.ref<LabelerViewerState>(
153153- (() => labelerViewerState) as any,
154154- ),
155155- ),
156156- creator: /*#__PURE__*/ l.ref<ActorDefs.ProfileView>(
157157- (() => ActorDefs.profileView) as any,
158158- ),
159159- policies: /*#__PURE__*/ l.ref<LabelerPolicies>(
160160- (() => labelerPolicies) as any,
161161- ),
162162- indexedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
163163- likeCount: /*#__PURE__*/ l.optional(
164164- /*#__PURE__*/ l.integer({ minimum: 0 }),
165165- ),
166166- reasonTypes: /*#__PURE__*/ l.optional(
167167- /*#__PURE__*/ l.array(
168168- /*#__PURE__*/ l.ref<ModerationDefs.ReasonType>(
169169- (() => ModerationDefs.reasonType) as any,
170170- ),
171171- ),
172172- ),
173173- subjectTypes: /*#__PURE__*/ l.optional(
174174- /*#__PURE__*/ l.array(
175175- /*#__PURE__*/ l.ref<ModerationDefs.SubjectType>(
176176- (() => ModerationDefs.subjectType) as any,
177177- ),
178178- ),
179179- ),
180180- subjectCollections: /*#__PURE__*/ l.optional(
181181- /*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ format: 'nsid' })),
182182- ),
183183- }),
184184-)
185185-186186-export { labelerViewDetailed }
-5
src/lexicons/app/bsky/labeler/defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './defs.defs.js'
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './defs.defs.js'
-122
src/lexicons/app/bsky/richtext/facet.defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-import { l } from '@atproto/lex'
66-77-const $nsid = 'app.bsky.richtext.facet'
88-99-export { $nsid }
1010-1111-/** 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'). */
1212-type Tag = { $type?: 'app.bsky.richtext.facet#tag'; tag: string }
1313-1414-export type { Tag }
1515-1616-/** 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'). */
1717-const tag = /*#__PURE__*/ l.typedObject<Tag>(
1818- $nsid,
1919- 'tag',
2020- /*#__PURE__*/ l.object({
2121- tag: /*#__PURE__*/ l.string({ maxLength: 640, maxGraphemes: 64 }),
2222- }),
2323-)
2424-2525-export { tag }
2626-2727-/** Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL. */
2828-type Link = { $type?: 'app.bsky.richtext.facet#link'; uri: l.UriString }
2929-3030-export type { Link }
3131-3232-/** Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL. */
3333-const link = /*#__PURE__*/ l.typedObject<Link>(
3434- $nsid,
3535- 'link',
3636- /*#__PURE__*/ l.object({ uri: /*#__PURE__*/ l.string({ format: 'uri' }) }),
3737-)
3838-3939-export { link }
4040-4141-/** Annotation of a sub-string within rich text. */
4242-type Main = {
4343- $type?: 'app.bsky.richtext.facet'
4444- index: ByteSlice
4545- features: (
4646- | l.$Typed<Mention>
4747- | l.$Typed<Link>
4848- | l.$Typed<Tag>
4949- | l.Unknown$TypedObject
5050- )[]
5151-}
5252-5353-export type { Main }
5454-5555-/** Annotation of a sub-string within rich text. */
5656-const main = /*#__PURE__*/ l.typedObject<Main>(
5757- $nsid,
5858- 'main',
5959- /*#__PURE__*/ l.object({
6060- index: /*#__PURE__*/ l.ref<ByteSlice>((() => byteSlice) as any),
6161- features: /*#__PURE__*/ l.array(
6262- /*#__PURE__*/ l.typedUnion(
6363- [
6464- /*#__PURE__*/ l.typedRef<Mention>((() => mention) as any),
6565- /*#__PURE__*/ l.typedRef<Link>((() => link) as any),
6666- /*#__PURE__*/ l.typedRef<Tag>((() => tag) as any),
6767- ],
6868- false,
6969- ),
7070- ),
7171- }),
7272-)
7373-7474-export { main }
7575-7676-export const $type = $nsid
7777-export const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)
7878-export const $build = /*#__PURE__*/ main.build.bind(main)
7979-export const $assert = /*#__PURE__*/ main.assert.bind(main)
8080-export const $check = /*#__PURE__*/ main.check.bind(main)
8181-export const $cast = /*#__PURE__*/ main.cast.bind(main)
8282-export const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)
8383-export const $matches = /*#__PURE__*/ main.matches.bind(main)
8484-export const $parse = /*#__PURE__*/ main.parse.bind(main)
8585-export const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)
8686-export const $validate = /*#__PURE__*/ main.validate.bind(main)
8787-export const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)
8888-8989-/** Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID. */
9090-type Mention = { $type?: 'app.bsky.richtext.facet#mention'; did: l.DidString }
9191-9292-export type { Mention }
9393-9494-/** Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID. */
9595-const mention = /*#__PURE__*/ l.typedObject<Mention>(
9696- $nsid,
9797- 'mention',
9898- /*#__PURE__*/ l.object({ did: /*#__PURE__*/ l.string({ format: 'did' }) }),
9999-)
100100-101101-export { mention }
102102-103103-/** 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. */
104104-type ByteSlice = {
105105- $type?: 'app.bsky.richtext.facet#byteSlice'
106106- byteEnd: number
107107- byteStart: number
108108-}
109109-110110-export type { ByteSlice }
111111-112112-/** 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. */
113113-const byteSlice = /*#__PURE__*/ l.typedObject<ByteSlice>(
114114- $nsid,
115115- 'byteSlice',
116116- /*#__PURE__*/ l.object({
117117- byteEnd: /*#__PURE__*/ l.integer({ minimum: 0 }),
118118- byteStart: /*#__PURE__*/ l.integer({ minimum: 0 }),
119119- }),
120120-)
121121-122122-export { byteSlice }
-6
src/lexicons/app/bsky/richtext/facet.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './facet.defs.js'
66-export { main as default } from './facet.defs.js'
-254
src/lexicons/com/atproto/label/defs.defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-import { l } from '@atproto/lex'
66-77-const $nsid = 'com.atproto.label.defs'
88-99-export { $nsid }
1010-1111-/** Metadata tag on an atproto resource (eg, repo or record). */
1212-type Label = {
1313- $type?: 'com.atproto.label.defs#label'
1414-1515- /**
1616- * Optionally, CID specifying the specific version of 'uri' resource this label applies to.
1717- */
1818- cid?: l.CidString
1919-2020- /**
2121- * Timestamp when this label was created.
2222- */
2323- cts: l.DatetimeString
2424-2525- /**
2626- * Timestamp at which this label expires (no longer applies).
2727- */
2828- exp?: l.DatetimeString
2929-3030- /**
3131- * If true, this is a negation label, overwriting a previous label.
3232- */
3333- neg?: boolean
3434-3535- /**
3636- * Signature of dag-cbor encoded label.
3737- */
3838- sig?: Uint8Array
3939-4040- /**
4141- * DID of the actor who created this label.
4242- */
4343- src: l.DidString
4444-4545- /**
4646- * AT URI of the record, repository (account), or other resource that this label applies to.
4747- */
4848- uri: l.UriString
4949-5050- /**
5151- * The short string name of the value or type of this label.
5252- */
5353- val: string
5454-5555- /**
5656- * The AT Protocol version of the label object.
5757- */
5858- ver?: number
5959-}
6060-6161-export type { Label }
6262-6363-/** Metadata tag on an atproto resource (eg, repo or record). */
6464-const label = /*#__PURE__*/ l.typedObject<Label>(
6565- $nsid,
6666- 'label',
6767- /*#__PURE__*/ l.object({
6868- cid: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'cid' })),
6969- cts: /*#__PURE__*/ l.string({ format: 'datetime' }),
7070- exp: /*#__PURE__*/ l.optional(
7171- /*#__PURE__*/ l.string({ format: 'datetime' }),
7272- ),
7373- neg: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
7474- sig: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.bytes()),
7575- src: /*#__PURE__*/ l.string({ format: 'did' }),
7676- uri: /*#__PURE__*/ l.string({ format: 'uri' }),
7777- val: /*#__PURE__*/ l.string({ maxLength: 128 }),
7878- ver: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
7979- }),
8080-)
8181-8282-export { label }
8383-8484-/** Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel. */
8585-type SelfLabel = {
8686- $type?: 'com.atproto.label.defs#selfLabel'
8787-8888- /**
8989- * The short string name of the value or type of this label.
9090- */
9191- val: string
9292-}
9393-9494-export type { SelfLabel }
9595-9696-/** Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel. */
9797-const selfLabel = /*#__PURE__*/ l.typedObject<SelfLabel>(
9898- $nsid,
9999- 'selfLabel',
100100- /*#__PURE__*/ l.object({ val: /*#__PURE__*/ l.string({ maxLength: 128 }) }),
101101-)
102102-103103-export { selfLabel }
104104-105105-type LabelValue =
106106- | '!hide'
107107- | '!warn'
108108- | '!no-unauthenticated'
109109- | 'porn'
110110- | 'sexual'
111111- | 'nudity'
112112- | 'graphic-media'
113113- | 'bot'
114114- | l.UnknownString
115115-116116-export type { LabelValue }
117117-118118-const labelValue = /*#__PURE__*/ l.string<{
119119- knownValues: [
120120- '!hide',
121121- '!warn',
122122- '!no-unauthenticated',
123123- 'porn',
124124- 'sexual',
125125- 'nudity',
126126- 'graphic-media',
127127- 'bot',
128128- ]
129129-}>()
130130-131131-export { labelValue }
132132-133133-/** Metadata tags on an atproto record, published by the author within the record. */
134134-type SelfLabels = {
135135- $type?: 'com.atproto.label.defs#selfLabels'
136136- values: SelfLabel[]
137137-}
138138-139139-export type { SelfLabels }
140140-141141-/** Metadata tags on an atproto record, published by the author within the record. */
142142-const selfLabels = /*#__PURE__*/ l.typedObject<SelfLabels>(
143143- $nsid,
144144- 'selfLabels',
145145- /*#__PURE__*/ l.object({
146146- values: /*#__PURE__*/ l.array(
147147- /*#__PURE__*/ l.ref<SelfLabel>((() => selfLabel) as any),
148148- { maxLength: 10 },
149149- ),
150150- }),
151151-)
152152-153153-export { selfLabels }
154154-155155-/** Declares a label value and its expected interpretations and behaviors. */
156156-type LabelValueDefinition = {
157157- $type?: 'com.atproto.label.defs#labelValueDefinition'
158158-159159- /**
160160- * 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.
161161- */
162162- blurs: 'content' | 'media' | 'none' | l.UnknownString
163163- locales: LabelValueDefinitionStrings[]
164164-165165- /**
166166- * How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing.
167167- */
168168- severity: 'inform' | 'alert' | 'none' | l.UnknownString
169169-170170- /**
171171- * Does the user need to have adult content enabled in order to configure this label?
172172- */
173173- adultOnly?: boolean
174174-175175- /**
176176- * The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+).
177177- */
178178- identifier: string
179179-180180- /**
181181- * The default setting for this label.
182182- */
183183- defaultSetting?: 'ignore' | 'warn' | 'hide' | l.UnknownString
184184-}
185185-186186-export type { LabelValueDefinition }
187187-188188-/** Declares a label value and its expected interpretations and behaviors. */
189189-const labelValueDefinition = /*#__PURE__*/ l.typedObject<LabelValueDefinition>(
190190- $nsid,
191191- 'labelValueDefinition',
192192- /*#__PURE__*/ l.object({
193193- blurs: /*#__PURE__*/ l.string<{
194194- knownValues: ['content', 'media', 'none']
195195- }>(),
196196- locales: /*#__PURE__*/ l.array(
197197- /*#__PURE__*/ l.ref<LabelValueDefinitionStrings>(
198198- (() => labelValueDefinitionStrings) as any,
199199- ),
200200- ),
201201- severity: /*#__PURE__*/ l.string<{
202202- knownValues: ['inform', 'alert', 'none']
203203- }>(),
204204- adultOnly: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
205205- identifier: /*#__PURE__*/ l.string({ maxLength: 100, maxGraphemes: 100 }),
206206- defaultSetting: /*#__PURE__*/ l.optional(
207207- /*#__PURE__*/ l.withDefault(
208208- /*#__PURE__*/ l.string<{ knownValues: ['ignore', 'warn', 'hide'] }>(),
209209- 'warn',
210210- ),
211211- ),
212212- }),
213213-)
214214-215215-export { labelValueDefinition }
216216-217217-/** Strings which describe the label in the UI, localized into a specific language. */
218218-type LabelValueDefinitionStrings = {
219219- $type?: 'com.atproto.label.defs#labelValueDefinitionStrings'
220220-221221- /**
222222- * The code of the language these strings are written in.
223223- */
224224- lang: l.LanguageString
225225-226226- /**
227227- * A short human-readable name for the label.
228228- */
229229- name: string
230230-231231- /**
232232- * A longer description of what the label means and why it might be applied.
233233- */
234234- description: string
235235-}
236236-237237-export type { LabelValueDefinitionStrings }
238238-239239-/** Strings which describe the label in the UI, localized into a specific language. */
240240-const labelValueDefinitionStrings =
241241- /*#__PURE__*/ l.typedObject<LabelValueDefinitionStrings>(
242242- $nsid,
243243- 'labelValueDefinitionStrings',
244244- /*#__PURE__*/ l.object({
245245- lang: /*#__PURE__*/ l.string({ format: 'language' }),
246246- name: /*#__PURE__*/ l.string({ maxLength: 640, maxGraphemes: 64 }),
247247- description: /*#__PURE__*/ l.string({
248248- maxLength: 100000,
249249- maxGraphemes: 10000,
250250- }),
251251- }),
252252- )
253253-254254-export { labelValueDefinitionStrings }
-5
src/lexicons/com/atproto/label/defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './defs.defs.js'
-197
src/lexicons/com/atproto/moderation/defs.defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-import { l } from '@atproto/lex'
66-77-const $nsid = 'com.atproto.moderation.defs'
88-99-export { $nsid }
1010-1111-/** Rude, harassing, explicit, or otherwise unwelcoming behavior. Prefer new lexicon definition `tools.ozone.report.defs#reasonHarassmentOther`. */
1212-type ReasonRude = 'com.atproto.moderation.defs#reasonRude'
1313-1414-export type { ReasonRude }
1515-1616-/** Rude, harassing, explicit, or otherwise unwelcoming behavior. Prefer new lexicon definition `tools.ozone.report.defs#reasonHarassmentOther`. */
1717-const reasonRude = /*#__PURE__*/ l.token($nsid, 'reasonRude')
1818-1919-export { reasonRude }
2020-2121-/** Spam: frequent unwanted promotion, replies, mentions. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingSpam`. */
2222-type ReasonSpam = 'com.atproto.moderation.defs#reasonSpam'
2323-2424-export type { ReasonSpam }
2525-2626-/** Spam: frequent unwanted promotion, replies, mentions. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingSpam`. */
2727-const reasonSpam = /*#__PURE__*/ l.token($nsid, 'reasonSpam')
2828-2929-export { reasonSpam }
3030-3131-type ReasonType =
3232- | 'com.atproto.moderation.defs#reasonSpam'
3333- | 'com.atproto.moderation.defs#reasonViolation'
3434- | 'com.atproto.moderation.defs#reasonMisleading'
3535- | 'com.atproto.moderation.defs#reasonSexual'
3636- | 'com.atproto.moderation.defs#reasonRude'
3737- | 'com.atproto.moderation.defs#reasonOther'
3838- | 'com.atproto.moderation.defs#reasonAppeal'
3939- | 'tools.ozone.report.defs#reasonAppeal'
4040- | 'tools.ozone.report.defs#reasonOther'
4141- | 'tools.ozone.report.defs#reasonViolenceAnimal'
4242- | 'tools.ozone.report.defs#reasonViolenceThreats'
4343- | 'tools.ozone.report.defs#reasonViolenceGraphicContent'
4444- | 'tools.ozone.report.defs#reasonViolenceGlorification'
4545- | 'tools.ozone.report.defs#reasonViolenceExtremistContent'
4646- | 'tools.ozone.report.defs#reasonViolenceTrafficking'
4747- | 'tools.ozone.report.defs#reasonViolenceOther'
4848- | 'tools.ozone.report.defs#reasonSexualAbuseContent'
4949- | 'tools.ozone.report.defs#reasonSexualNCII'
5050- | 'tools.ozone.report.defs#reasonSexualDeepfake'
5151- | 'tools.ozone.report.defs#reasonSexualAnimal'
5252- | 'tools.ozone.report.defs#reasonSexualUnlabeled'
5353- | 'tools.ozone.report.defs#reasonSexualOther'
5454- | 'tools.ozone.report.defs#reasonChildSafetyCSAM'
5555- | 'tools.ozone.report.defs#reasonChildSafetyGroom'
5656- | 'tools.ozone.report.defs#reasonChildSafetyPrivacy'
5757- | 'tools.ozone.report.defs#reasonChildSafetyHarassment'
5858- | 'tools.ozone.report.defs#reasonChildSafetyOther'
5959- | 'tools.ozone.report.defs#reasonHarassmentTroll'
6060- | 'tools.ozone.report.defs#reasonHarassmentTargeted'
6161- | 'tools.ozone.report.defs#reasonHarassmentHateSpeech'
6262- | 'tools.ozone.report.defs#reasonHarassmentDoxxing'
6363- | 'tools.ozone.report.defs#reasonHarassmentOther'
6464- | 'tools.ozone.report.defs#reasonMisleadingBot'
6565- | 'tools.ozone.report.defs#reasonMisleadingImpersonation'
6666- | 'tools.ozone.report.defs#reasonMisleadingSpam'
6767- | 'tools.ozone.report.defs#reasonMisleadingScam'
6868- | 'tools.ozone.report.defs#reasonMisleadingElections'
6969- | 'tools.ozone.report.defs#reasonMisleadingOther'
7070- | 'tools.ozone.report.defs#reasonRuleSiteSecurity'
7171- | 'tools.ozone.report.defs#reasonRuleProhibitedSales'
7272- | 'tools.ozone.report.defs#reasonRuleBanEvasion'
7373- | 'tools.ozone.report.defs#reasonRuleOther'
7474- | 'tools.ozone.report.defs#reasonSelfHarmContent'
7575- | 'tools.ozone.report.defs#reasonSelfHarmED'
7676- | 'tools.ozone.report.defs#reasonSelfHarmStunts'
7777- | 'tools.ozone.report.defs#reasonSelfHarmSubstances'
7878- | 'tools.ozone.report.defs#reasonSelfHarmOther'
7979- | l.UnknownString
8080-8181-export type { ReasonType }
8282-8383-const reasonType = /*#__PURE__*/ l.string<{
8484- knownValues: [
8585- 'com.atproto.moderation.defs#reasonSpam',
8686- 'com.atproto.moderation.defs#reasonViolation',
8787- 'com.atproto.moderation.defs#reasonMisleading',
8888- 'com.atproto.moderation.defs#reasonSexual',
8989- 'com.atproto.moderation.defs#reasonRude',
9090- 'com.atproto.moderation.defs#reasonOther',
9191- 'com.atproto.moderation.defs#reasonAppeal',
9292- 'tools.ozone.report.defs#reasonAppeal',
9393- 'tools.ozone.report.defs#reasonOther',
9494- 'tools.ozone.report.defs#reasonViolenceAnimal',
9595- 'tools.ozone.report.defs#reasonViolenceThreats',
9696- 'tools.ozone.report.defs#reasonViolenceGraphicContent',
9797- 'tools.ozone.report.defs#reasonViolenceGlorification',
9898- 'tools.ozone.report.defs#reasonViolenceExtremistContent',
9999- 'tools.ozone.report.defs#reasonViolenceTrafficking',
100100- 'tools.ozone.report.defs#reasonViolenceOther',
101101- 'tools.ozone.report.defs#reasonSexualAbuseContent',
102102- 'tools.ozone.report.defs#reasonSexualNCII',
103103- 'tools.ozone.report.defs#reasonSexualDeepfake',
104104- 'tools.ozone.report.defs#reasonSexualAnimal',
105105- 'tools.ozone.report.defs#reasonSexualUnlabeled',
106106- 'tools.ozone.report.defs#reasonSexualOther',
107107- 'tools.ozone.report.defs#reasonChildSafetyCSAM',
108108- 'tools.ozone.report.defs#reasonChildSafetyGroom',
109109- 'tools.ozone.report.defs#reasonChildSafetyPrivacy',
110110- 'tools.ozone.report.defs#reasonChildSafetyHarassment',
111111- 'tools.ozone.report.defs#reasonChildSafetyOther',
112112- 'tools.ozone.report.defs#reasonHarassmentTroll',
113113- 'tools.ozone.report.defs#reasonHarassmentTargeted',
114114- 'tools.ozone.report.defs#reasonHarassmentHateSpeech',
115115- 'tools.ozone.report.defs#reasonHarassmentDoxxing',
116116- 'tools.ozone.report.defs#reasonHarassmentOther',
117117- 'tools.ozone.report.defs#reasonMisleadingBot',
118118- 'tools.ozone.report.defs#reasonMisleadingImpersonation',
119119- 'tools.ozone.report.defs#reasonMisleadingSpam',
120120- 'tools.ozone.report.defs#reasonMisleadingScam',
121121- 'tools.ozone.report.defs#reasonMisleadingElections',
122122- 'tools.ozone.report.defs#reasonMisleadingOther',
123123- 'tools.ozone.report.defs#reasonRuleSiteSecurity',
124124- 'tools.ozone.report.defs#reasonRuleProhibitedSales',
125125- 'tools.ozone.report.defs#reasonRuleBanEvasion',
126126- 'tools.ozone.report.defs#reasonRuleOther',
127127- 'tools.ozone.report.defs#reasonSelfHarmContent',
128128- 'tools.ozone.report.defs#reasonSelfHarmED',
129129- 'tools.ozone.report.defs#reasonSelfHarmStunts',
130130- 'tools.ozone.report.defs#reasonSelfHarmSubstances',
131131- 'tools.ozone.report.defs#reasonSelfHarmOther',
132132- ]
133133-}>()
134134-135135-export { reasonType }
136136-137137-/** Reports not falling under another report category. Prefer new lexicon definition `tools.ozone.report.defs#reasonOther`. */
138138-type ReasonOther = 'com.atproto.moderation.defs#reasonOther'
139139-140140-export type { ReasonOther }
141141-142142-/** Reports not falling under another report category. Prefer new lexicon definition `tools.ozone.report.defs#reasonOther`. */
143143-const reasonOther = /*#__PURE__*/ l.token($nsid, 'reasonOther')
144144-145145-export { reasonOther }
146146-147147-/** Tag describing a type of subject that might be reported. */
148148-type SubjectType = 'account' | 'record' | 'chat' | l.UnknownString
149149-150150-export type { SubjectType }
151151-152152-/** Tag describing a type of subject that might be reported. */
153153-const subjectType = /*#__PURE__*/ l.string<{
154154- knownValues: ['account', 'record', 'chat']
155155-}>()
156156-157157-export { subjectType }
158158-159159-/** Appeal a previously taken moderation action */
160160-type ReasonAppeal = 'com.atproto.moderation.defs#reasonAppeal'
161161-162162-export type { ReasonAppeal }
163163-164164-/** Appeal a previously taken moderation action */
165165-const reasonAppeal = /*#__PURE__*/ l.token($nsid, 'reasonAppeal')
166166-167167-export { reasonAppeal }
168168-169169-/** Unwanted or mislabeled sexual content. Prefer new lexicon definition `tools.ozone.report.defs#reasonSexualUnlabeled`. */
170170-type ReasonSexual = 'com.atproto.moderation.defs#reasonSexual'
171171-172172-export type { ReasonSexual }
173173-174174-/** Unwanted or mislabeled sexual content. Prefer new lexicon definition `tools.ozone.report.defs#reasonSexualUnlabeled`. */
175175-const reasonSexual = /*#__PURE__*/ l.token($nsid, 'reasonSexual')
176176-177177-export { reasonSexual }
178178-179179-/** Direct violation of server rules, laws, terms of service. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`. */
180180-type ReasonViolation = 'com.atproto.moderation.defs#reasonViolation'
181181-182182-export type { ReasonViolation }
183183-184184-/** Direct violation of server rules, laws, terms of service. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`. */
185185-const reasonViolation = /*#__PURE__*/ l.token($nsid, 'reasonViolation')
186186-187187-export { reasonViolation }
188188-189189-/** Misleading identity, affiliation, or content. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingOther`. */
190190-type ReasonMisleading = 'com.atproto.moderation.defs#reasonMisleading'
191191-192192-export type { ReasonMisleading }
193193-194194-/** Misleading identity, affiliation, or content. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingOther`. */
195195-const reasonMisleading = /*#__PURE__*/ l.token($nsid, 'reasonMisleading')
196196-197197-export { reasonMisleading }
-5
src/lexicons/com/atproto/moderation/defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './defs.defs.js'
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './strongRef.defs.js'
66-export { main as default } from './strongRef.defs.js'
-604
src/lexicons/tools/ozone/report/defs.defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-import { l } from '@atproto/lex'
66-77-const $nsid = 'tools.ozone.report.defs'
88-99-export { $nsid }
1010-1111-type ReasonType =
1212- | 'tools.ozone.report.defs#reasonAppeal'
1313- | 'tools.ozone.report.defs#reasonOther'
1414- | 'tools.ozone.report.defs#reasonViolenceAnimal'
1515- | 'tools.ozone.report.defs#reasonViolenceThreats'
1616- | 'tools.ozone.report.defs#reasonViolenceGraphicContent'
1717- | 'tools.ozone.report.defs#reasonViolenceGlorification'
1818- | 'tools.ozone.report.defs#reasonViolenceExtremistContent'
1919- | 'tools.ozone.report.defs#reasonViolenceTrafficking'
2020- | 'tools.ozone.report.defs#reasonViolenceOther'
2121- | 'tools.ozone.report.defs#reasonSexualAbuseContent'
2222- | 'tools.ozone.report.defs#reasonSexualNCII'
2323- | 'tools.ozone.report.defs#reasonSexualDeepfake'
2424- | 'tools.ozone.report.defs#reasonSexualAnimal'
2525- | 'tools.ozone.report.defs#reasonSexualUnlabeled'
2626- | 'tools.ozone.report.defs#reasonSexualOther'
2727- | 'tools.ozone.report.defs#reasonChildSafetyCSAM'
2828- | 'tools.ozone.report.defs#reasonChildSafetyGroom'
2929- | 'tools.ozone.report.defs#reasonChildSafetyPrivacy'
3030- | 'tools.ozone.report.defs#reasonChildSafetyHarassment'
3131- | 'tools.ozone.report.defs#reasonChildSafetyOther'
3232- | 'tools.ozone.report.defs#reasonHarassmentTroll'
3333- | 'tools.ozone.report.defs#reasonHarassmentTargeted'
3434- | 'tools.ozone.report.defs#reasonHarassmentHateSpeech'
3535- | 'tools.ozone.report.defs#reasonHarassmentDoxxing'
3636- | 'tools.ozone.report.defs#reasonHarassmentOther'
3737- | 'tools.ozone.report.defs#reasonMisleadingBot'
3838- | 'tools.ozone.report.defs#reasonMisleadingImpersonation'
3939- | 'tools.ozone.report.defs#reasonMisleadingSpam'
4040- | 'tools.ozone.report.defs#reasonMisleadingScam'
4141- | 'tools.ozone.report.defs#reasonMisleadingElections'
4242- | 'tools.ozone.report.defs#reasonMisleadingOther'
4343- | 'tools.ozone.report.defs#reasonRuleSiteSecurity'
4444- | 'tools.ozone.report.defs#reasonRuleProhibitedSales'
4545- | 'tools.ozone.report.defs#reasonRuleBanEvasion'
4646- | 'tools.ozone.report.defs#reasonRuleOther'
4747- | 'tools.ozone.report.defs#reasonSelfHarmContent'
4848- | 'tools.ozone.report.defs#reasonSelfHarmED'
4949- | 'tools.ozone.report.defs#reasonSelfHarmStunts'
5050- | 'tools.ozone.report.defs#reasonSelfHarmSubstances'
5151- | 'tools.ozone.report.defs#reasonSelfHarmOther'
5252- | l.UnknownString
5353-5454-export type { ReasonType }
5555-5656-const reasonType = /*#__PURE__*/ l.string<{
5757- knownValues: [
5858- 'tools.ozone.report.defs#reasonAppeal',
5959- 'tools.ozone.report.defs#reasonOther',
6060- 'tools.ozone.report.defs#reasonViolenceAnimal',
6161- 'tools.ozone.report.defs#reasonViolenceThreats',
6262- 'tools.ozone.report.defs#reasonViolenceGraphicContent',
6363- 'tools.ozone.report.defs#reasonViolenceGlorification',
6464- 'tools.ozone.report.defs#reasonViolenceExtremistContent',
6565- 'tools.ozone.report.defs#reasonViolenceTrafficking',
6666- 'tools.ozone.report.defs#reasonViolenceOther',
6767- 'tools.ozone.report.defs#reasonSexualAbuseContent',
6868- 'tools.ozone.report.defs#reasonSexualNCII',
6969- 'tools.ozone.report.defs#reasonSexualDeepfake',
7070- 'tools.ozone.report.defs#reasonSexualAnimal',
7171- 'tools.ozone.report.defs#reasonSexualUnlabeled',
7272- 'tools.ozone.report.defs#reasonSexualOther',
7373- 'tools.ozone.report.defs#reasonChildSafetyCSAM',
7474- 'tools.ozone.report.defs#reasonChildSafetyGroom',
7575- 'tools.ozone.report.defs#reasonChildSafetyPrivacy',
7676- 'tools.ozone.report.defs#reasonChildSafetyHarassment',
7777- 'tools.ozone.report.defs#reasonChildSafetyOther',
7878- 'tools.ozone.report.defs#reasonHarassmentTroll',
7979- 'tools.ozone.report.defs#reasonHarassmentTargeted',
8080- 'tools.ozone.report.defs#reasonHarassmentHateSpeech',
8181- 'tools.ozone.report.defs#reasonHarassmentDoxxing',
8282- 'tools.ozone.report.defs#reasonHarassmentOther',
8383- 'tools.ozone.report.defs#reasonMisleadingBot',
8484- 'tools.ozone.report.defs#reasonMisleadingImpersonation',
8585- 'tools.ozone.report.defs#reasonMisleadingSpam',
8686- 'tools.ozone.report.defs#reasonMisleadingScam',
8787- 'tools.ozone.report.defs#reasonMisleadingElections',
8888- 'tools.ozone.report.defs#reasonMisleadingOther',
8989- 'tools.ozone.report.defs#reasonRuleSiteSecurity',
9090- 'tools.ozone.report.defs#reasonRuleProhibitedSales',
9191- 'tools.ozone.report.defs#reasonRuleBanEvasion',
9292- 'tools.ozone.report.defs#reasonRuleOther',
9393- 'tools.ozone.report.defs#reasonSelfHarmContent',
9494- 'tools.ozone.report.defs#reasonSelfHarmED',
9595- 'tools.ozone.report.defs#reasonSelfHarmStunts',
9696- 'tools.ozone.report.defs#reasonSelfHarmSubstances',
9797- 'tools.ozone.report.defs#reasonSelfHarmOther',
9898- ]
9999-}>()
100100-101101-export { reasonType }
102102-103103-/** An issue not included in these options */
104104-type ReasonOther = 'tools.ozone.report.defs#reasonOther'
105105-106106-export type { ReasonOther }
107107-108108-/** An issue not included in these options */
109109-const reasonOther = /*#__PURE__*/ l.token($nsid, 'reasonOther')
110110-111111-export { reasonOther }
112112-113113-/** Appeal a previously taken moderation action */
114114-type ReasonAppeal = 'tools.ozone.report.defs#reasonAppeal'
115115-116116-export type { ReasonAppeal }
117117-118118-/** Appeal a previously taken moderation action */
119119-const reasonAppeal = /*#__PURE__*/ l.token($nsid, 'reasonAppeal')
120120-121121-export { reasonAppeal }
122122-123123-/** Other */
124124-type ReasonRuleOther = 'tools.ozone.report.defs#reasonRuleOther'
125125-126126-export type { ReasonRuleOther }
127127-128128-/** Other */
129129-const reasonRuleOther = /*#__PURE__*/ l.token($nsid, 'reasonRuleOther')
130130-131131-export { reasonRuleOther }
132132-133133-/** Eating disorders */
134134-type ReasonSelfHarmED = 'tools.ozone.report.defs#reasonSelfHarmED'
135135-136136-export type { ReasonSelfHarmED as ReasonSelfHarmEd }
137137-138138-/** Eating disorders */
139139-const reasonSelfHarmED = /*#__PURE__*/ l.token($nsid, 'reasonSelfHarmED')
140140-141141-export { reasonSelfHarmED }
142142-143143-/** Non-consensual intimate imagery */
144144-type ReasonSexualNCII = 'tools.ozone.report.defs#reasonSexualNCII'
145145-146146-export type { ReasonSexualNCII as ReasonSexualNcii }
147147-148148-/** Non-consensual intimate imagery */
149149-const reasonSexualNCII = /*#__PURE__*/ l.token($nsid, 'reasonSexualNCII')
150150-151151-export { reasonSexualNCII }
152152-153153-/** Other sexual violence content */
154154-type ReasonSexualOther = 'tools.ozone.report.defs#reasonSexualOther'
155155-156156-export type { ReasonSexualOther }
157157-158158-/** Other sexual violence content */
159159-const reasonSexualOther = /*#__PURE__*/ l.token($nsid, 'reasonSexualOther')
160160-161161-export { reasonSexualOther }
162162-163163-/** Animal sexual abuse */
164164-type ReasonSexualAnimal = 'tools.ozone.report.defs#reasonSexualAnimal'
165165-166166-export type { ReasonSexualAnimal }
167167-168168-/** Animal sexual abuse */
169169-const reasonSexualAnimal = /*#__PURE__*/ l.token($nsid, 'reasonSexualAnimal')
170170-171171-export { reasonSexualAnimal }
172172-173173-/** Fake account or bot */
174174-type ReasonMisleadingBot = 'tools.ozone.report.defs#reasonMisleadingBot'
175175-176176-export type { ReasonMisleadingBot }
177177-178178-/** Fake account or bot */
179179-const reasonMisleadingBot = /*#__PURE__*/ l.token($nsid, 'reasonMisleadingBot')
180180-181181-export { reasonMisleadingBot }
182182-183183-/** Other dangerous content */
184184-type ReasonSelfHarmOther = 'tools.ozone.report.defs#reasonSelfHarmOther'
185185-186186-export type { ReasonSelfHarmOther }
187187-188188-/** Other dangerous content */
189189-const reasonSelfHarmOther = /*#__PURE__*/ l.token($nsid, 'reasonSelfHarmOther')
190190-191191-export { reasonSelfHarmOther }
192192-193193-/** Other violent content */
194194-type ReasonViolenceOther = 'tools.ozone.report.defs#reasonViolenceOther'
195195-196196-export type { ReasonViolenceOther }
197197-198198-/** Other violent content */
199199-const reasonViolenceOther = /*#__PURE__*/ l.token($nsid, 'reasonViolenceOther')
200200-201201-export { reasonViolenceOther }
202202-203203-/** Scam */
204204-type ReasonMisleadingScam = 'tools.ozone.report.defs#reasonMisleadingScam'
205205-206206-export type { ReasonMisleadingScam }
207207-208208-/** Scam */
209209-const reasonMisleadingScam = /*#__PURE__*/ l.token(
210210- $nsid,
211211- 'reasonMisleadingScam',
212212-)
213213-214214-export { reasonMisleadingScam }
215215-216216-/** Spam */
217217-type ReasonMisleadingSpam = 'tools.ozone.report.defs#reasonMisleadingSpam'
218218-219219-export type { ReasonMisleadingSpam }
220220-221221-/** Spam */
222222-const reasonMisleadingSpam = /*#__PURE__*/ l.token(
223223- $nsid,
224224- 'reasonMisleadingSpam',
225225-)
226226-227227-export { reasonMisleadingSpam }
228228-229229-/** Banned user returning */
230230-type ReasonRuleBanEvasion = 'tools.ozone.report.defs#reasonRuleBanEvasion'
231231-232232-export type { ReasonRuleBanEvasion }
233233-234234-/** Banned user returning */
235235-const reasonRuleBanEvasion = /*#__PURE__*/ l.token(
236236- $nsid,
237237- 'reasonRuleBanEvasion',
238238-)
239239-240240-export { reasonRuleBanEvasion }
241241-242242-/** Dangerous challenges or activities */
243243-type ReasonSelfHarmStunts = 'tools.ozone.report.defs#reasonSelfHarmStunts'
244244-245245-export type { ReasonSelfHarmStunts }
246246-247247-/** Dangerous challenges or activities */
248248-const reasonSelfHarmStunts = /*#__PURE__*/ l.token(
249249- $nsid,
250250- 'reasonSelfHarmStunts',
251251-)
252252-253253-export { reasonSelfHarmStunts }
254254-255255-/** Deepfake adult content */
256256-type ReasonSexualDeepfake = 'tools.ozone.report.defs#reasonSexualDeepfake'
257257-258258-export type { ReasonSexualDeepfake }
259259-260260-/** Deepfake adult content */
261261-const reasonSexualDeepfake = /*#__PURE__*/ l.token(
262262- $nsid,
263263- 'reasonSexualDeepfake',
264264-)
265265-266266-export { reasonSexualDeepfake }
267267-268268-/** Animal welfare violations */
269269-type ReasonViolenceAnimal = 'tools.ozone.report.defs#reasonViolenceAnimal'
270270-271271-export type { ReasonViolenceAnimal }
272272-273273-/** Animal welfare violations */
274274-const reasonViolenceAnimal = /*#__PURE__*/ l.token(
275275- $nsid,
276276- 'reasonViolenceAnimal',
277277-)
278278-279279-export { reasonViolenceAnimal }
280280-281281-/** Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority. */
282282-type ReasonChildSafetyCSAM = 'tools.ozone.report.defs#reasonChildSafetyCSAM'
283283-284284-export type { ReasonChildSafetyCSAM as ReasonChildSafetyCsam }
285285-286286-/** Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority. */
287287-const reasonChildSafetyCSAM = /*#__PURE__*/ l.token(
288288- $nsid,
289289- 'reasonChildSafetyCSAM',
290290-)
291291-292292-export { reasonChildSafetyCSAM }
293293-294294-/** Other harassing or hateful content */
295295-type ReasonHarassmentOther = 'tools.ozone.report.defs#reasonHarassmentOther'
296296-297297-export type { ReasonHarassmentOther }
298298-299299-/** Other harassing or hateful content */
300300-const reasonHarassmentOther = /*#__PURE__*/ l.token(
301301- $nsid,
302302- 'reasonHarassmentOther',
303303-)
304304-305305-export { reasonHarassmentOther }
306306-307307-/** Trolling */
308308-type ReasonHarassmentTroll = 'tools.ozone.report.defs#reasonHarassmentTroll'
309309-310310-export type { ReasonHarassmentTroll }
311311-312312-/** Trolling */
313313-const reasonHarassmentTroll = /*#__PURE__*/ l.token(
314314- $nsid,
315315- 'reasonHarassmentTroll',
316316-)
317317-318318-export { reasonHarassmentTroll }
319319-320320-/** Other misleading content */
321321-type ReasonMisleadingOther = 'tools.ozone.report.defs#reasonMisleadingOther'
322322-323323-export type { ReasonMisleadingOther }
324324-325325-/** Other misleading content */
326326-const reasonMisleadingOther = /*#__PURE__*/ l.token(
327327- $nsid,
328328- 'reasonMisleadingOther',
329329-)
330330-331331-export { reasonMisleadingOther }
332332-333333-/** Content promoting or depicting self-harm */
334334-type ReasonSelfHarmContent = 'tools.ozone.report.defs#reasonSelfHarmContent'
335335-336336-export type { ReasonSelfHarmContent }
337337-338338-/** Content promoting or depicting self-harm */
339339-const reasonSelfHarmContent = /*#__PURE__*/ l.token(
340340- $nsid,
341341- 'reasonSelfHarmContent',
342342-)
343343-344344-export { reasonSelfHarmContent }
345345-346346-/** Unlabelled adult content */
347347-type ReasonSexualUnlabeled = 'tools.ozone.report.defs#reasonSexualUnlabeled'
348348-349349-export type { ReasonSexualUnlabeled }
350350-351351-/** Unlabelled adult content */
352352-const reasonSexualUnlabeled = /*#__PURE__*/ l.token(
353353- $nsid,
354354- 'reasonSexualUnlabeled',
355355-)
356356-357357-export { reasonSexualUnlabeled }
358358-359359-/** Threats or incitement */
360360-type ReasonViolenceThreats = 'tools.ozone.report.defs#reasonViolenceThreats'
361361-362362-export type { ReasonViolenceThreats }
363363-364364-/** Threats or incitement */
365365-const reasonViolenceThreats = /*#__PURE__*/ l.token(
366366- $nsid,
367367- 'reasonViolenceThreats',
368368-)
369369-370370-export { reasonViolenceThreats }
371371-372372-/** Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority. */
373373-type ReasonChildSafetyGroom = 'tools.ozone.report.defs#reasonChildSafetyGroom'
374374-375375-export type { ReasonChildSafetyGroom }
376376-377377-/** Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority. */
378378-const reasonChildSafetyGroom = /*#__PURE__*/ l.token(
379379- $nsid,
380380- 'reasonChildSafetyGroom',
381381-)
382382-383383-export { reasonChildSafetyGroom }
384384-385385-/** Other child safety. These reports will be sent only be sent to the application's Moderation Authority. */
386386-type ReasonChildSafetyOther = 'tools.ozone.report.defs#reasonChildSafetyOther'
387387-388388-export type { ReasonChildSafetyOther }
389389-390390-/** Other child safety. These reports will be sent only be sent to the application's Moderation Authority. */
391391-const reasonChildSafetyOther = /*#__PURE__*/ l.token(
392392- $nsid,
393393- 'reasonChildSafetyOther',
394394-)
395395-396396-export { reasonChildSafetyOther }
397397-398398-/** Hacking or system attacks */
399399-type ReasonRuleSiteSecurity = 'tools.ozone.report.defs#reasonRuleSiteSecurity'
400400-401401-export type { ReasonRuleSiteSecurity }
402402-403403-/** Hacking or system attacks */
404404-const reasonRuleSiteSecurity = /*#__PURE__*/ l.token(
405405- $nsid,
406406- 'reasonRuleSiteSecurity',
407407-)
408408-409409-export { reasonRuleSiteSecurity }
410410-411411-/** Doxxing */
412412-type ReasonHarassmentDoxxing = 'tools.ozone.report.defs#reasonHarassmentDoxxing'
413413-414414-export type { ReasonHarassmentDoxxing }
415415-416416-/** Doxxing */
417417-const reasonHarassmentDoxxing = /*#__PURE__*/ l.token(
418418- $nsid,
419419- 'reasonHarassmentDoxxing',
420420-)
421421-422422-export { reasonHarassmentDoxxing }
423423-424424-/** Privacy violation involving a minor */
425425-type ReasonChildSafetyPrivacy =
426426- 'tools.ozone.report.defs#reasonChildSafetyPrivacy'
427427-428428-export type { ReasonChildSafetyPrivacy }
429429-430430-/** Privacy violation involving a minor */
431431-const reasonChildSafetyPrivacy = /*#__PURE__*/ l.token(
432432- $nsid,
433433- 'reasonChildSafetyPrivacy',
434434-)
435435-436436-export { reasonChildSafetyPrivacy }
437437-438438-/** Targeted harassment */
439439-type ReasonHarassmentTargeted =
440440- 'tools.ozone.report.defs#reasonHarassmentTargeted'
441441-442442-export type { ReasonHarassmentTargeted }
443443-444444-/** Targeted harassment */
445445-const reasonHarassmentTargeted = /*#__PURE__*/ l.token(
446446- $nsid,
447447- 'reasonHarassmentTargeted',
448448-)
449449-450450-export { reasonHarassmentTargeted }
451451-452452-/** Dangerous substances or drug abuse */
453453-type ReasonSelfHarmSubstances =
454454- 'tools.ozone.report.defs#reasonSelfHarmSubstances'
455455-456456-export type { ReasonSelfHarmSubstances }
457457-458458-/** Dangerous substances or drug abuse */
459459-const reasonSelfHarmSubstances = /*#__PURE__*/ l.token(
460460- $nsid,
461461- 'reasonSelfHarmSubstances',
462462-)
463463-464464-export { reasonSelfHarmSubstances }
465465-466466-/** Adult sexual abuse content */
467467-type ReasonSexualAbuseContent =
468468- 'tools.ozone.report.defs#reasonSexualAbuseContent'
469469-470470-export type { ReasonSexualAbuseContent }
471471-472472-/** Adult sexual abuse content */
473473-const reasonSexualAbuseContent = /*#__PURE__*/ l.token(
474474- $nsid,
475475- 'reasonSexualAbuseContent',
476476-)
477477-478478-export { reasonSexualAbuseContent }
479479-480480-/** False information about elections */
481481-type ReasonMisleadingElections =
482482- 'tools.ozone.report.defs#reasonMisleadingElections'
483483-484484-export type { ReasonMisleadingElections }
485485-486486-/** False information about elections */
487487-const reasonMisleadingElections = /*#__PURE__*/ l.token(
488488- $nsid,
489489- 'reasonMisleadingElections',
490490-)
491491-492492-export { reasonMisleadingElections }
493493-494494-/** Promoting or selling prohibited items or services */
495495-type ReasonRuleProhibitedSales =
496496- 'tools.ozone.report.defs#reasonRuleProhibitedSales'
497497-498498-export type { ReasonRuleProhibitedSales }
499499-500500-/** Promoting or selling prohibited items or services */
501501-const reasonRuleProhibitedSales = /*#__PURE__*/ l.token(
502502- $nsid,
503503- 'reasonRuleProhibitedSales',
504504-)
505505-506506-export { reasonRuleProhibitedSales }
507507-508508-/** Human trafficking */
509509-type ReasonViolenceTrafficking =
510510- 'tools.ozone.report.defs#reasonViolenceTrafficking'
511511-512512-export type { ReasonViolenceTrafficking }
513513-514514-/** Human trafficking */
515515-const reasonViolenceTrafficking = /*#__PURE__*/ l.token(
516516- $nsid,
517517- 'reasonViolenceTrafficking',
518518-)
519519-520520-export { reasonViolenceTrafficking }
521521-522522-/** Hate speech */
523523-type ReasonHarassmentHateSpeech =
524524- 'tools.ozone.report.defs#reasonHarassmentHateSpeech'
525525-526526-export type { ReasonHarassmentHateSpeech }
527527-528528-/** Hate speech */
529529-const reasonHarassmentHateSpeech = /*#__PURE__*/ l.token(
530530- $nsid,
531531- 'reasonHarassmentHateSpeech',
532532-)
533533-534534-export { reasonHarassmentHateSpeech }
535535-536536-/** Harassment or bullying of minors */
537537-type ReasonChildSafetyHarassment =
538538- 'tools.ozone.report.defs#reasonChildSafetyHarassment'
539539-540540-export type { ReasonChildSafetyHarassment }
541541-542542-/** Harassment or bullying of minors */
543543-const reasonChildSafetyHarassment = /*#__PURE__*/ l.token(
544544- $nsid,
545545- 'reasonChildSafetyHarassment',
546546-)
547547-548548-export { reasonChildSafetyHarassment }
549549-550550-/** Glorification of violence */
551551-type ReasonViolenceGlorification =
552552- 'tools.ozone.report.defs#reasonViolenceGlorification'
553553-554554-export type { ReasonViolenceGlorification }
555555-556556-/** Glorification of violence */
557557-const reasonViolenceGlorification = /*#__PURE__*/ l.token(
558558- $nsid,
559559- 'reasonViolenceGlorification',
560560-)
561561-562562-export { reasonViolenceGlorification }
563563-564564-/** Graphic violent content */
565565-type ReasonViolenceGraphicContent =
566566- 'tools.ozone.report.defs#reasonViolenceGraphicContent'
567567-568568-export type { ReasonViolenceGraphicContent }
569569-570570-/** Graphic violent content */
571571-const reasonViolenceGraphicContent = /*#__PURE__*/ l.token(
572572- $nsid,
573573- 'reasonViolenceGraphicContent',
574574-)
575575-576576-export { reasonViolenceGraphicContent }
577577-578578-/** Impersonation */
579579-type ReasonMisleadingImpersonation =
580580- 'tools.ozone.report.defs#reasonMisleadingImpersonation'
581581-582582-export type { ReasonMisleadingImpersonation }
583583-584584-/** Impersonation */
585585-const reasonMisleadingImpersonation = /*#__PURE__*/ l.token(
586586- $nsid,
587587- 'reasonMisleadingImpersonation',
588588-)
589589-590590-export { reasonMisleadingImpersonation }
591591-592592-/** Extremist content. These reports will be sent only be sent to the application's Moderation Authority. */
593593-type ReasonViolenceExtremistContent =
594594- 'tools.ozone.report.defs#reasonViolenceExtremistContent'
595595-596596-export type { ReasonViolenceExtremistContent }
597597-598598-/** Extremist content. These reports will be sent only be sent to the application's Moderation Authority. */
599599-const reasonViolenceExtremistContent = /*#__PURE__*/ l.token(
600600- $nsid,
601601- 'reasonViolenceExtremistContent',
602602-)
603603-604604-export { reasonViolenceExtremistContent }
-5
src/lexicons/tools/ozone/report/defs.ts
···11-/*
22- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
33- */
44-55-export * from './defs.defs.js'