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

Configure Feed

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

chore(bluesky): pull latest Bluesky lexicons

Mary 9459e916 4574af87

+808 -1
+5
.changeset/olive-moons-watch.md
··· 1 + --- 2 + '@atcute/bluesky': patch 3 + --- 4 + 5 + pull latest Bluesky lexicons
+1 -1
packages/definitions/bluesky/lexicons/README.md
··· 3 3 this directory contains lexicon documents pulled from the following sources: 4 4 5 5 - https://github.com/bluesky-social/atproto.git 6 - - commit: a6e16cd0cd3029caf63ce2312dc5207532654763 6 + - commit: fa265521f005ee6779b8c87f6dbf957c3c251e4d
+19
packages/definitions/bluesky/lexicons/app/bsky/actor/defs.json
··· 383 383 "#savedFeedsPref", 384 384 "#savedFeedsPrefV2", 385 385 "#personalDetailsPref", 386 + "#declaredAgePref", 386 387 "#feedViewPref", 387 388 "#threadViewPref", 388 389 "#interestsPref", ··· 485 486 "type": "string", 486 487 "format": "datetime", 487 488 "description": "The birth date of account owner." 489 + } 490 + } 491 + }, 492 + "declaredAgePref": { 493 + "type": "object", 494 + "description": "Read-only preference containing value(s) inferred from the user's declared birthdate. Absence of this preference object in the response indicates that the user has not made a declaration.", 495 + "properties": { 496 + "isOverAge13": { 497 + "type": "boolean", 498 + "description": "Indicates if the user has declared that they are over 13 years of age." 499 + }, 500 + "isOverAge16": { 501 + "type": "boolean", 502 + "description": "Indicates if the user has declared that they are over 16 years of age." 503 + }, 504 + "isOverAge18": { 505 + "type": "boolean", 506 + "description": "Indicates if the user has declared that they are over 18 years of age." 488 507 } 489 508 } 490 509 },
+57
packages/definitions/bluesky/lexicons/app/bsky/contact/defs.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.contact.defs", 4 + "defs": { 5 + "matchAndContactIndex": { 6 + "description": "Associates a profile with the positional index of the contact import input in the call to `app.bsky.contact.importContacts`, so clients can know which phone caused a particular match.", 7 + "type": "object", 8 + "required": ["match", "contactIndex"], 9 + "properties": { 10 + "match": { 11 + "description": "Profile of the matched user.", 12 + "type": "ref", 13 + "ref": "app.bsky.actor.defs#profileView" 14 + }, 15 + "contactIndex": { 16 + "description": "The index of this match in the import contact input.", 17 + "type": "integer", 18 + "minimum": 0, 19 + "maximum": 999 20 + } 21 + } 22 + }, 23 + "syncStatus": { 24 + "type": "object", 25 + "required": ["syncedAt", "matchesCount"], 26 + "properties": { 27 + "syncedAt": { 28 + "description": "Last date when contacts where imported.", 29 + "type": "string", 30 + "format": "datetime" 31 + }, 32 + "matchesCount": { 33 + "description": "Number of existing contact matches resulting of the user imports and of their imported contacts having imported the user. Matches stop being counted when the user either follows the matched contact or dismisses the match.", 34 + "type": "integer", 35 + "minimum": 0 36 + } 37 + } 38 + }, 39 + "notification": { 40 + "description": "A stash object to be sent via bsync representing a notification to be created.", 41 + "type": "object", 42 + "required": ["from", "to"], 43 + "properties": { 44 + "from": { 45 + "description": "The DID of who this notification comes from.", 46 + "type": "string", 47 + "format": "did" 48 + }, 49 + "to": { 50 + "description": "The DID of who this notification should go to.", 51 + "type": "string", 52 + "format": "did" 53 + } 54 + } 55 + } 56 + } 57 + }
+37
packages/definitions/bluesky/lexicons/app/bsky/contact/dismissMatch.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.contact.dismissMatch", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "WARNING: This is unstable and under active development, don't use it while this warning is here. Removes a match that was found via contact import. It shouldn't appear again if the same contact is re-imported. Requires authentication.", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": ["subject"], 13 + "properties": { 14 + "subject": { 15 + "description": "The subject's DID to dismiss the match with.", 16 + "type": "string", 17 + "format": "did" 18 + } 19 + } 20 + } 21 + }, 22 + "output": { 23 + "encoding": "application/json", 24 + "schema": { 25 + "type": "object", 26 + "properties": {} 27 + } 28 + }, 29 + "errors": [ 30 + { 31 + "name": "TODO", 32 + "description": "TODO" 33 + } 34 + ] 35 + } 36 + } 37 + }
+49
packages/definitions/bluesky/lexicons/app/bsky/contact/getMatches.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.contact.getMatches", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "WARNING: This is unstable and under active development, don't use it while this warning is here. Returns the matched contacts (contacts that were mutually imported). Excludes dismissed matches. Requires authentication.", 8 + "parameters": { 9 + "type": "params", 10 + "properties": { 11 + "limit": { 12 + "type": "integer", 13 + "minimum": 1, 14 + "maximum": 100, 15 + "default": 50 16 + }, 17 + "cursor": { 18 + "type": "string" 19 + } 20 + } 21 + }, 22 + "output": { 23 + "encoding": "application/json", 24 + "schema": { 25 + "type": "object", 26 + "required": ["matches"], 27 + "properties": { 28 + "cursor": { 29 + "type": "string" 30 + }, 31 + "matches": { 32 + "type": "array", 33 + "items": { 34 + "type": "ref", 35 + "ref": "app.bsky.actor.defs#profileView" 36 + } 37 + } 38 + } 39 + } 40 + }, 41 + "errors": [ 42 + { 43 + "name": "TODO", 44 + "description": "TODO" 45 + } 46 + ] 47 + } 48 + } 49 + }
+33
packages/definitions/bluesky/lexicons/app/bsky/contact/getSyncStatus.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.contact.getSyncStatus", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "WARNING: This is unstable and under active development, don't use it while this warning is here. Gets the user's current contact import status. Requires authentication.", 8 + "parameters": { 9 + "type": "params", 10 + "properties": {} 11 + }, 12 + "output": { 13 + "encoding": "application/json", 14 + "schema": { 15 + "type": "object", 16 + "properties": { 17 + "syncStatus": { 18 + "description": "If present, indicates the user has imported their contacts. If not present, indicates the user never used the feature or called `app.bsky.contact.removeData` and didn't import again since.", 19 + "type": "ref", 20 + "ref": "app.bsky.contact.defs#syncStatus" 21 + } 22 + } 23 + } 24 + }, 25 + "errors": [ 26 + { 27 + "name": "TODO", 28 + "description": "TODO" 29 + } 30 + ] 31 + } 32 + } 33 + }
+55
packages/definitions/bluesky/lexicons/app/bsky/contact/importContacts.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.contact.importContacts", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "WARNING: This is unstable and under active development, don't use it while this warning is here. Import contacts for securely matching with other users. This follows the protocol explained in https://docs.bsky.app/blog/contact-import-rfc. Requires authentication.", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": ["token", "contacts"], 13 + "properties": { 14 + "token": { 15 + "description": "JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`.", 16 + "type": "string" 17 + }, 18 + "contacts": { 19 + "description": "List of phone numbers in global E.164 format (e.g., '+12125550123'). Phone numbers that cannot be normalized into a valid phone number will be discarded. Should not repeat the 'phone' input used in `app.bsky.contact.verifyPhone`.", 20 + "type": "array", 21 + "items": { 22 + "type": "string" 23 + }, 24 + "minLength": 1, 25 + "maxLength": 1000 26 + } 27 + } 28 + } 29 + }, 30 + "output": { 31 + "encoding": "application/json", 32 + "schema": { 33 + "type": "object", 34 + "required": ["matchesAndContactIndexes"], 35 + "properties": { 36 + "matchesAndContactIndexes": { 37 + "description": "The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list.", 38 + "type": "array", 39 + "items": { 40 + "type": "ref", 41 + "ref": "app.bsky.contact.defs#matchAndContactIndex" 42 + } 43 + } 44 + } 45 + } 46 + }, 47 + "errors": [ 48 + { 49 + "name": "TODO", 50 + "description": "TODO" 51 + } 52 + ] 53 + } 54 + } 55 + }
+30
packages/definitions/bluesky/lexicons/app/bsky/contact/removeData.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.contact.removeData", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "WARNING: This is unstable and under active development, don't use it while this warning is here. Removes all stored hashes used for contact matching, existing matches, and sync status. Requires authentication.", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "properties": {} 13 + } 14 + }, 15 + "output": { 16 + "encoding": "application/json", 17 + "schema": { 18 + "type": "object", 19 + "properties": {} 20 + } 21 + }, 22 + "errors": [ 23 + { 24 + "name": "TODO", 25 + "description": "TODO" 26 + } 27 + ] 28 + } 29 + } 30 + }
+36
packages/definitions/bluesky/lexicons/app/bsky/contact/sendNotification.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.contact.sendNotification", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "WARNING: This is unstable and under active development, don't use it while this warning is here. System endpoint to send notifications related to contact imports. Requires role authentication.", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": ["from", "to"], 13 + "properties": { 14 + "from": { 15 + "description": "The DID of who this notification comes from.", 16 + "type": "string", 17 + "format": "did" 18 + }, 19 + "to": { 20 + "description": "The DID of who this notification should go to.", 21 + "type": "string", 22 + "format": "did" 23 + } 24 + } 25 + } 26 + }, 27 + "output": { 28 + "encoding": "application/json", 29 + "schema": { 30 + "type": "object", 31 + "properties": {} 32 + } 33 + } 34 + } 35 + } 36 + }
+36
packages/definitions/bluesky/lexicons/app/bsky/contact/startPhoneVerification.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.contact.startPhoneVerification", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "WARNING: This is unstable and under active development, don't use it while this warning is here. Starts a phone verification flow. The phone passed will receive a code via SMS that should be passed to `app.bsky.contact.verifyPhone`. Requires authentication.", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": ["phone"], 13 + "properties": { 14 + "phone": { 15 + "description": "The phone number to receive the code via SMS.", 16 + "type": "string" 17 + } 18 + } 19 + } 20 + }, 21 + "output": { 22 + "encoding": "application/json", 23 + "schema": { 24 + "type": "object", 25 + "properties": {} 26 + } 27 + }, 28 + "errors": [ 29 + { 30 + "name": "TODO", 31 + "description": "TODO" 32 + } 33 + ] 34 + } 35 + } 36 + }
+46
packages/definitions/bluesky/lexicons/app/bsky/contact/verifyPhone.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.contact.verifyPhone", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "WARNING: This is unstable and under active development, don't use it while this warning is here. Verifies control over a phone number with a code received via SMS and starts a contact import session. Requires authentication.", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": ["phone", "code"], 13 + "properties": { 14 + "phone": { 15 + "description": "The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`.", 16 + "type": "string" 17 + }, 18 + "code": { 19 + "description": "The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`.", 20 + "type": "string" 21 + } 22 + } 23 + } 24 + }, 25 + "output": { 26 + "encoding": "application/json", 27 + "schema": { 28 + "type": "object", 29 + "required": ["token"], 30 + "properties": { 31 + "token": { 32 + "description": "JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call.", 33 + "type": "string" 34 + } 35 + } 36 + } 37 + }, 38 + "errors": [ 39 + { 40 + "name": "TODO", 41 + "description": "TODO" 42 + } 43 + ] 44 + } 45 + } 46 + }
+9
packages/definitions/bluesky/lib/lexicons/index.ts
··· 16 16 export * as AppBskyBookmarkDefs from './types/app/bsky/bookmark/defs.js'; 17 17 export * as AppBskyBookmarkDeleteBookmark from './types/app/bsky/bookmark/deleteBookmark.js'; 18 18 export * as AppBskyBookmarkGetBookmarks from './types/app/bsky/bookmark/getBookmarks.js'; 19 + export * as AppBskyContactDefs from './types/app/bsky/contact/defs.js'; 20 + export * as AppBskyContactDismissMatch from './types/app/bsky/contact/dismissMatch.js'; 21 + export * as AppBskyContactGetMatches from './types/app/bsky/contact/getMatches.js'; 22 + export * as AppBskyContactGetSyncStatus from './types/app/bsky/contact/getSyncStatus.js'; 23 + export * as AppBskyContactImportContacts from './types/app/bsky/contact/importContacts.js'; 24 + export * as AppBskyContactRemoveData from './types/app/bsky/contact/removeData.js'; 25 + export * as AppBskyContactSendNotification from './types/app/bsky/contact/sendNotification.js'; 26 + export * as AppBskyContactStartPhoneVerification from './types/app/bsky/contact/startPhoneVerification.js'; 27 + export * as AppBskyContactVerifyPhone from './types/app/bsky/contact/verifyPhone.js'; 19 28 export * as AppBskyEmbedDefs from './types/app/bsky/embed/defs.js'; 20 29 export * as AppBskyEmbedExternal from './types/app/bsky/embed/external.js'; 21 30 export * as AppBskyEmbedImages from './types/app/bsky/embed/images.js';
+20
packages/definitions/bluesky/lib/lexicons/types/app/bsky/actor/defs.ts
··· 58 58 labelerDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 59 59 visibility: /*#__PURE__*/ v.string<'hide' | 'ignore' | 'show' | 'warn' | (string & {})>(), 60 60 }); 61 + const _declaredAgePrefSchema = /*#__PURE__*/ v.object({ 62 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#declaredAgePref')), 63 + /** 64 + * Indicates if the user has declared that they are over 13 years of age. 65 + */ 66 + isOverAge13: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 67 + /** 68 + * Indicates if the user has declared that they are over 16 years of age. 69 + */ 70 + isOverAge16: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 71 + /** 72 + * Indicates if the user has declared that they are over 18 years of age. 73 + */ 74 + isOverAge18: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 75 + }); 61 76 const _feedViewPrefSchema = /*#__PURE__*/ v.object({ 62 77 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#feedViewPref')), 63 78 /** ··· 248 263 adultContentPrefSchema, 249 264 bskyAppStatePrefSchema, 250 265 contentLabelPrefSchema, 266 + declaredAgePrefSchema, 251 267 feedViewPrefSchema, 252 268 hiddenPostsPrefSchema, 253 269 interestsPrefSchema, ··· 553 569 type bskyAppProgressGuide$schematype = typeof _bskyAppProgressGuideSchema; 554 570 type bskyAppStatePref$schematype = typeof _bskyAppStatePrefSchema; 555 571 type contentLabelPref$schematype = typeof _contentLabelPrefSchema; 572 + type declaredAgePref$schematype = typeof _declaredAgePrefSchema; 556 573 type feedViewPref$schematype = typeof _feedViewPrefSchema; 557 574 type hiddenPostsPref$schematype = typeof _hiddenPostsPrefSchema; 558 575 type interestsPref$schematype = typeof _interestsPrefSchema; ··· 586 603 export interface bskyAppProgressGuideSchema extends bskyAppProgressGuide$schematype {} 587 604 export interface bskyAppStatePrefSchema extends bskyAppStatePref$schematype {} 588 605 export interface contentLabelPrefSchema extends contentLabelPref$schematype {} 606 + export interface declaredAgePrefSchema extends declaredAgePref$schematype {} 589 607 export interface feedViewPrefSchema extends feedViewPref$schematype {} 590 608 export interface hiddenPostsPrefSchema extends hiddenPostsPref$schematype {} 591 609 export interface interestsPrefSchema extends interestsPref$schematype {} ··· 619 637 export const bskyAppProgressGuideSchema = _bskyAppProgressGuideSchema as bskyAppProgressGuideSchema; 620 638 export const bskyAppStatePrefSchema = _bskyAppStatePrefSchema as bskyAppStatePrefSchema; 621 639 export const contentLabelPrefSchema = _contentLabelPrefSchema as contentLabelPrefSchema; 640 + export const declaredAgePrefSchema = _declaredAgePrefSchema as declaredAgePrefSchema; 622 641 export const feedViewPrefSchema = _feedViewPrefSchema as feedViewPrefSchema; 623 642 export const hiddenPostsPrefSchema = _hiddenPostsPrefSchema as hiddenPostsPrefSchema; 624 643 export const interestsPrefSchema = _interestsPrefSchema as interestsPrefSchema; ··· 654 673 export interface BskyAppProgressGuide extends v.InferInput<typeof bskyAppProgressGuideSchema> {} 655 674 export interface BskyAppStatePref extends v.InferInput<typeof bskyAppStatePrefSchema> {} 656 675 export interface ContentLabelPref extends v.InferInput<typeof contentLabelPrefSchema> {} 676 + export interface DeclaredAgePref extends v.InferInput<typeof declaredAgePrefSchema> {} 657 677 export interface FeedViewPref extends v.InferInput<typeof feedViewPrefSchema> {} 658 678 export interface HiddenPostsPref extends v.InferInput<typeof hiddenPostsPrefSchema> {} 659 679 export interface InterestsPref extends v.InferInput<typeof interestsPrefSchema> {}
+58
packages/definitions/bluesky/lib/lexicons/types/app/bsky/contact/defs.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import * as AppBskyActorDefs from '../actor/defs.js'; 4 + 5 + const _matchAndContactIndexSchema = /*#__PURE__*/ v.object({ 6 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.contact.defs#matchAndContactIndex')), 7 + /** 8 + * The index of this match in the import contact input. 9 + * @minimum 0 10 + * @maximum 999 11 + */ 12 + contactIndex: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(0, 999)]), 13 + /** 14 + * Profile of the matched user. 15 + */ 16 + get match() { 17 + return AppBskyActorDefs.profileViewSchema; 18 + }, 19 + }); 20 + const _notificationSchema = /*#__PURE__*/ v.object({ 21 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.contact.defs#notification')), 22 + /** 23 + * The DID of who this notification comes from. 24 + */ 25 + from: /*#__PURE__*/ v.didString(), 26 + /** 27 + * The DID of who this notification should go to. 28 + */ 29 + to: /*#__PURE__*/ v.didString(), 30 + }); 31 + const _syncStatusSchema = /*#__PURE__*/ v.object({ 32 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.contact.defs#syncStatus')), 33 + /** 34 + * Number of existing contact matches resulting of the user imports and of their imported contacts having imported the user. Matches stop being counted when the user either follows the matched contact or dismisses the match. 35 + * @minimum 0 36 + */ 37 + matchesCount: /*#__PURE__*/ v.integer(), 38 + /** 39 + * Last date when contacts where imported. 40 + */ 41 + syncedAt: /*#__PURE__*/ v.datetimeString(), 42 + }); 43 + 44 + type matchAndContactIndex$schematype = typeof _matchAndContactIndexSchema; 45 + type notification$schematype = typeof _notificationSchema; 46 + type syncStatus$schematype = typeof _syncStatusSchema; 47 + 48 + export interface matchAndContactIndexSchema extends matchAndContactIndex$schematype {} 49 + export interface notificationSchema extends notification$schematype {} 50 + export interface syncStatusSchema extends syncStatus$schematype {} 51 + 52 + export const matchAndContactIndexSchema = _matchAndContactIndexSchema as matchAndContactIndexSchema; 53 + export const notificationSchema = _notificationSchema as notificationSchema; 54 + export const syncStatusSchema = _syncStatusSchema as syncStatusSchema; 55 + 56 + export interface MatchAndContactIndex extends v.InferInput<typeof matchAndContactIndexSchema> {} 57 + export interface Notification extends v.InferInput<typeof notificationSchema> {} 58 + export interface SyncStatus extends v.InferInput<typeof syncStatusSchema> {}
+36
packages/definitions/bluesky/lib/lexicons/types/app/bsky/contact/dismissMatch.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.procedure('app.bsky.contact.dismissMatch', { 6 + params: null, 7 + input: { 8 + type: 'lex', 9 + schema: /*#__PURE__*/ v.object({ 10 + /** 11 + * The subject's DID to dismiss the match with. 12 + */ 13 + subject: /*#__PURE__*/ v.didString(), 14 + }), 15 + }, 16 + output: { 17 + type: 'lex', 18 + schema: /*#__PURE__*/ v.object({}), 19 + }, 20 + }); 21 + 22 + type main$schematype = typeof _mainSchema; 23 + 24 + export interface mainSchema extends main$schematype {} 25 + 26 + export const mainSchema = _mainSchema as mainSchema; 27 + 28 + export interface $params {} 29 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 30 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 31 + 32 + declare module '@atcute/lexicons/ambient' { 33 + interface XRPCProcedures { 34 + 'app.bsky.contact.dismissMatch': mainSchema; 35 + } 36 + }
+43
packages/definitions/bluesky/lib/lexicons/types/app/bsky/contact/getMatches.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + import * as AppBskyActorDefs from '../actor/defs.js'; 5 + 6 + const _mainSchema = /*#__PURE__*/ v.query('app.bsky.contact.getMatches', { 7 + params: /*#__PURE__*/ v.object({ 8 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 + /** 10 + * @minimum 1 11 + * @maximum 100 12 + * @default 50 13 + */ 14 + limit: /*#__PURE__*/ v.optional( 15 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 16 + 50, 17 + ), 18 + }), 19 + output: { 20 + type: 'lex', 21 + schema: /*#__PURE__*/ v.object({ 22 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 23 + get matches() { 24 + return /*#__PURE__*/ v.array(AppBskyActorDefs.profileViewSchema); 25 + }, 26 + }), 27 + }, 28 + }); 29 + 30 + type main$schematype = typeof _mainSchema; 31 + 32 + export interface mainSchema extends main$schematype {} 33 + 34 + export const mainSchema = _mainSchema as mainSchema; 35 + 36 + export interface $params extends v.InferInput<mainSchema['params']> {} 37 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 38 + 39 + declare module '@atcute/lexicons/ambient' { 40 + interface XRPCQueries { 41 + 'app.bsky.contact.getMatches': mainSchema; 42 + } 43 + }
+34
packages/definitions/bluesky/lib/lexicons/types/app/bsky/contact/getSyncStatus.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + import * as AppBskyContactDefs from './defs.js'; 5 + 6 + const _mainSchema = /*#__PURE__*/ v.query('app.bsky.contact.getSyncStatus', { 7 + params: /*#__PURE__*/ v.object({}), 8 + output: { 9 + type: 'lex', 10 + schema: /*#__PURE__*/ v.object({ 11 + /** 12 + * If present, indicates the user has imported their contacts. If not present, indicates the user never used the feature or called `app.bsky.contact.removeData` and didn't import again since. 13 + */ 14 + get syncStatus() { 15 + return /*#__PURE__*/ v.optional(AppBskyContactDefs.syncStatusSchema); 16 + }, 17 + }), 18 + }, 19 + }); 20 + 21 + type main$schematype = typeof _mainSchema; 22 + 23 + export interface mainSchema extends main$schematype {} 24 + 25 + export const mainSchema = _mainSchema as mainSchema; 26 + 27 + export interface $params extends v.InferInput<mainSchema['params']> {} 28 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 29 + 30 + declare module '@atcute/lexicons/ambient' { 31 + interface XRPCQueries { 32 + 'app.bsky.contact.getSyncStatus': mainSchema; 33 + } 34 + }
+52
packages/definitions/bluesky/lib/lexicons/types/app/bsky/contact/importContacts.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + import * as AppBskyContactDefs from './defs.js'; 5 + 6 + const _mainSchema = /*#__PURE__*/ v.procedure('app.bsky.contact.importContacts', { 7 + params: null, 8 + input: { 9 + type: 'lex', 10 + schema: /*#__PURE__*/ v.object({ 11 + /** 12 + * List of phone numbers in global E.164 format (e.g., '+12125550123'). Phone numbers that cannot be normalized into a valid phone number will be discarded. Should not repeat the 'phone' input used in `app.bsky.contact.verifyPhone`. 13 + * @minLength 1 14 + * @maxLength 1000 15 + */ 16 + contacts: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), [ 17 + /*#__PURE__*/ v.arrayLength(1, 1000), 18 + ]), 19 + /** 20 + * JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`. 21 + */ 22 + token: /*#__PURE__*/ v.string(), 23 + }), 24 + }, 25 + output: { 26 + type: 'lex', 27 + schema: /*#__PURE__*/ v.object({ 28 + /** 29 + * The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list. 30 + */ 31 + get matchesAndContactIndexes() { 32 + return /*#__PURE__*/ v.array(AppBskyContactDefs.matchAndContactIndexSchema); 33 + }, 34 + }), 35 + }, 36 + }); 37 + 38 + type main$schematype = typeof _mainSchema; 39 + 40 + export interface mainSchema extends main$schematype {} 41 + 42 + export const mainSchema = _mainSchema as mainSchema; 43 + 44 + export interface $params {} 45 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 46 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 47 + 48 + declare module '@atcute/lexicons/ambient' { 49 + interface XRPCProcedures { 50 + 'app.bsky.contact.importContacts': mainSchema; 51 + } 52 + }
+31
packages/definitions/bluesky/lib/lexicons/types/app/bsky/contact/removeData.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.procedure('app.bsky.contact.removeData', { 6 + params: null, 7 + input: { 8 + type: 'lex', 9 + schema: /*#__PURE__*/ v.object({}), 10 + }, 11 + output: { 12 + type: 'lex', 13 + schema: /*#__PURE__*/ v.object({}), 14 + }, 15 + }); 16 + 17 + type main$schematype = typeof _mainSchema; 18 + 19 + export interface mainSchema extends main$schematype {} 20 + 21 + export const mainSchema = _mainSchema as mainSchema; 22 + 23 + export interface $params {} 24 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 25 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 26 + 27 + declare module '@atcute/lexicons/ambient' { 28 + interface XRPCProcedures { 29 + 'app.bsky.contact.removeData': mainSchema; 30 + } 31 + }
+40
packages/definitions/bluesky/lib/lexicons/types/app/bsky/contact/sendNotification.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.procedure('app.bsky.contact.sendNotification', { 6 + params: null, 7 + input: { 8 + type: 'lex', 9 + schema: /*#__PURE__*/ v.object({ 10 + /** 11 + * The DID of who this notification comes from. 12 + */ 13 + from: /*#__PURE__*/ v.didString(), 14 + /** 15 + * The DID of who this notification should go to. 16 + */ 17 + to: /*#__PURE__*/ v.didString(), 18 + }), 19 + }, 20 + output: { 21 + type: 'lex', 22 + schema: /*#__PURE__*/ v.object({}), 23 + }, 24 + }); 25 + 26 + type main$schematype = typeof _mainSchema; 27 + 28 + export interface mainSchema extends main$schematype {} 29 + 30 + export const mainSchema = _mainSchema as mainSchema; 31 + 32 + export interface $params {} 33 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 34 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 35 + 36 + declare module '@atcute/lexicons/ambient' { 37 + interface XRPCProcedures { 38 + 'app.bsky.contact.sendNotification': mainSchema; 39 + } 40 + }
+36
packages/definitions/bluesky/lib/lexicons/types/app/bsky/contact/startPhoneVerification.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.procedure('app.bsky.contact.startPhoneVerification', { 6 + params: null, 7 + input: { 8 + type: 'lex', 9 + schema: /*#__PURE__*/ v.object({ 10 + /** 11 + * The phone number to receive the code via SMS. 12 + */ 13 + phone: /*#__PURE__*/ v.string(), 14 + }), 15 + }, 16 + output: { 17 + type: 'lex', 18 + schema: /*#__PURE__*/ v.object({}), 19 + }, 20 + }); 21 + 22 + type main$schematype = typeof _mainSchema; 23 + 24 + export interface mainSchema extends main$schematype {} 25 + 26 + export const mainSchema = _mainSchema as mainSchema; 27 + 28 + export interface $params {} 29 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 30 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 31 + 32 + declare module '@atcute/lexicons/ambient' { 33 + interface XRPCProcedures { 34 + 'app.bsky.contact.startPhoneVerification': mainSchema; 35 + } 36 + }
+45
packages/definitions/bluesky/lib/lexicons/types/app/bsky/contact/verifyPhone.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.procedure('app.bsky.contact.verifyPhone', { 6 + params: null, 7 + input: { 8 + type: 'lex', 9 + schema: /*#__PURE__*/ v.object({ 10 + /** 11 + * The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`. 12 + */ 13 + code: /*#__PURE__*/ v.string(), 14 + /** 15 + * The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`. 16 + */ 17 + phone: /*#__PURE__*/ v.string(), 18 + }), 19 + }, 20 + output: { 21 + type: 'lex', 22 + schema: /*#__PURE__*/ v.object({ 23 + /** 24 + * JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call. 25 + */ 26 + token: /*#__PURE__*/ v.string(), 27 + }), 28 + }, 29 + }); 30 + 31 + type main$schematype = typeof _mainSchema; 32 + 33 + export interface mainSchema extends main$schematype {} 34 + 35 + export const mainSchema = _mainSchema as mainSchema; 36 + 37 + export interface $params {} 38 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 39 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 40 + 41 + declare module '@atcute/lexicons/ambient' { 42 + interface XRPCProcedures { 43 + 'app.bsky.contact.verifyPhone': mainSchema; 44 + } 45 + }