@atcute/bluesky 3.2.12 → 3.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +4 -0
  2. package/dist/lexicons/index.d.ts +9 -0
  3. package/dist/lexicons/index.d.ts.map +1 -1
  4. package/dist/lexicons/index.js +9 -0
  5. package/dist/lexicons/index.js.map +1 -1
  6. package/dist/lexicons/types/app/bsky/actor/defs.d.ts +22 -1
  7. package/dist/lexicons/types/app/bsky/actor/defs.d.ts.map +1 -1
  8. package/dist/lexicons/types/app/bsky/actor/defs.js +17 -0
  9. package/dist/lexicons/types/app/bsky/actor/defs.js.map +1 -1
  10. package/dist/lexicons/types/app/bsky/contact/defs.d.ts +58 -0
  11. package/dist/lexicons/types/app/bsky/contact/defs.d.ts.map +1 -0
  12. package/dist/lexicons/types/app/bsky/contact/defs.js +44 -0
  13. package/dist/lexicons/types/app/bsky/contact/defs.js.map +1 -0
  14. package/dist/lexicons/types/app/bsky/contact/dismissMatch.d.ts +30 -0
  15. package/dist/lexicons/types/app/bsky/contact/dismissMatch.d.ts.map +1 -0
  16. package/dist/lexicons/types/app/bsky/contact/dismissMatch.js +19 -0
  17. package/dist/lexicons/types/app/bsky/contact/dismissMatch.js.map +1 -0
  18. package/dist/lexicons/types/app/bsky/contact/getMatches.d.ts +32 -0
  19. package/dist/lexicons/types/app/bsky/contact/getMatches.d.ts.map +1 -0
  20. package/dist/lexicons/types/app/bsky/contact/getMatches.js +25 -0
  21. package/dist/lexicons/types/app/bsky/contact/getMatches.js.map +1 -0
  22. package/dist/lexicons/types/app/bsky/contact/getSyncStatus.d.ts +26 -0
  23. package/dist/lexicons/types/app/bsky/contact/getSyncStatus.d.ts.map +1 -0
  24. package/dist/lexicons/types/app/bsky/contact/getSyncStatus.js +18 -0
  25. package/dist/lexicons/types/app/bsky/contact/getSyncStatus.js.map +1 -0
  26. package/dist/lexicons/types/app/bsky/contact/importContacts.d.ts +42 -0
  27. package/dist/lexicons/types/app/bsky/contact/importContacts.d.ts.map +1 -0
  28. package/dist/lexicons/types/app/bsky/contact/importContacts.js +35 -0
  29. package/dist/lexicons/types/app/bsky/contact/importContacts.js.map +1 -0
  30. package/dist/lexicons/types/app/bsky/contact/removeData.d.ts +25 -0
  31. package/dist/lexicons/types/app/bsky/contact/removeData.d.ts.map +1 -0
  32. package/dist/lexicons/types/app/bsky/contact/removeData.js +14 -0
  33. package/dist/lexicons/types/app/bsky/contact/removeData.js.map +1 -0
  34. package/dist/lexicons/types/app/bsky/contact/sendNotification.d.ts +34 -0
  35. package/dist/lexicons/types/app/bsky/contact/sendNotification.d.ts.map +1 -0
  36. package/dist/lexicons/types/app/bsky/contact/sendNotification.js +23 -0
  37. package/dist/lexicons/types/app/bsky/contact/sendNotification.js.map +1 -0
  38. package/dist/lexicons/types/app/bsky/contact/startPhoneVerification.d.ts +30 -0
  39. package/dist/lexicons/types/app/bsky/contact/startPhoneVerification.d.ts.map +1 -0
  40. package/dist/lexicons/types/app/bsky/contact/startPhoneVerification.js +19 -0
  41. package/dist/lexicons/types/app/bsky/contact/startPhoneVerification.js.map +1 -0
  42. package/dist/lexicons/types/app/bsky/contact/verifyPhone.d.ts +39 -0
  43. package/dist/lexicons/types/app/bsky/contact/verifyPhone.d.ts.map +1 -0
  44. package/dist/lexicons/types/app/bsky/contact/verifyPhone.js +28 -0
  45. package/dist/lexicons/types/app/bsky/contact/verifyPhone.js.map +1 -0
  46. package/dist/utilities/embeds.d.ts +2992 -2992
  47. package/lib/lexicons/index.ts +9 -0
  48. package/lib/lexicons/types/app/bsky/actor/defs.ts +20 -0
  49. package/lib/lexicons/types/app/bsky/contact/defs.ts +58 -0
  50. package/lib/lexicons/types/app/bsky/contact/dismissMatch.ts +36 -0
  51. package/lib/lexicons/types/app/bsky/contact/getMatches.ts +43 -0
  52. package/lib/lexicons/types/app/bsky/contact/getSyncStatus.ts +34 -0
  53. package/lib/lexicons/types/app/bsky/contact/importContacts.ts +52 -0
  54. package/lib/lexicons/types/app/bsky/contact/removeData.ts +31 -0
  55. package/lib/lexicons/types/app/bsky/contact/sendNotification.ts +40 -0
  56. package/lib/lexicons/types/app/bsky/contact/startPhoneVerification.ts +36 -0
  57. package/lib/lexicons/types/app/bsky/contact/verifyPhone.ts +45 -0
  58. package/package.json +4 -4
