@atproto/bsky 0.0.198 → 0.0.200

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 (279) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/api/age-assurance/const.d.ts +11 -0
  3. package/dist/api/age-assurance/const.d.ts.map +1 -0
  4. package/dist/api/age-assurance/const.js +142 -0
  5. package/dist/api/age-assurance/const.js.map +1 -0
  6. package/dist/api/age-assurance/index.d.ts +4 -0
  7. package/dist/api/age-assurance/index.d.ts.map +1 -0
  8. package/dist/api/age-assurance/index.js +24 -0
  9. package/dist/api/age-assurance/index.js.map +1 -0
  10. package/dist/api/age-assurance/kws/age-verified.d.ts +109 -0
  11. package/dist/api/age-assurance/kws/age-verified.d.ts.map +1 -0
  12. package/dist/api/age-assurance/kws/age-verified.js +63 -0
  13. package/dist/api/age-assurance/kws/age-verified.js.map +1 -0
  14. package/dist/api/age-assurance/kws/const.d.ts +13 -0
  15. package/dist/api/age-assurance/kws/const.d.ts.map +1 -0
  16. package/dist/api/age-assurance/kws/const.js +36 -0
  17. package/dist/api/age-assurance/kws/const.js.map +1 -0
  18. package/dist/api/age-assurance/kws/external-payload.d.ts +75 -0
  19. package/dist/api/age-assurance/kws/external-payload.d.ts.map +1 -0
  20. package/dist/api/age-assurance/kws/external-payload.js +124 -0
  21. package/dist/api/age-assurance/kws/external-payload.js.map +1 -0
  22. package/dist/api/age-assurance/kws/external-payload.test.d.ts +2 -0
  23. package/dist/api/age-assurance/kws/external-payload.test.d.ts.map +1 -0
  24. package/dist/api/age-assurance/kws/external-payload.test.js +65 -0
  25. package/dist/api/age-assurance/kws/external-payload.test.js.map +1 -0
  26. package/dist/api/age-assurance/redirects/kws-age-verified.d.ts +4 -0
  27. package/dist/api/age-assurance/redirects/kws-age-verified.d.ts.map +1 -0
  28. package/dist/api/age-assurance/redirects/kws-age-verified.js +76 -0
  29. package/dist/api/age-assurance/redirects/kws-age-verified.js.map +1 -0
  30. package/dist/api/age-assurance/stash.d.ts +4 -0
  31. package/dist/api/age-assurance/stash.d.ts.map +1 -0
  32. package/dist/api/age-assurance/stash.js +19 -0
  33. package/dist/api/age-assurance/stash.js.map +1 -0
  34. package/dist/api/age-assurance/types.d.ts +10 -0
  35. package/dist/api/age-assurance/types.d.ts.map +1 -0
  36. package/dist/api/age-assurance/types.js +3 -0
  37. package/dist/api/age-assurance/types.js.map +1 -0
  38. package/dist/api/age-assurance/util.d.ts +15 -0
  39. package/dist/api/age-assurance/util.d.ts.map +1 -0
  40. package/dist/api/age-assurance/util.js +54 -0
  41. package/dist/api/age-assurance/util.js.map +1 -0
  42. package/dist/api/age-assurance/webhooks/kws-age-verified.d.ts +4 -0
  43. package/dist/api/age-assurance/webhooks/kws-age-verified.d.ts.map +1 -0
  44. package/dist/api/age-assurance/webhooks/kws-age-verified.js +63 -0
  45. package/dist/api/age-assurance/webhooks/kws-age-verified.js.map +1 -0
  46. package/dist/api/app/bsky/ageassurance/begin.d.ts +4 -0
  47. package/dist/api/app/bsky/ageassurance/begin.d.ts.map +1 -0
  48. package/dist/api/app/bsky/ageassurance/begin.js +131 -0
  49. package/dist/api/app/bsky/ageassurance/begin.js.map +1 -0
  50. package/dist/api/app/bsky/ageassurance/getConfig.d.ts +4 -0
  51. package/dist/api/app/bsky/ageassurance/getConfig.d.ts.map +1 -0
  52. package/dist/api/app/bsky/ageassurance/getConfig.js +16 -0
  53. package/dist/api/app/bsky/ageassurance/getConfig.js.map +1 -0
  54. package/dist/api/app/bsky/ageassurance/getState.d.ts +4 -0
  55. package/dist/api/app/bsky/ageassurance/getState.d.ts.map +1 -0
  56. package/dist/api/app/bsky/ageassurance/getState.js +42 -0
  57. package/dist/api/app/bsky/ageassurance/getState.js.map +1 -0
  58. package/dist/api/app/bsky/contact/dismissMatch.d.ts +4 -0
  59. package/dist/api/app/bsky/contact/dismissMatch.d.ts.map +1 -0
  60. package/dist/api/app/bsky/contact/dismissMatch.js +23 -0
  61. package/dist/api/app/bsky/contact/dismissMatch.js.map +1 -0
  62. package/dist/api/app/bsky/contact/getMatches.d.ts +4 -0
  63. package/dist/api/app/bsky/contact/getMatches.d.ts.map +1 -0
  64. package/dist/api/app/bsky/contact/getMatches.js +59 -0
  65. package/dist/api/app/bsky/contact/getMatches.js.map +1 -0
  66. package/dist/api/app/bsky/contact/getSyncStatus.d.ts +4 -0
  67. package/dist/api/app/bsky/contact/getSyncStatus.d.ts.map +1 -0
  68. package/dist/api/app/bsky/contact/getSyncStatus.js +32 -0
  69. package/dist/api/app/bsky/contact/getSyncStatus.js.map +1 -0
  70. package/dist/api/app/bsky/contact/importContacts.d.ts +4 -0
  71. package/dist/api/app/bsky/contact/importContacts.d.ts.map +1 -0
  72. package/dist/api/app/bsky/contact/importContacts.js +62 -0
  73. package/dist/api/app/bsky/contact/importContacts.js.map +1 -0
  74. package/dist/api/app/bsky/contact/removeData.d.ts +4 -0
  75. package/dist/api/app/bsky/contact/removeData.d.ts.map +1 -0
  76. package/dist/api/app/bsky/contact/removeData.js +22 -0
  77. package/dist/api/app/bsky/contact/removeData.js.map +1 -0
  78. package/dist/api/app/bsky/contact/startPhoneVerification.d.ts +4 -0
  79. package/dist/api/app/bsky/contact/startPhoneVerification.d.ts.map +1 -0
  80. package/dist/api/app/bsky/contact/startPhoneVerification.js +23 -0
  81. package/dist/api/app/bsky/contact/startPhoneVerification.js.map +1 -0
  82. package/dist/api/app/bsky/contact/util.d.ts +6 -0
  83. package/dist/api/app/bsky/contact/util.d.ts.map +1 -0
  84. package/dist/api/app/bsky/contact/util.js +10 -0
  85. package/dist/api/app/bsky/contact/util.js.map +1 -0
  86. package/dist/api/app/bsky/contact/verifyPhone.d.ts +4 -0
  87. package/dist/api/app/bsky/contact/verifyPhone.d.ts.map +1 -0
  88. package/dist/api/app/bsky/contact/verifyPhone.js +26 -0
  89. package/dist/api/app/bsky/contact/verifyPhone.js.map +1 -0
  90. package/dist/api/app/bsky/graph/getRelationships.d.ts.map +1 -1
  91. package/dist/api/app/bsky/graph/getRelationships.js +4 -0
  92. package/dist/api/app/bsky/graph/getRelationships.js.map +1 -1
  93. package/dist/api/external.d.ts.map +1 -1
  94. package/dist/api/external.js +2 -0
  95. package/dist/api/external.js.map +1 -1
  96. package/dist/api/index.d.ts.map +1 -1
  97. package/dist/api/index.js +22 -2
  98. package/dist/api/index.js.map +1 -1
  99. package/dist/api/kws/api.d.ts.map +1 -1
  100. package/dist/api/kws/api.js +44 -26
  101. package/dist/api/kws/api.js.map +1 -1
  102. package/dist/api/kws/index.d.ts.map +1 -1
  103. package/dist/api/kws/index.js +3 -1
  104. package/dist/api/kws/index.js.map +1 -1
  105. package/dist/api/kws/webhook.d.ts +3 -1
  106. package/dist/api/kws/webhook.d.ts.map +1 -1
  107. package/dist/api/kws/webhook.js +48 -20
  108. package/dist/api/kws/webhook.js.map +1 -1
  109. package/dist/config.d.ts +22 -0
  110. package/dist/config.d.ts.map +1 -1
  111. package/dist/config.js +31 -2
  112. package/dist/config.js.map +1 -1
  113. package/dist/context.d.ts +3 -0
  114. package/dist/context.d.ts.map +1 -1
  115. package/dist/context.js +3 -0
  116. package/dist/context.js.map +1 -1
  117. package/dist/data-plane/bsync/index.d.ts.map +1 -1
  118. package/dist/data-plane/bsync/index.js +22 -0
  119. package/dist/data-plane/bsync/index.js.map +1 -1
  120. package/dist/data-plane/server/db/migrations/20251120T004738098Z-update-actor-age-assurance-v2.d.ts +4 -0
  121. package/dist/data-plane/server/db/migrations/20251120T004738098Z-update-actor-age-assurance-v2.d.ts.map +1 -0
  122. package/dist/data-plane/server/db/migrations/20251120T004738098Z-update-actor-age-assurance-v2.js +30 -0
  123. package/dist/data-plane/server/db/migrations/20251120T004738098Z-update-actor-age-assurance-v2.js.map +1 -0
  124. package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
  125. package/dist/data-plane/server/db/migrations/index.d.ts.map +1 -1
  126. package/dist/data-plane/server/db/migrations/index.js +2 -1
  127. package/dist/data-plane/server/db/migrations/index.js.map +1 -1
  128. package/dist/data-plane/server/db/pagination.d.ts +3 -3
  129. package/dist/data-plane/server/db/tables/actor.d.ts +3 -0
  130. package/dist/data-plane/server/db/tables/actor.d.ts.map +1 -1
  131. package/dist/data-plane/server/db/tables/actor.js.map +1 -1
  132. package/dist/data-plane/server/routes/profile.d.ts.map +1 -1
  133. package/dist/data-plane/server/routes/profile.js +13 -1
  134. package/dist/data-plane/server/routes/profile.js.map +1 -1
  135. package/dist/hydration/actor.js +1 -1
  136. package/dist/hydration/actor.js.map +1 -1
  137. package/dist/hydration/hydrator.js +1 -1
  138. package/dist/hydration/hydrator.js.map +1 -1
  139. package/dist/index.d.ts.map +1 -1
  140. package/dist/index.js +12 -0
  141. package/dist/index.js.map +1 -1
  142. package/dist/kws.d.ts +35 -0
  143. package/dist/kws.d.ts.map +1 -1
  144. package/dist/kws.js +54 -0
  145. package/dist/kws.js.map +1 -1
  146. package/dist/lexicon/index.d.ts +19 -0
  147. package/dist/lexicon/index.d.ts.map +1 -1
  148. package/dist/lexicon/index.js +48 -1
  149. package/dist/lexicon/index.js.map +1 -1
  150. package/dist/lexicon/lexicons.d.ts +664 -0
  151. package/dist/lexicon/lexicons.d.ts.map +1 -1
  152. package/dist/lexicon/lexicons.js +354 -0
  153. package/dist/lexicon/lexicons.js.map +1 -1
  154. package/dist/lexicon/types/app/bsky/contact/defs.d.ts +24 -0
  155. package/dist/lexicon/types/app/bsky/contact/defs.d.ts.map +1 -0
  156. package/dist/lexicon/types/app/bsky/contact/defs.js +25 -0
  157. package/dist/lexicon/types/app/bsky/contact/defs.js.map +1 -0
  158. package/dist/lexicon/types/app/bsky/contact/dismissMatch.d.ts +25 -0
  159. package/dist/lexicon/types/app/bsky/contact/dismissMatch.d.ts.map +1 -0
  160. package/dist/lexicon/types/app/bsky/contact/dismissMatch.js +7 -0
  161. package/dist/lexicon/types/app/bsky/contact/dismissMatch.js.map +1 -0
  162. package/dist/lexicon/types/app/bsky/contact/getMatches.d.ts +25 -0
  163. package/dist/lexicon/types/app/bsky/contact/getMatches.d.ts.map +1 -0
  164. package/dist/lexicon/types/app/bsky/contact/getMatches.js +7 -0
  165. package/dist/lexicon/types/app/bsky/contact/getMatches.js.map +1 -0
  166. package/dist/lexicon/types/app/bsky/contact/getSyncStatus.d.ts +21 -0
  167. package/dist/lexicon/types/app/bsky/contact/getSyncStatus.d.ts.map +1 -0
  168. package/dist/lexicon/types/app/bsky/contact/getSyncStatus.js +7 -0
  169. package/dist/lexicon/types/app/bsky/contact/getSyncStatus.js.map +1 -0
  170. package/dist/lexicon/types/app/bsky/contact/importContacts.d.ts +30 -0
  171. package/dist/lexicon/types/app/bsky/contact/importContacts.d.ts.map +1 -0
  172. package/dist/lexicon/types/app/bsky/contact/importContacts.js +7 -0
  173. package/dist/lexicon/types/app/bsky/contact/importContacts.js.map +1 -0
  174. package/dist/lexicon/types/app/bsky/contact/removeData.d.ts +23 -0
  175. package/dist/lexicon/types/app/bsky/contact/removeData.d.ts.map +1 -0
  176. package/dist/lexicon/types/app/bsky/contact/removeData.js +7 -0
  177. package/dist/lexicon/types/app/bsky/contact/removeData.js.map +1 -0
  178. package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.d.ts +25 -0
  179. package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.d.ts.map +1 -0
  180. package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.js +7 -0
  181. package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.js.map +1 -0
  182. package/dist/lexicon/types/app/bsky/contact/verifyPhone.d.ts +29 -0
  183. package/dist/lexicon/types/app/bsky/contact/verifyPhone.d.ts.map +1 -0
  184. package/dist/lexicon/types/app/bsky/contact/verifyPhone.js +7 -0
  185. package/dist/lexicon/types/app/bsky/contact/verifyPhone.js.map +1 -0
  186. package/dist/lexicon/types/app/bsky/graph/defs.d.ts +8 -0
  187. package/dist/lexicon/types/app/bsky/graph/defs.d.ts.map +1 -1
  188. package/dist/lexicon/types/app/bsky/graph/defs.js.map +1 -1
  189. package/dist/logger.d.ts +1 -0
  190. package/dist/logger.d.ts.map +1 -1
  191. package/dist/logger.js +2 -1
  192. package/dist/logger.js.map +1 -1
  193. package/dist/proto/bsky_pb.d.ts +4 -0
  194. package/dist/proto/bsky_pb.d.ts.map +1 -1
  195. package/dist/proto/bsky_pb.js +10 -0
  196. package/dist/proto/bsky_pb.js.map +1 -1
  197. package/dist/proto/rolodex_connect.d.ts +83 -0
  198. package/dist/proto/rolodex_connect.d.ts.map +1 -0
  199. package/dist/proto/rolodex_connect.js +90 -0
  200. package/dist/proto/rolodex_connect.js.map +1 -0
  201. package/dist/proto/rolodex_pb.d.ts +363 -0
  202. package/dist/proto/rolodex_pb.d.ts.map +1 -0
  203. package/dist/proto/rolodex_pb.js +1032 -0
  204. package/dist/proto/rolodex_pb.js.map +1 -0
  205. package/dist/rolodex.d.ts +9 -0
  206. package/dist/rolodex.d.ts.map +1 -0
  207. package/dist/rolodex.js +25 -0
  208. package/dist/rolodex.js.map +1 -0
  209. package/dist/stash.d.ts +1 -0
  210. package/dist/stash.d.ts.map +1 -1
  211. package/dist/stash.js +1 -0
  212. package/dist/stash.js.map +1 -1
  213. package/dist/util/uris.d.ts +2 -2
  214. package/dist/util/uris.d.ts.map +1 -1
  215. package/package.json +16 -15
  216. package/proto/bsky.proto +1 -0
  217. package/proto/rolodex.proto +116 -0
  218. package/src/api/age-assurance/const.ts +142 -0
  219. package/src/api/age-assurance/index.ts +34 -0
  220. package/src/api/age-assurance/kws/age-verified.ts +75 -0
  221. package/src/api/age-assurance/kws/const.ts +33 -0
  222. package/src/api/age-assurance/kws/external-payload.test.ts +72 -0
  223. package/src/api/age-assurance/kws/external-payload.ts +149 -0
  224. package/src/api/age-assurance/redirects/kws-age-verified.ts +107 -0
  225. package/src/api/age-assurance/stash.ts +22 -0
  226. package/src/api/age-assurance/types.ts +10 -0
  227. package/src/api/age-assurance/util.ts +66 -0
  228. package/src/api/age-assurance/webhooks/kws-age-verified.ts +75 -0
  229. package/src/api/app/bsky/ageassurance/begin.ts +167 -0
  230. package/src/api/app/bsky/ageassurance/getConfig.ts +15 -0
  231. package/src/api/app/bsky/ageassurance/getState.ts +53 -0
  232. package/src/api/app/bsky/contact/dismissMatch.ts +24 -0
  233. package/src/api/app/bsky/contact/getMatches.ts +111 -0
  234. package/src/api/app/bsky/contact/getSyncStatus.ts +35 -0
  235. package/src/api/app/bsky/contact/importContacts.ts +118 -0
  236. package/src/api/app/bsky/contact/removeData.ts +23 -0
  237. package/src/api/app/bsky/contact/startPhoneVerification.ts +24 -0
  238. package/src/api/app/bsky/contact/util.ts +13 -0
  239. package/src/api/app/bsky/contact/verifyPhone.ts +27 -0
  240. package/src/api/app/bsky/graph/getRelationships.ts +4 -0
  241. package/src/api/external.ts +2 -0
  242. package/src/api/index.ts +20 -0
  243. package/src/api/kws/api.ts +55 -34
  244. package/src/api/kws/index.ts +7 -1
  245. package/src/api/kws/webhook.ts +57 -34
  246. package/src/config.ts +53 -2
  247. package/src/context.ts +6 -0
  248. package/src/data-plane/bsync/index.ts +31 -0
  249. package/src/data-plane/server/db/migrations/20251120T004738098Z-update-actor-age-assurance-v2.ts +28 -0
  250. package/src/data-plane/server/db/migrations/index.ts +1 -0
  251. package/src/data-plane/server/db/tables/actor.ts +3 -0
  252. package/src/data-plane/server/routes/profile.ts +12 -1
  253. package/src/hydration/actor.ts +1 -1
  254. package/src/hydration/hydrator.ts +1 -1
  255. package/src/index.ts +13 -0
  256. package/src/kws.ts +81 -0
  257. package/src/lexicon/index.ts +101 -0
  258. package/src/lexicon/lexicons.ts +375 -0
  259. package/src/lexicon/types/app/bsky/contact/defs.ts +52 -0
  260. package/src/lexicon/types/app/bsky/contact/dismissMatch.ts +43 -0
  261. package/src/lexicon/types/app/bsky/contact/getMatches.ts +43 -0
  262. package/src/lexicon/types/app/bsky/contact/getSyncStatus.ts +39 -0
  263. package/src/lexicon/types/app/bsky/contact/importContacts.ts +49 -0
  264. package/src/lexicon/types/app/bsky/contact/removeData.ts +40 -0
  265. package/src/lexicon/types/app/bsky/contact/startPhoneVerification.ts +43 -0
  266. package/src/lexicon/types/app/bsky/contact/verifyPhone.ts +48 -0
  267. package/src/lexicon/types/app/bsky/graph/defs.ts +8 -0
  268. package/src/logger.ts +2 -0
  269. package/src/proto/bsky_pb.ts +6 -0
  270. package/src/proto/rolodex_connect.ts +89 -0
  271. package/src/proto/rolodex_pb.ts +746 -0
  272. package/src/rolodex.ts +42 -0
  273. package/src/stash.ts +3 -0
  274. package/tests/views/__snapshots__/profile.test.ts.snap +103 -0
  275. package/tests/views/age-assurance-v2.test.ts +745 -0
  276. package/tests/views/age-assurance.test.ts +2 -0
  277. package/tests/views/profile.test.ts +39 -0
  278. package/tsconfig.build.tsbuildinfo +1 -1
  279. package/tsconfig.tests.tsbuildinfo +1 -1
