techne-sdk 0.0.0-stage → 0.2.0

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 (335) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/LICENSE +21 -0
  3. package/README.md +115 -2
  4. package/dist/auth/index.d.ts +151 -0
  5. package/dist/auth/index.js +167 -0
  6. package/dist/auth/placement.gen.d.ts +1 -0
  7. package/dist/auth/placement.gen.js +49 -0
  8. package/dist/catalog/catalog.gen.d.ts +841 -0
  9. package/dist/catalog/catalog.gen.js +29696 -0
  10. package/dist/catalog/index.d.ts +11 -0
  11. package/dist/catalog/index.js +11 -0
  12. package/dist/connect.d.ts +38 -0
  13. package/dist/connect.js +19 -0
  14. package/dist/generated/index.d.ts +2296 -0
  15. package/dist/generated/index.js +3320 -0
  16. package/dist/generated/lexicons.d.ts +17254 -0
  17. package/dist/generated/lexicons.js +9225 -0
  18. package/dist/generated/nsid.d.ts +529 -0
  19. package/dist/generated/nsid.js +1094 -0
  20. package/dist/generated/nsid.json +1082 -0
  21. package/dist/generated/records.d.ts +143 -0
  22. package/dist/generated/records.js +1 -0
  23. package/dist/generated/types/app/bsky/richtext/facet.d.ts +44 -0
  24. package/dist/generated/types/app/bsky/richtext/facet.js +39 -0
  25. package/dist/generated/types/com/atproto/admin/defs.d.ts +10 -0
  26. package/dist/generated/types/com/atproto/admin/defs.js +11 -0
  27. package/dist/generated/types/com/atproto/label/defs.d.ts +73 -0
  28. package/dist/generated/types/com/atproto/label/defs.js +39 -0
  29. package/dist/generated/types/com/atproto/moderation/createReport.d.ts +39 -0
  30. package/dist/generated/types/com/atproto/moderation/createReport.js +7 -0
  31. package/dist/generated/types/com/atproto/moderation/defs.d.ts +15 -0
  32. package/dist/generated/types/com/atproto/moderation/defs.js +18 -0
  33. package/dist/generated/types/com/atproto/repo/applyWrites.d.ts +88 -0
  34. package/dist/generated/types/com/atproto/repo/applyWrites.js +62 -0
  35. package/dist/generated/types/com/atproto/repo/createRecord.d.ts +43 -0
  36. package/dist/generated/types/com/atproto/repo/createRecord.js +20 -0
  37. package/dist/generated/types/com/atproto/repo/defs.d.ts +11 -0
  38. package/dist/generated/types/com/atproto/repo/defs.js +11 -0
  39. package/dist/generated/types/com/atproto/repo/deleteRecord.d.ts +36 -0
  40. package/dist/generated/types/com/atproto/repo/deleteRecord.js +20 -0
  41. package/dist/generated/types/com/atproto/repo/getRecord.d.ts +35 -0
  42. package/dist/generated/types/com/atproto/repo/getRecord.js +20 -0
  43. package/dist/generated/types/com/atproto/repo/listRecords.d.ts +41 -0
  44. package/dist/generated/types/com/atproto/repo/listRecords.js +14 -0
  45. package/dist/generated/types/com/atproto/repo/putRecord.d.ts +45 -0
  46. package/dist/generated/types/com/atproto/repo/putRecord.js +20 -0
  47. package/dist/generated/types/com/atproto/repo/strongRef.d.ts +11 -0
  48. package/dist/generated/types/com/atproto/repo/strongRef.js +11 -0
  49. package/dist/generated/types/com/atproto/server/getServiceAuth.d.ts +29 -0
  50. package/dist/generated/types/com/atproto/server/getServiceAuth.js +20 -0
  51. package/dist/generated/types/community/lexicon/calendar/event.d.ts +65 -0
  52. package/dist/generated/types/community/lexicon/calendar/event.js +35 -0
  53. package/dist/generated/types/community/lexicon/calendar/rsvp.d.ts +20 -0
  54. package/dist/generated/types/community/lexicon/calendar/rsvp.js +18 -0
  55. package/dist/generated/types/community/lexicon/location/address.d.ts +22 -0
  56. package/dist/generated/types/community/lexicon/location/address.js +11 -0
  57. package/dist/generated/types/community/lexicon/location/fsq.d.ts +16 -0
  58. package/dist/generated/types/community/lexicon/location/fsq.js +11 -0
  59. package/dist/generated/types/community/lexicon/location/geo.d.ts +15 -0
  60. package/dist/generated/types/community/lexicon/location/geo.js +11 -0
  61. package/dist/generated/types/community/lexicon/location/hthree.d.ts +14 -0
  62. package/dist/generated/types/community/lexicon/location/hthree.js +11 -0
  63. package/dist/generated/types/pub/techne/draft/accessRule.d.ts +36 -0
  64. package/dist/generated/types/pub/techne/draft/accessRule.js +33 -0
  65. package/dist/generated/types/pub/techne/draft/accountLink.d.ts +16 -0
  66. package/dist/generated/types/pub/techne/draft/accountLink.js +12 -0
  67. package/dist/generated/types/pub/techne/draft/actor/profile.d.ts +20 -0
  68. package/dist/generated/types/pub/techne/draft/actor/profile.js +12 -0
  69. package/dist/generated/types/pub/techne/draft/appAccess.d.ts +25 -0
  70. package/dist/generated/types/pub/techne/draft/appAccess.js +19 -0
  71. package/dist/generated/types/pub/techne/draft/appAccessRequest.d.ts +16 -0
  72. package/dist/generated/types/pub/techne/draft/appAccessRequest.js +12 -0
  73. package/dist/generated/types/pub/techne/draft/appConfig.d.ts +24 -0
  74. package/dist/generated/types/pub/techne/draft/appConfig.js +19 -0
  75. package/dist/generated/types/pub/techne/draft/approval.d.ts +18 -0
  76. package/dist/generated/types/pub/techne/draft/approval.js +12 -0
  77. package/dist/generated/types/pub/techne/draft/assessment.d.ts +36 -0
  78. package/dist/generated/types/pub/techne/draft/assessment.js +26 -0
  79. package/dist/generated/types/pub/techne/draft/attentionPrefs.d.ts +14 -0
  80. package/dist/generated/types/pub/techne/draft/attentionPrefs.js +12 -0
  81. package/dist/generated/types/pub/techne/draft/beacon.d.ts +17 -0
  82. package/dist/generated/types/pub/techne/draft/beacon.js +12 -0
  83. package/dist/generated/types/pub/techne/draft/beaconLists.d.ts +13 -0
  84. package/dist/generated/types/pub/techne/draft/beaconLists.js +12 -0
  85. package/dist/generated/types/pub/techne/draft/beaconSpot.d.ts +17 -0
  86. package/dist/generated/types/pub/techne/draft/beaconSpot.js +12 -0
  87. package/dist/generated/types/pub/techne/draft/block.d.ts +14 -0
  88. package/dist/generated/types/pub/techne/draft/block.js +12 -0
  89. package/dist/generated/types/pub/techne/draft/channelVerification.d.ts +15 -0
  90. package/dist/generated/types/pub/techne/draft/channelVerification.js +12 -0
  91. package/dist/generated/types/pub/techne/draft/circleBeacon.d.ts +14 -0
  92. package/dist/generated/types/pub/techne/draft/circleBeacon.js +12 -0
  93. package/dist/generated/types/pub/techne/draft/collective.d.ts +29 -0
  94. package/dist/generated/types/pub/techne/draft/collective.js +12 -0
  95. package/dist/generated/types/pub/techne/draft/commons/createServiceAccount.d.ts +47 -0
  96. package/dist/generated/types/pub/techne/draft/commons/createServiceAccount.js +55 -0
  97. package/dist/generated/types/pub/techne/draft/commons/getVersions.d.ts +78 -0
  98. package/dist/generated/types/pub/techne/draft/commons/getVersions.js +41 -0
  99. package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.d.ts +45 -0
  100. package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.js +48 -0
  101. package/dist/generated/types/pub/techne/draft/commons/runChain.d.ts +53 -0
  102. package/dist/generated/types/pub/techne/draft/commons/runChain.js +34 -0
  103. package/dist/generated/types/pub/techne/draft/connection.d.ts +16 -0
  104. package/dist/generated/types/pub/techne/draft/connection.js +12 -0
  105. package/dist/generated/types/pub/techne/draft/contact.d.ts +20 -0
  106. package/dist/generated/types/pub/techne/draft/contact.js +12 -0
  107. package/dist/generated/types/pub/techne/draft/contactChannel.d.ts +18 -0
  108. package/dist/generated/types/pub/techne/draft/contactChannel.js +12 -0
  109. package/dist/generated/types/pub/techne/draft/contactList.d.ts +14 -0
  110. package/dist/generated/types/pub/techne/draft/contactList.js +12 -0
  111. package/dist/generated/types/pub/techne/draft/containedIn.d.ts +17 -0
  112. package/dist/generated/types/pub/techne/draft/containedIn.js +12 -0
  113. package/dist/generated/types/pub/techne/draft/credential.d.ts +39 -0
  114. package/dist/generated/types/pub/techne/draft/credential.js +19 -0
  115. package/dist/generated/types/pub/techne/draft/credentialRevocation.d.ts +14 -0
  116. package/dist/generated/types/pub/techne/draft/credentialRevocation.js +12 -0
  117. package/dist/generated/types/pub/techne/draft/derivation.d.ts +50 -0
  118. package/dist/generated/types/pub/techne/draft/derivation.js +26 -0
  119. package/dist/generated/types/pub/techne/draft/description.d.ts +17 -0
  120. package/dist/generated/types/pub/techne/draft/description.js +12 -0
  121. package/dist/generated/types/pub/techne/draft/distinctFrom.d.ts +15 -0
  122. package/dist/generated/types/pub/techne/draft/distinctFrom.js +12 -0
  123. package/dist/generated/types/pub/techne/draft/evaluation.d.ts +18 -0
  124. package/dist/generated/types/pub/techne/draft/evaluation.js +12 -0
  125. package/dist/generated/types/pub/techne/draft/event/config.d.ts +22 -0
  126. package/dist/generated/types/pub/techne/draft/event/config.js +12 -0
  127. package/dist/generated/types/pub/techne/draft/event/detail.d.ts +25 -0
  128. package/dist/generated/types/pub/techne/draft/event/detail.js +12 -0
  129. package/dist/generated/types/pub/techne/draft/event/listing.d.ts +14 -0
  130. package/dist/generated/types/pub/techne/draft/event/listing.js +12 -0
  131. package/dist/generated/types/pub/techne/draft/feed/recipe.d.ts +50 -0
  132. package/dist/generated/types/pub/techne/draft/feed/recipe.js +26 -0
  133. package/dist/generated/types/pub/techne/draft/geo.d.ts +19 -0
  134. package/dist/generated/types/pub/techne/draft/geo.js +12 -0
  135. package/dist/generated/types/pub/techne/draft/heldAt.d.ts +17 -0
  136. package/dist/generated/types/pub/techne/draft/heldAt.js +12 -0
  137. package/dist/generated/types/pub/techne/draft/identity/accountsForPhones.d.ts +43 -0
  138. package/dist/generated/types/pub/techne/draft/identity/accountsForPhones.js +41 -0
  139. package/dist/generated/types/pub/techne/draft/identity/attest.d.ts +48 -0
  140. package/dist/generated/types/pub/techne/draft/identity/attest.js +48 -0
  141. package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.d.ts +35 -0
  142. package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.js +34 -0
  143. package/dist/generated/types/pub/techne/draft/identity/checkLinkToken.d.ts +41 -0
  144. package/dist/generated/types/pub/techne/draft/identity/checkLinkToken.js +41 -0
  145. package/dist/generated/types/pub/techne/draft/identity/createCollective.d.ts +28 -0
  146. package/dist/generated/types/pub/techne/draft/identity/createCollective.js +20 -0
  147. package/dist/generated/types/pub/techne/draft/identity/createLinkToken.d.ts +47 -0
  148. package/dist/generated/types/pub/techne/draft/identity/createLinkToken.js +48 -0
  149. package/dist/generated/types/pub/techne/draft/identity/defs.d.ts +75 -0
  150. package/dist/generated/types/pub/techne/draft/identity/defs.js +53 -0
  151. package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.d.ts +46 -0
  152. package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.js +34 -0
  153. package/dist/generated/types/pub/techne/draft/identity/fold.d.ts +37 -0
  154. package/dist/generated/types/pub/techne/draft/identity/fold.js +34 -0
  155. package/dist/generated/types/pub/techne/draft/identity/holdForPhone.d.ts +54 -0
  156. package/dist/generated/types/pub/techne/draft/identity/holdForPhone.js +41 -0
  157. package/dist/generated/types/pub/techne/draft/identity/link.d.ts +35 -0
  158. package/dist/generated/types/pub/techne/draft/identity/link.js +34 -0
  159. package/dist/generated/types/pub/techne/draft/identity/linkRedeemed.d.ts +46 -0
  160. package/dist/generated/types/pub/techne/draft/identity/linkRedeemed.js +48 -0
  161. package/dist/generated/types/pub/techne/draft/identity/linkRedemption.d.ts +18 -0
  162. package/dist/generated/types/pub/techne/draft/identity/linkRedemption.js +12 -0
  163. package/dist/generated/types/pub/techne/draft/identity/listLinkRedemptions.d.ts +36 -0
  164. package/dist/generated/types/pub/techne/draft/identity/listLinkRedemptions.js +41 -0
  165. package/dist/generated/types/pub/techne/draft/identity/listLinkTokens.d.ts +39 -0
  166. package/dist/generated/types/pub/techne/draft/identity/listLinkTokens.js +41 -0
  167. package/dist/generated/types/pub/techne/draft/identity/listMethods.d.ts +24 -0
  168. package/dist/generated/types/pub/techne/draft/identity/listMethods.js +20 -0
  169. package/dist/generated/types/pub/techne/draft/identity/listPhoneHolds.d.ts +49 -0
  170. package/dist/generated/types/pub/techne/draft/identity/listPhoneHolds.js +34 -0
  171. package/dist/generated/types/pub/techne/draft/identity/redeemLinkToken.d.ts +47 -0
  172. package/dist/generated/types/pub/techne/draft/identity/redeemLinkToken.js +55 -0
  173. package/dist/generated/types/pub/techne/draft/identity/releasePhoneHold.d.ts +32 -0
  174. package/dist/generated/types/pub/techne/draft/identity/releasePhoneHold.js +34 -0
  175. package/dist/generated/types/pub/techne/draft/identity/resetLinkToken.d.ts +45 -0
  176. package/dist/generated/types/pub/techne/draft/identity/resetLinkToken.js +48 -0
  177. package/dist/generated/types/pub/techne/draft/identity/resolve.d.ts +39 -0
  178. package/dist/generated/types/pub/techne/draft/identity/resolve.js +34 -0
  179. package/dist/generated/types/pub/techne/draft/identity/revokeLinkToken.d.ts +36 -0
  180. package/dist/generated/types/pub/techne/draft/identity/revokeLinkToken.js +41 -0
  181. package/dist/generated/types/pub/techne/draft/identity/unlinkAccount.d.ts +29 -0
  182. package/dist/generated/types/pub/techne/draft/identity/unlinkAccount.js +27 -0
  183. package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.d.ts +32 -0
  184. package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.js +34 -0
  185. package/dist/generated/types/pub/techne/draft/interest.d.ts +14 -0
  186. package/dist/generated/types/pub/techne/draft/interest.js +12 -0
  187. package/dist/generated/types/pub/techne/draft/introProposal.d.ts +28 -0
  188. package/dist/generated/types/pub/techne/draft/introProposal.js +19 -0
  189. package/dist/generated/types/pub/techne/draft/invite.d.ts +16 -0
  190. package/dist/generated/types/pub/techne/draft/invite.js +12 -0
  191. package/dist/generated/types/pub/techne/draft/market/ask.d.ts +18 -0
  192. package/dist/generated/types/pub/techne/draft/market/ask.js +12 -0
  193. package/dist/generated/types/pub/techne/draft/market/offer.d.ts +14 -0
  194. package/dist/generated/types/pub/techne/draft/market/offer.js +12 -0
  195. package/dist/generated/types/pub/techne/draft/membership.d.ts +22 -0
  196. package/dist/generated/types/pub/techne/draft/membership.js +12 -0
  197. package/dist/generated/types/pub/techne/draft/notificationState.d.ts +18 -0
  198. package/dist/generated/types/pub/techne/draft/notificationState.js +12 -0
  199. package/dist/generated/types/pub/techne/draft/operator.d.ts +20 -0
  200. package/dist/generated/types/pub/techne/draft/operator.js +12 -0
  201. package/dist/generated/types/pub/techne/draft/org.d.ts +42 -0
  202. package/dist/generated/types/pub/techne/draft/org.js +19 -0
  203. package/dist/generated/types/pub/techne/draft/passage.d.ts +18 -0
  204. package/dist/generated/types/pub/techne/draft/passage.js +12 -0
  205. package/dist/generated/types/pub/techne/draft/pendingBeaconSpot.d.ts +19 -0
  206. package/dist/generated/types/pub/techne/draft/pendingBeaconSpot.js +12 -0
  207. package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.d.ts +47 -0
  208. package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.js +55 -0
  209. package/dist/generated/types/pub/techne/draft/permissioned/getGrants.d.ts +32 -0
  210. package/dist/generated/types/pub/techne/draft/permissioned/getGrants.js +34 -0
  211. package/dist/generated/types/pub/techne/draft/permissioned/getRecord.d.ts +36 -0
  212. package/dist/generated/types/pub/techne/draft/permissioned/getRecord.js +34 -0
  213. package/dist/generated/types/pub/techne/draft/permissioned/listChanges.d.ts +71 -0
  214. package/dist/generated/types/pub/techne/draft/permissioned/listChanges.js +41 -0
  215. package/dist/generated/types/pub/techne/draft/permissioned/listRecords.d.ts +53 -0
  216. package/dist/generated/types/pub/techne/draft/permissioned/listRecords.js +34 -0
  217. package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +70 -0
  218. package/dist/generated/types/pub/techne/draft/permissioned/putRecord.js +76 -0
  219. package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +84 -0
  220. package/dist/generated/types/pub/techne/draft/permissioned/putRecords.js +69 -0
  221. package/dist/generated/types/pub/techne/draft/place.d.ts +36 -0
  222. package/dist/generated/types/pub/techne/draft/place.js +19 -0
  223. package/dist/generated/types/pub/techne/draft/post.d.ts +30 -0
  224. package/dist/generated/types/pub/techne/draft/post.js +19 -0
  225. package/dist/generated/types/pub/techne/draft/presence.d.ts +16 -0
  226. package/dist/generated/types/pub/techne/draft/presence.js +12 -0
  227. package/dist/generated/types/pub/techne/draft/profile.d.ts +53 -0
  228. package/dist/generated/types/pub/techne/draft/profile.js +33 -0
  229. package/dist/generated/types/pub/techne/draft/provenance.d.ts +52 -0
  230. package/dist/generated/types/pub/techne/draft/provenance.js +33 -0
  231. package/dist/generated/types/pub/techne/draft/publisher.d.ts +43 -0
  232. package/dist/generated/types/pub/techne/draft/publisher.js +19 -0
  233. package/dist/generated/types/pub/techne/draft/query/countRecords.d.ts +47 -0
  234. package/dist/generated/types/pub/techne/draft/query/countRecords.js +34 -0
  235. package/dist/generated/types/pub/techne/draft/query/getRecords.d.ts +86 -0
  236. package/dist/generated/types/pub/techne/draft/query/getRecords.js +48 -0
  237. package/dist/generated/types/pub/techne/draft/query/listRecords.d.ts +83 -0
  238. package/dist/generated/types/pub/techne/draft/query/listRecords.js +34 -0
  239. package/dist/generated/types/pub/techne/draft/query/listRejections.d.ts +50 -0
  240. package/dist/generated/types/pub/techne/draft/query/listRejections.js +27 -0
  241. package/dist/generated/types/pub/techne/draft/questionSet.d.ts +31 -0
  242. package/dist/generated/types/pub/techne/draft/questionSet.js +19 -0
  243. package/dist/generated/types/pub/techne/draft/receipt.d.ts +16 -0
  244. package/dist/generated/types/pub/techne/draft/receipt.js +12 -0
  245. package/dist/generated/types/pub/techne/draft/reflection.d.ts +20 -0
  246. package/dist/generated/types/pub/techne/draft/reflection.js +12 -0
  247. package/dist/generated/types/pub/techne/draft/retirement.d.ts +16 -0
  248. package/dist/generated/types/pub/techne/draft/retirement.js +12 -0
  249. package/dist/generated/types/pub/techne/draft/rsvpNote.d.ts +16 -0
  250. package/dist/generated/types/pub/techne/draft/rsvpNote.js +12 -0
  251. package/dist/generated/types/pub/techne/draft/sameAs.d.ts +15 -0
  252. package/dist/generated/types/pub/techne/draft/sameAs.js +12 -0
  253. package/dist/generated/types/pub/techne/draft/scraper/cursor.d.ts +17 -0
  254. package/dist/generated/types/pub/techne/draft/scraper/cursor.js +12 -0
  255. package/dist/generated/types/pub/techne/draft/scraper/raw.d.ts +31 -0
  256. package/dist/generated/types/pub/techne/draft/scraper/raw.js +12 -0
  257. package/dist/generated/types/pub/techne/draft/share.d.ts +14 -0
  258. package/dist/generated/types/pub/techne/draft/share.js +12 -0
  259. package/dist/generated/types/pub/techne/draft/source.d.ts +23 -0
  260. package/dist/generated/types/pub/techne/draft/source.js +12 -0
  261. package/dist/generated/types/pub/techne/draft/sourceAttribution.d.ts +25 -0
  262. package/dist/generated/types/pub/techne/draft/sourceAttribution.js +12 -0
  263. package/dist/generated/types/pub/techne/draft/sourceRef.d.ts +23 -0
  264. package/dist/generated/types/pub/techne/draft/sourceRef.js +12 -0
  265. package/dist/generated/types/pub/techne/draft/subjectPrefs.d.ts +18 -0
  266. package/dist/generated/types/pub/techne/draft/subjectPrefs.js +12 -0
  267. package/dist/generated/types/pub/techne/draft/sync/indexRecord.d.ts +48 -0
  268. package/dist/generated/types/pub/techne/draft/sync/indexRecord.js +55 -0
  269. package/dist/generated/types/pub/techne/draft/verdict.d.ts +16 -0
  270. package/dist/generated/types/pub/techne/draft/verdict.js +12 -0
  271. package/dist/generated/types/pub/techne/draft/verification.d.ts +14 -0
  272. package/dist/generated/types/pub/techne/draft/verification.js +12 -0
  273. package/dist/generated/types/pub/techne/draft/weeklyCheckIn.d.ts +21 -0
  274. package/dist/generated/types/pub/techne/draft/weeklyCheckIn.js +12 -0
  275. package/dist/generated/types/social/scenius/approveAppAccess.d.ts +36 -0
  276. package/dist/generated/types/social/scenius/approveAppAccess.js +27 -0
  277. package/dist/generated/types/social/scenius/createCirclePost.d.ts +39 -0
  278. package/dist/generated/types/social/scenius/createCirclePost.js +41 -0
  279. package/dist/generated/types/social/scenius/createContactInvite.d.ts +41 -0
  280. package/dist/generated/types/social/scenius/createContactInvite.js +34 -0
  281. package/dist/generated/types/social/scenius/deleteCirclePost.d.ts +34 -0
  282. package/dist/generated/types/social/scenius/deleteCirclePost.js +34 -0
  283. package/dist/generated/types/social/scenius/deleteCircleProfile.d.ts +33 -0
  284. package/dist/generated/types/social/scenius/deleteCircleProfile.js +34 -0
  285. package/dist/generated/types/social/scenius/getAppAccess.d.ts +30 -0
  286. package/dist/generated/types/social/scenius/getAppAccess.js +27 -0
  287. package/dist/generated/types/social/scenius/getAppConfig.d.ts +26 -0
  288. package/dist/generated/types/social/scenius/getAppConfig.js +7 -0
  289. package/dist/generated/types/social/scenius/getCircleThread.d.ts +48 -0
  290. package/dist/generated/types/social/scenius/getCircleThread.js +41 -0
  291. package/dist/generated/types/social/scenius/getContactInvite.d.ts +37 -0
  292. package/dist/generated/types/social/scenius/getContactInvite.js +27 -0
  293. package/dist/generated/types/social/scenius/listAppAccess.d.ts +35 -0
  294. package/dist/generated/types/social/scenius/listAppAccess.js +27 -0
  295. package/dist/generated/types/social/scenius/listCirclePosts.d.ts +47 -0
  296. package/dist/generated/types/social/scenius/listCirclePosts.js +34 -0
  297. package/dist/generated/types/social/scenius/listCircleProfiles.d.ts +50 -0
  298. package/dist/generated/types/social/scenius/listCircleProfiles.js +41 -0
  299. package/dist/generated/types/social/scenius/previewContactInvite.d.ts +37 -0
  300. package/dist/generated/types/social/scenius/previewContactInvite.js +34 -0
  301. package/dist/generated/types/social/scenius/putCircleProfile.d.ts +39 -0
  302. package/dist/generated/types/social/scenius/putCircleProfile.js +41 -0
  303. package/dist/generated/types/social/scenius/redeemContactInvite.d.ts +43 -0
  304. package/dist/generated/types/social/scenius/redeemContactInvite.js +48 -0
  305. package/dist/generated/types/social/scenius/revokeContactInvite.d.ts +33 -0
  306. package/dist/generated/types/social/scenius/revokeContactInvite.js +20 -0
  307. package/dist/generated/util.d.ts +36 -0
  308. package/dist/generated/util.js +32 -0
  309. package/dist/links/index.d.ts +65 -0
  310. package/dist/links/index.js +119 -0
  311. package/dist/platform.d.ts +14 -0
  312. package/dist/platform.js +16 -0
  313. package/dist/put/contacts.d.ts +29 -0
  314. package/dist/put/contacts.js +109 -0
  315. package/dist/put/index.d.ts +148 -0
  316. package/dist/put/index.js +252 -0
  317. package/dist/query/hosts.d.ts +77 -0
  318. package/dist/query/hosts.js +227 -0
  319. package/dist/query/index.d.ts +201 -0
  320. package/dist/query/index.js +167 -0
  321. package/dist/versions/index.d.ts +121 -0
  322. package/dist/versions/index.js +90 -0
  323. package/dist/versions/react.d.ts +53 -0
  324. package/dist/versions/react.js +81 -0
  325. package/dist/wasm/index.d.ts +85 -0
  326. package/dist/wasm/index.js +51 -0
  327. package/dist/wasm/load.d.ts +2 -0
  328. package/dist/wasm/load.js +16 -0
  329. package/dist/wasm/load.native.d.ts +11 -0
  330. package/dist/wasm/load.native.js +3 -0
  331. package/dist/wasm/techne-wasm.gen.d.ts +2 -0
  332. package/dist/wasm/techne-wasm.gen.js +3 -0
  333. package/dist/wasm/techne-wasm2js.gen.d.ts +6 -0
  334. package/dist/wasm/techne-wasm2js.gen.js +90467 -0
  335. package/package.json +136 -4
