@atproto/ozone 0.1.160 → 0.1.162

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 (132) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/LICENSE.txt +1 -1
  3. package/dist/api/moderation/emitEvent.d.ts.map +1 -1
  4. package/dist/api/moderation/emitEvent.js +29 -23
  5. package/dist/api/moderation/emitEvent.js.map +1 -1
  6. package/dist/daemon/materialized-view-refresher.d.ts.map +1 -1
  7. package/dist/daemon/materialized-view-refresher.js +8 -1
  8. package/dist/daemon/materialized-view-refresher.js.map +1 -1
  9. package/dist/lexicon/index.d.ts +15 -0
  10. package/dist/lexicon/index.d.ts.map +1 -1
  11. package/dist/lexicon/index.js +41 -1
  12. package/dist/lexicon/index.js.map +1 -1
  13. package/dist/lexicon/lexicons.d.ts +1134 -56
  14. package/dist/lexicon/lexicons.d.ts.map +1 -1
  15. package/dist/lexicon/lexicons.js +603 -26
  16. package/dist/lexicon/lexicons.js.map +1 -1
  17. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +35 -1
  18. package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
  19. package/dist/lexicon/types/app/bsky/actor/defs.js +27 -0
  20. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  21. package/dist/lexicon/types/app/bsky/ageassurance/defs.d.ts +2 -0
  22. package/dist/lexicon/types/app/bsky/ageassurance/defs.d.ts.map +1 -1
  23. package/dist/lexicon/types/app/bsky/ageassurance/defs.js.map +1 -1
  24. package/dist/lexicon/types/app/bsky/contact/defs.d.ts +10 -0
  25. package/dist/lexicon/types/app/bsky/contact/defs.d.ts.map +1 -1
  26. package/dist/lexicon/types/app/bsky/contact/defs.js +9 -0
  27. package/dist/lexicon/types/app/bsky/contact/defs.js.map +1 -1
  28. package/dist/lexicon/types/app/bsky/contact/dismissMatch.d.ts +1 -1
  29. package/dist/lexicon/types/app/bsky/contact/dismissMatch.d.ts.map +1 -1
  30. package/dist/lexicon/types/app/bsky/contact/dismissMatch.js.map +1 -1
  31. package/dist/lexicon/types/app/bsky/contact/getMatches.d.ts +1 -1
  32. package/dist/lexicon/types/app/bsky/contact/getMatches.d.ts.map +1 -1
  33. package/dist/lexicon/types/app/bsky/contact/getMatches.js.map +1 -1
  34. package/dist/lexicon/types/app/bsky/contact/getSyncStatus.d.ts +1 -1
  35. package/dist/lexicon/types/app/bsky/contact/getSyncStatus.d.ts.map +1 -1
  36. package/dist/lexicon/types/app/bsky/contact/getSyncStatus.js.map +1 -1
  37. package/dist/lexicon/types/app/bsky/contact/importContacts.d.ts +1 -1
  38. package/dist/lexicon/types/app/bsky/contact/importContacts.d.ts.map +1 -1
  39. package/dist/lexicon/types/app/bsky/contact/importContacts.js.map +1 -1
  40. package/dist/lexicon/types/app/bsky/contact/removeData.d.ts +1 -1
  41. package/dist/lexicon/types/app/bsky/contact/removeData.d.ts.map +1 -1
  42. package/dist/lexicon/types/app/bsky/contact/removeData.js.map +1 -1
  43. package/dist/lexicon/types/app/bsky/contact/sendNotification.d.ts +26 -0
  44. package/dist/lexicon/types/app/bsky/contact/sendNotification.d.ts.map +1 -0
  45. package/dist/lexicon/types/app/bsky/contact/sendNotification.js +7 -0
  46. package/dist/lexicon/types/app/bsky/contact/sendNotification.js.map +1 -0
  47. package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.d.ts +1 -1
  48. package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.d.ts.map +1 -1
  49. package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.js.map +1 -1
  50. package/dist/lexicon/types/app/bsky/contact/verifyPhone.d.ts +1 -1
  51. package/dist/lexicon/types/app/bsky/contact/verifyPhone.d.ts.map +1 -1
  52. package/dist/lexicon/types/app/bsky/contact/verifyPhone.js.map +1 -1
  53. package/dist/lexicon/types/app/bsky/draft/createDraft.d.ts +27 -0
  54. package/dist/lexicon/types/app/bsky/draft/createDraft.d.ts.map +1 -0
  55. package/dist/lexicon/types/app/bsky/draft/createDraft.js +7 -0
  56. package/dist/lexicon/types/app/bsky/draft/createDraft.js.map +1 -0
  57. package/dist/lexicon/types/app/bsky/draft/defs.d.ts +106 -0
  58. package/dist/lexicon/types/app/bsky/draft/defs.d.ts.map +1 -0
  59. package/dist/lexicon/types/app/bsky/draft/defs.js +97 -0
  60. package/dist/lexicon/types/app/bsky/draft/defs.js.map +1 -0
  61. package/dist/lexicon/types/app/bsky/draft/deleteDraft.d.ts +14 -0
  62. package/dist/lexicon/types/app/bsky/draft/deleteDraft.d.ts.map +1 -0
  63. package/dist/lexicon/types/app/bsky/draft/deleteDraft.js +7 -0
  64. package/dist/lexicon/types/app/bsky/draft/deleteDraft.js.map +1 -0
  65. package/dist/lexicon/types/app/bsky/draft/getDrafts.d.ts +24 -0
  66. package/dist/lexicon/types/app/bsky/draft/getDrafts.d.ts.map +1 -0
  67. package/dist/lexicon/types/app/bsky/draft/getDrafts.js +7 -0
  68. package/dist/lexicon/types/app/bsky/draft/getDrafts.js.map +1 -0
  69. package/dist/lexicon/types/app/bsky/draft/updateDraft.d.ts +15 -0
  70. package/dist/lexicon/types/app/bsky/draft/updateDraft.d.ts.map +1 -0
  71. package/dist/lexicon/types/app/bsky/draft/updateDraft.js +7 -0
  72. package/dist/lexicon/types/app/bsky/draft/updateDraft.js.map +1 -0
  73. package/dist/lexicon/types/app/bsky/embed/video.d.ts +4 -0
  74. package/dist/lexicon/types/app/bsky/embed/video.d.ts.map +1 -1
  75. package/dist/lexicon/types/app/bsky/embed/video.js.map +1 -1
  76. package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts +1 -1
  77. package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts.map +1 -1
  78. package/dist/lexicon/types/app/bsky/notification/listNotifications.js.map +1 -1
  79. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsers.d.ts +2 -0
  80. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsers.d.ts.map +1 -1
  81. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsers.js.map +1 -1
  82. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton.d.ts +2 -0
  83. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton.d.ts.map +1 -1
  84. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton.js.map +1 -1
  85. package/dist/lexicon/types/com/atproto/server/deleteSession.d.ts +1 -0
  86. package/dist/lexicon/types/com/atproto/server/deleteSession.d.ts.map +1 -1
  87. package/dist/lexicon/types/com/atproto/server/deleteSession.js.map +1 -1
  88. package/dist/lexicon/types/com/atproto/server/getSession.d.ts +3 -3
  89. package/dist/lexicon/types/com/atproto/server/getSession.d.ts.map +1 -1
  90. package/dist/lexicon/types/com/atproto/server/getSession.js.map +1 -1
  91. package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts +4 -1
  92. package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts.map +1 -1
  93. package/dist/lexicon/types/com/atproto/server/refreshSession.js.map +1 -1
  94. package/dist/mod-service/index.d.ts.map +1 -1
  95. package/dist/mod-service/index.js +10 -4
  96. package/dist/mod-service/index.js.map +1 -1
  97. package/dist/mod-service/util.d.ts.map +1 -1
  98. package/dist/mod-service/util.js +3 -1
  99. package/dist/mod-service/util.js.map +1 -1
  100. package/package.json +8 -8
  101. package/src/api/moderation/emitEvent.ts +33 -25
  102. package/src/daemon/materialized-view-refresher.ts +9 -3
  103. package/src/lexicon/index.ts +75 -0
  104. package/src/lexicon/lexicons.ts +624 -26
  105. package/src/lexicon/types/app/bsky/actor/defs.ts +63 -0
  106. package/src/lexicon/types/app/bsky/ageassurance/defs.ts +2 -0
  107. package/src/lexicon/types/app/bsky/contact/defs.ts +19 -0
  108. package/src/lexicon/types/app/bsky/contact/dismissMatch.ts +1 -1
  109. package/src/lexicon/types/app/bsky/contact/getMatches.ts +1 -1
  110. package/src/lexicon/types/app/bsky/contact/getSyncStatus.ts +1 -1
  111. package/src/lexicon/types/app/bsky/contact/importContacts.ts +6 -1
  112. package/src/lexicon/types/app/bsky/contact/removeData.ts +1 -1
  113. package/src/lexicon/types/app/bsky/contact/sendNotification.ts +44 -0
  114. package/src/lexicon/types/app/bsky/contact/startPhoneVerification.ts +1 -1
  115. package/src/lexicon/types/app/bsky/contact/verifyPhone.ts +6 -1
  116. package/src/lexicon/types/app/bsky/draft/createDraft.ts +46 -0
  117. package/src/lexicon/types/app/bsky/draft/defs.ts +208 -0
  118. package/src/lexicon/types/app/bsky/draft/deleteDraft.ts +33 -0
  119. package/src/lexicon/types/app/bsky/draft/getDrafts.ts +42 -0
  120. package/src/lexicon/types/app/bsky/draft/updateDraft.ts +34 -0
  121. package/src/lexicon/types/app/bsky/embed/video.ts +4 -0
  122. package/src/lexicon/types/app/bsky/notification/listNotifications.ts +1 -0
  123. package/src/lexicon/types/app/bsky/unspecced/getSuggestedUsers.ts +2 -0
  124. package/src/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts +2 -0
  125. package/src/lexicon/types/com/atproto/server/deleteSession.ts +1 -0
  126. package/src/lexicon/types/com/atproto/server/getSession.ts +1 -1
  127. package/src/lexicon/types/com/atproto/server/refreshSession.ts +4 -1
  128. package/src/mod-service/index.ts +12 -5
  129. package/src/mod-service/util.ts +3 -2
  130. package/tests/query-labels.test.ts +0 -2
  131. package/tsconfig.build.tsbuildinfo +1 -1
  132. package/tsconfig.tests.tsbuildinfo +0 -1