@@ -1614,6 +1614,318 @@ export declare const schemaDict: {
1614
1614
  };
1615
1615
  };
1616
1616
  };
1617
+ readonly AppBskyContactDefs: {
1618
+ readonly lexicon: 1;
1619
+ readonly id: "app.bsky.contact.defs";
1620
+ readonly defs: {
1621
+ readonly matchAndContactIndex: {
1622
+ readonly description: "Associates a profile with the positional index of the contact import input in the call to `app.bsky.contact.importContacts`, so clients can know which phone caused a particular match.";
1623
+ readonly type: "object";
1624
+ readonly required: ["match", "contactIndex"];
1625
+ readonly properties: {
1626
+ readonly match: {
1627
+ readonly description: "Profile of the matched user.";
1628
+ readonly type: "ref";
1629
+ readonly ref: "lex:app.bsky.actor.defs#profileView";
1630
+ };
1631
+ readonly contactIndex: {
1632
+ readonly description: "The index of this match in the import contact input.";
1633
+ readonly type: "integer";
1634
+ readonly minimum: 0;
1635
+ readonly maximum: 999;
1636
+ };
1637
+ };
1638
+ };
1639
+ readonly syncStatus: {
1640
+ readonly type: "object";
1641
+ readonly required: ["syncedAt", "matchesCount"];
1642
+ readonly properties: {
1643
+ readonly syncedAt: {
1644
+ readonly description: "Last date when contacts where imported.";
1645
+ readonly type: "string";
1646
+ readonly format: "datetime";
1647
+ };
1648
+ readonly matchesCount: {
1649
+ readonly description: "Number of existing contact matches resulting of the user imports and of their imported contacts having imported the user. Matches stop being counted when the user either follows the matched contact or dismisses the match.";
1650
+ readonly type: "integer";
1651
+ readonly minimum: 0;
1652
+ };
1653
+ };
1654
+ };
1655
+ };
1656
+ };
1657
+ readonly AppBskyContactDismissMatch: {
1658
+ readonly lexicon: 1;
1659
+ readonly id: "app.bsky.contact.dismissMatch";
1660
+ readonly defs: {
1661
+ readonly main: {
1662
+ readonly type: "procedure";
1663
+ readonly 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.";
1664
+ readonly input: {
1665
+ readonly encoding: "application/json";
1666
+ readonly schema: {
1667
+ readonly type: "object";
1668
+ readonly required: ["subject"];
1669
+ readonly properties: {
1670
+ readonly subject: {
1671
+ readonly description: "The subject's DID to dismiss the match with.";
1672
+ readonly type: "string";
1673
+ readonly format: "did";
1674
+ };
1675
+ };
1676
+ };
1677
+ };
1678
+ readonly output: {
1679
+ readonly encoding: "application/json";
1680
+ readonly schema: {
1681
+ readonly type: "object";
1682
+ readonly properties: {};
1683
+ };
1684
+ };
1685
+ readonly errors: [{
1686
+ readonly name: "TODO";
1687
+ readonly description: "TODO";
1688
+ }];
1689
+ };
1690
+ };
1691
+ };
1692
+ readonly AppBskyContactGetMatches: {
1693
+ readonly lexicon: 1;
1694
+ readonly id: "app.bsky.contact.getMatches";
1695
+ readonly defs: {
1696
+ readonly main: {
1697
+ readonly type: "query";
1698
+ readonly 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.";
1699
+ readonly parameters: {
1700
+ readonly type: "params";
1701
+ readonly properties: {
1702
+ readonly limit: {
1703
+ readonly type: "integer";
1704
+ readonly minimum: 1;
1705
+ readonly maximum: 100;
1706
+ readonly default: 50;
1707
+ };
1708
+ readonly cursor: {
1709
+ readonly type: "string";
1710
+ };
1711
+ };
1712
+ };
1713
+ readonly output: {
1714
+ readonly encoding: "application/json";
1715
+ readonly schema: {
1716
+ readonly type: "object";
1717
+ readonly required: ["matches"];
1718
+ readonly properties: {
1719
+ readonly cursor: {
1720
+ readonly type: "string";
1721
+ };
1722
+ readonly matches: {
1723
+ readonly type: "array";
1724
+ readonly items: {
1725
+ readonly type: "ref";
1726
+ readonly ref: "lex:app.bsky.actor.defs#profileView";
1727
+ };
1728
+ };
1729
+ };
1730
+ };
1731
+ };
1732
+ readonly errors: [{
1733
+ readonly name: "TODO";
1734
+ readonly description: "TODO";
1735
+ }];
1736
+ };
1737
+ };
1738
+ };
1739
+ readonly AppBskyContactGetSyncStatus: {
1740
+ readonly lexicon: 1;
1741
+ readonly id: "app.bsky.contact.getSyncStatus";
1742
+ readonly defs: {
1743
+ readonly main: {
1744
+ readonly type: "query";
1745
+ readonly 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.";
1746
+ readonly parameters: {
1747
+ readonly type: "params";
1748
+ readonly properties: {};
1749
+ };
1750
+ readonly output: {
1751
+ readonly encoding: "application/json";
1752
+ readonly schema: {
1753
+ readonly type: "object";
1754
+ readonly properties: {
1755
+ readonly syncStatus: {
1756
+ readonly description: "If present, indicates the user has imported their contacts. If not present, indicates the user never used the feature or called `app.bsky.contact.removeData` and didn't import again since.";
1757
+ readonly type: "ref";
1758
+ readonly ref: "lex:app.bsky.contact.defs#syncStatus";
1759
+ };
1760
+ };
1761
+ };
1762
+ };
1763
+ readonly errors: [{
1764
+ readonly name: "TODO";
1765
+ readonly description: "TODO";
1766
+ }];
1767
+ };
1768
+ };
1769
+ };
1770
+ readonly AppBskyContactImportContacts: {
1771
+ readonly lexicon: 1;
1772
+ readonly id: "app.bsky.contact.importContacts";
1773
+ readonly defs: {
1774
+ readonly main: {
1775
+ readonly type: "procedure";
1776
+ readonly 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.";
1777
+ readonly input: {
1778
+ readonly encoding: "application/json";
1779
+ readonly schema: {
1780
+ readonly type: "object";
1781
+ readonly required: ["token", "contacts"];
1782
+ readonly properties: {
1783
+ readonly token: {
1784
+ readonly description: "JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`.";
1785
+ readonly type: "string";
1786
+ };
1787
+ readonly contacts: {
1788
+ readonly description: "List of phone numbers in global E.164 format (e.g., '+12125550123'). Phone numbers that cannot be normalized into a valid phone number will be discarded. Should not repeat the 'phone' input used in `app.bsky.contact.verifyPhone`.";
1789
+ readonly type: "array";
1790
+ readonly items: {
1791
+ readonly type: "string";
1792
+ };
1793
+ readonly minLength: 1;
1794
+ readonly maxLength: 1000;
1795
+ };
1796
+ };
1797
+ };
1798
+ };
1799
+ readonly output: {
1800
+ readonly encoding: "application/json";
1801
+ readonly schema: {
1802
+ readonly type: "object";
1803
+ readonly required: ["matchesAndContactIndexes"];
1804
+ readonly properties: {
1805
+ readonly matchesAndContactIndexes: {
1806
+ readonly description: "The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list.";
1807
+ readonly type: "array";
1808
+ readonly items: {
1809
+ readonly type: "ref";
1810
+ readonly ref: "lex:app.bsky.contact.defs#matchAndContactIndex";
1811
+ };
1812
+ };
1813
+ };
1814
+ };
1815
+ };
1816
+ readonly errors: [{
1817
+ readonly name: "TODO";
1818
+ readonly description: "TODO";
1819
+ }];
1820
+ };
1821
+ };
1822
+ };
1823
+ readonly AppBskyContactRemoveData: {
1824
+ readonly lexicon: 1;
1825
+ readonly id: "app.bsky.contact.removeData";
1826
+ readonly defs: {
1827
+ readonly main: {
1828
+ readonly type: "procedure";
1829
+ readonly 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.";
1830
+ readonly input: {
1831
+ readonly encoding: "application/json";
1832
+ readonly schema: {
1833
+ readonly type: "object";
1834
+ readonly properties: {};
1835
+ };
1836
+ };
1837
+ readonly output: {
1838
+ readonly encoding: "application/json";
1839
+ readonly schema: {
1840
+ readonly type: "object";
1841
+ readonly properties: {};
1842
+ };
1843
+ };
1844
+ readonly errors: [{
1845
+ readonly name: "TODO";
1846
+ readonly description: "TODO";
1847
+ }];
1848
+ };
1849
+ };
1850
+ };
1851
+ readonly AppBskyContactStartPhoneVerification: {
1852
+ readonly lexicon: 1;
1853
+ readonly id: "app.bsky.contact.startPhoneVerification";
1854
+ readonly defs: {
1855
+ readonly main: {
1856
+ readonly type: "procedure";
1857
+ readonly 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.";
1858
+ readonly input: {
1859
+ readonly encoding: "application/json";
1860
+ readonly schema: {
1861
+ readonly type: "object";
1862
+ readonly required: ["phone"];
1863
+ readonly properties: {
1864
+ readonly phone: {
1865
+ readonly description: "The phone number to receive the code via SMS.";
1866
+ readonly type: "string";
1867
+ };
1868
+ };
1869
+ };
1870
+ };
1871
+ readonly output: {
1872
+ readonly encoding: "application/json";
1873
+ readonly schema: {
1874
+ readonly type: "object";
1875
+ readonly properties: {};
1876
+ };
1877
+ };
1878
+ readonly errors: [{
1879
+ readonly name: "TODO";
1880
+ readonly description: "TODO";
1881
+ }];
1882
+ };
1883
+ };
1884
+ };
1885
+ readonly AppBskyContactVerifyPhone: {
1886
+ readonly lexicon: 1;
1887
+ readonly id: "app.bsky.contact.verifyPhone";
1888
+ readonly defs: {
1889
+ readonly main: {
1890
+ readonly type: "procedure";
1891
+ readonly 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.";
1892
+ readonly input: {
1893
+ readonly encoding: "application/json";
1894
+ readonly schema: {
1895
+ readonly type: "object";
1896
+ readonly required: ["phone", "code"];
1897
+ readonly properties: {
1898
+ readonly phone: {
1899
+ readonly description: "The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`.";
1900
+ readonly type: "string";
1901
+ };
1902
+ readonly code: {
1903
+ readonly description: "The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`.";
1904
+ readonly type: "string";
1905
+ };
1906
+ };
1907
+ };
1908
+ };
1909
+ readonly output: {
1910
+ readonly encoding: "application/json";
1911
+ readonly schema: {
1912
+ readonly type: "object";
1913
+ readonly required: ["token"];
1914
+ readonly properties: {
1915
+ readonly token: {
1916
+ readonly description: "JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call.";
1917
+ readonly type: "string";
1918
+ };
1919
+ };
1920
+ };
1921
+ };
1922
+ readonly errors: [{
1923
+ readonly name: "TODO";
1924
+ readonly description: "TODO";
1925
+ }];
1926
+ };
1927
+ };
1928
+ };
1617
1929
  readonly AppBskyEmbedDefs: {
1618
1930
  readonly lexicon: 1;
1619
1931
  readonly id: "app.bsky.embed.defs";
@@ -4147,6 +4459,26 @@ export declare const schemaDict: {
4147
4459
  readonly format: "at-uri";
4148
4460
  readonly description: "if the actor is followed by this DID, contains the AT-URI of the follow record";
4149
4461
  };
4462
+ readonly blocking: {
4463
+ readonly type: "string";
4464
+ readonly format: "at-uri";
4465
+ readonly description: "if the actor blocks this DID, this is the AT-URI of the block record";
4466
+ };
4467
+ readonly blockedBy: {
4468
+ readonly type: "string";
4469
+ readonly format: "at-uri";
4470
+ readonly description: "if the actor is blocked by this DID, contains the AT-URI of the block record";
4471
+ };
4472
+ readonly blockingByList: {
4473
+ readonly type: "string";
4474
+ readonly format: "at-uri";
4475
+ readonly description: "if the actor blocks this DID via a block list, this is the AT-URI of the listblock record";
4476
+ };
4477
+ readonly blockedByList: {
4478
+ readonly type: "string";
4479
+ readonly format: "at-uri";
4480
+ readonly description: "if the actor is blocked by this DID via a block list, contains the AT-URI of the listblock record";
4481
+ };
4150
4482
  };
