techne-sdk 0.0.0-stage → 0.1.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 (328) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +85 -2
  3. package/dist/catalog/catalog.gen.d.ts +841 -0
  4. package/dist/catalog/catalog.gen.js +29696 -0
  5. package/dist/catalog/index.d.ts +11 -0
  6. package/dist/catalog/index.js +11 -0
  7. package/dist/connect.d.ts +38 -0
  8. package/dist/connect.js +18 -0
  9. package/dist/generated/index.d.ts +2296 -0
  10. package/dist/generated/index.js +3320 -0
  11. package/dist/generated/lexicons.d.ts +17254 -0
  12. package/dist/generated/lexicons.js +9225 -0
  13. package/dist/generated/nsid.d.ts +529 -0
  14. package/dist/generated/nsid.js +1094 -0
  15. package/dist/generated/nsid.json +1082 -0
  16. package/dist/generated/records.d.ts +143 -0
  17. package/dist/generated/records.js +1 -0
  18. package/dist/generated/types/app/bsky/richtext/facet.d.ts +44 -0
  19. package/dist/generated/types/app/bsky/richtext/facet.js +39 -0
  20. package/dist/generated/types/com/atproto/admin/defs.d.ts +10 -0
  21. package/dist/generated/types/com/atproto/admin/defs.js +11 -0
  22. package/dist/generated/types/com/atproto/label/defs.d.ts +73 -0
  23. package/dist/generated/types/com/atproto/label/defs.js +39 -0
  24. package/dist/generated/types/com/atproto/moderation/createReport.d.ts +39 -0
  25. package/dist/generated/types/com/atproto/moderation/createReport.js +7 -0
  26. package/dist/generated/types/com/atproto/moderation/defs.d.ts +15 -0
  27. package/dist/generated/types/com/atproto/moderation/defs.js +18 -0
  28. package/dist/generated/types/com/atproto/repo/applyWrites.d.ts +88 -0
  29. package/dist/generated/types/com/atproto/repo/applyWrites.js +62 -0
  30. package/dist/generated/types/com/atproto/repo/createRecord.d.ts +43 -0
  31. package/dist/generated/types/com/atproto/repo/createRecord.js +20 -0
  32. package/dist/generated/types/com/atproto/repo/defs.d.ts +11 -0
  33. package/dist/generated/types/com/atproto/repo/defs.js +11 -0
  34. package/dist/generated/types/com/atproto/repo/deleteRecord.d.ts +36 -0
  35. package/dist/generated/types/com/atproto/repo/deleteRecord.js +20 -0
  36. package/dist/generated/types/com/atproto/repo/getRecord.d.ts +35 -0
  37. package/dist/generated/types/com/atproto/repo/getRecord.js +20 -0
  38. package/dist/generated/types/com/atproto/repo/listRecords.d.ts +41 -0
  39. package/dist/generated/types/com/atproto/repo/listRecords.js +14 -0
  40. package/dist/generated/types/com/atproto/repo/putRecord.d.ts +45 -0
  41. package/dist/generated/types/com/atproto/repo/putRecord.js +20 -0
  42. package/dist/generated/types/com/atproto/repo/strongRef.d.ts +11 -0
  43. package/dist/generated/types/com/atproto/repo/strongRef.js +11 -0
  44. package/dist/generated/types/com/atproto/server/getServiceAuth.d.ts +29 -0
  45. package/dist/generated/types/com/atproto/server/getServiceAuth.js +20 -0
  46. package/dist/generated/types/community/lexicon/calendar/event.d.ts +65 -0
  47. package/dist/generated/types/community/lexicon/calendar/event.js +35 -0
  48. package/dist/generated/types/community/lexicon/calendar/rsvp.d.ts +20 -0
  49. package/dist/generated/types/community/lexicon/calendar/rsvp.js +18 -0
  50. package/dist/generated/types/community/lexicon/location/address.d.ts +22 -0
  51. package/dist/generated/types/community/lexicon/location/address.js +11 -0
  52. package/dist/generated/types/community/lexicon/location/fsq.d.ts +16 -0
  53. package/dist/generated/types/community/lexicon/location/fsq.js +11 -0
  54. package/dist/generated/types/community/lexicon/location/geo.d.ts +15 -0
  55. package/dist/generated/types/community/lexicon/location/geo.js +11 -0
  56. package/dist/generated/types/community/lexicon/location/hthree.d.ts +14 -0
  57. package/dist/generated/types/community/lexicon/location/hthree.js +11 -0
  58. package/dist/generated/types/pub/techne/draft/accessRule.d.ts +36 -0
  59. package/dist/generated/types/pub/techne/draft/accessRule.js +33 -0
  60. package/dist/generated/types/pub/techne/draft/accountLink.d.ts +16 -0
  61. package/dist/generated/types/pub/techne/draft/accountLink.js +12 -0
  62. package/dist/generated/types/pub/techne/draft/actor/profile.d.ts +20 -0
  63. package/dist/generated/types/pub/techne/draft/actor/profile.js +12 -0
  64. package/dist/generated/types/pub/techne/draft/appAccess.d.ts +25 -0
  65. package/dist/generated/types/pub/techne/draft/appAccess.js +19 -0
  66. package/dist/generated/types/pub/techne/draft/appAccessRequest.d.ts +16 -0
  67. package/dist/generated/types/pub/techne/draft/appAccessRequest.js +12 -0
  68. package/dist/generated/types/pub/techne/draft/appConfig.d.ts +24 -0
  69. package/dist/generated/types/pub/techne/draft/appConfig.js +19 -0
  70. package/dist/generated/types/pub/techne/draft/approval.d.ts +18 -0
  71. package/dist/generated/types/pub/techne/draft/approval.js +12 -0
  72. package/dist/generated/types/pub/techne/draft/assessment.d.ts +36 -0
  73. package/dist/generated/types/pub/techne/draft/assessment.js +26 -0
  74. package/dist/generated/types/pub/techne/draft/attentionPrefs.d.ts +14 -0
  75. package/dist/generated/types/pub/techne/draft/attentionPrefs.js +12 -0
  76. package/dist/generated/types/pub/techne/draft/beacon.d.ts +17 -0
  77. package/dist/generated/types/pub/techne/draft/beacon.js +12 -0
  78. package/dist/generated/types/pub/techne/draft/beaconLists.d.ts +13 -0
  79. package/dist/generated/types/pub/techne/draft/beaconLists.js +12 -0
  80. package/dist/generated/types/pub/techne/draft/beaconSpot.d.ts +17 -0
  81. package/dist/generated/types/pub/techne/draft/beaconSpot.js +12 -0
  82. package/dist/generated/types/pub/techne/draft/block.d.ts +14 -0
  83. package/dist/generated/types/pub/techne/draft/block.js +12 -0
  84. package/dist/generated/types/pub/techne/draft/channelVerification.d.ts +15 -0
  85. package/dist/generated/types/pub/techne/draft/channelVerification.js +12 -0
  86. package/dist/generated/types/pub/techne/draft/circleBeacon.d.ts +14 -0
  87. package/dist/generated/types/pub/techne/draft/circleBeacon.js +12 -0
  88. package/dist/generated/types/pub/techne/draft/collective.d.ts +29 -0
  89. package/dist/generated/types/pub/techne/draft/collective.js +12 -0
  90. package/dist/generated/types/pub/techne/draft/commons/createServiceAccount.d.ts +47 -0
  91. package/dist/generated/types/pub/techne/draft/commons/createServiceAccount.js +55 -0
  92. package/dist/generated/types/pub/techne/draft/commons/getVersions.d.ts +78 -0
  93. package/dist/generated/types/pub/techne/draft/commons/getVersions.js +41 -0
  94. package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.d.ts +45 -0
  95. package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.js +48 -0
  96. package/dist/generated/types/pub/techne/draft/commons/runChain.d.ts +53 -0
  97. package/dist/generated/types/pub/techne/draft/commons/runChain.js +34 -0
  98. package/dist/generated/types/pub/techne/draft/connection.d.ts +16 -0
  99. package/dist/generated/types/pub/techne/draft/connection.js +12 -0
  100. package/dist/generated/types/pub/techne/draft/contact.d.ts +20 -0
  101. package/dist/generated/types/pub/techne/draft/contact.js +12 -0
  102. package/dist/generated/types/pub/techne/draft/contactChannel.d.ts +18 -0
  103. package/dist/generated/types/pub/techne/draft/contactChannel.js +12 -0
  104. package/dist/generated/types/pub/techne/draft/contactList.d.ts +14 -0
  105. package/dist/generated/types/pub/techne/draft/contactList.js +12 -0
  106. package/dist/generated/types/pub/techne/draft/containedIn.d.ts +17 -0
  107. package/dist/generated/types/pub/techne/draft/containedIn.js +12 -0
  108. package/dist/generated/types/pub/techne/draft/credential.d.ts +39 -0
  109. package/dist/generated/types/pub/techne/draft/credential.js +19 -0
  110. package/dist/generated/types/pub/techne/draft/credentialRevocation.d.ts +14 -0
  111. package/dist/generated/types/pub/techne/draft/credentialRevocation.js +12 -0
  112. package/dist/generated/types/pub/techne/draft/derivation.d.ts +50 -0
  113. package/dist/generated/types/pub/techne/draft/derivation.js +26 -0
  114. package/dist/generated/types/pub/techne/draft/description.d.ts +17 -0
  115. package/dist/generated/types/pub/techne/draft/description.js +12 -0
  116. package/dist/generated/types/pub/techne/draft/distinctFrom.d.ts +15 -0
  117. package/dist/generated/types/pub/techne/draft/distinctFrom.js +12 -0
  118. package/dist/generated/types/pub/techne/draft/evaluation.d.ts +18 -0
  119. package/dist/generated/types/pub/techne/draft/evaluation.js +12 -0
  120. package/dist/generated/types/pub/techne/draft/event/config.d.ts +22 -0
  121. package/dist/generated/types/pub/techne/draft/event/config.js +12 -0
  122. package/dist/generated/types/pub/techne/draft/event/detail.d.ts +25 -0
  123. package/dist/generated/types/pub/techne/draft/event/detail.js +12 -0
  124. package/dist/generated/types/pub/techne/draft/event/listing.d.ts +14 -0
  125. package/dist/generated/types/pub/techne/draft/event/listing.js +12 -0
  126. package/dist/generated/types/pub/techne/draft/feed/recipe.d.ts +50 -0
  127. package/dist/generated/types/pub/techne/draft/feed/recipe.js +26 -0
  128. package/dist/generated/types/pub/techne/draft/geo.d.ts +19 -0
  129. package/dist/generated/types/pub/techne/draft/geo.js +12 -0
  130. package/dist/generated/types/pub/techne/draft/heldAt.d.ts +17 -0
  131. package/dist/generated/types/pub/techne/draft/heldAt.js +12 -0
  132. package/dist/generated/types/pub/techne/draft/identity/accountsForPhones.d.ts +43 -0
  133. package/dist/generated/types/pub/techne/draft/identity/accountsForPhones.js +41 -0
  134. package/dist/generated/types/pub/techne/draft/identity/attest.d.ts +48 -0
  135. package/dist/generated/types/pub/techne/draft/identity/attest.js +48 -0
  136. package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.d.ts +35 -0
  137. package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.js +34 -0
  138. package/dist/generated/types/pub/techne/draft/identity/checkLinkToken.d.ts +41 -0
  139. package/dist/generated/types/pub/techne/draft/identity/checkLinkToken.js +41 -0
  140. package/dist/generated/types/pub/techne/draft/identity/createCollective.d.ts +28 -0
  141. package/dist/generated/types/pub/techne/draft/identity/createCollective.js +20 -0
  142. package/dist/generated/types/pub/techne/draft/identity/createLinkToken.d.ts +47 -0
  143. package/dist/generated/types/pub/techne/draft/identity/createLinkToken.js +48 -0
  144. package/dist/generated/types/pub/techne/draft/identity/defs.d.ts +75 -0
  145. package/dist/generated/types/pub/techne/draft/identity/defs.js +53 -0
  146. package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.d.ts +46 -0
  147. package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.js +34 -0
  148. package/dist/generated/types/pub/techne/draft/identity/fold.d.ts +37 -0
  149. package/dist/generated/types/pub/techne/draft/identity/fold.js +34 -0
  150. package/dist/generated/types/pub/techne/draft/identity/holdForPhone.d.ts +54 -0
  151. package/dist/generated/types/pub/techne/draft/identity/holdForPhone.js +41 -0
  152. package/dist/generated/types/pub/techne/draft/identity/link.d.ts +35 -0
  153. package/dist/generated/types/pub/techne/draft/identity/link.js +34 -0
  154. package/dist/generated/types/pub/techne/draft/identity/linkRedeemed.d.ts +46 -0
  155. package/dist/generated/types/pub/techne/draft/identity/linkRedeemed.js +48 -0
  156. package/dist/generated/types/pub/techne/draft/identity/linkRedemption.d.ts +18 -0
  157. package/dist/generated/types/pub/techne/draft/identity/linkRedemption.js +12 -0
  158. package/dist/generated/types/pub/techne/draft/identity/listLinkRedemptions.d.ts +36 -0
  159. package/dist/generated/types/pub/techne/draft/identity/listLinkRedemptions.js +41 -0
  160. package/dist/generated/types/pub/techne/draft/identity/listLinkTokens.d.ts +39 -0
  161. package/dist/generated/types/pub/techne/draft/identity/listLinkTokens.js +41 -0
  162. package/dist/generated/types/pub/techne/draft/identity/listMethods.d.ts +24 -0
  163. package/dist/generated/types/pub/techne/draft/identity/listMethods.js +20 -0
  164. package/dist/generated/types/pub/techne/draft/identity/listPhoneHolds.d.ts +49 -0
  165. package/dist/generated/types/pub/techne/draft/identity/listPhoneHolds.js +34 -0
  166. package/dist/generated/types/pub/techne/draft/identity/redeemLinkToken.d.ts +47 -0
  167. package/dist/generated/types/pub/techne/draft/identity/redeemLinkToken.js +55 -0
  168. package/dist/generated/types/pub/techne/draft/identity/releasePhoneHold.d.ts +32 -0
  169. package/dist/generated/types/pub/techne/draft/identity/releasePhoneHold.js +34 -0
  170. package/dist/generated/types/pub/techne/draft/identity/resetLinkToken.d.ts +45 -0
  171. package/dist/generated/types/pub/techne/draft/identity/resetLinkToken.js +48 -0
  172. package/dist/generated/types/pub/techne/draft/identity/resolve.d.ts +39 -0
  173. package/dist/generated/types/pub/techne/draft/identity/resolve.js +34 -0
  174. package/dist/generated/types/pub/techne/draft/identity/revokeLinkToken.d.ts +36 -0
  175. package/dist/generated/types/pub/techne/draft/identity/revokeLinkToken.js +41 -0
  176. package/dist/generated/types/pub/techne/draft/identity/unlinkAccount.d.ts +29 -0
  177. package/dist/generated/types/pub/techne/draft/identity/unlinkAccount.js +27 -0
  178. package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.d.ts +32 -0
  179. package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.js +34 -0
  180. package/dist/generated/types/pub/techne/draft/interest.d.ts +14 -0
  181. package/dist/generated/types/pub/techne/draft/interest.js +12 -0
  182. package/dist/generated/types/pub/techne/draft/introProposal.d.ts +28 -0
  183. package/dist/generated/types/pub/techne/draft/introProposal.js +19 -0
  184. package/dist/generated/types/pub/techne/draft/invite.d.ts +16 -0
  185. package/dist/generated/types/pub/techne/draft/invite.js +12 -0
  186. package/dist/generated/types/pub/techne/draft/market/ask.d.ts +18 -0
  187. package/dist/generated/types/pub/techne/draft/market/ask.js +12 -0
  188. package/dist/generated/types/pub/techne/draft/market/offer.d.ts +14 -0
  189. package/dist/generated/types/pub/techne/draft/market/offer.js +12 -0
  190. package/dist/generated/types/pub/techne/draft/membership.d.ts +22 -0
  191. package/dist/generated/types/pub/techne/draft/membership.js +12 -0
  192. package/dist/generated/types/pub/techne/draft/notificationState.d.ts +18 -0
  193. package/dist/generated/types/pub/techne/draft/notificationState.js +12 -0
  194. package/dist/generated/types/pub/techne/draft/operator.d.ts +20 -0
  195. package/dist/generated/types/pub/techne/draft/operator.js +12 -0
  196. package/dist/generated/types/pub/techne/draft/org.d.ts +42 -0
  197. package/dist/generated/types/pub/techne/draft/org.js +19 -0
  198. package/dist/generated/types/pub/techne/draft/passage.d.ts +18 -0
  199. package/dist/generated/types/pub/techne/draft/passage.js +12 -0
  200. package/dist/generated/types/pub/techne/draft/pendingBeaconSpot.d.ts +19 -0
  201. package/dist/generated/types/pub/techne/draft/pendingBeaconSpot.js +12 -0
  202. package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.d.ts +47 -0
  203. package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.js +55 -0
  204. package/dist/generated/types/pub/techne/draft/permissioned/getGrants.d.ts +32 -0
  205. package/dist/generated/types/pub/techne/draft/permissioned/getGrants.js +34 -0
  206. package/dist/generated/types/pub/techne/draft/permissioned/getRecord.d.ts +36 -0
  207. package/dist/generated/types/pub/techne/draft/permissioned/getRecord.js +34 -0
  208. package/dist/generated/types/pub/techne/draft/permissioned/listChanges.d.ts +71 -0
  209. package/dist/generated/types/pub/techne/draft/permissioned/listChanges.js +41 -0
  210. package/dist/generated/types/pub/techne/draft/permissioned/listRecords.d.ts +53 -0
  211. package/dist/generated/types/pub/techne/draft/permissioned/listRecords.js +34 -0
  212. package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +70 -0
  213. package/dist/generated/types/pub/techne/draft/permissioned/putRecord.js +76 -0
  214. package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +84 -0
  215. package/dist/generated/types/pub/techne/draft/permissioned/putRecords.js +69 -0
  216. package/dist/generated/types/pub/techne/draft/place.d.ts +36 -0
  217. package/dist/generated/types/pub/techne/draft/place.js +19 -0
  218. package/dist/generated/types/pub/techne/draft/post.d.ts +30 -0
  219. package/dist/generated/types/pub/techne/draft/post.js +19 -0
  220. package/dist/generated/types/pub/techne/draft/presence.d.ts +16 -0
  221. package/dist/generated/types/pub/techne/draft/presence.js +12 -0
  222. package/dist/generated/types/pub/techne/draft/profile.d.ts +53 -0
  223. package/dist/generated/types/pub/techne/draft/profile.js +33 -0
  224. package/dist/generated/types/pub/techne/draft/provenance.d.ts +52 -0
  225. package/dist/generated/types/pub/techne/draft/provenance.js +33 -0
  226. package/dist/generated/types/pub/techne/draft/publisher.d.ts +43 -0
  227. package/dist/generated/types/pub/techne/draft/publisher.js +19 -0
  228. package/dist/generated/types/pub/techne/draft/query/countRecords.d.ts +47 -0
  229. package/dist/generated/types/pub/techne/draft/query/countRecords.js +34 -0
  230. package/dist/generated/types/pub/techne/draft/query/getRecords.d.ts +86 -0
  231. package/dist/generated/types/pub/techne/draft/query/getRecords.js +48 -0
  232. package/dist/generated/types/pub/techne/draft/query/listRecords.d.ts +83 -0
  233. package/dist/generated/types/pub/techne/draft/query/listRecords.js +34 -0
  234. package/dist/generated/types/pub/techne/draft/query/listRejections.d.ts +50 -0
  235. package/dist/generated/types/pub/techne/draft/query/listRejections.js +27 -0
  236. package/dist/generated/types/pub/techne/draft/questionSet.d.ts +31 -0
  237. package/dist/generated/types/pub/techne/draft/questionSet.js +19 -0
  238. package/dist/generated/types/pub/techne/draft/receipt.d.ts +16 -0
  239. package/dist/generated/types/pub/techne/draft/receipt.js +12 -0
  240. package/dist/generated/types/pub/techne/draft/reflection.d.ts +20 -0
  241. package/dist/generated/types/pub/techne/draft/reflection.js +12 -0
  242. package/dist/generated/types/pub/techne/draft/retirement.d.ts +16 -0
  243. package/dist/generated/types/pub/techne/draft/retirement.js +12 -0
  244. package/dist/generated/types/pub/techne/draft/rsvpNote.d.ts +16 -0
  245. package/dist/generated/types/pub/techne/draft/rsvpNote.js +12 -0
  246. package/dist/generated/types/pub/techne/draft/sameAs.d.ts +15 -0
  247. package/dist/generated/types/pub/techne/draft/sameAs.js +12 -0
  248. package/dist/generated/types/pub/techne/draft/scraper/cursor.d.ts +17 -0
  249. package/dist/generated/types/pub/techne/draft/scraper/cursor.js +12 -0
  250. package/dist/generated/types/pub/techne/draft/scraper/raw.d.ts +31 -0
  251. package/dist/generated/types/pub/techne/draft/scraper/raw.js +12 -0
  252. package/dist/generated/types/pub/techne/draft/share.d.ts +14 -0
  253. package/dist/generated/types/pub/techne/draft/share.js +12 -0
  254. package/dist/generated/types/pub/techne/draft/source.d.ts +23 -0
  255. package/dist/generated/types/pub/techne/draft/source.js +12 -0
  256. package/dist/generated/types/pub/techne/draft/sourceAttribution.d.ts +25 -0
  257. package/dist/generated/types/pub/techne/draft/sourceAttribution.js +12 -0
  258. package/dist/generated/types/pub/techne/draft/sourceRef.d.ts +23 -0
  259. package/dist/generated/types/pub/techne/draft/sourceRef.js +12 -0
  260. package/dist/generated/types/pub/techne/draft/subjectPrefs.d.ts +18 -0
  261. package/dist/generated/types/pub/techne/draft/subjectPrefs.js +12 -0
  262. package/dist/generated/types/pub/techne/draft/sync/indexRecord.d.ts +48 -0
  263. package/dist/generated/types/pub/techne/draft/sync/indexRecord.js +55 -0
  264. package/dist/generated/types/pub/techne/draft/verdict.d.ts +16 -0
  265. package/dist/generated/types/pub/techne/draft/verdict.js +12 -0
  266. package/dist/generated/types/pub/techne/draft/verification.d.ts +14 -0
  267. package/dist/generated/types/pub/techne/draft/verification.js +12 -0
  268. package/dist/generated/types/pub/techne/draft/weeklyCheckIn.d.ts +21 -0
  269. package/dist/generated/types/pub/techne/draft/weeklyCheckIn.js +12 -0
  270. package/dist/generated/types/social/scenius/approveAppAccess.d.ts +36 -0
  271. package/dist/generated/types/social/scenius/approveAppAccess.js +27 -0
  272. package/dist/generated/types/social/scenius/createCirclePost.d.ts +39 -0
  273. package/dist/generated/types/social/scenius/createCirclePost.js +41 -0
  274. package/dist/generated/types/social/scenius/createContactInvite.d.ts +41 -0
  275. package/dist/generated/types/social/scenius/createContactInvite.js +34 -0
  276. package/dist/generated/types/social/scenius/deleteCirclePost.d.ts +34 -0
  277. package/dist/generated/types/social/scenius/deleteCirclePost.js +34 -0
  278. package/dist/generated/types/social/scenius/deleteCircleProfile.d.ts +33 -0
  279. package/dist/generated/types/social/scenius/deleteCircleProfile.js +34 -0
  280. package/dist/generated/types/social/scenius/getAppAccess.d.ts +30 -0
  281. package/dist/generated/types/social/scenius/getAppAccess.js +27 -0
  282. package/dist/generated/types/social/scenius/getAppConfig.d.ts +26 -0
  283. package/dist/generated/types/social/scenius/getAppConfig.js +7 -0
  284. package/dist/generated/types/social/scenius/getCircleThread.d.ts +48 -0
  285. package/dist/generated/types/social/scenius/getCircleThread.js +41 -0
  286. package/dist/generated/types/social/scenius/getContactInvite.d.ts +37 -0
  287. package/dist/generated/types/social/scenius/getContactInvite.js +27 -0
  288. package/dist/generated/types/social/scenius/listAppAccess.d.ts +35 -0
  289. package/dist/generated/types/social/scenius/listAppAccess.js +27 -0
  290. package/dist/generated/types/social/scenius/listCirclePosts.d.ts +47 -0
  291. package/dist/generated/types/social/scenius/listCirclePosts.js +34 -0
  292. package/dist/generated/types/social/scenius/listCircleProfiles.d.ts +50 -0
  293. package/dist/generated/types/social/scenius/listCircleProfiles.js +41 -0
  294. package/dist/generated/types/social/scenius/previewContactInvite.d.ts +37 -0
  295. package/dist/generated/types/social/scenius/previewContactInvite.js +34 -0
  296. package/dist/generated/types/social/scenius/putCircleProfile.d.ts +39 -0
  297. package/dist/generated/types/social/scenius/putCircleProfile.js +41 -0
  298. package/dist/generated/types/social/scenius/redeemContactInvite.d.ts +43 -0
  299. package/dist/generated/types/social/scenius/redeemContactInvite.js +48 -0
  300. package/dist/generated/types/social/scenius/revokeContactInvite.d.ts +33 -0
  301. package/dist/generated/types/social/scenius/revokeContactInvite.js +20 -0
  302. package/dist/generated/util.d.ts +36 -0
  303. package/dist/generated/util.js +32 -0
  304. package/dist/links/index.d.ts +65 -0
  305. package/dist/links/index.js +119 -0
  306. package/dist/put/contacts.d.ts +29 -0
  307. package/dist/put/contacts.js +109 -0
  308. package/dist/put/index.d.ts +148 -0
  309. package/dist/put/index.js +252 -0
  310. package/dist/query/hosts.d.ts +77 -0
  311. package/dist/query/hosts.js +227 -0
  312. package/dist/query/index.d.ts +201 -0
  313. package/dist/query/index.js +167 -0
  314. package/dist/versions/index.d.ts +121 -0
  315. package/dist/versions/index.js +90 -0
  316. package/dist/versions/react.d.ts +53 -0
  317. package/dist/versions/react.js +81 -0
  318. package/dist/wasm/index.d.ts +73 -0
  319. package/dist/wasm/index.js +51 -0
  320. package/dist/wasm/load.d.ts +2 -0
  321. package/dist/wasm/load.js +16 -0
  322. package/dist/wasm/load.native.d.ts +11 -0
  323. package/dist/wasm/load.native.js +3 -0
  324. package/dist/wasm/techne-wasm.gen.d.ts +2 -0
  325. package/dist/wasm/techne-wasm.gen.js +3 -0
  326. package/dist/wasm/techne-wasm2js.gen.d.ts +6 -0
  327. package/dist/wasm/techne-wasm2js.gen.js +90023 -0
  328. package/package.json +126 -4
