@atproto/pds 0.4.64 → 0.4.66

Sign up to get free protection for your applications and to get access to all the features.
Files changed (464) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/account-manager/db/index.d.ts.map +1 -1
  3. package/dist/account-manager/db/migrations/001-init.js +2 -3
  4. package/dist/account-manager/db/migrations/001-init.js.map +1 -1
  5. package/dist/account-manager/db/migrations/002-account-deactivation.js +2 -3
  6. package/dist/account-manager/db/migrations/002-account-deactivation.js.map +1 -1
  7. package/dist/account-manager/db/migrations/003-privileged-app-passwords.js +2 -3
  8. package/dist/account-manager/db/migrations/003-privileged-app-passwords.js.map +1 -1
  9. package/dist/account-manager/db/migrations/004-oauth.js +2 -3
  10. package/dist/account-manager/db/migrations/004-oauth.js.map +1 -1
  11. package/dist/account-manager/helpers/account.d.ts.map +1 -1
  12. package/dist/account-manager/helpers/auth.d.ts +0 -1
  13. package/dist/account-manager/helpers/auth.d.ts.map +1 -1
  14. package/dist/account-manager/helpers/authorization-request.d.ts.map +1 -1
  15. package/dist/account-manager/helpers/device-account.d.ts.map +1 -1
  16. package/dist/account-manager/helpers/device-account.js +3 -3
  17. package/dist/account-manager/helpers/device-account.js.map +1 -1
  18. package/dist/account-manager/helpers/device.d.ts.map +1 -1
  19. package/dist/account-manager/helpers/email-token.d.ts.map +1 -1
  20. package/dist/account-manager/helpers/invite.d.ts.map +1 -1
  21. package/dist/account-manager/helpers/password.d.ts.map +1 -1
  22. package/dist/account-manager/helpers/repo.d.ts.map +1 -1
  23. package/dist/account-manager/helpers/scrypt.d.ts.map +1 -1
  24. package/dist/account-manager/helpers/token.d.ts.map +1 -1
  25. package/dist/account-manager/helpers/used-refresh-token.d.ts.map +1 -1
  26. package/dist/account-manager/index.d.ts +0 -1
  27. package/dist/account-manager/index.d.ts.map +1 -1
  28. package/dist/actor-store/blob/reader.d.ts +0 -1
  29. package/dist/actor-store/blob/reader.d.ts.map +1 -1
  30. package/dist/actor-store/blob/transactor.d.ts +0 -1
  31. package/dist/actor-store/blob/transactor.d.ts.map +1 -1
  32. package/dist/actor-store/db/index.d.ts.map +1 -1
  33. package/dist/actor-store/db/migrations/001-init.js +2 -3
  34. package/dist/actor-store/db/migrations/001-init.js.map +1 -1
  35. package/dist/actor-store/migrate.d.ts.map +1 -1
  36. package/dist/actor-store/record/transactor.d.ts +1 -1
  37. package/dist/actor-store/record/transactor.d.ts.map +1 -1
  38. package/dist/actor-store/repo/sql-repo-reader.d.ts +0 -1
  39. package/dist/actor-store/repo/sql-repo-reader.d.ts.map +1 -1
  40. package/dist/api/app/bsky/actor/getPreferences.js +1 -1
  41. package/dist/api/app/bsky/actor/getPreferences.js.map +1 -1
  42. package/dist/api/app/bsky/actor/getProfile.js +1 -1
  43. package/dist/api/app/bsky/actor/getProfile.js.map +1 -1
  44. package/dist/api/app/bsky/actor/getProfiles.js +1 -1
  45. package/dist/api/app/bsky/actor/getProfiles.js.map +1 -1
  46. package/dist/api/app/bsky/actor/index.js +1 -1
  47. package/dist/api/app/bsky/actor/index.js.map +1 -1
  48. package/dist/api/app/bsky/actor/putPreferences.js +1 -1
  49. package/dist/api/app/bsky/actor/putPreferences.js.map +1 -1
  50. package/dist/api/app/bsky/feed/getActorLikes.js +1 -1
  51. package/dist/api/app/bsky/feed/getActorLikes.js.map +1 -1
  52. package/dist/api/app/bsky/feed/getAuthorFeed.js +1 -1
  53. package/dist/api/app/bsky/feed/getAuthorFeed.js.map +1 -1
  54. package/dist/api/app/bsky/feed/getFeed.js +1 -1
  55. package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
  56. package/dist/api/app/bsky/feed/getPostThread.js +1 -1
  57. package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
  58. package/dist/api/app/bsky/feed/getTimeline.js +1 -1
  59. package/dist/api/app/bsky/feed/getTimeline.js.map +1 -1
  60. package/dist/api/app/bsky/feed/index.js +1 -1
  61. package/dist/api/app/bsky/feed/index.js.map +1 -1
  62. package/dist/api/app/bsky/index.js +1 -1
  63. package/dist/api/app/bsky/index.js.map +1 -1
  64. package/dist/api/app/bsky/notification/index.js +1 -1
  65. package/dist/api/app/bsky/notification/index.js.map +1 -1
  66. package/dist/api/app/bsky/notification/registerPush.js +1 -1
  67. package/dist/api/app/bsky/notification/registerPush.js.map +1 -1
  68. package/dist/api/app/bsky/util/resolver.d.ts.map +1 -1
  69. package/dist/api/com/atproto/admin/deleteAccount.js +1 -1
  70. package/dist/api/com/atproto/admin/deleteAccount.js.map +1 -1
  71. package/dist/api/com/atproto/admin/disableAccountInvites.js +1 -1
  72. package/dist/api/com/atproto/admin/disableAccountInvites.js.map +1 -1
  73. package/dist/api/com/atproto/admin/disableInviteCodes.js +1 -1
  74. package/dist/api/com/atproto/admin/disableInviteCodes.js.map +1 -1
  75. package/dist/api/com/atproto/admin/enableAccountInvites.js +1 -1
  76. package/dist/api/com/atproto/admin/enableAccountInvites.js.map +1 -1
  77. package/dist/api/com/atproto/admin/getAccountInfo.js +1 -1
  78. package/dist/api/com/atproto/admin/getAccountInfo.js.map +1 -1
  79. package/dist/api/com/atproto/admin/getAccountInfos.js +1 -1
  80. package/dist/api/com/atproto/admin/getAccountInfos.js.map +1 -1
  81. package/dist/api/com/atproto/admin/getInviteCodes.js +1 -1
  82. package/dist/api/com/atproto/admin/getInviteCodes.js.map +1 -1
  83. package/dist/api/com/atproto/admin/getSubjectStatus.js +1 -1
  84. package/dist/api/com/atproto/admin/getSubjectStatus.js.map +1 -1
  85. package/dist/api/com/atproto/admin/index.js +1 -1
  86. package/dist/api/com/atproto/admin/index.js.map +1 -1
  87. package/dist/api/com/atproto/admin/sendEmail.js +1 -1
  88. package/dist/api/com/atproto/admin/sendEmail.js.map +1 -1
  89. package/dist/api/com/atproto/admin/updateAccountEmail.js +1 -1
  90. package/dist/api/com/atproto/admin/updateAccountEmail.js.map +1 -1
  91. package/dist/api/com/atproto/admin/updateAccountHandle.js +1 -1
  92. package/dist/api/com/atproto/admin/updateAccountHandle.js.map +1 -1
  93. package/dist/api/com/atproto/admin/updateAccountPassword.js +1 -1
  94. package/dist/api/com/atproto/admin/updateAccountPassword.js.map +1 -1
  95. package/dist/api/com/atproto/admin/updateSubjectStatus.js +1 -1
  96. package/dist/api/com/atproto/admin/updateSubjectStatus.js.map +1 -1
  97. package/dist/api/com/atproto/admin/util.js +2 -3
  98. package/dist/api/com/atproto/admin/util.js.map +1 -1
  99. package/dist/api/com/atproto/identity/getRecommendedDidCredentials.js +1 -1
  100. package/dist/api/com/atproto/identity/getRecommendedDidCredentials.js.map +1 -1
  101. package/dist/api/com/atproto/identity/index.js +1 -1
  102. package/dist/api/com/atproto/identity/index.js.map +1 -1
  103. package/dist/api/com/atproto/identity/requestPlcOperationSignature.js +1 -1
  104. package/dist/api/com/atproto/identity/requestPlcOperationSignature.js.map +1 -1
  105. package/dist/api/com/atproto/identity/resolveHandle.js +1 -1
  106. package/dist/api/com/atproto/identity/resolveHandle.js.map +1 -1
  107. package/dist/api/com/atproto/identity/signPlcOperation.js +1 -1
  108. package/dist/api/com/atproto/identity/signPlcOperation.js.map +1 -1
  109. package/dist/api/com/atproto/identity/submitPlcOperation.js +1 -1
  110. package/dist/api/com/atproto/identity/submitPlcOperation.js.map +1 -1
  111. package/dist/api/com/atproto/identity/updateHandle.js +1 -1
  112. package/dist/api/com/atproto/identity/updateHandle.js.map +1 -1
  113. package/dist/api/com/atproto/index.js +1 -1
  114. package/dist/api/com/atproto/index.js.map +1 -1
  115. package/dist/api/com/atproto/repo/applyWrites.js +1 -1
  116. package/dist/api/com/atproto/repo/applyWrites.js.map +1 -1
  117. package/dist/api/com/atproto/repo/createRecord.js +1 -1
  118. package/dist/api/com/atproto/repo/createRecord.js.map +1 -1
  119. package/dist/api/com/atproto/repo/deleteRecord.js +1 -1
  120. package/dist/api/com/atproto/repo/deleteRecord.js.map +1 -1
  121. package/dist/api/com/atproto/repo/describeRepo.js +1 -1
  122. package/dist/api/com/atproto/repo/describeRepo.js.map +1 -1
  123. package/dist/api/com/atproto/repo/getRecord.js +1 -1
  124. package/dist/api/com/atproto/repo/getRecord.js.map +1 -1
  125. package/dist/api/com/atproto/repo/importRepo.js +1 -1
  126. package/dist/api/com/atproto/repo/importRepo.js.map +1 -1
  127. package/dist/api/com/atproto/repo/index.js +1 -1
  128. package/dist/api/com/atproto/repo/index.js.map +1 -1
  129. package/dist/api/com/atproto/repo/listMissingBlobs.js +1 -1
  130. package/dist/api/com/atproto/repo/listMissingBlobs.js.map +1 -1
  131. package/dist/api/com/atproto/repo/listRecords.js +1 -1
  132. package/dist/api/com/atproto/repo/listRecords.js.map +1 -1
  133. package/dist/api/com/atproto/repo/putRecord.js +1 -1
  134. package/dist/api/com/atproto/repo/putRecord.js.map +1 -1
  135. package/dist/api/com/atproto/repo/uploadBlob.js +1 -1
  136. package/dist/api/com/atproto/repo/uploadBlob.js.map +1 -1
  137. package/dist/api/com/atproto/server/activateAccount.js +1 -1
  138. package/dist/api/com/atproto/server/activateAccount.js.map +1 -1
  139. package/dist/api/com/atproto/server/checkAccountStatus.js +1 -1
  140. package/dist/api/com/atproto/server/checkAccountStatus.js.map +1 -1
  141. package/dist/api/com/atproto/server/confirmEmail.js +1 -1
  142. package/dist/api/com/atproto/server/confirmEmail.js.map +1 -1
  143. package/dist/api/com/atproto/server/createAccount.js +1 -1
  144. package/dist/api/com/atproto/server/createAccount.js.map +1 -1
  145. package/dist/api/com/atproto/server/createAppPassword.js +1 -1
  146. package/dist/api/com/atproto/server/createAppPassword.js.map +1 -1
  147. package/dist/api/com/atproto/server/createInviteCode.js +1 -1
  148. package/dist/api/com/atproto/server/createInviteCode.js.map +1 -1
  149. package/dist/api/com/atproto/server/createInviteCodes.js +1 -1
  150. package/dist/api/com/atproto/server/createInviteCodes.js.map +1 -1
  151. package/dist/api/com/atproto/server/createSession.js +1 -1
  152. package/dist/api/com/atproto/server/createSession.js.map +1 -1
  153. package/dist/api/com/atproto/server/deactivateAccount.js +1 -1
  154. package/dist/api/com/atproto/server/deactivateAccount.js.map +1 -1
  155. package/dist/api/com/atproto/server/deleteAccount.js +1 -1
  156. package/dist/api/com/atproto/server/deleteAccount.js.map +1 -1
  157. package/dist/api/com/atproto/server/deleteSession.js +1 -1
  158. package/dist/api/com/atproto/server/deleteSession.js.map +1 -1
  159. package/dist/api/com/atproto/server/describeServer.js +1 -1
  160. package/dist/api/com/atproto/server/describeServer.js.map +1 -1
  161. package/dist/api/com/atproto/server/getAccountInviteCodes.js +1 -1
  162. package/dist/api/com/atproto/server/getAccountInviteCodes.js.map +1 -1
  163. package/dist/api/com/atproto/server/getServiceAuth.js +1 -1
  164. package/dist/api/com/atproto/server/getServiceAuth.js.map +1 -1
  165. package/dist/api/com/atproto/server/getSession.js +1 -1
  166. package/dist/api/com/atproto/server/getSession.js.map +1 -1
  167. package/dist/api/com/atproto/server/index.js +1 -1
  168. package/dist/api/com/atproto/server/index.js.map +1 -1
  169. package/dist/api/com/atproto/server/listAppPasswords.js +1 -1
  170. package/dist/api/com/atproto/server/listAppPasswords.js.map +1 -1
  171. package/dist/api/com/atproto/server/refreshSession.js +1 -1
  172. package/dist/api/com/atproto/server/refreshSession.js.map +1 -1
  173. package/dist/api/com/atproto/server/requestAccountDelete.js +1 -1
  174. package/dist/api/com/atproto/server/requestAccountDelete.js.map +1 -1
  175. package/dist/api/com/atproto/server/requestEmailConfirmation.js +1 -1
  176. package/dist/api/com/atproto/server/requestEmailConfirmation.js.map +1 -1
  177. package/dist/api/com/atproto/server/requestEmailUpdate.js +1 -1
  178. package/dist/api/com/atproto/server/requestEmailUpdate.js.map +1 -1
  179. package/dist/api/com/atproto/server/requestPasswordReset.js +1 -1
  180. package/dist/api/com/atproto/server/requestPasswordReset.js.map +1 -1
  181. package/dist/api/com/atproto/server/reserveSigningKey.js +1 -1
  182. package/dist/api/com/atproto/server/reserveSigningKey.js.map +1 -1
  183. package/dist/api/com/atproto/server/resetPassword.js +1 -1
  184. package/dist/api/com/atproto/server/resetPassword.js.map +1 -1
  185. package/dist/api/com/atproto/server/revokeAppPassword.js +1 -1
  186. package/dist/api/com/atproto/server/revokeAppPassword.js.map +1 -1
  187. package/dist/api/com/atproto/server/updateEmail.js +1 -1
  188. package/dist/api/com/atproto/server/updateEmail.js.map +1 -1
  189. package/dist/api/com/atproto/server/util.d.ts.map +1 -1
  190. package/dist/api/com/atproto/sync/deprecated/getCheckout.js +1 -1
  191. package/dist/api/com/atproto/sync/deprecated/getCheckout.js.map +1 -1
  192. package/dist/api/com/atproto/sync/deprecated/getHead.js +1 -1
  193. package/dist/api/com/atproto/sync/deprecated/getHead.js.map +1 -1
  194. package/dist/api/com/atproto/sync/getBlob.js +1 -1
  195. package/dist/api/com/atproto/sync/getBlob.js.map +1 -1
  196. package/dist/api/com/atproto/sync/getBlocks.js +1 -1
  197. package/dist/api/com/atproto/sync/getBlocks.js.map +1 -1
  198. package/dist/api/com/atproto/sync/getLatestCommit.js +1 -1
  199. package/dist/api/com/atproto/sync/getLatestCommit.js.map +1 -1
  200. package/dist/api/com/atproto/sync/getRecord.js +1 -1
  201. package/dist/api/com/atproto/sync/getRecord.js.map +1 -1
  202. package/dist/api/com/atproto/sync/getRepo.d.ts +0 -1
  203. package/dist/api/com/atproto/sync/getRepo.d.ts.map +1 -1
  204. package/dist/api/com/atproto/sync/getRepo.js +1 -1
  205. package/dist/api/com/atproto/sync/getRepo.js.map +1 -1
  206. package/dist/api/com/atproto/sync/getRepoStatus.js +1 -1
  207. package/dist/api/com/atproto/sync/getRepoStatus.js.map +1 -1
  208. package/dist/api/com/atproto/sync/index.js +1 -1
  209. package/dist/api/com/atproto/sync/index.js.map +1 -1
  210. package/dist/api/com/atproto/sync/listBlobs.js +1 -1
  211. package/dist/api/com/atproto/sync/listBlobs.js.map +1 -1
  212. package/dist/api/com/atproto/sync/listRepos.js +1 -1
  213. package/dist/api/com/atproto/sync/listRepos.js.map +1 -1
  214. package/dist/api/com/atproto/sync/subscribeRepos.js +1 -1
  215. package/dist/api/com/atproto/sync/subscribeRepos.js.map +1 -1
  216. package/dist/api/com/atproto/sync/util.d.ts.map +1 -1
  217. package/dist/api/com/atproto/temp/checkSignupQueue.js +1 -1
  218. package/dist/api/com/atproto/temp/checkSignupQueue.js.map +1 -1
  219. package/dist/api/com/atproto/temp/index.js +1 -1
  220. package/dist/api/com/atproto/temp/index.js.map +1 -1
  221. package/dist/api/index.js +1 -1
  222. package/dist/api/index.js.map +1 -1
  223. package/dist/api/proxy.d.ts +0 -1
  224. package/dist/api/proxy.d.ts.map +1 -1
  225. package/dist/api/proxy.js +2 -2
  226. package/dist/api/proxy.js.map +1 -1
  227. package/dist/auth-routes.d.ts.map +1 -1
  228. package/dist/auth-routes.js +1 -0
  229. package/dist/auth-routes.js.map +1 -1
  230. package/dist/auth-verifier.d.ts +0 -1
  231. package/dist/auth-verifier.d.ts.map +1 -1
  232. package/dist/basic-routes.d.ts.map +1 -1
  233. package/dist/db/cast.d.ts +1 -1
  234. package/dist/db/cast.d.ts.map +1 -1
  235. package/dist/db/cast.js +2 -2
  236. package/dist/db/cast.js.map +1 -1
  237. package/dist/db/pagination.d.ts +1 -1
  238. package/dist/db/pagination.d.ts.map +1 -1
  239. package/dist/db/util.d.ts.map +1 -1
  240. package/dist/did-cache/db/index.d.ts.map +1 -1
  241. package/dist/did-cache/db/migrations.d.ts.map +1 -1
  242. package/dist/disk-blobstore.d.ts +0 -1
  243. package/dist/disk-blobstore.d.ts.map +1 -1
  244. package/dist/handle/index.d.ts.map +1 -1
  245. package/dist/image/index.d.ts +0 -1
  246. package/dist/image/index.d.ts.map +1 -1
  247. package/dist/image/index.js +3 -3
  248. package/dist/image/index.js.map +1 -1
  249. package/dist/index.d.ts +0 -3
  250. package/dist/index.d.ts.map +1 -1
  251. package/dist/lexicon/index.d.ts +17 -0
  252. package/dist/lexicon/index.d.ts.map +1 -1
  253. package/dist/lexicon/index.js +45 -2
  254. package/dist/lexicon/index.js.map +1 -1
  255. package/dist/lexicon/lexicons.d.ts +292 -0
  256. package/dist/lexicon/lexicons.d.ts.map +1 -1
  257. package/dist/lexicon/lexicons.js +298 -0
  258. package/dist/lexicon/lexicons.js.map +1 -1
  259. package/dist/lexicon/types/app/bsky/actor/defs.js +48 -49
  260. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  261. package/dist/lexicon/types/app/bsky/actor/profile.js +2 -3
  262. package/dist/lexicon/types/app/bsky/actor/profile.js.map +1 -1
  263. package/dist/lexicon/types/app/bsky/embed/defs.js +2 -3
  264. package/dist/lexicon/types/app/bsky/embed/defs.js.map +1 -1
  265. package/dist/lexicon/types/app/bsky/embed/external.js +8 -9
  266. package/dist/lexicon/types/app/bsky/embed/external.js.map +1 -1
  267. package/dist/lexicon/types/app/bsky/embed/images.js +8 -9
  268. package/dist/lexicon/types/app/bsky/embed/images.js.map +1 -1
  269. package/dist/lexicon/types/app/bsky/embed/record.js +12 -13
  270. package/dist/lexicon/types/app/bsky/embed/record.js.map +1 -1
  271. package/dist/lexicon/types/app/bsky/embed/recordWithMedia.js +4 -5
  272. package/dist/lexicon/types/app/bsky/embed/recordWithMedia.js.map +1 -1
  273. package/dist/lexicon/types/app/bsky/embed/video.js +6 -7
  274. package/dist/lexicon/types/app/bsky/embed/video.js.map +1 -1
  275. package/dist/lexicon/types/app/bsky/feed/defs.js +35 -35
  276. package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
  277. package/dist/lexicon/types/app/bsky/feed/describeFeedGenerator.js +4 -5
  278. package/dist/lexicon/types/app/bsky/feed/describeFeedGenerator.js.map +1 -1
  279. package/dist/lexicon/types/app/bsky/feed/generator.js +2 -3
  280. package/dist/lexicon/types/app/bsky/feed/generator.js.map +1 -1
  281. package/dist/lexicon/types/app/bsky/feed/getLikes.js +2 -3
  282. package/dist/lexicon/types/app/bsky/feed/getLikes.js.map +1 -1
  283. package/dist/lexicon/types/app/bsky/feed/like.js +2 -3
  284. package/dist/lexicon/types/app/bsky/feed/like.js.map +1 -1
  285. package/dist/lexicon/types/app/bsky/feed/post.js +8 -9
  286. package/dist/lexicon/types/app/bsky/feed/post.js.map +1 -1
  287. package/dist/lexicon/types/app/bsky/feed/postgate.js +4 -5
  288. package/dist/lexicon/types/app/bsky/feed/postgate.js.map +1 -1
  289. package/dist/lexicon/types/app/bsky/feed/repost.js +2 -3
  290. package/dist/lexicon/types/app/bsky/feed/repost.js.map +1 -1
  291. package/dist/lexicon/types/app/bsky/feed/threadgate.js +8 -9
  292. package/dist/lexicon/types/app/bsky/feed/threadgate.js.map +1 -1
  293. package/dist/lexicon/types/app/bsky/graph/block.js +2 -3
  294. package/dist/lexicon/types/app/bsky/graph/block.js.map +1 -1
  295. package/dist/lexicon/types/app/bsky/graph/defs.js +17 -17
  296. package/dist/lexicon/types/app/bsky/graph/defs.js.map +1 -1
  297. package/dist/lexicon/types/app/bsky/graph/follow.js +2 -3
  298. package/dist/lexicon/types/app/bsky/graph/follow.js.map +1 -1
  299. package/dist/lexicon/types/app/bsky/graph/list.js +2 -3
  300. package/dist/lexicon/types/app/bsky/graph/list.js.map +1 -1
  301. package/dist/lexicon/types/app/bsky/graph/listblock.js +2 -3
  302. package/dist/lexicon/types/app/bsky/graph/listblock.js.map +1 -1
  303. package/dist/lexicon/types/app/bsky/graph/listitem.js +2 -3
  304. package/dist/lexicon/types/app/bsky/graph/listitem.js.map +1 -1
  305. package/dist/lexicon/types/app/bsky/graph/starterpack.js +4 -5
  306. package/dist/lexicon/types/app/bsky/graph/starterpack.js.map +1 -1
  307. package/dist/lexicon/types/app/bsky/labeler/defs.js +8 -9
  308. package/dist/lexicon/types/app/bsky/labeler/defs.js.map +1 -1
  309. package/dist/lexicon/types/app/bsky/labeler/service.js +2 -3
  310. package/dist/lexicon/types/app/bsky/labeler/service.js.map +1 -1
  311. package/dist/lexicon/types/app/bsky/notification/listNotifications.js +2 -3
  312. package/dist/lexicon/types/app/bsky/notification/listNotifications.js.map +1 -1
  313. package/dist/lexicon/types/app/bsky/richtext/facet.js +10 -11
  314. package/dist/lexicon/types/app/bsky/richtext/facet.js.map +1 -1
  315. package/dist/lexicon/types/app/bsky/unspecced/defs.js +4 -5
  316. package/dist/lexicon/types/app/bsky/unspecced/defs.js.map +1 -1
  317. package/dist/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.js +2 -3
  318. package/dist/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.js.map +1 -1
  319. package/dist/lexicon/types/app/bsky/video/defs.js +2 -3
  320. package/dist/lexicon/types/app/bsky/video/defs.js.map +1 -1
  321. package/dist/lexicon/types/app/bsky/video/uploadVideo.d.ts +0 -2
  322. package/dist/lexicon/types/app/bsky/video/uploadVideo.d.ts.map +1 -1
  323. package/dist/lexicon/types/chat/bsky/actor/declaration.js +2 -3
  324. package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -1
  325. package/dist/lexicon/types/chat/bsky/actor/defs.js +2 -3
  326. package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -1
  327. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts +0 -1
  328. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts.map +1 -1
  329. package/dist/lexicon/types/chat/bsky/convo/defs.js +20 -21
  330. package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -1
  331. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js +2 -3
  332. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js.map +1 -1
  333. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js +2 -3
  334. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js.map +1 -1
  335. package/dist/lexicon/types/com/atproto/admin/defs.js +8 -9
  336. package/dist/lexicon/types/com/atproto/admin/defs.js.map +1 -1
  337. package/dist/lexicon/types/com/atproto/label/defs.js +10 -11
  338. package/dist/lexicon/types/com/atproto/label/defs.js.map +1 -1
  339. package/dist/lexicon/types/com/atproto/label/subscribeLabels.d.ts +0 -3
  340. package/dist/lexicon/types/com/atproto/label/subscribeLabels.d.ts.map +1 -1
  341. package/dist/lexicon/types/com/atproto/label/subscribeLabels.js +4 -5
  342. package/dist/lexicon/types/com/atproto/label/subscribeLabels.js.map +1 -1
  343. package/dist/lexicon/types/com/atproto/repo/applyWrites.js +12 -13
  344. package/dist/lexicon/types/com/atproto/repo/applyWrites.js.map +1 -1
  345. package/dist/lexicon/types/com/atproto/repo/defs.js +2 -3
  346. package/dist/lexicon/types/com/atproto/repo/defs.js.map +1 -1
  347. package/dist/lexicon/types/com/atproto/repo/importRepo.d.ts +0 -2
  348. package/dist/lexicon/types/com/atproto/repo/importRepo.d.ts.map +1 -1
  349. package/dist/lexicon/types/com/atproto/repo/listMissingBlobs.js +2 -3
  350. package/dist/lexicon/types/com/atproto/repo/listMissingBlobs.js.map +1 -1
  351. package/dist/lexicon/types/com/atproto/repo/listRecords.js +2 -3
  352. package/dist/lexicon/types/com/atproto/repo/listRecords.js.map +1 -1
  353. package/dist/lexicon/types/com/atproto/repo/strongRef.js +2 -3
  354. package/dist/lexicon/types/com/atproto/repo/strongRef.js.map +1 -1
  355. package/dist/lexicon/types/com/atproto/repo/uploadBlob.d.ts +0 -2
  356. package/dist/lexicon/types/com/atproto/repo/uploadBlob.d.ts.map +1 -1
  357. package/dist/lexicon/types/com/atproto/server/createAppPassword.js +2 -3
  358. package/dist/lexicon/types/com/atproto/server/createAppPassword.js.map +1 -1
  359. package/dist/lexicon/types/com/atproto/server/createInviteCodes.js +2 -3
  360. package/dist/lexicon/types/com/atproto/server/createInviteCodes.js.map +1 -1
  361. package/dist/lexicon/types/com/atproto/server/defs.js +4 -5
  362. package/dist/lexicon/types/com/atproto/server/defs.js.map +1 -1
  363. package/dist/lexicon/types/com/atproto/server/describeServer.js +4 -5
  364. package/dist/lexicon/types/com/atproto/server/describeServer.js.map +1 -1
  365. package/dist/lexicon/types/com/atproto/server/listAppPasswords.js +2 -3
  366. package/dist/lexicon/types/com/atproto/server/listAppPasswords.js.map +1 -1
  367. package/dist/lexicon/types/com/atproto/sync/getBlob.d.ts +0 -1
  368. package/dist/lexicon/types/com/atproto/sync/getBlob.d.ts.map +1 -1
  369. package/dist/lexicon/types/com/atproto/sync/getBlocks.d.ts +0 -1
  370. package/dist/lexicon/types/com/atproto/sync/getBlocks.d.ts.map +1 -1
  371. package/dist/lexicon/types/com/atproto/sync/getCheckout.d.ts +0 -1
  372. package/dist/lexicon/types/com/atproto/sync/getCheckout.d.ts.map +1 -1
  373. package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts +0 -1
  374. package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts.map +1 -1
  375. package/dist/lexicon/types/com/atproto/sync/getRepo.d.ts +0 -1
  376. package/dist/lexicon/types/com/atproto/sync/getRepo.d.ts.map +1 -1
  377. package/dist/lexicon/types/com/atproto/sync/listRepos.js +2 -3
  378. package/dist/lexicon/types/com/atproto/sync/listRepos.js.map +1 -1
  379. package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts +0 -3
  380. package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
  381. package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js +16 -17
  382. package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js.map +1 -1
  383. package/dist/lexicon/types/tools/ozone/communication/defs.js +2 -3
  384. package/dist/lexicon/types/tools/ozone/communication/defs.js.map +1 -1
  385. package/dist/lexicon/types/tools/ozone/moderation/defs.js +59 -60
  386. package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
  387. package/dist/lexicon/types/tools/ozone/server/getConfig.js +4 -5
  388. package/dist/lexicon/types/tools/ozone/server/getConfig.js.map +1 -1
  389. package/dist/lexicon/types/tools/ozone/set/addValues.d.ts +32 -0
  390. package/dist/lexicon/types/tools/ozone/set/addValues.d.ts.map +1 -0
  391. package/dist/lexicon/types/tools/ozone/set/addValues.js +3 -0
  392. package/dist/lexicon/types/tools/ozone/set/addValues.js.map +1 -0
  393. package/dist/lexicon/types/tools/ozone/set/defs.d.ts +22 -0
  394. package/dist/lexicon/types/tools/ozone/set/defs.d.ts.map +1 -0
  395. package/dist/lexicon/types/tools/ozone/set/defs.js +23 -0
  396. package/dist/lexicon/types/tools/ozone/set/defs.js.map +1 -0
  397. package/dist/lexicon/types/tools/ozone/set/deleteSet.d.ts +41 -0
  398. package/dist/lexicon/types/tools/ozone/set/deleteSet.d.ts.map +1 -0
  399. package/dist/lexicon/types/tools/ozone/set/deleteSet.js +3 -0
  400. package/dist/lexicon/types/tools/ozone/set/deleteSet.js.map +1 -0
  401. package/dist/lexicon/types/tools/ozone/set/deleteValues.d.ts +33 -0
  402. package/dist/lexicon/types/tools/ozone/set/deleteValues.d.ts.map +1 -0
  403. package/dist/lexicon/types/tools/ozone/set/deleteValues.js +3 -0
  404. package/dist/lexicon/types/tools/ozone/set/deleteValues.js.map +1 -0
  405. package/dist/lexicon/types/tools/ozone/set/getValues.d.ts +41 -0
  406. package/dist/lexicon/types/tools/ozone/set/getValues.d.ts.map +1 -0
  407. package/dist/lexicon/types/tools/ozone/set/getValues.js +3 -0
  408. package/dist/lexicon/types/tools/ozone/set/getValues.js.map +1 -0
  409. package/dist/lexicon/types/tools/ozone/set/querySets.d.ts +42 -0
  410. package/dist/lexicon/types/tools/ozone/set/querySets.d.ts.map +1 -0
  411. package/dist/lexicon/types/tools/ozone/set/querySets.js +3 -0
  412. package/dist/lexicon/types/tools/ozone/set/querySets.js.map +1 -0
  413. package/dist/lexicon/types/tools/ozone/set/upsertSet.d.ts +35 -0
  414. package/dist/lexicon/types/tools/ozone/set/upsertSet.d.ts.map +1 -0
  415. package/dist/lexicon/types/tools/ozone/set/upsertSet.js +3 -0
  416. package/dist/lexicon/types/tools/ozone/set/upsertSet.js.map +1 -0
  417. package/dist/lexicon/types/tools/ozone/signature/defs.js +2 -3
  418. package/dist/lexicon/types/tools/ozone/signature/defs.js.map +1 -1
  419. package/dist/lexicon/types/tools/ozone/signature/findRelatedAccounts.js +2 -3
  420. package/dist/lexicon/types/tools/ozone/signature/findRelatedAccounts.js.map +1 -1
  421. package/dist/lexicon/types/tools/ozone/team/defs.js +3 -3
  422. package/dist/lexicon/types/tools/ozone/team/defs.js.map +1 -1
  423. package/dist/lexicon/util.js +2 -3
  424. package/dist/lexicon/util.js.map +1 -1
  425. package/dist/logger.d.ts +0 -2
  426. package/dist/logger.d.ts.map +1 -1
  427. package/dist/oauth/provider.d.ts +0 -2
  428. package/dist/oauth/provider.d.ts.map +1 -1
  429. package/dist/pipethrough.d.ts +1 -3
  430. package/dist/pipethrough.d.ts.map +1 -1
  431. package/dist/pipethrough.js +5 -5
  432. package/dist/pipethrough.js.map +1 -1
  433. package/dist/read-after-write/util.d.ts +0 -1
  434. package/dist/read-after-write/util.d.ts.map +1 -1
  435. package/dist/read-after-write/viewer.d.ts.map +1 -1
  436. package/dist/repo/prepare.d.ts.map +1 -1
  437. package/dist/sequencer/db/index.d.ts.map +1 -1
  438. package/dist/sequencer/db/migrations/001-init.js +2 -3
  439. package/dist/sequencer/db/migrations/001-init.js.map +1 -1
  440. package/dist/sequencer/events.d.ts.map +1 -1
  441. package/dist/sequencer/outbox.d.ts +0 -1
  442. package/dist/sequencer/outbox.d.ts.map +1 -1
  443. package/dist/sequencer/sequencer.d.ts.map +1 -1
  444. package/dist/util/compression.js +1 -1
  445. package/dist/util/compression.js.map +1 -1
  446. package/dist/util/debug.d.ts.map +1 -1
  447. package/dist/well-known.d.ts.map +1 -1
  448. package/jest.config.js +5 -1
  449. package/package.json +9 -6
  450. package/src/auth-routes.ts +1 -0
  451. package/src/lexicon/index.ts +82 -0
  452. package/src/lexicon/lexicons.ts +301 -0
  453. package/src/lexicon/types/tools/ozone/set/addValues.ts +41 -0
  454. package/src/lexicon/types/tools/ozone/set/defs.ts +44 -0
  455. package/src/lexicon/types/tools/ozone/set/deleteSet.ts +50 -0
  456. package/src/lexicon/types/tools/ozone/set/deleteValues.ts +42 -0
  457. package/src/lexicon/types/tools/ozone/set/getValues.ts +51 -0
  458. package/src/lexicon/types/tools/ozone/set/querySets.ts +52 -0
  459. package/src/lexicon/types/tools/ozone/set/upsertSet.ts +43 -0
  460. package/tests/oauth.test.ts +152 -0
  461. package/tests/proxied/proxy-catchall.test.ts +3 -3
  462. package/tests/proxied/proxy-header.test.ts +8 -3
  463. package/tsconfig.build.tsbuildinfo +1 -0
  464. package/tsconfig.tests.tsbuildinfo +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/pds",
