a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
105
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(lex-cli): ensure sortable stuff are sorted

mary.my.id e2d3d00c 1b1bd64d

verified
+1215 -1182
+11
.changeset/floppy-tigers-lie.md
··· 1 + --- 2 + '@atcute/lexicon-community': patch 3 + '@atcute/whitewind': patch 4 + '@atcute/atproto': patch 5 + '@atcute/bluesky': patch 6 + '@atcute/tangled': patch 7 + '@atcute/ozone': patch 8 + '@atcute/lex-cli': patch 9 + --- 10 + 11 + ensure object properties, enums, and other sortable items are sorted
+6 -6
packages/definitions/atproto/lib/lexicons/types/com/atproto/admin/defs.ts
··· 4 4 5 5 const _accountViewSchema = /*#__PURE__*/ v.object({ 6 6 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.admin.defs#accountView')), 7 + deactivatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 7 8 did: /*#__PURE__*/ v.didString(), 8 - handle: /*#__PURE__*/ v.handleString(), 9 9 email: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 - relatedRecords: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.unknown())), 10 + emailConfirmedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 11 + handle: /*#__PURE__*/ v.handleString(), 11 12 indexedAt: /*#__PURE__*/ v.datetimeString(), 13 + inviteNote: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 12 14 get invitedBy() { 13 15 return /*#__PURE__*/ v.optional(ComAtprotoServerDefs.inviteCodeSchema); 14 16 }, ··· 16 18 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoServerDefs.inviteCodeSchema)); 17 19 }, 18 20 invitesDisabled: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 19 - emailConfirmedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 20 - inviteNote: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 21 - deactivatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 21 + relatedRecords: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.unknown())), 22 22 get threatSignatures() { 23 23 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(threatSignatureSchema)); 24 24 }, 25 25 }); 26 26 const _repoBlobRefSchema = /*#__PURE__*/ v.object({ 27 27 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.admin.defs#repoBlobRef')), 28 - did: /*#__PURE__*/ v.didString(), 29 28 cid: /*#__PURE__*/ v.cidString(), 29 + did: /*#__PURE__*/ v.didString(), 30 30 recordUri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 31 31 }); 32 32 const _repoRefSchema = /*#__PURE__*/ v.object({
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/admin/disableInviteCodes.ts
··· 7 7 input: { 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 - codes: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 11 10 accounts: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 11 + codes: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 12 12 }), 13 13 }, 14 14 output: null,
+3 -3
packages/definitions/atproto/lib/lexicons/types/com/atproto/admin/getInviteCodes.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.admin.getInviteCodes', { 7 7 params: /*#__PURE__*/ v.object({ 8 - sort: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'recent' | 'usage' | (string & {})>(), 'recent'), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 9 limit: /*#__PURE__*/ v.optional( 10 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 500)]), 11 11 100, 12 12 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + sort: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'recent' | 'usage' | (string & {})>(), 'recent'), 14 14 }), 15 15 output: { 16 16 type: 'lex', 17 17 schema: /*#__PURE__*/ v.object({ 18 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 19 18 get codes() { 20 19 return /*#__PURE__*/ v.array(ComAtprotoServerDefs.inviteCodeSchema); 21 20 }, 21 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 22 22 }), 23 23 }, 24 24 });
+5 -5
packages/definitions/atproto/lib/lexicons/types/com/atproto/admin/getSubjectStatus.ts
··· 6 6 7 7 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.admin.getSubjectStatus', { 8 8 params: /*#__PURE__*/ v.object({ 9 + blob: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 9 10 did: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 10 11 uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 11 - blob: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 12 12 }), 13 13 output: { 14 14 type: 'lex', 15 15 schema: /*#__PURE__*/ v.object({ 16 + get deactivated() { 17 + return /*#__PURE__*/ v.optional(ComAtprotoAdminDefs.statusAttrSchema); 18 + }, 16 19 get subject() { 17 20 return /*#__PURE__*/ v.variant([ 21 + ComAtprotoAdminDefs.repoBlobRefSchema, 18 22 ComAtprotoAdminDefs.repoRefSchema, 19 23 ComAtprotoRepoStrongRef.mainSchema, 20 - ComAtprotoAdminDefs.repoBlobRefSchema, 21 24 ]); 22 25 }, 23 26 get takedown() { 24 - return /*#__PURE__*/ v.optional(ComAtprotoAdminDefs.statusAttrSchema); 25 - }, 26 - get deactivated() { 27 27 return /*#__PURE__*/ v.optional(ComAtprotoAdminDefs.statusAttrSchema); 28 28 }, 29 29 }),
+2 -2
packages/definitions/atproto/lib/lexicons/types/com/atproto/admin/searchAccounts.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.admin.searchAccounts', { 7 7 params: /*#__PURE__*/ v.object({ 8 - email: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 8 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 + email: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 10 limit: /*#__PURE__*/ v.optional( 11 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 12 12 50, ··· 15 15 output: { 16 16 type: 'lex', 17 17 schema: /*#__PURE__*/ v.object({ 18 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 19 18 get accounts() { 20 19 return /*#__PURE__*/ v.array(ComAtprotoAdminDefs.accountViewSchema); 21 20 }, 21 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 22 22 }), 23 23 }, 24 24 });
+3 -3
packages/definitions/atproto/lib/lexicons/types/com/atproto/admin/sendEmail.ts
··· 7 7 input: { 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 - recipientDid: /*#__PURE__*/ v.didString(), 10 + comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 11 content: /*#__PURE__*/ v.string(), 12 - subject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 12 + recipientDid: /*#__PURE__*/ v.didString(), 13 13 senderDid: /*#__PURE__*/ v.didString(), 14 - comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 + subject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 15 }), 16 16 }, 17 17 output: {
+5 -5
packages/definitions/atproto/lib/lexicons/types/com/atproto/admin/updateSubjectStatus.ts
··· 9 9 input: { 10 10 type: 'lex', 11 11 schema: /*#__PURE__*/ v.object({ 12 + get deactivated() { 13 + return /*#__PURE__*/ v.optional(ComAtprotoAdminDefs.statusAttrSchema); 14 + }, 12 15 get subject() { 13 16 return /*#__PURE__*/ v.variant([ 17 + ComAtprotoAdminDefs.repoBlobRefSchema, 14 18 ComAtprotoAdminDefs.repoRefSchema, 15 19 ComAtprotoRepoStrongRef.mainSchema, 16 - ComAtprotoAdminDefs.repoBlobRefSchema, 17 20 ]); 18 21 }, 19 22 get takedown() { 20 23 return /*#__PURE__*/ v.optional(ComAtprotoAdminDefs.statusAttrSchema); 21 24 }, 22 - get deactivated() { 23 - return /*#__PURE__*/ v.optional(ComAtprotoAdminDefs.statusAttrSchema); 24 - }, 25 25 }), 26 26 }, 27 27 output: { ··· 29 29 schema: /*#__PURE__*/ v.object({ 30 30 get subject() { 31 31 return /*#__PURE__*/ v.variant([ 32 + ComAtprotoAdminDefs.repoBlobRefSchema, 32 33 ComAtprotoAdminDefs.repoRefSchema, 33 34 ComAtprotoRepoStrongRef.mainSchema, 34 - ComAtprotoAdminDefs.repoBlobRefSchema, 35 35 ]); 36 36 }, 37 37 get takedown() {
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/identity/defs.ts
··· 4 4 const _identityInfoSchema = /*#__PURE__*/ v.object({ 5 5 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.identity.defs#identityInfo')), 6 6 did: /*#__PURE__*/ v.didString(), 7 - handle: /*#__PURE__*/ v.handleString(), 8 7 didDoc: /*#__PURE__*/ v.unknown(), 8 + handle: /*#__PURE__*/ v.handleString(), 9 9 }); 10 10 11 11 type identityInfo$schematype = typeof _identityInfoSchema;
+2 -2
packages/definitions/atproto/lib/lexicons/types/com/atproto/identity/getRecommendedDidCredentials.ts
··· 7 7 output: { 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 - rotationKeys: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 11 10 alsoKnownAs: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 12 - verificationMethods: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 11 + rotationKeys: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 13 12 services: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 13 + verificationMethods: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 14 14 }), 15 15 }, 16 16 });
+3 -3
packages/definitions/atproto/lib/lexicons/types/com/atproto/identity/signPlcOperation.ts
··· 7 7 input: { 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 - token: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 - rotationKeys: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 12 10 alsoKnownAs: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 13 - verificationMethods: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 11 + rotationKeys: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 14 12 services: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 13 + token: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 + verificationMethods: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 15 15 }), 16 16 }, 17 17 output: {
+20 -20
packages/definitions/atproto/lib/lexicons/types/com/atproto/label/defs.ts
··· 3 3 4 4 const _labelSchema = /*#__PURE__*/ v.object({ 5 5 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.label.defs#label')), 6 - ver: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 7 - src: /*#__PURE__*/ v.didString(), 8 - uri: /*#__PURE__*/ v.genericUriString(), 9 6 cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 10 - val: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 128)]), 11 - neg: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 12 7 cts: /*#__PURE__*/ v.datetimeString(), 13 8 exp: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 9 + neg: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 14 10 sig: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.bytes()), 11 + src: /*#__PURE__*/ v.didString(), 12 + uri: /*#__PURE__*/ v.genericUriString(), 13 + val: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 128)]), 14 + ver: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 15 15 }); 16 16 const _labelValueSchema = /*#__PURE__*/ v.string< 17 17 | '!hide' 18 18 | '!no-promote' 19 - | '!warn' 20 19 | '!no-unauthenticated' 20 + | '!warn' 21 21 | 'dmca-violation' 22 22 | 'doxxing' 23 + | 'gore' 24 + | 'nsfl' 25 + | 'nudity' 23 26 | 'porn' 24 27 | 'sexual' 25 - | 'nudity' 26 - | 'nsfl' 27 - | 'gore' 28 28 | (string & {}) 29 29 >(); 30 30 const _labelValueDefinitionSchema = /*#__PURE__*/ v.object({ 31 31 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.label.defs#labelValueDefinition')), 32 - identifier: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 33 - /*#__PURE__*/ v.stringLength(0, 100), 34 - /*#__PURE__*/ v.stringGraphemes(0, 100), 35 - ]), 36 - severity: /*#__PURE__*/ v.string<'inform' | 'alert' | 'none' | (string & {})>(), 32 + adultOnly: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 37 33 blurs: /*#__PURE__*/ v.string<'content' | 'media' | 'none' | (string & {})>(), 38 34 defaultSetting: /*#__PURE__*/ v.optional( 39 - /*#__PURE__*/ v.string<'ignore' | 'warn' | 'hide' | (string & {})>(), 35 + /*#__PURE__*/ v.string<'hide' | 'ignore' | 'warn' | (string & {})>(), 40 36 'warn', 41 37 ), 42 - adultOnly: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 38 + identifier: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 39 + /*#__PURE__*/ v.stringLength(0, 100), 40 + /*#__PURE__*/ v.stringGraphemes(0, 100), 41 + ]), 43 42 get locales() { 44 43 return /*#__PURE__*/ v.array(labelValueDefinitionStringsSchema); 45 44 }, 45 + severity: /*#__PURE__*/ v.string<'alert' | 'inform' | 'none' | (string & {})>(), 46 46 }); 47 47 const _labelValueDefinitionStringsSchema = /*#__PURE__*/ v.object({ 48 48 $type: /*#__PURE__*/ v.optional( 49 49 /*#__PURE__*/ v.literal('com.atproto.label.defs#labelValueDefinitionStrings'), 50 50 ), 51 + description: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 52 + /*#__PURE__*/ v.stringLength(0, 100000), 53 + /*#__PURE__*/ v.stringGraphemes(0, 10000), 54 + ]), 51 55 lang: /*#__PURE__*/ v.languageCodeString(), 52 56 name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 53 57 /*#__PURE__*/ v.stringLength(0, 640), 54 58 /*#__PURE__*/ v.stringGraphemes(0, 64), 55 - ]), 56 - description: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 57 - /*#__PURE__*/ v.stringLength(0, 100000), 58 - /*#__PURE__*/ v.stringGraphemes(0, 10000), 59 59 ]), 60 60 }); 61 61 const _selfLabelSchema = /*#__PURE__*/ v.object({
+3 -3
packages/definitions/atproto/lib/lexicons/types/com/atproto/label/queryLabels.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.label.queryLabels', { 7 7 params: /*#__PURE__*/ v.object({ 8 - uriPatterns: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 9 - sources: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString())), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 9 limit: /*#__PURE__*/ v.optional( 11 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 250)]), 12 11 50, 13 12 ), 14 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + sources: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString())), 14 + uriPatterns: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 15 15 }), 16 16 output: { 17 17 type: 'lex',
+3 -3
packages/definitions/atproto/lib/lexicons/types/com/atproto/label/subscribeLabels.ts
··· 5 5 6 6 const _infoSchema = /*#__PURE__*/ v.object({ 7 7 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.label.subscribeLabels#info')), 8 - name: /*#__PURE__*/ v.string<'OutdatedCursor' | (string & {})>(), 9 8 message: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 + name: /*#__PURE__*/ v.string<'OutdatedCursor' | (string & {})>(), 10 10 }); 11 11 const _labelsSchema = /*#__PURE__*/ v.object({ 12 12 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.label.subscribeLabels#labels')), 13 - seq: /*#__PURE__*/ v.integer(), 14 13 get labels() { 15 14 return /*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema); 16 15 }, 16 + seq: /*#__PURE__*/ v.integer(), 17 17 }); 18 18 const _mainSchema = /*#__PURE__*/ v.subscription('com.atproto.label.subscribeLabels', { 19 19 params: /*#__PURE__*/ v.object({ 20 20 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 21 21 }), 22 22 get message() { 23 - return /*#__PURE__*/ v.variant([labelsSchema, infoSchema]); 23 + return /*#__PURE__*/ v.variant([infoSchema, labelsSchema]); 24 24 }, 25 25 }); 26 26
+8 -8
packages/definitions/atproto/lib/lexicons/types/com/atproto/moderation/createReport.ts
··· 10 10 input: { 11 11 type: 'lex', 12 12 schema: /*#__PURE__*/ v.object({ 13 - get reasonType() { 14 - return ComAtprotoModerationDefs.reasonTypeSchema; 15 - }, 16 13 reason: /*#__PURE__*/ v.optional( 17 14 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 18 15 /*#__PURE__*/ v.stringLength(0, 20000), 19 16 /*#__PURE__*/ v.stringGraphemes(0, 2000), 20 17 ]), 21 18 ), 19 + get reasonType() { 20 + return ComAtprotoModerationDefs.reasonTypeSchema; 21 + }, 22 22 get subject() { 23 23 return /*#__PURE__*/ v.variant([ 24 24 ComAtprotoAdminDefs.repoRefSchema, ··· 30 30 output: { 31 31 type: 'lex', 32 32 schema: /*#__PURE__*/ v.object({ 33 + createdAt: /*#__PURE__*/ v.datetimeString(), 33 34 id: /*#__PURE__*/ v.integer(), 34 - get reasonType() { 35 - return ComAtprotoModerationDefs.reasonTypeSchema; 36 - }, 37 35 reason: /*#__PURE__*/ v.optional( 38 36 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 39 37 /*#__PURE__*/ v.stringLength(0, 20000), 40 38 /*#__PURE__*/ v.stringGraphemes(0, 2000), 41 39 ]), 42 40 ), 41 + get reasonType() { 42 + return ComAtprotoModerationDefs.reasonTypeSchema; 43 + }, 44 + reportedBy: /*#__PURE__*/ v.didString(), 43 45 get subject() { 44 46 return /*#__PURE__*/ v.variant([ 45 47 ComAtprotoAdminDefs.repoRefSchema, 46 48 ComAtprotoRepoStrongRef.mainSchema, 47 49 ]); 48 50 }, 49 - reportedBy: /*#__PURE__*/ v.didString(), 50 - createdAt: /*#__PURE__*/ v.datetimeString(), 51 51 }), 52 52 }, 53 53 });
+6 -6
packages/definitions/atproto/lib/lexicons/types/com/atproto/moderation/defs.ts
··· 8 8 const _reasonSexualSchema = /*#__PURE__*/ v.literal('com.atproto.moderation.defs#reasonSexual'); 9 9 const _reasonSpamSchema = /*#__PURE__*/ v.literal('com.atproto.moderation.defs#reasonSpam'); 10 10 const _reasonTypeSchema = /*#__PURE__*/ v.string< 11 - | 'com.atproto.moderation.defs#reasonSpam' 12 - | 'com.atproto.moderation.defs#reasonViolation' 11 + | 'com.atproto.moderation.defs#reasonAppeal' 13 12 | 'com.atproto.moderation.defs#reasonMisleading' 14 - | 'com.atproto.moderation.defs#reasonSexual' 15 - | 'com.atproto.moderation.defs#reasonRude' 16 13 | 'com.atproto.moderation.defs#reasonOther' 17 - | 'com.atproto.moderation.defs#reasonAppeal' 14 + | 'com.atproto.moderation.defs#reasonRude' 15 + | 'com.atproto.moderation.defs#reasonSexual' 16 + | 'com.atproto.moderation.defs#reasonSpam' 17 + | 'com.atproto.moderation.defs#reasonViolation' 18 18 | (string & {}) 19 19 >(); 20 20 const _reasonViolationSchema = /*#__PURE__*/ v.literal('com.atproto.moderation.defs#reasonViolation'); 21 - const _subjectTypeSchema = /*#__PURE__*/ v.string<'account' | 'record' | 'chat' | (string & {})>(); 21 + const _subjectTypeSchema = /*#__PURE__*/ v.string<'account' | 'chat' | 'record' | (string & {})>(); 22 22 23 23 type reasonAppeal$schematype = typeof _reasonAppealSchema; 24 24 type reasonMisleading$schematype = typeof _reasonMisleadingSchema;
+7 -7
packages/definitions/atproto/lib/lexicons/types/com/atproto/repo/applyWrites.ts
··· 13 13 }); 14 14 const _createResultSchema = /*#__PURE__*/ v.object({ 15 15 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.repo.applyWrites#createResult')), 16 - uri: /*#__PURE__*/ v.resourceUriString(), 17 16 cid: /*#__PURE__*/ v.cidString(), 18 - validationStatus: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'valid' | 'unknown' | (string & {})>()), 17 + uri: /*#__PURE__*/ v.resourceUriString(), 18 + validationStatus: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'unknown' | 'valid' | (string & {})>()), 19 19 }); 20 20 const _deleteSchema = /*#__PURE__*/ v.object({ 21 21 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.repo.applyWrites#delete')), ··· 31 31 type: 'lex', 32 32 schema: /*#__PURE__*/ v.object({ 33 33 repo: /*#__PURE__*/ v.actorIdentifierString(), 34 + swapCommit: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 34 35 validate: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 35 36 get writes() { 36 37 return /*#__PURE__*/ v.array( 37 - /*#__PURE__*/ v.variant([createSchema, updateSchema, deleteSchema], true), 38 + /*#__PURE__*/ v.variant([createSchema, deleteSchema, updateSchema], true), 38 39 ); 39 40 }, 40 - swapCommit: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 41 41 }), 42 42 }, 43 43 output: { ··· 49 49 get results() { 50 50 return /*#__PURE__*/ v.optional( 51 51 /*#__PURE__*/ v.array( 52 - /*#__PURE__*/ v.variant([createResultSchema, updateResultSchema, deleteResultSchema], true), 52 + /*#__PURE__*/ v.variant([createResultSchema, deleteResultSchema, updateResultSchema], true), 53 53 ), 54 54 ); 55 55 }, ··· 64 64 }); 65 65 const _updateResultSchema = /*#__PURE__*/ v.object({ 66 66 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.repo.applyWrites#updateResult')), 67 + cid: /*#__PURE__*/ v.cidString(), 67 68 uri: /*#__PURE__*/ v.resourceUriString(), 68 - cid: /*#__PURE__*/ v.cidString(), 69 - validationStatus: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'valid' | 'unknown' | (string & {})>()), 69 + validationStatus: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'unknown' | 'valid' | (string & {})>()), 70 70 }); 71 71 72 72 type create$schematype = typeof _createSchema;
+5 -5
packages/definitions/atproto/lib/lexicons/types/com/atproto/repo/createRecord.ts
··· 8 8 input: { 9 9 type: 'lex', 10 10 schema: /*#__PURE__*/ v.object({ 11 + collection: /*#__PURE__*/ v.nsidString(), 12 + record: /*#__PURE__*/ v.unknown(), 11 13 repo: /*#__PURE__*/ v.actorIdentifierString(), 12 - collection: /*#__PURE__*/ v.nsidString(), 13 14 rkey: /*#__PURE__*/ v.optional( 14 15 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.recordKeyString(), [/*#__PURE__*/ v.stringLength(0, 512)]), 15 16 ), 16 - validate: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 17 - record: /*#__PURE__*/ v.unknown(), 18 17 swapCommit: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 18 + validate: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 19 19 }), 20 20 }, 21 21 output: { 22 22 type: 'lex', 23 23 schema: /*#__PURE__*/ v.object({ 24 - uri: /*#__PURE__*/ v.resourceUriString(), 25 24 cid: /*#__PURE__*/ v.cidString(), 26 25 get commit() { 27 26 return /*#__PURE__*/ v.optional(ComAtprotoRepoDefs.commitMetaSchema); 28 27 }, 28 + uri: /*#__PURE__*/ v.resourceUriString(), 29 29 validationStatus: /*#__PURE__*/ v.optional( 30 - /*#__PURE__*/ v.string<'valid' | 'unknown' | (string & {})>(), 30 + /*#__PURE__*/ v.string<'unknown' | 'valid' | (string & {})>(), 31 31 ), 32 32 }), 33 33 },
+2 -2
packages/definitions/atproto/lib/lexicons/types/com/atproto/repo/deleteRecord.ts
··· 8 8 input: { 9 9 type: 'lex', 10 10 schema: /*#__PURE__*/ v.object({ 11 - repo: /*#__PURE__*/ v.actorIdentifierString(), 12 11 collection: /*#__PURE__*/ v.nsidString(), 12 + repo: /*#__PURE__*/ v.actorIdentifierString(), 13 13 rkey: /*#__PURE__*/ v.recordKeyString(), 14 - swapRecord: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 15 14 swapCommit: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 15 + swapRecord: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 16 16 }), 17 17 }, 18 18 output: {
+2 -2
packages/definitions/atproto/lib/lexicons/types/com/atproto/repo/describeRepo.ts
··· 9 9 output: { 10 10 type: 'lex', 11 11 schema: /*#__PURE__*/ v.object({ 12 - handle: /*#__PURE__*/ v.handleString(), 12 + collections: /*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString()), 13 13 did: /*#__PURE__*/ v.didString(), 14 14 didDoc: /*#__PURE__*/ v.unknown(), 15 - collections: /*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString()), 15 + handle: /*#__PURE__*/ v.handleString(), 16 16 handleIsCorrect: /*#__PURE__*/ v.boolean(), 17 17 }), 18 18 },
+3 -3
packages/definitions/atproto/lib/lexicons/types/com/atproto/repo/getRecord.ts
··· 4 4 5 5 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.repo.getRecord', { 6 6 params: /*#__PURE__*/ v.object({ 7 + cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 8 + collection: /*#__PURE__*/ v.nsidString(), 7 9 repo: /*#__PURE__*/ v.actorIdentifierString(), 8 - collection: /*#__PURE__*/ v.nsidString(), 9 10 rkey: /*#__PURE__*/ v.recordKeyString(), 10 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 11 11 }), 12 12 output: { 13 13 type: 'lex', 14 14 schema: /*#__PURE__*/ v.object({ 15 - uri: /*#__PURE__*/ v.resourceUriString(), 16 15 cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 16 + uri: /*#__PURE__*/ v.resourceUriString(), 17 17 value: /*#__PURE__*/ v.unknown(), 18 18 }), 19 19 },
+2 -2
packages/definitions/atproto/lib/lexicons/types/com/atproto/repo/listMissingBlobs.ts
··· 4 4 5 5 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.repo.listMissingBlobs', { 6 6 params: /*#__PURE__*/ v.object({ 7 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 7 8 limit: /*#__PURE__*/ v.optional( 8 9 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 1000)]), 9 10 500, 10 11 ), 11 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 12 12 }), 13 13 output: { 14 14 type: 'lex', 15 15 schema: /*#__PURE__*/ v.object({ 16 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 17 16 get blobs() { 18 17 return /*#__PURE__*/ v.array(recordBlobSchema); 19 18 }, 19 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 20 20 }), 21 21 }, 22 22 });
+3 -3
packages/definitions/atproto/lib/lexicons/types/com/atproto/repo/listRecords.ts
··· 4 4 5 5 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.repo.listRecords', { 6 6 params: /*#__PURE__*/ v.object({ 7 - repo: /*#__PURE__*/ v.actorIdentifierString(), 8 7 collection: /*#__PURE__*/ v.nsidString(), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 9 limit: /*#__PURE__*/ v.optional( 10 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 11 50, 12 12 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + repo: /*#__PURE__*/ v.actorIdentifierString(), 14 14 reverse: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 15 15 }), 16 16 output: { ··· 25 25 }); 26 26 const _recordSchema = /*#__PURE__*/ v.object({ 27 27 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.repo.listRecords#record')), 28 - uri: /*#__PURE__*/ v.resourceUriString(), 29 28 cid: /*#__PURE__*/ v.cidString(), 29 + uri: /*#__PURE__*/ v.resourceUriString(), 30 30 value: /*#__PURE__*/ v.unknown(), 31 31 }); 32 32
+6 -6
packages/definitions/atproto/lib/lexicons/types/com/atproto/repo/putRecord.ts
··· 8 8 input: { 9 9 type: 'lex', 10 10 schema: /*#__PURE__*/ v.object({ 11 + collection: /*#__PURE__*/ v.nsidString(), 12 + record: /*#__PURE__*/ v.unknown(), 11 13 repo: /*#__PURE__*/ v.actorIdentifierString(), 12 - collection: /*#__PURE__*/ v.nsidString(), 13 14 rkey: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.recordKeyString(), [ 14 15 /*#__PURE__*/ v.stringLength(0, 512), 15 16 ]), 16 - validate: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 17 - record: /*#__PURE__*/ v.unknown(), 18 - swapRecord: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nullable(/*#__PURE__*/ v.cidString())), 19 17 swapCommit: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 18 + swapRecord: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nullable(/*#__PURE__*/ v.cidString())), 19 + validate: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 20 20 }), 21 21 }, 22 22 output: { 23 23 type: 'lex', 24 24 schema: /*#__PURE__*/ v.object({ 25 - uri: /*#__PURE__*/ v.resourceUriString(), 26 25 cid: /*#__PURE__*/ v.cidString(), 27 26 get commit() { 28 27 return /*#__PURE__*/ v.optional(ComAtprotoRepoDefs.commitMetaSchema); 29 28 }, 29 + uri: /*#__PURE__*/ v.resourceUriString(), 30 30 validationStatus: /*#__PURE__*/ v.optional( 31 - /*#__PURE__*/ v.string<'valid' | 'unknown' | (string & {})>(), 31 + /*#__PURE__*/ v.string<'unknown' | 'valid' | (string & {})>(), 32 32 ), 33 33 }), 34 34 },
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/repo/strongRef.ts
··· 3 3 4 4 const _mainSchema = /*#__PURE__*/ v.object({ 5 5 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.repo.strongRef')), 6 - uri: /*#__PURE__*/ v.resourceUriString(), 7 6 cid: /*#__PURE__*/ v.cidString(), 7 + uri: /*#__PURE__*/ v.resourceUriString(), 8 8 }); 9 9 10 10 type main$schematype = typeof _mainSchema;
+6 -6
packages/definitions/atproto/lib/lexicons/types/com/atproto/server/checkAccountStatus.ts
··· 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 10 activated: /*#__PURE__*/ v.boolean(), 11 - validDid: /*#__PURE__*/ v.boolean(), 12 - repoCommit: /*#__PURE__*/ v.cidString(), 13 - repoRev: /*#__PURE__*/ v.string(), 14 - repoBlocks: /*#__PURE__*/ v.integer(), 15 - indexedRecords: /*#__PURE__*/ v.integer(), 16 - privateStateValues: /*#__PURE__*/ v.integer(), 17 11 expectedBlobs: /*#__PURE__*/ v.integer(), 18 12 importedBlobs: /*#__PURE__*/ v.integer(), 13 + indexedRecords: /*#__PURE__*/ v.integer(), 14 + privateStateValues: /*#__PURE__*/ v.integer(), 15 + repoBlocks: /*#__PURE__*/ v.integer(), 16 + repoCommit: /*#__PURE__*/ v.cidString(), 17 + repoRev: /*#__PURE__*/ v.string(), 18 + validDid: /*#__PURE__*/ v.boolean(), 19 19 }), 20 20 }, 21 21 });
+6 -6
packages/definitions/atproto/lib/lexicons/types/com/atproto/server/createAccount.ts
··· 7 7 input: { 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 + did: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 10 11 email: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 12 handle: /*#__PURE__*/ v.handleString(), 12 - did: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 13 13 inviteCode: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 - verificationCode: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 - verificationPhone: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 16 14 password: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 + plcOp: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 17 16 recoveryKey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 18 - plcOp: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 17 + verificationCode: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 18 + verificationPhone: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 19 19 }), 20 20 }, 21 21 output: { 22 22 type: 'lex', 23 23 schema: /*#__PURE__*/ v.object({ 24 24 accessJwt: /*#__PURE__*/ v.string(), 25 - refreshJwt: /*#__PURE__*/ v.string(), 26 - handle: /*#__PURE__*/ v.handleString(), 27 25 did: /*#__PURE__*/ v.didString(), 28 26 didDoc: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 27 + handle: /*#__PURE__*/ v.handleString(), 28 + refreshJwt: /*#__PURE__*/ v.string(), 29 29 }), 30 30 }, 31 31 });
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/server/createAppPassword.ts
··· 6 6 $type: /*#__PURE__*/ v.optional( 7 7 /*#__PURE__*/ v.literal('com.atproto.server.createAppPassword#appPassword'), 8 8 ), 9 + createdAt: /*#__PURE__*/ v.datetimeString(), 9 10 name: /*#__PURE__*/ v.string(), 10 11 password: /*#__PURE__*/ v.string(), 11 - createdAt: /*#__PURE__*/ v.datetimeString(), 12 12 privileged: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 13 13 }); 14 14 const _mainSchema = /*#__PURE__*/ v.procedure('com.atproto.server.createAppPassword', {
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/server/createInviteCode.ts
··· 7 7 input: { 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 - useCount: /*#__PURE__*/ v.integer(), 11 10 forAccount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 11 + useCount: /*#__PURE__*/ v.integer(), 12 12 }), 13 13 }, 14 14 output: {
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/server/createInviteCodes.ts
··· 15 15 type: 'lex', 16 16 schema: /*#__PURE__*/ v.object({ 17 17 codeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer(), 1), 18 - useCount: /*#__PURE__*/ v.integer(), 19 18 forAccounts: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString())), 19 + useCount: /*#__PURE__*/ v.integer(), 20 20 }), 21 21 }, 22 22 output: {
+7 -7
packages/definitions/atproto/lib/lexicons/types/com/atproto/server/createSession.ts
··· 7 7 input: { 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 + allowTakendown: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 11 + authFactorToken: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 12 identifier: /*#__PURE__*/ v.string(), 11 13 password: /*#__PURE__*/ v.string(), 12 - authFactorToken: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 - allowTakendown: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 14 14 }), 15 15 }, 16 16 output: { 17 17 type: 'lex', 18 18 schema: /*#__PURE__*/ v.object({ 19 19 accessJwt: /*#__PURE__*/ v.string(), 20 - refreshJwt: /*#__PURE__*/ v.string(), 21 - handle: /*#__PURE__*/ v.handleString(), 20 + active: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 22 21 did: /*#__PURE__*/ v.didString(), 23 22 didDoc: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 24 23 email: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 25 - emailConfirmed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 26 24 emailAuthFactor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 27 - active: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 25 + emailConfirmed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 26 + handle: /*#__PURE__*/ v.handleString(), 27 + refreshJwt: /*#__PURE__*/ v.string(), 28 28 status: /*#__PURE__*/ v.optional( 29 - /*#__PURE__*/ v.string<'takendown' | 'suspended' | 'deactivated' | (string & {})>(), 29 + /*#__PURE__*/ v.string<'deactivated' | 'suspended' | 'takendown' | (string & {})>(), 30 30 ), 31 31 }), 32 32 },
+4 -4
packages/definitions/atproto/lib/lexicons/types/com/atproto/server/defs.ts
··· 3 3 4 4 const _inviteCodeSchema = /*#__PURE__*/ v.object({ 5 5 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.server.defs#inviteCode')), 6 - code: /*#__PURE__*/ v.string(), 7 6 available: /*#__PURE__*/ v.integer(), 7 + code: /*#__PURE__*/ v.string(), 8 + createdAt: /*#__PURE__*/ v.datetimeString(), 9 + createdBy: /*#__PURE__*/ v.string(), 8 10 disabled: /*#__PURE__*/ v.boolean(), 9 11 forAccount: /*#__PURE__*/ v.string(), 10 - createdBy: /*#__PURE__*/ v.string(), 11 - createdAt: /*#__PURE__*/ v.datetimeString(), 12 12 get uses() { 13 13 return /*#__PURE__*/ v.array(inviteCodeUseSchema); 14 14 }, 15 15 }); 16 16 const _inviteCodeUseSchema = /*#__PURE__*/ v.object({ 17 17 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.server.defs#inviteCodeUse')), 18 - usedBy: /*#__PURE__*/ v.didString(), 19 18 usedAt: /*#__PURE__*/ v.datetimeString(), 19 + usedBy: /*#__PURE__*/ v.didString(), 20 20 }); 21 21 22 22 type inviteCode$schematype = typeof _inviteCodeSchema;
+5 -5
packages/definitions/atproto/lib/lexicons/types/com/atproto/server/describeServer.ts
··· 16 16 output: { 17 17 type: 'lex', 18 18 schema: /*#__PURE__*/ v.object({ 19 - inviteCodeRequired: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 20 - phoneVerificationRequired: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 21 19 availableUserDomains: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 22 - get links() { 23 - return /*#__PURE__*/ v.optional(linksSchema); 24 - }, 25 20 get contact() { 26 21 return /*#__PURE__*/ v.optional(contactSchema); 27 22 }, 28 23 did: /*#__PURE__*/ v.didString(), 24 + inviteCodeRequired: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 25 + get links() { 26 + return /*#__PURE__*/ v.optional(linksSchema); 27 + }, 28 + phoneVerificationRequired: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 29 29 }), 30 30 }, 31 31 });
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/server/getAccountInviteCodes.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.server.getAccountInviteCodes', { 7 7 params: /*#__PURE__*/ v.object({ 8 - includeUsed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true), 9 8 createAvailable: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true), 9 + includeUsed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true), 10 10 }), 11 11 output: { 12 12 type: 'lex',
+5 -5
packages/definitions/atproto/lib/lexicons/types/com/atproto/server/getSession.ts
··· 7 7 output: { 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 - handle: /*#__PURE__*/ v.handleString(), 10 + active: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 11 11 did: /*#__PURE__*/ v.didString(), 12 + didDoc: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 12 13 email: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 - emailConfirmed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 14 14 emailAuthFactor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 15 - didDoc: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 16 - active: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 15 + emailConfirmed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 16 + handle: /*#__PURE__*/ v.handleString(), 17 17 status: /*#__PURE__*/ v.optional( 18 - /*#__PURE__*/ v.string<'takendown' | 'suspended' | 'deactivated' | (string & {})>(), 18 + /*#__PURE__*/ v.string<'deactivated' | 'suspended' | 'takendown' | (string & {})>(), 19 19 ), 20 20 }), 21 21 },
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/server/listAppPasswords.ts
··· 4 4 5 5 const _appPasswordSchema = /*#__PURE__*/ v.object({ 6 6 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.server.listAppPasswords#appPassword')), 7 - name: /*#__PURE__*/ v.string(), 8 7 createdAt: /*#__PURE__*/ v.datetimeString(), 8 + name: /*#__PURE__*/ v.string(), 9 9 privileged: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 10 10 }); 11 11 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.server.listAppPasswords', {
+4 -4
packages/definitions/atproto/lib/lexicons/types/com/atproto/server/refreshSession.ts
··· 9 9 type: 'lex', 10 10 schema: /*#__PURE__*/ v.object({ 11 11 accessJwt: /*#__PURE__*/ v.string(), 12 - refreshJwt: /*#__PURE__*/ v.string(), 13 - handle: /*#__PURE__*/ v.handleString(), 12 + active: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 14 13 did: /*#__PURE__*/ v.didString(), 15 14 didDoc: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 16 - active: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 15 + handle: /*#__PURE__*/ v.handleString(), 16 + refreshJwt: /*#__PURE__*/ v.string(), 17 17 status: /*#__PURE__*/ v.optional( 18 - /*#__PURE__*/ v.string<'takendown' | 'suspended' | 'deactivated' | (string & {})>(), 18 + /*#__PURE__*/ v.string<'deactivated' | 'suspended' | 'takendown' | (string & {})>(), 19 19 ), 20 20 }), 21 21 },
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/server/resetPassword.ts
··· 7 7 input: { 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 - token: /*#__PURE__*/ v.string(), 11 10 password: /*#__PURE__*/ v.string(), 11 + token: /*#__PURE__*/ v.string(), 12 12 }), 13 13 }, 14 14 output: null,
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/sync/defs.ts
··· 2 2 import * as v from '@atcute/lexicons/validations'; 3 3 4 4 const _hostStatusSchema = /*#__PURE__*/ v.string< 5 - 'active' | 'idle' | 'offline' | 'throttled' | 'banned' | (string & {}) 5 + 'active' | 'banned' | 'idle' | 'offline' | 'throttled' | (string & {}) 6 6 >(); 7 7 8 8 type hostStatus$schematype = typeof _hostStatusSchema;
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/sync/getBlob.ts
··· 4 4 5 5 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.sync.getBlob', { 6 6 params: /*#__PURE__*/ v.object({ 7 - did: /*#__PURE__*/ v.didString(), 8 7 cid: /*#__PURE__*/ v.cidString(), 8 + did: /*#__PURE__*/ v.didString(), 9 9 }), 10 10 output: { 11 11 type: 'blob',
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/sync/getBlocks.ts
··· 4 4 5 5 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.sync.getBlocks', { 6 6 params: /*#__PURE__*/ v.object({ 7 - did: /*#__PURE__*/ v.didString(), 8 7 cids: /*#__PURE__*/ v.array(/*#__PURE__*/ v.cidString()), 8 + did: /*#__PURE__*/ v.didString(), 9 9 }), 10 10 output: { 11 11 type: 'blob',
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/sync/getHostStatus.ts
··· 10 10 output: { 11 11 type: 'lex', 12 12 schema: /*#__PURE__*/ v.object({ 13 + accountCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 13 14 hostname: /*#__PURE__*/ v.string(), 14 15 seq: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 15 - accountCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 16 16 get status() { 17 17 return /*#__PURE__*/ v.optional(ComAtprotoSyncDefs.hostStatusSchema); 18 18 },
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/sync/getRecord.ts
··· 4 4 5 5 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.sync.getRecord', { 6 6 params: /*#__PURE__*/ v.object({ 7 - did: /*#__PURE__*/ v.didString(), 8 7 collection: /*#__PURE__*/ v.nsidString(), 8 + did: /*#__PURE__*/ v.didString(), 9 9 rkey: /*#__PURE__*/ v.recordKeyString(), 10 10 }), 11 11 output: {
+5 -5
packages/definitions/atproto/lib/lexicons/types/com/atproto/sync/getRepoStatus.ts
··· 9 9 output: { 10 10 type: 'lex', 11 11 schema: /*#__PURE__*/ v.object({ 12 + active: /*#__PURE__*/ v.boolean(), 12 13 did: /*#__PURE__*/ v.didString(), 13 - active: /*#__PURE__*/ v.boolean(), 14 + rev: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.tidString()), 14 15 status: /*#__PURE__*/ v.optional( 15 16 /*#__PURE__*/ v.string< 16 - | 'takendown' 17 - | 'suspended' 18 - | 'deleted' 19 17 | 'deactivated' 18 + | 'deleted' 20 19 | 'desynchronized' 20 + | 'suspended' 21 + | 'takendown' 21 22 | 'throttled' 22 23 | (string & {}) 23 24 >(), 24 25 ), 25 - rev: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.tidString()), 26 26 }), 27 27 }, 28 28 });
+3 -3
packages/definitions/atproto/lib/lexicons/types/com/atproto/sync/listBlobs.ts
··· 4 4 5 5 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.sync.listBlobs', { 6 6 params: /*#__PURE__*/ v.object({ 7 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 7 8 did: /*#__PURE__*/ v.didString(), 8 - since: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.tidString()), 9 9 limit: /*#__PURE__*/ v.optional( 10 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 1000)]), 11 11 500, 12 12 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + since: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.tidString()), 14 14 }), 15 15 output: { 16 16 type: 'lex', 17 17 schema: /*#__PURE__*/ v.object({ 18 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 19 18 cids: /*#__PURE__*/ v.array(/*#__PURE__*/ v.cidString()), 19 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 20 20 }), 21 21 }, 22 22 });
+2 -2
packages/definitions/atproto/lib/lexicons/types/com/atproto/sync/listHosts.ts
··· 5 5 6 6 const _hostSchema = /*#__PURE__*/ v.object({ 7 7 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.sync.listHosts#host')), 8 + accountCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 8 9 hostname: /*#__PURE__*/ v.string(), 9 10 seq: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 10 - accountCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 11 11 get status() { 12 12 return /*#__PURE__*/ v.optional(ComAtprotoSyncDefs.hostStatusSchema); 13 13 }, 14 14 }); 15 15 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.sync.listHosts', { 16 16 params: /*#__PURE__*/ v.object({ 17 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 17 18 limit: /*#__PURE__*/ v.optional( 18 19 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 1000)]), 19 20 200, 20 21 ), 21 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 22 22 }), 23 23 output: { 24 24 type: 'lex',
+3 -3
packages/definitions/atproto/lib/lexicons/types/com/atproto/sync/listRepos.ts
··· 4 4 5 5 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.sync.listRepos', { 6 6 params: /*#__PURE__*/ v.object({ 7 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 7 8 limit: /*#__PURE__*/ v.optional( 8 9 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 1000)]), 9 10 500, 10 11 ), 11 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 12 12 }), 13 13 output: { 14 14 type: 'lex', ··· 22 22 }); 23 23 const _repoSchema = /*#__PURE__*/ v.object({ 24 24 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.sync.listRepos#repo')), 25 + active: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 25 26 did: /*#__PURE__*/ v.didString(), 26 27 head: /*#__PURE__*/ v.cidString(), 27 28 rev: /*#__PURE__*/ v.tidString(), 28 - active: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 29 29 status: /*#__PURE__*/ v.optional( 30 30 /*#__PURE__*/ v.string< 31 - 'takendown' | 'suspended' | 'deleted' | 'deactivated' | 'desynchronized' | 'throttled' | (string & {}) 31 + 'deactivated' | 'deleted' | 'desynchronized' | 'suspended' | 'takendown' | 'throttled' | (string & {}) 32 32 >(), 33 33 ), 34 34 });
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/sync/listReposByCollection.ts
··· 5 5 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.sync.listReposByCollection', { 6 6 params: /*#__PURE__*/ v.object({ 7 7 collection: /*#__PURE__*/ v.nsidString(), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 9 limit: /*#__PURE__*/ v.optional( 9 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 2000)]), 10 11 500, 11 12 ), 12 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 13 }), 14 14 output: { 15 15 type: 'lex',
+20 -20
packages/definitions/atproto/lib/lexicons/types/com/atproto/sync/subscribeRepos.ts
··· 4 4 5 5 const _accountSchema = /*#__PURE__*/ v.object({ 6 6 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.sync.subscribeRepos#account')), 7 + active: /*#__PURE__*/ v.boolean(), 8 + did: /*#__PURE__*/ v.didString(), 7 9 seq: /*#__PURE__*/ v.integer(), 8 - did: /*#__PURE__*/ v.didString(), 9 - time: /*#__PURE__*/ v.datetimeString(), 10 - active: /*#__PURE__*/ v.boolean(), 11 10 status: /*#__PURE__*/ v.optional( 12 11 /*#__PURE__*/ v.string< 13 - 'takendown' | 'suspended' | 'deleted' | 'deactivated' | 'desynchronized' | 'throttled' | (string & {}) 12 + 'deactivated' | 'deleted' | 'desynchronized' | 'suspended' | 'takendown' | 'throttled' | (string & {}) 14 13 >(), 15 14 ), 15 + time: /*#__PURE__*/ v.datetimeString(), 16 16 }); 17 17 const _commitSchema = /*#__PURE__*/ v.object({ 18 18 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.sync.subscribeRepos#commit')), 19 - seq: /*#__PURE__*/ v.integer(), 20 - rebase: /*#__PURE__*/ v.boolean(), 21 - tooBig: /*#__PURE__*/ v.boolean(), 22 - repo: /*#__PURE__*/ v.didString(), 23 - commit: /*#__PURE__*/ v.cidLink(), 24 - rev: /*#__PURE__*/ v.tidString(), 25 - since: /*#__PURE__*/ v.nullable(/*#__PURE__*/ v.tidString()), 19 + blobs: /*#__PURE__*/ v.array(/*#__PURE__*/ v.cidLink()), 26 20 blocks: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.bytes(), [/*#__PURE__*/ v.bytesSize(0, 2000000)]), 21 + commit: /*#__PURE__*/ v.cidLink(), 27 22 get ops() { 28 23 return /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(repoOpSchema), [ 29 24 /*#__PURE__*/ v.arrayLength(0, 200), 30 25 ]); 31 26 }, 32 - blobs: /*#__PURE__*/ v.array(/*#__PURE__*/ v.cidLink()), 33 27 prevData: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidLink()), 28 + rebase: /*#__PURE__*/ v.boolean(), 29 + repo: /*#__PURE__*/ v.didString(), 30 + rev: /*#__PURE__*/ v.tidString(), 31 + seq: /*#__PURE__*/ v.integer(), 32 + since: /*#__PURE__*/ v.nullable(/*#__PURE__*/ v.tidString()), 34 33 time: /*#__PURE__*/ v.datetimeString(), 34 + tooBig: /*#__PURE__*/ v.boolean(), 35 35 }); 36 36 const _identitySchema = /*#__PURE__*/ v.object({ 37 37 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.sync.subscribeRepos#identity')), 38 - seq: /*#__PURE__*/ v.integer(), 39 38 did: /*#__PURE__*/ v.didString(), 39 + handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.handleString()), 40 + seq: /*#__PURE__*/ v.integer(), 40 41 time: /*#__PURE__*/ v.datetimeString(), 41 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.handleString()), 42 42 }); 43 43 const _infoSchema = /*#__PURE__*/ v.object({ 44 44 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.sync.subscribeRepos#info')), 45 - name: /*#__PURE__*/ v.string<'OutdatedCursor' | (string & {})>(), 46 45 message: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 46 + name: /*#__PURE__*/ v.string<'OutdatedCursor' | (string & {})>(), 47 47 }); 48 48 const _mainSchema = /*#__PURE__*/ v.subscription('com.atproto.sync.subscribeRepos', { 49 49 params: /*#__PURE__*/ v.object({ 50 50 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 51 51 }), 52 52 get message() { 53 - return /*#__PURE__*/ v.variant([commitSchema, syncSchema, identitySchema, accountSchema, infoSchema]); 53 + return /*#__PURE__*/ v.variant([accountSchema, commitSchema, identitySchema, infoSchema, syncSchema]); 54 54 }, 55 55 }); 56 56 const _repoOpSchema = /*#__PURE__*/ v.object({ 57 57 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.sync.subscribeRepos#repoOp')), 58 - action: /*#__PURE__*/ v.string<'create' | 'update' | 'delete' | (string & {})>(), 59 - path: /*#__PURE__*/ v.string(), 58 + action: /*#__PURE__*/ v.string<'create' | 'delete' | 'update' | (string & {})>(), 60 59 cid: /*#__PURE__*/ v.nullable(/*#__PURE__*/ v.cidLink()), 60 + path: /*#__PURE__*/ v.string(), 61 61 prev: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidLink()), 62 62 }); 63 63 const _syncSchema = /*#__PURE__*/ v.object({ 64 64 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.sync.subscribeRepos#sync')), 65 - seq: /*#__PURE__*/ v.integer(), 65 + blocks: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.bytes(), [/*#__PURE__*/ v.bytesSize(0, 10000)]), 66 66 did: /*#__PURE__*/ v.didString(), 67 - blocks: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.bytes(), [/*#__PURE__*/ v.bytesSize(0, 10000)]), 68 67 rev: /*#__PURE__*/ v.string(), 68 + seq: /*#__PURE__*/ v.integer(), 69 69 time: /*#__PURE__*/ v.datetimeString(), 70 70 }); 71 71
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/temp/checkSignupQueue.ts
··· 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 10 activated: /*#__PURE__*/ v.boolean(), 11 - placeInQueue: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 12 11 estimatedTimeMs: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 12 + placeInQueue: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 13 13 }), 14 14 }, 15 15 });
+1 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/temp/fetchLabels.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('com.atproto.temp.fetchLabels', { 7 7 params: /*#__PURE__*/ v.object({ 8 - since: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 9 8 limit: /*#__PURE__*/ v.optional( 10 9 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 250)]), 11 10 50, 12 11 ), 12 + since: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 13 13 }), 14 14 output: { 15 15 type: 'lex',
+5 -5
packages/definitions/bluemoji/lib/lexicons/types/blue/moji/collection/defs.ts
··· 6 6 7 7 const _collectionViewSchema = /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.collection.defs#collectionView')), 9 - uri: /*#__PURE__*/ v.resourceUriString(), 9 + avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 10 10 cid: /*#__PURE__*/ v.cidString(), 11 + collectionItemCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 11 12 get creator() { 12 13 return AppBskyActorDefs.profileViewSchema; 13 14 }, 14 - name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]), 15 15 description: /*#__PURE__*/ v.optional( 16 16 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 17 17 /*#__PURE__*/ v.stringLength(0, 3000), ··· 21 21 get descriptionFacets() { 22 22 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(AppBskyRichtextFacet.mainSchema)); 23 23 }, 24 - avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 25 - collectionItemCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 24 + indexedAt: /*#__PURE__*/ v.datetimeString(), 26 25 get labels() { 27 26 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 28 27 }, 29 - indexedAt: /*#__PURE__*/ v.datetimeString(), 28 + name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]), 29 + uri: /*#__PURE__*/ v.resourceUriString(), 30 30 }); 31 31 32 32 type collectionView$schematype = typeof _collectionViewSchema;
+2 -2
packages/definitions/bluemoji/lib/lexicons/types/blue/moji/collection/getItem.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('blue.moji.collection.getItem', { 7 7 params: /*#__PURE__*/ v.object({ 8 - repo: /*#__PURE__*/ v.actorIdentifierString(), 9 8 name: /*#__PURE__*/ v.string(), 9 + repo: /*#__PURE__*/ v.actorIdentifierString(), 10 10 }), 11 11 output: { 12 12 type: 'lex', 13 13 schema: /*#__PURE__*/ v.object({ 14 - uri: /*#__PURE__*/ v.resourceUriString(), 15 14 get item() { 16 15 return BlueMojiCollectionItem.itemViewSchema; 17 16 }, 17 + uri: /*#__PURE__*/ v.resourceUriString(), 18 18 }), 19 19 }, 20 20 });
+16 -16
packages/definitions/bluemoji/lib/lexicons/types/blue/moji/collection/item.ts
··· 9 9 ]); 10 10 const _formats_v0Schema = /*#__PURE__*/ v.object({ 11 11 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.collection.item#formats_v0')), 12 - original: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()), 13 - get png_128() { 14 - return /*#__PURE__*/ v.optional(blob_v0Schema); 15 - }, 16 12 get apng_128() { 17 13 return /*#__PURE__*/ v.optional(bytes_v0Schema); 18 14 }, 19 15 get gif_128() { 20 16 return /*#__PURE__*/ v.optional(blob_v0Schema); 21 17 }, 22 - get webp_128() { 23 - return /*#__PURE__*/ v.optional(blob_v0Schema); 24 - }, 25 18 get lottie() { 26 19 return /*#__PURE__*/ v.optional(bytes_v0Schema); 27 20 }, 21 + original: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()), 22 + get png_128() { 23 + return /*#__PURE__*/ v.optional(blob_v0Schema); 24 + }, 25 + get webp_128() { 26 + return /*#__PURE__*/ v.optional(blob_v0Schema); 27 + }, 28 28 }); 29 29 const _itemViewSchema = /*#__PURE__*/ v.object({ 30 30 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.collection.item#itemView')), 31 - name: /*#__PURE__*/ v.string(), 31 + adultOnly: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 32 32 alt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 33 33 createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 34 34 get formats() { 35 35 return formats_v0Schema; 36 36 }, 37 - adultOnly: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 37 + name: /*#__PURE__*/ v.string(), 38 38 }); 39 39 const _mainSchema = /*#__PURE__*/ v.record( 40 40 /*#__PURE__*/ v.string(), 41 41 /*#__PURE__*/ v.object({ 42 42 $type: /*#__PURE__*/ v.literal('blue.moji.collection.item'), 43 - name: /*#__PURE__*/ v.string(), 43 + adultOnly: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 44 44 alt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 45 + copyOf: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 45 46 createdAt: /*#__PURE__*/ v.datetimeString(), 47 + fallbackText: /*#__PURE__*/ v.optional( 48 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 1)]), 49 + '◌', 50 + ), 46 51 get formats() { 47 52 return /*#__PURE__*/ v.variant([formats_v0Schema]); 48 53 }, 49 - adultOnly: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 50 54 get labels() { 51 55 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema])); 52 56 }, 53 - copyOf: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 54 - fallbackText: /*#__PURE__*/ v.optional( 55 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 1)]), 56 - '◌', 57 - ), 57 + name: /*#__PURE__*/ v.string(), 58 58 }), 59 59 ); 60 60
+2 -2
packages/definitions/bluemoji/lib/lexicons/types/blue/moji/collection/listCollection.ts
··· 5 5 6 6 const _itemViewSchema = /*#__PURE__*/ v.object({ 7 7 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.collection.listCollection#itemView')), 8 - uri: /*#__PURE__*/ v.resourceUriString(), 9 8 get record() { 10 9 return BlueMojiCollectionItem.itemViewSchema; 11 10 }, 11 + uri: /*#__PURE__*/ v.resourceUriString(), 12 12 }); 13 13 const _mainSchema = /*#__PURE__*/ v.query('blue.moji.collection.listCollection', { 14 14 params: /*#__PURE__*/ v.object({ 15 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 16 limit: /*#__PURE__*/ v.optional( 16 17 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 17 18 50, 18 19 ), 19 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 20 20 reverse: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 21 21 }), 22 22 output: {
+2 -2
packages/definitions/bluemoji/lib/lexicons/types/blue/moji/collection/putItem.ts
··· 8 8 input: { 9 9 type: 'lex', 10 10 schema: /*#__PURE__*/ v.object({ 11 - repo: /*#__PURE__*/ v.actorIdentifierString(), 12 - validate: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true), 13 11 get item() { 14 12 return BlueMojiCollectionItem.itemViewSchema; 15 13 }, 14 + repo: /*#__PURE__*/ v.actorIdentifierString(), 15 + validate: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true), 16 16 }), 17 17 }, 18 18 output: {
+2 -2
packages/definitions/bluemoji/lib/lexicons/types/blue/moji/collection/saveToCollection.ts
··· 8 8 input: { 9 9 type: 'lex', 10 10 schema: /*#__PURE__*/ v.object({ 11 - source: /*#__PURE__*/ v.actorIdentifierString(), 12 11 name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 15)]), 13 12 renameTo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + source: /*#__PURE__*/ v.actorIdentifierString(), 14 14 }), 15 15 }, 16 16 output: { 17 17 type: 'lex', 18 18 schema: /*#__PURE__*/ v.object({ 19 - uri: /*#__PURE__*/ v.resourceUriString(), 20 19 get item() { 21 20 return BlueMojiCollectionItem.itemViewSchema; 22 21 }, 22 + uri: /*#__PURE__*/ v.resourceUriString(), 23 23 }), 24 24 }, 25 25 });
+10 -10
packages/definitions/bluemoji/lib/lexicons/types/blue/moji/packs/defs.ts
··· 8 8 9 9 const _packItemViewSchema = /*#__PURE__*/ v.object({ 10 10 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.packs.defs#packItemView')), 11 - uri: /*#__PURE__*/ v.resourceUriString(), 12 11 get subject() { 13 12 return BlueMojiCollectionItem.itemViewSchema; 14 13 }, 14 + uri: /*#__PURE__*/ v.resourceUriString(), 15 15 }); 16 16 const _packViewSchema = /*#__PURE__*/ v.object({ 17 17 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.packs.defs#packView')), 18 - uri: /*#__PURE__*/ v.resourceUriString(), 18 + avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 19 19 cid: /*#__PURE__*/ v.cidString(), 20 20 get creator() { 21 21 return AppBskyActorDefs.profileViewSchema; 22 22 }, 23 - name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]), 24 23 description: /*#__PURE__*/ v.optional( 25 24 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 26 25 /*#__PURE__*/ v.stringLength(0, 3000), ··· 30 29 get descriptionFacets() { 31 30 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(AppBskyRichtextFacet.mainSchema)); 32 31 }, 33 - avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 34 - packItemCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 32 + indexedAt: /*#__PURE__*/ v.datetimeString(), 35 33 get labels() { 36 34 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 37 35 }, 36 + name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]), 37 + packItemCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 38 + uri: /*#__PURE__*/ v.resourceUriString(), 38 39 get viewer() { 39 40 return /*#__PURE__*/ v.optional(packViewerStateSchema); 40 41 }, 41 - indexedAt: /*#__PURE__*/ v.datetimeString(), 42 42 }); 43 43 const _packViewBasicSchema = /*#__PURE__*/ v.object({ 44 44 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.packs.defs#packViewBasic')), 45 - uri: /*#__PURE__*/ v.resourceUriString(), 45 + avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 46 46 cid: /*#__PURE__*/ v.cidString(), 47 - name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]), 48 47 description: /*#__PURE__*/ v.optional( 49 48 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 50 49 /*#__PURE__*/ v.stringLength(0, 3000), ··· 54 53 get descriptionFacets() { 55 54 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(BlueMojiRichtextFacet.mainSchema)); 56 55 }, 57 - avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 56 + indexedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 58 57 itemCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 59 58 get labels() { 60 59 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 61 60 }, 61 + name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]), 62 + uri: /*#__PURE__*/ v.resourceUriString(), 62 63 get viewer() { 63 64 return /*#__PURE__*/ v.optional(packViewerStateSchema); 64 65 }, 65 - indexedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 66 66 }); 67 67 const _packViewerStateSchema = /*#__PURE__*/ v.object({ 68 68 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.packs.defs#packViewerState')),
+1 -1
packages/definitions/bluemoji/lib/lexicons/types/blue/moji/packs/getActorPacks.ts
··· 6 6 const _mainSchema = /*#__PURE__*/ v.query('blue.moji.packs.getActorPacks', { 7 7 params: /*#__PURE__*/ v.object({ 8 8 actor: /*#__PURE__*/ v.actorIdentifierString(), 9 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 10 limit: /*#__PURE__*/ v.optional( 10 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 12 50, 12 13 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 }), 15 15 output: { 16 16 type: 'lex',
+5 -5
packages/definitions/bluemoji/lib/lexicons/types/blue/moji/packs/getPack.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('blue.moji.packs.getPack', { 7 7 params: /*#__PURE__*/ v.object({ 8 - pack: /*#__PURE__*/ v.resourceUriString(), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 9 limit: /*#__PURE__*/ v.optional( 10 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 11 50, 12 12 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + pack: /*#__PURE__*/ v.resourceUriString(), 14 14 }), 15 15 output: { 16 16 type: 'lex', 17 17 schema: /*#__PURE__*/ v.object({ 18 18 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 19 - get pack() { 20 - return BlueMojiPacksDefs.packViewSchema; 21 - }, 22 19 get items() { 23 20 return /*#__PURE__*/ v.array(BlueMojiPacksDefs.packItemViewSchema); 21 + }, 22 + get pack() { 23 + return BlueMojiPacksDefs.packViewSchema; 24 24 }, 25 25 }), 26 26 },
+3 -3
packages/definitions/bluemoji/lib/lexicons/types/blue/moji/packs/pack.ts
··· 8 8 /*#__PURE__*/ v.tidString(), 9 9 /*#__PURE__*/ v.object({ 10 10 $type: /*#__PURE__*/ v.literal('blue.moji.packs.pack'), 11 - name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]), 11 + adultOnly: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 12 + createdAt: /*#__PURE__*/ v.datetimeString(), 12 13 description: /*#__PURE__*/ v.optional( 13 14 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 14 15 /*#__PURE__*/ v.stringLength(0, 3000), ··· 19 20 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(BlueMojiRichtextFacet.mainSchema)); 20 21 }, 21 22 icon: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()), 22 - adultOnly: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 23 - createdAt: /*#__PURE__*/ v.datetimeString(), 24 23 get labels() { 25 24 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema])); 26 25 }, 26 + name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]), 27 27 }), 28 28 ); 29 29
+2 -2
packages/definitions/bluemoji/lib/lexicons/types/blue/moji/packs/packitem.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('blue.moji.packs.packitem'), 9 - subject: /*#__PURE__*/ v.resourceUriString(), 10 - pack: /*#__PURE__*/ v.resourceUriString(), 11 9 createdAt: /*#__PURE__*/ v.datetimeString(), 10 + pack: /*#__PURE__*/ v.resourceUriString(), 11 + subject: /*#__PURE__*/ v.resourceUriString(), 12 12 }), 13 13 ); 14 14
+9 -9
packages/definitions/bluemoji/lib/lexicons/types/blue/moji/richtext/facet.ts
··· 4 4 5 5 const _formats_v0Schema = /*#__PURE__*/ v.object({ 6 6 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.richtext.facet#formats_v0')), 7 + apng_128: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 8 + gif_128: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 9 + lottie: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 7 10 png_128: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 8 11 webp_128: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 9 - gif_128: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 10 - apng_128: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 11 - lottie: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 12 12 }); 13 13 const _mainSchema = /*#__PURE__*/ v.object({ 14 14 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.richtext.facet')), 15 - did: /*#__PURE__*/ v.string(), 16 - name: /*#__PURE__*/ v.string(), 17 - alt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 18 15 adultOnly: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 16 + alt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 17 + did: /*#__PURE__*/ v.string(), 18 + get formats() { 19 + return /*#__PURE__*/ v.variant([formats_v0Schema]); 20 + }, 19 21 get labels() { 20 22 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema])); 21 23 }, 22 - get formats() { 23 - return /*#__PURE__*/ v.variant([formats_v0Schema]); 24 - }, 24 + name: /*#__PURE__*/ v.string(), 25 25 }); 26 26 27 27 type formats_v0$schematype = typeof _formats_v0Schema;
+101 -101
packages/definitions/bluesky/lib/lexicons/types/app/bsky/actor/defs.ts
··· 20 20 get activeProgressGuide() { 21 21 return /*#__PURE__*/ v.optional(bskyAppProgressGuideSchema); 22 22 }, 23 + get nuxs() { 24 + return /*#__PURE__*/ v.optional( 25 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(nuxSchema), [/*#__PURE__*/ v.arrayLength(0, 100)]), 26 + ); 27 + }, 23 28 queuedNudges: /*#__PURE__*/ v.optional( 24 29 /*#__PURE__*/ v.constrain( 25 30 /*#__PURE__*/ v.array( ··· 28 33 [/*#__PURE__*/ v.arrayLength(0, 1000)], 29 34 ), 30 35 ), 31 - get nuxs() { 32 - return /*#__PURE__*/ v.optional( 33 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(nuxSchema), [/*#__PURE__*/ v.arrayLength(0, 100)]), 34 - ); 35 - }, 36 36 }); 37 37 const _contentLabelPrefSchema = /*#__PURE__*/ v.object({ 38 38 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#contentLabelPref')), 39 + label: /*#__PURE__*/ v.string(), 39 40 labelerDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 40 - label: /*#__PURE__*/ v.string(), 41 - visibility: /*#__PURE__*/ v.string<'ignore' | 'show' | 'warn' | 'hide' | (string & {})>(), 41 + visibility: /*#__PURE__*/ v.string<'hide' | 'ignore' | 'show' | 'warn' | (string & {})>(), 42 42 }); 43 43 const _feedViewPrefSchema = /*#__PURE__*/ v.object({ 44 44 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#feedViewPref')), 45 45 feed: /*#__PURE__*/ v.string(), 46 + hideQuotePosts: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 46 47 hideReplies: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 47 - hideRepliesByUnfollowed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true), 48 48 hideRepliesByLikeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 49 + hideRepliesByUnfollowed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true), 49 50 hideReposts: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 50 - hideQuotePosts: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 51 51 }); 52 52 const _hiddenPostsPrefSchema = /*#__PURE__*/ v.object({ 53 53 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#hiddenPostsPref')), ··· 86 86 }); 87 87 const _mutedWordSchema = /*#__PURE__*/ v.object({ 88 88 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#mutedWord')), 89 + actorTarget: /*#__PURE__*/ v.optional( 90 + /*#__PURE__*/ v.string<'all' | 'exclude-following' | (string & {})>(), 91 + 'all', 92 + ), 93 + expiresAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 89 94 id: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 95 + get targets() { 96 + return /*#__PURE__*/ v.array(mutedWordTargetSchema); 97 + }, 90 98 value: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 91 99 /*#__PURE__*/ v.stringLength(0, 10000), 92 100 /*#__PURE__*/ v.stringGraphemes(0, 1000), 93 101 ]), 94 - get targets() { 95 - return /*#__PURE__*/ v.array(mutedWordTargetSchema); 96 - }, 97 - actorTarget: /*#__PURE__*/ v.optional( 98 - /*#__PURE__*/ v.string<'all' | 'exclude-following' | (string & {})>(), 99 - 'all', 100 - ), 101 - expiresAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 102 102 }); 103 103 const _mutedWordTargetSchema = /*#__PURE__*/ v.constrain( 104 104 /*#__PURE__*/ v.string<'content' | 'tag' | (string & {})>(), ··· 112 112 }); 113 113 const _nuxSchema = /*#__PURE__*/ v.object({ 114 114 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#nux')), 115 - id: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 100)]), 116 115 completed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 117 116 data: /*#__PURE__*/ v.optional( 118 117 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ ··· 121 120 ]), 122 121 ), 123 122 expiresAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 123 + id: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 100)]), 124 124 }); 125 125 const _personalDetailsPrefSchema = /*#__PURE__*/ v.object({ 126 126 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#personalDetailsPref')), ··· 128 128 }); 129 129 const _postInteractionSettingsPrefSchema = /*#__PURE__*/ v.object({ 130 130 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#postInteractionSettingsPref')), 131 + get postgateEmbeddingRules() { 132 + return /*#__PURE__*/ v.optional( 133 + /*#__PURE__*/ v.constrain( 134 + /*#__PURE__*/ v.array(/*#__PURE__*/ v.variant([AppBskyFeedPostgate.disableRuleSchema])), 135 + [/*#__PURE__*/ v.arrayLength(0, 5)], 136 + ), 137 + ); 138 + }, 131 139 get threadgateAllowRules() { 132 140 return /*#__PURE__*/ v.optional( 133 141 /*#__PURE__*/ v.constrain( 134 142 /*#__PURE__*/ v.array( 135 143 /*#__PURE__*/ v.variant([ 136 - AppBskyFeedThreadgate.mentionRuleSchema, 137 144 AppBskyFeedThreadgate.followerRuleSchema, 138 145 AppBskyFeedThreadgate.followingRuleSchema, 139 146 AppBskyFeedThreadgate.listRuleSchema, 147 + AppBskyFeedThreadgate.mentionRuleSchema, 140 148 ]), 141 149 ), 142 150 [/*#__PURE__*/ v.arrayLength(0, 5)], 143 151 ), 144 152 ); 145 153 }, 146 - get postgateEmbeddingRules() { 147 - return /*#__PURE__*/ v.optional( 148 - /*#__PURE__*/ v.constrain( 149 - /*#__PURE__*/ v.array(/*#__PURE__*/ v.variant([AppBskyFeedPostgate.disableRuleSchema])), 150 - [/*#__PURE__*/ v.arrayLength(0, 5)], 151 - ), 152 - ); 153 - }, 154 154 }); 155 155 const _preferencesSchema = /*#__PURE__*/ v.array(() => { 156 156 return /*#__PURE__*/ v.variant([ 157 157 adultContentPrefSchema, 158 + bskyAppStatePrefSchema, 158 159 contentLabelPrefSchema, 159 - savedFeedsPrefSchema, 160 - savedFeedsPrefV2Schema, 161 - personalDetailsPrefSchema, 162 160 feedViewPrefSchema, 163 - threadViewPrefSchema, 161 + hiddenPostsPrefSchema, 164 162 interestsPrefSchema, 163 + labelersPrefSchema, 165 164 mutedWordsPrefSchema, 166 - hiddenPostsPrefSchema, 167 - bskyAppStatePrefSchema, 168 - labelersPrefSchema, 165 + personalDetailsPrefSchema, 169 166 postInteractionSettingsPrefSchema, 167 + savedFeedsPrefSchema, 168 + savedFeedsPrefV2Schema, 169 + threadViewPrefSchema, 170 170 verificationPrefsSchema, 171 171 ]); 172 172 }); 173 173 const _profileAssociatedSchema = /*#__PURE__*/ v.object({ 174 174 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#profileAssociated')), 175 - lists: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 176 - feedgens: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 177 - starterPacks: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 178 - labeler: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 179 175 get chat() { 180 176 return /*#__PURE__*/ v.optional(profileAssociatedChatSchema); 181 177 }, 178 + feedgens: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 179 + labeler: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 180 + lists: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 181 + starterPacks: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 182 182 }); 183 183 const _profileAssociatedChatSchema = /*#__PURE__*/ v.object({ 184 184 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#profileAssociatedChat')), 185 - allowIncoming: /*#__PURE__*/ v.string<'all' | 'none' | 'following' | (string & {})>(), 185 + allowIncoming: /*#__PURE__*/ v.string<'all' | 'following' | 'none' | (string & {})>(), 186 186 }); 187 187 const _profileViewSchema = /*#__PURE__*/ v.object({ 188 188 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#profileView')), 189 + get associated() { 190 + return /*#__PURE__*/ v.optional(profileAssociatedSchema); 191 + }, 192 + avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 193 + createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 194 + description: /*#__PURE__*/ v.optional( 195 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 196 + /*#__PURE__*/ v.stringLength(0, 2560), 197 + /*#__PURE__*/ v.stringGraphemes(0, 256), 198 + ]), 199 + ), 189 200 did: /*#__PURE__*/ v.didString(), 190 - handle: /*#__PURE__*/ v.handleString(), 191 201 displayName: /*#__PURE__*/ v.optional( 192 202 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 193 203 /*#__PURE__*/ v.stringLength(0, 640), 194 204 /*#__PURE__*/ v.stringGraphemes(0, 64), 195 205 ]), 196 206 ), 197 - description: /*#__PURE__*/ v.optional( 198 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 199 - /*#__PURE__*/ v.stringLength(0, 2560), 200 - /*#__PURE__*/ v.stringGraphemes(0, 256), 201 - ]), 202 - ), 203 - avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 204 - get associated() { 205 - return /*#__PURE__*/ v.optional(profileAssociatedSchema); 206 - }, 207 + handle: /*#__PURE__*/ v.handleString(), 207 208 indexedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 208 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 209 - get viewer() { 210 - return /*#__PURE__*/ v.optional(viewerStateSchema); 211 - }, 212 209 get labels() { 213 210 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 211 + }, 212 + get status() { 213 + return /*#__PURE__*/ v.optional(statusViewSchema); 214 214 }, 215 215 get verification() { 216 216 return /*#__PURE__*/ v.optional(verificationStateSchema); 217 217 }, 218 - get status() { 219 - return /*#__PURE__*/ v.optional(statusViewSchema); 218 + get viewer() { 219 + return /*#__PURE__*/ v.optional(viewerStateSchema); 220 220 }, 221 221 }); 222 222 const _profileViewBasicSchema = /*#__PURE__*/ v.object({ 223 223 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#profileViewBasic')), 224 + get associated() { 225 + return /*#__PURE__*/ v.optional(profileAssociatedSchema); 226 + }, 227 + avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 228 + createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 224 229 did: /*#__PURE__*/ v.didString(), 225 - handle: /*#__PURE__*/ v.handleString(), 226 230 displayName: /*#__PURE__*/ v.optional( 227 231 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 228 232 /*#__PURE__*/ v.stringLength(0, 640), 229 233 /*#__PURE__*/ v.stringGraphemes(0, 64), 230 234 ]), 231 235 ), 232 - avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 233 - get associated() { 234 - return /*#__PURE__*/ v.optional(profileAssociatedSchema); 235 - }, 236 - get viewer() { 237 - return /*#__PURE__*/ v.optional(viewerStateSchema); 238 - }, 236 + handle: /*#__PURE__*/ v.handleString(), 239 237 get labels() { 240 238 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 241 239 }, 242 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 240 + get status() { 241 + return /*#__PURE__*/ v.optional(statusViewSchema); 242 + }, 243 243 get verification() { 244 244 return /*#__PURE__*/ v.optional(verificationStateSchema); 245 245 }, 246 - get status() { 247 - return /*#__PURE__*/ v.optional(statusViewSchema); 246 + get viewer() { 247 + return /*#__PURE__*/ v.optional(viewerStateSchema); 248 248 }, 249 249 }); 250 250 const _profileViewDetailedSchema = /*#__PURE__*/ v.object({ 251 251 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#profileViewDetailed')), 252 + get associated() { 253 + return /*#__PURE__*/ v.optional(profileAssociatedSchema); 254 + }, 255 + avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 256 + banner: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 257 + createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 258 + description: /*#__PURE__*/ v.optional( 259 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 260 + /*#__PURE__*/ v.stringLength(0, 2560), 261 + /*#__PURE__*/ v.stringGraphemes(0, 256), 262 + ]), 263 + ), 252 264 did: /*#__PURE__*/ v.didString(), 253 - handle: /*#__PURE__*/ v.handleString(), 254 265 displayName: /*#__PURE__*/ v.optional( 255 266 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 256 267 /*#__PURE__*/ v.stringLength(0, 640), 257 268 /*#__PURE__*/ v.stringGraphemes(0, 64), 258 269 ]), 259 270 ), 260 - description: /*#__PURE__*/ v.optional( 261 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 262 - /*#__PURE__*/ v.stringLength(0, 2560), 263 - /*#__PURE__*/ v.stringGraphemes(0, 256), 264 - ]), 265 - ), 266 - avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 267 - banner: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 268 271 followersCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 269 272 followsCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 270 - postsCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 271 - get associated() { 272 - return /*#__PURE__*/ v.optional(profileAssociatedSchema); 273 - }, 273 + handle: /*#__PURE__*/ v.handleString(), 274 + indexedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 274 275 get joinedViaStarterPack() { 275 276 return /*#__PURE__*/ v.optional(AppBskyGraphDefs.starterPackViewBasicSchema); 276 277 }, 277 - indexedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 278 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 279 - get viewer() { 280 - return /*#__PURE__*/ v.optional(viewerStateSchema); 281 - }, 282 278 get labels() { 283 279 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 284 280 }, 285 281 get pinnedPost() { 286 282 return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 287 283 }, 284 + postsCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 285 + get status() { 286 + return /*#__PURE__*/ v.optional(statusViewSchema); 287 + }, 288 288 get verification() { 289 289 return /*#__PURE__*/ v.optional(verificationStateSchema); 290 290 }, 291 - get status() { 292 - return /*#__PURE__*/ v.optional(statusViewSchema); 291 + get viewer() { 292 + return /*#__PURE__*/ v.optional(viewerStateSchema); 293 293 }, 294 294 }); 295 295 const _savedFeedSchema = /*#__PURE__*/ v.object({ 296 296 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#savedFeed')), 297 297 id: /*#__PURE__*/ v.string(), 298 + pinned: /*#__PURE__*/ v.boolean(), 298 299 type: /*#__PURE__*/ v.string<'feed' | 'list' | 'timeline' | (string & {})>(), 299 300 value: /*#__PURE__*/ v.string(), 300 - pinned: /*#__PURE__*/ v.boolean(), 301 301 }); 302 302 const _savedFeedsPrefSchema = /*#__PURE__*/ v.object({ 303 303 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#savedFeedsPref')), ··· 313 313 }); 314 314 const _statusViewSchema = /*#__PURE__*/ v.object({ 315 315 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#statusView')), 316 - status: /*#__PURE__*/ v.string<'app.bsky.actor.status#live' | (string & {})>(), 317 - record: /*#__PURE__*/ v.unknown(), 318 316 get embed() { 319 317 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([AppBskyEmbedExternal.viewSchema])); 320 318 }, 321 319 expiresAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 322 320 isActive: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 321 + record: /*#__PURE__*/ v.unknown(), 322 + status: /*#__PURE__*/ v.string<'app.bsky.actor.status#live' | (string & {})>(), 323 323 }); 324 324 const _threadViewPrefSchema = /*#__PURE__*/ v.object({ 325 325 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#threadViewPref')), 326 + prioritizeFollowedUsers: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 326 327 sort: /*#__PURE__*/ v.optional( 327 - /*#__PURE__*/ v.string<'oldest' | 'newest' | 'most-likes' | 'random' | 'hotness' | (string & {})>(), 328 + /*#__PURE__*/ v.string<'hotness' | 'most-likes' | 'newest' | 'oldest' | 'random' | (string & {})>(), 328 329 ), 329 - prioritizeFollowedUsers: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 330 330 }); 331 331 const _verificationPrefsSchema = /*#__PURE__*/ v.object({ 332 332 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#verificationPrefs')), ··· 334 334 }); 335 335 const _verificationStateSchema = /*#__PURE__*/ v.object({ 336 336 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#verificationState')), 337 + trustedVerifierStatus: /*#__PURE__*/ v.string<'invalid' | 'none' | 'valid' | (string & {})>(), 337 338 get verifications() { 338 339 return /*#__PURE__*/ v.array(verificationViewSchema); 339 340 }, 340 - verifiedStatus: /*#__PURE__*/ v.string<'valid' | 'invalid' | 'none' | (string & {})>(), 341 - trustedVerifierStatus: /*#__PURE__*/ v.string<'valid' | 'invalid' | 'none' | (string & {})>(), 341 + verifiedStatus: /*#__PURE__*/ v.string<'invalid' | 'none' | 'valid' | (string & {})>(), 342 342 }); 343 343 const _verificationViewSchema = /*#__PURE__*/ v.object({ 344 344 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#verificationView')), 345 + createdAt: /*#__PURE__*/ v.datetimeString(), 346 + isValid: /*#__PURE__*/ v.boolean(), 345 347 issuer: /*#__PURE__*/ v.didString(), 346 348 uri: /*#__PURE__*/ v.resourceUriString(), 347 - isValid: /*#__PURE__*/ v.boolean(), 348 - createdAt: /*#__PURE__*/ v.datetimeString(), 349 349 }); 350 350 const _viewerStateSchema = /*#__PURE__*/ v.object({ 351 351 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#viewerState')), 352 - muted: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 353 - get mutedByList() { 354 - return /*#__PURE__*/ v.optional(AppBskyGraphDefs.listViewBasicSchema); 355 - }, 356 352 blockedBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 357 353 blocking: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 358 354 get blockingByList() { 359 355 return /*#__PURE__*/ v.optional(AppBskyGraphDefs.listViewBasicSchema); 360 356 }, 361 - following: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 362 357 followedBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 358 + following: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 363 359 get knownFollowers() { 364 360 return /*#__PURE__*/ v.optional(knownFollowersSchema); 361 + }, 362 + muted: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 363 + get mutedByList() { 364 + return /*#__PURE__*/ v.optional(AppBskyGraphDefs.listViewBasicSchema); 365 365 }, 366 366 }); 367 367
+2 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/actor/getSuggestions.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.actor.getSuggestions', { 7 7 params: /*#__PURE__*/ v.object({ 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 9 limit: /*#__PURE__*/ v.optional( 9 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 10 11 50, 11 12 ), 12 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 13 }), 14 14 output: { 15 15 type: 'lex', 16 16 schema: /*#__PURE__*/ v.object({ 17 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 18 17 get actors() { 19 18 return /*#__PURE__*/ v.array(AppBskyActorDefs.profileViewSchema); 20 19 }, 20 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 21 21 recId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 22 22 }), 23 23 },
+12 -12
packages/definitions/bluesky/lib/lexicons/types/app/bsky/actor/profile.ts
··· 8 8 /*#__PURE__*/ v.literal('self'), 9 9 /*#__PURE__*/ v.object({ 10 10 $type: /*#__PURE__*/ v.literal('app.bsky.actor.profile'), 11 - displayName: /*#__PURE__*/ v.optional( 12 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 13 - /*#__PURE__*/ v.stringLength(0, 640), 14 - /*#__PURE__*/ v.stringGraphemes(0, 64), 15 - ]), 16 - ), 11 + avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()), 12 + banner: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()), 13 + createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 17 14 description: /*#__PURE__*/ v.optional( 18 15 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 19 16 /*#__PURE__*/ v.stringLength(0, 2560), 20 17 /*#__PURE__*/ v.stringGraphemes(0, 256), 21 18 ]), 22 19 ), 23 - avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()), 24 - banner: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()), 25 - get labels() { 26 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema])); 27 - }, 20 + displayName: /*#__PURE__*/ v.optional( 21 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 22 + /*#__PURE__*/ v.stringLength(0, 640), 23 + /*#__PURE__*/ v.stringGraphemes(0, 64), 24 + ]), 25 + ), 28 26 get joinedViaStarterPack() { 29 27 return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 30 28 }, 29 + get labels() { 30 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema])); 31 + }, 31 32 get pinnedPost() { 32 33 return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 33 34 }, 34 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 35 35 }), 36 36 ); 37 37
+4 -4
packages/definitions/bluesky/lib/lexicons/types/app/bsky/actor/searchActors.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.actor.searchActors', { 7 7 params: /*#__PURE__*/ v.object({ 8 - term: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 - q: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 9 limit: /*#__PURE__*/ v.optional( 11 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 12 11 25, 13 12 ), 14 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + q: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 + term: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 15 }), 16 16 output: { 17 17 type: 'lex', 18 18 schema: /*#__PURE__*/ v.object({ 19 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 20 19 get actors() { 21 20 return /*#__PURE__*/ v.array(AppBskyActorDefs.profileViewSchema); 22 21 }, 22 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 23 23 }), 24 24 }, 25 25 });
+2 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/actor/searchActorsTypeahead.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.actor.searchActorsTypeahead', { 7 7 params: /*#__PURE__*/ v.object({ 8 - term: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 - q: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 8 limit: /*#__PURE__*/ v.optional( 11 9 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 12 10 10, 13 11 ), 12 + q: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + term: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 }), 15 15 output: { 16 16 type: 'lex',
+5 -5
packages/definitions/bluesky/lib/lexicons/types/app/bsky/actor/status.ts
··· 8 8 /*#__PURE__*/ v.literal('self'), 9 9 /*#__PURE__*/ v.object({ 10 10 $type: /*#__PURE__*/ v.literal('app.bsky.actor.status'), 11 - status: /*#__PURE__*/ v.string<'app.bsky.actor.status#live' | (string & {})>(), 12 - get embed() { 13 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([AppBskyEmbedExternal.mainSchema])); 14 - }, 11 + createdAt: /*#__PURE__*/ v.datetimeString(), 15 12 durationMinutes: /*#__PURE__*/ v.optional( 16 13 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1)]), 17 14 ), 18 - createdAt: /*#__PURE__*/ v.datetimeString(), 15 + get embed() { 16 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([AppBskyEmbedExternal.mainSchema])); 17 + }, 18 + status: /*#__PURE__*/ v.string<'app.bsky.actor.status#live' | (string & {})>(), 19 19 }), 20 20 ); 21 21
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/embed/defs.ts
··· 3 3 4 4 const _aspectRatioSchema = /*#__PURE__*/ v.object({ 5 5 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.defs#aspectRatio')), 6 - width: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1)]), 7 6 height: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1)]), 7 + width: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1)]), 8 8 }); 9 9 10 10 type aspectRatio$schematype = typeof _aspectRatioSchema;
+4 -4
packages/definitions/bluesky/lib/lexicons/types/app/bsky/embed/external.ts
··· 3 3 4 4 const _externalSchema = /*#__PURE__*/ v.object({ 5 5 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.external#external')), 6 - uri: /*#__PURE__*/ v.genericUriString(), 7 - title: /*#__PURE__*/ v.string(), 8 6 description: /*#__PURE__*/ v.string(), 9 7 thumb: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()), 8 + title: /*#__PURE__*/ v.string(), 9 + uri: /*#__PURE__*/ v.genericUriString(), 10 10 }); 11 11 const _mainSchema = /*#__PURE__*/ v.object({ 12 12 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.external')), ··· 22 22 }); 23 23 const _viewExternalSchema = /*#__PURE__*/ v.object({ 24 24 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.external#viewExternal')), 25 - uri: /*#__PURE__*/ v.genericUriString(), 26 - title: /*#__PURE__*/ v.string(), 27 25 description: /*#__PURE__*/ v.string(), 28 26 thumb: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 27 + title: /*#__PURE__*/ v.string(), 28 + uri: /*#__PURE__*/ v.genericUriString(), 29 29 }); 30 30 31 31 type external$schematype = typeof _externalSchema;
+3 -3
packages/definitions/bluesky/lib/lexicons/types/app/bsky/embed/images.ts
··· 4 4 5 5 const _imageSchema = /*#__PURE__*/ v.object({ 6 6 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.images#image')), 7 - image: /*#__PURE__*/ v.blob(), 8 7 alt: /*#__PURE__*/ v.string(), 9 8 get aspectRatio() { 10 9 return /*#__PURE__*/ v.optional(AppBskyEmbedDefs.aspectRatioSchema); 11 10 }, 11 + image: /*#__PURE__*/ v.blob(), 12 12 }); 13 13 const _mainSchema = /*#__PURE__*/ v.object({ 14 14 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.images')), ··· 26 26 }); 27 27 const _viewImageSchema = /*#__PURE__*/ v.object({ 28 28 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.images#viewImage')), 29 - thumb: /*#__PURE__*/ v.genericUriString(), 30 - fullsize: /*#__PURE__*/ v.genericUriString(), 31 29 alt: /*#__PURE__*/ v.string(), 32 30 get aspectRatio() { 33 31 return /*#__PURE__*/ v.optional(AppBskyEmbedDefs.aspectRatioSchema); 34 32 }, 33 + fullsize: /*#__PURE__*/ v.genericUriString(), 34 + thumb: /*#__PURE__*/ v.genericUriString(), 35 35 }); 36 36 37 37 type image$schematype = typeof _imageSchema;
+20 -20
packages/definitions/bluesky/lib/lexicons/types/app/bsky/embed/record.ts
··· 21 21 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.record#view')), 22 22 get record() { 23 23 return /*#__PURE__*/ v.variant([ 24 - viewRecordSchema, 25 - viewNotFoundSchema, 26 24 viewBlockedSchema, 27 25 viewDetachedSchema, 26 + viewNotFoundSchema, 27 + viewRecordSchema, 28 28 AppBskyFeedDefs.generatorViewSchema, 29 29 AppBskyGraphDefs.listViewSchema, 30 - AppBskyLabelerDefs.labelerViewSchema, 31 30 AppBskyGraphDefs.starterPackViewBasicSchema, 31 + AppBskyLabelerDefs.labelerViewSchema, 32 32 ]); 33 33 }, 34 34 }); 35 35 const _viewBlockedSchema = /*#__PURE__*/ v.object({ 36 36 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.record#viewBlocked')), 37 - uri: /*#__PURE__*/ v.resourceUriString(), 38 - blocked: /*#__PURE__*/ v.literal(true), 39 37 get author() { 40 38 return AppBskyFeedDefs.blockedAuthorSchema; 41 39 }, 40 + blocked: /*#__PURE__*/ v.literal(true), 41 + uri: /*#__PURE__*/ v.resourceUriString(), 42 42 }); 43 43 const _viewDetachedSchema = /*#__PURE__*/ v.object({ 44 44 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.record#viewDetached')), 45 - uri: /*#__PURE__*/ v.resourceUriString(), 46 45 detached: /*#__PURE__*/ v.literal(true), 46 + uri: /*#__PURE__*/ v.resourceUriString(), 47 47 }); 48 48 const _viewNotFoundSchema = /*#__PURE__*/ v.object({ 49 49 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.record#viewNotFound')), 50 + notFound: /*#__PURE__*/ v.literal(true), 50 51 uri: /*#__PURE__*/ v.resourceUriString(), 51 - notFound: /*#__PURE__*/ v.literal(true), 52 52 }); 53 53 const _viewRecordSchema = /*#__PURE__*/ v.object({ 54 54 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.record#viewRecord')), 55 - uri: /*#__PURE__*/ v.resourceUriString(), 56 - cid: /*#__PURE__*/ v.cidString(), 57 55 get author() { 58 56 return AppBskyActorDefs.profileViewBasicSchema; 59 57 }, 60 - value: /*#__PURE__*/ v.unknown(), 61 - get labels() { 62 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 63 - }, 64 - replyCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 65 - repostCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 66 - likeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 67 - quoteCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 58 + cid: /*#__PURE__*/ v.cidString(), 68 59 get embeds() { 69 60 return /*#__PURE__*/ v.optional( 70 61 /*#__PURE__*/ v.array( 71 62 /*#__PURE__*/ v.variant([ 63 + viewSchema, 64 + AppBskyEmbedExternal.viewSchema, 72 65 AppBskyEmbedImages.viewSchema, 73 - AppBskyEmbedVideo.viewSchema, 74 - AppBskyEmbedExternal.viewSchema, 75 - viewSchema, 76 66 AppBskyEmbedRecordWithMedia.viewSchema, 67 + AppBskyEmbedVideo.viewSchema, 77 68 ]), 78 69 ), 79 70 ); 80 71 }, 81 72 indexedAt: /*#__PURE__*/ v.datetimeString(), 73 + get labels() { 74 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 75 + }, 76 + likeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 77 + quoteCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 78 + replyCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 79 + repostCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 80 + uri: /*#__PURE__*/ v.resourceUriString(), 81 + value: /*#__PURE__*/ v.unknown(), 82 82 }); 83 83 84 84 type main$schematype = typeof _mainSchema;
+8 -8
packages/definitions/bluesky/lib/lexicons/types/app/bsky/embed/recordWithMedia.ts
··· 7 7 8 8 const _mainSchema = /*#__PURE__*/ v.object({ 9 9 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.recordWithMedia')), 10 - get record() { 11 - return AppBskyEmbedRecord.mainSchema; 12 - }, 13 10 get media() { 14 11 return /*#__PURE__*/ v.variant([ 12 + AppBskyEmbedExternal.mainSchema, 15 13 AppBskyEmbedImages.mainSchema, 16 14 AppBskyEmbedVideo.mainSchema, 17 - AppBskyEmbedExternal.mainSchema, 18 15 ]); 16 + }, 17 + get record() { 18 + return AppBskyEmbedRecord.mainSchema; 19 19 }, 20 20 }); 21 21 const _viewSchema = /*#__PURE__*/ v.object({ 22 22 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.recordWithMedia#view')), 23 - get record() { 24 - return AppBskyEmbedRecord.viewSchema; 25 - }, 26 23 get media() { 27 24 return /*#__PURE__*/ v.variant([ 25 + AppBskyEmbedExternal.viewSchema, 28 26 AppBskyEmbedImages.viewSchema, 29 27 AppBskyEmbedVideo.viewSchema, 30 - AppBskyEmbedExternal.viewSchema, 31 28 ]); 29 + }, 30 + get record() { 31 + return AppBskyEmbedRecord.viewSchema; 32 32 }, 33 33 }); 34 34
+10 -10
packages/definitions/bluesky/lib/lexicons/types/app/bsky/embed/video.ts
··· 4 4 5 5 const _captionSchema = /*#__PURE__*/ v.object({ 6 6 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.video#caption')), 7 - lang: /*#__PURE__*/ v.languageCodeString(), 8 7 file: /*#__PURE__*/ v.blob(), 8 + lang: /*#__PURE__*/ v.languageCodeString(), 9 9 }); 10 10 const _mainSchema = /*#__PURE__*/ v.object({ 11 11 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.video')), 12 - video: /*#__PURE__*/ v.blob(), 13 - get captions() { 14 - return /*#__PURE__*/ v.optional( 15 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(captionSchema), [/*#__PURE__*/ v.arrayLength(0, 20)]), 16 - ); 17 - }, 18 12 alt: /*#__PURE__*/ v.optional( 19 13 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 20 14 /*#__PURE__*/ v.stringLength(0, 10000), ··· 24 18 get aspectRatio() { 25 19 return /*#__PURE__*/ v.optional(AppBskyEmbedDefs.aspectRatioSchema); 26 20 }, 21 + get captions() { 22 + return /*#__PURE__*/ v.optional( 23 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(captionSchema), [/*#__PURE__*/ v.arrayLength(0, 20)]), 24 + ); 25 + }, 26 + video: /*#__PURE__*/ v.blob(), 27 27 }); 28 28 const _viewSchema = /*#__PURE__*/ v.object({ 29 29 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.video#view')), 30 - cid: /*#__PURE__*/ v.cidString(), 31 - playlist: /*#__PURE__*/ v.genericUriString(), 32 - thumbnail: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 33 30 alt: /*#__PURE__*/ v.optional( 34 31 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 35 32 /*#__PURE__*/ v.stringLength(0, 10000), ··· 39 36 get aspectRatio() { 40 37 return /*#__PURE__*/ v.optional(AppBskyEmbedDefs.aspectRatioSchema); 41 38 }, 39 + cid: /*#__PURE__*/ v.cidString(), 40 + playlist: /*#__PURE__*/ v.genericUriString(), 41 + thumbnail: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 42 42 }); 43 43 44 44 type caption$schematype = typeof _captionSchema;
+61 -61
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/defs.ts
··· 19 19 }); 20 20 const _blockedPostSchema = /*#__PURE__*/ v.object({ 21 21 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.defs#blockedPost')), 22 - uri: /*#__PURE__*/ v.resourceUriString(), 23 - blocked: /*#__PURE__*/ v.literal(true), 24 22 get author() { 25 23 return blockedAuthorSchema; 26 24 }, 25 + blocked: /*#__PURE__*/ v.literal(true), 26 + uri: /*#__PURE__*/ v.resourceUriString(), 27 27 }); 28 28 const _clickthroughAuthorSchema = /*#__PURE__*/ v.literal('app.bsky.feed.defs#clickthroughAuthor'); 29 29 const _clickthroughEmbedSchema = /*#__PURE__*/ v.literal('app.bsky.feed.defs#clickthroughEmbed'); ··· 33 33 const _contentModeVideoSchema = /*#__PURE__*/ v.literal('app.bsky.feed.defs#contentModeVideo'); 34 34 const _feedViewPostSchema = /*#__PURE__*/ v.object({ 35 35 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.defs#feedViewPost')), 36 + feedContext: /*#__PURE__*/ v.optional( 37 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 2000)]), 38 + ), 36 39 get post() { 37 40 return postViewSchema; 38 41 }, 42 + get reason() { 43 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([reasonPinSchema, reasonRepostSchema])); 44 + }, 39 45 get reply() { 40 46 return /*#__PURE__*/ v.optional(replyRefSchema); 41 47 }, 42 - get reason() { 43 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([reasonRepostSchema, reasonPinSchema])); 44 - }, 45 - feedContext: /*#__PURE__*/ v.optional( 46 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 2000)]), 47 - ), 48 48 }); 49 49 const _generatorViewSchema = /*#__PURE__*/ v.object({ 50 50 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.defs#generatorView')), 51 - uri: /*#__PURE__*/ v.resourceUriString(), 51 + acceptsInteractions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 52 + avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 52 53 cid: /*#__PURE__*/ v.cidString(), 53 - did: /*#__PURE__*/ v.didString(), 54 + contentMode: /*#__PURE__*/ v.optional( 55 + /*#__PURE__*/ v.string< 56 + 'app.bsky.feed.defs#contentModeUnspecified' | 'app.bsky.feed.defs#contentModeVideo' | (string & {}) 57 + >(), 58 + ), 54 59 get creator() { 55 60 return AppBskyActorDefs.profileViewSchema; 56 61 }, 57 - displayName: /*#__PURE__*/ v.string(), 58 62 description: /*#__PURE__*/ v.optional( 59 63 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 60 64 /*#__PURE__*/ v.stringLength(0, 3000), ··· 64 68 get descriptionFacets() { 65 69 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(AppBskyRichtextFacet.mainSchema)); 66 70 }, 67 - avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 68 - likeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 69 - acceptsInteractions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 71 + did: /*#__PURE__*/ v.didString(), 72 + displayName: /*#__PURE__*/ v.string(), 73 + indexedAt: /*#__PURE__*/ v.datetimeString(), 70 74 get labels() { 71 75 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 72 76 }, 77 + likeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 78 + uri: /*#__PURE__*/ v.resourceUriString(), 73 79 get viewer() { 74 80 return /*#__PURE__*/ v.optional(generatorViewerStateSchema); 75 81 }, 76 - contentMode: /*#__PURE__*/ v.optional( 77 - /*#__PURE__*/ v.string< 78 - 'app.bsky.feed.defs#contentModeUnspecified' | 'app.bsky.feed.defs#contentModeVideo' | (string & {}) 79 - >(), 80 - ), 81 - indexedAt: /*#__PURE__*/ v.datetimeString(), 82 82 }); 83 83 const _generatorViewerStateSchema = /*#__PURE__*/ v.object({ 84 84 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.defs#generatorViewerState')), ··· 86 86 }); 87 87 const _interactionSchema = /*#__PURE__*/ v.object({ 88 88 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.defs#interaction')), 89 - item: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 90 89 event: /*#__PURE__*/ v.optional( 91 90 /*#__PURE__*/ v.string< 92 - | 'app.bsky.feed.defs#requestLess' 93 - | 'app.bsky.feed.defs#requestMore' 94 - | 'app.bsky.feed.defs#clickthroughItem' 95 91 | 'app.bsky.feed.defs#clickthroughAuthor' 96 - | 'app.bsky.feed.defs#clickthroughReposter' 97 92 | 'app.bsky.feed.defs#clickthroughEmbed' 98 - | 'app.bsky.feed.defs#interactionSeen' 93 + | 'app.bsky.feed.defs#clickthroughItem' 94 + | 'app.bsky.feed.defs#clickthroughReposter' 99 95 | 'app.bsky.feed.defs#interactionLike' 100 - | 'app.bsky.feed.defs#interactionRepost' 101 - | 'app.bsky.feed.defs#interactionReply' 102 96 | 'app.bsky.feed.defs#interactionQuote' 97 + | 'app.bsky.feed.defs#interactionReply' 98 + | 'app.bsky.feed.defs#interactionRepost' 99 + | 'app.bsky.feed.defs#interactionSeen' 103 100 | 'app.bsky.feed.defs#interactionShare' 101 + | 'app.bsky.feed.defs#requestLess' 102 + | 'app.bsky.feed.defs#requestMore' 104 103 | (string & {}) 105 104 >(), 106 105 ), 107 106 feedContext: /*#__PURE__*/ v.optional( 108 107 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 2000)]), 109 108 ), 109 + item: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 110 110 }); 111 111 const _interactionLikeSchema = /*#__PURE__*/ v.literal('app.bsky.feed.defs#interactionLike'); 112 112 const _interactionQuoteSchema = /*#__PURE__*/ v.literal('app.bsky.feed.defs#interactionQuote'); ··· 116 116 const _interactionShareSchema = /*#__PURE__*/ v.literal('app.bsky.feed.defs#interactionShare'); 117 117 const _notFoundPostSchema = /*#__PURE__*/ v.object({ 118 118 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.defs#notFoundPost')), 119 - uri: /*#__PURE__*/ v.resourceUriString(), 120 119 notFound: /*#__PURE__*/ v.literal(true), 120 + uri: /*#__PURE__*/ v.resourceUriString(), 121 121 }); 122 122 const _postViewSchema = /*#__PURE__*/ v.object({ 123 123 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.defs#postView')), 124 - uri: /*#__PURE__*/ v.resourceUriString(), 125 - cid: /*#__PURE__*/ v.cidString(), 126 124 get author() { 127 125 return AppBskyActorDefs.profileViewBasicSchema; 128 126 }, 129 - record: /*#__PURE__*/ v.unknown(), 127 + cid: /*#__PURE__*/ v.cidString(), 130 128 get embed() { 131 129 return /*#__PURE__*/ v.optional( 132 130 /*#__PURE__*/ v.variant([ 131 + AppBskyEmbedExternal.viewSchema, 133 132 AppBskyEmbedImages.viewSchema, 134 - AppBskyEmbedVideo.viewSchema, 135 - AppBskyEmbedExternal.viewSchema, 136 133 AppBskyEmbedRecord.viewSchema, 137 134 AppBskyEmbedRecordWithMedia.viewSchema, 135 + AppBskyEmbedVideo.viewSchema, 138 136 ]), 139 137 ); 140 138 }, 141 - replyCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 142 - repostCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 143 - likeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 144 - quoteCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 145 139 indexedAt: /*#__PURE__*/ v.datetimeString(), 146 - get viewer() { 147 - return /*#__PURE__*/ v.optional(viewerStateSchema); 148 - }, 149 140 get labels() { 150 141 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 151 142 }, 143 + likeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 144 + quoteCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 145 + record: /*#__PURE__*/ v.unknown(), 146 + replyCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 147 + repostCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 152 148 get threadgate() { 153 149 return /*#__PURE__*/ v.optional(threadgateViewSchema); 150 + }, 151 + uri: /*#__PURE__*/ v.resourceUriString(), 152 + get viewer() { 153 + return /*#__PURE__*/ v.optional(viewerStateSchema); 154 154 }, 155 155 }); 156 156 const _reasonPinSchema = /*#__PURE__*/ v.object({ ··· 165 165 }); 166 166 const _replyRefSchema = /*#__PURE__*/ v.object({ 167 167 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.defs#replyRef')), 168 - get root() { 169 - return /*#__PURE__*/ v.variant([postViewSchema, notFoundPostSchema, blockedPostSchema]); 168 + get grandparentAuthor() { 169 + return /*#__PURE__*/ v.optional(AppBskyActorDefs.profileViewBasicSchema); 170 170 }, 171 171 get parent() { 172 - return /*#__PURE__*/ v.variant([postViewSchema, notFoundPostSchema, blockedPostSchema]); 172 + return /*#__PURE__*/ v.variant([blockedPostSchema, notFoundPostSchema, postViewSchema]); 173 173 }, 174 - get grandparentAuthor() { 175 - return /*#__PURE__*/ v.optional(AppBskyActorDefs.profileViewBasicSchema); 174 + get root() { 175 + return /*#__PURE__*/ v.variant([blockedPostSchema, notFoundPostSchema, postViewSchema]); 176 176 }, 177 177 }); 178 178 const _requestLessSchema = /*#__PURE__*/ v.literal('app.bsky.feed.defs#requestLess'); 179 179 const _requestMoreSchema = /*#__PURE__*/ v.literal('app.bsky.feed.defs#requestMore'); 180 180 const _skeletonFeedPostSchema = /*#__PURE__*/ v.object({ 181 181 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.defs#skeletonFeedPost')), 182 + feedContext: /*#__PURE__*/ v.optional( 183 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 2000)]), 184 + ), 182 185 post: /*#__PURE__*/ v.resourceUriString(), 183 186 get reason() { 184 187 return /*#__PURE__*/ v.optional( 185 - /*#__PURE__*/ v.variant([skeletonReasonRepostSchema, skeletonReasonPinSchema]), 188 + /*#__PURE__*/ v.variant([skeletonReasonPinSchema, skeletonReasonRepostSchema]), 186 189 ); 187 190 }, 188 - feedContext: /*#__PURE__*/ v.optional( 189 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 2000)]), 190 - ), 191 191 }); 192 192 const _skeletonReasonPinSchema = /*#__PURE__*/ v.object({ 193 193 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.defs#skeletonReasonPin')), ··· 202 202 }); 203 203 const _threadViewPostSchema = /*#__PURE__*/ v.object({ 204 204 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.defs#threadViewPost')), 205 - get post() { 206 - return postViewSchema; 207 - }, 208 205 get parent() { 209 206 return /*#__PURE__*/ v.optional( 210 - /*#__PURE__*/ v.variant([threadViewPostSchema, notFoundPostSchema, blockedPostSchema]), 207 + /*#__PURE__*/ v.variant([blockedPostSchema, notFoundPostSchema, threadViewPostSchema]), 211 208 ); 212 209 }, 210 + get post() { 211 + return postViewSchema; 212 + }, 213 213 get replies() { 214 214 return /*#__PURE__*/ v.optional( 215 215 /*#__PURE__*/ v.array( 216 - /*#__PURE__*/ v.variant([threadViewPostSchema, notFoundPostSchema, blockedPostSchema]), 216 + /*#__PURE__*/ v.variant([blockedPostSchema, notFoundPostSchema, threadViewPostSchema]), 217 217 ), 218 218 ); 219 219 }, ··· 223 223 }); 224 224 const _threadgateViewSchema = /*#__PURE__*/ v.object({ 225 225 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.defs#threadgateView')), 226 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 227 226 cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 228 - record: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 229 227 get lists() { 230 228 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(AppBskyGraphDefs.listViewBasicSchema)); 231 229 }, 230 + record: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 231 + uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 232 232 }); 233 233 const _viewerStateSchema = /*#__PURE__*/ v.object({ 234 234 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.defs#viewerState')), 235 - repost: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 235 + embeddingDisabled: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 236 236 like: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 237 + pinned: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 238 + replyDisabled: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 239 + repost: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 237 240 threadMuted: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 238 - replyDisabled: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 239 - embeddingDisabled: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 240 - pinned: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 241 241 }); 242 242 243 243 type blockedAuthor$schematype = typeof _blockedAuthorSchema;
+13 -13
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/generator.ts
··· 8 8 /*#__PURE__*/ v.string(), 9 9 /*#__PURE__*/ v.object({ 10 10 $type: /*#__PURE__*/ v.literal('app.bsky.feed.generator'), 11 - did: /*#__PURE__*/ v.didString(), 12 - displayName: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 13 - /*#__PURE__*/ v.stringLength(0, 240), 14 - /*#__PURE__*/ v.stringGraphemes(0, 24), 15 - ]), 11 + acceptsInteractions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 12 + avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()), 13 + contentMode: /*#__PURE__*/ v.optional( 14 + /*#__PURE__*/ v.string< 15 + 'app.bsky.feed.defs#contentModeUnspecified' | 'app.bsky.feed.defs#contentModeVideo' | (string & {}) 16 + >(), 17 + ), 18 + createdAt: /*#__PURE__*/ v.datetimeString(), 16 19 description: /*#__PURE__*/ v.optional( 17 20 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 18 21 /*#__PURE__*/ v.stringLength(0, 3000), ··· 22 25 get descriptionFacets() { 23 26 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(AppBskyRichtextFacet.mainSchema)); 24 27 }, 25 - avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()), 26 - acceptsInteractions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 28 + did: /*#__PURE__*/ v.didString(), 29 + displayName: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 30 + /*#__PURE__*/ v.stringLength(0, 240), 31 + /*#__PURE__*/ v.stringGraphemes(0, 24), 32 + ]), 27 33 get labels() { 28 34 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema])); 29 35 }, 30 - contentMode: /*#__PURE__*/ v.optional( 31 - /*#__PURE__*/ v.string< 32 - 'app.bsky.feed.defs#contentModeUnspecified' | 'app.bsky.feed.defs#contentModeVideo' | (string & {}) 33 - >(), 34 - ), 35 - createdAt: /*#__PURE__*/ v.datetimeString(), 36 36 }), 37 37 ); 38 38
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/getActorFeeds.ts
··· 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.feed.getActorFeeds', { 7 7 params: /*#__PURE__*/ v.object({ 8 8 actor: /*#__PURE__*/ v.actorIdentifierString(), 9 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 10 limit: /*#__PURE__*/ v.optional( 10 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 12 50, 12 13 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 }), 15 15 output: { 16 16 type: 'lex',
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/getActorLikes.ts
··· 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.feed.getActorLikes', { 7 7 params: /*#__PURE__*/ v.object({ 8 8 actor: /*#__PURE__*/ v.actorIdentifierString(), 9 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 10 limit: /*#__PURE__*/ v.optional( 10 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 12 50, 12 13 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 }), 15 15 output: { 16 16 type: 'lex',
+6 -6
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/getAuthorFeed.ts
··· 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.feed.getAuthorFeed', { 7 7 params: /*#__PURE__*/ v.object({ 8 8 actor: /*#__PURE__*/ v.actorIdentifierString(), 9 - limit: /*#__PURE__*/ v.optional( 10 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 - 50, 12 - ), 13 9 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 10 filter: /*#__PURE__*/ v.optional( 15 11 /*#__PURE__*/ v.string< 16 - | 'posts_with_replies' 12 + | 'posts_and_author_threads' 17 13 | 'posts_no_replies' 18 14 | 'posts_with_media' 19 - | 'posts_and_author_threads' 15 + | 'posts_with_replies' 20 16 | 'posts_with_video' 21 17 | (string & {}) 22 18 >(), 23 19 'posts_with_replies', 24 20 ), 25 21 includePins: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 22 + limit: /*#__PURE__*/ v.optional( 23 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 24 + 50, 25 + ), 26 26 }), 27 27 output: { 28 28 type: 'lex',
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/getFeed.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.feed.getFeed', { 7 7 params: /*#__PURE__*/ v.object({ 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 9 feed: /*#__PURE__*/ v.resourceUriString(), 9 10 limit: /*#__PURE__*/ v.optional( 10 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 12 50, 12 13 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 }), 15 15 output: { 16 16 type: 'lex',
+2 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/getFeedGenerator.ts
··· 10 10 output: { 11 11 type: 'lex', 12 12 schema: /*#__PURE__*/ v.object({ 13 + isOnline: /*#__PURE__*/ v.boolean(), 14 + isValid: /*#__PURE__*/ v.boolean(), 13 15 get view() { 14 16 return AppBskyFeedDefs.generatorViewSchema; 15 17 }, 16 - isOnline: /*#__PURE__*/ v.boolean(), 17 - isValid: /*#__PURE__*/ v.boolean(), 18 18 }), 19 19 }, 20 20 });
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/getFeedSkeleton.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.feed.getFeedSkeleton', { 7 7 params: /*#__PURE__*/ v.object({ 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 9 feed: /*#__PURE__*/ v.resourceUriString(), 9 10 limit: /*#__PURE__*/ v.optional( 10 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 12 50, 12 13 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 }), 15 15 output: { 16 16 type: 'lex',
+5 -5
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/getLikes.ts
··· 5 5 6 6 const _likeSchema = /*#__PURE__*/ v.object({ 7 7 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.getLikes#like')), 8 - indexedAt: /*#__PURE__*/ v.datetimeString(), 9 - createdAt: /*#__PURE__*/ v.datetimeString(), 10 8 get actor() { 11 9 return AppBskyActorDefs.profileViewSchema; 12 10 }, 11 + createdAt: /*#__PURE__*/ v.datetimeString(), 12 + indexedAt: /*#__PURE__*/ v.datetimeString(), 13 13 }); 14 14 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.feed.getLikes', { 15 15 params: /*#__PURE__*/ v.object({ 16 - uri: /*#__PURE__*/ v.resourceUriString(), 17 16 cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 17 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 18 18 limit: /*#__PURE__*/ v.optional( 19 19 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 20 20 50, 21 21 ), 22 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 22 + uri: /*#__PURE__*/ v.resourceUriString(), 23 23 }), 24 24 output: { 25 25 type: 'lex', 26 26 schema: /*#__PURE__*/ v.object({ 27 - uri: /*#__PURE__*/ v.resourceUriString(), 28 27 cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 29 28 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 30 29 get likes() { 31 30 return /*#__PURE__*/ v.array(likeSchema); 32 31 }, 32 + uri: /*#__PURE__*/ v.resourceUriString(), 33 33 }), 34 34 }, 35 35 });
+2 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/getListFeed.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.feed.getListFeed', { 7 7 params: /*#__PURE__*/ v.object({ 8 - list: /*#__PURE__*/ v.resourceUriString(), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 9 limit: /*#__PURE__*/ v.optional( 10 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 11 50, 12 12 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + list: /*#__PURE__*/ v.resourceUriString(), 14 14 }), 15 15 output: { 16 16 type: 'lex',
+3 -3
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/getPostThread.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.feed.getPostThread', { 7 7 params: /*#__PURE__*/ v.object({ 8 - uri: /*#__PURE__*/ v.resourceUriString(), 9 8 depth: /*#__PURE__*/ v.optional( 10 9 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(0, 1000)]), 11 10 6, ··· 14 13 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(0, 1000)]), 15 14 80, 16 15 ), 16 + uri: /*#__PURE__*/ v.resourceUriString(), 17 17 }), 18 18 output: { 19 19 type: 'lex', 20 20 schema: /*#__PURE__*/ v.object({ 21 21 get thread() { 22 22 return /*#__PURE__*/ v.variant([ 23 - AppBskyFeedDefs.threadViewPostSchema, 23 + AppBskyFeedDefs.blockedPostSchema, 24 24 AppBskyFeedDefs.notFoundPostSchema, 25 - AppBskyFeedDefs.blockedPostSchema, 25 + AppBskyFeedDefs.threadViewPostSchema, 26 26 ]); 27 27 }, 28 28 get threadgate() {
+3 -3
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/getQuotes.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.feed.getQuotes', { 7 7 params: /*#__PURE__*/ v.object({ 8 - uri: /*#__PURE__*/ v.resourceUriString(), 9 8 cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 9 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 10 limit: /*#__PURE__*/ v.optional( 11 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 12 12 50, 13 13 ), 14 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 + uri: /*#__PURE__*/ v.resourceUriString(), 15 15 }), 16 16 output: { 17 17 type: 'lex', 18 18 schema: /*#__PURE__*/ v.object({ 19 - uri: /*#__PURE__*/ v.resourceUriString(), 20 19 cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 21 20 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 22 21 get posts() { 23 22 return /*#__PURE__*/ v.array(AppBskyFeedDefs.postViewSchema); 24 23 }, 24 + uri: /*#__PURE__*/ v.resourceUriString(), 25 25 }), 26 26 }, 27 27 });
+3 -3
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/getRepostedBy.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.feed.getRepostedBy', { 7 7 params: /*#__PURE__*/ v.object({ 8 - uri: /*#__PURE__*/ v.resourceUriString(), 9 8 cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 9 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 10 limit: /*#__PURE__*/ v.optional( 11 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 12 12 50, 13 13 ), 14 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 + uri: /*#__PURE__*/ v.resourceUriString(), 15 15 }), 16 16 output: { 17 17 type: 'lex', 18 18 schema: /*#__PURE__*/ v.object({ 19 - uri: /*#__PURE__*/ v.resourceUriString(), 20 19 cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 21 20 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 22 21 get repostedBy() { 23 22 return /*#__PURE__*/ v.array(AppBskyActorDefs.profileViewSchema); 24 23 }, 24 + uri: /*#__PURE__*/ v.resourceUriString(), 25 25 }), 26 26 }, 27 27 });
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/getSuggestedFeeds.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.feed.getSuggestedFeeds', { 7 7 params: /*#__PURE__*/ v.object({ 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 9 limit: /*#__PURE__*/ v.optional( 9 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 10 11 50, 11 12 ), 12 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 13 }), 14 14 output: { 15 15 type: 'lex',
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/getTimeline.ts
··· 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.feed.getTimeline', { 7 7 params: /*#__PURE__*/ v.object({ 8 8 algorithm: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 10 limit: /*#__PURE__*/ v.optional( 10 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 12 50, 12 13 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 }), 15 15 output: { 16 16 type: 'lex',
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/like.ts
··· 7 7 /*#__PURE__*/ v.tidString(), 8 8 /*#__PURE__*/ v.object({ 9 9 $type: /*#__PURE__*/ v.literal('app.bsky.feed.like'), 10 + createdAt: /*#__PURE__*/ v.datetimeString(), 10 11 get subject() { 11 12 return ComAtprotoRepoStrongRef.mainSchema; 12 13 }, 13 - createdAt: /*#__PURE__*/ v.datetimeString(), 14 14 }), 15 15 ); 16 16
+21 -21
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/post.ts
··· 22 22 /*#__PURE__*/ v.tidString(), 23 23 /*#__PURE__*/ v.object({ 24 24 $type: /*#__PURE__*/ v.literal('app.bsky.feed.post'), 25 - text: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 26 - /*#__PURE__*/ v.stringLength(0, 3000), 27 - /*#__PURE__*/ v.stringGraphemes(0, 300), 28 - ]), 29 - get entities() { 30 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(entitySchema)); 31 - }, 32 - get facets() { 33 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(AppBskyRichtextFacet.mainSchema)); 34 - }, 35 - get reply() { 36 - return /*#__PURE__*/ v.optional(replyRefSchema); 37 - }, 25 + createdAt: /*#__PURE__*/ v.datetimeString(), 38 26 get embed() { 39 27 return /*#__PURE__*/ v.optional( 40 28 /*#__PURE__*/ v.variant([ 41 - AppBskyEmbedImages.mainSchema, 42 - AppBskyEmbedVideo.mainSchema, 43 29 AppBskyEmbedExternal.mainSchema, 30 + AppBskyEmbedImages.mainSchema, 44 31 AppBskyEmbedRecord.mainSchema, 45 32 AppBskyEmbedRecordWithMedia.mainSchema, 33 + AppBskyEmbedVideo.mainSchema, 46 34 ]), 47 35 ); 48 36 }, 37 + get entities() { 38 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(entitySchema)); 39 + }, 40 + get facets() { 41 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(AppBskyRichtextFacet.mainSchema)); 42 + }, 43 + get labels() { 44 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema])); 45 + }, 49 46 langs: /*#__PURE__*/ v.optional( 50 47 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.languageCodeString()), [ 51 48 /*#__PURE__*/ v.arrayLength(0, 3), 52 49 ]), 53 50 ), 54 - get labels() { 55 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema])); 51 + get reply() { 52 + return /*#__PURE__*/ v.optional(replyRefSchema); 56 53 }, 57 54 tags: /*#__PURE__*/ v.optional( 58 55 /*#__PURE__*/ v.constrain( ··· 65 62 [/*#__PURE__*/ v.arrayLength(0, 8)], 66 63 ), 67 64 ), 68 - createdAt: /*#__PURE__*/ v.datetimeString(), 65 + text: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 66 + /*#__PURE__*/ v.stringLength(0, 3000), 67 + /*#__PURE__*/ v.stringGraphemes(0, 300), 68 + ]), 69 69 }), 70 70 ); 71 71 const _replyRefSchema = /*#__PURE__*/ v.object({ 72 72 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.post#replyRef')), 73 - get root() { 73 + get parent() { 74 74 return ComAtprotoRepoStrongRef.mainSchema; 75 75 }, 76 - get parent() { 76 + get root() { 77 77 return ComAtprotoRepoStrongRef.mainSchema; 78 78 }, 79 79 }); 80 80 const _textSliceSchema = /*#__PURE__*/ v.object({ 81 81 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.feed.post#textSlice')), 82 - start: /*#__PURE__*/ v.integer(), 83 82 end: /*#__PURE__*/ v.integer(), 83 + start: /*#__PURE__*/ v.integer(), 84 84 }); 85 85 86 86 type entity$schematype = typeof _entitySchema;
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/postgate.ts
··· 10 10 /*#__PURE__*/ v.object({ 11 11 $type: /*#__PURE__*/ v.literal('app.bsky.feed.postgate'), 12 12 createdAt: /*#__PURE__*/ v.datetimeString(), 13 - post: /*#__PURE__*/ v.resourceUriString(), 14 13 detachedEmbeddingUris: /*#__PURE__*/ v.optional( 15 14 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [ 16 15 /*#__PURE__*/ v.arrayLength(0, 50), ··· 23 22 ]), 24 23 ); 25 24 }, 25 + post: /*#__PURE__*/ v.resourceUriString(), 26 26 }), 27 27 ); 28 28
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/repost.ts
··· 7 7 /*#__PURE__*/ v.tidString(), 8 8 /*#__PURE__*/ v.object({ 9 9 $type: /*#__PURE__*/ v.literal('app.bsky.feed.repost'), 10 + createdAt: /*#__PURE__*/ v.datetimeString(), 10 11 get subject() { 11 12 return ComAtprotoRepoStrongRef.mainSchema; 12 13 }, 13 - createdAt: /*#__PURE__*/ v.datetimeString(), 14 14 }), 15 15 ); 16 16
+12 -12
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/searchPosts.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.feed.searchPosts', { 7 7 params: /*#__PURE__*/ v.object({ 8 - q: /*#__PURE__*/ v.string(), 9 - sort: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'top' | 'latest' | (string & {})>(), 'latest'), 10 - since: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 - until: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 12 - mentions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()), 13 8 author: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()), 14 - lang: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.languageCodeString()), 9 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 10 domain: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 16 - url: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 11 + lang: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.languageCodeString()), 12 + limit: /*#__PURE__*/ v.optional( 13 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 14 + 25, 15 + ), 16 + mentions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()), 17 + q: /*#__PURE__*/ v.string(), 18 + since: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 19 + sort: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'latest' | 'top' | (string & {})>(), 'latest'), 17 20 tag: /*#__PURE__*/ v.optional( 18 21 /*#__PURE__*/ v.array( 19 22 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ ··· 22 25 ]), 23 26 ), 24 27 ), 25 - limit: /*#__PURE__*/ v.optional( 26 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 27 - 25, 28 - ), 29 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 28 + until: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 29 + url: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 30 30 }), 31 31 output: { 32 32 type: 'lex',
+2 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/threadgate.ts
··· 16 16 /*#__PURE__*/ v.tidString(), 17 17 /*#__PURE__*/ v.object({ 18 18 $type: /*#__PURE__*/ v.literal('app.bsky.feed.threadgate'), 19 - post: /*#__PURE__*/ v.resourceUriString(), 20 19 get allow() { 21 20 return /*#__PURE__*/ v.optional( 22 21 /*#__PURE__*/ v.constrain( 23 22 /*#__PURE__*/ v.array( 24 23 /*#__PURE__*/ v.variant([ 25 - mentionRuleSchema, 26 24 followerRuleSchema, 27 25 followingRuleSchema, 28 26 listRuleSchema, 27 + mentionRuleSchema, 29 28 ]), 30 29 ), 31 30 [/*#__PURE__*/ v.arrayLength(0, 5)], ··· 38 37 /*#__PURE__*/ v.arrayLength(0, 50), 39 38 ]), 40 39 ), 40 + post: /*#__PURE__*/ v.resourceUriString(), 41 41 }), 42 42 ); 43 43 const _mentionRuleSchema = /*#__PURE__*/ v.object({
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/block.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('app.bsky.graph.block'), 9 - subject: /*#__PURE__*/ v.didString(), 10 9 createdAt: /*#__PURE__*/ v.datetimeString(), 10 + subject: /*#__PURE__*/ v.didString(), 11 11 }), 12 12 ); 13 13
+38 -38
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/defs.ts
··· 8 8 const _curatelistSchema = /*#__PURE__*/ v.literal('app.bsky.graph.defs#curatelist'); 9 9 const _listItemViewSchema = /*#__PURE__*/ v.object({ 10 10 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.graph.defs#listItemView')), 11 - uri: /*#__PURE__*/ v.resourceUriString(), 12 11 get subject() { 13 12 return AppBskyActorDefs.profileViewSchema; 14 13 }, 14 + uri: /*#__PURE__*/ v.resourceUriString(), 15 15 }); 16 16 const _listPurposeSchema = /*#__PURE__*/ v.string< 17 + | 'app.bsky.graph.defs#curatelist' 17 18 | 'app.bsky.graph.defs#modlist' 18 - | 'app.bsky.graph.defs#curatelist' 19 19 | 'app.bsky.graph.defs#referencelist' 20 20 | (string & {}) 21 21 >(); 22 22 const _listViewSchema = /*#__PURE__*/ v.object({ 23 23 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.graph.defs#listView')), 24 - uri: /*#__PURE__*/ v.resourceUriString(), 24 + avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 25 25 cid: /*#__PURE__*/ v.cidString(), 26 26 get creator() { 27 27 return AppBskyActorDefs.profileViewSchema; 28 - }, 29 - name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]), 30 - get purpose() { 31 - return listPurposeSchema; 32 28 }, 33 29 description: /*#__PURE__*/ v.optional( 34 30 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ ··· 39 35 get descriptionFacets() { 40 36 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(AppBskyRichtextFacet.mainSchema)); 41 37 }, 42 - avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 43 - listItemCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 38 + indexedAt: /*#__PURE__*/ v.datetimeString(), 44 39 get labels() { 45 40 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 46 41 }, 42 + listItemCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 43 + name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]), 44 + get purpose() { 45 + return listPurposeSchema; 46 + }, 47 + uri: /*#__PURE__*/ v.resourceUriString(), 47 48 get viewer() { 48 49 return /*#__PURE__*/ v.optional(listViewerStateSchema); 49 50 }, 50 - indexedAt: /*#__PURE__*/ v.datetimeString(), 51 51 }); 52 52 const _listViewBasicSchema = /*#__PURE__*/ v.object({ 53 53 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.graph.defs#listViewBasic')), 54 - uri: /*#__PURE__*/ v.resourceUriString(), 54 + avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 55 55 cid: /*#__PURE__*/ v.cidString(), 56 + indexedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 57 + get labels() { 58 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 59 + }, 60 + listItemCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 56 61 name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]), 57 62 get purpose() { 58 63 return listPurposeSchema; 59 64 }, 60 - avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 61 - listItemCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 62 - get labels() { 63 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 64 - }, 65 + uri: /*#__PURE__*/ v.resourceUriString(), 65 66 get viewer() { 66 67 return /*#__PURE__*/ v.optional(listViewerStateSchema); 67 68 }, 68 - indexedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 69 69 }); 70 70 const _listViewerStateSchema = /*#__PURE__*/ v.object({ 71 71 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.graph.defs#listViewerState')), 72 - muted: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 73 72 blocked: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 73 + muted: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 74 74 }); 75 75 const _modlistSchema = /*#__PURE__*/ v.literal('app.bsky.graph.defs#modlist'); 76 76 const _notFoundActorSchema = /*#__PURE__*/ v.object({ ··· 82 82 const _relationshipSchema = /*#__PURE__*/ v.object({ 83 83 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.graph.defs#relationship')), 84 84 did: /*#__PURE__*/ v.didString(), 85 - following: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 86 85 followedBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 86 + following: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 87 87 }); 88 88 const _starterPackViewSchema = /*#__PURE__*/ v.object({ 89 89 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.graph.defs#starterPackView')), 90 - uri: /*#__PURE__*/ v.resourceUriString(), 91 90 cid: /*#__PURE__*/ v.cidString(), 92 - record: /*#__PURE__*/ v.unknown(), 93 91 get creator() { 94 92 return AppBskyActorDefs.profileViewBasicSchema; 95 93 }, 96 - get list() { 97 - return /*#__PURE__*/ v.optional(listViewBasicSchema); 98 - }, 99 - get listItemsSample() { 100 - return /*#__PURE__*/ v.optional( 101 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(listItemViewSchema), [ 102 - /*#__PURE__*/ v.arrayLength(0, 12), 103 - ]), 104 - ); 105 - }, 106 94 get feeds() { 107 95 return /*#__PURE__*/ v.optional( 108 96 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(AppBskyFeedDefs.generatorViewSchema), [ ··· 110 98 ]), 111 99 ); 112 100 }, 101 + indexedAt: /*#__PURE__*/ v.datetimeString(), 102 + joinedAllTimeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 113 103 joinedWeekCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 114 - joinedAllTimeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 115 104 get labels() { 116 105 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 117 106 }, 118 - indexedAt: /*#__PURE__*/ v.datetimeString(), 107 + get list() { 108 + return /*#__PURE__*/ v.optional(listViewBasicSchema); 109 + }, 110 + get listItemsSample() { 111 + return /*#__PURE__*/ v.optional( 112 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(listItemViewSchema), [ 113 + /*#__PURE__*/ v.arrayLength(0, 12), 114 + ]), 115 + ); 116 + }, 117 + record: /*#__PURE__*/ v.unknown(), 118 + uri: /*#__PURE__*/ v.resourceUriString(), 119 119 }); 120 120 const _starterPackViewBasicSchema = /*#__PURE__*/ v.object({ 121 121 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.graph.defs#starterPackViewBasic')), 122 - uri: /*#__PURE__*/ v.resourceUriString(), 123 122 cid: /*#__PURE__*/ v.cidString(), 124 - record: /*#__PURE__*/ v.unknown(), 125 123 get creator() { 126 124 return AppBskyActorDefs.profileViewBasicSchema; 127 125 }, 128 - listItemCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 126 + indexedAt: /*#__PURE__*/ v.datetimeString(), 127 + joinedAllTimeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 129 128 joinedWeekCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 130 - joinedAllTimeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 131 129 get labels() { 132 130 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 133 131 }, 134 - indexedAt: /*#__PURE__*/ v.datetimeString(), 132 + listItemCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 133 + record: /*#__PURE__*/ v.unknown(), 134 + uri: /*#__PURE__*/ v.resourceUriString(), 135 135 }); 136 136 137 137 type curatelist$schematype = typeof _curatelistSchema;
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/follow.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('app.bsky.graph.follow'), 9 - subject: /*#__PURE__*/ v.didString(), 10 9 createdAt: /*#__PURE__*/ v.datetimeString(), 10 + subject: /*#__PURE__*/ v.didString(), 11 11 }), 12 12 ); 13 13
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/getActorStarterPacks.ts
··· 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.graph.getActorStarterPacks', { 7 7 params: /*#__PURE__*/ v.object({ 8 8 actor: /*#__PURE__*/ v.actorIdentifierString(), 9 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 10 limit: /*#__PURE__*/ v.optional( 10 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 12 50, 12 13 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 }), 15 15 output: { 16 16 type: 'lex',
+2 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/getBlocks.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.graph.getBlocks', { 7 7 params: /*#__PURE__*/ v.object({ 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 9 limit: /*#__PURE__*/ v.optional( 9 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 10 11 50, 11 12 ), 12 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 13 }), 14 14 output: { 15 15 type: 'lex', 16 16 schema: /*#__PURE__*/ v.object({ 17 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 18 17 get blocks() { 19 18 return /*#__PURE__*/ v.array(AppBskyActorDefs.profileViewSchema); 20 19 }, 20 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 21 21 }), 22 22 }, 23 23 });
+4 -4
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/getFollowers.ts
··· 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.graph.getFollowers', { 7 7 params: /*#__PURE__*/ v.object({ 8 8 actor: /*#__PURE__*/ v.actorIdentifierString(), 9 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 10 limit: /*#__PURE__*/ v.optional( 10 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 12 50, 12 13 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 }), 15 15 output: { 16 16 type: 'lex', 17 17 schema: /*#__PURE__*/ v.object({ 18 - get subject() { 19 - return AppBskyActorDefs.profileViewSchema; 20 - }, 21 18 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 22 19 get followers() { 23 20 return /*#__PURE__*/ v.array(AppBskyActorDefs.profileViewSchema); 21 + }, 22 + get subject() { 23 + return AppBskyActorDefs.profileViewSchema; 24 24 }, 25 25 }), 26 26 },
+4 -4
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/getFollows.ts
··· 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.graph.getFollows', { 7 7 params: /*#__PURE__*/ v.object({ 8 8 actor: /*#__PURE__*/ v.actorIdentifierString(), 9 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 10 limit: /*#__PURE__*/ v.optional( 10 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 12 50, 12 13 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 }), 15 15 output: { 16 16 type: 'lex', 17 17 schema: /*#__PURE__*/ v.object({ 18 - get subject() { 19 - return AppBskyActorDefs.profileViewSchema; 20 - }, 21 18 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 22 19 get follows() { 23 20 return /*#__PURE__*/ v.array(AppBskyActorDefs.profileViewSchema); 21 + }, 22 + get subject() { 23 + return AppBskyActorDefs.profileViewSchema; 24 24 }, 25 25 }), 26 26 },
+4 -4
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/getKnownFollowers.ts
··· 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.graph.getKnownFollowers', { 7 7 params: /*#__PURE__*/ v.object({ 8 8 actor: /*#__PURE__*/ v.actorIdentifierString(), 9 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 10 limit: /*#__PURE__*/ v.optional( 10 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 12 50, 12 13 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 }), 15 15 output: { 16 16 type: 'lex', 17 17 schema: /*#__PURE__*/ v.object({ 18 - get subject() { 19 - return AppBskyActorDefs.profileViewSchema; 20 - }, 21 18 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 22 19 get followers() { 23 20 return /*#__PURE__*/ v.array(AppBskyActorDefs.profileViewSchema); 21 + }, 22 + get subject() { 23 + return AppBskyActorDefs.profileViewSchema; 24 24 }, 25 25 }), 26 26 },
+5 -5
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/getList.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.graph.getList', { 7 7 params: /*#__PURE__*/ v.object({ 8 - list: /*#__PURE__*/ v.resourceUriString(), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 9 limit: /*#__PURE__*/ v.optional( 10 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 11 50, 12 12 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + list: /*#__PURE__*/ v.resourceUriString(), 14 14 }), 15 15 output: { 16 16 type: 'lex', 17 17 schema: /*#__PURE__*/ v.object({ 18 18 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 19 - get list() { 20 - return AppBskyGraphDefs.listViewSchema; 21 - }, 22 19 get items() { 23 20 return /*#__PURE__*/ v.array(AppBskyGraphDefs.listItemViewSchema); 21 + }, 22 + get list() { 23 + return AppBskyGraphDefs.listViewSchema; 24 24 }, 25 25 }), 26 26 },
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/getListBlocks.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.graph.getListBlocks', { 7 7 params: /*#__PURE__*/ v.object({ 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 9 limit: /*#__PURE__*/ v.optional( 9 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 10 11 50, 11 12 ), 12 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 13 }), 14 14 output: { 15 15 type: 'lex',
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/getListMutes.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.graph.getListMutes', { 7 7 params: /*#__PURE__*/ v.object({ 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 9 limit: /*#__PURE__*/ v.optional( 9 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 10 11 50, 11 12 ), 12 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 13 }), 14 14 output: { 15 15 type: 'lex',
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/getLists.ts
··· 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.graph.getLists', { 7 7 params: /*#__PURE__*/ v.object({ 8 8 actor: /*#__PURE__*/ v.actorIdentifierString(), 9 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 10 limit: /*#__PURE__*/ v.optional( 10 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 12 50, 12 13 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 }), 15 15 output: { 16 16 type: 'lex',
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/getMutes.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.graph.getMutes', { 7 7 params: /*#__PURE__*/ v.object({ 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 9 limit: /*#__PURE__*/ v.optional( 9 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 10 11 50, 11 12 ), 12 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 13 }), 14 14 output: { 15 15 type: 'lex',
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/getRelationships.ts
··· 19 19 get relationships() { 20 20 return /*#__PURE__*/ v.array( 21 21 /*#__PURE__*/ v.variant([ 22 - AppBskyGraphDefs.relationshipSchema, 23 22 AppBskyGraphDefs.notFoundActorSchema, 23 + AppBskyGraphDefs.relationshipSchema, 24 24 ]), 25 25 ); 26 26 },
+2 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/getSuggestedFollowsByActor.ts
··· 10 10 output: { 11 11 type: 'lex', 12 12 schema: /*#__PURE__*/ v.object({ 13 + isFallback: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 14 + recId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 13 15 get suggestions() { 14 16 return /*#__PURE__*/ v.array(AppBskyActorDefs.profileViewSchema); 15 17 }, 16 - isFallback: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 17 - recId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 18 18 }), 19 19 }, 20 20 });
+6 -6
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/list.ts
··· 9 9 /*#__PURE__*/ v.tidString(), 10 10 /*#__PURE__*/ v.object({ 11 11 $type: /*#__PURE__*/ v.literal('app.bsky.graph.list'), 12 - get purpose() { 13 - return AppBskyGraphDefs.listPurposeSchema; 14 - }, 15 - name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]), 12 + avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()), 13 + createdAt: /*#__PURE__*/ v.datetimeString(), 16 14 description: /*#__PURE__*/ v.optional( 17 15 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 18 16 /*#__PURE__*/ v.stringLength(0, 3000), ··· 22 20 get descriptionFacets() { 23 21 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(AppBskyRichtextFacet.mainSchema)); 24 22 }, 25 - avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()), 26 23 get labels() { 27 24 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema])); 28 25 }, 29 - createdAt: /*#__PURE__*/ v.datetimeString(), 26 + name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]), 27 + get purpose() { 28 + return AppBskyGraphDefs.listPurposeSchema; 29 + }, 30 30 }), 31 31 ); 32 32
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/listblock.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('app.bsky.graph.listblock'), 9 - subject: /*#__PURE__*/ v.resourceUriString(), 10 9 createdAt: /*#__PURE__*/ v.datetimeString(), 10 + subject: /*#__PURE__*/ v.resourceUriString(), 11 11 }), 12 12 ); 13 13
+2 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/listitem.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('app.bsky.graph.listitem'), 9 - subject: /*#__PURE__*/ v.didString(), 10 - list: /*#__PURE__*/ v.resourceUriString(), 11 9 createdAt: /*#__PURE__*/ v.datetimeString(), 10 + list: /*#__PURE__*/ v.resourceUriString(), 11 + subject: /*#__PURE__*/ v.didString(), 12 12 }), 13 13 ); 14 14
+2 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/searchStarterPacks.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.graph.searchStarterPacks', { 7 7 params: /*#__PURE__*/ v.object({ 8 - q: /*#__PURE__*/ v.string(), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 9 limit: /*#__PURE__*/ v.optional( 10 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 11 25, 12 12 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + q: /*#__PURE__*/ v.string(), 14 14 }), 15 15 output: { 16 16 type: 'lex',
+6 -6
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/starterpack.ts
··· 11 11 /*#__PURE__*/ v.tidString(), 12 12 /*#__PURE__*/ v.object({ 13 13 $type: /*#__PURE__*/ v.literal('app.bsky.graph.starterpack'), 14 - name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 15 - /*#__PURE__*/ v.stringLength(1, 500), 16 - /*#__PURE__*/ v.stringGraphemes(0, 50), 17 - ]), 14 + createdAt: /*#__PURE__*/ v.datetimeString(), 18 15 description: /*#__PURE__*/ v.optional( 19 16 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 20 17 /*#__PURE__*/ v.stringLength(0, 3000), ··· 24 21 get descriptionFacets() { 25 22 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(AppBskyRichtextFacet.mainSchema)); 26 23 }, 27 - list: /*#__PURE__*/ v.resourceUriString(), 28 24 get feeds() { 29 25 return /*#__PURE__*/ v.optional( 30 26 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(feedItemSchema), [/*#__PURE__*/ v.arrayLength(0, 3)]), 31 27 ); 32 28 }, 33 - createdAt: /*#__PURE__*/ v.datetimeString(), 29 + list: /*#__PURE__*/ v.resourceUriString(), 30 + name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 31 + /*#__PURE__*/ v.stringLength(1, 500), 32 + /*#__PURE__*/ v.stringGraphemes(0, 50), 33 + ]), 34 34 }), 35 35 ); 36 36
+3 -3
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/verification.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('app.bsky.graph.verification'), 9 - subject: /*#__PURE__*/ v.didString(), 10 - handle: /*#__PURE__*/ v.handleString(), 11 - displayName: /*#__PURE__*/ v.string(), 12 9 createdAt: /*#__PURE__*/ v.datetimeString(), 10 + displayName: /*#__PURE__*/ v.string(), 11 + handle: /*#__PURE__*/ v.handleString(), 12 + subject: /*#__PURE__*/ v.didString(), 13 13 }), 14 14 ); 15 15
+17 -17
packages/definitions/bluesky/lib/lexicons/types/app/bsky/labeler/defs.ts
··· 6 6 7 7 const _labelerPoliciesSchema = /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.labeler.defs#labelerPolicies')), 9 + get labelValueDefinitions() { 10 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelValueDefinitionSchema)); 11 + }, 9 12 get labelValues() { 10 13 return /*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelValueSchema); 11 14 }, 12 - get labelValueDefinitions() { 13 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelValueDefinitionSchema)); 14 - }, 15 15 }); 16 16 const _labelerViewSchema = /*#__PURE__*/ v.object({ 17 17 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.labeler.defs#labelerView')), 18 - uri: /*#__PURE__*/ v.resourceUriString(), 19 18 cid: /*#__PURE__*/ v.cidString(), 20 19 get creator() { 21 20 return AppBskyActorDefs.profileViewSchema; 22 21 }, 22 + indexedAt: /*#__PURE__*/ v.datetimeString(), 23 + get labels() { 24 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 25 + }, 23 26 likeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 27 + uri: /*#__PURE__*/ v.resourceUriString(), 24 28 get viewer() { 25 29 return /*#__PURE__*/ v.optional(labelerViewerStateSchema); 26 30 }, 27 - indexedAt: /*#__PURE__*/ v.datetimeString(), 28 - get labels() { 29 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 30 - }, 31 31 }); 32 32 const _labelerViewDetailedSchema = /*#__PURE__*/ v.object({ 33 33 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.labeler.defs#labelerViewDetailed')), 34 - uri: /*#__PURE__*/ v.resourceUriString(), 35 34 cid: /*#__PURE__*/ v.cidString(), 36 35 get creator() { 37 36 return AppBskyActorDefs.profileViewSchema; 38 37 }, 39 - get policies() { 40 - return labelerPoliciesSchema; 41 - }, 42 - likeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 43 - get viewer() { 44 - return /*#__PURE__*/ v.optional(labelerViewerStateSchema); 45 - }, 46 38 indexedAt: /*#__PURE__*/ v.datetimeString(), 47 39 get labels() { 48 40 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 49 41 }, 42 + likeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 43 + get policies() { 44 + return labelerPoliciesSchema; 45 + }, 50 46 get reasonTypes() { 51 47 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoModerationDefs.reasonTypeSchema)); 52 48 }, 49 + subjectCollections: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString())), 53 50 get subjectTypes() { 54 51 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoModerationDefs.subjectTypeSchema)); 55 52 }, 56 - subjectCollections: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString())), 53 + uri: /*#__PURE__*/ v.resourceUriString(), 54 + get viewer() { 55 + return /*#__PURE__*/ v.optional(labelerViewerStateSchema); 56 + }, 57 57 }); 58 58 const _labelerViewerStateSchema = /*#__PURE__*/ v.object({ 59 59 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.labeler.defs#labelerViewerState')),
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/labeler/getServices.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.labeler.getServices', { 7 7 params: /*#__PURE__*/ v.object({ 8 - dids: /*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), 9 8 detailed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 9 + dids: /*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), 10 10 }), 11 11 output: { 12 12 type: 'lex',
+5 -5
packages/definitions/bluesky/lib/lexicons/types/app/bsky/labeler/service.ts
··· 9 9 /*#__PURE__*/ v.literal('self'), 10 10 /*#__PURE__*/ v.object({ 11 11 $type: /*#__PURE__*/ v.literal('app.bsky.labeler.service'), 12 - get policies() { 13 - return AppBskyLabelerDefs.labelerPoliciesSchema; 14 - }, 12 + createdAt: /*#__PURE__*/ v.datetimeString(), 15 13 get labels() { 16 14 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema])); 17 15 }, 18 - createdAt: /*#__PURE__*/ v.datetimeString(), 16 + get policies() { 17 + return AppBskyLabelerDefs.labelerPoliciesSchema; 18 + }, 19 19 get reasonTypes() { 20 20 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoModerationDefs.reasonTypeSchema)); 21 21 }, 22 + subjectCollections: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString())), 22 23 get subjectTypes() { 23 24 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoModerationDefs.subjectTypeSchema)); 24 25 }, 25 - subjectCollections: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString())), 26 26 }), 27 27 ); 28 28
+13 -13
packages/definitions/bluesky/lib/lexicons/types/app/bsky/notification/listNotifications.ts
··· 6 6 7 7 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.notification.listNotifications', { 8 8 params: /*#__PURE__*/ v.object({ 9 - reasons: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 9 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 10 limit: /*#__PURE__*/ v.optional( 11 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 12 12 50, 13 13 ), 14 14 priority: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 15 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 + reasons: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 16 16 seenAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 17 17 }), 18 18 output: { ··· 31 31 $type: /*#__PURE__*/ v.optional( 32 32 /*#__PURE__*/ v.literal('app.bsky.notification.listNotifications#notification'), 33 33 ), 34 - uri: /*#__PURE__*/ v.resourceUriString(), 35 - cid: /*#__PURE__*/ v.cidString(), 36 34 get author() { 37 35 return AppBskyActorDefs.profileViewSchema; 38 36 }, 37 + cid: /*#__PURE__*/ v.cidString(), 38 + indexedAt: /*#__PURE__*/ v.datetimeString(), 39 + isRead: /*#__PURE__*/ v.boolean(), 40 + get labels() { 41 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 42 + }, 39 43 reason: /*#__PURE__*/ v.string< 40 - | 'like' 41 - | 'repost' 42 44 | 'follow' 45 + | 'like' 43 46 | 'mention' 47 + | 'quote' 44 48 | 'reply' 45 - | 'quote' 49 + | 'repost' 46 50 | 'starterpack-joined' 51 + | 'unverified' 47 52 | 'verified' 48 - | 'unverified' 49 53 | (string & {}) 50 54 >(), 51 55 reasonSubject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 52 56 record: /*#__PURE__*/ v.unknown(), 53 - isRead: /*#__PURE__*/ v.boolean(), 54 - indexedAt: /*#__PURE__*/ v.datetimeString(), 55 - get labels() { 56 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 57 - }, 57 + uri: /*#__PURE__*/ v.resourceUriString(), 58 58 }); 59 59 60 60 type main$schematype = typeof _mainSchema;
+2 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/notification/registerPush.ts
··· 7 7 input: { 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 + appId: /*#__PURE__*/ v.string(), 11 + platform: /*#__PURE__*/ v.string<'android' | 'ios' | 'web' | (string & {})>(), 10 12 serviceDid: /*#__PURE__*/ v.didString(), 11 13 token: /*#__PURE__*/ v.string(), 12 - platform: /*#__PURE__*/ v.string<'ios' | 'android' | 'web' | (string & {})>(), 13 - appId: /*#__PURE__*/ v.string(), 14 14 }), 15 15 }, 16 16 output: null,
+4 -4
packages/definitions/bluesky/lib/lexicons/types/app/bsky/richtext/facet.ts
··· 3 3 4 4 const _byteSliceSchema = /*#__PURE__*/ v.object({ 5 5 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.richtext.facet#byteSlice')), 6 - byteStart: /*#__PURE__*/ v.integer(), 7 6 byteEnd: /*#__PURE__*/ v.integer(), 7 + byteStart: /*#__PURE__*/ v.integer(), 8 8 }); 9 9 const _linkSchema = /*#__PURE__*/ v.object({ 10 10 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.richtext.facet#link')), ··· 12 12 }); 13 13 const _mainSchema = /*#__PURE__*/ v.object({ 14 14 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.richtext.facet')), 15 + get features() { 16 + return /*#__PURE__*/ v.array(/*#__PURE__*/ v.variant([linkSchema, mentionSchema, tagSchema])); 17 + }, 15 18 get index() { 16 19 return byteSliceSchema; 17 - }, 18 - get features() { 19 - return /*#__PURE__*/ v.array(/*#__PURE__*/ v.variant([mentionSchema, linkSchema, tagSchema])); 20 20 }, 21 21 }); 22 22 const _mentionSchema = /*#__PURE__*/ v.object({
+12 -12
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/defs.ts
··· 18 18 }); 19 19 const _skeletonTrendSchema = /*#__PURE__*/ v.object({ 20 20 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#skeletonTrend')), 21 - topic: /*#__PURE__*/ v.string(), 21 + category: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 22 + dids: /*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), 22 23 displayName: /*#__PURE__*/ v.string(), 23 24 link: /*#__PURE__*/ v.string(), 24 - startedAt: /*#__PURE__*/ v.datetimeString(), 25 25 postCount: /*#__PURE__*/ v.integer(), 26 + startedAt: /*#__PURE__*/ v.datetimeString(), 26 27 status: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'hot' | (string & {})>()), 27 - category: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 28 - dids: /*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), 28 + topic: /*#__PURE__*/ v.string(), 29 29 }); 30 30 const _trendViewSchema = /*#__PURE__*/ v.object({ 31 31 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#trendView')), 32 - topic: /*#__PURE__*/ v.string(), 32 + get actors() { 33 + return /*#__PURE__*/ v.array(AppBskyActorDefs.profileViewBasicSchema); 34 + }, 35 + category: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 33 36 displayName: /*#__PURE__*/ v.string(), 34 37 link: /*#__PURE__*/ v.string(), 38 + postCount: /*#__PURE__*/ v.integer(), 35 39 startedAt: /*#__PURE__*/ v.datetimeString(), 36 - postCount: /*#__PURE__*/ v.integer(), 37 40 status: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'hot' | (string & {})>()), 38 - category: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 39 - get actors() { 40 - return /*#__PURE__*/ v.array(AppBskyActorDefs.profileViewBasicSchema); 41 - }, 41 + topic: /*#__PURE__*/ v.string(), 42 42 }); 43 43 const _trendingTopicSchema = /*#__PURE__*/ v.object({ 44 44 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#trendingTopic')), 45 - topic: /*#__PURE__*/ v.string(), 46 - displayName: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 47 45 description: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 46 + displayName: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 48 47 link: /*#__PURE__*/ v.string(), 48 + topic: /*#__PURE__*/ v.string(), 49 49 }); 50 50 51 51 type skeletonSearchActor$schematype = typeof _skeletonSearchActorSchema;
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/getPopularFeedGenerators.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getPopularFeedGenerators', { 7 7 params: /*#__PURE__*/ v.object({ 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 9 limit: /*#__PURE__*/ v.optional( 9 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 10 11 50, 11 12 ), 12 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 13 query: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 }), 15 15 output: {
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.ts
··· 4 4 5 5 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getSuggestedFeedsSkeleton', { 6 6 params: /*#__PURE__*/ v.object({ 7 - viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 8 7 limit: /*#__PURE__*/ v.optional( 9 8 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 25)]), 10 9 10, 11 10 ), 11 + viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 12 12 }), 13 13 output: { 14 14 type: 'lex',
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.ts
··· 4 4 5 5 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getSuggestedStarterPacksSkeleton', { 6 6 params: /*#__PURE__*/ v.object({ 7 - viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 8 7 limit: /*#__PURE__*/ v.optional( 9 8 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 25)]), 10 9 10, 11 10 ), 11 + viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 12 12 }), 13 13 output: { 14 14 type: 'lex',
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts
··· 4 4 5 5 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getSuggestedUsersSkeleton', { 6 6 params: /*#__PURE__*/ v.object({ 7 - viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 8 7 category: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 8 limit: /*#__PURE__*/ v.optional( 10 9 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 50)]), 11 10 25, 12 11 ), 12 + viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 13 13 }), 14 14 output: { 15 15 type: 'lex',
+4 -4
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/getSuggestionsSkeleton.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getSuggestionsSkeleton', { 7 7 params: /*#__PURE__*/ v.object({ 8 - viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 9 limit: /*#__PURE__*/ v.optional( 10 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 11 50, 12 12 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 13 relativeToDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 14 + viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 15 15 }), 16 16 output: { 17 17 type: 'lex', 18 18 schema: /*#__PURE__*/ v.object({ 19 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 20 19 get actors() { 21 20 return /*#__PURE__*/ v.array(AppBskyUnspeccedDefs.skeletonSearchActorSchema); 22 21 }, 22 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 23 + recId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 23 24 relativeToDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 24 - recId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 25 25 }), 26 26 }, 27 27 });
+2 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/getTaggedSuggestions.ts
··· 17 17 $type: /*#__PURE__*/ v.optional( 18 18 /*#__PURE__*/ v.literal('app.bsky.unspecced.getTaggedSuggestions#suggestion'), 19 19 ), 20 - tag: /*#__PURE__*/ v.string(), 21 - subjectType: /*#__PURE__*/ v.string<'actor' | 'feed' | (string & {})>(), 22 20 subject: /*#__PURE__*/ v.genericUriString(), 21 + subjectType: /*#__PURE__*/ v.string<'actor' | 'feed' | (string & {})>(), 22 + tag: /*#__PURE__*/ v.string(), 23 23 }); 24 24 25 25 type main$schematype = typeof _mainSchema;
+3 -3
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/getTrendingTopics.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getTrendingTopics', { 7 7 params: /*#__PURE__*/ v.object({ 8 - viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 9 8 limit: /*#__PURE__*/ v.optional( 10 9 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 25)]), 11 10 10, 12 11 ), 12 + viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 13 13 }), 14 14 output: { 15 15 type: 'lex', 16 16 schema: /*#__PURE__*/ v.object({ 17 - get topics() { 17 + get suggested() { 18 18 return /*#__PURE__*/ v.array(AppBskyUnspeccedDefs.trendingTopicSchema); 19 19 }, 20 - get suggested() { 20 + get topics() { 21 21 return /*#__PURE__*/ v.array(AppBskyUnspeccedDefs.trendingTopicSchema); 22 22 }, 23 23 }),
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/getTrendsSkeleton.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getTrendsSkeleton', { 7 7 params: /*#__PURE__*/ v.object({ 8 - viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 9 8 limit: /*#__PURE__*/ v.optional( 10 9 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 25)]), 11 10 10, 12 11 ), 12 + viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 13 13 }), 14 14 output: { 15 15 type: 'lex',
+6 -6
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/searchActorsSkeleton.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.searchActorsSkeleton', { 7 7 params: /*#__PURE__*/ v.object({ 8 - q: /*#__PURE__*/ v.string(), 9 - viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 10 - typeahead: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 9 limit: /*#__PURE__*/ v.optional( 12 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 13 11 25, 14 12 ), 15 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + q: /*#__PURE__*/ v.string(), 14 + typeahead: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 15 + viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 16 16 }), 17 17 output: { 18 18 type: 'lex', 19 19 schema: /*#__PURE__*/ v.object({ 20 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 21 - hitsTotal: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 22 20 get actors() { 23 21 return /*#__PURE__*/ v.array(AppBskyUnspeccedDefs.skeletonSearchActorSchema); 24 22 }, 23 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 24 + hitsTotal: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 25 25 }), 26 26 }, 27 27 });
+12 -12
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/searchPostsSkeleton.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.searchPostsSkeleton', { 7 7 params: /*#__PURE__*/ v.object({ 8 - q: /*#__PURE__*/ v.string(), 9 - sort: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'top' | 'latest' | (string & {})>(), 'latest'), 10 - since: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 - until: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 12 - mentions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()), 13 8 author: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()), 14 - lang: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.languageCodeString()), 9 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 10 domain: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 16 - url: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 11 + lang: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.languageCodeString()), 12 + limit: /*#__PURE__*/ v.optional( 13 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 14 + 25, 15 + ), 16 + mentions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()), 17 + q: /*#__PURE__*/ v.string(), 18 + since: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 19 + sort: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'latest' | 'top' | (string & {})>(), 'latest'), 17 20 tag: /*#__PURE__*/ v.optional( 18 21 /*#__PURE__*/ v.array( 19 22 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ ··· 22 25 ]), 23 26 ), 24 27 ), 28 + until: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 29 + url: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 25 30 viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 26 - limit: /*#__PURE__*/ v.optional( 27 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 28 - 25, 29 - ), 30 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 31 31 }), 32 32 output: { 33 33 type: 'lex',
+3 -3
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/searchStarterPacksSkeleton.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.searchStarterPacksSkeleton', { 7 7 params: /*#__PURE__*/ v.object({ 8 - q: /*#__PURE__*/ v.string(), 9 - viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 9 limit: /*#__PURE__*/ v.optional( 11 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 12 11 25, 13 12 ), 14 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + q: /*#__PURE__*/ v.string(), 14 + viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 15 15 }), 16 16 output: { 17 17 type: 'lex',
+5 -5
packages/definitions/bluesky/lib/lexicons/types/app/bsky/video/defs.ts
··· 3 3 4 4 const _jobStatusSchema = /*#__PURE__*/ v.object({ 5 5 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.video.defs#jobStatus')), 6 + blob: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()), 7 + did: /*#__PURE__*/ v.didString(), 8 + error: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 6 9 jobId: /*#__PURE__*/ v.string(), 7 - did: /*#__PURE__*/ v.didString(), 8 - state: /*#__PURE__*/ v.string<'JOB_STATE_COMPLETED' | 'JOB_STATE_FAILED' | (string & {})>(), 10 + message: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 11 progress: /*#__PURE__*/ v.optional( 10 12 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(0, 100)]), 11 13 ), 12 - blob: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()), 13 - error: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 - message: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 + state: /*#__PURE__*/ v.string<'JOB_STATE_COMPLETED' | 'JOB_STATE_FAILED' | (string & {})>(), 15 15 }); 16 16 17 17 type jobStatus$schematype = typeof _jobStatusSchema;
+3 -3
packages/definitions/bluesky/lib/lexicons/types/app/bsky/video/getUploadLimits.ts
··· 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 10 canUpload: /*#__PURE__*/ v.boolean(), 11 - remainingDailyVideos: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 12 - remainingDailyBytes: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 13 - message: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 11 error: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 12 + message: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + remainingDailyBytes: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 14 + remainingDailyVideos: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 15 15 }), 16 16 }, 17 17 });
+1 -1
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/actor/declaration.ts
··· 6 6 /*#__PURE__*/ v.literal('self'), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('chat.bsky.actor.declaration'), 9 - allowIncoming: /*#__PURE__*/ v.string<'all' | 'none' | 'following' | (string & {})>(), 9 + allowIncoming: /*#__PURE__*/ v.string<'all' | 'following' | 'none' | (string & {})>(), 10 10 }), 11 11 ); 12 12
+9 -9
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/actor/defs.ts
··· 5 5 6 6 const _profileViewBasicSchema = /*#__PURE__*/ v.object({ 7 7 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.actor.defs#profileViewBasic')), 8 + get associated() { 9 + return /*#__PURE__*/ v.optional(AppBskyActorDefs.profileAssociatedSchema); 10 + }, 11 + avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 12 + chatDisabled: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 8 13 did: /*#__PURE__*/ v.didString(), 9 - handle: /*#__PURE__*/ v.handleString(), 10 14 displayName: /*#__PURE__*/ v.optional( 11 15 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 12 16 /*#__PURE__*/ v.stringLength(0, 640), 13 17 /*#__PURE__*/ v.stringGraphemes(0, 64), 14 18 ]), 15 19 ), 16 - avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 17 - get associated() { 18 - return /*#__PURE__*/ v.optional(AppBskyActorDefs.profileAssociatedSchema); 19 - }, 20 - get viewer() { 21 - return /*#__PURE__*/ v.optional(AppBskyActorDefs.viewerStateSchema); 22 - }, 20 + handle: /*#__PURE__*/ v.handleString(), 23 21 get labels() { 24 22 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 25 23 }, 26 - chatDisabled: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 27 24 get verification() { 28 25 return /*#__PURE__*/ v.optional(AppBskyActorDefs.verificationStateSchema); 26 + }, 27 + get viewer() { 28 + return /*#__PURE__*/ v.optional(AppBskyActorDefs.viewerStateSchema); 29 29 }, 30 30 }); 31 31
+39 -39
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/convo/defs.ts
··· 7 7 const _convoViewSchema = /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#convoView')), 9 9 id: /*#__PURE__*/ v.string(), 10 - rev: /*#__PURE__*/ v.string(), 11 - get members() { 12 - return /*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema); 13 - }, 14 10 get lastMessage() { 15 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([messageViewSchema, deletedMessageViewSchema])); 11 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([deletedMessageViewSchema, messageViewSchema])); 16 12 }, 17 13 get lastReaction() { 18 14 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([messageAndReactionViewSchema])); 19 15 }, 16 + get members() { 17 + return /*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema); 18 + }, 20 19 muted: /*#__PURE__*/ v.boolean(), 21 - status: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'request' | 'accepted' | (string & {})>()), 20 + rev: /*#__PURE__*/ v.string(), 21 + status: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'accepted' | 'request' | (string & {})>()), 22 22 unreadCount: /*#__PURE__*/ v.integer(), 23 23 }); 24 24 const _deletedMessageViewSchema = /*#__PURE__*/ v.object({ ··· 32 32 }); 33 33 const _logAcceptConvoSchema = /*#__PURE__*/ v.object({ 34 34 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logAcceptConvo')), 35 - rev: /*#__PURE__*/ v.string(), 36 35 convoId: /*#__PURE__*/ v.string(), 36 + rev: /*#__PURE__*/ v.string(), 37 37 }); 38 38 const _logAddReactionSchema = /*#__PURE__*/ v.object({ 39 39 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logAddReaction')), 40 - rev: /*#__PURE__*/ v.string(), 41 40 convoId: /*#__PURE__*/ v.string(), 42 41 get message() { 43 - return /*#__PURE__*/ v.variant([messageViewSchema, deletedMessageViewSchema]); 42 + return /*#__PURE__*/ v.variant([deletedMessageViewSchema, messageViewSchema]); 44 43 }, 45 44 get reaction() { 46 45 return reactionViewSchema; 47 46 }, 47 + rev: /*#__PURE__*/ v.string(), 48 48 }); 49 49 const _logBeginConvoSchema = /*#__PURE__*/ v.object({ 50 50 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logBeginConvo')), 51 - rev: /*#__PURE__*/ v.string(), 52 51 convoId: /*#__PURE__*/ v.string(), 52 + rev: /*#__PURE__*/ v.string(), 53 53 }); 54 54 const _logCreateMessageSchema = /*#__PURE__*/ v.object({ 55 55 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logCreateMessage')), 56 - rev: /*#__PURE__*/ v.string(), 57 56 convoId: /*#__PURE__*/ v.string(), 58 57 get message() { 59 - return /*#__PURE__*/ v.variant([messageViewSchema, deletedMessageViewSchema]); 58 + return /*#__PURE__*/ v.variant([deletedMessageViewSchema, messageViewSchema]); 60 59 }, 60 + rev: /*#__PURE__*/ v.string(), 61 61 }); 62 62 const _logDeleteMessageSchema = /*#__PURE__*/ v.object({ 63 63 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logDeleteMessage')), 64 - rev: /*#__PURE__*/ v.string(), 65 64 convoId: /*#__PURE__*/ v.string(), 66 65 get message() { 67 - return /*#__PURE__*/ v.variant([messageViewSchema, deletedMessageViewSchema]); 66 + return /*#__PURE__*/ v.variant([deletedMessageViewSchema, messageViewSchema]); 68 67 }, 68 + rev: /*#__PURE__*/ v.string(), 69 69 }); 70 70 const _logLeaveConvoSchema = /*#__PURE__*/ v.object({ 71 71 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logLeaveConvo')), 72 - rev: /*#__PURE__*/ v.string(), 73 72 convoId: /*#__PURE__*/ v.string(), 73 + rev: /*#__PURE__*/ v.string(), 74 74 }); 75 75 const _logMuteConvoSchema = /*#__PURE__*/ v.object({ 76 76 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logMuteConvo')), 77 - rev: /*#__PURE__*/ v.string(), 78 77 convoId: /*#__PURE__*/ v.string(), 78 + rev: /*#__PURE__*/ v.string(), 79 79 }); 80 80 const _logReadMessageSchema = /*#__PURE__*/ v.object({ 81 81 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logReadMessage')), 82 - rev: /*#__PURE__*/ v.string(), 83 82 convoId: /*#__PURE__*/ v.string(), 84 83 get message() { 85 - return /*#__PURE__*/ v.variant([messageViewSchema, deletedMessageViewSchema]); 84 + return /*#__PURE__*/ v.variant([deletedMessageViewSchema, messageViewSchema]); 86 85 }, 86 + rev: /*#__PURE__*/ v.string(), 87 87 }); 88 88 const _logRemoveReactionSchema = /*#__PURE__*/ v.object({ 89 89 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logRemoveReaction')), 90 - rev: /*#__PURE__*/ v.string(), 91 90 convoId: /*#__PURE__*/ v.string(), 92 91 get message() { 93 - return /*#__PURE__*/ v.variant([messageViewSchema, deletedMessageViewSchema]); 92 + return /*#__PURE__*/ v.variant([deletedMessageViewSchema, messageViewSchema]); 94 93 }, 95 94 get reaction() { 96 95 return reactionViewSchema; 97 96 }, 97 + rev: /*#__PURE__*/ v.string(), 98 98 }); 99 99 const _logUnmuteConvoSchema = /*#__PURE__*/ v.object({ 100 100 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logUnmuteConvo')), 101 - rev: /*#__PURE__*/ v.string(), 102 101 convoId: /*#__PURE__*/ v.string(), 102 + rev: /*#__PURE__*/ v.string(), 103 103 }); 104 104 const _messageAndReactionViewSchema = /*#__PURE__*/ v.object({ 105 105 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#messageAndReactionView')), ··· 112 112 }); 113 113 const _messageInputSchema = /*#__PURE__*/ v.object({ 114 114 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#messageInput')), 115 + get embed() { 116 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([AppBskyEmbedRecord.mainSchema])); 117 + }, 118 + get facets() { 119 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(AppBskyRichtextFacet.mainSchema)); 120 + }, 115 121 text: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 116 122 /*#__PURE__*/ v.stringLength(0, 10000), 117 123 /*#__PURE__*/ v.stringGraphemes(0, 1000), 118 124 ]), 119 - get facets() { 120 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(AppBskyRichtextFacet.mainSchema)); 121 - }, 122 - get embed() { 123 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([AppBskyEmbedRecord.mainSchema])); 124 - }, 125 125 }); 126 126 const _messageRefSchema = /*#__PURE__*/ v.object({ 127 127 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#messageRef')), 128 - did: /*#__PURE__*/ v.didString(), 129 128 convoId: /*#__PURE__*/ v.string(), 129 + did: /*#__PURE__*/ v.didString(), 130 130 messageId: /*#__PURE__*/ v.string(), 131 131 }); 132 132 const _messageViewSchema = /*#__PURE__*/ v.object({ 133 133 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#messageView')), 134 - id: /*#__PURE__*/ v.string(), 135 - rev: /*#__PURE__*/ v.string(), 136 - text: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 137 - /*#__PURE__*/ v.stringLength(0, 10000), 138 - /*#__PURE__*/ v.stringGraphemes(0, 1000), 139 - ]), 134 + get embed() { 135 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([AppBskyEmbedRecord.viewSchema])); 136 + }, 140 137 get facets() { 141 138 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(AppBskyRichtextFacet.mainSchema)); 142 139 }, 143 - get embed() { 144 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([AppBskyEmbedRecord.viewSchema])); 145 - }, 140 + id: /*#__PURE__*/ v.string(), 146 141 get reactions() { 147 142 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(reactionViewSchema)); 148 143 }, 144 + rev: /*#__PURE__*/ v.string(), 149 145 get sender() { 150 146 return messageViewSenderSchema; 151 147 }, 152 148 sentAt: /*#__PURE__*/ v.datetimeString(), 149 + text: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 150 + /*#__PURE__*/ v.stringLength(0, 10000), 151 + /*#__PURE__*/ v.stringGraphemes(0, 1000), 152 + ]), 153 153 }); 154 154 const _messageViewSenderSchema = /*#__PURE__*/ v.object({ 155 155 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#messageViewSender')), ··· 157 157 }); 158 158 const _reactionViewSchema = /*#__PURE__*/ v.object({ 159 159 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#reactionView')), 160 - value: /*#__PURE__*/ v.string(), 160 + createdAt: /*#__PURE__*/ v.datetimeString(), 161 161 get sender() { 162 162 return reactionViewSenderSchema; 163 163 }, 164 - createdAt: /*#__PURE__*/ v.datetimeString(), 164 + value: /*#__PURE__*/ v.string(), 165 165 }); 166 166 const _reactionViewSenderSchema = /*#__PURE__*/ v.object({ 167 167 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#reactionViewSender')),
+5 -5
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/convo/getLog.ts
··· 14 14 get logs() { 15 15 return /*#__PURE__*/ v.array( 16 16 /*#__PURE__*/ v.variant([ 17 - ChatBskyConvoDefs.logBeginConvoSchema, 18 17 ChatBskyConvoDefs.logAcceptConvoSchema, 19 - ChatBskyConvoDefs.logLeaveConvoSchema, 20 - ChatBskyConvoDefs.logMuteConvoSchema, 21 - ChatBskyConvoDefs.logUnmuteConvoSchema, 18 + ChatBskyConvoDefs.logAddReactionSchema, 19 + ChatBskyConvoDefs.logBeginConvoSchema, 22 20 ChatBskyConvoDefs.logCreateMessageSchema, 23 21 ChatBskyConvoDefs.logDeleteMessageSchema, 22 + ChatBskyConvoDefs.logLeaveConvoSchema, 23 + ChatBskyConvoDefs.logMuteConvoSchema, 24 24 ChatBskyConvoDefs.logReadMessageSchema, 25 - ChatBskyConvoDefs.logAddReactionSchema, 26 25 ChatBskyConvoDefs.logRemoveReactionSchema, 26 + ChatBskyConvoDefs.logUnmuteConvoSchema, 27 27 ]), 28 28 ); 29 29 },
+2 -2
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/convo/getMessages.ts
··· 6 6 const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.convo.getMessages', { 7 7 params: /*#__PURE__*/ v.object({ 8 8 convoId: /*#__PURE__*/ v.string(), 9 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 10 limit: /*#__PURE__*/ v.optional( 10 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 12 50, 12 13 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 }), 15 15 output: { 16 16 type: 'lex', ··· 19 19 get messages() { 20 20 return /*#__PURE__*/ v.array( 21 21 /*#__PURE__*/ v.variant([ 22 - ChatBskyConvoDefs.messageViewSchema, 23 22 ChatBskyConvoDefs.deletedMessageViewSchema, 23 + ChatBskyConvoDefs.messageViewSchema, 24 24 ]), 25 25 ); 26 26 },
+3 -3
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/convo/listConvos.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.convo.listConvos', { 7 7 params: /*#__PURE__*/ v.object({ 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 9 limit: /*#__PURE__*/ v.optional( 9 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 10 11 50, 11 12 ), 12 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 13 readState: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'unread' | (string & {})>()), 14 - status: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'request' | 'accepted' | (string & {})>()), 14 + status: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'accepted' | 'request' | (string & {})>()), 15 15 }), 16 16 output: { 17 17 type: 'lex', 18 18 schema: /*#__PURE__*/ v.object({ 19 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 20 19 get convos() { 21 20 return /*#__PURE__*/ v.array(ChatBskyConvoDefs.convoViewSchema); 22 21 }, 22 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 23 23 }), 24 24 }, 25 25 });
+1 -1
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/convo/updateAllRead.ts
··· 7 7 input: { 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 - status: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'request' | 'accepted' | (string & {})>()), 10 + status: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'accepted' | 'request' | (string & {})>()), 11 11 }), 12 12 }, 13 13 output: {
+5 -5
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/moderation/getActorMetadata.ts
··· 9 9 output: { 10 10 type: 'lex', 11 11 schema: /*#__PURE__*/ v.object({ 12 - get day() { 12 + get all() { 13 13 return metadataSchema; 14 14 }, 15 - get month() { 15 + get day() { 16 16 return metadataSchema; 17 17 }, 18 - get all() { 18 + get month() { 19 19 return metadataSchema; 20 20 }, 21 21 }), ··· 23 23 }); 24 24 const _metadataSchema = /*#__PURE__*/ v.object({ 25 25 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.moderation.getActorMetadata#metadata')), 26 - messagesSent: /*#__PURE__*/ v.integer(), 27 - messagesReceived: /*#__PURE__*/ v.integer(), 28 26 convos: /*#__PURE__*/ v.integer(), 29 27 convosStarted: /*#__PURE__*/ v.integer(), 28 + messagesReceived: /*#__PURE__*/ v.integer(), 29 + messagesSent: /*#__PURE__*/ v.integer(), 30 30 }); 31 31 32 32 type main$schematype = typeof _mainSchema;
+3 -3
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/moderation/getMessageContext.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.moderation.getMessageContext', { 7 7 params: /*#__PURE__*/ v.object({ 8 + after: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer(), 5), 9 + before: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer(), 5), 8 10 convoId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 11 messageId: /*#__PURE__*/ v.string(), 10 - before: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer(), 5), 11 - after: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer(), 5), 12 12 }), 13 13 output: { 14 14 type: 'lex', ··· 16 16 get messages() { 17 17 return /*#__PURE__*/ v.array( 18 18 /*#__PURE__*/ v.variant([ 19 - ChatBskyConvoDefs.messageViewSchema, 20 19 ChatBskyConvoDefs.deletedMessageViewSchema, 20 + ChatBskyConvoDefs.messageViewSchema, 21 21 ]), 22 22 ); 23 23 },
+1 -1
packages/definitions/frontpage/lib/lexicons/types/fyi/unravel/frontpage/post.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('fyi.unravel.frontpage.post'), 9 + createdAt: /*#__PURE__*/ v.datetimeString(), 9 10 title: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 10 11 /*#__PURE__*/ v.stringLength(0, 3000), 11 12 /*#__PURE__*/ v.stringGraphemes(0, 300), 12 13 ]), 13 14 url: /*#__PURE__*/ v.genericUriString(), 14 - createdAt: /*#__PURE__*/ v.datetimeString(), 15 15 }), 16 16 ); 17 17
+1 -1
packages/definitions/frontpage/lib/lexicons/types/fyi/unravel/frontpage/vote.ts
··· 7 7 /*#__PURE__*/ v.tidString(), 8 8 /*#__PURE__*/ v.object({ 9 9 $type: /*#__PURE__*/ v.literal('fyi.unravel.frontpage.vote'), 10 + createdAt: /*#__PURE__*/ v.datetimeString(), 10 11 get subject() { 11 12 return ComAtprotoRepoStrongRef.mainSchema; 12 13 }, 13 - createdAt: /*#__PURE__*/ v.datetimeString(), 14 14 }), 15 15 ); 16 16
+1 -1
packages/definitions/lexicon-community/lib/lexicons/types/community/lexicon/bookmarks/bookmark.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('community.lexicon.bookmarks.bookmark'), 9 - subject: /*#__PURE__*/ v.genericUriString(), 10 9 createdAt: /*#__PURE__*/ v.datetimeString(), 10 + subject: /*#__PURE__*/ v.genericUriString(), 11 11 tags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 12 12 }), 13 13 );
+3 -3
packages/definitions/lexicon-community/lib/lexicons/types/community/lexicon/bookmarks/getActorBookmarks.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('community.lexicon.bookmarks.getActorBookmarks', { 7 7 params: /*#__PURE__*/ v.object({ 8 - tags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 9 limit: /*#__PURE__*/ v.optional( 10 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 11 50, 12 12 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + tags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 14 14 }), 15 15 output: { 16 16 type: 'lex', 17 17 schema: /*#__PURE__*/ v.object({ 18 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 19 18 get bookmarks() { 20 19 return /*#__PURE__*/ v.array(CommunityLexiconBookmarksBookmark.mainSchema); 21 20 }, 21 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 22 22 }), 23 23 }, 24 24 });
+10 -10
packages/definitions/lexicon-community/lib/lexicons/types/community/lexicon/calendar/event.ts
··· 13 13 /*#__PURE__*/ v.tidString(), 14 14 /*#__PURE__*/ v.object({ 15 15 $type: /*#__PURE__*/ v.literal('community.lexicon.calendar.event'), 16 - name: /*#__PURE__*/ v.string(), 16 + createdAt: /*#__PURE__*/ v.datetimeString(), 17 17 description: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 18 - createdAt: /*#__PURE__*/ v.datetimeString(), 19 - startsAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 20 18 endsAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 21 - get mode() { 22 - return /*#__PURE__*/ v.optional(modeSchema); 23 - }, 24 - get status() { 25 - return /*#__PURE__*/ v.optional(statusSchema); 26 - }, 27 19 get locations() { 28 20 return /*#__PURE__*/ v.optional( 29 21 /*#__PURE__*/ v.array( ··· 36 28 ]), 37 29 ), 38 30 ); 31 + }, 32 + get mode() { 33 + return /*#__PURE__*/ v.optional(modeSchema); 34 + }, 35 + name: /*#__PURE__*/ v.string(), 36 + startsAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 37 + get status() { 38 + return /*#__PURE__*/ v.optional(statusSchema); 39 39 }, 40 40 get uris() { 41 41 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(uriSchema)); ··· 68 68 ); 69 69 const _uriSchema = /*#__PURE__*/ v.object({ 70 70 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.calendar.event#uri')), 71 - uri: /*#__PURE__*/ v.genericUriString(), 72 71 name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 72 + uri: /*#__PURE__*/ v.genericUriString(), 73 73 }); 74 74 const _virtualSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#virtual'); 75 75
+4 -4
packages/definitions/lexicon-community/lib/lexicons/types/community/lexicon/calendar/rsvp.ts
··· 9 9 /*#__PURE__*/ v.tidString(), 10 10 /*#__PURE__*/ v.object({ 11 11 $type: /*#__PURE__*/ v.literal('community.lexicon.calendar.rsvp'), 12 - get subject() { 13 - return ComAtprotoRepoStrongRef.mainSchema; 14 - }, 15 12 status: /*#__PURE__*/ v.optional( 16 13 /*#__PURE__*/ v.string< 17 - | 'community.lexicon.calendar.rsvp#interested' 18 14 | 'community.lexicon.calendar.rsvp#going' 15 + | 'community.lexicon.calendar.rsvp#interested' 19 16 | 'community.lexicon.calendar.rsvp#notgoing' 20 17 | (string & {}) 21 18 >(), 22 19 'community.lexicon.calendar.rsvp#going', 23 20 ), 21 + get subject() { 22 + return ComAtprotoRepoStrongRef.mainSchema; 23 + }, 24 24 }), 25 25 ); 26 26 const _notgoingSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.rsvp#notgoing');
+1 -1
packages/definitions/lexicon-community/lib/lexicons/types/community/lexicon/interaction/like.ts
··· 7 7 /*#__PURE__*/ v.tidString(), 8 8 /*#__PURE__*/ v.object({ 9 9 $type: /*#__PURE__*/ v.literal('community.lexicon.interaction.like'), 10 + createdAt: /*#__PURE__*/ v.datetimeString(), 10 11 get subject() { 11 12 return ComAtprotoRepoStrongRef.mainSchema; 12 13 }, 13 - createdAt: /*#__PURE__*/ v.datetimeString(), 14 14 }), 15 15 ); 16 16
+2 -2
packages/definitions/lexicon-community/lib/lexicons/types/community/lexicon/location/address.ts
··· 4 4 const _mainSchema = /*#__PURE__*/ v.object({ 5 5 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.location.address')), 6 6 country: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(2, 10)]), 7 + locality: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 + name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 7 9 postalCode: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 10 region: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 - locality: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 11 street: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 - name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 12 12 }); 13 13 14 14 type main$schematype = typeof _mainSchema;
+1 -1
packages/definitions/lexicon-community/lib/lexicons/types/community/lexicon/location/geo.ts
··· 3 3 4 4 const _mainSchema = /*#__PURE__*/ v.object({ 5 5 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.location.geo')), 6 + altitude: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 6 7 latitude: /*#__PURE__*/ v.string(), 7 8 longitude: /*#__PURE__*/ v.string(), 8 - altitude: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 9 name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 10 }); 11 11
+1 -1
packages/definitions/lexicon-community/lib/lexicons/types/community/lexicon/location/hthree.ts
··· 3 3 4 4 const _mainSchema = /*#__PURE__*/ v.object({ 5 5 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.location.hthree')), 6 - value: /*#__PURE__*/ v.string(), 7 6 name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 7 + value: /*#__PURE__*/ v.string(), 8 8 }); 9 9 10 10 type main$schematype = typeof _mainSchema;
+3 -3
packages/definitions/ozone/lib/lexicons/types/tools/ozone/communication/createTemplate.ts
··· 8 8 input: { 9 9 type: 'lex', 10 10 schema: /*#__PURE__*/ v.object({ 11 - name: /*#__PURE__*/ v.string(), 12 11 contentMarkdown: /*#__PURE__*/ v.string(), 13 - subject: /*#__PURE__*/ v.string(), 14 - lang: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.languageCodeString()), 15 12 createdBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 13 + lang: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.languageCodeString()), 14 + name: /*#__PURE__*/ v.string(), 15 + subject: /*#__PURE__*/ v.string(), 16 16 }), 17 17 }, 18 18 output: {
+4 -4
packages/definitions/ozone/lib/lexicons/types/tools/ozone/communication/defs.ts
··· 3 3 4 4 const _templateViewSchema = /*#__PURE__*/ v.object({ 5 5 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.communication.defs#templateView')), 6 - id: /*#__PURE__*/ v.string(), 7 - name: /*#__PURE__*/ v.string(), 8 - subject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 6 contentMarkdown: /*#__PURE__*/ v.string(), 7 + createdAt: /*#__PURE__*/ v.datetimeString(), 10 8 disabled: /*#__PURE__*/ v.boolean(), 9 + id: /*#__PURE__*/ v.string(), 11 10 lang: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.languageCodeString()), 12 11 lastUpdatedBy: /*#__PURE__*/ v.didString(), 13 - createdAt: /*#__PURE__*/ v.datetimeString(), 12 + name: /*#__PURE__*/ v.string(), 13 + subject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 updatedAt: /*#__PURE__*/ v.datetimeString(), 15 15 }); 16 16
+3 -3
packages/definitions/ozone/lib/lexicons/types/tools/ozone/communication/updateTemplate.ts
··· 8 8 input: { 9 9 type: 'lex', 10 10 schema: /*#__PURE__*/ v.object({ 11 + contentMarkdown: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 12 + disabled: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 11 13 id: /*#__PURE__*/ v.string(), 12 - name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 14 lang: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.languageCodeString()), 14 - contentMarkdown: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 + name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 16 subject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 16 17 updatedBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 17 - disabled: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 18 18 }), 19 19 }, 20 20 output: {
+7 -7
packages/definitions/ozone/lib/lexicons/types/tools/ozone/hosting/getAccountHistory.ts
··· 23 23 }); 24 24 const _eventSchema = /*#__PURE__*/ v.object({ 25 25 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.hosting.getAccountHistory#event')), 26 + createdAt: /*#__PURE__*/ v.datetimeString(), 27 + createdBy: /*#__PURE__*/ v.string(), 26 28 get details() { 27 29 return /*#__PURE__*/ v.variant([ 28 30 accountCreatedSchema, 31 + emailConfirmedSchema, 29 32 emailUpdatedSchema, 30 - emailConfirmedSchema, 33 + handleUpdatedSchema, 31 34 passwordUpdatedSchema, 32 - handleUpdatedSchema, 33 35 ]); 34 36 }, 35 - createdBy: /*#__PURE__*/ v.string(), 36 - createdAt: /*#__PURE__*/ v.datetimeString(), 37 37 }); 38 38 const _handleUpdatedSchema = /*#__PURE__*/ v.object({ 39 39 $type: /*#__PURE__*/ v.optional( ··· 43 43 }); 44 44 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.hosting.getAccountHistory', { 45 45 params: /*#__PURE__*/ v.object({ 46 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 46 47 did: /*#__PURE__*/ v.didString(), 47 48 events: /*#__PURE__*/ v.optional( 48 49 /*#__PURE__*/ v.array( 49 50 /*#__PURE__*/ v.string< 50 51 | 'accountCreated' 52 + | 'emailConfirmed' 51 53 | 'emailUpdated' 52 - | 'emailConfirmed' 54 + | 'handleUpdated' 53 55 | 'passwordUpdated' 54 - | 'handleUpdated' 55 56 | (string & {}) 56 57 >(), 57 58 ), 58 59 ), 59 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 60 60 limit: /*#__PURE__*/ v.optional( 61 61 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 62 62 50,
+124 -124
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/defs.ts
··· 9 9 10 10 const _accountEventSchema = /*#__PURE__*/ v.object({ 11 11 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#accountEvent')), 12 - comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 12 active: /*#__PURE__*/ v.boolean(), 13 + comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 status: /*#__PURE__*/ v.optional( 15 15 /*#__PURE__*/ v.string< 16 - 'unknown' | 'deactivated' | 'deleted' | 'takendown' | 'suspended' | 'tombstoned' | (string & {}) 16 + 'deactivated' | 'deleted' | 'suspended' | 'takendown' | 'tombstoned' | 'unknown' | (string & {}) 17 17 >(), 18 18 ), 19 19 timestamp: /*#__PURE__*/ v.datetimeString(), 20 20 }); 21 21 const _accountHostingSchema = /*#__PURE__*/ v.object({ 22 22 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#accountHosting')), 23 - status: /*#__PURE__*/ v.string< 24 - 'takendown' | 'suspended' | 'deleted' | 'deactivated' | 'unknown' | (string & {}) 25 - >(), 26 - updatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 27 23 createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 28 - deletedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 29 24 deactivatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 25 + deletedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 30 26 reactivatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 27 + status: /*#__PURE__*/ v.string< 28 + 'deactivated' | 'deleted' | 'suspended' | 'takendown' | 'unknown' | (string & {}) 29 + >(), 30 + updatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 31 31 }); 32 32 const _accountStatsSchema = /*#__PURE__*/ v.object({ 33 33 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#accountStats')), 34 + appealCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 35 + escalateCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 34 36 reportCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 35 - appealCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 36 37 suspendCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 37 - escalateCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 38 38 takedownCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 39 39 }); 40 40 const _blobViewSchema = /*#__PURE__*/ v.object({ 41 41 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#blobView')), 42 42 cid: /*#__PURE__*/ v.cidString(), 43 - mimeType: /*#__PURE__*/ v.string(), 44 - size: /*#__PURE__*/ v.integer(), 45 43 createdAt: /*#__PURE__*/ v.datetimeString(), 46 44 get details() { 47 45 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([imageDetailsSchema, videoDetailsSchema])); 48 46 }, 47 + mimeType: /*#__PURE__*/ v.string(), 49 48 get moderation() { 50 49 return /*#__PURE__*/ v.optional(moderationSchema); 51 50 }, 51 + size: /*#__PURE__*/ v.integer(), 52 52 }); 53 53 const _identityEventSchema = /*#__PURE__*/ v.object({ 54 54 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#identityEvent')), 55 55 comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 56 56 handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.handleString()), 57 57 pdsHost: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 58 - tombstone: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 59 58 timestamp: /*#__PURE__*/ v.datetimeString(), 59 + tombstone: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 60 60 }); 61 61 const _imageDetailsSchema = /*#__PURE__*/ v.object({ 62 62 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#imageDetails')), 63 - width: /*#__PURE__*/ v.integer(), 64 63 height: /*#__PURE__*/ v.integer(), 64 + width: /*#__PURE__*/ v.integer(), 65 65 }); 66 66 const _modEventAcknowledgeSchema = /*#__PURE__*/ v.object({ 67 67 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#modEventAcknowledge')), 68 - comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 69 68 acknowledgeAccountSubjects: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 69 + comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 70 70 }); 71 71 const _modEventCommentSchema = /*#__PURE__*/ v.object({ 72 72 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#modEventComment')), ··· 79 79 }); 80 80 const _modEventEmailSchema = /*#__PURE__*/ v.object({ 81 81 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#modEventEmail')), 82 - subjectLine: /*#__PURE__*/ v.string(), 82 + comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 83 83 content: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 84 - comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 84 + subjectLine: /*#__PURE__*/ v.string(), 85 85 }); 86 86 const _modEventEscalateSchema = /*#__PURE__*/ v.object({ 87 87 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#modEventEscalate')), ··· 91 91 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#modEventLabel')), 92 92 comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 93 93 createLabelVals: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 94 - negateLabelVals: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 95 94 durationInHours: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 95 + negateLabelVals: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 96 96 }); 97 97 const _modEventMuteSchema = /*#__PURE__*/ v.object({ 98 98 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#modEventMute')), ··· 136 136 const _modEventTagSchema = /*#__PURE__*/ v.object({ 137 137 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#modEventTag')), 138 138 add: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 139 - remove: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 140 139 comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 140 + remove: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 141 141 }); 142 142 const _modEventTakedownSchema = /*#__PURE__*/ v.object({ 143 143 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#modEventTakedown')), 144 + acknowledgeAccountSubjects: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 144 145 comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 145 146 durationInHours: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 146 - acknowledgeAccountSubjects: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 147 147 policies: /*#__PURE__*/ v.optional( 148 148 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), [ 149 149 /*#__PURE__*/ v.arrayLength(0, 5), ··· 162 162 }); 163 163 const _modEventViewSchema = /*#__PURE__*/ v.object({ 164 164 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#modEventView')), 165 - id: /*#__PURE__*/ v.integer(), 165 + createdAt: /*#__PURE__*/ v.datetimeString(), 166 + createdBy: /*#__PURE__*/ v.didString(), 167 + creatorHandle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 166 168 get event() { 167 169 return /*#__PURE__*/ v.variant([ 168 - modEventTakedownSchema, 169 - modEventReverseTakedownSchema, 170 + accountEventSchema, 171 + identityEventSchema, 172 + modEventAcknowledgeSchema, 170 173 modEventCommentSchema, 171 - modEventReportSchema, 172 - modEventLabelSchema, 173 - modEventAcknowledgeSchema, 174 + modEventDivertSchema, 175 + modEventEmailSchema, 174 176 modEventEscalateSchema, 177 + modEventLabelSchema, 175 178 modEventMuteSchema, 176 - modEventUnmuteSchema, 177 179 modEventMuteReporterSchema, 178 - modEventUnmuteReporterSchema, 179 - modEventEmailSchema, 180 + modEventPriorityScoreSchema, 181 + modEventReportSchema, 180 182 modEventResolveAppealSchema, 181 - modEventDivertSchema, 183 + modEventReverseTakedownSchema, 182 184 modEventTagSchema, 183 - accountEventSchema, 184 - identityEventSchema, 185 + modEventTakedownSchema, 186 + modEventUnmuteSchema, 187 + modEventUnmuteReporterSchema, 185 188 recordEventSchema, 186 - modEventPriorityScoreSchema, 187 189 ]); 188 190 }, 191 + id: /*#__PURE__*/ v.integer(), 189 192 get subject() { 190 193 return /*#__PURE__*/ v.variant([ 194 + ChatBskyConvoDefs.messageRefSchema, 191 195 ComAtprotoAdminDefs.repoRefSchema, 192 196 ComAtprotoRepoStrongRef.mainSchema, 193 - ChatBskyConvoDefs.messageRefSchema, 194 197 ]); 195 198 }, 196 199 subjectBlobCids: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 197 - createdBy: /*#__PURE__*/ v.didString(), 198 - createdAt: /*#__PURE__*/ v.datetimeString(), 199 - creatorHandle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 200 200 subjectHandle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 201 201 }); 202 202 const _modEventViewDetailSchema = /*#__PURE__*/ v.object({ 203 203 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#modEventViewDetail')), 204 - id: /*#__PURE__*/ v.integer(), 204 + createdAt: /*#__PURE__*/ v.datetimeString(), 205 + createdBy: /*#__PURE__*/ v.didString(), 205 206 get event() { 206 207 return /*#__PURE__*/ v.variant([ 207 - modEventTakedownSchema, 208 - modEventReverseTakedownSchema, 208 + accountEventSchema, 209 + identityEventSchema, 210 + modEventAcknowledgeSchema, 209 211 modEventCommentSchema, 210 - modEventReportSchema, 211 - modEventLabelSchema, 212 - modEventAcknowledgeSchema, 212 + modEventDivertSchema, 213 + modEventEmailSchema, 213 214 modEventEscalateSchema, 215 + modEventLabelSchema, 214 216 modEventMuteSchema, 215 - modEventUnmuteSchema, 216 217 modEventMuteReporterSchema, 217 - modEventUnmuteReporterSchema, 218 - modEventEmailSchema, 218 + modEventPriorityScoreSchema, 219 + modEventReportSchema, 219 220 modEventResolveAppealSchema, 220 - modEventDivertSchema, 221 + modEventReverseTakedownSchema, 221 222 modEventTagSchema, 222 - accountEventSchema, 223 - identityEventSchema, 223 + modEventTakedownSchema, 224 + modEventUnmuteSchema, 225 + modEventUnmuteReporterSchema, 224 226 recordEventSchema, 225 - modEventPriorityScoreSchema, 226 227 ]); 227 228 }, 229 + id: /*#__PURE__*/ v.integer(), 228 230 get subject() { 229 231 return /*#__PURE__*/ v.variant([ 230 - repoViewSchema, 231 - repoViewNotFoundSchema, 232 232 recordViewSchema, 233 233 recordViewNotFoundSchema, 234 + repoViewSchema, 235 + repoViewNotFoundSchema, 234 236 ]); 235 237 }, 236 238 get subjectBlobs() { 237 239 return /*#__PURE__*/ v.array(blobViewSchema); 238 240 }, 239 - createdBy: /*#__PURE__*/ v.didString(), 240 - createdAt: /*#__PURE__*/ v.datetimeString(), 241 241 }); 242 242 const _moderationSchema = /*#__PURE__*/ v.object({ 243 243 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#moderation')), ··· 253 253 }); 254 254 const _recordEventSchema = /*#__PURE__*/ v.object({ 255 255 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#recordEvent')), 256 + cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 256 257 comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 257 - op: /*#__PURE__*/ v.string<'create' | 'update' | 'delete' | (string & {})>(), 258 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 258 + op: /*#__PURE__*/ v.string<'create' | 'delete' | 'update' | (string & {})>(), 259 259 timestamp: /*#__PURE__*/ v.datetimeString(), 260 260 }); 261 261 const _recordHostingSchema = /*#__PURE__*/ v.object({ 262 262 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#recordHosting')), 263 - status: /*#__PURE__*/ v.string<'deleted' | 'unknown' | (string & {})>(), 264 - updatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 265 263 createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 266 264 deletedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 265 + status: /*#__PURE__*/ v.string<'deleted' | 'unknown' | (string & {})>(), 266 + updatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 267 267 }); 268 268 const _recordViewSchema = /*#__PURE__*/ v.object({ 269 269 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#recordView')), 270 - uri: /*#__PURE__*/ v.resourceUriString(), 270 + blobCids: /*#__PURE__*/ v.array(/*#__PURE__*/ v.cidString()), 271 271 cid: /*#__PURE__*/ v.cidString(), 272 - value: /*#__PURE__*/ v.unknown(), 273 - blobCids: /*#__PURE__*/ v.array(/*#__PURE__*/ v.cidString()), 274 272 indexedAt: /*#__PURE__*/ v.datetimeString(), 275 273 get moderation() { 276 274 return moderationSchema; ··· 278 276 get repo() { 279 277 return repoViewSchema; 280 278 }, 279 + uri: /*#__PURE__*/ v.resourceUriString(), 280 + value: /*#__PURE__*/ v.unknown(), 281 281 }); 282 282 const _recordViewDetailSchema = /*#__PURE__*/ v.object({ 283 283 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#recordViewDetail')), 284 - uri: /*#__PURE__*/ v.resourceUriString(), 285 - cid: /*#__PURE__*/ v.cidString(), 286 - value: /*#__PURE__*/ v.unknown(), 287 284 get blobs() { 288 285 return /*#__PURE__*/ v.array(blobViewSchema); 289 286 }, 287 + cid: /*#__PURE__*/ v.cidString(), 288 + indexedAt: /*#__PURE__*/ v.datetimeString(), 290 289 get labels() { 291 290 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 292 291 }, 293 - indexedAt: /*#__PURE__*/ v.datetimeString(), 294 292 get moderation() { 295 293 return moderationDetailSchema; 296 294 }, 297 295 get repo() { 298 296 return repoViewSchema; 299 297 }, 298 + uri: /*#__PURE__*/ v.resourceUriString(), 299 + value: /*#__PURE__*/ v.unknown(), 300 300 }); 301 301 const _recordViewNotFoundSchema = /*#__PURE__*/ v.object({ 302 302 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#recordViewNotFound')), ··· 304 304 }); 305 305 const _recordsStatsSchema = /*#__PURE__*/ v.object({ 306 306 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#recordsStats')), 307 - totalReports: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 308 - reportedCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 309 - escalatedCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 310 307 appealedCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 311 - subjectCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 308 + escalatedCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 312 309 pendingCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 313 310 processedCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 311 + reportedCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 312 + subjectCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 314 313 takendownCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 314 + totalReports: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 315 315 }); 316 316 const _repoViewSchema = /*#__PURE__*/ v.object({ 317 317 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#repoView')), 318 + deactivatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 318 319 did: /*#__PURE__*/ v.didString(), 319 - handle: /*#__PURE__*/ v.handleString(), 320 320 email: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 321 - relatedRecords: /*#__PURE__*/ v.array(/*#__PURE__*/ v.unknown()), 321 + handle: /*#__PURE__*/ v.handleString(), 322 322 indexedAt: /*#__PURE__*/ v.datetimeString(), 323 - get moderation() { 324 - return moderationSchema; 325 - }, 323 + inviteNote: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 326 324 get invitedBy() { 327 325 return /*#__PURE__*/ v.optional(ComAtprotoServerDefs.inviteCodeSchema); 328 326 }, 329 327 invitesDisabled: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 330 - inviteNote: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 331 - deactivatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 328 + get moderation() { 329 + return moderationSchema; 330 + }, 331 + relatedRecords: /*#__PURE__*/ v.array(/*#__PURE__*/ v.unknown()), 332 332 get threatSignatures() { 333 333 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoAdminDefs.threatSignatureSchema)); 334 334 }, 335 335 }); 336 336 const _repoViewDetailSchema = /*#__PURE__*/ v.object({ 337 337 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#repoViewDetail')), 338 + deactivatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 338 339 did: /*#__PURE__*/ v.didString(), 340 + email: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 341 + emailConfirmedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 339 342 handle: /*#__PURE__*/ v.handleString(), 340 - email: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 341 - relatedRecords: /*#__PURE__*/ v.array(/*#__PURE__*/ v.unknown()), 342 343 indexedAt: /*#__PURE__*/ v.datetimeString(), 343 - get moderation() { 344 - return moderationDetailSchema; 345 - }, 346 - get labels() { 347 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 348 - }, 344 + inviteNote: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 349 345 get invitedBy() { 350 346 return /*#__PURE__*/ v.optional(ComAtprotoServerDefs.inviteCodeSchema); 351 347 }, ··· 353 349 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoServerDefs.inviteCodeSchema)); 354 350 }, 355 351 invitesDisabled: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 356 - inviteNote: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 357 - emailConfirmedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 358 - deactivatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 352 + get labels() { 353 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema)); 354 + }, 355 + get moderation() { 356 + return moderationDetailSchema; 357 + }, 358 + relatedRecords: /*#__PURE__*/ v.array(/*#__PURE__*/ v.unknown()), 359 359 get threatSignatures() { 360 360 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoAdminDefs.threatSignatureSchema)); 361 361 }, ··· 366 366 }); 367 367 const _reporterStatsSchema = /*#__PURE__*/ v.object({ 368 368 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#reporterStats')), 369 + accountReportCount: /*#__PURE__*/ v.integer(), 369 370 did: /*#__PURE__*/ v.didString(), 370 - accountReportCount: /*#__PURE__*/ v.integer(), 371 + labeledAccountCount: /*#__PURE__*/ v.integer(), 372 + labeledRecordCount: /*#__PURE__*/ v.integer(), 371 373 recordReportCount: /*#__PURE__*/ v.integer(), 372 374 reportedAccountCount: /*#__PURE__*/ v.integer(), 373 375 reportedRecordCount: /*#__PURE__*/ v.integer(), 374 376 takendownAccountCount: /*#__PURE__*/ v.integer(), 375 377 takendownRecordCount: /*#__PURE__*/ v.integer(), 376 - labeledAccountCount: /*#__PURE__*/ v.integer(), 377 - labeledRecordCount: /*#__PURE__*/ v.integer(), 378 378 }); 379 379 const _reviewClosedSchema = /*#__PURE__*/ v.literal('tools.ozone.moderation.defs#reviewClosed'); 380 380 const _reviewEscalatedSchema = /*#__PURE__*/ v.literal('tools.ozone.moderation.defs#reviewEscalated'); 381 381 const _reviewNoneSchema = /*#__PURE__*/ v.literal('tools.ozone.moderation.defs#reviewNone'); 382 382 const _reviewOpenSchema = /*#__PURE__*/ v.literal('tools.ozone.moderation.defs#reviewOpen'); 383 383 const _subjectReviewStateSchema = /*#__PURE__*/ v.string< 384 - '#reviewOpen' | '#reviewEscalated' | '#reviewClosed' | '#reviewNone' | (string & {}) 384 + '#reviewClosed' | '#reviewEscalated' | '#reviewNone' | '#reviewOpen' | (string & {}) 385 385 >(); 386 386 const _subjectStatusViewSchema = /*#__PURE__*/ v.object({ 387 387 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#subjectStatusView')), 388 - id: /*#__PURE__*/ v.integer(), 389 - get subject() { 390 - return /*#__PURE__*/ v.variant([ComAtprotoAdminDefs.repoRefSchema, ComAtprotoRepoStrongRef.mainSchema]); 388 + get accountStats() { 389 + return /*#__PURE__*/ v.optional(accountStatsSchema); 391 390 }, 391 + appealed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 392 + comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 393 + createdAt: /*#__PURE__*/ v.datetimeString(), 392 394 get hosting() { 393 395 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([accountHostingSchema, recordHostingSchema])); 394 396 }, 395 - subjectBlobCids: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.cidString())), 396 - subjectRepoHandle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 397 - updatedAt: /*#__PURE__*/ v.datetimeString(), 398 - createdAt: /*#__PURE__*/ v.datetimeString(), 399 - get reviewState() { 400 - return subjectReviewStateSchema; 401 - }, 402 - comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 397 + id: /*#__PURE__*/ v.integer(), 398 + lastAppealedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 399 + lastReportedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 400 + lastReviewedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 401 + lastReviewedBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 402 + muteReportingUntil: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 403 + muteUntil: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 403 404 priorityScore: /*#__PURE__*/ v.optional( 404 405 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(0, 100)]), 405 406 ), 406 - muteUntil: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 407 - muteReportingUntil: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 408 - lastReviewedBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 409 - lastReviewedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 410 - lastReportedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 411 - lastAppealedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 412 - takendown: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 413 - appealed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 414 - suspendUntil: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 415 - tags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 416 - get accountStats() { 417 - return /*#__PURE__*/ v.optional(accountStatsSchema); 418 - }, 419 407 get recordsStats() { 420 408 return /*#__PURE__*/ v.optional(recordsStatsSchema); 421 409 }, 410 + get reviewState() { 411 + return subjectReviewStateSchema; 412 + }, 413 + get subject() { 414 + return /*#__PURE__*/ v.variant([ComAtprotoAdminDefs.repoRefSchema, ComAtprotoRepoStrongRef.mainSchema]); 415 + }, 416 + subjectBlobCids: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.cidString())), 417 + subjectRepoHandle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 418 + suspendUntil: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 419 + tags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 420 + takendown: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 421 + updatedAt: /*#__PURE__*/ v.datetimeString(), 422 422 }); 423 423 const _subjectViewSchema = /*#__PURE__*/ v.object({ 424 424 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#subjectView')), 425 - get type() { 426 - return ComAtprotoModerationDefs.subjectTypeSchema; 425 + get profile() { 426 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([])); 427 427 }, 428 - subject: /*#__PURE__*/ v.string(), 429 - get status() { 430 - return /*#__PURE__*/ v.optional(subjectStatusViewSchema); 428 + get record() { 429 + return /*#__PURE__*/ v.optional(recordViewDetailSchema); 431 430 }, 432 431 get repo() { 433 432 return /*#__PURE__*/ v.optional(repoViewDetailSchema); 434 433 }, 435 - get profile() { 436 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([])); 434 + get status() { 435 + return /*#__PURE__*/ v.optional(subjectStatusViewSchema); 437 436 }, 438 - get record() { 439 - return /*#__PURE__*/ v.optional(recordViewDetailSchema); 437 + subject: /*#__PURE__*/ v.string(), 438 + get type() { 439 + return ComAtprotoModerationDefs.subjectTypeSchema; 440 440 }, 441 441 }); 442 442 const _videoDetailsSchema = /*#__PURE__*/ v.object({ 443 443 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#videoDetails')), 444 - width: /*#__PURE__*/ v.integer(), 445 444 height: /*#__PURE__*/ v.integer(), 446 445 length: /*#__PURE__*/ v.integer(), 446 + width: /*#__PURE__*/ v.integer(), 447 447 }); 448 448 449 449 type accountEvent$schematype = typeof _accountEventSchema;
+12 -12
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/emitEvent.ts
··· 10 10 input: { 11 11 type: 'lex', 12 12 schema: /*#__PURE__*/ v.object({ 13 + createdBy: /*#__PURE__*/ v.didString(), 13 14 get event() { 14 15 return /*#__PURE__*/ v.variant([ 15 - ToolsOzoneModerationDefs.modEventTakedownSchema, 16 + ToolsOzoneModerationDefs.accountEventSchema, 17 + ToolsOzoneModerationDefs.identityEventSchema, 16 18 ToolsOzoneModerationDefs.modEventAcknowledgeSchema, 17 - ToolsOzoneModerationDefs.modEventEscalateSchema, 18 19 ToolsOzoneModerationDefs.modEventCommentSchema, 20 + ToolsOzoneModerationDefs.modEventDivertSchema, 21 + ToolsOzoneModerationDefs.modEventEmailSchema, 22 + ToolsOzoneModerationDefs.modEventEscalateSchema, 19 23 ToolsOzoneModerationDefs.modEventLabelSchema, 20 - ToolsOzoneModerationDefs.modEventReportSchema, 21 24 ToolsOzoneModerationDefs.modEventMuteSchema, 22 - ToolsOzoneModerationDefs.modEventUnmuteSchema, 23 25 ToolsOzoneModerationDefs.modEventMuteReporterSchema, 24 - ToolsOzoneModerationDefs.modEventUnmuteReporterSchema, 25 - ToolsOzoneModerationDefs.modEventReverseTakedownSchema, 26 + ToolsOzoneModerationDefs.modEventPriorityScoreSchema, 27 + ToolsOzoneModerationDefs.modEventReportSchema, 26 28 ToolsOzoneModerationDefs.modEventResolveAppealSchema, 27 - ToolsOzoneModerationDefs.modEventEmailSchema, 28 - ToolsOzoneModerationDefs.modEventDivertSchema, 29 + ToolsOzoneModerationDefs.modEventReverseTakedownSchema, 29 30 ToolsOzoneModerationDefs.modEventTagSchema, 30 - ToolsOzoneModerationDefs.accountEventSchema, 31 - ToolsOzoneModerationDefs.identityEventSchema, 31 + ToolsOzoneModerationDefs.modEventTakedownSchema, 32 + ToolsOzoneModerationDefs.modEventUnmuteSchema, 33 + ToolsOzoneModerationDefs.modEventUnmuteReporterSchema, 32 34 ToolsOzoneModerationDefs.recordEventSchema, 33 - ToolsOzoneModerationDefs.modEventPriorityScoreSchema, 34 35 ]); 35 36 }, 36 37 get subject() { ··· 40 41 ]); 41 42 }, 42 43 subjectBlobCids: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.cidString())), 43 - createdBy: /*#__PURE__*/ v.didString(), 44 44 }), 45 45 }, 46 46 output: {
+1 -1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/getRecord.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.moderation.getRecord', { 7 7 params: /*#__PURE__*/ v.object({ 8 - uri: /*#__PURE__*/ v.resourceUriString(), 9 8 cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 9 + uri: /*#__PURE__*/ v.resourceUriString(), 10 10 }), 11 11 output: { 12 12 type: 'lex',
+13 -13
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/queryEvents.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.moderation.queryEvents', { 7 7 params: /*#__PURE__*/ v.object({ 8 - types: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 9 - createdBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 10 - sortDirection: /*#__PURE__*/ v.literalEnum(['asc', 'desc']), 11 - createdAfter: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 12 - createdBefore: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 13 - subject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 8 + addedLabels: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 9 + addedTags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 14 10 collections: /*#__PURE__*/ v.optional( 15 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString()), [ 16 12 /*#__PURE__*/ v.arrayLength(0, 20), 17 13 ]), 18 14 ), 19 - subjectType: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'account' | 'record' | (string & {})>()), 15 + comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 16 + createdAfter: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 17 + createdBefore: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 18 + createdBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 19 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 20 + hasComment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 20 21 includeAllUserRecords: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 21 22 limit: /*#__PURE__*/ v.optional( 22 23 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 23 24 50, 24 25 ), 25 - hasComment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 26 - comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 27 - addedLabels: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 26 + policies: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 28 27 removedLabels: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 29 - addedTags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 30 28 removedTags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 31 29 reportTypes: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 32 - policies: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 33 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 30 + sortDirection: /*#__PURE__*/ v.literalEnum(['asc', 'desc']), 31 + subject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 32 + subjectType: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'account' | 'record' | (string & {})>()), 33 + types: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 34 34 }), 35 35 output: { 36 36 type: 'lex',
+35 -35
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/queryStatuses.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.moderation.queryStatuses', { 7 7 params: /*#__PURE__*/ v.object({ 8 - queueCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 9 - queueIndex: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 10 - queueSeed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 - includeAllUserRecords: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 12 - subject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 8 + appealed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 9 + collections: /*#__PURE__*/ v.optional( 10 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString()), [ 11 + /*#__PURE__*/ v.arrayLength(0, 20), 12 + ]), 13 + ), 13 14 comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 - reportedAfter: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 15 - reportedBefore: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 16 - reviewedAfter: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 15 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 16 + excludeTags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 17 17 hostingDeletedAfter: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 18 18 hostingDeletedBefore: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 19 + hostingStatuses: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 19 20 hostingUpdatedAfter: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 20 21 hostingUpdatedBefore: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 21 - hostingStatuses: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 22 - reviewedBefore: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 22 + ignoreSubjects: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.genericUriString())), 23 + includeAllUserRecords: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 23 24 includeMuted: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 25 + lastReviewedBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 26 + limit: /*#__PURE__*/ v.optional( 27 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 28 + 50, 29 + ), 30 + minAccountSuspendCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 31 + minPriorityScore: /*#__PURE__*/ v.optional( 32 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(0, 100)]), 33 + ), 34 + minReportedRecordsCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 35 + minTakendownRecordsCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 24 36 onlyMuted: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 37 + queueCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 38 + queueIndex: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 39 + queueSeed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 40 + reportedAfter: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 41 + reportedBefore: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 25 42 reviewState: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 26 - ignoreSubjects: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.genericUriString())), 27 - lastReviewedBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 43 + reviewedAfter: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 44 + reviewedBefore: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 45 + sortDirection: /*#__PURE__*/ v.literalEnum(['asc', 'desc']), 28 46 sortField: /*#__PURE__*/ v.literalEnum([ 29 - 'lastReviewedAt', 30 47 'lastReportedAt', 48 + 'lastReviewedAt', 49 + 'priorityScore', 31 50 'reportedRecordsCount', 32 51 'takendownRecordsCount', 33 - 'priorityScore', 34 52 ]), 35 - sortDirection: /*#__PURE__*/ v.literalEnum(['asc', 'desc']), 36 - takendown: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 37 - appealed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 38 - limit: /*#__PURE__*/ v.optional( 39 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 40 - 50, 41 - ), 53 + subject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 54 + subjectType: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'account' | 'record' | (string & {})>()), 42 55 tags: /*#__PURE__*/ v.optional( 43 56 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), [ 44 57 /*#__PURE__*/ v.arrayLength(0, 25), 45 58 ]), 46 59 ), 47 - excludeTags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 48 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 49 - collections: /*#__PURE__*/ v.optional( 50 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString()), [ 51 - /*#__PURE__*/ v.arrayLength(0, 20), 52 - ]), 53 - ), 54 - subjectType: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'account' | 'record' | (string & {})>()), 55 - minAccountSuspendCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 56 - minReportedRecordsCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 57 - minTakendownRecordsCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 58 - minPriorityScore: /*#__PURE__*/ v.optional( 59 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(0, 100)]), 60 - ), 60 + takendown: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 61 61 }), 62 62 output: { 63 63 type: 'lex',
+3 -3
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/searchRepos.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.moderation.searchRepos', { 7 7 params: /*#__PURE__*/ v.object({ 8 - term: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 - q: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 9 limit: /*#__PURE__*/ v.optional( 11 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 12 11 50, 13 12 ), 14 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + q: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 + term: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 15 }), 16 16 output: { 17 17 type: 'lex',
+4 -4
packages/definitions/ozone/lib/lexicons/types/tools/ozone/server/getConfig.ts
··· 10 10 get appview() { 11 11 return /*#__PURE__*/ v.optional(serviceConfigSchema); 12 12 }, 13 - get pds() { 14 - return /*#__PURE__*/ v.optional(serviceConfigSchema); 15 - }, 16 13 get blobDivert() { 17 14 return /*#__PURE__*/ v.optional(serviceConfigSchema); 18 15 }, 19 16 get chat() { 20 17 return /*#__PURE__*/ v.optional(serviceConfigSchema); 21 18 }, 19 + get pds() { 20 + return /*#__PURE__*/ v.optional(serviceConfigSchema); 21 + }, 22 + verifierDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 22 23 get viewer() { 23 24 return /*#__PURE__*/ v.optional(viewerConfigSchema); 24 25 }, 25 - verifierDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 26 26 }), 27 27 }, 28 28 });
+3 -3
packages/definitions/ozone/lib/lexicons/types/tools/ozone/set/defs.ts
··· 3 3 4 4 const _setSchema = /*#__PURE__*/ v.object({ 5 5 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.set.defs#set')), 6 - name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(3, 128)]), 7 6 description: /*#__PURE__*/ v.optional( 8 7 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 9 8 /*#__PURE__*/ v.stringLength(0, 10240), 10 9 /*#__PURE__*/ v.stringGraphemes(0, 1024), 11 10 ]), 12 11 ), 12 + name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(3, 128)]), 13 13 }); 14 14 const _setViewSchema = /*#__PURE__*/ v.object({ 15 15 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.set.defs#setView')), 16 - name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(3, 128)]), 16 + createdAt: /*#__PURE__*/ v.datetimeString(), 17 17 description: /*#__PURE__*/ v.optional( 18 18 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 19 19 /*#__PURE__*/ v.stringLength(0, 10240), 20 20 /*#__PURE__*/ v.stringGraphemes(0, 1024), 21 21 ]), 22 22 ), 23 + name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(3, 128)]), 23 24 setSize: /*#__PURE__*/ v.integer(), 24 - createdAt: /*#__PURE__*/ v.datetimeString(), 25 25 updatedAt: /*#__PURE__*/ v.datetimeString(), 26 26 }); 27 27
+3 -3
packages/definitions/ozone/lib/lexicons/types/tools/ozone/set/getValues.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.set.getValues', { 7 7 params: /*#__PURE__*/ v.object({ 8 - name: /*#__PURE__*/ v.string(), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 9 limit: /*#__PURE__*/ v.optional( 10 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 1000)]), 11 11 100, 12 12 ), 13 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + name: /*#__PURE__*/ v.string(), 14 14 }), 15 15 output: { 16 16 type: 'lex', 17 17 schema: /*#__PURE__*/ v.object({ 18 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 18 19 get set() { 19 20 return ToolsOzoneSetDefs.setViewSchema; 20 21 }, 21 22 values: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 22 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 23 23 }), 24 24 }, 25 25 });
+3 -3
packages/definitions/ozone/lib/lexicons/types/tools/ozone/set/querySets.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.set.querySets', { 7 7 params: /*#__PURE__*/ v.object({ 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 9 limit: /*#__PURE__*/ v.optional( 9 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 10 11 50, 11 12 ), 12 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 13 namePrefix: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 - sortBy: /*#__PURE__*/ v.literalEnum(['name', 'createdAt', 'updatedAt']), 14 + sortBy: /*#__PURE__*/ v.literalEnum(['createdAt', 'name', 'updatedAt']), 15 15 sortDirection: /*#__PURE__*/ v.literalEnum(['asc', 'desc']), 16 16 }), 17 17 output: { 18 18 type: 'lex', 19 19 schema: /*#__PURE__*/ v.object({ 20 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 20 21 get sets() { 21 22 return /*#__PURE__*/ v.array(ToolsOzoneSetDefs.setViewSchema); 22 23 }, 23 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 24 24 }), 25 25 }, 26 26 });
+8 -8
packages/definitions/ozone/lib/lexicons/types/tools/ozone/setting/defs.ts
··· 3 3 4 4 const _optionSchema = /*#__PURE__*/ v.object({ 5 5 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.setting.defs#option')), 6 - key: /*#__PURE__*/ v.nsidString(), 7 - did: /*#__PURE__*/ v.didString(), 8 - value: /*#__PURE__*/ v.unknown(), 6 + createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 7 + createdBy: /*#__PURE__*/ v.didString(), 9 8 description: /*#__PURE__*/ v.optional( 10 9 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 11 10 /*#__PURE__*/ v.stringLength(0, 10240), 12 11 /*#__PURE__*/ v.stringGraphemes(0, 1024), 13 12 ]), 14 13 ), 15 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 16 - updatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 14 + did: /*#__PURE__*/ v.didString(), 15 + key: /*#__PURE__*/ v.nsidString(), 16 + lastUpdatedBy: /*#__PURE__*/ v.didString(), 17 17 managerRole: /*#__PURE__*/ v.optional( 18 18 /*#__PURE__*/ v.string< 19 + | 'tools.ozone.team.defs#roleAdmin' 19 20 | 'tools.ozone.team.defs#roleModerator' 20 21 | 'tools.ozone.team.defs#roleTriage' 21 - | 'tools.ozone.team.defs#roleAdmin' 22 22 | 'tools.ozone.team.defs#roleVerifier' 23 23 | (string & {}) 24 24 >(), 25 25 ), 26 26 scope: /*#__PURE__*/ v.string<'instance' | 'personal' | (string & {})>(), 27 - createdBy: /*#__PURE__*/ v.didString(), 28 - lastUpdatedBy: /*#__PURE__*/ v.didString(), 27 + updatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 28 + value: /*#__PURE__*/ v.unknown(), 29 29 }); 30 30 31 31 type option$schematype = typeof _optionSchema;
+7 -7
packages/definitions/ozone/lib/lexicons/types/tools/ozone/setting/listOptions.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.setting.listOptions', { 7 7 params: /*#__PURE__*/ v.object({ 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 + keys: /*#__PURE__*/ v.optional( 10 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString()), [ 11 + /*#__PURE__*/ v.arrayLength(0, 100), 12 + ]), 13 + ), 8 14 limit: /*#__PURE__*/ v.optional( 9 15 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 10 16 50, 11 17 ), 12 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 18 + prefix: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 19 scope: /*#__PURE__*/ v.optional( 14 20 /*#__PURE__*/ v.string<'instance' | 'personal' | (string & {})>(), 15 21 'instance', 16 - ), 17 - prefix: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 18 - keys: /*#__PURE__*/ v.optional( 19 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString()), [ 20 - /*#__PURE__*/ v.arrayLength(0, 100), 21 - ]), 22 22 ), 23 23 }), 24 24 output: {
+4 -4
packages/definitions/ozone/lib/lexicons/types/tools/ozone/setting/upsertOption.ts
··· 8 8 input: { 9 9 type: 'lex', 10 10 schema: /*#__PURE__*/ v.object({ 11 - key: /*#__PURE__*/ v.nsidString(), 12 - scope: /*#__PURE__*/ v.string<'instance' | 'personal' | (string & {})>(), 13 - value: /*#__PURE__*/ v.unknown(), 14 11 description: /*#__PURE__*/ v.optional( 15 12 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 2000)]), 16 13 ), 14 + key: /*#__PURE__*/ v.nsidString(), 17 15 managerRole: /*#__PURE__*/ v.optional( 18 16 /*#__PURE__*/ v.string< 17 + | 'tools.ozone.team.defs#roleAdmin' 19 18 | 'tools.ozone.team.defs#roleModerator' 20 19 | 'tools.ozone.team.defs#roleTriage' 21 20 | 'tools.ozone.team.defs#roleVerifier' 22 - | 'tools.ozone.team.defs#roleAdmin' 23 21 | (string & {}) 24 22 >(), 25 23 ), 24 + scope: /*#__PURE__*/ v.string<'instance' | 'personal' | (string & {})>(), 25 + value: /*#__PURE__*/ v.unknown(), 26 26 }), 27 27 }, 28 28 output: {
+2 -2
packages/definitions/ozone/lib/lexicons/types/tools/ozone/signature/findRelatedAccounts.ts
··· 6 6 7 7 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.signature.findRelatedAccounts', { 8 8 params: /*#__PURE__*/ v.object({ 9 - did: /*#__PURE__*/ v.didString(), 10 9 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 + did: /*#__PURE__*/ v.didString(), 11 11 limit: /*#__PURE__*/ v.optional( 12 12 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 13 13 50, ··· 16 16 output: { 17 17 type: 'lex', 18 18 schema: /*#__PURE__*/ v.object({ 19 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 20 19 get accounts() { 21 20 return /*#__PURE__*/ v.array(relatedAccountSchema); 22 21 }, 22 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 23 23 }), 24 24 }, 25 25 });
+2 -2
packages/definitions/ozone/lib/lexicons/types/tools/ozone/signature/searchAccounts.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.signature.searchAccounts', { 7 7 params: /*#__PURE__*/ v.object({ 8 - values: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 9 8 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 9 limit: /*#__PURE__*/ v.optional( 11 10 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 12 11 50, 13 12 ), 13 + values: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 14 14 }), 15 15 output: { 16 16 type: 'lex', 17 17 schema: /*#__PURE__*/ v.object({ 18 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 19 18 get accounts() { 20 19 return /*#__PURE__*/ v.array(ComAtprotoAdminDefs.accountViewSchema); 21 20 }, 21 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 22 22 }), 23 23 }, 24 24 });
+1 -1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/team/addMember.ts
··· 12 12 role: /*#__PURE__*/ v.string< 13 13 | 'tools.ozone.team.defs#roleAdmin' 14 14 | 'tools.ozone.team.defs#roleModerator' 15 - | 'tools.ozone.team.defs#roleVerifier' 16 15 | 'tools.ozone.team.defs#roleTriage' 16 + | 'tools.ozone.team.defs#roleVerifier' 17 17 | (string & {}) 18 18 >(), 19 19 }),
+3 -3
packages/definitions/ozone/lib/lexicons/types/tools/ozone/team/defs.ts
··· 4 4 5 5 const _memberSchema = /*#__PURE__*/ v.object({ 6 6 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.team.defs#member')), 7 + createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 7 8 did: /*#__PURE__*/ v.didString(), 8 9 disabled: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 10 + lastUpdatedBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 11 get profile() { 10 12 return /*#__PURE__*/ v.optional(AppBskyActorDefs.profileViewDetailedSchema); 11 13 }, 12 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 13 - updatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 14 - lastUpdatedBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 14 role: /*#__PURE__*/ v.string< 16 15 '#roleAdmin' | '#roleModerator' | '#roleTriage' | '#roleVerifier' | (string & {}) 17 16 >(), 17 + updatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 18 18 }); 19 19 const _roleAdminSchema = /*#__PURE__*/ v.literal('tools.ozone.team.defs#roleAdmin'); 20 20 const _roleModeratorSchema = /*#__PURE__*/ v.literal('tools.ozone.team.defs#roleModerator');
+3 -3
packages/definitions/ozone/lib/lexicons/types/tools/ozone/team/listMembers.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.team.listMembers', { 7 7 params: /*#__PURE__*/ v.object({ 8 - q: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 9 disabled: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 10 - roles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 11 10 limit: /*#__PURE__*/ v.optional( 12 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 13 12 50, 14 13 ), 15 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 + q: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 + roles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 16 16 }), 17 17 output: { 18 18 type: 'lex',
+1 -1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/team/updateMember.ts
··· 14 14 /*#__PURE__*/ v.string< 15 15 | 'tools.ozone.team.defs#roleAdmin' 16 16 | 'tools.ozone.team.defs#roleModerator' 17 - | 'tools.ozone.team.defs#roleVerifier' 18 17 | 'tools.ozone.team.defs#roleTriage' 18 + | 'tools.ozone.team.defs#roleVerifier' 19 19 | (string & {}) 20 20 >(), 21 21 ),
+13 -13
packages/definitions/ozone/lib/lexicons/types/tools/ozone/verification/defs.ts
··· 4 4 5 5 const _verificationViewSchema = /*#__PURE__*/ v.object({ 6 6 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.verification.defs#verificationView')), 7 - issuer: /*#__PURE__*/ v.didString(), 8 - uri: /*#__PURE__*/ v.resourceUriString(), 9 - subject: /*#__PURE__*/ v.didString(), 7 + createdAt: /*#__PURE__*/ v.datetimeString(), 8 + displayName: /*#__PURE__*/ v.string(), 10 9 handle: /*#__PURE__*/ v.handleString(), 11 - displayName: /*#__PURE__*/ v.string(), 12 - createdAt: /*#__PURE__*/ v.datetimeString(), 13 - revokeReason: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 - revokedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 15 - revokedBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 16 - get subjectProfile() { 17 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([])); 18 - }, 10 + issuer: /*#__PURE__*/ v.didString(), 19 11 get issuerProfile() { 20 12 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([])); 21 13 }, 22 - get subjectRepo() { 14 + get issuerRepo() { 23 15 return /*#__PURE__*/ v.optional( 24 16 /*#__PURE__*/ v.variant([ 25 17 ToolsOzoneModerationDefs.repoViewDetailSchema, ··· 27 19 ]), 28 20 ); 29 21 }, 30 - get issuerRepo() { 22 + revokeReason: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 23 + revokedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 24 + revokedBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 25 + subject: /*#__PURE__*/ v.didString(), 26 + get subjectProfile() { 27 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([])); 28 + }, 29 + get subjectRepo() { 31 30 return /*#__PURE__*/ v.optional( 32 31 /*#__PURE__*/ v.variant([ 33 32 ToolsOzoneModerationDefs.repoViewDetailSchema, ··· 35 34 ]), 36 35 ); 37 36 }, 37 + uri: /*#__PURE__*/ v.resourceUriString(), 38 38 }); 39 39 40 40 type verificationView$schematype = typeof _verificationViewSchema;
+6 -6
packages/definitions/ozone/lib/lexicons/types/tools/ozone/verification/grantVerifications.ts
··· 25 25 output: { 26 26 type: 'lex', 27 27 schema: /*#__PURE__*/ v.object({ 28 - get verifications() { 29 - return /*#__PURE__*/ v.array(ToolsOzoneVerificationDefs.verificationViewSchema); 30 - }, 31 28 get failedVerifications() { 32 29 return /*#__PURE__*/ v.array(grantErrorSchema); 30 + }, 31 + get verifications() { 32 + return /*#__PURE__*/ v.array(ToolsOzoneVerificationDefs.verificationViewSchema); 33 33 }, 34 34 }), 35 35 }, ··· 38 38 $type: /*#__PURE__*/ v.optional( 39 39 /*#__PURE__*/ v.literal('tools.ozone.verification.grantVerifications#verificationInput'), 40 40 ), 41 - subject: /*#__PURE__*/ v.didString(), 42 - handle: /*#__PURE__*/ v.handleString(), 43 - displayName: /*#__PURE__*/ v.string(), 44 41 createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 42 + displayName: /*#__PURE__*/ v.string(), 43 + handle: /*#__PURE__*/ v.handleString(), 44 + subject: /*#__PURE__*/ v.didString(), 45 45 }); 46 46 47 47 type grantError$schematype = typeof _grantErrorSchema;
+7 -7
packages/definitions/ozone/lib/lexicons/types/tools/ozone/verification/listVerifications.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.verification.listVerifications', { 7 7 params: /*#__PURE__*/ v.object({ 8 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 - limit: /*#__PURE__*/ v.optional( 10 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 11 - 50, 12 - ), 13 8 createdAfter: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 14 9 createdBefore: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 10 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 + isRevoked: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 15 12 issuers: /*#__PURE__*/ v.optional( 16 13 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), [ 17 14 /*#__PURE__*/ v.arrayLength(0, 100), 18 15 ]), 19 16 ), 17 + limit: /*#__PURE__*/ v.optional( 18 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 19 + 50, 20 + ), 21 + sortDirection: /*#__PURE__*/ v.literalEnum(['asc', 'desc']), 20 22 subjects: /*#__PURE__*/ v.optional( 21 23 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), [ 22 24 /*#__PURE__*/ v.arrayLength(0, 100), 23 25 ]), 24 26 ), 25 - sortDirection: /*#__PURE__*/ v.literalEnum(['asc', 'desc']), 26 - isRevoked: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 27 27 }), 28 28 output: { 29 29 type: 'lex',
+5 -5
packages/definitions/ozone/lib/lexicons/types/tools/ozone/verification/revokeVerifications.ts
··· 7 7 input: { 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 - uris: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [ 11 - /*#__PURE__*/ v.arrayLength(0, 100), 12 - ]), 13 10 revokeReason: /*#__PURE__*/ v.optional( 14 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 1000)]), 15 12 ), 13 + uris: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [ 14 + /*#__PURE__*/ v.arrayLength(0, 100), 15 + ]), 16 16 }), 17 17 }, 18 18 output: { 19 19 type: 'lex', 20 20 schema: /*#__PURE__*/ v.object({ 21 - revokedVerifications: /*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), 22 21 get failedRevocations() { 23 22 return /*#__PURE__*/ v.array(revokeErrorSchema); 24 23 }, 24 + revokedVerifications: /*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), 25 25 }), 26 26 }, 27 27 }); ··· 29 29 $type: /*#__PURE__*/ v.optional( 30 30 /*#__PURE__*/ v.literal('tools.ozone.verification.revokeVerifications#revokeError'), 31 31 ), 32 - uri: /*#__PURE__*/ v.resourceUriString(), 33 32 error: /*#__PURE__*/ v.string(), 33 + uri: /*#__PURE__*/ v.resourceUriString(), 34 34 }); 35 35 36 36 type main$schematype = typeof _mainSchema;
+15 -15
packages/definitions/tangled/lib/lexicons/types/sh/tangled/actor/profile.ts
··· 6 6 /*#__PURE__*/ v.literal('self'), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('sh.tangled.actor.profile'), 9 + bluesky: /*#__PURE__*/ v.boolean(), 9 10 description: /*#__PURE__*/ v.optional( 10 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 11 12 /*#__PURE__*/ v.stringLength(0, 2560), ··· 17 18 /*#__PURE__*/ v.arrayLength(0, 5), 18 19 ]), 19 20 ), 21 + location: /*#__PURE__*/ v.optional( 22 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 23 + /*#__PURE__*/ v.stringLength(0, 400), 24 + /*#__PURE__*/ v.stringGraphemes(0, 40), 25 + ]), 26 + ), 27 + pinnedRepositories: /*#__PURE__*/ v.optional( 28 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [ 29 + /*#__PURE__*/ v.arrayLength(0, 6), 30 + ]), 31 + ), 20 32 stats: /*#__PURE__*/ v.optional( 21 33 /*#__PURE__*/ v.constrain( 22 34 /*#__PURE__*/ v.array( 23 35 /*#__PURE__*/ v.literalEnum([ 24 - 'merged-pull-request-count', 36 + 'closed-issue-count', 25 37 'closed-pull-request-count', 26 - 'open-pull-request-count', 38 + 'merged-pull-request-count', 27 39 'open-issue-count', 28 - 'closed-issue-count', 40 + 'open-pull-request-count', 29 41 'repository-count', 30 42 ]), 31 43 ), 32 44 [/*#__PURE__*/ v.arrayLength(0, 2)], 33 45 ), 34 - ), 35 - bluesky: /*#__PURE__*/ v.boolean(), 36 - location: /*#__PURE__*/ v.optional( 37 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 38 - /*#__PURE__*/ v.stringLength(0, 400), 39 - /*#__PURE__*/ v.stringGraphemes(0, 40), 40 - ]), 41 - ), 42 - pinnedRepositories: /*#__PURE__*/ v.optional( 43 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [ 44 - /*#__PURE__*/ v.arrayLength(0, 6), 45 - ]), 46 46 ), 47 47 }), 48 48 );
+1 -1
packages/definitions/tangled/lib/lexicons/types/sh/tangled/feed/star.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('sh.tangled.feed.star'), 9 - subject: /*#__PURE__*/ v.resourceUriString(), 10 9 createdAt: /*#__PURE__*/ v.datetimeString(), 10 + subject: /*#__PURE__*/ v.resourceUriString(), 11 11 }), 12 12 ); 13 13
+1 -1
packages/definitions/tangled/lib/lexicons/types/sh/tangled/graph/follow.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('sh.tangled.graph.follow'), 9 - subject: /*#__PURE__*/ v.didString(), 10 9 createdAt: /*#__PURE__*/ v.datetimeString(), 10 + subject: /*#__PURE__*/ v.didString(), 11 11 }), 12 12 ); 13 13
+2 -2
packages/definitions/tangled/lib/lexicons/types/sh/tangled/knot/member.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('sh.tangled.knot.member'), 9 - subject: /*#__PURE__*/ v.didString(), 10 - domain: /*#__PURE__*/ v.string(), 11 9 createdAt: /*#__PURE__*/ v.datetimeString(), 10 + domain: /*#__PURE__*/ v.string(), 11 + subject: /*#__PURE__*/ v.didString(), 12 12 }), 13 13 ); 14 14
+1 -1
packages/definitions/tangled/lib/lexicons/types/sh/tangled/publicKey.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('sh.tangled.publicKey'), 9 + createdAt: /*#__PURE__*/ v.datetimeString(), 9 10 key: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 4096)]), 10 11 name: /*#__PURE__*/ v.string(), 11 - createdAt: /*#__PURE__*/ v.datetimeString(), 12 12 }), 13 13 ); 14 14
+4 -4
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('sh.tangled.repo'), 9 - name: /*#__PURE__*/ v.string(), 10 - owner: /*#__PURE__*/ v.didString(), 11 - knot: /*#__PURE__*/ v.string(), 9 + createdAt: /*#__PURE__*/ v.datetimeString(), 12 10 description: /*#__PURE__*/ v.optional( 13 11 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.datetimeString(), [/*#__PURE__*/ v.stringGraphemes(1, 140)]), 14 12 ), 13 + knot: /*#__PURE__*/ v.string(), 14 + name: /*#__PURE__*/ v.string(), 15 + owner: /*#__PURE__*/ v.didString(), 15 16 source: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 16 - createdAt: /*#__PURE__*/ v.datetimeString(), 17 17 }), 18 18 ); 19 19
+2 -2
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo/artifact.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('sh.tangled.repo.artifact'), 9 + artifact: /*#__PURE__*/ v.blob(), 10 + createdAt: /*#__PURE__*/ v.datetimeString(), 9 11 name: /*#__PURE__*/ v.string(), 10 12 repo: /*#__PURE__*/ v.resourceUriString(), 11 13 tag: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.bytes(), [/*#__PURE__*/ v.bytesSize(20, 20)]), 12 - createdAt: /*#__PURE__*/ v.datetimeString(), 13 - artifact: /*#__PURE__*/ v.blob(), 14 14 }), 15 15 ); 16 16
+3 -3
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo/issue.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('sh.tangled.repo.issue'), 9 - repo: /*#__PURE__*/ v.resourceUriString(), 9 + body: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 + createdAt: /*#__PURE__*/ v.datetimeString(), 10 11 issueId: /*#__PURE__*/ v.integer(), 11 12 owner: /*#__PURE__*/ v.didString(), 13 + repo: /*#__PURE__*/ v.resourceUriString(), 12 14 title: /*#__PURE__*/ v.string(), 13 - body: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 - createdAt: /*#__PURE__*/ v.datetimeString(), 15 15 }), 16 16 ); 17 17
+4 -4
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo/issue/comment.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('sh.tangled.repo.issue.comment'), 9 - issue: /*#__PURE__*/ v.resourceUriString(), 10 - repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 11 - commentId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 12 - owner: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 13 9 body: /*#__PURE__*/ v.string(), 10 + commentId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 14 11 createdAt: /*#__PURE__*/ v.datetimeString(), 12 + issue: /*#__PURE__*/ v.resourceUriString(), 13 + owner: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 14 + repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 15 15 }), 16 16 ); 17 17
+1 -1
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo/issue/state.ts
··· 9 9 issue: /*#__PURE__*/ v.resourceUriString(), 10 10 state: /*#__PURE__*/ v.optional( 11 11 /*#__PURE__*/ v.string< 12 - 'sh.tangled.repo.issue.state.open' | 'sh.tangled.repo.issue.state.closed' | (string & {}) 12 + 'sh.tangled.repo.issue.state.closed' | 'sh.tangled.repo.issue.state.open' | (string & {}) 13 13 >(), 14 14 'sh.tangled.repo.issue.state.open', 15 15 ),
+5 -5
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo/pull.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('sh.tangled.repo.pull'), 9 - targetRepo: /*#__PURE__*/ v.resourceUriString(), 10 - targetBranch: /*#__PURE__*/ v.string(), 11 - pullId: /*#__PURE__*/ v.integer(), 12 - title: /*#__PURE__*/ v.string(), 13 9 body: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 + createdAt: /*#__PURE__*/ v.datetimeString(), 14 11 patch: /*#__PURE__*/ v.string(), 12 + pullId: /*#__PURE__*/ v.integer(), 15 13 get source() { 16 14 return /*#__PURE__*/ v.optional(sourceSchema); 17 15 }, 18 - createdAt: /*#__PURE__*/ v.datetimeString(), 16 + targetBranch: /*#__PURE__*/ v.string(), 17 + targetRepo: /*#__PURE__*/ v.resourceUriString(), 18 + title: /*#__PURE__*/ v.string(), 19 19 }), 20 20 ); 21 21 const _sourceSchema = /*#__PURE__*/ v.object({
+4 -4
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo/pull/comment.ts
··· 6 6 /*#__PURE__*/ v.tidString(), 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('sh.tangled.repo.pull.comment'), 9 - pull: /*#__PURE__*/ v.resourceUriString(), 10 - repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 11 - commentId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 12 - owner: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 13 9 body: /*#__PURE__*/ v.string(), 10 + commentId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 14 11 createdAt: /*#__PURE__*/ v.datetimeString(), 12 + owner: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 13 + pull: /*#__PURE__*/ v.resourceUriString(), 14 + repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 15 15 }), 16 16 ); 17 17
+1 -1
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo/pull/status.ts
··· 9 9 pull: /*#__PURE__*/ v.resourceUriString(), 10 10 status: /*#__PURE__*/ v.optional( 11 11 /*#__PURE__*/ v.string< 12 - | 'sh.tangled.repo.pull.status.open' 13 12 | 'sh.tangled.repo.pull.status.closed' 14 13 | 'sh.tangled.repo.pull.status.merged' 14 + | 'sh.tangled.repo.pull.status.open' 15 15 | (string & {}) 16 16 >(), 17 17 'sh.tangled.repo.pull.status.open',
+1 -1
packages/definitions/whitewind/lib/lexicons/types/com/whtwnd/blog/defs.ts
··· 18 18 }); 19 19 const _ogpSchema = /*#__PURE__*/ v.object({ 20 20 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.whtwnd.blog.defs#ogp')), 21 + height: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 21 22 url: /*#__PURE__*/ v.genericUriString(), 22 23 width: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 23 - height: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 24 24 }); 25 25 26 26 type blobMetadata$schematype = typeof _blobMetadataSchema;
+11 -11
packages/definitions/whitewind/lib/lexicons/types/com/whtwnd/blog/entry.ts
··· 7 7 /*#__PURE__*/ v.tidString(), 8 8 /*#__PURE__*/ v.object({ 9 9 $type: /*#__PURE__*/ v.literal('com.whtwnd.blog.entry'), 10 + get blobs() { 11 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComWhtwndBlogDefs.blobMetadataSchema)); 12 + }, 10 13 content: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 100000)]), 11 14 createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 12 - title: /*#__PURE__*/ v.optional( 13 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 1000)]), 14 - ), 15 - subtitle: /*#__PURE__*/ v.optional( 16 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 1000)]), 17 - ), 15 + isDraft: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 18 16 get ogp() { 19 17 return /*#__PURE__*/ v.optional(ComWhtwndBlogDefs.ogpSchema); 20 18 }, 19 + subtitle: /*#__PURE__*/ v.optional( 20 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 1000)]), 21 + ), 21 22 theme: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literalEnum(['github-light'])), 22 - get blobs() { 23 - return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComWhtwndBlogDefs.blobMetadataSchema)); 24 - }, 25 - isDraft: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 26 - visibility: /*#__PURE__*/ v.literalEnum(['public', 'url', 'author']), 23 + title: /*#__PURE__*/ v.optional( 24 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 1000)]), 25 + ), 26 + visibility: /*#__PURE__*/ v.literalEnum(['author', 'public', 'url']), 27 27 }), 28 28 ); 29 29
+1 -1
packages/definitions/whitewind/lib/lexicons/types/com/whtwnd/blog/getEntryMetadataByName.ts
··· 10 10 output: { 11 11 type: 'lex', 12 12 schema: /*#__PURE__*/ v.object({ 13 + cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 13 14 entryUri: /*#__PURE__*/ v.resourceUriString(), 14 15 lastUpdate: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 15 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 16 16 }), 17 17 }, 18 18 });
+31 -9
packages/lexicons/lex-cli/src/codegen.ts
··· 441 441 } 442 442 } 443 443 444 - for (const [prop, propSpec] of Object.entries(spec.properties ?? {})) { 444 + const sortedEntries = Object.entries(spec.properties ?? {}).toSorted(([keyA], [keyB]) => { 445 + if (keyA < keyB) { 446 + return -1; 447 + } 448 + if (keyA > keyB) { 449 + return 1; 450 + } 451 + 452 + return 0; 453 + }); 454 + 455 + for (const [prop, propSpec] of sortedEntries) { 445 456 const lazy = isRefVariant(propSpec.type === 'array' ? propSpec.items : propSpec); 446 457 const optional = !required.has(prop) && !('default' in propSpec); 447 458 const nulled = nullable.has(prop); ··· 493 504 } 494 505 } 495 506 case 'union': { 496 - const refs = spec.refs.map((ref): string => { 507 + const normalizedRefs = spec.refs 508 + .map((ref): string => { 509 + if (ref.startsWith('#')) { 510 + return ref; 511 + } 512 + 513 + const [ns, id = 'main'] = ref.split('#'); 514 + if (ns === stripHash(defUri)) { 515 + return `#${id}`; 516 + } 517 + 518 + return `${ns}#${id}`; 519 + }) 520 + .sort(); 521 + 522 + const refs = normalizedRefs.map((ref): string => { 497 523 if (ref.startsWith('#')) { 498 524 const id = ref.slice(1); 499 525 500 526 return `${toCamelCase(id)}Schema`; 501 527 } else { 502 528 const [ns, id = 'main'] = ref.split('#'); 503 - if (ns === stripHash(defUri)) { 504 - return `${toCamelCase(id)}Schema`; 505 - } 506 - 507 529 imports.add(ns); 508 530 509 531 return `${toTitleCase(ns)}.${toCamelCase(id)}Schema`; ··· 559 581 } 560 582 561 583 if (spec.enum !== undefined) { 562 - return `${PURE} v.literalEnum(${lit(spec.enum)})`; 584 + return `${PURE} v.literalEnum(${lit(spec.enum.toSorted())})`; 563 585 } 564 586 565 587 let pipe: string[] = []; ··· 590 612 } 591 613 592 614 if (spec.enum !== undefined) { 593 - return `${PURE} v.literalEnum(${lit(spec.enum)})`; 615 + return `${PURE} v.literalEnum(${lit(spec.enum.toSorted())})`; 594 616 } 595 617 596 618 let pipe: string[] = []; ··· 614 636 let call = `${PURE} v.string()`; 615 637 616 638 if (spec.knownValues?.length) { 617 - call = `${PURE} v.string<${spec.knownValues.map(lit).join(' | ')} | (string & {})>()`; 639 + call = `${PURE} v.string<${spec.knownValues.toSorted().map(lit).join(' | ')} | (string & {})>()`; 618 640 } 619 641 620 642 switch (spec.format) {