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,143 @@
1
+ import type * as R0 from './types/community/lexicon/calendar/event.js';
2
+ import type * as R1 from './types/community/lexicon/calendar/rsvp.js';
3
+ import type * as R2 from './types/pub/techne/draft/accessRule.js';
4
+ import type * as R3 from './types/pub/techne/draft/accountLink.js';
5
+ import type * as R4 from './types/pub/techne/draft/actor/profile.js';
6
+ import type * as R5 from './types/pub/techne/draft/appAccess.js';
7
+ import type * as R6 from './types/pub/techne/draft/appAccessRequest.js';
8
+ import type * as R7 from './types/pub/techne/draft/appConfig.js';
9
+ import type * as R8 from './types/pub/techne/draft/approval.js';
10
+ import type * as R9 from './types/pub/techne/draft/assessment.js';
11
+ import type * as R10 from './types/pub/techne/draft/attentionPrefs.js';
12
+ import type * as R11 from './types/pub/techne/draft/beacon.js';
13
+ import type * as R12 from './types/pub/techne/draft/beaconLists.js';
14
+ import type * as R13 from './types/pub/techne/draft/beaconSpot.js';
15
+ import type * as R14 from './types/pub/techne/draft/block.js';
16
+ import type * as R15 from './types/pub/techne/draft/channelVerification.js';
17
+ import type * as R16 from './types/pub/techne/draft/circleBeacon.js';
18
+ import type * as R17 from './types/pub/techne/draft/collective.js';
19
+ import type * as R18 from './types/pub/techne/draft/connection.js';
20
+ import type * as R19 from './types/pub/techne/draft/contact.js';
21
+ import type * as R20 from './types/pub/techne/draft/contactChannel.js';
22
+ import type * as R21 from './types/pub/techne/draft/contactList.js';
23
+ import type * as R22 from './types/pub/techne/draft/containedIn.js';
24
+ import type * as R23 from './types/pub/techne/draft/credential.js';
25
+ import type * as R24 from './types/pub/techne/draft/credentialRevocation.js';
26
+ import type * as R25 from './types/pub/techne/draft/derivation.js';
27
+ import type * as R26 from './types/pub/techne/draft/description.js';
28
+ import type * as R27 from './types/pub/techne/draft/distinctFrom.js';
29
+ import type * as R28 from './types/pub/techne/draft/evaluation.js';
30
+ import type * as R29 from './types/pub/techne/draft/event/config.js';
31
+ import type * as R30 from './types/pub/techne/draft/event/detail.js';
32
+ import type * as R31 from './types/pub/techne/draft/event/listing.js';
33
+ import type * as R32 from './types/pub/techne/draft/feed/recipe.js';
34
+ import type * as R33 from './types/pub/techne/draft/geo.js';
35
+ import type * as R34 from './types/pub/techne/draft/heldAt.js';
36
+ import type * as R35 from './types/pub/techne/draft/identity/linkRedemption.js';
37
+ import type * as R36 from './types/pub/techne/draft/interest.js';
38
+ import type * as R37 from './types/pub/techne/draft/introProposal.js';
39
+ import type * as R38 from './types/pub/techne/draft/invite.js';
40
+ import type * as R39 from './types/pub/techne/draft/market/ask.js';
41
+ import type * as R40 from './types/pub/techne/draft/market/offer.js';
42
+ import type * as R41 from './types/pub/techne/draft/membership.js';
43
+ import type * as R42 from './types/pub/techne/draft/notificationState.js';
44
+ import type * as R43 from './types/pub/techne/draft/operator.js';
45
+ import type * as R44 from './types/pub/techne/draft/org.js';
46
+ import type * as R45 from './types/pub/techne/draft/passage.js';
47
+ import type * as R46 from './types/pub/techne/draft/pendingBeaconSpot.js';
48
+ import type * as R47 from './types/pub/techne/draft/place.js';
49
+ import type * as R48 from './types/pub/techne/draft/post.js';
50
+ import type * as R49 from './types/pub/techne/draft/presence.js';
51
+ import type * as R50 from './types/pub/techne/draft/profile.js';
52
+ import type * as R51 from './types/pub/techne/draft/provenance.js';
53
+ import type * as R52 from './types/pub/techne/draft/publisher.js';
54
+ import type * as R53 from './types/pub/techne/draft/questionSet.js';
55
+ import type * as R54 from './types/pub/techne/draft/receipt.js';
56
+ import type * as R55 from './types/pub/techne/draft/reflection.js';
57
+ import type * as R56 from './types/pub/techne/draft/retirement.js';
58
+ import type * as R57 from './types/pub/techne/draft/rsvpNote.js';
59
+ import type * as R58 from './types/pub/techne/draft/sameAs.js';
60
+ import type * as R59 from './types/pub/techne/draft/scraper/cursor.js';
61
+ import type * as R60 from './types/pub/techne/draft/scraper/raw.js';
62
+ import type * as R61 from './types/pub/techne/draft/share.js';
63
+ import type * as R62 from './types/pub/techne/draft/source.js';
64
+ import type * as R63 from './types/pub/techne/draft/sourceAttribution.js';
65
+ import type * as R64 from './types/pub/techne/draft/sourceRef.js';
66
+ import type * as R65 from './types/pub/techne/draft/subjectPrefs.js';
67
+ import type * as R66 from './types/pub/techne/draft/verdict.js';
68
+ import type * as R67 from './types/pub/techne/draft/verification.js';
69
+ import type * as R68 from './types/pub/techne/draft/weeklyCheckIn.js';
70
+ /** Every record type the lexicons define, by collection. */
71
+ export interface Records {
72
+ 'community.lexicon.calendar.event': R0.Record;
73
+ 'community.lexicon.calendar.rsvp': R1.Record;
74
+ 'pub.techne.draft.accessRule': R2.Record;
75
+ 'pub.techne.draft.accountLink': R3.Record;
76
+ 'pub.techne.draft.actor.profile': R4.Record;
77
+ 'pub.techne.draft.appAccess': R5.Record;
78
+ 'pub.techne.draft.appAccessRequest': R6.Record;
79
+ 'pub.techne.draft.appConfig': R7.Record;
80
+ 'pub.techne.draft.approval': R8.Record;
81
+ 'pub.techne.draft.assessment': R9.Record;
82
+ 'pub.techne.draft.attentionPrefs': R10.Record;
83
+ 'pub.techne.draft.beacon': R11.Record;
84
+ 'pub.techne.draft.beaconLists': R12.Record;
85
+ 'pub.techne.draft.beaconSpot': R13.Record;
86
+ 'pub.techne.draft.block': R14.Record;
87
+ 'pub.techne.draft.channelVerification': R15.Record;
88
+ 'pub.techne.draft.circleBeacon': R16.Record;
89
+ 'pub.techne.draft.collective': R17.Record;
90
+ 'pub.techne.draft.connection': R18.Record;
91
+ 'pub.techne.draft.contact': R19.Record;
92
+ 'pub.techne.draft.contactChannel': R20.Record;
93
+ 'pub.techne.draft.contactList': R21.Record;
94
+ 'pub.techne.draft.containedIn': R22.Record;
95
+ 'pub.techne.draft.credential': R23.Record;
96
+ 'pub.techne.draft.credentialRevocation': R24.Record;
97
+ 'pub.techne.draft.derivation': R25.Record;
98
+ 'pub.techne.draft.description': R26.Record;
99
+ 'pub.techne.draft.distinctFrom': R27.Record;
100
+ 'pub.techne.draft.evaluation': R28.Record;
101
+ 'pub.techne.draft.event.config': R29.Record;
102
+ 'pub.techne.draft.event.detail': R30.Record;
103
+ 'pub.techne.draft.event.listing': R31.Record;
104
+ 'pub.techne.draft.feed.recipe': R32.Record;
105
+ 'pub.techne.draft.geo': R33.Record;
106
+ 'pub.techne.draft.heldAt': R34.Record;
107
+ 'pub.techne.draft.identity.linkRedemption': R35.Record;
108
+ 'pub.techne.draft.interest': R36.Record;
109
+ 'pub.techne.draft.introProposal': R37.Record;
110
+ 'pub.techne.draft.invite': R38.Record;
111
+ 'pub.techne.draft.market.ask': R39.Record;
112
+ 'pub.techne.draft.market.offer': R40.Record;
113
+ 'pub.techne.draft.membership': R41.Record;
114
+ 'pub.techne.draft.notificationState': R42.Record;
115
+ 'pub.techne.draft.operator': R43.Record;
116
+ 'pub.techne.draft.org': R44.Record;
117
+ 'pub.techne.draft.passage': R45.Record;
118
+ 'pub.techne.draft.pendingBeaconSpot': R46.Record;
119
+ 'pub.techne.draft.place': R47.Record;
120
+ 'pub.techne.draft.post': R48.Record;
121
+ 'pub.techne.draft.presence': R49.Record;
122
+ 'pub.techne.draft.profile': R50.Record;
123
+ 'pub.techne.draft.provenance': R51.Record;
124
+ 'pub.techne.draft.publisher': R52.Record;
125
+ 'pub.techne.draft.questionSet': R53.Record;
126
+ 'pub.techne.draft.receipt': R54.Record;
127
+ 'pub.techne.draft.reflection': R55.Record;
128
+ 'pub.techne.draft.retirement': R56.Record;
129
+ 'pub.techne.draft.rsvpNote': R57.Record;
130
+ 'pub.techne.draft.sameAs': R58.Record;
131
+ 'pub.techne.draft.scraper.cursor': R59.Record;
132
+ 'pub.techne.draft.scraper.raw': R60.Record;
133
+ 'pub.techne.draft.share': R61.Record;
134
+ 'pub.techne.draft.source': R62.Record;
135
+ 'pub.techne.draft.sourceAttribution': R63.Record;
136
+ 'pub.techne.draft.sourceRef': R64.Record;
137
+ 'pub.techne.draft.subjectPrefs': R65.Record;
138
+ 'pub.techne.draft.verdict': R66.Record;
139
+ 'pub.techne.draft.verification': R67.Record;
140
+ 'pub.techne.draft.weeklyCheckIn': R68.Record;
141
+ }
142
+ /** Any one record the lexicons define (its `$type` says which). */
143
+ export type AnyRecord = Records[keyof Records];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,44 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import { type $Typed } from '../../../../util.js';
6
+ /** Annotation of a sub-string within rich text. */
7
+ export interface Main {
8
+ $type?: 'app.bsky.richtext.facet';
9
+ index: ByteSlice;
10
+ features: ($Typed<Mention> | $Typed<Link> | $Typed<Tag> | {
11
+ $type: string;
12
+ })[];
13
+ }
14
+ export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.richtext.facet", "main">;
15
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
16
+ /** Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID. */
17
+ export interface Mention {
18
+ $type?: 'app.bsky.richtext.facet#mention';
19
+ did: string;
20
+ }
21
+ export declare function isMention<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.richtext.facet", "mention">;
22
+ export declare function validateMention<V>(v: V): ValidationResult<Mention & V>;
23
+ /** Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL. */
24
+ export interface Link {
25
+ $type?: 'app.bsky.richtext.facet#link';
26
+ uri: string;
27
+ }
28
+ export declare function isLink<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.richtext.facet", "link">;
29
+ export declare function validateLink<V>(v: V): ValidationResult<Link & V>;
30
+ /** Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags'). */
31
+ export interface Tag {
32
+ $type?: 'app.bsky.richtext.facet#tag';
33
+ tag: string;
34
+ }
35
+ export declare function isTag<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.richtext.facet", "tag">;
36
+ export declare function validateTag<V>(v: V): ValidationResult<Tag & V>;
37
+ /** Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets. */
38
+ export interface ByteSlice {
39
+ $type?: 'app.bsky.richtext.facet#byteSlice';
40
+ byteStart: number;
41
+ byteEnd: number;
42
+ }
43
+ export declare function isByteSlice<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.richtext.facet", "byteSlice">;
44
+ export declare function validateByteSlice<V>(v: V): ValidationResult<ByteSlice & V>;
@@ -0,0 +1,39 @@
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 = 'app.bsky.richtext.facet';
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);
11
+ }
12
+ const hashMention = 'mention';
13
+ export function isMention(v) {
14
+ return is$typed(v, id, hashMention);
15
+ }
16
+ export function validateMention(v) {
17
+ return validate(v, id, hashMention);
18
+ }
19
+ const hashLink = 'link';
20
+ export function isLink(v) {
21
+ return is$typed(v, id, hashLink);
22
+ }
23
+ export function validateLink(v) {
24
+ return validate(v, id, hashLink);
25
+ }
26
+ const hashTag = 'tag';
27
+ export function isTag(v) {
28
+ return is$typed(v, id, hashTag);
29
+ }
30
+ export function validateTag(v) {
31
+ return validate(v, id, hashTag);
32
+ }
33
+ const hashByteSlice = 'byteSlice';
34
+ export function isByteSlice(v) {
35
+ return is$typed(v, id, hashByteSlice);
36
+ }
37
+ export function validateByteSlice(v) {
38
+ return validate(v, id, hashByteSlice);
39
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ export interface RepoRef {
6
+ $type?: 'com.atproto.admin.defs#repoRef';
7
+ did: string;
8
+ }
9
+ export declare function isRepoRef<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.admin.defs", "repoRef">;
10
+ export declare function validateRepoRef<V>(v: V): ValidationResult<RepoRef & V>;
@@ -0,0 +1,11 @@
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 = 'com.atproto.admin.defs';
5
+ const hashRepoRef = 'repoRef';
6
+ export function isRepoRef(v) {
7
+ return is$typed(v, id, hashRepoRef);
8
+ }
9
+ export function validateRepoRef(v) {
10
+ return validate(v, id, hashRepoRef);
11
+ }
@@ -0,0 +1,73 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ /** Metadata tag on an atproto resource (eg, repo or record). */
6
+ export interface Label {
7
+ $type?: 'com.atproto.label.defs#label';
8
+ /** The AT Protocol version of the label object. */
9
+ ver?: number;
10
+ /** DID of the actor who created this label. */
11
+ src: string;
12
+ /** AT URI of the record, repository (account), or other resource that this label applies to. */
13
+ uri: string;
14
+ /** Optionally, CID specifying the specific version of 'uri' resource this label applies to. */
15
+ cid?: string;
16
+ /** The short string name of the value or type of this label. */
17
+ val: string;
18
+ /** If true, this is a negation label, overwriting a previous label. */
19
+ neg?: boolean;
20
+ /** Timestamp when this label was created. */
21
+ cts: string;
22
+ /** Timestamp at which this label expires (no longer applies). */
23
+ exp?: string;
24
+ /** Signature of dag-cbor encoded label. */
25
+ sig?: Uint8Array;
26
+ }
27
+ export declare function isLabel<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.label.defs", "label">;
28
+ export declare function validateLabel<V>(v: V): ValidationResult<Label & V>;
29
+ /** Metadata tags on an atproto record, published by the author within the record. */
30
+ export interface SelfLabels {
31
+ $type?: 'com.atproto.label.defs#selfLabels';
32
+ values: SelfLabel[];
33
+ }
34
+ export declare function isSelfLabels<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.label.defs", "selfLabels">;
35
+ export declare function validateSelfLabels<V>(v: V): ValidationResult<SelfLabels & V>;
36
+ /** Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel. */
37
+ export interface SelfLabel {
38
+ $type?: 'com.atproto.label.defs#selfLabel';
39
+ /** The short string name of the value or type of this label. */
40
+ val: string;
41
+ }
42
+ export declare function isSelfLabel<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.label.defs", "selfLabel">;
43
+ export declare function validateSelfLabel<V>(v: V): ValidationResult<SelfLabel & V>;
44
+ /** Declares a label value and its expected interpretations and behaviors. */
45
+ export interface LabelValueDefinition {
46
+ $type?: 'com.atproto.label.defs#labelValueDefinition';
47
+ /** The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). */
48
+ identifier: string;
49
+ /** How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing. */
50
+ severity: 'inform' | 'alert' | 'none' | (string & {});
51
+ /** What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing. */
52
+ blurs: 'content' | 'media' | 'none' | (string & {});
53
+ /** The default setting for this label. */
54
+ defaultSetting: 'ignore' | 'warn' | 'hide' | (string & {});
55
+ /** Does the user need to have adult content enabled in order to configure this label? */
56
+ adultOnly?: boolean;
57
+ locales: LabelValueDefinitionStrings[];
58
+ }
59
+ export declare function isLabelValueDefinition<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.label.defs", "labelValueDefinition">;
60
+ export declare function validateLabelValueDefinition<V>(v: V): ValidationResult<LabelValueDefinition & V>;
61
+ /** Strings which describe the label in the UI, localized into a specific language. */
62
+ export interface LabelValueDefinitionStrings {
63
+ $type?: 'com.atproto.label.defs#labelValueDefinitionStrings';
64
+ /** The code of the language these strings are written in. */
65
+ lang: string;
66
+ /** A short human-readable name for the label. */
67
+ name: string;
68
+ /** A longer description of what the label means and why it might be applied. */
69
+ description: string;
70
+ }
71
+ export declare function isLabelValueDefinitionStrings<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.label.defs", "labelValueDefinitionStrings">;
72
+ export declare function validateLabelValueDefinitionStrings<V>(v: V): ValidationResult<LabelValueDefinitionStrings & V>;
73
+ export type LabelValue = '!hide' | '!warn' | '!no-unauthenticated' | 'porn' | 'sexual' | 'nudity' | 'graphic-media' | 'bot' | (string & {});
@@ -0,0 +1,39 @@
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 = 'com.atproto.label.defs';
5
+ const hashLabel = 'label';
6
+ export function isLabel(v) {
7
+ return is$typed(v, id, hashLabel);
8
+ }
9
+ export function validateLabel(v) {
10
+ return validate(v, id, hashLabel);
11
+ }
12
+ const hashSelfLabels = 'selfLabels';
13
+ export function isSelfLabels(v) {
14
+ return is$typed(v, id, hashSelfLabels);
15
+ }
16
+ export function validateSelfLabels(v) {
17
+ return validate(v, id, hashSelfLabels);
18
+ }
19
+ const hashSelfLabel = 'selfLabel';
20
+ export function isSelfLabel(v) {
21
+ return is$typed(v, id, hashSelfLabel);
22
+ }
23
+ export function validateSelfLabel(v) {
24
+ return validate(v, id, hashSelfLabel);
25
+ }
26
+ const hashLabelValueDefinition = 'labelValueDefinition';
27
+ export function isLabelValueDefinition(v) {
28
+ return is$typed(v, id, hashLabelValueDefinition);
29
+ }
30
+ export function validateLabelValueDefinition(v) {
31
+ return validate(v, id, hashLabelValueDefinition);
32
+ }
33
+ const hashLabelValueDefinitionStrings = 'labelValueDefinitionStrings';
34
+ export function isLabelValueDefinitionStrings(v) {
35
+ return is$typed(v, id, hashLabelValueDefinitionStrings);
36
+ }
37
+ export function validateLabelValueDefinitionStrings(v) {
38
+ return validate(v, id, hashLabelValueDefinitionStrings);
39
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap } from '@atproto/xrpc';
5
+ import { type $Typed } from '../../../../util.js';
6
+ import type * as ComAtprotoModerationDefs from './defs.js';
7
+ import type * as ComAtprotoAdminDefs from '../admin/defs.js';
8
+ import type * as ComAtprotoRepoStrongRef from '../repo/strongRef.js';
9
+ export type QueryParams = {};
10
+ export interface InputSchema {
11
+ reasonType: ComAtprotoModerationDefs.ReasonType;
12
+ /** Additional context about the content and violation. */
13
+ reason?: string;
14
+ subject: $Typed<ComAtprotoAdminDefs.RepoRef> | $Typed<ComAtprotoRepoStrongRef.Main> | {
15
+ $type: string;
16
+ };
17
+ }
18
+ export interface OutputSchema {
19
+ id: number;
20
+ reasonType: ComAtprotoModerationDefs.ReasonType;
21
+ reason?: string;
22
+ subject: $Typed<ComAtprotoAdminDefs.RepoRef> | $Typed<ComAtprotoRepoStrongRef.Main> | {
23
+ $type: string;
24
+ };
25
+ reportedBy: string;
26
+ createdAt: string;
27
+ }
28
+ export interface CallOptions {
29
+ signal?: AbortSignal;
30
+ headers?: HeadersMap;
31
+ qp?: QueryParams;
32
+ encoding?: 'application/json';
33
+ }
34
+ export interface Response {
35
+ success: boolean;
36
+ headers: HeadersMap;
37
+ data: OutputSchema;
38
+ }
39
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,7 @@
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 = 'com.atproto.moderation.createReport';
5
+ export function toKnownErr(e) {
6
+ return e;
7
+ }
@@ -0,0 +1,15 @@
1
+ export type ReasonType = 'com.atproto.moderation.defs#reasonSpam' | 'com.atproto.moderation.defs#reasonViolation' | 'com.atproto.moderation.defs#reasonMisleading' | 'com.atproto.moderation.defs#reasonSexual' | 'com.atproto.moderation.defs#reasonRude' | 'com.atproto.moderation.defs#reasonOther' | 'com.atproto.moderation.defs#reasonAppeal' | (string & {});
2
+ /** Spam: frequent unwanted promotion, replies, mentions. */
3
+ export declare const REASONSPAM = "com.atproto.moderation.defs#reasonSpam";
4
+ /** Direct violation of server rules, laws, terms of service. */
5
+ export declare const REASONVIOLATION = "com.atproto.moderation.defs#reasonViolation";
6
+ /** Misleading identity, affiliation, or content. */
7
+ export declare const REASONMISLEADING = "com.atproto.moderation.defs#reasonMisleading";
8
+ /** Unwanted or mislabeled sexual content. */
9
+ export declare const REASONSEXUAL = "com.atproto.moderation.defs#reasonSexual";
10
+ /** Rude, harassing, explicit, or otherwise unwelcoming behavior. */
11
+ export declare const REASONRUDE = "com.atproto.moderation.defs#reasonRude";
12
+ /** Reports not falling under another report category. */
13
+ export declare const REASONOTHER = "com.atproto.moderation.defs#reasonOther";
14
+ /** Appeal a previously taken moderation action. */
15
+ export declare const REASONAPPEAL = "com.atproto.moderation.defs#reasonAppeal";
@@ -0,0 +1,18 @@
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 = 'com.atproto.moderation.defs';
5
+ /** Spam: frequent unwanted promotion, replies, mentions. */
6
+ export const REASONSPAM = `${id}#reasonSpam`;
7
+ /** Direct violation of server rules, laws, terms of service. */
8
+ export const REASONVIOLATION = `${id}#reasonViolation`;
9
+ /** Misleading identity, affiliation, or content. */
10
+ export const REASONMISLEADING = `${id}#reasonMisleading`;
11
+ /** Unwanted or mislabeled sexual content. */
12
+ export const REASONSEXUAL = `${id}#reasonSexual`;
13
+ /** Rude, harassing, explicit, or otherwise unwelcoming behavior. */
14
+ export const REASONRUDE = `${id}#reasonRude`;
15
+ /** Reports not falling under another report category. */
16
+ export const REASONOTHER = `${id}#reasonOther`;
17
+ /** Appeal a previously taken moderation action. */
18
+ export const REASONAPPEAL = `${id}#reasonAppeal`;
@@ -0,0 +1,88 @@
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
+ import type * as ComAtprotoRepoDefs from './defs.js';
8
+ export type QueryParams = {};
9
+ export interface InputSchema {
10
+ /** The handle or DID of the repo (aka, current account). */
11
+ repo: string;
12
+ /** Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons. */
13
+ validate?: boolean;
14
+ writes: ($Typed<Create> | $Typed<Update> | $Typed<Delete>)[];
15
+ /** If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations. */
16
+ swapCommit?: string;
17
+ }
18
+ export interface OutputSchema {
19
+ commit?: ComAtprotoRepoDefs.CommitMeta;
20
+ results?: ($Typed<CreateResult> | $Typed<UpdateResult> | $Typed<DeleteResult>)[];
21
+ }
22
+ export interface CallOptions {
23
+ signal?: AbortSignal;
24
+ headers?: HeadersMap;
25
+ qp?: QueryParams;
26
+ encoding?: 'application/json';
27
+ }
28
+ export interface Response {
29
+ success: boolean;
30
+ headers: HeadersMap;
31
+ data: OutputSchema;
32
+ }
33
+ export declare class InvalidSwapError extends XRPCError {
34
+ constructor(src: XRPCError);
35
+ }
36
+ export declare function toKnownErr(e: any): any;
37
+ /** Operation which creates a new record. */
38
+ export interface Create {
39
+ $type?: 'com.atproto.repo.applyWrites#create';
40
+ collection: string;
41
+ /** NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. */
42
+ rkey?: string;
43
+ value: {
44
+ [_ in string]: unknown;
45
+ };
46
+ }
47
+ export declare function isCreate<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.repo.applyWrites", "create">;
48
+ export declare function validateCreate<V>(v: V): ValidationResult<Create & V>;
49
+ /** Operation which updates an existing record. */
50
+ export interface Update {
51
+ $type?: 'com.atproto.repo.applyWrites#update';
52
+ collection: string;
53
+ rkey: string;
54
+ value: {
55
+ [_ in string]: unknown;
56
+ };
57
+ }
58
+ export declare function isUpdate<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.repo.applyWrites", "update">;
59
+ export declare function validateUpdate<V>(v: V): ValidationResult<Update & V>;
60
+ /** Operation which deletes an existing record. */
61
+ export interface Delete {
62
+ $type?: 'com.atproto.repo.applyWrites#delete';
63
+ collection: string;
64
+ rkey: string;
65
+ }
66
+ export declare function isDelete<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.repo.applyWrites", "delete">;
67
+ export declare function validateDelete<V>(v: V): ValidationResult<Delete & V>;
68
+ export interface CreateResult {
69
+ $type?: 'com.atproto.repo.applyWrites#createResult';
70
+ uri: string;
71
+ cid: string;
72
+ validationStatus?: 'valid' | 'unknown' | (string & {});
73
+ }
74
+ export declare function isCreateResult<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.repo.applyWrites", "createResult">;
75
+ export declare function validateCreateResult<V>(v: V): ValidationResult<CreateResult & V>;
76
+ export interface UpdateResult {
77
+ $type?: 'com.atproto.repo.applyWrites#updateResult';
78
+ uri: string;
79
+ cid: string;
80
+ validationStatus?: 'valid' | 'unknown' | (string & {});
81
+ }
82
+ export declare function isUpdateResult<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.repo.applyWrites", "updateResult">;
83
+ export declare function validateUpdateResult<V>(v: V): ValidationResult<UpdateResult & V>;
84
+ export interface DeleteResult {
85
+ $type?: 'com.atproto.repo.applyWrites#deleteResult';
86
+ }
87
+ export declare function isDeleteResult<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.repo.applyWrites", "deleteResult">;
88
+ export declare function validateDeleteResult<V>(v: V): ValidationResult<DeleteResult & V>;
@@ -0,0 +1,62 @@
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 = 'com.atproto.repo.applyWrites';
9
+ export class InvalidSwapError 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 === 'InvalidSwap')
17
+ return new InvalidSwapError(e);
18
+ }
19
+ return e;
20
+ }
21
+ const hashCreate = 'create';
22
+ export function isCreate(v) {
23
+ return is$typed(v, id, hashCreate);
24
+ }
25
+ export function validateCreate(v) {
26
+ return validate(v, id, hashCreate);
27
+ }
28
+ const hashUpdate = 'update';
29
+ export function isUpdate(v) {
30
+ return is$typed(v, id, hashUpdate);
31
+ }
32
+ export function validateUpdate(v) {
33
+ return validate(v, id, hashUpdate);
34
+ }
35
+ const hashDelete = 'delete';
36
+ export function isDelete(v) {
37
+ return is$typed(v, id, hashDelete);
38
+ }
39
+ export function validateDelete(v) {
40
+ return validate(v, id, hashDelete);
41
+ }
42
+ const hashCreateResult = 'createResult';
43
+ export function isCreateResult(v) {
44
+ return is$typed(v, id, hashCreateResult);
45
+ }
46
+ export function validateCreateResult(v) {
47
+ return validate(v, id, hashCreateResult);
48
+ }
49
+ const hashUpdateResult = 'updateResult';
50
+ export function isUpdateResult(v) {
51
+ return is$typed(v, id, hashUpdateResult);
52
+ }
53
+ export function validateUpdateResult(v) {
54
+ return validate(v, id, hashUpdateResult);
55
+ }
56
+ const hashDeleteResult = 'deleteResult';
57
+ export function isDeleteResult(v) {
58
+ return is$typed(v, id, hashDeleteResult);
59
+ }
60
+ export function validateDeleteResult(v) {
61
+ return validate(v, id, hashDeleteResult);
62
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ import type * as ComAtprotoRepoDefs from './defs.js';
6
+ export type QueryParams = {};
7
+ export interface InputSchema {
8
+ /** The handle or DID of the repo (aka, current account). */
9
+ repo: string;
10
+ /** The NSID of the record collection. */
11
+ collection: string;
12
+ /** The Record Key. */
13
+ rkey?: string;
14
+ /** Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons. */
15
+ validate?: boolean;
16
+ /** The record itself. Must contain a $type field. */
17
+ record: {
18
+ [_ in string]: unknown;
19
+ };
20
+ /** Compare and swap with the previous commit by CID. */
21
+ swapCommit?: string;
22
+ }
23
+ export interface OutputSchema {
24
+ uri: string;
25
+ cid: string;
26
+ commit?: ComAtprotoRepoDefs.CommitMeta;
27
+ validationStatus?: 'valid' | 'unknown' | (string & {});
28
+ }
29
+ export interface CallOptions {
30
+ signal?: AbortSignal;
31
+ headers?: HeadersMap;
32
+ qp?: QueryParams;
33
+ encoding?: 'application/json';
34
+ }
35
+ export interface Response {
36
+ success: boolean;
37
+ headers: HeadersMap;
38
+ data: OutputSchema;
39
+ }
40
+ export declare class InvalidSwapError extends XRPCError {
41
+ constructor(src: XRPCError);
42
+ }
43
+ export declare function toKnownErr(e: any): any;