3
- "version": "0.4.64",
3
+ "version": "0.4.66",
4
4
  "license": "MIT",
5
5
  "description": "Reference implementation of atproto Personal Data Server (PDS)",
6
6
  "keywords": [
@@ -45,13 +45,13 @@
45
45
  "undici": "^6.19.8",
46
46
  "zod": "^3.23.8",
47
47
  "@atproto-labs/fetch-node": "0.1.3",
48
- "@atproto/api": "^0.13.11",
48
+ "@atproto/api": "^0.13.12",
49
49
  "@atproto/aws": "^0.2.7",
50
50
  "@atproto/common": "^0.4.4",
51
51
  "@atproto/crypto": "^0.4.1",
52
52
  "@atproto/identity": "^0.4.2",
53
53
  "@atproto/lexicon": "^0.4.2",
54
- "@atproto/oauth-provider": "^0.2.5",
54
+ "@atproto/oauth-provider": "^0.2.6",
55
55
  "@atproto/repo": "^0.5.3",
56
56
  "@atproto/syntax": "^0.3.0",
57
57
  "@atproto/xrpc": "^0.6.3",
@@ -71,11 +71,14 @@
71
71
  "esbuild-plugin-handlebars": "^1.0.3",
72
72
  "get-port": "^6.1.2",
73
73
  "jest": "^28.1.2",
74
+ "puppeteer": "^23.5.2",
74
75
  "ts-node": "^10.8.2",
76
+ "typescript": "^5.6.3",
75
77
  "ws": "^8.12.0",
76
- "@atproto/api": "^0.13.11",
77
- "@atproto/bsky": "^0.0.88",
78
- "@atproto/lex-cli": "^0.5.1"
78
+ "@atproto/api": "^0.13.12",
79
+ "@atproto/bsky": "^0.0.90",
80
+ "@atproto/lex-cli": "^0.5.1",
81
+ "@atproto/oauth-client-browser-example": "0.0.0"
79
82
  },
