@clioplaylists/clio 0.1.2 → 0.1.4

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 (317) hide show
  1. package/package.json +1 -1
  2. package/dist/.env +0 -7
  3. package/dist/api/com/clioplaylists/alpha/actor/getProfile.d.ts +0 -0
  4. package/dist/api/com/clioplaylists/alpha/actor/getProfile.js +0 -37
  5. package/dist/api/com/clioplaylists/alpha/feed/getSongs.d.ts +0 -0
  6. package/dist/api/com/clioplaylists/alpha/feed/getSongs.js +0 -37
  7. package/dist/api/health.d.ts +0 -3
  8. package/dist/api/health.js +0 -32
  9. package/dist/api/index.d.ts +0 -4
  10. package/dist/api/index.js +0 -43
  11. package/dist/api/util.d.ts +0 -9
  12. package/dist/api/util.js +0 -17
  13. package/dist/auth-verifier.d.ts +0 -92
  14. package/dist/auth-verifier.js +0 -473
  15. package/dist/client.d.ts +0 -9
  16. package/dist/client.js +0 -40
  17. package/dist/config.d.ts +0 -21
  18. package/dist/config.js +0 -65
  19. package/dist/context.d.ts +0 -11
  20. package/dist/context.js +0 -19
  21. package/dist/dataplane/bsync/index.js +0 -150
  22. package/dist/dataplane/client.d.ts +0 -27
  23. package/dist/dataplane/client.js +0 -165
  24. package/dist/dataplane/index.d.ts +0 -2
  25. package/dist/dataplane/index.js +0 -18
  26. package/dist/dataplane/server/background.d.ts +0 -13
  27. package/dist/dataplane/server/background.js +0 -51
  28. package/dist/dataplane/server/db/database-schema.d.ts +0 -13
  29. package/dist/dataplane/server/db/database-schema.js +0 -2
  30. package/dist/dataplane/server/db/db.d.ts +0 -32
  31. package/dist/dataplane/server/db/db.js +0 -228
  32. package/dist/dataplane/server/db/index.d.ts +0 -1
  33. package/dist/dataplane/server/db/index.js +0 -17
  34. package/dist/dataplane/server/db/migrations/20230309T045948368Z-init.d.ts +0 -3
  35. package/dist/dataplane/server/db/migrations/20230309T045948368Z-init.js +0 -117
  36. package/dist/dataplane/server/db/migrations/20230420T211446071Z-did-cache.d.ts +0 -3
  37. package/dist/dataplane/server/db/migrations/20230420T211446071Z-did-cache.js +0 -15
  38. package/dist/dataplane/server/db/migrations/index.d.ts +0 -2
  39. package/dist/dataplane/server/db/migrations/index.js +0 -41
  40. package/dist/dataplane/server/db/migrations/provider.d.ts +0 -11
  41. package/dist/dataplane/server/db/migrations/provider.js +0 -31
  42. package/dist/dataplane/server/db/pagination.d.ts +0 -86
  43. package/dist/dataplane/server/db/pagination.js +0 -144
  44. package/dist/dataplane/server/db/tables/actor-sync.d.ts +0 -9
  45. package/dist/dataplane/server/db/tables/actor-sync.js +0 -4
  46. package/dist/dataplane/server/db/tables/actor.d.ts +0 -11
  47. package/dist/dataplane/server/db/tables/actor.js +0 -4
  48. package/dist/dataplane/server/db/tables/artist-list-item.d.ts +0 -11
  49. package/dist/dataplane/server/db/tables/artist-list-item.js +0 -4
  50. package/dist/dataplane/server/db/tables/artist.d.ts +0 -10
  51. package/dist/dataplane/server/db/tables/artist.js +0 -4
  52. package/dist/dataplane/server/db/tables/playlist-idea.d.ts +0 -14
  53. package/dist/dataplane/server/db/tables/playlist-idea.js +0 -4
  54. package/dist/dataplane/server/db/tables/playlist-item.d.ts +0 -11
  55. package/dist/dataplane/server/db/tables/playlist-item.js +0 -4
  56. package/dist/dataplane/server/db/tables/playlist.d.ts +0 -10
  57. package/dist/dataplane/server/db/tables/playlist.js +0 -4
  58. package/dist/dataplane/server/db/tables/profile.d.ts +0 -15
  59. package/dist/dataplane/server/db/tables/profile.js +0 -4
  60. package/dist/dataplane/server/db/tables/record.d.ts +0 -12
  61. package/dist/dataplane/server/db/tables/record.js +0 -4
  62. package/dist/dataplane/server/db/tables/song.d.ts +0 -12
  63. package/dist/dataplane/server/db/tables/song.js +0 -4
  64. package/dist/dataplane/server/db/types.d.ts +0 -9
  65. package/dist/dataplane/server/db/types.js +0 -2
  66. package/dist/dataplane/server/db/util.d.ts +0 -20
  67. package/dist/dataplane/server/db/util.js +0 -48
  68. package/dist/dataplane/server/index.d.ts +0 -11
  69. package/dist/dataplane/server/index.js +0 -52
  70. package/dist/dataplane/server/indexing/index.d.ts +0 -32
  71. package/dist/dataplane/server/indexing/index.js +0 -321
  72. package/dist/dataplane/server/indexing/plugins/playlist-idea.d.ts +0 -14
  73. package/dist/dataplane/server/indexing/plugins/playlist-idea.js +0 -163
  74. package/dist/dataplane/server/indexing/plugins/profile.d.ts +0 -8
  75. package/dist/dataplane/server/indexing/plugins/profile.js +0 -81
  76. package/dist/dataplane/server/indexing/processor.d.ts +0 -22
  77. package/dist/dataplane/server/indexing/processor.js +0 -90
  78. package/dist/dataplane/server/routes/blocks.js +0 -95
  79. package/dist/dataplane/server/routes/feed-gens.js +0 -56
  80. package/dist/dataplane/server/routes/feeds.js +0 -128
  81. package/dist/dataplane/server/routes/follows.js +0 -122
  82. package/dist/dataplane/server/routes/identity.d.ts +0 -6
  83. package/dist/dataplane/server/routes/identity.js +0 -56
  84. package/dist/dataplane/server/routes/index.d.ts +0 -5
  85. package/dist/dataplane/server/routes/index.js +0 -19
  86. package/dist/dataplane/server/routes/interactions.js +0 -111
  87. package/dist/dataplane/server/routes/labels.js +0 -73
  88. package/dist/dataplane/server/routes/likes.js +0 -76
  89. package/dist/dataplane/server/routes/lists.js +0 -77
  90. package/dist/dataplane/server/routes/moderation.js +0 -92
  91. package/dist/dataplane/server/routes/mutes.js +0 -166
  92. package/dist/dataplane/server/routes/notifs.js +0 -137
  93. package/dist/dataplane/server/routes/posts.js +0 -19
  94. package/dist/dataplane/server/routes/profile.d.ts +0 -5
  95. package/dist/dataplane/server/routes/profile.js +0 -61
  96. package/dist/dataplane/server/routes/quotes.js +0 -26
  97. package/dist/dataplane/server/routes/records.d.ts +0 -11
  98. package/dist/dataplane/server/routes/records.js +0 -88
  99. package/dist/dataplane/server/routes/relationships.js +0 -157
  100. package/dist/dataplane/server/routes/reposts.js +0 -59
  101. package/dist/dataplane/server/routes/search.js +0 -70
  102. package/dist/dataplane/server/routes/starter-packs.js +0 -24
  103. package/dist/dataplane/server/routes/suggestions.js +0 -134
  104. package/dist/dataplane/server/routes/sync.d.ts +0 -5
  105. package/dist/dataplane/server/routes/sync.js +0 -14
  106. package/dist/dataplane/server/routes/threads.js +0 -31
  107. package/dist/dataplane/server/subscription.d.ts +0 -25
  108. package/dist/dataplane/server/subscription.js +0 -114
  109. package/dist/dataplane/server/util.js +0 -117
  110. package/dist/error.d.ts +0 -2
  111. package/dist/error.js +0 -14
  112. package/dist/index.d.ts +0 -20
  113. package/dist/index.js +0 -115
  114. package/dist/lexicons/index.d.ts +0 -278
  115. package/dist/lexicons/index.js +0 -638
  116. package/dist/lexicons/lexicons.d.ts +0 -8466
  117. package/dist/lexicons/lexicons.js +0 -4551
  118. package/dist/lexicons/types/com/atproto/admin/defs.d.ts +0 -50
  119. package/dist/lexicons/types/com/atproto/admin/defs.js +0 -54
  120. package/dist/lexicons/types/com/atproto/admin/deleteAccount.d.ts +0 -29
  121. package/dist/lexicons/types/com/atproto/admin/deleteAccount.js +0 -2
  122. package/dist/lexicons/types/com/atproto/admin/disableAccountInvites.d.ts +0 -31
  123. package/dist/lexicons/types/com/atproto/admin/disableAccountInvites.js +0 -2
  124. package/dist/lexicons/types/com/atproto/admin/disableInviteCodes.d.ts +0 -30
  125. package/dist/lexicons/types/com/atproto/admin/disableInviteCodes.js +0 -2
  126. package/dist/lexicons/types/com/atproto/admin/enableAccountInvites.d.ts +0 -31
  127. package/dist/lexicons/types/com/atproto/admin/enableAccountInvites.js +0 -2
  128. package/dist/lexicons/types/com/atproto/admin/getAccountInfo.d.ts +0 -33
  129. package/dist/lexicons/types/com/atproto/admin/getAccountInfo.js +0 -2
  130. package/dist/lexicons/types/com/atproto/admin/getAccountInfos.d.ts +0 -36
  131. package/dist/lexicons/types/com/atproto/admin/getAccountInfos.js +0 -2
  132. package/dist/lexicons/types/com/atproto/admin/getInviteCodes.d.ts +0 -39
  133. package/dist/lexicons/types/com/atproto/admin/getInviteCodes.js +0 -2
  134. package/dist/lexicons/types/com/atproto/admin/getSubjectStatus.d.ts +0 -44
  135. package/dist/lexicons/types/com/atproto/admin/getSubjectStatus.js +0 -2
  136. package/dist/lexicons/types/com/atproto/admin/searchAccounts.d.ts +0 -39
  137. package/dist/lexicons/types/com/atproto/admin/searchAccounts.js +0 -2
  138. package/dist/lexicons/types/com/atproto/admin/sendEmail.d.ts +0 -45
  139. package/dist/lexicons/types/com/atproto/admin/sendEmail.js +0 -2
  140. package/dist/lexicons/types/com/atproto/admin/updateAccountEmail.d.ts +0 -31
  141. package/dist/lexicons/types/com/atproto/admin/updateAccountEmail.js +0 -2
  142. package/dist/lexicons/types/com/atproto/admin/updateAccountHandle.d.ts +0 -30
  143. package/dist/lexicons/types/com/atproto/admin/updateAccountHandle.js +0 -2
  144. package/dist/lexicons/types/com/atproto/admin/updateAccountPassword.d.ts +0 -30
  145. package/dist/lexicons/types/com/atproto/admin/updateAccountPassword.js +0 -2
  146. package/dist/lexicons/types/com/atproto/admin/updateSubjectStatus.d.ts +0 -51
  147. package/dist/lexicons/types/com/atproto/admin/updateSubjectStatus.js +0 -2
  148. package/dist/lexicons/types/com/atproto/identity/defs.d.ts +0 -14
  149. package/dist/lexicons/types/com/atproto/identity/defs.js +0 -14
  150. package/dist/lexicons/types/com/atproto/identity/getRecommendedDidCredentials.d.ts +0 -38
  151. package/dist/lexicons/types/com/atproto/identity/getRecommendedDidCredentials.js +0 -2
  152. package/dist/lexicons/types/com/atproto/identity/refreshIdentity.d.ts +0 -39
  153. package/dist/lexicons/types/com/atproto/identity/refreshIdentity.js +0 -2
  154. package/dist/lexicons/types/com/atproto/identity/requestPlcOperationSignature.d.ts +0 -23
  155. package/dist/lexicons/types/com/atproto/identity/requestPlcOperationSignature.js +0 -2
  156. package/dist/lexicons/types/com/atproto/identity/resolveDid.d.ts +0 -38
  157. package/dist/lexicons/types/com/atproto/identity/resolveDid.js +0 -2
  158. package/dist/lexicons/types/com/atproto/identity/resolveHandle.d.ts +0 -37
  159. package/dist/lexicons/types/com/atproto/identity/resolveHandle.js +0 -2
  160. package/dist/lexicons/types/com/atproto/identity/resolveIdentity.d.ts +0 -35
  161. package/dist/lexicons/types/com/atproto/identity/resolveIdentity.js +0 -2
  162. package/dist/lexicons/types/com/atproto/identity/signPlcOperation.d.ts +0 -46
  163. package/dist/lexicons/types/com/atproto/identity/signPlcOperation.js +0 -2
  164. package/dist/lexicons/types/com/atproto/identity/submitPlcOperation.d.ts +0 -29
  165. package/dist/lexicons/types/com/atproto/identity/submitPlcOperation.js +0 -2
  166. package/dist/lexicons/types/com/atproto/identity/updateHandle.d.ts +0 -30
  167. package/dist/lexicons/types/com/atproto/identity/updateHandle.js +0 -2
  168. package/dist/lexicons/types/com/atproto/label/defs.d.ts +0 -73
  169. package/dist/lexicons/types/com/atproto/label/defs.js +0 -54
  170. package/dist/lexicons/types/com/atproto/label/queryLabels.d.ts +0 -42
  171. package/dist/lexicons/types/com/atproto/label/queryLabels.js +0 -2
  172. package/dist/lexicons/types/com/atproto/label/subscribeLabels.d.ts +0 -38
  173. package/dist/lexicons/types/com/atproto/label/subscribeLabels.js +0 -24
  174. package/dist/lexicons/types/com/atproto/lexicon/schema.d.ts +0 -11
  175. package/dist/lexicons/types/com/atproto/lexicon/schema.js +0 -15
  176. package/dist/lexicons/types/com/atproto/moderation/createReport.d.ts +0 -57
  177. package/dist/lexicons/types/com/atproto/moderation/createReport.js +0 -2
  178. package/dist/lexicons/types/com/atproto/moderation/defs.d.ts +0 -20
  179. package/dist/lexicons/types/com/atproto/moderation/defs.js +0 -20
  180. package/dist/lexicons/types/com/atproto/repo/applyWrites.d.ts +0 -98
  181. package/dist/lexicons/types/com/atproto/repo/applyWrites.js +0 -64
  182. package/dist/lexicons/types/com/atproto/repo/createRecord.d.ts +0 -56
  183. package/dist/lexicons/types/com/atproto/repo/createRecord.js +0 -2
  184. package/dist/lexicons/types/com/atproto/repo/defs.d.ts +0 -11
  185. package/dist/lexicons/types/com/atproto/repo/defs.js +0 -14
  186. package/dist/lexicons/types/com/atproto/repo/deleteRecord.d.ts +0 -51
  187. package/dist/lexicons/types/com/atproto/repo/deleteRecord.js +0 -2
  188. package/dist/lexicons/types/com/atproto/repo/describeRepo.d.ts +0 -43
  189. package/dist/lexicons/types/com/atproto/repo/describeRepo.js +0 -2
  190. package/dist/lexicons/types/com/atproto/repo/getRecord.d.ts +0 -45
  191. package/dist/lexicons/types/com/atproto/repo/getRecord.js +0 -2
  192. package/dist/lexicons/types/com/atproto/repo/importRepo.d.ts +0 -27
  193. package/dist/lexicons/types/com/atproto/repo/importRepo.js +0 -2
  194. package/dist/lexicons/types/com/atproto/repo/listMissingBlobs.d.ts +0 -45
  195. package/dist/lexicons/types/com/atproto/repo/listMissingBlobs.js +0 -14
  196. package/dist/lexicons/types/com/atproto/repo/listRecords.d.ts +0 -53
  197. package/dist/lexicons/types/com/atproto/repo/listRecords.js +0 -14
  198. package/dist/lexicons/types/com/atproto/repo/putRecord.d.ts +0 -58
  199. package/dist/lexicons/types/com/atproto/repo/putRecord.js +0 -2
  200. package/dist/lexicons/types/com/atproto/repo/strongRef.d.ts +0 -11
  201. package/dist/lexicons/types/com/atproto/repo/strongRef.js +0 -15
  202. package/dist/lexicons/types/com/atproto/repo/uploadBlob.d.ts +0 -39
  203. package/dist/lexicons/types/com/atproto/repo/uploadBlob.js +0 -2
  204. package/dist/lexicons/types/com/atproto/server/activateAccount.d.ts +0 -23
  205. package/dist/lexicons/types/com/atproto/server/activateAccount.js +0 -2
  206. package/dist/lexicons/types/com/atproto/server/checkAccountStatus.d.ts +0 -42
  207. package/dist/lexicons/types/com/atproto/server/checkAccountStatus.js +0 -2
  208. package/dist/lexicons/types/com/atproto/server/confirmEmail.d.ts +0 -31
  209. package/dist/lexicons/types/com/atproto/server/confirmEmail.js +0 -2
  210. package/dist/lexicons/types/com/atproto/server/createAccount.d.ts +0 -61
  211. package/dist/lexicons/types/com/atproto/server/createAccount.js +0 -2
  212. package/dist/lexicons/types/com/atproto/server/createAppPassword.d.ts +0 -51
  213. package/dist/lexicons/types/com/atproto/server/createAppPassword.js +0 -14
  214. package/dist/lexicons/types/com/atproto/server/createInviteCode.d.ts +0 -41
  215. package/dist/lexicons/types/com/atproto/server/createInviteCode.js +0 -2
  216. package/dist/lexicons/types/com/atproto/server/createInviteCodes.d.ts +0 -50
  217. package/dist/lexicons/types/com/atproto/server/createInviteCodes.js +0 -14
  218. package/dist/lexicons/types/com/atproto/server/createSession.d.ts +0 -56
  219. package/dist/lexicons/types/com/atproto/server/createSession.js +0 -2
  220. package/dist/lexicons/types/com/atproto/server/deactivateAccount.d.ts +0 -30
  221. package/dist/lexicons/types/com/atproto/server/deactivateAccount.js +0 -2
  222. package/dist/lexicons/types/com/atproto/server/defs.d.ts +0 -23
  223. package/dist/lexicons/types/com/atproto/server/defs.js +0 -24
  224. package/dist/lexicons/types/com/atproto/server/deleteAccount.d.ts +0 -32
  225. package/dist/lexicons/types/com/atproto/server/deleteAccount.js +0 -2
  226. package/dist/lexicons/types/com/atproto/server/deleteSession.d.ts +0 -23
  227. package/dist/lexicons/types/com/atproto/server/deleteSession.js +0 -2
  228. package/dist/lexicons/types/com/atproto/server/describeServer.d.ts +0 -56
  229. package/dist/lexicons/types/com/atproto/server/describeServer.js +0 -24
  230. package/dist/lexicons/types/com/atproto/server/getAccountInviteCodes.d.ts +0 -39
  231. package/dist/lexicons/types/com/atproto/server/getAccountInviteCodes.js +0 -2
  232. package/dist/lexicons/types/com/atproto/server/getServiceAuth.d.ts +0 -41
  233. package/dist/lexicons/types/com/atproto/server/getServiceAuth.js +0 -2
  234. package/dist/lexicons/types/com/atproto/server/getSession.d.ts +0 -42
  235. package/dist/lexicons/types/com/atproto/server/getSession.js +0 -2
  236. package/dist/lexicons/types/com/atproto/server/listAppPasswords.d.ts +0 -44
  237. package/dist/lexicons/types/com/atproto/server/listAppPasswords.js +0 -14
  238. package/dist/lexicons/types/com/atproto/server/refreshSession.d.ts +0 -42
  239. package/dist/lexicons/types/com/atproto/server/refreshSession.js +0 -2
  240. package/dist/lexicons/types/com/atproto/server/requestAccountDelete.d.ts +0 -23
  241. package/dist/lexicons/types/com/atproto/server/requestAccountDelete.js +0 -2
  242. package/dist/lexicons/types/com/atproto/server/requestEmailConfirmation.d.ts +0 -23
  243. package/dist/lexicons/types/com/atproto/server/requestEmailConfirmation.js +0 -2
  244. package/dist/lexicons/types/com/atproto/server/requestEmailUpdate.d.ts +0 -34
  245. package/dist/lexicons/types/com/atproto/server/requestEmailUpdate.js +0 -2
  246. package/dist/lexicons/types/com/atproto/server/requestPasswordReset.d.ts +0 -29
  247. package/dist/lexicons/types/com/atproto/server/requestPasswordReset.js +0 -2
  248. package/dist/lexicons/types/com/atproto/server/reserveSigningKey.d.ts +0 -42
  249. package/dist/lexicons/types/com/atproto/server/reserveSigningKey.js +0 -2
  250. package/dist/lexicons/types/com/atproto/server/resetPassword.d.ts +0 -31
  251. package/dist/lexicons/types/com/atproto/server/resetPassword.js +0 -2
  252. package/dist/lexicons/types/com/atproto/server/revokeAppPassword.d.ts +0 -29
  253. package/dist/lexicons/types/com/atproto/server/revokeAppPassword.js +0 -2
  254. package/dist/lexicons/types/com/atproto/server/updateEmail.d.ts +0 -33
  255. package/dist/lexicons/types/com/atproto/server/updateEmail.js +0 -2
  256. package/dist/lexicons/types/com/atproto/sync/getBlob.d.ts +0 -36
  257. package/dist/lexicons/types/com/atproto/sync/getBlob.js +0 -2
  258. package/dist/lexicons/types/com/atproto/sync/getBlocks.d.ts +0 -35
  259. package/dist/lexicons/types/com/atproto/sync/getBlocks.js +0 -2
  260. package/dist/lexicons/types/com/atproto/sync/getCheckout.d.ts +0 -33
  261. package/dist/lexicons/types/com/atproto/sync/getCheckout.js +0 -2
  262. package/dist/lexicons/types/com/atproto/sync/getHead.d.ts +0 -37
  263. package/dist/lexicons/types/com/atproto/sync/getHead.js +0 -2
  264. package/dist/lexicons/types/com/atproto/sync/getLatestCommit.d.ts +0 -38
  265. package/dist/lexicons/types/com/atproto/sync/getLatestCommit.js +0 -2
  266. package/dist/lexicons/types/com/atproto/sync/getRecord.d.ts +0 -37
  267. package/dist/lexicons/types/com/atproto/sync/getRecord.js +0 -2
  268. package/dist/lexicons/types/com/atproto/sync/getRepo.d.ts +0 -36
  269. package/dist/lexicons/types/com/atproto/sync/getRepo.js +0 -2
  270. package/dist/lexicons/types/com/atproto/sync/getRepoStatus.d.ts +0 -42
  271. package/dist/lexicons/types/com/atproto/sync/getRepoStatus.js +0 -2
  272. package/dist/lexicons/types/com/atproto/sync/listBlobs.d.ts +0 -42
  273. package/dist/lexicons/types/com/atproto/sync/listBlobs.js +0 -2
  274. package/dist/lexicons/types/com/atproto/sync/listRepos.d.ts +0 -50
  275. package/dist/lexicons/types/com/atproto/sync/listRepos.js +0 -14
  276. package/dist/lexicons/types/com/atproto/sync/listReposByCollection.d.ts +0 -46
  277. package/dist/lexicons/types/com/atproto/sync/listReposByCollection.js +0 -14
  278. package/dist/lexicons/types/com/atproto/sync/notifyOfUpdate.d.ts +0 -30
  279. package/dist/lexicons/types/com/atproto/sync/notifyOfUpdate.js +0 -2
  280. package/dist/lexicons/types/com/atproto/sync/requestCrawl.d.ts +0 -30
  281. package/dist/lexicons/types/com/atproto/sync/requestCrawl.js +0 -2
  282. package/dist/lexicons/types/com/atproto/sync/subscribeRepos.d.ts +0 -111
  283. package/dist/lexicons/types/com/atproto/sync/subscribeRepos.js +0 -64
  284. package/dist/lexicons/types/com/atproto/temp/addReservedHandle.d.ts +0 -39
  285. package/dist/lexicons/types/com/atproto/temp/addReservedHandle.js +0 -2
  286. package/dist/lexicons/types/com/atproto/temp/checkSignupQueue.d.ts +0 -36
  287. package/dist/lexicons/types/com/atproto/temp/checkSignupQueue.js +0 -2
  288. package/dist/lexicons/types/com/atproto/temp/fetchLabels.d.ts +0 -37
  289. package/dist/lexicons/types/com/atproto/temp/fetchLabels.js +0 -2
  290. package/dist/lexicons/types/com/atproto/temp/requestPhoneVerification.d.ts +0 -29
  291. package/dist/lexicons/types/com/atproto/temp/requestPhoneVerification.js +0 -2
  292. package/dist/lexicons/types/com/clioplaylists/alpha/actor/profile.d.ts +0 -19
  293. package/dist/lexicons/types/com/clioplaylists/alpha/actor/profile.js +0 -15
  294. package/dist/lexicons/types/com/clioplaylists/alpha/feed/defs.d.ts +0 -32
  295. package/dist/lexicons/types/com/clioplaylists/alpha/feed/defs.js +0 -24
  296. package/dist/lexicons/types/com/clioplaylists/alpha/feed/getSongs.d.ts +0 -37
  297. package/dist/lexicons/types/com/clioplaylists/alpha/feed/getSongs.js +0 -2
  298. package/dist/lexicons/types/com/clioplaylists/alpha/feed/playlistIdea.d.ts +0 -32
  299. package/dist/lexicons/types/com/clioplaylists/alpha/feed/playlistIdea.js +0 -35
  300. package/dist/lexicons/types/com/clioplaylists/alpha/feed/song.js +0 -25
  301. package/dist/lexicons/util.d.ts +0 -5
  302. package/dist/lexicons/util.js +0 -13
  303. package/dist/logger.d.ts +0 -6
  304. package/dist/logger.js +0 -26
  305. package/dist/package.json +0 -74
  306. package/dist/rpc/clio_connect.d.ts +0 -103
  307. package/dist/rpc/clio_connect.js +0 -110
  308. package/dist/rpc/clio_pb.d.ts +0 -457
  309. package/dist/rpc/clio_pb.js +0 -1365
  310. package/dist/start.d.ts +0 -1
  311. package/dist/util/retry.d.ts +0 -2
  312. package/dist/util/retry.js +0 -16
  313. package/dist/util/uris.d.ts +0 -1
  314. package/dist/util/uris.js +0 -7
  315. package/dist/util.d.ts +0 -23
  316. package/dist/util.js +0 -119
  317. /package/{dist/start.js → start.js} +0 -0