4151
4483
  };
4152
4484
  };
@@ -14925,6 +15257,310 @@ export declare const schemas: ({
14925
15257
  };
14926
15258
  };
14927
15259
  };
15260
+ } | {
15261
+ readonly lexicon: 1;
15262
+ readonly id: "app.bsky.contact.defs";
15263
+ readonly defs: {
15264
+ readonly matchAndContactIndex: {
15265
+ readonly description: "Associates a profile with the positional index of the contact import input in the call to `app.bsky.contact.importContacts`, so clients can know which phone caused a particular match.";
15266
+ readonly type: "object";
15267
+ readonly required: ["match", "contactIndex"];
15268
+ readonly properties: {
15269
+ readonly match: {
15270
+ readonly description: "Profile of the matched user.";
15271
+ readonly type: "ref";
15272
+ readonly ref: "lex:app.bsky.actor.defs#profileView";
15273
+ };
15274
+ readonly contactIndex: {
15275
+ readonly description: "The index of this match in the import contact input.";
15276
+ readonly type: "integer";
15277
+ readonly minimum: 0;
15278
+ readonly maximum: 999;
15279
+ };
15280
+ };
15281
+ };
15282
+ readonly syncStatus: {
15283
+ readonly type: "object";
15284
+ readonly required: ["syncedAt", "matchesCount"];
15285
+ readonly properties: {
15286
+ readonly syncedAt: {
15287
+ readonly description: "Last date when contacts where imported.";
15288
+ readonly type: "string";
15289
+ readonly format: "datetime";
15290
+ };
15291
+ readonly matchesCount: {
15292
+ readonly description: "Number of existing contact matches resulting of the user imports and of their imported contacts having imported the user. Matches stop being counted when the user either follows the matched contact or dismisses the match.";
15293
+ readonly type: "integer";
15294
+ readonly minimum: 0;
15295
+ };
15296
+ };
15297
+ };
15298
+ };
15299
+ } | {
15300
+ readonly lexicon: 1;
15301
+ readonly id: "app.bsky.contact.dismissMatch";
15302
+ readonly defs: {
15303
+ readonly main: {
15304
+ readonly type: "procedure";
15305
+ readonly 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.";
15306
+ readonly input: {
15307
+ readonly encoding: "application/json";
15308
+ readonly schema: {
15309
+ readonly type: "object";
15310
+ readonly required: ["subject"];
15311
+ readonly properties: {
15312
+ readonly subject: {
15313
+ readonly description: "The subject's DID to dismiss the match with.";
15314
+ readonly type: "string";
15315
+ readonly format: "did";
15316
+ };
15317
+ };
15318
+ };
15319
+ };
15320
+ readonly output: {
15321
+ readonly encoding: "application/json";
15322
+ readonly schema: {
15323
+ readonly type: "object";
15324
+ readonly properties: {};
15325
+ };
15326
+ };
15327
+ readonly errors: [{
15328
+ readonly name: "TODO";
15329
+ readonly description: "TODO";
15330
+ }];
15331
+ };
15332
+ };
15333
+ } | {
15334
+ readonly lexicon: 1;
15335
+ readonly id: "app.bsky.contact.getMatches";
15336
+ readonly defs: {
15337
+ readonly main: {
15338
+ readonly type: "query";
15339
+ readonly 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.";
15340
+ readonly parameters: {
15341
+ readonly type: "params";
15342
+ readonly properties: {
15343
+ readonly limit: {
15344
+ readonly type: "integer";
15345
+ readonly minimum: 1;
15346
+ readonly maximum: 100;
15347
+ readonly default: 50;
15348
+ };
15349
+ readonly cursor: {
15350
+ readonly type: "string";
15351
+ };
15352
+ };
15353
+ };
15354
+ readonly output: {
15355
+ readonly encoding: "application/json";
15356
+ readonly schema: {
15357
+ readonly type: "object";
15358
+ readonly required: ["matches"];
15359
+ readonly properties: {
15360
+ readonly cursor: {
15361
+ readonly type: "string";
15362
+ };
15363
+ readonly matches: {
15364
+ readonly type: "array";
15365
+ readonly items: {
15366
+ readonly type: "ref";
15367
+ readonly ref: "lex:app.bsky.actor.defs#profileView";
15368
+ };
15369
+ };
15370
+ };
15371
+ };
15372
+ };
15373
+ readonly errors: [{
15374
+ readonly name: "TODO";
15375
+ readonly description: "TODO";
15376
+ }];
15377
+ };
15378
+ };
15379
+ } | {
15380
+ readonly lexicon: 1;
15381
+ readonly id: "app.bsky.contact.getSyncStatus";
15382
+ readonly defs: {
15383
+ readonly main: {
15384
+ readonly type: "query";
15385
+ readonly 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.";
15386
+ readonly parameters: {
15387
+ readonly type: "params";
15388
+ readonly properties: {};
15389
+ };
15390
+ readonly output: {
15391
+ readonly encoding: "application/json";
15392
+ readonly schema: {
15393
+ readonly type: "object";
15394
+ readonly properties: {
15395
+ readonly syncStatus: {
15396
+ readonly description: "If present, indicates the user has imported their contacts. If not present, indicates the user never used the feature or called `app.bsky.contact.removeData` and didn't import again since.";
15397
+ readonly type: "ref";
15398
+ readonly ref: "lex:app.bsky.contact.defs#syncStatus";
15399
+ };
15400
+ };
15401
+ };
15402
+ };
15403
+ readonly errors: [{
15404
+ readonly name: "TODO";
15405
+ readonly description: "TODO";
15406
+ }];
15407
+ };
15408
+ };
15409
+ } | {
15410
+ readonly lexicon: 1;
15411
+ readonly id: "app.bsky.contact.importContacts";
15412
+ readonly defs: {
15413
+ readonly main: {
15414
+ readonly type: "procedure";
15415
+ readonly 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.";
15416
+ readonly input: {
15417
+ readonly encoding: "application/json";
15418
+ readonly schema: {
15419
+ readonly type: "object";
15420
+ readonly required: ["token", "contacts"];
15421
+ readonly properties: {
15422
+ readonly token: {
15423
+ readonly description: "JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`.";
15424
+ readonly type: "string";
15425
+ };
15426
+ readonly contacts: {
15427
+ readonly description: "List of phone numbers in global E.164 format (e.g., '+12125550123'). Phone numbers that cannot be normalized into a valid phone number will be discarded. Should not repeat the 'phone' input used in `app.bsky.contact.verifyPhone`.";
15428
+ readonly type: "array";
15429
+ readonly items: {
15430
+ readonly type: "string";
15431
+ };
15432
+ readonly minLength: 1;
15433
+ readonly maxLength: 1000;
15434
+ };
15435
+ };
15436
+ };
15437
+ };
15438
+ readonly output: {
15439
+ readonly encoding: "application/json";
15440
+ readonly schema: {
15441
+ readonly type: "object";
15442
+ readonly required: ["matchesAndContactIndexes"];
15443
+ readonly properties: {
15444
+ readonly matchesAndContactIndexes: {
15445
+ readonly description: "The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list.";
15446
+ readonly type: "array";
15447
+ readonly items: {
15448
+ readonly type: "ref";
15449
+ readonly ref: "lex:app.bsky.contact.defs#matchAndContactIndex";
15450
+ };
15451
+ };
15452
+ };
15453
+ };
15454
+ };
15455
+ readonly errors: [{
15456
+ readonly name: "TODO";
15457
+ readonly description: "TODO";
15458
+ }];
15459
+ };
15460
+ };
15461
+ } | {
15462
+ readonly lexicon: 1;
15463
+ readonly id: "app.bsky.contact.removeData";
15464
+ readonly defs: {
15465
+ readonly main: {
15466
+ readonly type: "procedure";
15467
+ readonly 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.";
15468
+ readonly input: {
15469
+ readonly encoding: "application/json";
15470
+ readonly schema: {
15471
+ readonly type: "object";
15472
+ readonly properties: {};
15473
+ };
15474
+ };
15475
+ readonly output: {
15476
+ readonly encoding: "application/json";
15477
+ readonly schema: {
15478
+ readonly type: "object";
15479
+ readonly properties: {};
15480
+ };
15481
+ };
15482
+ readonly errors: [{
15483
+ readonly name: "TODO";
15484
+ readonly description: "TODO";
15485
+ }];
15486
+ };
15487
+ };
15488
+ } | {
15489
+ readonly lexicon: 1;
15490
+ readonly id: "app.bsky.contact.startPhoneVerification";
15491
+ readonly defs: {
15492
+ readonly main: {
15493
+ readonly type: "procedure";
15494
+ readonly 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.";
15495
+ readonly input: {
15496
+ readonly encoding: "application/json";
15497
+ readonly schema: {
15498
+ readonly type: "object";
15499
+ readonly required: ["phone"];
15500
+ readonly properties: {
15501
+ readonly phone: {
15502
+ readonly description: "The phone number to receive the code via SMS.";
15503
+ readonly type: "string";
15504
+ };
15505
+ };
15506
+ };
15507
+ };
15508
+ readonly output: {
15509
+ readonly encoding: "application/json";
15510
+ readonly schema: {
15511
+ readonly type: "object";
15512
+ readonly properties: {};
15513
+ };
15514
+ };
15515
+ readonly errors: [{
15516
+ readonly name: "TODO";
15517
+ readonly description: "TODO";
15518
+ }];
15519
+ };
15520
+ };
15521
+ } | {
15522
+ readonly lexicon: 1;
15523
+ readonly id: "app.bsky.contact.verifyPhone";
15524
+ readonly defs: {
15525
+ readonly main: {
15526
+ readonly type: "procedure";
15527
+ readonly 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.";
15528
+ readonly input: {
15529
+ readonly encoding: "application/json";
15530
+ readonly schema: {
15531
+ readonly type: "object";
15532
+ readonly required: ["phone", "code"];
15533
+ readonly properties: {
15534
+ readonly phone: {
15535
+ readonly description: "The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`.";
15536
+ readonly type: "string";
15537
+ };
15538
+ readonly code: {
15539
+ readonly description: "The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`.";
15540
+ readonly type: "string";
15541
+ };
15542
+ };
15543
+ };
15544
+ };
15545
+ readonly output: {
15546
+ readonly encoding: "application/json";
15547
+ readonly schema: {
15548
+ readonly type: "object";
15549
+ readonly required: ["token"];
15550
+ readonly properties: {
15551
+ readonly token: {
15552
+ readonly description: "JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call.";
15553
+ readonly type: "string";
15554
+ };
15555
+ };
15556
+ };
15557
+ };
15558
+ readonly errors: [{
15559
+ readonly name: "TODO";
15560
+ readonly description: "TODO";
15561
+ }];
15562
+ };
15563
+ };
14928
15564
  } | {
14929
15565
  readonly lexicon: 1;
14930
15566
  readonly id: "app.bsky.embed.defs";
@@ -17426,6 +18062,26 @@ export declare const schemas: ({
17426
18062
  readonly format: "at-uri";
17427
18063
  readonly description: "if the actor is followed by this DID, contains the AT-URI of the follow record";
17428
18064
  };
18065
+ readonly blocking: {
18066
+ readonly type: "string";
18067
+ readonly format: "at-uri";
18068
+ readonly description: "if the actor blocks this DID, this is the AT-URI of the block record";
18069
+ };
18070
+ readonly blockedBy: {
18071
+ readonly type: "string";
18072
+ readonly format: "at-uri";
18073
+ readonly description: "if the actor is blocked by this DID, contains the AT-URI of the block record";
18074
+ };
18075
+ readonly blockingByList: {
18076
+ readonly type: "string";
18077
+ readonly format: "at-uri";
18078
+ readonly description: "if the actor blocks this DID via a block list, this is the AT-URI of the listblock record";
18079
+ };
18080
+ readonly blockedByList: {
18081
+ readonly type: "string";
18082
+ readonly format: "at-uri";
18083
+ readonly description: "if the actor is blocked by this DID via a block list, contains the AT-URI of the listblock record";
18084
+ };
17429
18085
  };
17430
18086
  };