@@ -0,0 +1,42 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import type * as CommunityLexiconLocationAddress from '../../../community/lexicon/location/address.js';
6
+ export interface Main {
7
+ $type: 'pub.techne.draft.org';
8
+ /** The organization's registered name. From the almanac `name` attribute. */
9
+ name: string;
10
+ /** CO SoS entity-type code (e.g. DLLC, DPC, DNC). From the almanac `entityType` attribute, clipped to 64 chars there (co-sos-registry pipeline.py) — matched here so the two bounds agree. */
11
+ entityType?: string;
12
+ /** Where the entity was legally formed, as the registry states it. From the almanac `jurisdictionOfFormation` attribute. */
13
+ jurisdictionOfFormation?: string;
14
+ /** The entity's IRS EIN: exactly 9 digits, no dash (shape ^[0-9]{9}$ — atproto lexicon strings carry no pattern property, so the publisher enforces this before write). From the almanac `ein` attribute. */
15
+ identifier?: string;
16
+ /** The organization's website, absolute http(s). From the almanac `website` attribute. */
17
+ url?: string;
18
+ /** E.164 phone number. From the almanac `phone` attribute. */
19
+ telephone?: string;
20
+ /** Public contact address. From the almanac `email` attribute, when a merged peg carries one. No atproto lexicon "email" format token exists (atrium-codegen's fixed format enum has no such variant) — unlike the almanac's own value_schema, this field carries no format assertion, only the length bound. */
21
+ email?: string;
22
+ /** Formation date — year, year-month, or full date (shape ^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$ — atproto lexicon strings carry no pattern property, so the publisher enforces this before write), as the source states it. From the almanac `founded` attribute. */
23
+ founded?: string;
24
+ address?: CommunityLexiconLocationAddress.Main;
25
+ /** Registry status per scheme (co-sos, irs). Zero or more; a co-sos and an irs status can coexist for one entity. */
26
+ status?: SchemeTag[];
27
+ /** Classification codes per scheme (irs-subsection, irs-ntee). */
28
+ category?: SchemeTag[];
29
+ createdAt: string;
30
+ [k: string]: unknown;
31
+ }
32
+ export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.org", "main">;
33
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
34
+ export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
35
+ /** One classification or status code in a named scheme, mirroring the almanac's own {scheme, code} attribute shape. */
36
+ export interface SchemeTag {
37
+ $type?: 'pub.techne.draft.org#schemeTag';
38
+ scheme: string;
39
+ code: string;
40
+ }
41
+ export declare function isSchemeTag<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.org", "schemeTag">;
42
+ export declare function validateSchemeTag<V>(v: V): ValidationResult<SchemeTag & V>;
@@ -0,0 +1,19 @@
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.org';
5
+ const hashMain = 'main';
6
+ export function isMain(v) {
7
+ return is$typed(v, id, hashMain);
8
+ }
9
+ export function validateMain(v) {
10
+ return validate(v, id, hashMain, true);
11
+ }
12
+ export { isMain as isRecord, validateMain as validateRecord, };
13
+ const hashSchemeTag = 'schemeTag';
14
+ export function isSchemeTag(v) {
15
+ return is$typed(v, id, hashSchemeTag);
16
+ }
17
+ export function validateSchemeTag(v) {
18
+ return validate(v, id, hashSchemeTag);
19
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ export interface Main {
6
+ $type: 'pub.techne.draft.passage';
7
+ /** The passage title (e.g. "Welcoming a new baby"). Member-gated by placement. */
8
+ title?: string;
9
+ /** The chosen playbook id (client app-data; the server stores the string). Member-gated by placement. */
10
+ playbook?: string;
11
+ /** The passage subject: a DID, or a pending-placeholder JSON (`{"kind":"Placeholder","placeholderId":…}`) until the subject binds. Member-gated by placement. */
12
+ subject?: string;
13
+ createdAt: string;
14
+ [k: string]: unknown;
15
+ }
16
+ export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.passage", "main">;
17
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
18
+ export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
@@ -0,0 +1,12 @@
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.passage';
5
+ const hashMain = 'main';
6
+ export function isMain(v) {
7
+ return is$typed(v, id, hashMain);
8
+ }
9
+ export function validateMain(v) {
10
+ return validate(v, id, hashMain, true);
11
+ }
12
+ export { isMain as isRecord, validateMain as validateRecord, };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import type * as CommunityLexiconLocationGeo from '../../../community/lexicon/location/geo.js';
6
+ import type * as CommunityLexiconLocationAddress from '../../../community/lexicon/location/address.js';
7
+ export interface Main {
8
+ $type: 'pub.techne.draft.pendingBeaconSpot';
9
+ /** The public community.lexicon.calendar.event the spot is for. Its record key equals this record's key. */
10
+ event: string;
11
+ geo: CommunityLexiconLocationGeo.Main;
12
+ address?: CommunityLexiconLocationAddress.Main;
13
+ /** When this was last written. Read by the server to delete a copy no beacon took up within a day. */
14
+ createdAt: string;
15
+ [k: string]: unknown;
16
+ }
17
+ export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.pendingBeaconSpot", "main">;
18
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
19
+ export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
@@ -0,0 +1,12 @@
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.pendingBeaconSpot';
5
+ const hashMain = 'main';
6
+ export function isMain(v) {
7
+ return is$typed(v, id, hashMain);
8
+ }
9
+ export function validateMain(v) {
10
+ return validate(v, id, hashMain, true);
11
+ }
12
+ export { isMain as isRecord, validateMain as validateRecord, };
@@ -0,0 +1,47 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ export type QueryParams = {};
6
+ export interface InputSchema {
7
+ /** The caller's own DID. */
8
+ repo: string;
9
+ collection: string;
10
+ rkey: string;
11
+ /** Delete only if the record's current CID is this one. */
12
+ swapCid?: string;
13
+ }
14
+ export interface OutputSchema {
15
+ /** The repo revision of the delete. Absent when there was nothing to delete. */
16
+ rev?: 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 ForbiddenError extends XRPCError {
33
+ constructor(src: XRPCError);
34
+ }
35
+ export declare class AccountDeletingError extends XRPCError {
36
+ constructor(src: XRPCError);
37
+ }
38
+ export declare class InvalidSwapError extends XRPCError {
39
+ constructor(src: XRPCError);
40
+ }
41
+ export declare class AuthenticationRequiredError extends XRPCError {
42
+ constructor(src: XRPCError);
43
+ }
44
+ export declare class RateLimitExceededError extends XRPCError {
45
+ constructor(src: XRPCError);
46
+ }
47
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,55 @@
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.permissioned.deleteRecord';
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 AccountDeletingError extends XRPCError {
20
+ constructor(src) {
21
+ super(src.status, src.error, src.message, src.headers, { cause: src });
22
+ }
23
+ }
24
+ export class InvalidSwapError extends XRPCError {
25
+ constructor(src) {
26
+ super(src.status, src.error, src.message, src.headers, { cause: src });
27
+ }
28
+ }
29
+ export class AuthenticationRequiredError extends XRPCError {
30
+ constructor(src) {
31
+ super(src.status, src.error, src.message, src.headers, { cause: src });
32
+ }
33
+ }
34
+ export class RateLimitExceededError extends XRPCError {
35
+ constructor(src) {
36
+ super(src.status, src.error, src.message, src.headers, { cause: src });
37
+ }
38
+ }
39
+ export function toKnownErr(e) {
40
+ if (e instanceof XRPCError) {
41
+ if (e.error === 'InvalidRequest')
42
+ return new InvalidRequestError(e);
43
+ if (e.error === 'Forbidden')
44
+ return new ForbiddenError(e);
45
+ if (e.error === 'AccountDeleting')
46
+ return new AccountDeletingError(e);
47
+ if (e.error === 'InvalidSwap')
48
+ return new InvalidSwapError(e);
49
+ if (e.error === 'AuthenticationRequired')
50
+ return new AuthenticationRequiredError(e);
51
+ if (e.error === 'RateLimitExceeded')
52
+ return new RateLimitExceededError(e);
53
+ }
54
+ return e;
55
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ export type QueryParams = {
6
+ /** The owner whose audience to show. */
7
+ did: string;
8
+ };
9
+ export type InputSchema = undefined;
10
+ export interface OutputSchema {
11
+ /** The DIDs the owner's shares name, sorted, the owner left out. */
12
+ read: string[];
13
+ }
14
+ export interface CallOptions {
15
+ signal?: AbortSignal;
16
+ headers?: HeadersMap;
17
+ }
18
+ export interface Response {
19
+ success: boolean;
20
+ headers: HeadersMap;
21
+ data: OutputSchema;
22
+ }
23
+ export declare class InvalidRequestError extends XRPCError {
24
+ constructor(src: XRPCError);
25
+ }
26
+ export declare class ForbiddenError extends XRPCError {
27
+ constructor(src: XRPCError);
28
+ }
29
+ export declare class AuthenticationRequiredError extends XRPCError {
30
+ constructor(src: XRPCError);
31
+ }
32
+ 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.permissioned.getGrants';
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 AuthenticationRequiredError 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 === 'AuthenticationRequired')
31
+ return new AuthenticationRequiredError(e);
32
+ }
33
+ return e;
34
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ export type QueryParams = {
6
+ /** at://{did}/{collection}/{rkey}, with a DID authority. (Native 0016 spaces address a permissioned record by its space URI instead.) */
7
+ uri: string;
8
+ };
9
+ export type InputSchema = undefined;
10
+ export interface OutputSchema {
11
+ uri: string;
12
+ cid: string;
13
+ rev: string;
14
+ value: {
15
+ [_ in string]: unknown;
16
+ };
17
+ }
18
+ export interface CallOptions {
19
+ signal?: AbortSignal;
20
+ headers?: HeadersMap;
21
+ }
22
+ export interface Response {
23
+ success: boolean;
24
+ headers: HeadersMap;
25
+ data: OutputSchema;
26
+ }
27
+ export declare class InvalidRequestError extends XRPCError {
28
+ constructor(src: XRPCError);
29
+ }
30
+ export declare class RecordNotFoundError extends XRPCError {
31
+ constructor(src: XRPCError);
32
+ }
33
+ export declare class AuthenticationRequiredError extends XRPCError {
34
+ constructor(src: XRPCError);
35
+ }
36
+ 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.permissioned.getRecord';
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 RecordNotFoundError extends XRPCError {
15
+ constructor(src) {
16
+ super(src.status, src.error, src.message, src.headers, { cause: src });
17
+ }
18
+ }
19
+ export class AuthenticationRequiredError 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 === 'RecordNotFound')
29
+ return new RecordNotFoundError(e);
30
+ if (e.error === 'AuthenticationRequired')
31
+ return new AuthenticationRequiredError(e);
32
+ }
33
+ return e;
34
+ }
@@ -0,0 +1,71 @@
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 $Typed } from '../../../../../util.js';
7
+ export type QueryParams = {
8
+ /** Return receipts with seq greater than this. Omitted means from the start. */
9
+ cursor?: number;
10
+ limit?: number;
11
+ /** Only this owner's record receipts the caller may read (no grant receipts): the backfill a 'granted' receipt asks for. An owner with nothing the caller may read returns an empty page, exactly like an owner with no records. The backfill holds the owner's records as they are now, plus, in its source space, what changed after the latest receipt of a share that admits the caller now: never a version superseded, or a tombstone written, before that. Outside the source space it carries no tombstones. */
12
+ did?: string;
13
+ };
14
+ export type InputSchema = undefined;
15
+ export interface OutputSchema {
16
+ changes: ($Typed<RecordChange> | $Typed<GrantChange>)[];
17
+ /** The seq of the last receipt returned. */
18
+ cursor: number;
19
+ }
20
+ export interface CallOptions {
21
+ signal?: AbortSignal;
22
+ headers?: HeadersMap;
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 AuthenticationRequiredError extends XRPCError {
33
+ constructor(src: XRPCError);
34
+ }
35
+ export declare function toKnownErr(e: any): any;
36
+ /** A write or delete in an owner's repo. A delete's receipt is its tombstone. */
37
+ export interface RecordChange {
38
+ $type?: 'pub.techne.draft.permissioned.listChanges#recordChange';
39
+ /** Global order, strictly increasing in commit order. */
40
+ seq: number;
41
+ /** The owner (repo) DID. */
42
+ did: string;
43
+ collection: string;
44
+ rkey: string;
45
+ /** The owner repo's revision at this change. */
46
+ rev: string;
47
+ /** What happened. */
48
+ op: 'upsert' | 'delete';
49
+ /** The version written. Absent on a delete. */
50
+ cid?: string;
51
+ /** The record body, present when this receipt's cid equals the record's current cid. */
52
+ value?: {
53
+ [_ in string]: unknown;
54
+ };
55
+ /** The space the record counts in (for a delete: counted in when it was deleted). Absent when it counts in none. */
56
+ space?: string;
57
+ }
58
+ export declare function isRecordChange<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.permissioned.listChanges", "recordChange">;
59
+ export declare function validateRecordChange<V>(v: V): ValidationResult<RecordChange & V>;
60
+ /** A change to whether the caller may read one owner's source space (pub.techne.draft.space.source), written after the `share` write or delete, or the account deletion, that caused it. Like every revocation, a revoke is a request to a cooperating reader; copies it already holds cannot be recalled. */
61
+ export interface GrantChange {
62
+ $type?: 'pub.techne.draft.permissioned.listChanges#grantChange';
63
+ /** Global order, shared with the record receipts. */
64
+ seq: number;
65
+ /** The owner whose source space the caller gained or lost. */
66
+ did: string;
67
+ /** granted: the owner wrote its first share naming the caller; backfill the owner from the start. revoke-read: no share in the owner's source space names the caller any longer (the last one naming it deleted, rewritten, or moved out of the space, unchanged included), or the owner's account is being deleted; drop its copies and retract what it made from them. */
68
+ op: 'granted' | 'revoke-read';
69
+ }
70
+ export declare function isGrantChange<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.permissioned.listChanges", "grantChange">;
71
+ export declare function validateGrantChange<V>(v: V): ValidationResult<GrantChange & 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.permissioned.listChanges';
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 AuthenticationRequiredError 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 === 'InvalidRequest')
22
+ return new InvalidRequestError(e);
23
+ if (e.error === 'AuthenticationRequired')
24
+ return new AuthenticationRequiredError(e);
25
+ }
26
+ return e;
27
+ }
28
+ const hashRecordChange = 'recordChange';
29
+ export function isRecordChange(v) {
30
+ return is$typed(v, id, hashRecordChange);
31
+ }
32
+ export function validateRecordChange(v) {
33
+ return validate(v, id, hashRecordChange);
34
+ }
35
+ const hashGrantChange = 'grantChange';
36
+ export function isGrantChange(v) {
37
+ return is$typed(v, id, hashGrantChange);
38
+ }
39
+ export function validateGrantChange(v) {
40
+ return validate(v, id, hashGrantChange);
41
+ }
@@ -0,0 +1,53 @@
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
+ /** The owner whose records to list. */
8
+ repo: string;
9
+ collection: string;
10
+ /** Only the records counting in this space (a source space is named as a write names it). Omitted: every record the caller may read, in whatever space, and the caller's own in none. */
11
+ space?: string;
12
+ /** The cursor of the previous page, opaque: pass it back as it came. Omitted means from the start. */
13
+ cursor?: string;
14
+ limit?: number;
15
+ };
16
+ export type InputSchema = undefined;
17
+ export interface OutputSchema {
18
+ /** Opaque: pass it back as cursor for the next page. Absent on the last page. A page carries at most limit records, and stops early (it always has at least one) before the record that would take its bodies past 4 MiB; page on with the cursor until it is absent. */
19
+ cursor?: string;
20
+ /** In ascending record key order. */
21
+ records: Record[];
22
+ }
23
+ export interface CallOptions {
24
+ signal?: AbortSignal;
25
+ headers?: HeadersMap;
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 AuthenticationRequiredError extends XRPCError {
36
+ constructor(src: XRPCError);
37
+ }
38
+ export declare function toKnownErr(e: any): any;
39
+ /** One current record, as getRecord answers it, and the space it counts in. */
40
+ export interface Record {
41
+ $type?: 'pub.techne.draft.permissioned.listRecords#record';
42
+ uri: string;
43
+ cid: string;
44
+ /** The repo revision of the version now current. */
45
+ rev: string;
46
+ value: {
47
+ [_ in string]: unknown;
48
+ };
49
+ /** The space the record counts in now. Absent when it counts in none (only its owner reads it). */
50
+ space?: string;
51
+ }
52
+ export declare function isRecord<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.permissioned.listRecords", "record">;
53
+ export declare function validateRecord<V>(v: V): ValidationResult<Record & 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.permissioned.listRecords';
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 AuthenticationRequiredError 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 === 'InvalidRequest')
22
+ return new InvalidRequestError(e);
23
+ if (e.error === 'AuthenticationRequired')
24
+ return new AuthenticationRequiredError(e);
25
+ }
26
+ return e;
27
+ }
28
+ const hashRecord = 'record';
29
+ export function isRecord(v) {
30
+ return is$typed(v, id, hashRecord);
31
+ }
32
+ export function validateRecord(v) {
33
+ return validate(v, id, hashRecord);
34
+ }
@@ -0,0 +1,70 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ export type QueryParams = {};
6
+ export interface InputSchema {
7
+ /** The owner's DID. Must equal the JWT's iss. */
8
+ repo: string;
9
+ collection: string;
10
+ /** The record key. By convention a pub.techne.draft.description's rkey is sidecar_rkey(subject.uri) (one description per subject) and a pub.techne.draft.share's is a TID. */
11
+ rkey: string;
12
+ /** The record body. Its `$type` must equal `collection`; a collection with a published lexicon must satisfy it. */
13
+ record: {
14
+ [_ in string]: unknown;
15
+ };
16
+ /** Write only if the record's current CID is this one. A missing record never matches. */
17
+ swapCid?: string;
18
+ /** The space the record is for: at://{authority}/{spaceType}/{skey} (for a source's own records, at://{repo}/pub.techne.draft.space.source/self). Absent: the record is for no space, and only its writer reads it. */
19
+ space?: string;
20
+ }
21
+ export interface OutputSchema {
22
+ uri: string;
23
+ /** The DAG-CBOR CID of the record, the same CID a PDS would compute. */
24
+ cid: string;
25
+ /** The repo revision of the version now current. */
26
+ rev: string;
27
+ /** The DIDs the `share`s placed in the space the record counts in name (its authority left out), when the caller may read that space; empty otherwise. For a source space this is its whole audience beside the owner (as getGrants). */
28
+ read: string[];
29
+ /** The space the record counts in now. Absent when it counts in none (no space was named, or the space's write policy does not admit the writer). */
30
+ space?: string;
31
+ }
32
+ export interface CallOptions {
33
+ signal?: AbortSignal;
34
+ headers?: HeadersMap;
35
+ qp?: QueryParams;
36
+ encoding?: 'application/json';
37
+ }
38
+ export interface Response {
39
+ success: boolean;
40
+ headers: HeadersMap;
41
+ data: OutputSchema;
42
+ }
43
+ export declare class InvalidRequestError extends XRPCError {
44
+ constructor(src: XRPCError);
45
+ }
46
+ export declare class ForbiddenError extends XRPCError {
47
+ constructor(src: XRPCError);
48
+ }
49
+ export declare class AccountDeletingError extends XRPCError {
50
+ constructor(src: XRPCError);
51
+ }
52
+ export declare class InvalidSwapError extends XRPCError {
53
+ constructor(src: XRPCError);
54
+ }
55
+ export declare class AuthenticationRequiredError extends XRPCError {
56
+ constructor(src: XRPCError);
57
+ }
58
+ export declare class ConflictError extends XRPCError {
59
+ constructor(src: XRPCError);
60
+ }
61
+ export declare class IdentityConflictError extends XRPCError {
62
+ constructor(src: XRPCError);
63
+ }
64
+ export declare class DuplicatePhoneError extends XRPCError {
65
+ constructor(src: XRPCError);
66
+ }
67
+ export declare class RateLimitExceededError extends XRPCError {
68
+ constructor(src: XRPCError);
69
+ }
70
+ export declare function toKnownErr(e: any): any;