@@ -0,0 +1,34 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { validate as _validate } from '../../../../../lexicons.js';
6
+ import { is$typed as _is$typed, } from '../../../../../util.js';
7
+ const is$typed = _is$typed, validate = _validate;
8
+ const id = 'pub.techne.draft.identity.beginAddMethod';
9
+ export class AuthenticationRequiredError extends XRPCError {
10
+ constructor(src) {
11
+ super(src.status, src.error, src.message, src.headers, { cause: src });
12
+ }
13
+ }
14
+ export class InvalidRequestError extends XRPCError {
15
+ constructor(src) {
16
+ super(src.status, src.error, src.message, src.headers, { cause: src });
17
+ }
18
+ }
19
+ export class RateLimitExceededError extends XRPCError {
20
+ constructor(src) {
21
+ super(src.status, src.error, src.message, src.headers, { cause: src });
22
+ }
23
+ }
24
+ export function toKnownErr(e) {
25
+ if (e instanceof XRPCError) {
26
+ if (e.error === 'AuthenticationRequired')
27
+ return new AuthenticationRequiredError(e);
28
+ if (e.error === 'InvalidRequest')
29
+ return new InvalidRequestError(e);
30
+ if (e.error === 'RateLimitExceeded')
31
+ return new RateLimitExceededError(e);
32
+ }
33
+ return e;
34
+ }
@@ -0,0 +1,41 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ export type QueryParams = {};
6
+ export interface InputSchema {
7
+ token: string;
8
+ }
9
+ export interface OutputSchema {
10
+ live: boolean;
11
+ id?: string;
12
+ app?: string;
13
+ target?: string;
14
+ owner?: string;
15
+ reusable?: boolean;
16
+ expiresAt?: string;
17
+ }
18
+ export interface CallOptions {
19
+ signal?: AbortSignal;
20
+ headers?: HeadersMap;
21
+ qp?: QueryParams;
22
+ encoding?: 'application/json';
23
+ }
24
+ export interface Response {
25
+ success: boolean;
26
+ headers: HeadersMap;
27
+ data: OutputSchema;
28
+ }
29
+ export declare class InvalidRequestError extends XRPCError {
30
+ constructor(src: XRPCError);
31
+ }
32
+ export declare class NotSupportedError extends XRPCError {
33
+ constructor(src: XRPCError);
34
+ }
35
+ export declare class RateLimitExceededError extends XRPCError {
36
+ constructor(src: XRPCError);
37
+ }
38
+ export declare class UpstreamFailureError extends XRPCError {
39
+ constructor(src: XRPCError);
40
+ }
41
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { validate as _validate } from '../../../../../lexicons.js';
6
+ import { is$typed as _is$typed, } from '../../../../../util.js';
7
+ const is$typed = _is$typed, validate = _validate;
8
+ const id = 'pub.techne.draft.identity.checkLinkToken';
9
+ export class InvalidRequestError extends XRPCError {
10
+ constructor(src) {
11
+ super(src.status, src.error, src.message, src.headers, { cause: src });
12
+ }
13
+ }
14
+ export class NotSupportedError extends XRPCError {
15
+ constructor(src) {
16
+ super(src.status, src.error, src.message, src.headers, { cause: src });
17
+ }
18
+ }
19
+ export class RateLimitExceededError extends XRPCError {
20
+ constructor(src) {
21
+ super(src.status, src.error, src.message, src.headers, { cause: src });
22
+ }
23
+ }
24
+ export class UpstreamFailureError extends XRPCError {
25
+ constructor(src) {
26
+ super(src.status, src.error, src.message, src.headers, { cause: src });
27
+ }
28
+ }
29
+ export function toKnownErr(e) {
30
+ if (e instanceof XRPCError) {
31
+ if (e.error === 'InvalidRequest')
32
+ return new InvalidRequestError(e);
33
+ if (e.error === 'NotSupported')
34
+ return new NotSupportedError(e);
35
+ if (e.error === 'RateLimitExceeded')
36
+ return new RateLimitExceededError(e);
37
+ if (e.error === 'UpstreamFailure')
38
+ return new UpstreamFailureError(e);
39
+ }
40
+ return e;
41
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ export type QueryParams = {};
6
+ export interface InputSchema {
7
+ }
8
+ export interface OutputSchema {
9
+ /** The new collective. */
10
+ did: string;
11
+ /** Its random handle, which names nothing about it. */
12
+ handle: string;
13
+ }
14
+ export interface CallOptions {
15
+ signal?: AbortSignal;
16
+ headers?: HeadersMap;
17
+ qp?: QueryParams;
18
+ encoding?: 'application/json';
19
+ }
20
+ export interface Response {
21
+ success: boolean;
22
+ headers: HeadersMap;
23
+ data: OutputSchema;
24
+ }
25
+ export declare class RateLimitExceededError extends XRPCError {
26
+ constructor(src: XRPCError);
27
+ }
28
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { validate as _validate } from '../../../../../lexicons.js';
6
+ import { is$typed as _is$typed, } from '../../../../../util.js';
7
+ const is$typed = _is$typed, validate = _validate;
8
+ const id = 'pub.techne.draft.identity.createCollective';
9
+ export class RateLimitExceededError extends XRPCError {
10
+ constructor(src) {
11
+ super(src.status, src.error, src.message, src.headers, { cause: src });
12
+ }
13
+ }
14
+ export function toKnownErr(e) {
15
+ if (e instanceof XRPCError) {
16
+ if (e.error === 'RateLimitExceeded')
17
+ return new RateLimitExceededError(e);
18
+ }
19
+ return e;
20
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ import type * as PubTechneDraftIdentityDefs from './defs.js';
6
+ export type QueryParams = {};
7
+ export interface InputSchema {
8
+ /** The app the link is for, a label the caller gives itself (unverified). */
9
+ app: string;
10
+ /** What the link is for, as a URI with a scheme (at://, https://, did:...). */
11
+ target: string;
12
+ reusable?: boolean;
13
+ expiresAt?: string;
14
+ grant?: PubTechneDraftIdentityDefs.LinkGrant;
15
+ }
16
+ export interface OutputSchema {
17
+ link: PubTechneDraftIdentityDefs.LinkTokenView;
18
+ /** The secret to put in the link. Whoever holds it can redeem it. */
19
+ token: string;
20
+ }
21
+ export interface CallOptions {
22
+ signal?: AbortSignal;
23
+ headers?: HeadersMap;
24
+ qp?: QueryParams;
25
+ encoding?: 'application/json';
26
+ }
27
+ export interface Response {
28
+ success: boolean;
29
+ headers: HeadersMap;
30
+ data: OutputSchema;
31
+ }
32
+ export declare class InvalidRequestError extends XRPCError {
33
+ constructor(src: XRPCError);
34
+ }
35
+ export declare class ForbiddenError extends XRPCError {
36
+ constructor(src: XRPCError);
37
+ }
38
+ export declare class NotSupportedError extends XRPCError {
39
+ constructor(src: XRPCError);
40
+ }
41
+ export declare class RateLimitExceededError extends XRPCError {
42
+ constructor(src: XRPCError);
43
+ }
44
+ export declare class UpstreamFailureError extends XRPCError {
45
+ constructor(src: XRPCError);
46
+ }
47
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,48 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { validate as _validate } from '../../../../../lexicons.js';
6
+ import { is$typed as _is$typed, } from '../../../../../util.js';
7
+ const is$typed = _is$typed, validate = _validate;
8
+ const id = 'pub.techne.draft.identity.createLinkToken';
9
+ export class InvalidRequestError extends XRPCError {
10
+ constructor(src) {
11
+ super(src.status, src.error, src.message, src.headers, { cause: src });
12
+ }
13
+ }
14
+ export class ForbiddenError extends XRPCError {
15
+ constructor(src) {
16
+ super(src.status, src.error, src.message, src.headers, { cause: src });
17
+ }
18
+ }
19
+ export class NotSupportedError extends XRPCError {
20
+ constructor(src) {
21
+ super(src.status, src.error, src.message, src.headers, { cause: src });
22
+ }
23
+ }
24
+ export class RateLimitExceededError extends XRPCError {
25
+ constructor(src) {
26
+ super(src.status, src.error, src.message, src.headers, { cause: src });
27
+ }
28
+ }
29
+ export class UpstreamFailureError extends XRPCError {
30
+ constructor(src) {
31
+ super(src.status, src.error, src.message, src.headers, { cause: src });
32
+ }
33
+ }
34
+ export function toKnownErr(e) {
35
+ if (e instanceof XRPCError) {
36
+ if (e.error === 'InvalidRequest')
37
+ return new InvalidRequestError(e);
38
+ if (e.error === 'Forbidden')
39
+ return new ForbiddenError(e);
40
+ if (e.error === 'NotSupported')
41
+ return new NotSupportedError(e);
42
+ if (e.error === 'RateLimitExceeded')
43
+ return new RateLimitExceededError(e);
44
+ if (e.error === 'UpstreamFailure')
45
+ return new UpstreamFailureError(e);
46
+ }
47
+ return e;
48
+ }
@@ -0,0 +1,75 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import type * as PubTechneDraftIdentityHoldForPhone from './holdForPhone.js';
6
+ /** A sign-in channel, normalized: a phone is E.164 (`+` and 7 to 15 digits); an email is trimmed and lower-cased. */
7
+ export interface Channel {
8
+ $type?: 'pub.techne.draft.identity.defs#channel';
9
+ type: 'email' | 'phone' | (string & {});
10
+ value: string;
11
+ }
12
+ export declare function isChannel<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.identity.defs", "channel">;
13
+ export declare function validateChannel<V>(v: V): ValidationResult<Channel & V>;
14
+ /** One sign-in method bound to the caller's account, masked. */
15
+ export interface MethodView {
16
+ $type?: 'pub.techne.draft.identity.defs#methodView';
17
+ /** The binding id (the credential's record key). Names the method in unlinkMethod. */
18
+ bid: string;
19
+ type: 'email' | 'phone' | (string & {});
20
+ /** The channel with most of it hidden, e.g. `j•••@example.com`, `+1 ••• ••• 4567`. */
21
+ masked: string;
22
+ boundAt: string;
23
+ }
24
+ export declare function isMethodView<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.identity.defs", "methodView">;
25
+ export declare function validateMethodView<V>(v: V): ValidationResult<MethodView & V>;
26
+ /** An alias link between the caller's account and another. */
27
+ export interface LinkView {
28
+ $type?: 'pub.techne.draft.identity.defs#linkView';
29
+ /** The other account. */
30
+ did: string;
31
+ handle?: string;
32
+ primary: string;
33
+ /** Both accounts hold a matching pub.techne.draft.accountLink; a link counts only when true. */
34
+ mutual: boolean;
35
+ }
36
+ export declare function isLinkView<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.identity.defs", "linkView">;
37
+ export declare function validateLinkView<V>(v: V): ValidationResult<LinkView & V>;
38
+ /** A link token as its owner sees it, without the token. */
39
+ export interface LinkTokenView {
40
+ $type?: 'pub.techne.draft.identity.defs#linkTokenView';
41
+ id: string;
42
+ app: string;
43
+ target: string;
44
+ reusable: boolean;
45
+ createdAt: string;
46
+ expiresAt?: string;
47
+ revokedAt?: string;
48
+ usedAt?: string;
49
+ }
50
+ export declare function isLinkTokenView<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.identity.defs", "linkTokenView">;
51
+ export declare function validateLinkTokenView<V>(v: V): ValidationResult<LinkTokenView & V>;
52
+ /** A live link token of the caller's, with its token when the identity PDS can derive it again. */
53
+ export interface LinkTokenListed {
54
+ $type?: 'pub.techne.draft.identity.defs#linkTokenListed';
55
+ link: LinkTokenView;
56
+ token?: string;
57
+ }
58
+ export declare function isLinkTokenListed<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.identity.defs", "linkTokenListed">;
59
+ export declare function validateLinkTokenListed<V>(v: V): ValidationResult<LinkTokenListed & V>;
60
+ export interface LinkRedemptionView {
61
+ $type?: 'pub.techne.draft.identity.defs#linkRedemptionView';
62
+ redeemer: string;
63
+ redeemedAt: string;
64
+ }
65
+ export declare function isLinkRedemptionView<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.identity.defs", "linkRedemptionView">;
66
+ export declare function validateLinkRedemptionView<V>(v: V): ValidationResult<LinkRedemptionView & V>;
67
+ /** A write the platform makes as `actAs` for each account that redeems the link, as identity.holdForPhone's held write. */
68
+ export interface LinkGrant {
69
+ $type?: 'pub.techne.draft.identity.defs#linkGrant';
70
+ /** The account the record is written as; the caller must be able to write as it. */
71
+ actAs: string;
72
+ write: PubTechneDraftIdentityHoldForPhone.HeldWrite;
73
+ }
74
+ export declare function isLinkGrant<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.identity.defs", "linkGrant">;
75
+ export declare function validateLinkGrant<V>(v: V): ValidationResult<LinkGrant & V>;
@@ -0,0 +1,53 @@
1
+ import { validate as _validate } from '../../../../../lexicons.js';
2
+ import { is$typed as _is$typed, } from '../../../../../util.js';
3
+ const is$typed = _is$typed, validate = _validate;
4
+ const id = 'pub.techne.draft.identity.defs';
5
+ const hashChannel = 'channel';
6
+ export function isChannel(v) {
7
+ return is$typed(v, id, hashChannel);
8
+ }
9
+ export function validateChannel(v) {
10
+ return validate(v, id, hashChannel);
11
+ }
12
+ const hashMethodView = 'methodView';
13
+ export function isMethodView(v) {
14
+ return is$typed(v, id, hashMethodView);
15
+ }
16
+ export function validateMethodView(v) {
17
+ return validate(v, id, hashMethodView);
18
+ }
19
+ const hashLinkView = 'linkView';
20
+ export function isLinkView(v) {
21
+ return is$typed(v, id, hashLinkView);
22
+ }
23
+ export function validateLinkView(v) {
24
+ return validate(v, id, hashLinkView);
25
+ }
26
+ const hashLinkTokenView = 'linkTokenView';
27
+ export function isLinkTokenView(v) {
28
+ return is$typed(v, id, hashLinkTokenView);
29
+ }
30
+ export function validateLinkTokenView(v) {
31
+ return validate(v, id, hashLinkTokenView);
32
+ }
33
+ const hashLinkTokenListed = 'linkTokenListed';
34
+ export function isLinkTokenListed(v) {
35
+ return is$typed(v, id, hashLinkTokenListed);
36
+ }
37
+ export function validateLinkTokenListed(v) {
38
+ return validate(v, id, hashLinkTokenListed);
39
+ }
40
+ const hashLinkRedemptionView = 'linkRedemptionView';
41
+ export function isLinkRedemptionView(v) {
42
+ return is$typed(v, id, hashLinkRedemptionView);
43
+ }
44
+ export function validateLinkRedemptionView(v) {
45
+ return validate(v, id, hashLinkRedemptionView);
46
+ }
47
+ const hashLinkGrant = 'linkGrant';
48
+ export function isLinkGrant(v) {
49
+ return is$typed(v, id, hashLinkGrant);
50
+ }
51
+ export function validateLinkGrant(v) {
52
+ return validate(v, id, hashLinkGrant);
53
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ import { type ValidationResult } from '@atproto/lexicon';
6
+ import type * as PubTechneDraftIdentityDefs from './defs.js';
7
+ export type QueryParams = {};
8
+ export interface InputSchema {
9
+ challenge: string;
10
+ code: string;
11
+ }
12
+ export interface OutputSchema {
13
+ status: 'added' | 'alreadyYours' | 'boundElsewhere' | 'unavailable' | (string & {});
14
+ method?: PubTechneDraftIdentityDefs.MethodView;
15
+ offer?: Offer;
16
+ }
17
+ export interface CallOptions {
18
+ signal?: AbortSignal;
19
+ headers?: HeadersMap;
20
+ qp?: QueryParams;
21
+ encoding?: 'application/json';
22
+ }
23
+ export interface Response {
24
+ success: boolean;
25
+ headers: HeadersMap;
26
+ data: OutputSchema;
27
+ }
28
+ export declare class AuthenticationRequiredError extends XRPCError {
29
+ constructor(src: XRPCError);
30
+ }
31
+ export declare class InvalidCodeError extends XRPCError {
32
+ constructor(src: XRPCError);
33
+ }
34
+ export declare function toKnownErr(e: any): any;
35
+ export interface Offer {
36
+ $type?: 'pub.techne.draft.identity.finishAddMethod#offer';
37
+ action: 'fold' | 'link' | (string & {});
38
+ token: string;
39
+ /** The account the method is bound to. */
40
+ other: string;
41
+ /** With `fold`: the account that is kept (the other one is emptied into it and deleted). */
42
+ keep?: string;
43
+ expiresAt: string;
44
+ }
45
+ export declare function isOffer<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.identity.finishAddMethod", "offer">;
46
+ export declare function validateOffer<V>(v: V): ValidationResult<Offer & V>;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { validate as _validate } from '../../../../../lexicons.js';
6
+ import { is$typed as _is$typed, } from '../../../../../util.js';
7
+ const is$typed = _is$typed, validate = _validate;
8
+ const id = 'pub.techne.draft.identity.finishAddMethod';
9
+ export class AuthenticationRequiredError extends XRPCError {
10
+ constructor(src) {
11
+ super(src.status, src.error, src.message, src.headers, { cause: src });
12
+ }
13
+ }
14
+ export class InvalidCodeError extends XRPCError {
15
+ constructor(src) {
16
+ super(src.status, src.error, src.message, src.headers, { cause: src });
17
+ }
18
+ }
19
+ export function toKnownErr(e) {
20
+ if (e instanceof XRPCError) {
21
+ if (e.error === 'AuthenticationRequired')
22
+ return new AuthenticationRequiredError(e);
23
+ if (e.error === 'InvalidCode')
24
+ return new InvalidCodeError(e);
25
+ }
26
+ return e;
27
+ }
28
+ const hashOffer = 'offer';
29
+ export function isOffer(v) {
30
+ return is$typed(v, id, hashOffer);
31
+ }
32
+ export function validateOffer(v) {
33
+ return validate(v, id, hashOffer);
34
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ export type QueryParams = {};
6
+ export interface InputSchema {
7
+ token: string;
8
+ }
9
+ export interface OutputSchema {
10
+ /** The kept account. */
11
+ did: string;
12
+ /** A device session for the kept account, when the caller used one and its account was deleted. */
13
+ deviceSession?: string;
14
+ deviceId?: string;
15
+ expiresAt?: string;
16
+ }
17
+ export interface CallOptions {
18
+ signal?: AbortSignal;
19
+ headers?: HeadersMap;
20
+ qp?: QueryParams;
21
+ encoding?: 'application/json';
22
+ }
23
+ export interface Response {
24
+ success: boolean;
25
+ headers: HeadersMap;
26
+ data: OutputSchema;
27
+ }
28
+ export declare class AuthenticationRequiredError extends XRPCError {
29
+ constructor(src: XRPCError);
30
+ }
31
+ export declare class InvalidTokenError extends XRPCError {
32
+ constructor(src: XRPCError);
33
+ }
34
+ export declare class NotEmptyError extends XRPCError {
35
+ constructor(src: XRPCError);
36
+ }
37
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { validate as _validate } from '../../../../../lexicons.js';
6
+ import { is$typed as _is$typed, } from '../../../../../util.js';
7
+ const is$typed = _is$typed, validate = _validate;
8
+ const id = 'pub.techne.draft.identity.fold';
9
+ export class AuthenticationRequiredError extends XRPCError {
10
+ constructor(src) {
11
+ super(src.status, src.error, src.message, src.headers, { cause: src });
12
+ }
13
+ }
14
+ export class InvalidTokenError extends XRPCError {
15
+ constructor(src) {
16
+ super(src.status, src.error, src.message, src.headers, { cause: src });
17
+ }
18
+ }
19
+ export class NotEmptyError extends XRPCError {
20
+ constructor(src) {
21
+ super(src.status, src.error, src.message, src.headers, { cause: src });
22
+ }
23
+ }
24
+ export function toKnownErr(e) {
25
+ if (e instanceof XRPCError) {
26
+ if (e.error === 'AuthenticationRequired')
27
+ return new AuthenticationRequiredError(e);
28
+ if (e.error === 'InvalidToken')
29
+ return new InvalidTokenError(e);
30
+ if (e.error === 'NotEmpty')
31
+ return new NotEmptyError(e);
32
+ }
33
+ return e;
34
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ import { type ValidationResult } from '@atproto/lexicon';
6
+ export type QueryParams = {};
7
+ export interface InputSchema {
8
+ /** The number, E.164 (+15551234567). */
9
+ phone: string;
10
+ /** The account the record is written as. */
11
+ actAs: string;
12
+ /** A label the caller gives itself, unverified, echoed in listPhoneHolds. */
13
+ app?: string;
14
+ write: HeldWrite;
15
+ }
16
+ export interface OutputSchema {
17
+ /** The hold. */
18
+ id: string;
19
+ }
20
+ export interface CallOptions {
21
+ signal?: AbortSignal;
22
+ headers?: HeadersMap;
23
+ qp?: QueryParams;
24
+ encoding?: 'application/json';
25
+ }
26
+ export interface Response {
27
+ success: boolean;
28
+ headers: HeadersMap;
29
+ data: OutputSchema;
30
+ }
31
+ export declare class InvalidRequestError extends XRPCError {
32
+ constructor(src: XRPCError);
33
+ }
34
+ export declare class ForbiddenError extends XRPCError {
35
+ constructor(src: XRPCError);
36
+ }
37
+ export declare class RateLimitExceededError extends XRPCError {
38
+ constructor(src: XRPCError);
39
+ }
40
+ export declare function toKnownErr(e: any): any;
41
+ export interface HeldWrite {
42
+ $type?: 'pub.techne.draft.identity.holdForPhone#heldWrite';
43
+ collection: string;
44
+ /** The record key, which may carry "$subject". Absent: an accessRule takes its deterministic key, any other record a TID. */
45
+ rkey?: string;
46
+ /** The space the record is for, as permissioned.putRecord's `space`. Required: a public record is not held. */
47
+ space: string;
48
+ /** The record, with the "$subject" (and optionally "$now") slots as string values. */
49
+ record: {
50
+ [_ in string]: unknown;
51
+ };
52
+ }
53
+ export declare function isHeldWrite<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.identity.holdForPhone", "heldWrite">;
54
+ export declare function validateHeldWrite<V>(v: V): ValidationResult<HeldWrite & V>;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { validate as _validate } from '../../../../../lexicons.js';
6
+ import { is$typed as _is$typed, } from '../../../../../util.js';
7
+ const is$typed = _is$typed, validate = _validate;
8
+ const id = 'pub.techne.draft.identity.holdForPhone';
9
+ export class InvalidRequestError extends XRPCError {
10
+ constructor(src) {
11
+ super(src.status, src.error, src.message, src.headers, { cause: src });
12
+ }
13
+ }
14
+ export class ForbiddenError extends XRPCError {
15
+ constructor(src) {
16
+ super(src.status, src.error, src.message, src.headers, { cause: src });
17
+ }
18
+ }
19
+ export class RateLimitExceededError extends XRPCError {
20
+ constructor(src) {
21
+ super(src.status, src.error, src.message, src.headers, { cause: src });
22
+ }
23
+ }
24
+ export function toKnownErr(e) {
25
+ if (e instanceof XRPCError) {
26
+ if (e.error === 'InvalidRequest')
27
+ return new InvalidRequestError(e);
28
+ if (e.error === 'Forbidden')
29
+ return new ForbiddenError(e);
30
+ if (e.error === 'RateLimitExceeded')
31
+ return new RateLimitExceededError(e);
32
+ }
33
+ return e;
34
+ }
35
+ const hashHeldWrite = 'heldWrite';
36
+ export function isHeldWrite(v) {
37
+ return is$typed(v, id, hashHeldWrite);
38
+ }
39
+ export function validateHeldWrite(v) {
40
+ return validate(v, id, hashHeldWrite);
41
+ }