17431
18087
  };
@@ -26444,6 +27100,14 @@ export declare const ids: {
26444
27100
  readonly AppBskyBookmarkDefs: "app.bsky.bookmark.defs";
26445
27101
  readonly AppBskyBookmarkDeleteBookmark: "app.bsky.bookmark.deleteBookmark";
26446
27102
  readonly AppBskyBookmarkGetBookmarks: "app.bsky.bookmark.getBookmarks";
27103
+ readonly AppBskyContactDefs: "app.bsky.contact.defs";
27104
+ readonly AppBskyContactDismissMatch: "app.bsky.contact.dismissMatch";
27105
+ readonly AppBskyContactGetMatches: "app.bsky.contact.getMatches";
27106
+ readonly AppBskyContactGetSyncStatus: "app.bsky.contact.getSyncStatus";
27107
+ readonly AppBskyContactImportContacts: "app.bsky.contact.importContacts";
27108
+ readonly AppBskyContactRemoveData: "app.bsky.contact.removeData";
27109
+ readonly AppBskyContactStartPhoneVerification: "app.bsky.contact.startPhoneVerification";
27110
+ readonly AppBskyContactVerifyPhone: "app.bsky.contact.verifyPhone";
26447
27111
  readonly AppBskyEmbedDefs: "app.bsky.embed.defs";
26448
27112
  readonly AppBskyEmbedExternal: "app.bsky.embed.external";
26449
27113
  readonly AppBskyEmbedImages: "app.bsky.embed.images";