@@ -1,57 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
5
- import express from 'express';
6
- import * as ComAtprotoAdminDefs from '../admin/defs';
7
- import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
8
- import * as ComAtprotoModerationDefs from './defs';
9
- export interface QueryParams {
10
- }
11
- export interface InputSchema {
12
- reasonType: ComAtprotoModerationDefs.ReasonType;
13
- /** Additional context about the content and violation. */
14
- reason?: string;
15
- subject: ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main | {
16
- $type: string;
17
- [k: string]: unknown;
18
- };
19
- [k: string]: unknown;
20
- }
21
- export interface OutputSchema {
22
- id: number;
23
- reasonType: ComAtprotoModerationDefs.ReasonType;
24
- reason?: string;
25
- subject: ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main | {
26
- $type: string;
27
- [k: string]: unknown;
28
- };
29
- reportedBy: string;
30
- createdAt: string;
31
- [k: string]: unknown;
32
- }
33
- export interface HandlerInput {
34
- encoding: 'application/json';
35
- body: InputSchema;
36
- }
37
- export interface HandlerSuccess {
38
- encoding: 'application/json';
39
- body: OutputSchema;
40
- headers?: {
41
- [key: string]: string;
42
- };
43
- }
44
- export interface HandlerError {
45
- status: number;
46
- message?: string;
47
- }
48
- export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
49
- export type HandlerReqCtx<HA extends HandlerAuth = never> = {
50
- auth: HA;
51
- params: QueryParams;
52
- input: HandlerInput;
53
- req: express.Request;
54
- res: express.Response;
55
- resetRouteRateLimits: () => Promise<void>;
56
- };
57
- export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- 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 & {});
5
- /** Spam: frequent unwanted promotion, replies, mentions */
6
- export declare const REASONSPAM = "com.atproto.moderation.defs#reasonSpam";
7
- /** Direct violation of server rules, laws, terms of service */
8
- export declare const REASONVIOLATION = "com.atproto.moderation.defs#reasonViolation";
9
- /** Misleading identity, affiliation, or content */
10
- export declare const REASONMISLEADING = "com.atproto.moderation.defs#reasonMisleading";
11
- /** Unwanted or mislabeled sexual content */
12
- export declare const REASONSEXUAL = "com.atproto.moderation.defs#reasonSexual";
13
- /** Rude, harassing, explicit, or otherwise unwelcoming behavior */
14
- export declare const REASONRUDE = "com.atproto.moderation.defs#reasonRude";
15
- /** Other: reports not falling under another report category */
16
- export declare const REASONOTHER = "com.atproto.moderation.defs#reasonOther";
17
- /** Appeal: appeal a previously taken moderation action */
18
- export declare const REASONAPPEAL = "com.atproto.moderation.defs#reasonAppeal";
19
- /** Tag describing a type of subject that might be reported. */
20
- export type SubjectType = 'account' | 'record' | 'chat' | (string & {});
@@ -1,20 +0,0 @@
1
- "use strict";
2
- /**
3
- * GENERATED CODE - DO NOT MODIFY
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.REASONAPPEAL = exports.REASONOTHER = exports.REASONRUDE = exports.REASONSEXUAL = exports.REASONMISLEADING = exports.REASONVIOLATION = exports.REASONSPAM = void 0;
7
- /** Spam: frequent unwanted promotion, replies, mentions */
8
- exports.REASONSPAM = 'com.atproto.moderation.defs#reasonSpam';
9
- /** Direct violation of server rules, laws, terms of service */
10
- exports.REASONVIOLATION = 'com.atproto.moderation.defs#reasonViolation';
11
- /** Misleading identity, affiliation, or content */
12
- exports.REASONMISLEADING = 'com.atproto.moderation.defs#reasonMisleading';
13
- /** Unwanted or mislabeled sexual content */
14
- exports.REASONSEXUAL = 'com.atproto.moderation.defs#reasonSexual';
15
- /** Rude, harassing, explicit, or otherwise unwelcoming behavior */
16
- exports.REASONRUDE = 'com.atproto.moderation.defs#reasonRude';
17
- /** Other: reports not falling under another report category */
18
- exports.REASONOTHER = 'com.atproto.moderation.defs#reasonOther';
19
- /** Appeal: appeal a previously taken moderation action */
20
- exports.REASONAPPEAL = 'com.atproto.moderation.defs#reasonAppeal';
@@ -1,98 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { ValidationResult } from '@atproto/lexicon';
5
- import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
6
- import express from 'express';
7
- import * as ComAtprotoRepoDefs from './defs';
8
- export interface QueryParams {
9
- }
10
- export interface InputSchema {
11
- /** The handle or DID of the repo (aka, current account). */
12
- repo: string;
13
- /** 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. */
14
- validate?: boolean;
15
- writes: (Create | Update | Delete)[];
16
- /** If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations. */
17
- swapCommit?: string;
18
- [k: string]: unknown;
19
- }
20
- export interface OutputSchema {
21
- commit?: ComAtprotoRepoDefs.CommitMeta;
22
- results?: (CreateResult | UpdateResult | DeleteResult)[];
23
- [k: string]: unknown;
24
- }
25
- export interface HandlerInput {
26
- encoding: 'application/json';
27
- body: InputSchema;
28
- }
29
- export interface HandlerSuccess {
30
- encoding: 'application/json';
31
- body: OutputSchema;
32
- headers?: {
33
- [key: string]: string;
34
- };
35
- }
36
- export interface HandlerError {
37
- status: number;
38
- message?: string;
39
- error?: 'InvalidSwap';
40
- }
41
- export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
42
- export type HandlerReqCtx<HA extends HandlerAuth = never> = {
43
- auth: HA;
44
- params: QueryParams;
45
- input: HandlerInput;
46
- req: express.Request;
47
- res: express.Response;
48
- resetRouteRateLimits: () => Promise<void>;
49
- };
50
- export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
51
- /** Operation which creates a new record. */
52
- export interface Create {
53
- collection: string;
54
- /** NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. */
55
- rkey?: string;
56
- value: {};
57
- [k: string]: unknown;
58
- }
59
- export declare function isCreate(v: unknown): v is Create;
60
- export declare function validateCreate(v: unknown): ValidationResult;
61
- /** Operation which updates an existing record. */
62
- export interface Update {
63
- collection: string;
64
- rkey: string;
65
- value: {};
66
- [k: string]: unknown;
67
- }
68
- export declare function isUpdate(v: unknown): v is Update;
69
- export declare function validateUpdate(v: unknown): ValidationResult;
70
- /** Operation which deletes an existing record. */
71
- export interface Delete {
72
- collection: string;
73
- rkey: string;
74
- [k: string]: unknown;
75
- }
76
- export declare function isDelete(v: unknown): v is Delete;
77
- export declare function validateDelete(v: unknown): ValidationResult;
78
- export interface CreateResult {
79
- uri: string;
80
- cid: string;
81
- validationStatus?: 'valid' | 'unknown' | (string & {});
82
- [k: string]: unknown;
83
- }
84
- export declare function isCreateResult(v: unknown): v is CreateResult;
85
- export declare function validateCreateResult(v: unknown): ValidationResult;
86
- export interface UpdateResult {
87
- uri: string;
88
- cid: string;
89
- validationStatus?: 'valid' | 'unknown' | (string & {});
90
- [k: string]: unknown;
91
- }
92
- export declare function isUpdateResult(v: unknown): v is UpdateResult;
93
- export declare function validateUpdateResult(v: unknown): ValidationResult;
94
- export interface DeleteResult {
95
- [k: string]: unknown;
96
- }
97
- export declare function isDeleteResult(v: unknown): v is DeleteResult;
98
- export declare function validateDeleteResult(v: unknown): ValidationResult;
@@ -1,64 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isCreate = isCreate;
4
- exports.validateCreate = validateCreate;
5
- exports.isUpdate = isUpdate;
6
- exports.validateUpdate = validateUpdate;
7
- exports.isDelete = isDelete;
8
- exports.validateDelete = validateDelete;
9
- exports.isCreateResult = isCreateResult;
10
- exports.validateCreateResult = validateCreateResult;
11
- exports.isUpdateResult = isUpdateResult;
12
- exports.validateUpdateResult = validateUpdateResult;
13
- exports.isDeleteResult = isDeleteResult;
14
- exports.validateDeleteResult = validateDeleteResult;
15
- const lexicons_1 = require("../../../../lexicons");
16
- const util_1 = require("../../../../util");
17
- function isCreate(v) {
18
- return ((0, util_1.isObj)(v) &&
19
- (0, util_1.hasProp)(v, '$type') &&
20
- v.$type === 'com.atproto.repo.applyWrites#create');
21
- }
22
- function validateCreate(v) {
23
- return lexicons_1.lexicons.validate('com.atproto.repo.applyWrites#create', v);
24
- }
25
- function isUpdate(v) {
26
- return ((0, util_1.isObj)(v) &&
27
- (0, util_1.hasProp)(v, '$type') &&
28
- v.$type === 'com.atproto.repo.applyWrites#update');
29
- }
30
- function validateUpdate(v) {
31
- return lexicons_1.lexicons.validate('com.atproto.repo.applyWrites#update', v);
32
- }
33
- function isDelete(v) {
34
- return ((0, util_1.isObj)(v) &&
35
- (0, util_1.hasProp)(v, '$type') &&
36
- v.$type === 'com.atproto.repo.applyWrites#delete');
37
- }
38
- function validateDelete(v) {
39
- return lexicons_1.lexicons.validate('com.atproto.repo.applyWrites#delete', v);
40
- }
41
- function isCreateResult(v) {
42
- return ((0, util_1.isObj)(v) &&
43
- (0, util_1.hasProp)(v, '$type') &&
44
- v.$type === 'com.atproto.repo.applyWrites#createResult');
45
- }
46
- function validateCreateResult(v) {
47
- return lexicons_1.lexicons.validate('com.atproto.repo.applyWrites#createResult', v);
48
- }
49
- function isUpdateResult(v) {
50
- return ((0, util_1.isObj)(v) &&
51
- (0, util_1.hasProp)(v, '$type') &&
52
- v.$type === 'com.atproto.repo.applyWrites#updateResult');
53
- }
54
- function validateUpdateResult(v) {
55
- return lexicons_1.lexicons.validate('com.atproto.repo.applyWrites#updateResult', v);
56
- }
57
- function isDeleteResult(v) {
58
- return ((0, util_1.isObj)(v) &&
59
- (0, util_1.hasProp)(v, '$type') &&
60
- v.$type === 'com.atproto.repo.applyWrites#deleteResult');
61
- }
62
- function validateDeleteResult(v) {
63
- return lexicons_1.lexicons.validate('com.atproto.repo.applyWrites#deleteResult', v);
64
- }
@@ -1,56 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
5
- import express from 'express';
6
- import * as ComAtprotoRepoDefs from './defs';
7
- export interface QueryParams {
8
- }
9
- export interface InputSchema {
10
- /** The handle or DID of the repo (aka, current account). */
11
- repo: string;
12
- /** The NSID of the record collection. */
13
- collection: string;
14
- /** The Record Key. */
15
- rkey?: string;
16
- /** 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. */
17
- validate?: boolean;
18
- /** The record itself. Must contain a $type field. */
19
- record: {};
20
- /** Compare and swap with the previous commit by CID. */
21
- swapCommit?: string;
22
- [k: string]: unknown;
23
- }
24
- export interface OutputSchema {
25
- uri: string;
26
- cid: string;
27
- commit?: ComAtprotoRepoDefs.CommitMeta;
28
- validationStatus?: 'valid' | 'unknown' | (string & {});
29
- [k: string]: unknown;
30
- }
31
- export interface HandlerInput {
32
- encoding: 'application/json';
33
- body: InputSchema;
34
- }
35
- export interface HandlerSuccess {
36
- encoding: 'application/json';
37
- body: OutputSchema;
38
- headers?: {
39
- [key: string]: string;
40
- };
41
- }
42
- export interface HandlerError {
43
- status: number;
44
- message?: string;
45
- error?: 'InvalidSwap';
46
- }
47
- export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
48
- export type HandlerReqCtx<HA extends HandlerAuth = never> = {
49
- auth: HA;
50
- params: QueryParams;
51
- input: HandlerInput;
52
- req: express.Request;
53
- res: express.Response;
54
- resetRouteRateLimits: () => Promise<void>;
55
- };
56
- export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { ValidationResult } from '@atproto/lexicon';
5
- export interface CommitMeta {
6
- cid: string;
7
- rev: string;
8
- [k: string]: unknown;
9
- }
10
- export declare function isCommitMeta(v: unknown): v is CommitMeta;
11
- export declare function validateCommitMeta(v: unknown): ValidationResult;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isCommitMeta = isCommitMeta;
4
- exports.validateCommitMeta = validateCommitMeta;
5
- const lexicons_1 = require("../../../../lexicons");
6
- const util_1 = require("../../../../util");
7
- function isCommitMeta(v) {
8
- return ((0, util_1.isObj)(v) &&
9
- (0, util_1.hasProp)(v, '$type') &&
10
- v.$type === 'com.atproto.repo.defs#commitMeta');
11
- }
12
- function validateCommitMeta(v) {
13
- return lexicons_1.lexicons.validate('com.atproto.repo.defs#commitMeta', v);
14
- }
@@ -1,51 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
5
- import express from 'express';
6
- import * as ComAtprotoRepoDefs from './defs';
7
- export interface QueryParams {
8
- }
9
- export interface InputSchema {
10
- /** The handle or DID of the repo (aka, current account). */
11
- repo: string;
12
- /** The NSID of the record collection. */
13
- collection: string;
14
- /** The Record Key. */
15
- rkey: string;
16
- /** Compare and swap with the previous record by CID. */
17
- swapRecord?: string;
18
- /** Compare and swap with the previous commit by CID. */
19
- swapCommit?: string;
20
- [k: string]: unknown;
21
- }
22
- export interface OutputSchema {
23
- commit?: ComAtprotoRepoDefs.CommitMeta;
24
- [k: string]: unknown;
25
- }
26
- export interface HandlerInput {
27
- encoding: 'application/json';
28
- body: InputSchema;
29
- }
30
- export interface HandlerSuccess {
31
- encoding: 'application/json';
32
- body: OutputSchema;
33
- headers?: {
34
- [key: string]: string;
35
- };
36
- }
37
- export interface HandlerError {
38
- status: number;
39
- message?: string;
40
- error?: 'InvalidSwap';
41
- }
42
- export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
43
- export type HandlerReqCtx<HA extends HandlerAuth = never> = {
44
- auth: HA;
45
- params: QueryParams;
46
- input: HandlerInput;
47
- req: express.Request;
48
- res: express.Response;
49
- resetRouteRateLimits: () => Promise<void>;
50
- };
51
- export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,43 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
5
- import express from 'express';
6
- export interface QueryParams {
7
- /** The handle or DID of the repo. */
8
- repo: string;
9
- }
10
- export type InputSchema = undefined;
11
- export interface OutputSchema {
12
- handle: string;
13
- did: string;
14
- /** The complete DID document for this account. */
15
- didDoc: {};
16
- /** List of all the collections (NSIDs) for which this repo contains at least one record. */
17
- collections: string[];
18
- /** Indicates if handle is currently valid (resolves bi-directionally) */
19
- handleIsCorrect: boolean;
20
- [k: string]: unknown;
21
- }
22
- export type HandlerInput = undefined;
23
- export interface HandlerSuccess {
24
- encoding: 'application/json';
25
- body: OutputSchema;
26
- headers?: {
27
- [key: string]: string;
28
- };
29
- }
30
- export interface HandlerError {
31
- status: number;
32
- message?: string;
33
- }
34
- export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
35
- export type HandlerReqCtx<HA extends HandlerAuth = never> = {
36
- auth: HA;
37
- params: QueryParams;
38
- input: HandlerInput;
39
- req: express.Request;
40
- res: express.Response;
41
- resetRouteRateLimits: () => Promise<void>;
42
- };
43
- export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,45 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
5
- import express from 'express';
6
- export interface QueryParams {
7
- /** The handle or DID of the repo. */
8
- repo: string;
9
- /** The NSID of the record collection. */
10
- collection: string;
11
- /** The Record Key. */
12
- rkey: string;
13
- /** The CID of the version of the record. If not specified, then return the most recent version. */
14
- cid?: string;
15
- }
16
- export type InputSchema = undefined;
17
- export interface OutputSchema {
18
- uri: string;
19
- cid?: string;
20
- value: {};
21
- [k: string]: unknown;
22
- }
23
- export type HandlerInput = undefined;
24
- export interface HandlerSuccess {
25
- encoding: 'application/json';
26
- body: OutputSchema;
27
- headers?: {
28
- [key: string]: string;
29
- };
30
- }
31
- export interface HandlerError {
32
- status: number;
33
- message?: string;
34
- error?: 'RecordNotFound';
35
- }
36
- export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
37
- export type HandlerReqCtx<HA extends HandlerAuth = never> = {
38
- auth: HA;
39
- params: QueryParams;
40
- input: HandlerInput;
41
- req: express.Request;
42
- res: express.Response;
43
- resetRouteRateLimits: () => Promise<void>;
44
- };
45
- export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,27 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { HandlerAuth } from '@atproto/xrpc-server';
5
- import express from 'express';
6
- import stream from 'stream';
7
- export interface QueryParams {
8
- }
9
- export type InputSchema = string | Uint8Array | Blob;
10
- export interface HandlerInput {
11
- encoding: 'application/vnd.ipld.car';
12
- body: stream.Readable;
13
- }
14
- export interface HandlerError {
15
- status: number;
16
- message?: string;
17
- }
18
- export type HandlerOutput = HandlerError | void;
19
- export type HandlerReqCtx<HA extends HandlerAuth = never> = {
20
- auth: HA;
21
- params: QueryParams;
22
- input: HandlerInput;
23
- req: express.Request;
24
- res: express.Response;
25
- resetRouteRateLimits: () => Promise<void>;
26
- };
27
- export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,45 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { ValidationResult } from '@atproto/lexicon';
5
- import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
6
- import express from 'express';
7
- export interface QueryParams {
8
- limit: number;
9
- cursor?: string;
10
- }
11
- export type InputSchema = undefined;
12
- export interface OutputSchema {
13
- cursor?: string;
14
- blobs: RecordBlob[];
15
- [k: string]: unknown;
16
- }
17
- export type HandlerInput = undefined;
18
- export interface HandlerSuccess {
19
- encoding: 'application/json';
20
- body: OutputSchema;
21
- headers?: {
22
- [key: string]: string;
23
- };
24
- }
25
- export interface HandlerError {
26
- status: number;
27
- message?: string;
28
- }
29
- export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
30
- export type HandlerReqCtx<HA extends HandlerAuth = never> = {
31
- auth: HA;
32
- params: QueryParams;
33
- input: HandlerInput;
34
- req: express.Request;
35
- res: express.Response;
36
- resetRouteRateLimits: () => Promise<void>;
37
- };
38
- export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
39
- export interface RecordBlob {
40
- cid: string;
41
- recordUri: string;
42
- [k: string]: unknown;
43
- }
44
- export declare function isRecordBlob(v: unknown): v is RecordBlob;
45
- export declare function validateRecordBlob(v: unknown): ValidationResult;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isRecordBlob = isRecordBlob;
4
- exports.validateRecordBlob = validateRecordBlob;
5
- const lexicons_1 = require("../../../../lexicons");
6
- const util_1 = require("../../../../util");
7
- function isRecordBlob(v) {
8
- return ((0, util_1.isObj)(v) &&
9
- (0, util_1.hasProp)(v, '$type') &&
10
- v.$type === 'com.atproto.repo.listMissingBlobs#recordBlob');
11
- }
12
- function validateRecordBlob(v) {
13
- return lexicons_1.lexicons.validate('com.atproto.repo.listMissingBlobs#recordBlob', v);
14
- }
@@ -1,53 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { ValidationResult } from '@atproto/lexicon';
5
- import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
6
- import express from 'express';
7
- export interface QueryParams {
8
- /** The handle or DID of the repo. */
9
- repo: string;
10
- /** The NSID of the record type. */
11
- collection: string;
12
- /** The number of records to return. */
13
- limit: number;
14
- cursor?: string;
15
- /** Flag to reverse the order of the returned records. */
16
- reverse?: boolean;
17
- }
18
- export type InputSchema = undefined;
19
- export interface OutputSchema {
20
- cursor?: string;
21
- records: Record[];
22
- [k: string]: unknown;
23
- }
24
- export type HandlerInput = undefined;
25
- export interface HandlerSuccess {
26
- encoding: 'application/json';
27
- body: OutputSchema;
28
- headers?: {
29
- [key: string]: string;
30
- };
31
- }
32
- export interface HandlerError {
33
- status: number;
34
- message?: string;
35
- }
36
- export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
37
- export type HandlerReqCtx<HA extends HandlerAuth = never> = {
38
- auth: HA;
39
- params: QueryParams;
40
- input: HandlerInput;
41
- req: express.Request;
42
- res: express.Response;
43
- resetRouteRateLimits: () => Promise<void>;
44
- };
45
- export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
46
- export interface Record {
47
- uri: string;
48
- cid: string;
49
- value: {};
50
- [k: string]: unknown;
51
- }
52
- export declare function isRecord(v: unknown): v is Record;
53
- export declare function validateRecord(v: unknown): ValidationResult;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isRecord = isRecord;
4
- exports.validateRecord = validateRecord;
5
- const lexicons_1 = require("../../../../lexicons");
6
- const util_1 = require("../../../../util");
7
- function isRecord(v) {
8
- return ((0, util_1.isObj)(v) &&
9
- (0, util_1.hasProp)(v, '$type') &&
10
- v.$type === 'com.atproto.repo.listRecords#record');
11
- }
12
- function validateRecord(v) {
13
- return lexicons_1.lexicons.validate('com.atproto.repo.listRecords#record', v);
14
- }