@@ -251,6 +251,10 @@ export const schemaDict = {
251
251
  type: 'ref',
252
252
  ref: 'lex:app.bsky.actor.defs#profileAssociatedActivitySubscription',
253
253
  },
254
+ germ: {
255
+ type: 'ref',
256
+ ref: 'lex:app.bsky.actor.defs#profileAssociatedGerm',
257
+ },
254
258
  },
255
259
  },
256
260
  profileAssociatedChat: {
@@ -263,6 +267,20 @@ export const schemaDict = {
263
267
  },
264
268
  },
265
269
  },
270
+ profileAssociatedGerm: {
271
+ type: 'object',
272
+ required: ['showButtonTo', 'messageMeUrl'],
273
+ properties: {
274
+ messageMeUrl: {
275
+ type: 'string',
276
+ format: 'uri',
277
+ },
278
+ showButtonTo: {
279
+ type: 'string',
280
+ knownValues: ['usersIFollow', 'everyone'],
281
+ },
282
+ },
283
+ },
266
284
  profileAssociatedActivitySubscription: {
267
285
  type: 'object',
268
286
  required: ['allowSubscriptions'],
@@ -401,6 +419,7 @@ export const schemaDict = {
401
419
  'lex:app.bsky.actor.defs#savedFeedsPref',
402
420
  'lex:app.bsky.actor.defs#savedFeedsPrefV2',
403
421
  'lex:app.bsky.actor.defs#personalDetailsPref',
422
+ 'lex:app.bsky.actor.defs#declaredAgePref',
404
423
  'lex:app.bsky.actor.defs#feedViewPref',
405
424
  'lex:app.bsky.actor.defs#threadViewPref',
406
425
  'lex:app.bsky.actor.defs#interestsPref',
@@ -410,6 +429,7 @@ export const schemaDict = {
410
429
  'lex:app.bsky.actor.defs#labelersPref',
411
430
  'lex:app.bsky.actor.defs#postInteractionSettingsPref',
412
431
  'lex:app.bsky.actor.defs#verificationPrefs',
432
+ 'lex:app.bsky.actor.defs#liveEventPreferences',
413
433
  ],
414
434
  },
415
435
  },