@@ -16,6 +16,15 @@ export * as AppBskyBookmarkCreateBookmark from './types/app/bsky/bookmark/create
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';
@@ -58,6 +58,21 @@ const _contentLabelPrefSchema = /*#__PURE__*/ v.object({
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,6 +263,7 @@ const _preferencesSchema = /*#__PURE__*/ v.array(() => {
248
263
  adultContentPrefSchema,
249
264
  bskyAppStatePrefSchema,
250
265
  contentLabelPrefSchema,
266
+ declaredAgePrefSchema,
251
267
  feedViewPrefSchema,
252
268
  hiddenPostsPrefSchema,
253
269
  interestsPrefSchema,
@@ -553,6 +569,7 @@ type adultContentPref$schematype = typeof _adultContentPrefSchema;
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,6 +603,7 @@ export interface adultContentPrefSchema extends adultContentPref$schematype {}
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,6 +637,7 @@ export const adultContentPrefSchema = _adultContentPrefSchema as adultContentPre
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,6 +673,7 @@ export interface AdultContentPref extends v.InferInput<typeof adultContentPrefSc
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> {}
@@ -0,0 +1,58 @@
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> {}
@@ -0,0 +1,36 @@
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
+ }
@@ -0,0 +1,43 @@
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
+ }
@@ -0,0 +1,34 @@
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
+ }
@@ -0,0 +1,52 @@
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
+ }
@@ -0,0 +1,31 @@
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
+ }
@@ -0,0 +1,40 @@
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
+ }
@@ -0,0 +1,36 @@
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
+ }
@@ -0,0 +1,45 @@
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
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@atcute/bluesky",
4
- "version": "3.2.12",
4
+ "version": "3.2.13",
5
5
  "description": "Bluesky (app.bsky.* and chat.bsky.*) schema definitions",
6
6
  "keywords": [
7
7
  "atcute",
@@ -25,14 +25,14 @@
25
25
  "./types/chat/*": "./dist/lexicons/types/chat/bsky/*.js"
26
26
  },
27
27
  "dependencies": {
28
- "@atcute/lexicons": "^1.2.5",
29
- "@atcute/atproto": "^3.1.9"
28
+ "@atcute/atproto": "^3.1.9",
29
+ "@atcute/lexicons": "^1.2.5"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@atcute/bluesky": "file:",
33
33
  "@atproto/api": "^0.15.27",
34
34
  "vitest": "^4.0.14",
35
- "@atcute/lex-cli": "^2.5.0"
35
+ "@atcute/lex-cli": "^2.5.1"
36
36
  },
37
37
  "atcute:lexicons": {
38
38
  "mappings": {