@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
@@ -249,6 +249,10 @@ exports.schemaDict = {
249
249
  type: 'ref',
250
250
  ref: 'lex:app.bsky.actor.defs#profileAssociatedActivitySubscription',
251
251
  },
252
+ germ: {
253
+ type: 'ref',
254
+ ref: 'lex:app.bsky.actor.defs#profileAssociatedGerm',
255
+ },
252
256
  },
253
257
  },
254
258
  profileAssociatedChat: {
@@ -261,6 +265,20 @@ exports.schemaDict = {
261
265
  },
262
266
  },
263
267
  },
268
+ profileAssociatedGerm: {
269
+ type: 'object',
270
+ required: ['showButtonTo', 'messageMeUrl'],
271
+ properties: {
272
+ messageMeUrl: {
273
+ type: 'string',
274
+ format: 'uri',
275
+ },
276
+ showButtonTo: {
277
+ type: 'string',
278
+ knownValues: ['usersIFollow', 'everyone'],
279
+ },
280
+ },
281
+ },
264
282
  profileAssociatedActivitySubscription: {
265
283
  type: 'object',
266
284
  required: ['allowSubscriptions'],
@@ -393,6 +411,7 @@ exports.schemaDict = {
393
411
  'lex:app.bsky.actor.defs#savedFeedsPref',
394
412
  'lex:app.bsky.actor.defs#savedFeedsPrefV2',
395
413
  'lex:app.bsky.actor.defs#personalDetailsPref',
414
+ 'lex:app.bsky.actor.defs#declaredAgePref',
396
415
  'lex:app.bsky.actor.defs#feedViewPref',
397
416
  'lex:app.bsky.actor.defs#threadViewPref',
398
417
  'lex:app.bsky.actor.defs#interestsPref',
@@ -402,6 +421,7 @@ exports.schemaDict = {
402
421
  'lex:app.bsky.actor.defs#labelersPref',
403
422
  'lex:app.bsky.actor.defs#postInteractionSettingsPref',
404
423
  'lex:app.bsky.actor.defs#verificationPrefs',
424
+ 'lex:app.bsky.actor.defs#liveEventPreferences',
405
425
  ],
406
426
  },
407
427
  },
@@ -498,6 +518,24 @@ exports.schemaDict = {
498
518
  },
499
519
  },
500
520
  },
521
+ declaredAgePref: {
522
+ type: 'object',
523
+ 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.",
524
+ properties: {
525
+ isOverAge13: {
526
+ type: 'boolean',
527
+ description: 'Indicates if the user has declared that they are over 13 years of age.',
528
+ },
529
+ isOverAge16: {
530
+ type: 'boolean',
531
+ description: 'Indicates if the user has declared that they are over 16 years of age.',
532
+ },
533
+ isOverAge18: {
534
+ type: 'boolean',
535
+ description: 'Indicates if the user has declared that they are over 18 years of age.',
536
+ },
537
+ },
538
+ },
501
539
  feedViewPref: {
502
540
  type: 'object',
503
541
  required: ['feed'],
@@ -730,6 +768,24 @@ exports.schemaDict = {
730
768
  },
731
769
  },
732
770
  },