@@ -507,6 +527,28 @@ export const schemaDict = {
507
527
  },
508
528
  },
509
529
  },
530
+ declaredAgePref: {
531
+ type: 'object',
532
+ description:
533
+ "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.",
534
+ properties: {
535
+ isOverAge13: {
536
+ type: 'boolean',
537
+ description:
538
+ 'Indicates if the user has declared that they are over 13 years of age.',
539
+ },
540
+ isOverAge16: {
541
+ type: 'boolean',
542
+ description:
543
+ 'Indicates if the user has declared that they are over 16 years of age.',
544
+ },
545
+ isOverAge18: {
546
+ type: 'boolean',
547
+ description:
548
+ 'Indicates if the user has declared that they are over 18 years of age.',
549
+ },
550
+ },
551
+ },
510
552
  feedViewPref: {
511
553
  type: 'object',
512
554
  required: ['feed'],
@@ -752,6 +794,25 @@ export const schemaDict = {
752
794
  },
753
795
  },
754
796
  },
797
+ liveEventPreferences: {
798
+ type: 'object',
799
+ description: 'Preferences for live events.',
800
+ properties: {
801
+ hiddenFeedIds: {
802
+ description:
803
+ 'A list of feed IDs that the user has hidden from live events.',
804
+ type: 'array',
805
+ items: {
806
+ type: 'string',
807
+ },
808
+ },
809
+ hideAllFeeds: {
810
+ description: 'Whether to hide all feeds from live events.',
811
+ type: 'boolean',
812
+ default: false,
813
+ },
814
+ },
815
+ },
755
816
  postInteractionSettingsPref: {
756
817
  type: 'object',
757
818
  description:
@@ -789,6 +850,14 @@ export const schemaDict = {
789
850
  type: 'object',
790
851
  required: ['status', 'record'],
791
852
  properties: {
853
+ uri: {
854
+ type: 'string',
855
+ format: 'at-uri',
856
+ },
857
+ cid: {
858
+ type: 'string',
859
+ format: 'cid',
860
+ },
792
861
  status: {
793
862
  type: 'string',
794
863
  description: 'The status for the account.',
@@ -813,6 +882,11 @@ export const schemaDict = {
813
882
  description:
814
883
  'True if the status is not expired, false if it is expired. Only present if expiration was set.',
815
884
  },
885
+ isDisabled: {
886
+ type: 'boolean',
887
+ description:
888
+ "True if the user's go-live access has been disabled by a moderator, false otherwise.",
889
+ },
816
890
  },
817
891
  },
818
892
  },
@@ -1322,7 +1396,7 @@ export const schemaDict = {
1322
1396
  configRegion: {
1323
1397
  type: 'object',
1324
1398
  description: 'The Age Assurance configuration for a specific region.',
1325
- required: ['countryCode', 'rules'],
1399
+ required: ['countryCode', 'minAccessAge', 'rules'],
1326
1400
  properties: {
1327
1401
  countryCode: {
1328
1402
  type: 'string',
@@ -1334,6 +1408,11 @@ export const schemaDict = {
1334
1408
  description:
1335
1409
  'The ISO 3166-2 region code this configuration applies to. If omitted, the configuration applies to the entire country.',
1336
1410
  },
1411
+ minAccessAge: {
1412
+ type: 'integer',
1413
+ description:
1414
+ 'The minimum age (as a whole integer) required to use Bluesky in this region.',
1415
+ },
1337
1416
  rules: {
1338
1417
  type: 'array',
1339
1418
  description:
@@ -1776,6 +1855,24 @@ export const schemaDict = {
1776
1855
  },
1777
1856
  },
1778
1857
  },
1858
+ notification: {
1859
+ description:
1860
+ 'A stash object to be sent via bsync representing a notification to be created.',
1861
+ type: 'object',
1862
+ required: ['from', 'to'],
1863
+ properties: {
1864
+ from: {
1865
+ description: 'The DID of who this notification comes from.',
1866
+ type: 'string',
1867
+ format: 'did',
1868
+ },
1869
+ to: {
1870
+ description: 'The DID of who this notification should go to.',
1871
+ type: 'string',
1872
+ format: 'did',
1873
+ },
1874
+ },
1875
+ },
1779
1876
  },
1780
1877
  },
1781
1878
  AppBskyContactDismissMatch: {
@@ -1785,7 +1882,7 @@ export const schemaDict = {
1785
1882
  main: {
1786
1883
  type: 'procedure',
1787
1884
  description:
1788
- "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.",
1885
+ "Removes a match that was found via contact import. It shouldn't appear again if the same contact is re-imported. Requires authentication.",
1789
1886
  input: {
1790
1887
  encoding: 'application/json',
1791
1888
  schema: {
@@ -1809,8 +1906,10 @@ export const schemaDict = {
1809
1906
  },
1810
1907
  errors: [
1811
1908
  {
1812
- name: 'TODO',
1813
- description: 'TODO',
1909
+ name: 'InvalidDid',
1910
+ },
1911
+ {
1912
+ name: 'InternalError',
1814
1913
  },
1815
1914
  ],
1816
1915
  },
@@ -1823,7 +1922,7 @@ export const schemaDict = {
1823
1922
  main: {
1824
1923
  type: 'query',
1825
1924
  description:
1826
- "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.",
1925
+ 'Returns the matched contacts (contacts that were mutually imported). Excludes dismissed matches. Requires authentication.',
1827
1926
  parameters: {
1828
1927
  type: 'params',
1829
1928
  properties: {
@@ -1859,8 +1958,16 @@ export const schemaDict = {
1859
1958
  },
1860
1959
  errors: [
1861
1960
  {
1862
- name: 'TODO',
1863
- description: 'TODO',
1961
+ name: 'InvalidDid',
1962
+ },
1963
+ {
1964
+ name: 'InvalidLimit',
1965
+ },
1966
+ {
1967
+ name: 'InvalidCursor',
1968
+ },
1969
+ {
1970
+ name: 'InternalError',
1864
1971
  },
1865
1972
  ],
1866
1973
  },
@@ -1873,7 +1980,7 @@ export const schemaDict = {
1873
1980
  main: {
1874
1981
  type: 'query',
1875
1982
  description:
1876
- "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.",
1983
+ "Gets the user's current contact import status. Requires authentication.",
1877
1984
  parameters: {
1878
1985
  type: 'params',
1879
1986
  properties: {},
@@ -1894,8 +2001,10 @@ export const schemaDict = {
1894
2001
  },
1895
2002
  errors: [
1896
2003
  {
1897
- name: 'TODO',
1898
- description: 'TODO',
2004
+ name: 'InvalidDid',
2005
+ },
2006
+ {
2007
+ name: 'InternalError',
1899
2008
  },
1900
2009
  ],
1901
2010
  },
@@ -1908,7 +2017,7 @@ export const schemaDict = {
1908
2017
  main: {
1909
2018
  type: 'procedure',
1910
2019
  description:
1911
- "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.",
2020
+ 'Import contacts for securely matching with other users. This follows the protocol explained in https://docs.bsky.app/blog/contact-import-rfc. Requires authentication.',
1912
2021
  input: {
1913
2022
  encoding: 'application/json',
1914
2023
  schema: {
@@ -1953,8 +2062,19 @@ export const schemaDict = {
1953
2062
  },
1954
2063
  errors: [
1955
2064
  {
1956
- name: 'TODO',
1957
- description: 'TODO',
2065
+ name: 'InvalidDid',
2066
+ },
2067
+ {
2068
+ name: 'InvalidContacts',
2069
+ },
2070
+ {
2071
+ name: 'TooManyContacts',
2072
+ },
2073
+ {
2074
+ name: 'InvalidToken',
2075
+ },
2076
+ {
2077
+ name: 'InternalError',
1958
2078
  },
1959
2079
  ],
1960
2080
  },
@@ -1967,7 +2087,7 @@ export const schemaDict = {
1967
2087
  main: {
1968
2088
  type: 'procedure',
1969
2089
  description:
1970
- "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.",
2090
+ 'Removes all stored hashes used for contact matching, existing matches, and sync status. Requires authentication.',
1971
2091
  input: {
1972
2092
  encoding: 'application/json',
1973
2093
  schema: {
@@ -1984,13 +2104,52 @@ export const schemaDict = {
1984
2104
  },
1985
2105
  errors: [
1986
2106
  {
1987
- name: 'TODO',
1988
- description: 'TODO',
2107
+ name: 'InvalidDid',
2108
+ },
2109
+ {
2110
+ name: 'InternalError',
1989
2111
  },
1990
2112
  ],
1991
2113
  },
1992
2114
  },
1993
2115
  },
2116
+ AppBskyContactSendNotification: {
2117
+ lexicon: 1,
2118
+ id: 'app.bsky.contact.sendNotification',
2119
+ defs: {
2120
+ main: {
2121
+ type: 'procedure',
2122
+ description:
2123
+ 'System endpoint to send notifications related to contact imports. Requires role authentication.',
2124
+ input: {
2125
+ encoding: 'application/json',
2126
+ schema: {
2127
+ type: 'object',
2128
+ required: ['from', 'to'],
2129
+ properties: {
2130
+ from: {
2131
+ description: 'The DID of who this notification comes from.',
2132
+ type: 'string',
2133
+ format: 'did',
2134
+ },
2135
+ to: {
2136
+ description: 'The DID of who this notification should go to.',
2137
+ type: 'string',
2138
+ format: 'did',
2139
+ },
2140
+ },
2141
+ },
2142
+ },
2143
+ output: {
2144
+ encoding: 'application/json',
2145
+ schema: {
2146
+ type: 'object',
2147
+ properties: {},
2148
+ },
2149
+ },
2150
+ },
2151
+ },
2152
+ },
1994
2153
  AppBskyContactStartPhoneVerification: {
1995
2154
  lexicon: 1,
1996
2155
  id: 'app.bsky.contact.startPhoneVerification',
@@ -1998,7 +2157,7 @@ export const schemaDict = {
1998
2157
  main: {
1999
2158
  type: 'procedure',
2000
2159
  description:
2001
- "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.",
2160
+ '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.',
2002
2161
  input: {
2003
2162
  encoding: 'application/json',
2004
2163
  schema: {
@@ -2021,8 +2180,16 @@ export const schemaDict = {
2021
2180
  },
2022
2181
  errors: [
2023
2182
  {
2024
- name: 'TODO',
2025
- description: 'TODO',
2183
+ name: 'RateLimitExceeded',
2184
+ },
2185
+ {
2186
+ name: 'InvalidDid',
2187
+ },
2188
+ {
2189
+ name: 'InvalidPhone',
2190
+ },
2191
+ {
2192
+ name: 'InternalError',
2026
2193
  },
2027
2194
  ],
2028
2195
  },
@@ -2035,7 +2202,7 @@ export const schemaDict = {
2035
2202
  main: {
2036
2203
  type: 'procedure',
2037
2204
  description:
2038
- "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.",
2205
+ 'Verifies control over a phone number with a code received via SMS and starts a contact import session. Requires authentication.',
2039
2206
  input: {
2040
2207
  encoding: 'application/json',
2041
2208
  schema: {
@@ -2071,13 +2238,393 @@ export const schemaDict = {
2071
2238
  },
2072
2239
  errors: [
2073
2240
  {
2074
- name: 'TODO',
2075
- description: 'TODO',
2241
+ name: 'RateLimitExceeded',
2242
+ },
2243
+ {
2244
+ name: 'InvalidDid',
2245
+ },
2246
+ {
2247
+ name: 'InvalidPhone',
2248
+ },
2249
+ {
2250
+ name: 'InvalidCode',
2251
+ },
2252
+ {
2253
+ name: 'InternalError',
2076
2254
  },
2077
2255
  ],
2078
2256
  },
2079
2257
  },
2080
2258
  },
2259
+ AppBskyDraftCreateDraft: {
2260
+ lexicon: 1,
2261
+ id: 'app.bsky.draft.createDraft',
2262
+ defs: {
2263
+ main: {
2264
+ type: 'procedure',
2265
+ description:
2266
+ 'Inserts a draft using private storage (stash). An upper limit of drafts might be enforced. Requires authentication.',
2267
+ input: {
2268
+ encoding: 'application/json',
2269
+ schema: {
2270
+ type: 'object',
2271
+ required: ['draft'],
2272
+ properties: {
2273
+ draft: {
2274
+ type: 'ref',
2275
+ ref: 'lex:app.bsky.draft.defs#draft',
2276
+ },
2277
+ },
2278
+ },
2279
+ },
2280
+ output: {
2281
+ encoding: 'application/json',
2282
+ schema: {
2283
+ type: 'object',
2284
+ required: ['id'],
2285
+ properties: {
2286
+ id: {
2287
+ type: 'string',
2288
+ description: 'The ID of the created draft.',
2289
+ },
2290
+ },
2291
+ },
2292
+ },
2293
+ errors: [
2294
+ {
2295
+ name: 'DraftLimitReached',
2296
+ description:
2297
+ 'Trying to insert a new draft when the limit was already reached.',
2298
+ },
2299
+ ],
2300
+ },
2301
+ },
2302
+ },
2303
+ AppBskyDraftDefs: {
2304
+ lexicon: 1,
2305
+ id: 'app.bsky.draft.defs',
2306
+ defs: {
2307
+ draftWithId: {
2308
+ description:
2309
+ 'A draft with an identifier, used to store drafts in private storage (stash).',
2310
+ type: 'object',
2311
+ required: ['id', 'draft'],
2312
+ properties: {
2313
+ id: {
2314
+ description: 'A TID to be used as a draft identifier.',
2315
+ type: 'string',
2316
+ format: 'tid',
2317
+ },
2318
+ draft: {
2319
+ type: 'ref',
2320
+ ref: 'lex:app.bsky.draft.defs#draft',
2321
+ },
2322
+ },
2323
+ },
2324
+ draft: {
2325
+ description: 'A draft containing an array of draft posts.',
2326
+ type: 'object',
2327
+ required: ['posts'],
2328
+ properties: {
2329
+ posts: {
2330
+ description: 'Array of draft posts that compose this draft.',
2331
+ type: 'array',
2332
+ minLength: 1,
2333
+ maxLength: 100,
2334
+ items: {
2335
+ type: 'ref',
2336
+ ref: 'lex:app.bsky.draft.defs#draftPost',
2337
+ },
2338
+ },
2339
+ langs: {
2340
+ type: 'array',
2341
+ description:
2342
+ 'Indicates human language of posts primary text content.',
2343
+ maxLength: 3,
2344
+ items: {
2345
+ type: 'string',
2346
+ format: 'language',
2347
+ },
2348
+ },
2349
+ postgateEmbeddingRules: {
2350
+ description:
2351
+ 'Embedding rules for the postgates to be created when this draft is published.',
2352
+ type: 'array',
2353
+ maxLength: 5,
2354
+ items: {
2355
+ type: 'union',
2356
+ refs: ['lex:app.bsky.feed.postgate#disableRule'],
2357
+ },
2358
+ },
2359
+ threadgateAllow: {
2360
+ description:
2361
+ 'Allow-rules for the threadgate to be created when this draft is published.',
2362
+ type: 'array',
2363
+ maxLength: 5,
2364
+ items: {
2365
+ type: 'union',
2366
+ refs: [
2367
+ 'lex:app.bsky.feed.threadgate#mentionRule',
2368
+ 'lex:app.bsky.feed.threadgate#followerRule',
2369
+ 'lex:app.bsky.feed.threadgate#followingRule',
2370
+ 'lex:app.bsky.feed.threadgate#listRule',
2371
+ ],
2372
+ },
2373
+ },
2374
+ },
2375
+ },
2376
+ draftPost: {
2377
+ description: 'One of the posts that compose a draft.',
2378
+ type: 'object',
2379
+ required: ['text'],
2380
+ properties: {
2381
+ text: {
2382
+ type: 'string',
2383
+ maxLength: 3000,
2384
+ maxGraphemes: 300,
2385
+ description: 'The primary post content.',
2386
+ },
2387
+ labels: {
2388
+ type: 'union',
2389
+ description:
2390
+ 'Self-label values for this post. Effectively content warnings.',
2391
+ refs: ['lex:com.atproto.label.defs#selfLabels'],
2392
+ },
2393
+ embedImages: {
2394
+ type: 'array',
2395
+ items: {
2396
+ type: 'ref',
2397
+ ref: 'lex:app.bsky.draft.defs#draftEmbedImage',
2398
+ },
2399
+ maxLength: 4,
2400
+ },
2401
+ embedVideos: {
2402
+ type: 'array',
2403
+ items: {
2404
+ type: 'ref',
2405
+ ref: 'lex:app.bsky.draft.defs#draftEmbedVideo',
2406
+ },
2407
+ maxLength: 1,
2408
+ },
2409
+ embedExternals: {
2410
+ type: 'array',
2411
+ items: {
2412
+ type: 'ref',
2413
+ ref: 'lex:app.bsky.draft.defs#draftEmbedExternal',
2414
+ },
2415
+ maxLength: 1,
2416
+ },
2417
+ embedRecords: {
2418
+ type: 'array',
2419
+ items: {
2420
+ type: 'ref',
2421
+ ref: 'lex:app.bsky.draft.defs#draftEmbedRecord',
2422
+ },
2423
+ maxLength: 1,
2424
+ },
2425
+ },
2426
+ },
2427
+ draftView: {
2428
+ description: 'View to present drafts data to users.',
2429
+ type: 'object',
2430
+ required: ['id', 'draft', 'createdAt', 'updatedAt'],
2431
+ properties: {
2432
+ id: {
2433
+ description: 'A TID to be used as a draft identifier.',
2434
+ type: 'string',
2435
+ format: 'tid',
2436
+ },
2437
+ draft: {
2438
+ type: 'ref',
2439
+ ref: 'lex:app.bsky.draft.defs#draft',
2440
+ },
2441
+ createdAt: {
2442
+ description: 'The time the draft was created.',
2443
+ type: 'string',
2444
+ format: 'datetime',
2445
+ },
2446
+ updatedAt: {
2447
+ description: 'The time the draft was last updated.',
2448
+ type: 'string',
2449
+ format: 'datetime',
2450
+ },
2451
+ },
2452
+ },
2453
+ draftEmbedLocalRef: {
2454
+ type: 'object',
2455
+ required: ['path'],
2456
+ properties: {
2457
+ path: {
2458
+ type: 'string',
2459
+ description:
2460
+ 'Local, on-device ref to file to be embedded. Embeds are currently device-bound for drafts.',
2461
+ minLength: 1,
2462
+ maxLength: 1024,
2463
+ },
2464
+ },
2465
+ },
2466
+ draftEmbedCaption: {
2467
+ type: 'object',
2468
+ required: ['lang', 'content'],
2469
+ properties: {
2470
+ lang: {
2471
+ type: 'string',
2472
+ format: 'language',
2473
+ },
2474
+ content: {
2475
+ type: 'string',
2476
+ maxLength: 10000,
2477
+ },
2478
+ },
2479
+ },
2480
+ draftEmbedImage: {
2481
+ type: 'object',
2482
+ required: ['localRef'],
2483
+ properties: {
2484
+ localRef: {
2485
+ type: 'ref',
2486
+ ref: 'lex:app.bsky.draft.defs#draftEmbedLocalRef',
2487
+ },
2488
+ alt: {
2489
+ type: 'string',
2490
+ maxGraphemes: 2000,
2491
+ },
2492
+ },
2493
+ },
2494
+ draftEmbedVideo: {
2495
+ type: 'object',
2496
+ required: ['localRef'],
2497
+ properties: {
2498
+ localRef: {
2499
+ type: 'ref',
2500
+ ref: 'lex:app.bsky.draft.defs#draftEmbedLocalRef',
2501
+ },
2502
+ alt: {
2503
+ type: 'string',
2504
+ maxGraphemes: 2000,
2505
+ },
2506
+ captions: {
2507
+ type: 'array',
2508
+ items: {
2509
+ type: 'ref',
2510
+ ref: 'lex:app.bsky.draft.defs#draftEmbedCaption',
2511
+ },
2512
+ maxLength: 20,
2513
+ },
2514
+ },
2515
+ },
2516
+ draftEmbedExternal: {
2517
+ type: 'object',
2518
+ required: ['uri'],
2519
+ properties: {
2520
+ uri: {
2521
+ type: 'string',
2522
+ format: 'uri',
2523
+ },
2524
+ },
2525
+ },
2526
+ draftEmbedRecord: {
2527
+ type: 'object',
2528
+ required: ['record'],
2529
+ properties: {
2530
+ record: {
2531
+ type: 'ref',
2532
+ ref: 'lex:com.atproto.repo.strongRef',
2533
+ },
2534
+ },
2535
+ },
2536
+ },
2537
+ },
2538
+ AppBskyDraftDeleteDraft: {
2539
+ lexicon: 1,
2540
+ id: 'app.bsky.draft.deleteDraft',
2541
+ defs: {
2542
+ main: {
2543
+ type: 'procedure',
2544
+ description: 'Deletes a draft by ID. Requires authentication.',
2545
+ input: {
2546
+ encoding: 'application/json',
2547
+ schema: {
2548
+ type: 'object',
2549
+ required: ['id'],
2550
+ properties: {
2551
+ id: {
2552
+ type: 'string',
2553
+ format: 'tid',
2554
+ },
2555
+ },
2556
+ },
2557
+ },
2558
+ },
2559
+ },
2560
+ },
2561
+ AppBskyDraftGetDrafts: {
2562
+ lexicon: 1,
2563
+ id: 'app.bsky.draft.getDrafts',
2564
+ defs: {
2565
+ main: {
2566
+ type: 'query',
2567
+ description: 'Gets views of user drafts. Requires authentication.',
2568
+ parameters: {
2569
+ type: 'params',
2570
+ properties: {
2571
+ limit: {
2572
+ type: 'integer',
2573
+ minimum: 1,
2574
+ maximum: 100,
2575
+ default: 50,
2576
+ },
2577
+ cursor: {
2578
+ type: 'string',
2579
+ },
2580
+ },
2581
+ },
2582
+ output: {
2583
+ encoding: 'application/json',
2584
+ schema: {
2585
+ type: 'object',
2586
+ required: ['drafts'],
2587
+ properties: {
2588
+ cursor: {
2589
+ type: 'string',
2590
+ },
2591
+ drafts: {
2592
+ type: 'array',
2593
+ items: {
2594
+ type: 'ref',
2595
+ ref: 'lex:app.bsky.draft.defs#draftView',
2596
+ },
2597
+ },
2598
+ },
2599
+ },
2600
+ },
2601
+ },
2602
+ },
2603
+ },
2604
+ AppBskyDraftUpdateDraft: {
2605
+ lexicon: 1,
2606
+ id: 'app.bsky.draft.updateDraft',
2607
+ defs: {
2608
+ main: {
2609
+ type: 'procedure',
2610
+ description:
2611
+ "Updates a draft using private storage (stash). If the draft ID points to a non-existing ID, the update will be silently ignored. This is done because updates don't enforce draft limit, so it accepts all writes, but will ignore invalid ones. Requires authentication.",
2612
+ input: {
2613
+ encoding: 'application/json',
2614
+ schema: {
2615
+ type: 'object',
2616
+ required: ['draft'],
2617
+ properties: {
2618
+ draft: {
2619
+ type: 'ref',
2620
+ ref: 'lex:app.bsky.draft.defs#draftWithId',
2621
+ },
2622
+ },
2623
+ },
2624
+ },
2625
+ },
2626
+ },
2627
+ },
2081
2628
  AppBskyEmbedDefs: {
2082
2629
  lexicon: 1,
2083
2630
  id: 'app.bsky.embed.defs',
@@ -2471,6 +3018,11 @@ export const schemaDict = {
2471
3018
  type: 'ref',
2472
3019
  ref: 'lex:app.bsky.embed.defs#aspectRatio',
2473
3020
  },
3021
+ presentation: {
3022
+ type: 'string',
3023
+ description: 'A hint to the client about how to present the video.',
3024
+ knownValues: ['default', 'gif'],
3025
+ },
2474
3026
  },
2475
3027
  },
2476
3028
  caption: {
@@ -2513,6 +3065,11 @@ export const schemaDict = {
2513
3065
  type: 'ref',
2514
3066
  ref: 'lex:app.bsky.embed.defs#aspectRatio',
2515
3067
  },
3068
+ presentation: {
3069
+ type: 'string',
3070
+ description: 'A hint to the client about how to present the video.',
3071
+ knownValues: ['default', 'gif'],
3072
+ },
2516
3073
  },
2517
3074
  },
2518
3075
  },
@@ -6725,6 +7282,7 @@ export const schemaDict = {
6725
7282
  'like-via-repost',
6726
7283
  'repost-via-repost',
6727
7284
  'subscribed-post',
7285
+ 'contact-match',
6728
7286
  ],
6729
7287
  },
6730
7288
  reasonSubject: {
@@ -7889,6 +8447,11 @@ export const schemaDict = {
7889
8447
  ref: 'lex:app.bsky.actor.defs#profileView',
7890
8448
  },
7891
8449
  },
8450
+ recId: {
8451
+ type: 'string',
8452
+ description:
8453
+ 'Snowflake for this recommendation, use when submitting recommendation events.',
8454
+ },
7892
8455
  },
7893
8456
  },
7894
8457
  },
@@ -7937,6 +8500,11 @@ export const schemaDict = {
7937
8500
  format: 'did',
7938
8501
  },
7939
8502
  },
8503
+ recId: {
8504
+ type: 'string',
8505
+ description:
8506
+ 'Snowflake for this recommendation, use when submitting recommendation events.',
8507
+ },
7940
8508
  },
7941
8509
  },
7942
8510
  },
@@ -12896,7 +13464,16 @@ export const schemaDict = {
12896
13464
  defs: {
12897
13465
  main: {
12898
13466
  type: 'procedure',
12899
- description: 'Delete the current session. Requires auth.',
13467
+ description:
13468
+ "Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').",
13469
+ errors: [
13470
+ {
13471
+ name: 'InvalidToken',
13472
+ },
13473
+ {
13474
+ name: 'ExpiredToken',
13475
+ },
13476
+ ],
12900
13477
  },
12901
13478
  },
12902
13479
  },
@@ -13095,6 +13672,9 @@ export const schemaDict = {
13095
13672
  type: 'string',
13096
13673
  format: 'did',
13097
13674
  },
13675
+ didDoc: {
13676
+ type: 'unknown',
13677
+ },
13098
13678
  email: {
13099
13679
  type: 'string',
13100
13680
  },
@@ -13104,9 +13684,6 @@ export const schemaDict = {
13104
13684
  emailAuthFactor: {
13105
13685
  type: 'boolean',
13106
13686
  },
13107
- didDoc: {
13108
- type: 'unknown',
13109
- },
13110
13687
  active: {
13111
13688
  type: 'boolean',
13112
13689
  },
@@ -13200,6 +13777,15 @@ export const schemaDict = {
13200
13777
  didDoc: {
13201
13778
  type: 'unknown',
13202
13779
  },
13780
+ email: {
13781
+ type: 'string',
13782
+ },
13783
+ emailConfirmed: {
13784
+ type: 'boolean',
13785
+ },
13786
+ emailAuthFactor: {
13787
+ type: 'boolean',
13788
+ },
13203
13789
  active: {
13204
13790
  type: 'boolean',
13205
13791
  },
@@ -13216,6 +13802,12 @@ export const schemaDict = {
13216
13802
  {
13217
13803
  name: 'AccountTakedown',
13218
13804
  },
13805
+ {
13806
+ name: 'InvalidToken',
13807
+ },
13808
+ {
13809
+ name: 'ExpiredToken',
13810
+ },
13219
13811
  ],
13220
13812
  },
13221
13813
  },
@@ -19949,9 +20541,15 @@ export const ids = {
19949
20541
  AppBskyContactGetSyncStatus: 'app.bsky.contact.getSyncStatus',
19950
20542
  AppBskyContactImportContacts: 'app.bsky.contact.importContacts',
19951
20543
  AppBskyContactRemoveData: 'app.bsky.contact.removeData',
20544
+ AppBskyContactSendNotification: 'app.bsky.contact.sendNotification',
19952
20545
  AppBskyContactStartPhoneVerification:
19953
20546
  'app.bsky.contact.startPhoneVerification',
19954
20547
  AppBskyContactVerifyPhone: 'app.bsky.contact.verifyPhone',
20548
+ AppBskyDraftCreateDraft: 'app.bsky.draft.createDraft',
20549
+ AppBskyDraftDefs: 'app.bsky.draft.defs',
20550
+ AppBskyDraftDeleteDraft: 'app.bsky.draft.deleteDraft',
20551
+ AppBskyDraftGetDrafts: 'app.bsky.draft.getDrafts',
20552
+ AppBskyDraftUpdateDraft: 'app.bsky.draft.updateDraft',
19955
20553
  AppBskyEmbedDefs: 'app.bsky.embed.defs',
19956
20554
  AppBskyEmbedExternal: 'app.bsky.embed.external',
19957
20555
  AppBskyEmbedImages: 'app.bsky.embed.images',