80
83
  "scripts": {
81
84
  "codegen": "lex gen-server --yes ./src/lexicon ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/* ../../lexicons/tools/ozone/*/*",
@@ -18,6 +18,7 @@ export const createRouter = ({ authProvider, cfg }: AppContext): Router => {
18
18
  router.get('/.well-known/oauth-protected-resource', (req, res) => {
19
19
  res.setHeader('Access-Control-Allow-Origin', '*')
20
20
  res.setHeader('Access-Control-Allow-Method', '*')
21
+ res.setHeader('Access-Control-Allow-Headers', '*')
21
22
  res.status(200).json(oauthProtectedResourceMetadata)
22
23
  })
23
24
 
@@ -173,6 +173,12 @@ import * as ToolsOzoneModerationQueryEvents from './types/tools/ozone/moderation
173
173
  import * as ToolsOzoneModerationQueryStatuses from './types/tools/ozone/moderation/queryStatuses'
174
174
  import * as ToolsOzoneModerationSearchRepos from './types/tools/ozone/moderation/searchRepos'
175
175
  import * as ToolsOzoneServerGetConfig from './types/tools/ozone/server/getConfig'
176
+ import * as ToolsOzoneSetAddValues from './types/tools/ozone/set/addValues'
177
+ import * as ToolsOzoneSetDeleteSet from './types/tools/ozone/set/deleteSet'
178
+ import * as ToolsOzoneSetDeleteValues from './types/tools/ozone/set/deleteValues'
179
+ import * as ToolsOzoneSetGetValues from './types/tools/ozone/set/getValues'
180
+ import * as ToolsOzoneSetQuerySets from './types/tools/ozone/set/querySets'
181
+ import * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet'
176
182
  import * as ToolsOzoneSignatureFindCorrelation from './types/tools/ozone/signature/findCorrelation'
177
183
  import * as ToolsOzoneSignatureFindRelatedAccounts from './types/tools/ozone/signature/findRelatedAccounts'
178
184
  import * as ToolsOzoneSignatureSearchAccounts from './types/tools/ozone/signature/searchAccounts'
@@ -2164,6 +2170,7 @@ export class ToolsOzoneNS {
2164
2170
  communication: ToolsOzoneCommunicationNS
2165
2171
  moderation: ToolsOzoneModerationNS
2166
2172
  server: ToolsOzoneServerNS
2173
+ set: ToolsOzoneSetNS
2167
2174
  signature: ToolsOzoneSignatureNS
2168
2175
  team: ToolsOzoneTeamNS
2169
2176
 
@@ -2172,6 +2179,7 @@ export class ToolsOzoneNS {
2172
2179
  this.communication = new ToolsOzoneCommunicationNS(server)
2173
2180
  this.moderation = new ToolsOzoneModerationNS(server)
2174
2181
  this.server = new ToolsOzoneServerNS(server)
2182
+ this.set = new ToolsOzoneSetNS(server)
2175
2183
  this.signature = new ToolsOzoneSignatureNS(server)
2176
2184
  this.team = new ToolsOzoneTeamNS(server)
2177
2185
  }
@@ -2355,6 +2363,80 @@ export class ToolsOzoneServerNS {
2355
2363
  }
2356
2364
  }
2357
2365
 
2366
+ export class ToolsOzoneSetNS {
2367
+ _server: Server
2368
+
2369
+ constructor(server: Server) {
2370
+ this._server = server
2371
+ }
2372
+
2373
+ addValues<AV extends AuthVerifier>(
2374
+ cfg: ConfigOf<
2375
+ AV,
2376
+ ToolsOzoneSetAddValues.Handler<ExtractAuth<AV>>,
2377
+ ToolsOzoneSetAddValues.HandlerReqCtx<ExtractAuth<AV>>
2378
+ >,
2379
+ ) {
2380
+ const nsid = 'tools.ozone.set.addValues' // @ts-ignore
2381
+ return this._server.xrpc.method(nsid, cfg)
2382
+ }
2383
+
2384
+ deleteSet<AV extends AuthVerifier>(
2385
+ cfg: ConfigOf<
2386
+ AV,
2387
+ ToolsOzoneSetDeleteSet.Handler<ExtractAuth<AV>>,
2388
+ ToolsOzoneSetDeleteSet.HandlerReqCtx<ExtractAuth<AV>>
2389
+ >,
2390
+ ) {
2391
+ const nsid = 'tools.ozone.set.deleteSet' // @ts-ignore
2392
+ return this._server.xrpc.method(nsid, cfg)
2393
+ }
2394
+
2395
+ deleteValues<AV extends AuthVerifier>(
2396
+ cfg: ConfigOf<
2397
+ AV,
2398
+ ToolsOzoneSetDeleteValues.Handler<ExtractAuth<AV>>,
2399
+ ToolsOzoneSetDeleteValues.HandlerReqCtx<ExtractAuth<AV>>
2400
+ >,
2401
+ ) {
2402
+ const nsid = 'tools.ozone.set.deleteValues' // @ts-ignore
2403
+ return this._server.xrpc.method(nsid, cfg)
2404
+ }
2405
+
2406
+ getValues<AV extends AuthVerifier>(
2407
+ cfg: ConfigOf<
2408
+ AV,
2409
+ ToolsOzoneSetGetValues.Handler<ExtractAuth<AV>>,
2410
+ ToolsOzoneSetGetValues.HandlerReqCtx<ExtractAuth<AV>>
2411
+ >,
2412
+ ) {
2413
+ const nsid = 'tools.ozone.set.getValues' // @ts-ignore
2414
+ return this._server.xrpc.method(nsid, cfg)
2415
+ }
2416
+
2417
+ querySets<AV extends AuthVerifier>(
2418
+ cfg: ConfigOf<
2419
+ AV,
2420
+ ToolsOzoneSetQuerySets.Handler<ExtractAuth<AV>>,
2421
+ ToolsOzoneSetQuerySets.HandlerReqCtx<ExtractAuth<AV>>
2422
+ >,
2423
+ ) {
2424
+ const nsid = 'tools.ozone.set.querySets' // @ts-ignore
2425
+ return this._server.xrpc.method(nsid, cfg)
2426
+ }
2427
+
2428
+ upsertSet<AV extends AuthVerifier>(
2429
+ cfg: ConfigOf<
2430
+ AV,
2431
+ ToolsOzoneSetUpsertSet.Handler<ExtractAuth<AV>>,
2432
+ ToolsOzoneSetUpsertSet.HandlerReqCtx<ExtractAuth<AV>>
2433
+ >,
2434
+ ) {
2435
+ const nsid = 'tools.ozone.set.upsertSet' // @ts-ignore
2436
+ return this._server.xrpc.method(nsid, cfg)
2437
+ }
2438
+ }
2439
+
2358
2440
  export class ToolsOzoneSignatureNS {
2359
2441
  _server: Server
2360
2442
 
@@ -12139,6 +12139,300 @@ export const schemaDict = {
12139
12139
  },
12140
12140
  },
12141
12141
  },
12142
+ ToolsOzoneSetAddValues: {
12143
+ lexicon: 1,
12144
+ id: 'tools.ozone.set.addValues',
12145
+ defs: {
12146
+ main: {
12147
+ type: 'procedure',
12148
+ description:
12149
+ 'Add values to a specific set. Attempting to add values to a set that does not exist will result in an error.',
12150
+ input: {
12151
+ encoding: 'application/json',
12152
+ schema: {
12153
+ type: 'object',
12154
+ required: ['name', 'values'],
12155
+ properties: {
12156
+ name: {
12157
+ type: 'string',
12158
+ description: 'Name of the set to add values to',
12159
+ },
12160
+ values: {
12161
+ type: 'array',
12162
+ minLength: 1,
12163
+ maxLength: 1000,
12164
+ items: {
12165
+ type: 'string',
12166
+ },
12167
+ description: 'Array of string values to add to the set',
12168
+ },
12169
+ },
12170
+ },
12171
+ },
12172
+ },
12173
+ },
12174
+ },
12175
+ ToolsOzoneSetDefs: {
12176
+ lexicon: 1,
12177
+ id: 'tools.ozone.set.defs',
12178
+ defs: {
12179
+ set: {
12180
+ type: 'object',
12181
+ required: ['name'],
12182
+ properties: {
12183
+ name: {
12184
+ type: 'string',
12185
+ minLength: 3,
12186
+ maxLength: 128,
12187
+ },
12188
+ description: {
12189
+ type: 'string',
12190
+ maxGraphemes: 1024,
12191
+ maxLength: 10240,
12192
+ },
12193
+ },
12194
+ },
12195
+ setView: {
12196
+ type: 'object',
12197
+ required: ['name', 'setSize', 'createdAt', 'updatedAt'],
12198
+ properties: {
12199
+ name: {
12200
+ type: 'string',
12201
+ minLength: 3,
12202
+ maxLength: 128,
12203
+ },
12204
+ description: {
12205
+ type: 'string',
12206
+ maxGraphemes: 1024,
12207
+ maxLength: 10240,
12208
+ },
12209
+ setSize: {
12210
+ type: 'integer',
12211
+ },
12212
+ createdAt: {
12213
+ type: 'string',
12214
+ format: 'datetime',
12215
+ },
12216
+ updatedAt: {
12217
+ type: 'string',
12218
+ format: 'datetime',
12219
+ },
12220
+ },
12221
+ },
12222
+ },
12223
+ },
12224
+ ToolsOzoneSetDeleteSet: {
12225
+ lexicon: 1,
12226
+ id: 'tools.ozone.set.deleteSet',
12227
+ defs: {
12228
+ main: {
12229
+ type: 'procedure',
12230
+ description:
12231
+ 'Delete an entire set. Attempting to delete a set that does not exist will result in an error.',
12232
+ input: {
12233
+ encoding: 'application/json',
12234
+ schema: {
12235
+ type: 'object',
12236
+ required: ['name'],
12237
+ properties: {
12238
+ name: {
12239
+ type: 'string',
12240
+ description: 'Name of the set to delete',
12241
+ },
12242
+ },
12243
+ },
12244
+ },
12245
+ output: {
12246
+ encoding: 'application/json',
12247
+ schema: {
12248
+ type: 'object',
12249
+ properties: {},
12250
+ },
12251
+ },
12252
+ errors: [
12253
+ {
12254
+ name: 'SetNotFound',
12255
+ description: 'set with the given name does not exist',
12256
+ },
12257
+ ],
12258
+ },
12259
+ },
12260
+ },
12261
+ ToolsOzoneSetDeleteValues: {
12262
+ lexicon: 1,
12263
+ id: 'tools.ozone.set.deleteValues',
12264
+ defs: {
12265
+ main: {
12266
+ type: 'procedure',
12267
+ description:
12268
+ 'Delete values from a specific set. Attempting to delete values that are not in the set will not result in an error',
12269
+ input: {
12270
+ encoding: 'application/json',
12271
+ schema: {
12272
+ type: 'object',
12273
+ required: ['name', 'values'],
12274
+ properties: {
12275
+ name: {
12276
+ type: 'string',
12277
+ description: 'Name of the set to delete values from',
12278
+ },
12279
+ values: {
12280
+ type: 'array',
12281
+ minLength: 1,
12282
+ items: {
12283
+ type: 'string',
12284
+ },
12285
+ description: 'Array of string values to delete from the set',
12286
+ },
12287
+ },
12288
+ },
12289
+ },
12290
+ errors: [
12291
+ {
12292
+ name: 'SetNotFound',
12293
+ description: 'set with the given name does not exist',
12294
+ },
12295
+ ],
12296
+ },
12297
+ },
12298
+ },
12299
+ ToolsOzoneSetGetValues: {
12300
+ lexicon: 1,
12301
+ id: 'tools.ozone.set.getValues',
12302
+ defs: {
12303
+ main: {
12304
+ type: 'query',
12305
+ description: 'Get a specific set and its values',
12306
+ parameters: {
12307
+ type: 'params',
12308
+ required: ['name'],
12309
+ properties: {
12310
+ name: {
12311
+ type: 'string',
12312
+ },
12313
+ limit: {
12314
+ type: 'integer',
12315
+ minimum: 1,
12316
+ maximum: 1000,
12317
+ default: 100,
12318
+ },
12319
+ cursor: {
12320
+ type: 'string',
12321
+ },
12322
+ },
12323
+ },
12324
+ output: {
12325
+ encoding: 'application/json',
12326
+ schema: {
12327
+ type: 'object',
12328
+ required: ['set', 'values'],
12329
+ properties: {
12330
+ set: {
12331
+ type: 'ref',
12332
+ ref: 'lex:tools.ozone.set.defs#setView',
12333
+ },
12334
+ values: {
12335
+ type: 'array',
12336
+ items: {
12337
+ type: 'string',
12338
+ },
12339
+ },
12340
+ cursor: {
12341
+ type: 'string',
12342
+ },
12343
+ },
12344
+ },
12345
+ },
12346
+ errors: [
12347
+ {
12348
+ name: 'SetNotFound',
12349
+ description: 'set with the given name does not exist',
12350
+ },
12351
+ ],
12352
+ },
12353
+ },
12354
+ },
12355
+ ToolsOzoneSetQuerySets: {
12356
+ lexicon: 1,
12357
+ id: 'tools.ozone.set.querySets',
12358
+ defs: {
12359
+ main: {
12360
+ type: 'query',
12361
+ description: 'Query available sets',
12362
+ parameters: {
12363
+ type: 'params',
12364
+ properties: {
12365
+ limit: {
12366
+ type: 'integer',
12367
+ minimum: 1,
12368
+ maximum: 100,
12369
+ default: 50,
12370
+ },
12371
+ cursor: {
12372
+ type: 'string',
12373
+ },
12374
+ namePrefix: {
12375
+ type: 'string',
12376
+ },
12377
+ sortBy: {
12378
+ type: 'string',
12379
+ enum: ['name', 'createdAt', 'updatedAt'],
12380
+ default: 'name',
12381
+ },
12382
+ sortDirection: {
12383
+ type: 'string',
12384
+ default: 'asc',
12385
+ enum: ['asc', 'desc'],
12386
+ description: 'Defaults to ascending order of name field.',
12387
+ },
12388
+ },
12389
+ },
12390
+ output: {
12391
+ encoding: 'application/json',
12392
+ schema: {
12393
+ type: 'object',
12394
+ required: ['sets'],
12395
+ properties: {
12396
+ sets: {
12397
+ type: 'array',
12398
+ items: {
12399
+ type: 'ref',
12400
+ ref: 'lex:tools.ozone.set.defs#setView',
12401
+ },
12402
+ },
12403
+ cursor: {
12404
+ type: 'string',
12405
+ },
12406
+ },
12407
+ },
12408
+ },
12409
+ },
12410
+ },
12411
+ },
12412
+ ToolsOzoneSetUpsertSet: {
12413
+ lexicon: 1,
12414
+ id: 'tools.ozone.set.upsertSet',
12415
+ defs: {
12416
+ main: {
12417
+ type: 'procedure',
12418
+ description: 'Create or update set metadata',
12419
+ input: {
12420
+ encoding: 'application/json',
12421
+ schema: {
12422
+ type: 'ref',
12423
+ ref: 'lex:tools.ozone.set.defs#set',
12424
+ },
12425
+ },
12426
+ output: {
12427
+ encoding: 'application/json',
12428
+ schema: {
12429
+ type: 'ref',
12430
+ ref: 'lex:tools.ozone.set.defs#setView',
12431
+ },
12432
+ },
12433
+ },
12434
+ },
12435
+ },
12142
12436
  ToolsOzoneSignatureDefs: {
12143
12437
  lexicon: 1,
12144
12438
  id: 'tools.ozone.signature.defs',
@@ -12764,6 +13058,13 @@ export const ids = {
12764
13058
  ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
12765
13059
  ToolsOzoneModerationSearchRepos: 'tools.ozone.moderation.searchRepos',
12766
13060
  ToolsOzoneServerGetConfig: 'tools.ozone.server.getConfig',
13061
+ ToolsOzoneSetAddValues: 'tools.ozone.set.addValues',
13062
+ ToolsOzoneSetDefs: 'tools.ozone.set.defs',
13063
+ ToolsOzoneSetDeleteSet: 'tools.ozone.set.deleteSet',
13064
+ ToolsOzoneSetDeleteValues: 'tools.ozone.set.deleteValues',
13065
+ ToolsOzoneSetGetValues: 'tools.ozone.set.getValues',
13066
+ ToolsOzoneSetQuerySets: 'tools.ozone.set.querySets',
13067
+ ToolsOzoneSetUpsertSet: 'tools.ozone.set.upsertSet',
12767
13068
  ToolsOzoneSignatureDefs: 'tools.ozone.signature.defs',
12768
13069
  ToolsOzoneSignatureFindCorrelation: 'tools.ozone.signature.findCorrelation',
12769
13070
  ToolsOzoneSignatureFindRelatedAccounts:
@@ -0,0 +1,41 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { lexicons } from '../../../../lexicons'
7
+ import { isObj, hasProp } from '../../../../util'
8
+ import { CID } from 'multiformats/cid'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
+
11
+ export interface QueryParams {}
12
+
13
+ export interface InputSchema {
14
+ /** Name of the set to add values to */
15
+ name: string
16
+ /** Array of string values to add to the set */
17
+ values: string[]
18
+ [k: string]: unknown
19
+ }
20
+
21
+ export interface HandlerInput {
22
+ encoding: 'application/json'
23
+ body: InputSchema
24
+ }
25
+
26
+ export interface HandlerError {
27
+ status: number
28
+ message?: string
29
+ }
30
+
31
+ export type HandlerOutput = HandlerError | void
32
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
33
+ auth: HA
34
+ params: QueryParams
35
+ input: HandlerInput
36
+ req: express.Request
37
+ res: express.Response
38
+ }
39
+ export type Handler<HA extends HandlerAuth = never> = (
40
+ ctx: HandlerReqCtx<HA>,
41
+ ) => Promise<HandlerOutput> | HandlerOutput
@@ -0,0 +1,44 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
5
+ import { lexicons } from '../../../../lexicons'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { CID } from 'multiformats/cid'
8
+
9
+ export interface Set {
10
+ name: string
11
+ description?: string
12
+ [k: string]: unknown
13
+ }
14
+
15
+ export function isSet(v: unknown): v is Set {
16
+ return (
17
+ isObj(v) && hasProp(v, '$type') && v.$type === 'tools.ozone.set.defs#set'
18
+ )
19
+ }
20
+
21
+ export function validateSet(v: unknown): ValidationResult {
22
+ return lexicons.validate('tools.ozone.set.defs#set', v)
23
+ }
24
+
25
+ export interface SetView {
26
+ name: string
27
+ description?: string
28
+ setSize: number
29
+ createdAt: string
30
+ updatedAt: string
31
+ [k: string]: unknown
32
+ }
33
+
34
+ export function isSetView(v: unknown): v is SetView {
35
+ return (
36
+ isObj(v) &&
37
+ hasProp(v, '$type') &&
38
+ v.$type === 'tools.ozone.set.defs#setView'
39
+ )
40
+ }
41
+
42
+ export function validateSetView(v: unknown): ValidationResult {
43
+ return lexicons.validate('tools.ozone.set.defs#setView', v)
44
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { lexicons } from '../../../../lexicons'
7
+ import { isObj, hasProp } from '../../../../util'
8
+ import { CID } from 'multiformats/cid'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
+
11
+ export interface QueryParams {}
12
+
13
+ export interface InputSchema {
14
+ /** Name of the set to delete */
15
+ name: string
16
+ [k: string]: unknown
17
+ }
18
+
19
+ export interface OutputSchema {
20
+ [k: string]: unknown
21
+ }
22
+
23
+ export interface HandlerInput {
24
+ encoding: 'application/json'
25
+ body: InputSchema
26
+ }
27
+
28
+ export interface HandlerSuccess {
29
+ encoding: 'application/json'
30
+ body: OutputSchema
31
+ headers?: { [key: string]: string }
32
+ }
33
+
34
+ export interface HandlerError {
35
+ status: number
36
+ message?: string
37
+ error?: 'SetNotFound'
38
+ }
39
+
40
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
41
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
42
+ auth: HA
43
+ params: QueryParams
44
+ input: HandlerInput
45
+ req: express.Request
46
+ res: express.Response
47
+ }
48
+ export type Handler<HA extends HandlerAuth = never> = (
49
+ ctx: HandlerReqCtx<HA>,
50
+ ) => Promise<HandlerOutput> | HandlerOutput
@@ -0,0 +1,42 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { lexicons } from '../../../../lexicons'
7
+ import { isObj, hasProp } from '../../../../util'
8
+ import { CID } from 'multiformats/cid'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
+
11
+ export interface QueryParams {}
12
+
13
+ export interface InputSchema {
14
+ /** Name of the set to delete values from */
15
+ name: string
16
+ /** Array of string values to delete from the set */
17
+ values: string[]
18
+ [k: string]: unknown
19
+ }
20
+
21
+ export interface HandlerInput {
22
+ encoding: 'application/json'
23
+ body: InputSchema
24
+ }
25
+
26
+ export interface HandlerError {
27
+ status: number
28
+ message?: string
29
+ error?: 'SetNotFound'
30
+ }
31
+
32
+ export type HandlerOutput = HandlerError | void
33
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
34
+ auth: HA
35
+ params: QueryParams
36
+ input: HandlerInput
37
+ req: express.Request
38
+ res: express.Response
39
+ }
40
+ export type Handler<HA extends HandlerAuth = never> = (
41
+ ctx: HandlerReqCtx<HA>,
42
+ ) => Promise<HandlerOutput> | HandlerOutput