771
+ liveEventPreferences: {
772
+ type: 'object',
773
+ description: 'Preferences for live events.',
774
+ properties: {
775
+ hiddenFeedIds: {
776
+ description: 'A list of feed IDs that the user has hidden from live events.',
777
+ type: 'array',
778
+ items: {
779
+ type: 'string',
780
+ },
781
+ },
782
+ hideAllFeeds: {
783
+ description: 'Whether to hide all feeds from live events.',
784
+ type: 'boolean',
785
+ default: false,
786
+ },
787
+ },
788
+ },
733
789
  postInteractionSettingsPref: {
734
790
  type: 'object',
735
791
  description: 'Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.',
@@ -764,6 +820,14 @@ exports.schemaDict = {
764
820
  type: 'object',
765
821
  required: ['status', 'record'],
766
822
  properties: {
823
+ uri: {
824
+ type: 'string',
825
+ format: 'at-uri',
826
+ },
827
+ cid: {
828
+ type: 'string',
829
+ format: 'cid',
830
+ },
767
831
  status: {
768
832
  type: 'string',
769
833
  description: 'The status for the account.',
@@ -786,6 +850,10 @@ exports.schemaDict = {
786
850
  type: 'boolean',
787
851
  description: 'True if the status is not expired, false if it is expired. Only present if expiration was set.',
788
852
  },
853
+ isDisabled: {
854
+ type: 'boolean',
855
+ description: "True if the user's go-live access has been disabled by a moderator, false otherwise.",
856
+ },
789
857
  },
790
858
  },
791
859
  },
@@ -1277,7 +1345,7 @@ exports.schemaDict = {
1277
1345
  configRegion: {
1278
1346
  type: 'object',
1279
1347
  description: 'The Age Assurance configuration for a specific region.',
1280
- required: ['countryCode', 'rules'],
1348
+ required: ['countryCode', 'minAccessAge', 'rules'],
1281
1349
  properties: {
1282
1350
  countryCode: {
1283
1351
  type: 'string',
@@ -1287,6 +1355,10 @@ exports.schemaDict = {
1287
1355
  type: 'string',
1288
1356
  description: 'The ISO 3166-2 region code this configuration applies to. If omitted, the configuration applies to the entire country.',
1289
1357
  },
1358
+ minAccessAge: {
1359
+ type: 'integer',
1360
+ description: 'The minimum age (as a whole integer) required to use Bluesky in this region.',
1361
+ },
1290
1362
  rules: {
1291
1363
  type: 'array',
1292
1364
  description: 'The ordered list of Age Assurance rules that apply to this region. Rules should be applied in order, and the first matching rule determines the access level granted. The rules array should always include a default rule as the last item.',
@@ -1704,6 +1776,23 @@ exports.schemaDict = {
1704
1776
  },
1705
1777
  },
1706
1778
  },
1779
+ notification: {
1780
+ description: 'A stash object to be sent via bsync representing a notification to be created.',
1781
+ type: 'object',
1782
+ required: ['from', 'to'],
1783
+ properties: {
1784
+ from: {
1785
+ description: 'The DID of who this notification comes from.',
1786
+ type: 'string',
1787
+ format: 'did',
1788
+ },
1789
+ to: {
1790
+ description: 'The DID of who this notification should go to.',
1791
+ type: 'string',
1792
+ format: 'did',
1793
+ },
1794
+ },
1795
+ },
1707
1796
  },
1708
1797
  },
1709
1798
  AppBskyContactDismissMatch: {
@@ -1712,7 +1801,7 @@ exports.schemaDict = {
1712
1801
  defs: {
1713
1802
  main: {
1714
1803
  type: 'procedure',
1715
- 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.",
1804
+ description: "Removes a match that was found via contact import. It shouldn't appear again if the same contact is re-imported. Requires authentication.",
1716
1805
  input: {
1717
1806
  encoding: 'application/json',
1718
1807
  schema: {
@@ -1736,8 +1825,10 @@ exports.schemaDict = {
1736
1825
  },
1737
1826
  errors: [
1738
1827
  {
1739
- name: 'TODO',
1740
- description: 'TODO',
1828
+ name: 'InvalidDid',
1829
+ },
1830
+ {
1831
+ name: 'InternalError',
1741
1832
  },
1742
1833
  ],
1743
1834
  },
@@ -1749,7 +1840,7 @@ exports.schemaDict = {
1749
1840
  defs: {
1750
1841
  main: {
1751
1842
  type: 'query',
1752
- 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.",
1843
+ description: 'Returns the matched contacts (contacts that were mutually imported). Excludes dismissed matches. Requires authentication.',
1753
1844
  parameters: {
1754
1845
  type: 'params',
1755
1846
  properties: {
@@ -1785,8 +1876,16 @@ exports.schemaDict = {
1785
1876
  },
1786
1877
  errors: [
1787
1878
  {
1788
- name: 'TODO',
1789
- description: 'TODO',
1879
+ name: 'InvalidDid',
1880
+ },
1881
+ {
1882
+ name: 'InvalidLimit',
1883
+ },
1884
+ {
1885
+ name: 'InvalidCursor',
1886
+ },
1887
+ {
1888
+ name: 'InternalError',
1790
1889
  },
1791
1890
  ],
1792
1891
  },
@@ -1798,7 +1897,7 @@ exports.schemaDict = {
1798
1897
  defs: {
1799
1898
  main: {
1800
1899
  type: 'query',
1801
- 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.",
1900
+ description: "Gets the user's current contact import status. Requires authentication.",
1802
1901
  parameters: {
1803
1902
  type: 'params',
1804
1903
  properties: {},
@@ -1818,8 +1917,10 @@ exports.schemaDict = {
1818
1917
  },
1819
1918
  errors: [
1820
1919
  {
1821
- name: 'TODO',
1822
- description: 'TODO',
1920
+ name: 'InvalidDid',
1921
+ },
1922
+ {
1923
+ name: 'InternalError',
1823
1924
  },
1824
1925
  ],
1825
1926
  },
@@ -1831,7 +1932,7 @@ exports.schemaDict = {
1831
1932
  defs: {
1832
1933
  main: {
1833
1934
  type: 'procedure',
1834
- 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.",
1935
+ description: 'Import contacts for securely matching with other users. This follows the protocol explained in https://docs.bsky.app/blog/contact-import-rfc. Requires authentication.',
1835
1936
  input: {
1836
1937
  encoding: 'application/json',
1837
1938
  schema: {
@@ -1873,8 +1974,19 @@ exports.schemaDict = {
1873
1974
  },
1874
1975
  errors: [
1875
1976
  {
1876
- name: 'TODO',
1877
- description: 'TODO',
1977
+ name: 'InvalidDid',
1978
+ },
1979
+ {
1980
+ name: 'InvalidContacts',
1981
+ },
1982
+ {
1983
+ name: 'TooManyContacts',
1984
+ },
1985
+ {
1986
+ name: 'InvalidToken',
1987
+ },
1988
+ {
1989
+ name: 'InternalError',
1878
1990
  },
1879
1991
  ],
1880
1992
  },
@@ -1886,7 +1998,7 @@ exports.schemaDict = {
1886
1998
  defs: {
1887
1999
  main: {
1888
2000
  type: 'procedure',
1889
- 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.",
2001
+ description: 'Removes all stored hashes used for contact matching, existing matches, and sync status. Requires authentication.',
1890
2002
  input: {
1891
2003
  encoding: 'application/json',
1892
2004
  schema: {
@@ -1903,20 +2015,58 @@ exports.schemaDict = {
1903
2015
  },
1904
2016
  errors: [
1905
2017
  {
1906
- name: 'TODO',
1907
- description: 'TODO',
2018
+ name: 'InvalidDid',
2019
+ },
2020
+ {
2021
+ name: 'InternalError',
1908
2022
  },
1909
2023
  ],
1910
2024
  },
1911
2025
  },
1912
2026
  },
2027
+ AppBskyContactSendNotification: {
2028
+ lexicon: 1,
2029
+ id: 'app.bsky.contact.sendNotification',
2030
+ defs: {
2031
+ main: {
2032
+ type: 'procedure',
2033
+ description: 'System endpoint to send notifications related to contact imports. Requires role authentication.',
2034
+ input: {
2035
+ encoding: 'application/json',
2036
+ schema: {
2037
+ type: 'object',
2038
+ required: ['from', 'to'],
2039
+ properties: {
2040
+ from: {
2041
+ description: 'The DID of who this notification comes from.',
2042
+ type: 'string',
2043
+ format: 'did',
2044
+ },
2045
+ to: {
2046
+ description: 'The DID of who this notification should go to.',
2047
+ type: 'string',
2048
+ format: 'did',
2049
+ },
2050
+ },
2051
+ },
2052
+ },
2053
+ output: {
2054
+ encoding: 'application/json',
2055
+ schema: {
2056
+ type: 'object',
2057
+ properties: {},
2058
+ },
2059
+ },
2060
+ },
2061
+ },
2062
+ },
1913
2063
  AppBskyContactStartPhoneVerification: {
1914
2064
  lexicon: 1,
1915
2065
  id: 'app.bsky.contact.startPhoneVerification',
1916
2066
  defs: {
1917
2067
  main: {
1918
2068
  type: 'procedure',
1919
- 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.",
2069
+ description: '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.',
1920
2070
  input: {
1921
2071
  encoding: 'application/json',
1922
2072
  schema: {
@@ -1939,8 +2089,16 @@ exports.schemaDict = {
1939
2089
  },
1940
2090
  errors: [
1941
2091
  {
1942
- name: 'TODO',
1943
- description: 'TODO',
2092
+ name: 'RateLimitExceeded',
2093
+ },
2094
+ {
2095
+ name: 'InvalidDid',
2096
+ },
2097
+ {
2098
+ name: 'InvalidPhone',
2099
+ },
2100
+ {
2101
+ name: 'InternalError',
1944
2102
  },
1945
2103
  ],
1946
2104
  },
@@ -1952,7 +2110,7 @@ exports.schemaDict = {
1952
2110
  defs: {
1953
2111
  main: {
1954
2112
  type: 'procedure',
1955
- 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.",
2113
+ description: 'Verifies control over a phone number with a code received via SMS and starts a contact import session. Requires authentication.',
1956
2114
  input: {
1957
2115
  encoding: 'application/json',
1958
2116
  schema: {
@@ -1985,13 +2143,384 @@ exports.schemaDict = {
1985
2143
  },
1986
2144
  errors: [
1987
2145
  {
1988
- name: 'TODO',
1989
- description: 'TODO',
2146
+ name: 'RateLimitExceeded',
2147
+ },
2148
+ {
2149
+ name: 'InvalidDid',
2150
+ },
2151
+ {
2152
+ name: 'InvalidPhone',
2153
+ },
2154
+ {
2155
+ name: 'InvalidCode',
2156
+ },
2157
+ {
2158
+ name: 'InternalError',
2159
+ },
2160
+ ],
2161
+ },
2162
+ },
2163
+ },
2164
+ AppBskyDraftCreateDraft: {
2165
+ lexicon: 1,
2166
+ id: 'app.bsky.draft.createDraft',
2167
+ defs: {
2168
+ main: {
2169
+ type: 'procedure',
2170
+ description: 'Inserts a draft using private storage (stash). An upper limit of drafts might be enforced. Requires authentication.',
2171
+ input: {
2172
+ encoding: 'application/json',
2173
+ schema: {
2174
+ type: 'object',
2175
+ required: ['draft'],
2176
+ properties: {
2177
+ draft: {
2178
+ type: 'ref',
2179
+ ref: 'lex:app.bsky.draft.defs#draft',
2180
+ },
2181
+ },
2182
+ },
2183
+ },
2184
+ output: {
2185
+ encoding: 'application/json',
2186
+ schema: {
2187
+ type: 'object',
2188
+ required: ['id'],
2189
+ properties: {
2190
+ id: {
2191
+ type: 'string',
2192
+ description: 'The ID of the created draft.',
2193
+ },
2194
+ },
2195
+ },
2196
+ },
2197
+ errors: [
2198
+ {
2199
+ name: 'DraftLimitReached',
2200
+ description: 'Trying to insert a new draft when the limit was already reached.',
1990
2201
  },
1991
2202
  ],
1992
2203
  },
1993
2204
  },
1994
2205
  },
2206
+ AppBskyDraftDefs: {
2207
+ lexicon: 1,
2208
+ id: 'app.bsky.draft.defs',
2209
+ defs: {
2210
+ draftWithId: {
2211
+ description: 'A draft with an identifier, used to store drafts in private storage (stash).',
2212
+ type: 'object',
2213
+ required: ['id', 'draft'],
2214
+ properties: {
2215
+ id: {
2216
+ description: 'A TID to be used as a draft identifier.',
2217
+ type: 'string',
2218
+ format: 'tid',
2219
+ },
2220
+ draft: {
2221
+ type: 'ref',
2222
+ ref: 'lex:app.bsky.draft.defs#draft',
2223
+ },
2224
+ },
2225
+ },
2226
+ draft: {
2227
+ description: 'A draft containing an array of draft posts.',
2228
+ type: 'object',
2229
+ required: ['posts'],
2230
+ properties: {
2231
+ posts: {
2232
+ description: 'Array of draft posts that compose this draft.',
2233
+ type: 'array',
2234
+ minLength: 1,
2235
+ maxLength: 100,
2236
+ items: {
2237
+ type: 'ref',
2238
+ ref: 'lex:app.bsky.draft.defs#draftPost',
2239
+ },
2240
+ },
2241
+ langs: {
2242
+ type: 'array',
2243
+ description: 'Indicates human language of posts primary text content.',
2244
+ maxLength: 3,
2245
+ items: {
2246
+ type: 'string',
2247
+ format: 'language',
2248
+ },
2249
+ },
2250
+ postgateEmbeddingRules: {
2251
+ description: 'Embedding rules for the postgates to be created when this draft is published.',
2252
+ type: 'array',
2253
+ maxLength: 5,
2254
+ items: {
2255
+ type: 'union',
2256
+ refs: ['lex:app.bsky.feed.postgate#disableRule'],
2257
+ },
2258
+ },
2259
+ threadgateAllow: {
2260
+ description: 'Allow-rules for the threadgate to be created when this draft is published.',
2261
+ type: 'array',
2262
+ maxLength: 5,
2263
+ items: {
2264
+ type: 'union',
2265
+ refs: [
2266
+ 'lex:app.bsky.feed.threadgate#mentionRule',
2267
+ 'lex:app.bsky.feed.threadgate#followerRule',
2268
+ 'lex:app.bsky.feed.threadgate#followingRule',
2269
+ 'lex:app.bsky.feed.threadgate#listRule',
2270
+ ],
2271
+ },
2272
+ },
2273
+ },
2274
+ },
2275
+ draftPost: {
2276
+ description: 'One of the posts that compose a draft.',
2277
+ type: 'object',
2278
+ required: ['text'],
2279
+ properties: {
2280
+ text: {
2281
+ type: 'string',
2282
+ maxLength: 3000,
2283
+ maxGraphemes: 300,
2284
+ description: 'The primary post content.',
2285
+ },
2286
+ labels: {
2287
+ type: 'union',
2288
+ description: 'Self-label values for this post. Effectively content warnings.',
2289
+ refs: ['lex:com.atproto.label.defs#selfLabels'],
2290
+ },
2291
+ embedImages: {
2292
+ type: 'array',
2293
+ items: {
2294
+ type: 'ref',
2295
+ ref: 'lex:app.bsky.draft.defs#draftEmbedImage',
2296
+ },
2297
+ maxLength: 4,
2298
+ },
2299
+ embedVideos: {
2300
+ type: 'array',
2301
+ items: {
2302
+ type: 'ref',
2303
+ ref: 'lex:app.bsky.draft.defs#draftEmbedVideo',
2304
+ },
2305
+ maxLength: 1,
2306
+ },
2307
+ embedExternals: {
2308
+ type: 'array',
2309
+ items: {
2310
+ type: 'ref',
2311
+ ref: 'lex:app.bsky.draft.defs#draftEmbedExternal',
2312
+ },
2313
+ maxLength: 1,
2314
+ },
2315
+ embedRecords: {
2316
+ type: 'array',
2317
+ items: {
2318
+ type: 'ref',
2319
+ ref: 'lex:app.bsky.draft.defs#draftEmbedRecord',
2320
+ },
2321
+ maxLength: 1,
2322
+ },
2323
+ },
2324
+ },
2325
+ draftView: {
2326
+ description: 'View to present drafts data to users.',
2327
+ type: 'object',
2328
+ required: ['id', 'draft', 'createdAt', 'updatedAt'],
2329
+ properties: {
2330
+ id: {
2331
+ description: 'A TID to be used as a draft identifier.',
2332
+ type: 'string',
2333
+ format: 'tid',
2334
+ },
2335
+ draft: {
2336
+ type: 'ref',
2337
+ ref: 'lex:app.bsky.draft.defs#draft',
2338
+ },
2339
+ createdAt: {
2340
+ description: 'The time the draft was created.',
2341
+ type: 'string',
2342
+ format: 'datetime',
2343
+ },
2344
+ updatedAt: {
2345
+ description: 'The time the draft was last updated.',
2346
+ type: 'string',
2347
+ format: 'datetime',
2348
+ },
2349
+ },
2350
+ },
2351
+ draftEmbedLocalRef: {
2352
+ type: 'object',
2353
+ required: ['path'],
2354
+ properties: {
2355
+ path: {
2356
+ type: 'string',
2357
+ description: 'Local, on-device ref to file to be embedded. Embeds are currently device-bound for drafts.',
2358
+ minLength: 1,
2359
+ maxLength: 1024,
2360
+ },
2361
+ },
2362
+ },
2363
+ draftEmbedCaption: {
2364
+ type: 'object',
2365
+ required: ['lang', 'content'],
2366
+ properties: {
2367
+ lang: {
2368
+ type: 'string',
2369
+ format: 'language',
2370
+ },
2371
+ content: {
2372
+ type: 'string',
2373
+ maxLength: 10000,
2374
+ },
2375
+ },
2376
+ },
2377
+ draftEmbedImage: {
2378
+ type: 'object',
2379
+ required: ['localRef'],
2380
+ properties: {
2381
+ localRef: {
2382
+ type: 'ref',
2383
+ ref: 'lex:app.bsky.draft.defs#draftEmbedLocalRef',
2384
+ },
2385
+ alt: {
2386
+ type: 'string',
2387
+ maxGraphemes: 2000,
2388
+ },
2389
+ },
2390
+ },
2391
+ draftEmbedVideo: {
2392
+ type: 'object',
2393
+ required: ['localRef'],
2394
+ properties: {
2395
+ localRef: {
2396
+ type: 'ref',
2397
+ ref: 'lex:app.bsky.draft.defs#draftEmbedLocalRef',
2398
+ },
2399
+ alt: {
2400
+ type: 'string',
2401
+ maxGraphemes: 2000,
2402
+ },
2403
+ captions: {
2404
+ type: 'array',
2405
+ items: {
2406
+ type: 'ref',
2407
+ ref: 'lex:app.bsky.draft.defs#draftEmbedCaption',
2408
+ },
2409
+ maxLength: 20,
2410
+ },
2411
+ },
2412
+ },
2413
+ draftEmbedExternal: {
2414
+ type: 'object',
2415
+ required: ['uri'],
2416
+ properties: {
2417
+ uri: {
2418
+ type: 'string',
2419
+ format: 'uri',
2420
+ },
2421
+ },
2422
+ },
2423
+ draftEmbedRecord: {
2424
+ type: 'object',
2425
+ required: ['record'],
2426
+ properties: {
2427
+ record: {
2428
+ type: 'ref',
2429
+ ref: 'lex:com.atproto.repo.strongRef',
2430
+ },
2431
+ },
2432
+ },
2433
+ },
2434
+ },
2435
+ AppBskyDraftDeleteDraft: {
2436
+ lexicon: 1,
2437
+ id: 'app.bsky.draft.deleteDraft',
2438
+ defs: {
2439
+ main: {
2440
+ type: 'procedure',
2441
+ description: 'Deletes a draft by ID. Requires authentication.',
2442
+ input: {
2443
+ encoding: 'application/json',
2444
+ schema: {
2445
+ type: 'object',
2446
+ required: ['id'],
2447
+ properties: {
2448
+ id: {
2449
+ type: 'string',
2450
+ format: 'tid',
2451
+ },
2452
+ },
2453
+ },
2454
+ },
2455
+ },
2456
+ },
2457
+ },
2458
+ AppBskyDraftGetDrafts: {
2459
+ lexicon: 1,
2460
+ id: 'app.bsky.draft.getDrafts',
2461
+ defs: {
2462
+ main: {
2463
+ type: 'query',
2464
+ description: 'Gets views of user drafts. Requires authentication.',
2465
+ parameters: {
2466
+ type: 'params',
2467
+ properties: {
2468
+ limit: {
2469
+ type: 'integer',
2470
+ minimum: 1,
2471
+ maximum: 100,
2472
+ default: 50,
2473
+ },
2474
+ cursor: {
2475
+ type: 'string',
2476
+ },
2477
+ },
2478
+ },
2479
+ output: {
2480
+ encoding: 'application/json',
2481
+ schema: {
2482
+ type: 'object',
2483
+ required: ['drafts'],
2484
+ properties: {
2485
+ cursor: {
2486
+ type: 'string',
2487
+ },
2488
+ drafts: {
2489
+ type: 'array',
2490
+ items: {
2491
+ type: 'ref',
2492
+ ref: 'lex:app.bsky.draft.defs#draftView',
2493
+ },
2494
+ },
2495
+ },
2496
+ },
2497
+ },
2498
+ },
2499
+ },
2500
+ },
2501
+ AppBskyDraftUpdateDraft: {
2502
+ lexicon: 1,
2503
+ id: 'app.bsky.draft.updateDraft',
2504
+ defs: {
2505
+ main: {
2506
+ type: 'procedure',
2507
+ description: "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.",
2508
+ input: {
2509
+ encoding: 'application/json',
2510
+ schema: {
2511
+ type: 'object',
2512
+ required: ['draft'],
2513
+ properties: {
2514
+ draft: {
2515
+ type: 'ref',
2516
+ ref: 'lex:app.bsky.draft.defs#draftWithId',
2517
+ },
2518
+ },
2519
+ },
2520
+ },
2521
+ },
2522
+ },
2523
+ },
1995
2524
  AppBskyEmbedDefs: {
1996
2525
  lexicon: 1,
1997
2526
  id: 'app.bsky.embed.defs',
@@ -2375,6 +2904,11 @@ exports.schemaDict = {
2375
2904
  type: 'ref',
2376
2905
  ref: 'lex:app.bsky.embed.defs#aspectRatio',
2377
2906
  },
2907
+ presentation: {
2908
+ type: 'string',
2909
+ description: 'A hint to the client about how to present the video.',
2910
+ knownValues: ['default', 'gif'],
2911
+ },
2378
2912
  },
2379
2913
  },
2380
2914
  caption: {
@@ -2417,6 +2951,11 @@ exports.schemaDict = {
2417
2951
  type: 'ref',
2418
2952
  ref: 'lex:app.bsky.embed.defs#aspectRatio',
2419
2953
  },
2954
+ presentation: {
2955
+ type: 'string',
2956
+ description: 'A hint to the client about how to present the video.',
2957
+ knownValues: ['default', 'gif'],
2958
+ },
2420
2959
  },
2421
2960
  },
2422
2961
  },
@@ -6501,6 +7040,7 @@ exports.schemaDict = {
6501
7040
  'like-via-repost',
6502
7041
  'repost-via-repost',
6503
7042
  'subscribed-post',
7043
+ 'contact-match',
6504
7044
  ],
6505
7045
  },
6506
7046
  reasonSubject: {
@@ -7630,6 +8170,10 @@ exports.schemaDict = {
7630
8170
  ref: 'lex:app.bsky.actor.defs#profileView',
7631
8171
  },
7632
8172
  },
8173
+ recId: {
8174
+ type: 'string',
8175
+ description: 'Snowflake for this recommendation, use when submitting recommendation events.',
8176
+ },
7633
8177
  },
7634
8178
  },
7635
8179
  },
@@ -7676,6 +8220,10 @@ exports.schemaDict = {
7676
8220
  format: 'did',
7677
8221
  },
7678
8222
  },
8223
+ recId: {
8224
+ type: 'string',
8225
+ description: 'Snowflake for this recommendation, use when submitting recommendation events.',
8226
+ },
7679
8227
  },
7680
8228
  },
7681
8229
  },
@@ -12482,7 +13030,15 @@ exports.schemaDict = {
12482
13030
  defs: {
12483
13031
  main: {
12484
13032
  type: 'procedure',
12485
- description: 'Delete the current session. Requires auth.',
13033
+ description: "Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').",
13034
+ errors: [
13035
+ {
13036
+ name: 'InvalidToken',
13037
+ },
13038
+ {
13039
+ name: 'ExpiredToken',
13040
+ },
13041
+ ],
12486
13042
  },
12487
13043
  },
12488
13044
  },
@@ -12669,6 +13225,9 @@ exports.schemaDict = {
12669
13225
  type: 'string',
12670
13226
  format: 'did',
12671
13227
  },
13228
+ didDoc: {
13229
+ type: 'unknown',
13230
+ },
12672
13231
  email: {
12673
13232
  type: 'string',
12674
13233
  },
@@ -12678,9 +13237,6 @@ exports.schemaDict = {
12678
13237
  emailAuthFactor: {
12679
13238
  type: 'boolean',
12680
13239
  },
12681
- didDoc: {
12682
- type: 'unknown',
12683
- },
12684
13240
  active: {
12685
13241
  type: 'boolean',
12686
13242
  },
@@ -12772,6 +13328,15 @@ exports.schemaDict = {
12772
13328
  didDoc: {
12773
13329
  type: 'unknown',
12774
13330
  },
13331
+ email: {
13332
+ type: 'string',
13333
+ },
13334
+ emailConfirmed: {
13335
+ type: 'boolean',
13336
+ },
13337
+ emailAuthFactor: {
13338
+ type: 'boolean',
13339
+ },
12775
13340
  active: {
12776
13341
  type: 'boolean',
12777
13342
  },
@@ -12787,6 +13352,12 @@ exports.schemaDict = {
12787
13352
  {
12788
13353
  name: 'AccountTakedown',
12789
13354
  },
13355
+ {
13356
+ name: 'InvalidToken',
13357
+ },
13358
+ {
13359
+ name: 'ExpiredToken',
13360
+ },
12790
13361
  ],
12791
13362
  },
12792
13363
  },
@@ -19265,8 +19836,14 @@ exports.ids = {
19265
19836
  AppBskyContactGetSyncStatus: 'app.bsky.contact.getSyncStatus',
19266
19837
  AppBskyContactImportContacts: 'app.bsky.contact.importContacts',
19267
19838
  AppBskyContactRemoveData: 'app.bsky.contact.removeData',
19839
+ AppBskyContactSendNotification: 'app.bsky.contact.sendNotification',
19268
19840
  AppBskyContactStartPhoneVerification: 'app.bsky.contact.startPhoneVerification',
19269
19841
  AppBskyContactVerifyPhone: 'app.bsky.contact.verifyPhone',
19842
+ AppBskyDraftCreateDraft: 'app.bsky.draft.createDraft',
19843
+ AppBskyDraftDefs: 'app.bsky.draft.defs',
19844
+ AppBskyDraftDeleteDraft: 'app.bsky.draft.deleteDraft',
19845
+ AppBskyDraftGetDrafts: 'app.bsky.draft.getDrafts',
19846
+ AppBskyDraftUpdateDraft: 'app.bsky.draft.updateDraft',
19270
19847
  AppBskyEmbedDefs: 'app.bsky.embed.defs',
19271
19848
  AppBskyEmbedExternal: 'app.bsky.embed.external',
19272
19849
  AppBskyEmbedImages: 'app.bsky.embed.images',