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
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Techne Foundation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,86 @@
1
- # Temporary Holding Version
1
+ # techne-sdk
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ TechneSDK for apps on the Techne platform: sign in, `put`, query, `useEvent` and the read-time check.
4
+
5
+ - **npm:** one package, `techne-sdk`, with subpaths.
6
+ - **Rust:** the crate `techne-sdk` (`crates/techne-sdk`). It holds the logic that must give the platform's answers exactly: the check, the version ranking (`eventState`) and `put`'s private-first, public-last plan. The npm package runs the same crate as WebAssembly, or as wasm2js on hosts without WebAssembly (Hermes). Opt-in features add the atproto plumbing services share (no platform crate either): `crypto` for service-auth JWTs, signed labels, record proofs and service-account passwords, and `net` for DID resolution, verified record fetches and PDS password sessions.
7
+
8
+ The SDK depends on two things only: the published lexicons (the `lexicons` repo at a tag) and the platform's published API. It contains no platform code.
9
+
10
+ ## Install
11
+
12
+ ```sh
13
+ npm i techne-sdk # react >= 19 is an optional peer, needed only for techne-sdk/react
14
+ ```
15
+
16
+ Every import goes through the package's `exports`, so the resolver has to read them:
17
+
18
+ - TypeScript: `moduleResolution` `node16`, `nodenext` or `bundler`. Under the old `node` (node10) mode the subpath types do not resolve.
19
+ - React Native: Metro with package exports on (`unstable_enablePackageExports`, the default from Expo SDK 53). `techne-sdk/wasm` loads the check through `techne-sdk/wasm/load`, whose `react-native` condition picks the wasm2js build (Hermes has no WebAssembly); that file is ESM that calls Metro's `require`.
20
+
21
+ | Import | What it holds |
22
+ |---|---|
23
+ | `techne-sdk` (also `techne-sdk/generated`) | the generated XRPC client (`AtpBaseClient`) and every lexicon type |
24
+ | `techne-sdk/lexicons` | the generated lexicon dictionary (`schemaDict`, `schemas`, `lexicons`, `ids`): every lexicon document the client was built from, for reading descriptions at run time (large; keep it server side) |
25
+ | `techne-sdk/types/<nsid path>` | one lexicon's types, e.g. `techne-sdk/types/social/scenius/getContactInvite` |
26
+ | `techne-sdk/react` | `useEvent(uri)`: one commons event or place as its versions, with the check's verdict |
27
+ | `techne-sdk/versions` | the same state without React: `eventState`, `verifyAnswer`, version labels |
28
+ | `techne-sdk/connect` | `connect(session, platform)` / `connectHosted(did, fetchHandler)`: the clients over one session |
29
+ | `techne-sdk/put` | `put(techne, records, { deletes })`: the one write, deletes included |
30
+ | `techne-sdk/query` | the platform's generic queries: `listRecords`, `getRecords`, hosts |
31
+ | `techne-sdk/links` | link tokens: create, redeem, check, revoke |
32
+ | `techne-sdk/wasm` | the check itself: `validate`, `decide`, `verify` |
33
+ | `techne-sdk/catalog` | the browsable lexicon catalog |
34
+ | `techne-sdk/nsid`, `techne-sdk/nsid.json` | every NSID as a constant (`NSID`, `METHOD`) |
35
+
36
+ Datetime fields are plain strings: send `Date.prototype.toISOString()` (UTC, trailing `Z`).
37
+
38
+ Reading one event (the platform's `getVersions` is public, so an anonymous client will do):
39
+
40
+ ```tsx
41
+ import { AtpBaseClient } from 'techne-sdk'
42
+ import { useEvent } from 'techne-sdk/react'
43
+
44
+ const platform = new AtpBaseClient({ service: 'https://<platform host>' })
45
+ const load = async (uri: string) => (await platform.pub.techne.draft.commons.getVersions({ uri })).data
46
+
47
+ function Event({ uri }: { uri: string }) {
48
+ const { loading, error, fields } = useEvent(uri, { load })
49
+ if (loading) return <p>Loading</p>
50
+ if (error) return <p>Could not load it</p>
51
+ return <h1>{String(fields?.name?.value ?? '')}</h1>
52
+ }
53
+ ```
54
+
55
+ Pass `{ claims }` too, and `verification` holds the check's answer for every record (valid, signer, chain verified).
56
+
57
+ ## Layout
58
+
59
+ | Path | What |
60
+ |---|---|
61
+ | `src/` | the TypeScript package. `src/generated/`, `src/catalog/catalog.gen.ts` and `src/wasm/*.gen.*` are generated and committed |
62
+ | `crates/techne-sdk/` | the Rust crate, with the shared fixtures (`fixtures/cases.json`) both languages must answer identically |
63
+ | `inputs/` | the codegen inputs, copied by `scripts/inputs-sync.mjs` and pinned in `inputs.pin.json`: `inputs/lexicons/` (the lexicons repo at `lexicons.tag`) and `inputs/platform-api/` (the platform's routed method lexicons, the atproto methods it serves and its NSID rename map, at `platformApi.rev`) |
64
+ | `lexicons-base/` | standard atproto repo-op lexicons the generated client needs |
65
+ | `dev-pds/` | a real atproto PDS and PLC in one Node process, for end-to-end runs against a platform |
66
+ | `scripts/` | codegen (`gen.sh`), the WebAssembly build (`build-wasm.sh`), the package build (`build.mjs`), the gate |
67
+
68
+ ## Changing it
69
+
70
+ - **A lexicon changed:** tag the lexicons repo. Set `lexicons.tag` and `lexicons.commit` in `inputs.pin.json` and the `techne-lexicon-check` tag in `Cargo.toml`, then run `cargo update -p techne-lexicon-check` and `node scripts/inputs-sync.mjs --lexicons <lexicons checkout> --platform <platform checkout>`. Then run `npm run codegen` and commit.
71
+ - **The platform's API changed:** set `platformApi.rev` (a platform tag for releases), then run the same sync and codegen.
72
+ - **The Rust logic changed:** edit `crates/techne-sdk` and run `npm run codegen` (it rebuilds the WebAssembly). The fixtures must still agree.
73
+
74
+ `npm run codegen` needs the pinned Rust toolchain (`rust-toolchain.toml`) with the `wasm32-unknown-unknown` target, and `npx` for binaryen. The build is reproducible, so the gate can diff it against the committed one.
75
+
76
+ ## The gate
77
+
78
+ ```sh
79
+ bash scripts/gate.sh # inputs, codegen (no drift), typecheck, test, package, rust
80
+ ```
81
+
82
+ `package` builds `dist/`, then loads every subpath through `exports` in plain Node and runs the fixtures through the built WebAssembly and wasm2js modules. It also checks the `npm pack` file list with a dry run. `rust` runs the same fixtures through the crate.
83
+
84
+ ## Releasing
85
+
86
+ See [RELEASING.md](RELEASING.md).