@atproto/pds 0.4.91 → 0.4.92

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 (762) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/bin/migration-create.ts +2 -2
  3. package/dist/account-manager/db/index.d.ts.map +1 -1
  4. package/dist/account-manager/db/index.js.map +1 -1
  5. package/dist/account-manager/db/schema/authorization-request.d.ts +1 -1
  6. package/dist/account-manager/db/schema/authorization-request.d.ts.map +1 -1
  7. package/dist/account-manager/db/schema/device.d.ts +1 -1
  8. package/dist/account-manager/db/schema/device.d.ts.map +1 -1
  9. package/dist/account-manager/db/schema/index.d.ts +7 -7
  10. package/dist/account-manager/db/schema/index.d.ts.map +1 -1
  11. package/dist/account-manager/db/schema/token.d.ts +1 -1
  12. package/dist/account-manager/db/schema/token.d.ts.map +1 -1
  13. package/dist/account-manager/db/schema/token.js.map +1 -1
  14. package/dist/account-manager/db/schema/used-refresh-token.d.ts +1 -1
  15. package/dist/account-manager/db/schema/used-refresh-token.d.ts.map +1 -1
  16. package/dist/account-manager/helpers/account.d.ts +8 -8
  17. package/dist/account-manager/helpers/account.d.ts.map +1 -1
  18. package/dist/account-manager/helpers/account.js +1 -1
  19. package/dist/account-manager/helpers/account.js.map +1 -1
  20. package/dist/account-manager/helpers/authorization-request.d.ts +1 -1
  21. package/dist/account-manager/helpers/authorization-request.d.ts.map +1 -1
  22. package/dist/account-manager/helpers/device-account.d.ts +37 -37
  23. package/dist/account-manager/helpers/device-account.d.ts.map +1 -1
  24. package/dist/account-manager/helpers/device-account.js.map +1 -1
  25. package/dist/account-manager/helpers/device.d.ts +2 -2
  26. package/dist/account-manager/helpers/device.d.ts.map +1 -1
  27. package/dist/account-manager/helpers/email-token.js +1 -1
  28. package/dist/account-manager/helpers/email-token.js.map +1 -1
  29. package/dist/account-manager/helpers/invite.d.ts.map +1 -1
  30. package/dist/account-manager/helpers/invite.js.map +1 -1
  31. package/dist/account-manager/helpers/password.d.ts +1 -1
  32. package/dist/account-manager/helpers/password.d.ts.map +1 -1
  33. package/dist/account-manager/helpers/password.js.map +1 -1
  34. package/dist/account-manager/helpers/scrypt.js +6 -6
  35. package/dist/account-manager/helpers/scrypt.js.map +1 -1
  36. package/dist/account-manager/helpers/token.d.ts +201 -201
  37. package/dist/account-manager/helpers/token.d.ts.map +1 -1
  38. package/dist/account-manager/index.d.ts +8 -3
  39. package/dist/account-manager/index.d.ts.map +1 -1
  40. package/dist/account-manager/index.js +34 -5
  41. package/dist/account-manager/index.js.map +1 -1
  42. package/dist/actor-store/actor-store-reader.d.ts +19 -0
  43. package/dist/actor-store/actor-store-reader.d.ts.map +1 -0
  44. package/dist/actor-store/actor-store-reader.js +69 -0
  45. package/dist/actor-store/actor-store-reader.js.map +1 -0
  46. package/dist/actor-store/actor-store-resources.d.ts +8 -0
  47. package/dist/actor-store/actor-store-resources.d.ts.map +1 -0
  48. package/dist/actor-store/actor-store-resources.js +3 -0
  49. package/dist/actor-store/actor-store-resources.js.map +1 -0
  50. package/dist/actor-store/actor-store-transactor.d.ts +17 -0
  51. package/dist/actor-store/actor-store-transactor.d.ts.map +1 -0
  52. package/dist/actor-store/actor-store-transactor.js +58 -0
  53. package/dist/actor-store/actor-store-transactor.js.map +1 -0
  54. package/dist/actor-store/actor-store-writer.d.ts +5 -0
  55. package/dist/actor-store/actor-store-writer.d.ts.map +1 -0
  56. package/dist/actor-store/actor-store-writer.js +14 -0
  57. package/dist/actor-store/actor-store-writer.js.map +1 -0
  58. package/dist/actor-store/actor-store.d.ts +33 -0
  59. package/dist/actor-store/actor-store.d.ts.map +1 -0
  60. package/dist/actor-store/{index.js → actor-store.js} +37 -82
  61. package/dist/actor-store/actor-store.js.map +1 -0
  62. package/dist/actor-store/blob/reader.d.ts +4 -2
  63. package/dist/actor-store/blob/reader.d.ts.map +1 -1
  64. package/dist/actor-store/blob/reader.js +14 -0
  65. package/dist/actor-store/blob/reader.js.map +1 -1
  66. package/dist/actor-store/blob/transactor.d.ts +6 -5
  67. package/dist/actor-store/blob/transactor.d.ts.map +1 -1
  68. package/dist/actor-store/blob/transactor.js +18 -5
  69. package/dist/actor-store/blob/transactor.js.map +1 -1
  70. package/dist/actor-store/db/index.d.ts +1 -1
  71. package/dist/actor-store/db/index.d.ts.map +1 -1
  72. package/dist/actor-store/db/index.js.map +1 -1
  73. package/dist/actor-store/db/schema/index.d.ts +3 -3
  74. package/dist/actor-store/db/schema/index.d.ts.map +1 -1
  75. package/dist/actor-store/migrate.d.ts +1 -1
  76. package/dist/actor-store/migrate.d.ts.map +1 -1
  77. package/dist/actor-store/migrate.js.map +1 -1
  78. package/dist/actor-store/preference/transactor.d.ts +1 -1
  79. package/dist/actor-store/preference/transactor.d.ts.map +1 -1
  80. package/dist/actor-store/preference/transactor.js.map +1 -1
  81. package/dist/actor-store/record/reader.d.ts +18 -6
  82. package/dist/actor-store/record/reader.d.ts.map +1 -1
  83. package/dist/actor-store/record/reader.js +104 -2
  84. package/dist/actor-store/record/reader.js.map +1 -1
  85. package/dist/actor-store/record/transactor.d.ts +3 -3
  86. package/dist/actor-store/record/transactor.d.ts.map +1 -1
  87. package/dist/actor-store/record/transactor.js.map +1 -1
  88. package/dist/actor-store/repo/reader.d.ts +1 -1
  89. package/dist/actor-store/repo/reader.d.ts.map +1 -1
  90. package/dist/actor-store/repo/reader.js +1 -1
  91. package/dist/actor-store/repo/reader.js.map +1 -1
  92. package/dist/actor-store/repo/sql-repo-reader.d.ts +2 -2
  93. package/dist/actor-store/repo/sql-repo-reader.d.ts.map +1 -1
  94. package/dist/actor-store/repo/sql-repo-reader.js +6 -5
  95. package/dist/actor-store/repo/sql-repo-reader.js.map +1 -1
  96. package/dist/actor-store/repo/sql-repo-transactor.d.ts +1 -1
  97. package/dist/actor-store/repo/sql-repo-transactor.d.ts.map +1 -1
  98. package/dist/actor-store/repo/sql-repo-transactor.js +2 -2
  99. package/dist/actor-store/repo/sql-repo-transactor.js.map +1 -1
  100. package/dist/actor-store/repo/transactor.d.ts +7 -6
  101. package/dist/actor-store/repo/transactor.d.ts.map +1 -1
  102. package/dist/actor-store/repo/transactor.js +22 -15
  103. package/dist/actor-store/repo/transactor.js.map +1 -1
  104. package/dist/api/app/bsky/actor/getPreferences.d.ts +1 -1
  105. package/dist/api/app/bsky/actor/getPreferences.d.ts.map +1 -1
  106. package/dist/api/app/bsky/actor/getPreferences.js +1 -1
  107. package/dist/api/app/bsky/actor/getPreferences.js.map +1 -1
  108. package/dist/api/app/bsky/actor/getProfile.d.ts +1 -1
  109. package/dist/api/app/bsky/actor/getProfile.d.ts.map +1 -1
  110. package/dist/api/app/bsky/actor/getProfile.js +1 -2
  111. package/dist/api/app/bsky/actor/getProfile.js.map +1 -1
  112. package/dist/api/app/bsky/actor/getProfiles.d.ts +1 -1
  113. package/dist/api/app/bsky/actor/getProfiles.d.ts.map +1 -1
  114. package/dist/api/app/bsky/actor/getProfiles.js +1 -2
  115. package/dist/api/app/bsky/actor/getProfiles.js.map +1 -1
  116. package/dist/api/app/bsky/actor/index.d.ts +1 -1
  117. package/dist/api/app/bsky/actor/index.d.ts.map +1 -1
  118. package/dist/api/app/bsky/actor/index.js.map +1 -1
  119. package/dist/api/app/bsky/actor/putPreferences.d.ts +1 -1
  120. package/dist/api/app/bsky/actor/putPreferences.d.ts.map +1 -1
  121. package/dist/api/app/bsky/actor/putPreferences.js +1 -1
  122. package/dist/api/app/bsky/actor/putPreferences.js.map +1 -1
  123. package/dist/api/app/bsky/feed/getActorLikes.d.ts +1 -1
  124. package/dist/api/app/bsky/feed/getActorLikes.d.ts.map +1 -1
  125. package/dist/api/app/bsky/feed/getActorLikes.js +1 -2
  126. package/dist/api/app/bsky/feed/getActorLikes.js.map +1 -1
  127. package/dist/api/app/bsky/feed/getAuthorFeed.d.ts +1 -1
  128. package/dist/api/app/bsky/feed/getAuthorFeed.d.ts.map +1 -1
  129. package/dist/api/app/bsky/feed/getAuthorFeed.js +1 -2
  130. package/dist/api/app/bsky/feed/getAuthorFeed.js.map +1 -1
  131. package/dist/api/app/bsky/feed/getFeed.d.ts +1 -1
  132. package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
  133. package/dist/api/app/bsky/feed/getFeed.js +6 -7
  134. package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
  135. package/dist/api/app/bsky/feed/getPostThread.d.ts +1 -1
  136. package/dist/api/app/bsky/feed/getPostThread.d.ts.map +1 -1
  137. package/dist/api/app/bsky/feed/getPostThread.js +4 -5
  138. package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
  139. package/dist/api/app/bsky/feed/getTimeline.d.ts +1 -1
  140. package/dist/api/app/bsky/feed/getTimeline.d.ts.map +1 -1
  141. package/dist/api/app/bsky/feed/getTimeline.js +1 -2
  142. package/dist/api/app/bsky/feed/getTimeline.js.map +1 -1
  143. package/dist/api/app/bsky/feed/index.d.ts +1 -1
  144. package/dist/api/app/bsky/feed/index.d.ts.map +1 -1
  145. package/dist/api/app/bsky/index.d.ts +1 -1
  146. package/dist/api/app/bsky/index.d.ts.map +1 -1
  147. package/dist/api/app/bsky/notification/index.d.ts +1 -1
  148. package/dist/api/app/bsky/notification/index.d.ts.map +1 -1
  149. package/dist/api/app/bsky/notification/registerPush.d.ts +1 -1
  150. package/dist/api/app/bsky/notification/registerPush.d.ts.map +1 -1
  151. package/dist/api/app/bsky/notification/registerPush.js +6 -6
  152. package/dist/api/app/bsky/notification/registerPush.js.map +1 -1
  153. package/dist/api/app/bsky/util/resolver.d.ts +1 -1
  154. package/dist/api/app/bsky/util/resolver.d.ts.map +1 -1
  155. package/dist/api/app/bsky/util/resolver.js.map +1 -1
  156. package/dist/api/com/atproto/admin/deleteAccount.d.ts +1 -1
  157. package/dist/api/com/atproto/admin/deleteAccount.d.ts.map +1 -1
  158. package/dist/api/com/atproto/admin/deleteAccount.js.map +1 -1
  159. package/dist/api/com/atproto/admin/disableAccountInvites.d.ts +1 -1
  160. package/dist/api/com/atproto/admin/disableAccountInvites.d.ts.map +1 -1
  161. package/dist/api/com/atproto/admin/disableInviteCodes.d.ts +1 -1
  162. package/dist/api/com/atproto/admin/disableInviteCodes.d.ts.map +1 -1
  163. package/dist/api/com/atproto/admin/enableAccountInvites.d.ts +1 -1
  164. package/dist/api/com/atproto/admin/enableAccountInvites.d.ts.map +1 -1
  165. package/dist/api/com/atproto/admin/getAccountInfo.d.ts +1 -1
  166. package/dist/api/com/atproto/admin/getAccountInfo.d.ts.map +1 -1
  167. package/dist/api/com/atproto/admin/getAccountInfo.js.map +1 -1
  168. package/dist/api/com/atproto/admin/getAccountInfos.d.ts +1 -1
  169. package/dist/api/com/atproto/admin/getAccountInfos.d.ts.map +1 -1
  170. package/dist/api/com/atproto/admin/getInviteCodes.d.ts +2 -2
  171. package/dist/api/com/atproto/admin/getInviteCodes.d.ts.map +1 -1
  172. package/dist/api/com/atproto/admin/getInviteCodes.js +1 -1
  173. package/dist/api/com/atproto/admin/getInviteCodes.js.map +1 -1
  174. package/dist/api/com/atproto/admin/getSubjectStatus.d.ts +1 -1
  175. package/dist/api/com/atproto/admin/getSubjectStatus.d.ts.map +1 -1
  176. package/dist/api/com/atproto/admin/index.d.ts +1 -1
  177. package/dist/api/com/atproto/admin/index.d.ts.map +1 -1
  178. package/dist/api/com/atproto/admin/index.js +8 -8
  179. package/dist/api/com/atproto/admin/index.js.map +1 -1
  180. package/dist/api/com/atproto/admin/sendEmail.d.ts +1 -1
  181. package/dist/api/com/atproto/admin/sendEmail.d.ts.map +1 -1
  182. package/dist/api/com/atproto/admin/sendEmail.js +1 -1
  183. package/dist/api/com/atproto/admin/sendEmail.js.map +1 -1
  184. package/dist/api/com/atproto/admin/updateAccountEmail.d.ts +1 -1
  185. package/dist/api/com/atproto/admin/updateAccountEmail.d.ts.map +1 -1
  186. package/dist/api/com/atproto/admin/updateAccountHandle.d.ts +1 -1
  187. package/dist/api/com/atproto/admin/updateAccountHandle.d.ts.map +1 -1
  188. package/dist/api/com/atproto/admin/updateAccountHandle.js.map +1 -1
  189. package/dist/api/com/atproto/admin/updateAccountPassword.d.ts +1 -1
  190. package/dist/api/com/atproto/admin/updateAccountPassword.d.ts.map +1 -1
  191. package/dist/api/com/atproto/admin/updateSubjectStatus.d.ts +1 -1
  192. package/dist/api/com/atproto/admin/updateSubjectStatus.d.ts.map +1 -1
  193. package/dist/api/com/atproto/admin/updateSubjectStatus.js +1 -1
  194. package/dist/api/com/atproto/admin/updateSubjectStatus.js.map +1 -1
  195. package/dist/api/com/atproto/admin/util.d.ts.map +1 -1
  196. package/dist/api/com/atproto/admin/util.js.map +1 -1
  197. package/dist/api/com/atproto/identity/getRecommendedDidCredentials.d.ts +1 -1
  198. package/dist/api/com/atproto/identity/getRecommendedDidCredentials.d.ts.map +1 -1
  199. package/dist/api/com/atproto/identity/index.d.ts +1 -1
  200. package/dist/api/com/atproto/identity/index.d.ts.map +1 -1
  201. package/dist/api/com/atproto/identity/index.js +2 -2
  202. package/dist/api/com/atproto/identity/index.js.map +1 -1
  203. package/dist/api/com/atproto/identity/requestPlcOperationSignature.d.ts +1 -1
  204. package/dist/api/com/atproto/identity/requestPlcOperationSignature.d.ts.map +1 -1
  205. package/dist/api/com/atproto/identity/requestPlcOperationSignature.js +1 -1
  206. package/dist/api/com/atproto/identity/requestPlcOperationSignature.js.map +1 -1
  207. package/dist/api/com/atproto/identity/resolveHandle.d.ts +1 -1
  208. package/dist/api/com/atproto/identity/resolveHandle.d.ts.map +1 -1
  209. package/dist/api/com/atproto/identity/resolveHandle.js +11 -14
  210. package/dist/api/com/atproto/identity/resolveHandle.js.map +1 -1
  211. package/dist/api/com/atproto/identity/signPlcOperation.d.ts +1 -1
  212. package/dist/api/com/atproto/identity/signPlcOperation.d.ts.map +1 -1
  213. package/dist/api/com/atproto/identity/signPlcOperation.js +1 -1
  214. package/dist/api/com/atproto/identity/signPlcOperation.js.map +1 -1
  215. package/dist/api/com/atproto/identity/submitPlcOperation.d.ts +1 -1
  216. package/dist/api/com/atproto/identity/submitPlcOperation.d.ts.map +1 -1
  217. package/dist/api/com/atproto/identity/submitPlcOperation.js.map +1 -1
  218. package/dist/api/com/atproto/identity/updateHandle.d.ts +1 -1
  219. package/dist/api/com/atproto/identity/updateHandle.d.ts.map +1 -1
  220. package/dist/api/com/atproto/identity/updateHandle.js +2 -2
  221. package/dist/api/com/atproto/identity/updateHandle.js.map +1 -1
  222. package/dist/api/com/atproto/index.d.ts +1 -1
  223. package/dist/api/com/atproto/index.d.ts.map +1 -1
  224. package/dist/api/com/atproto/moderation/createReport.d.ts +1 -1
  225. package/dist/api/com/atproto/moderation/createReport.d.ts.map +1 -1
  226. package/dist/api/com/atproto/moderation/createReport.js +2 -2
  227. package/dist/api/com/atproto/moderation/createReport.js.map +1 -1
  228. package/dist/api/com/atproto/moderation/index.d.ts +1 -1
  229. package/dist/api/com/atproto/moderation/index.d.ts.map +1 -1
  230. package/dist/api/com/atproto/repo/applyWrites.d.ts +1 -1
  231. package/dist/api/com/atproto/repo/applyWrites.d.ts.map +1 -1
  232. package/dist/api/com/atproto/repo/applyWrites.js +4 -5
  233. package/dist/api/com/atproto/repo/applyWrites.js.map +1 -1
  234. package/dist/api/com/atproto/repo/createRecord.d.ts +1 -1
  235. package/dist/api/com/atproto/repo/createRecord.d.ts.map +1 -1
  236. package/dist/api/com/atproto/repo/createRecord.js +3 -4
  237. package/dist/api/com/atproto/repo/createRecord.js.map +1 -1
  238. package/dist/api/com/atproto/repo/deleteRecord.d.ts +1 -1
  239. package/dist/api/com/atproto/repo/deleteRecord.d.ts.map +1 -1
  240. package/dist/api/com/atproto/repo/deleteRecord.js +3 -4
  241. package/dist/api/com/atproto/repo/deleteRecord.js.map +1 -1
  242. package/dist/api/com/atproto/repo/describeRepo.d.ts +1 -1
  243. package/dist/api/com/atproto/repo/describeRepo.d.ts.map +1 -1
  244. package/dist/api/com/atproto/repo/describeRepo.js +1 -1
  245. package/dist/api/com/atproto/repo/describeRepo.js.map +1 -1
  246. package/dist/api/com/atproto/repo/getRecord.d.ts +1 -1
  247. package/dist/api/com/atproto/repo/getRecord.d.ts.map +1 -1
  248. package/dist/api/com/atproto/repo/getRecord.js.map +1 -1
  249. package/dist/api/com/atproto/repo/importRepo.d.ts +2 -2
  250. package/dist/api/com/atproto/repo/importRepo.d.ts.map +1 -1
  251. package/dist/api/com/atproto/repo/importRepo.js +6 -22
  252. package/dist/api/com/atproto/repo/importRepo.js.map +1 -1
  253. package/dist/api/com/atproto/repo/index.d.ts +1 -1
  254. package/dist/api/com/atproto/repo/index.d.ts.map +1 -1
  255. package/dist/api/com/atproto/repo/index.js +2 -2
  256. package/dist/api/com/atproto/repo/index.js.map +1 -1
  257. package/dist/api/com/atproto/repo/listMissingBlobs.d.ts +1 -1
  258. package/dist/api/com/atproto/repo/listMissingBlobs.d.ts.map +1 -1
  259. package/dist/api/com/atproto/repo/listRecords.d.ts +1 -1
  260. package/dist/api/com/atproto/repo/listRecords.d.ts.map +1 -1
  261. package/dist/api/com/atproto/repo/listRecords.js +1 -1
  262. package/dist/api/com/atproto/repo/listRecords.js.map +1 -1
  263. package/dist/api/com/atproto/repo/putRecord.d.ts +1 -1
  264. package/dist/api/com/atproto/repo/putRecord.d.ts.map +1 -1
  265. package/dist/api/com/atproto/repo/putRecord.js +5 -6
  266. package/dist/api/com/atproto/repo/putRecord.js.map +1 -1
  267. package/dist/api/com/atproto/repo/uploadBlob.d.ts +1 -1
  268. package/dist/api/com/atproto/repo/uploadBlob.d.ts.map +1 -1
  269. package/dist/api/com/atproto/server/activateAccount.d.ts +1 -1
  270. package/dist/api/com/atproto/server/activateAccount.d.ts.map +1 -1
  271. package/dist/api/com/atproto/server/activateAccount.js +1 -1
  272. package/dist/api/com/atproto/server/activateAccount.js.map +1 -1
  273. package/dist/api/com/atproto/server/checkAccountStatus.d.ts +1 -1
  274. package/dist/api/com/atproto/server/checkAccountStatus.d.ts.map +1 -1
  275. package/dist/api/com/atproto/server/confirmEmail.d.ts +1 -1
  276. package/dist/api/com/atproto/server/confirmEmail.d.ts.map +1 -1
  277. package/dist/api/com/atproto/server/confirmEmail.js.map +1 -1
  278. package/dist/api/com/atproto/server/createAccount.d.ts +1 -1
  279. package/dist/api/com/atproto/server/createAccount.d.ts.map +1 -1
  280. package/dist/api/com/atproto/server/createAccount.js +5 -5
  281. package/dist/api/com/atproto/server/createAccount.js.map +1 -1
  282. package/dist/api/com/atproto/server/createAppPassword.d.ts +1 -1
  283. package/dist/api/com/atproto/server/createAppPassword.d.ts.map +1 -1
  284. package/dist/api/com/atproto/server/createAppPassword.js.map +1 -1
  285. package/dist/api/com/atproto/server/createInviteCode.d.ts +1 -1
  286. package/dist/api/com/atproto/server/createInviteCode.d.ts.map +1 -1
  287. package/dist/api/com/atproto/server/createInviteCodes.d.ts +1 -1
  288. package/dist/api/com/atproto/server/createInviteCodes.d.ts.map +1 -1
  289. package/dist/api/com/atproto/server/createInviteCodes.js.map +1 -1
  290. package/dist/api/com/atproto/server/createSession.d.ts +1 -1
  291. package/dist/api/com/atproto/server/createSession.d.ts.map +1 -1
  292. package/dist/api/com/atproto/server/createSession.js.map +1 -1
  293. package/dist/api/com/atproto/server/deactivateAccount.d.ts +1 -1
  294. package/dist/api/com/atproto/server/deactivateAccount.d.ts.map +1 -1
  295. package/dist/api/com/atproto/server/deleteAccount.d.ts +1 -1
  296. package/dist/api/com/atproto/server/deleteAccount.d.ts.map +1 -1
  297. package/dist/api/com/atproto/server/deleteAccount.js +1 -1
  298. package/dist/api/com/atproto/server/deleteAccount.js.map +1 -1
  299. package/dist/api/com/atproto/server/deleteSession.d.ts +1 -1
  300. package/dist/api/com/atproto/server/deleteSession.d.ts.map +1 -1
  301. package/dist/api/com/atproto/server/describeServer.d.ts +1 -1
  302. package/dist/api/com/atproto/server/describeServer.d.ts.map +1 -1
  303. package/dist/api/com/atproto/server/getAccountInviteCodes.d.ts +1 -1
  304. package/dist/api/com/atproto/server/getAccountInviteCodes.d.ts.map +1 -1
  305. package/dist/api/com/atproto/server/getAccountInviteCodes.js +1 -1
  306. package/dist/api/com/atproto/server/getAccountInviteCodes.js.map +1 -1
  307. package/dist/api/com/atproto/server/getServiceAuth.d.ts +1 -1
  308. package/dist/api/com/atproto/server/getServiceAuth.d.ts.map +1 -1
  309. package/dist/api/com/atproto/server/getServiceAuth.js +2 -2
  310. package/dist/api/com/atproto/server/getServiceAuth.js.map +1 -1
  311. package/dist/api/com/atproto/server/getSession.d.ts +1 -1
  312. package/dist/api/com/atproto/server/getSession.d.ts.map +1 -1
  313. package/dist/api/com/atproto/server/getSession.js +2 -2
  314. package/dist/api/com/atproto/server/getSession.js.map +1 -1
  315. package/dist/api/com/atproto/server/index.d.ts +1 -1
  316. package/dist/api/com/atproto/server/index.d.ts.map +1 -1
  317. package/dist/api/com/atproto/server/index.js +17 -17
  318. package/dist/api/com/atproto/server/index.js.map +1 -1
  319. package/dist/api/com/atproto/server/listAppPasswords.d.ts +1 -1
  320. package/dist/api/com/atproto/server/listAppPasswords.d.ts.map +1 -1
  321. package/dist/api/com/atproto/server/listAppPasswords.js.map +1 -1
  322. package/dist/api/com/atproto/server/refreshSession.d.ts +1 -1
  323. package/dist/api/com/atproto/server/refreshSession.d.ts.map +1 -1
  324. package/dist/api/com/atproto/server/refreshSession.js +1 -1
  325. package/dist/api/com/atproto/server/refreshSession.js.map +1 -1
  326. package/dist/api/com/atproto/server/requestAccountDelete.d.ts +1 -1
  327. package/dist/api/com/atproto/server/requestAccountDelete.d.ts.map +1 -1
  328. package/dist/api/com/atproto/server/requestAccountDelete.js.map +1 -1
  329. package/dist/api/com/atproto/server/requestEmailConfirmation.d.ts +1 -1
  330. package/dist/api/com/atproto/server/requestEmailConfirmation.d.ts.map +1 -1
  331. package/dist/api/com/atproto/server/requestEmailConfirmation.js.map +1 -1
  332. package/dist/api/com/atproto/server/requestEmailUpdate.d.ts +1 -1
  333. package/dist/api/com/atproto/server/requestEmailUpdate.d.ts.map +1 -1
  334. package/dist/api/com/atproto/server/requestEmailUpdate.js +1 -1
  335. package/dist/api/com/atproto/server/requestEmailUpdate.js.map +1 -1
  336. package/dist/api/com/atproto/server/requestPasswordReset.d.ts +1 -1
  337. package/dist/api/com/atproto/server/requestPasswordReset.d.ts.map +1 -1
  338. package/dist/api/com/atproto/server/reserveSigningKey.d.ts +1 -1
  339. package/dist/api/com/atproto/server/reserveSigningKey.d.ts.map +1 -1
  340. package/dist/api/com/atproto/server/resetPassword.d.ts +1 -1
  341. package/dist/api/com/atproto/server/resetPassword.d.ts.map +1 -1
  342. package/dist/api/com/atproto/server/resetPassword.js.map +1 -1
  343. package/dist/api/com/atproto/server/revokeAppPassword.d.ts +1 -1
  344. package/dist/api/com/atproto/server/revokeAppPassword.d.ts.map +1 -1
  345. package/dist/api/com/atproto/server/revokeAppPassword.js.map +1 -1
  346. package/dist/api/com/atproto/server/updateEmail.d.ts +1 -1
  347. package/dist/api/com/atproto/server/updateEmail.d.ts.map +1 -1
  348. package/dist/api/com/atproto/server/updateEmail.js +1 -1
  349. package/dist/api/com/atproto/server/updateEmail.js.map +1 -1
  350. package/dist/api/com/atproto/server/util.d.ts +1 -1
  351. package/dist/api/com/atproto/server/util.d.ts.map +1 -1
  352. package/dist/api/com/atproto/server/util.js +2 -2
  353. package/dist/api/com/atproto/server/util.js.map +1 -1
  354. package/dist/api/com/atproto/sync/deprecated/getCheckout.d.ts +1 -1
  355. package/dist/api/com/atproto/sync/deprecated/getCheckout.d.ts.map +1 -1
  356. package/dist/api/com/atproto/sync/deprecated/getHead.d.ts +1 -1
  357. package/dist/api/com/atproto/sync/deprecated/getHead.d.ts.map +1 -1
  358. package/dist/api/com/atproto/sync/getBlob.d.ts +1 -1
  359. package/dist/api/com/atproto/sync/getBlob.d.ts.map +1 -1
  360. package/dist/api/com/atproto/sync/getBlob.js +2 -2
  361. package/dist/api/com/atproto/sync/getBlob.js.map +1 -1
  362. package/dist/api/com/atproto/sync/getBlocks.d.ts +1 -1
  363. package/dist/api/com/atproto/sync/getBlocks.d.ts.map +1 -1
  364. package/dist/api/com/atproto/sync/getBlocks.js +1 -1
  365. package/dist/api/com/atproto/sync/getBlocks.js.map +1 -1
  366. package/dist/api/com/atproto/sync/getLatestCommit.d.ts +1 -1
  367. package/dist/api/com/atproto/sync/getLatestCommit.d.ts.map +1 -1
  368. package/dist/api/com/atproto/sync/getRecord.d.ts +1 -1
  369. package/dist/api/com/atproto/sync/getRecord.d.ts.map +1 -1
  370. package/dist/api/com/atproto/sync/getRecord.js +1 -1
  371. package/dist/api/com/atproto/sync/getRecord.js.map +1 -1
  372. package/dist/api/com/atproto/sync/getRepo.d.ts +2 -2
  373. package/dist/api/com/atproto/sync/getRepo.d.ts.map +1 -1
  374. package/dist/api/com/atproto/sync/getRepo.js +1 -1
  375. package/dist/api/com/atproto/sync/getRepo.js.map +1 -1
  376. package/dist/api/com/atproto/sync/getRepoStatus.d.ts +1 -1
  377. package/dist/api/com/atproto/sync/getRepoStatus.d.ts.map +1 -1
  378. package/dist/api/com/atproto/sync/getRepoStatus.js +1 -1
  379. package/dist/api/com/atproto/sync/getRepoStatus.js.map +1 -1
  380. package/dist/api/com/atproto/sync/index.d.ts +1 -1
  381. package/dist/api/com/atproto/sync/index.d.ts.map +1 -1
  382. package/dist/api/com/atproto/sync/index.js +4 -4
  383. package/dist/api/com/atproto/sync/index.js.map +1 -1
  384. package/dist/api/com/atproto/sync/listBlobs.d.ts +1 -1
  385. package/dist/api/com/atproto/sync/listBlobs.d.ts.map +1 -1
  386. package/dist/api/com/atproto/sync/listBlobs.js +1 -1
  387. package/dist/api/com/atproto/sync/listBlobs.js.map +1 -1
  388. package/dist/api/com/atproto/sync/listRepos.d.ts +2 -2
  389. package/dist/api/com/atproto/sync/listRepos.d.ts.map +1 -1
  390. package/dist/api/com/atproto/sync/listRepos.js +1 -1
  391. package/dist/api/com/atproto/sync/listRepos.js.map +1 -1
  392. package/dist/api/com/atproto/sync/subscribeRepos.d.ts +1 -1
  393. package/dist/api/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
  394. package/dist/api/com/atproto/sync/subscribeRepos.js +2 -5
  395. package/dist/api/com/atproto/sync/subscribeRepos.js.map +1 -1
  396. package/dist/api/com/atproto/sync/util.d.ts +1 -1
  397. package/dist/api/com/atproto/sync/util.d.ts.map +1 -1
  398. package/dist/api/com/atproto/temp/checkSignupQueue.d.ts +1 -1
  399. package/dist/api/com/atproto/temp/checkSignupQueue.d.ts.map +1 -1
  400. package/dist/api/com/atproto/temp/checkSignupQueue.js +1 -1
  401. package/dist/api/com/atproto/temp/checkSignupQueue.js.map +1 -1
  402. package/dist/api/com/atproto/temp/index.d.ts +1 -1
  403. package/dist/api/com/atproto/temp/index.d.ts.map +1 -1
  404. package/dist/api/index.d.ts +1 -1
  405. package/dist/api/index.d.ts.map +1 -1
  406. package/dist/api/index.js +1 -1
  407. package/dist/api/index.js.map +1 -1
  408. package/dist/api/proxy.d.ts +1 -1
  409. package/dist/api/proxy.d.ts.map +1 -1
  410. package/dist/api/proxy.js.map +1 -1
  411. package/dist/auth-routes.d.ts +1 -1
  412. package/dist/auth-routes.d.ts.map +1 -1
  413. package/dist/auth-routes.js +1 -1
  414. package/dist/auth-routes.js.map +1 -1
  415. package/dist/auth-verifier.d.ts +1 -1
  416. package/dist/auth-verifier.d.ts.map +1 -1
  417. package/dist/auth-verifier.js +2 -2
  418. package/dist/auth-verifier.js.map +1 -1
  419. package/dist/basic-routes.d.ts +3 -3
  420. package/dist/basic-routes.d.ts.map +1 -1
  421. package/dist/basic-routes.js +2 -5
  422. package/dist/basic-routes.js.map +1 -1
  423. package/dist/bsky-app-view.d.ts +15 -0
  424. package/dist/bsky-app-view.d.ts.map +1 -0
  425. package/dist/bsky-app-view.js +43 -0
  426. package/dist/bsky-app-view.js.map +1 -0
  427. package/dist/config/config.js +1 -1
  428. package/dist/config/config.js.map +1 -1
  429. package/dist/context.d.ts +15 -15
  430. package/dist/context.d.ts.map +1 -1
  431. package/dist/context.js +30 -36
  432. package/dist/context.js.map +1 -1
  433. package/dist/crawlers.d.ts.map +1 -1
  434. package/dist/crawlers.js +1 -1
  435. package/dist/crawlers.js.map +1 -1
  436. package/dist/db/db.d.ts +2 -2
  437. package/dist/db/db.d.ts.map +1 -1
  438. package/dist/db/db.js +4 -4
  439. package/dist/db/db.js.map +1 -1
  440. package/dist/db/migrator.d.ts +1 -1
  441. package/dist/db/migrator.d.ts.map +1 -1
  442. package/dist/db/tables/moderation.d.ts +1 -1
  443. package/dist/db/tables/moderation.d.ts.map +1 -1
  444. package/dist/db/util.d.ts.map +1 -1
  445. package/dist/db/util.js +1 -1
  446. package/dist/db/util.js.map +1 -1
  447. package/dist/did-cache/db/index.d.ts.map +1 -1
  448. package/dist/did-cache/db/index.js.map +1 -1
  449. package/dist/disk-blobstore.d.ts +1 -2
  450. package/dist/disk-blobstore.d.ts.map +1 -1
  451. package/dist/disk-blobstore.js +17 -18
  452. package/dist/disk-blobstore.js.map +1 -1
  453. package/dist/error.d.ts.map +1 -1
  454. package/dist/error.js +1 -1
  455. package/dist/error.js.map +1 -1
  456. package/dist/handle/index.d.ts +1 -1
  457. package/dist/handle/index.d.ts.map +1 -1
  458. package/dist/handle/index.js +1 -1
  459. package/dist/handle/index.js.map +1 -1
  460. package/dist/image/image-url-builder.d.ts +8 -0
  461. package/dist/image/image-url-builder.d.ts.map +1 -0
  462. package/dist/image/image-url-builder.js +26 -0
  463. package/dist/image/image-url-builder.js.map +1 -0
  464. package/dist/image/index.d.ts +1 -1
  465. package/dist/image/index.d.ts.map +1 -1
  466. package/dist/image/index.js +1 -1
  467. package/dist/image/index.js.map +1 -1
  468. package/dist/index.d.ts +2 -2
  469. package/dist/index.d.ts.map +1 -1
  470. package/dist/index.js +10 -10
  471. package/dist/index.js.map +1 -1
  472. package/dist/lexicon/lexicons.d.ts +56 -2
  473. package/dist/lexicon/lexicons.d.ts.map +1 -1
  474. package/dist/lexicon/lexicons.js +32 -0
  475. package/dist/lexicon/lexicons.js.map +1 -1
  476. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +19 -1
  477. package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
  478. package/dist/lexicon/types/app/bsky/actor/defs.js +10 -0
  479. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  480. package/dist/lexicon/types/app/bsky/feed/postgate.d.ts +1 -0
  481. package/dist/lexicon/types/app/bsky/feed/postgate.d.ts.map +1 -1
  482. package/dist/lexicon/types/app/bsky/feed/postgate.js.map +1 -1
  483. package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts +1 -0
  484. package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts.map +1 -1
  485. package/dist/lexicon/types/app/bsky/feed/threadgate.js.map +1 -1
  486. package/dist/logger.js +2 -5
  487. package/dist/logger.js.map +1 -1
  488. package/dist/mailer/index.d.ts.map +1 -1
  489. package/dist/mailer/index.js.map +1 -1
  490. package/dist/mailer/moderation.d.ts.map +1 -1
  491. package/dist/mailer/moderation.js.map +1 -1
  492. package/dist/oauth/provider.d.ts +1 -5
  493. package/dist/oauth/provider.d.ts.map +1 -1
  494. package/dist/oauth/provider.js +2 -6
  495. package/dist/oauth/provider.js.map +1 -1
  496. package/dist/pipethrough.d.ts +2 -2
  497. package/dist/pipethrough.d.ts.map +1 -1
  498. package/dist/pipethrough.js +1 -1
  499. package/dist/pipethrough.js.map +1 -1
  500. package/dist/read-after-write/types.d.ts +3 -3
  501. package/dist/read-after-write/types.d.ts.map +1 -1
  502. package/dist/read-after-write/util.d.ts +2 -2
  503. package/dist/read-after-write/util.d.ts.map +1 -1
  504. package/dist/read-after-write/util.js +1 -2
  505. package/dist/read-after-write/util.js.map +1 -1
  506. package/dist/read-after-write/viewer.d.ts +16 -31
  507. package/dist/read-after-write/viewer.d.ts.map +1 -1
  508. package/dist/read-after-write/viewer.js +28 -110
  509. package/dist/read-after-write/viewer.js.map +1 -1
  510. package/dist/redis.js +2 -2
  511. package/dist/redis.js.map +1 -1
  512. package/dist/repo/prepare.d.ts +2 -2
  513. package/dist/repo/prepare.d.ts.map +1 -1
  514. package/dist/repo/prepare.js +6 -6
  515. package/dist/repo/prepare.js.map +1 -1
  516. package/dist/repo/types.d.ts +2 -2
  517. package/dist/repo/types.d.ts.map +1 -1
  518. package/dist/scripts/rebuild-repo.d.ts +1 -1
  519. package/dist/scripts/rebuild-repo.d.ts.map +1 -1
  520. package/dist/scripts/rebuild-repo.js +3 -46
  521. package/dist/scripts/rebuild-repo.js.map +1 -1
  522. package/dist/sequencer/db/index.d.ts.map +1 -1
  523. package/dist/sequencer/db/index.js.map +1 -1
  524. package/dist/sequencer/events.d.ts +7 -7
  525. package/dist/sequencer/events.d.ts.map +1 -1
  526. package/dist/sequencer/events.js.map +1 -1
  527. package/dist/sequencer/outbox.d.ts +1 -2
  528. package/dist/sequencer/outbox.d.ts.map +1 -1
  529. package/dist/sequencer/outbox.js +0 -1
  530. package/dist/sequencer/outbox.js.map +1 -1
  531. package/dist/sequencer/sequencer.d.ts +4 -4
  532. package/dist/sequencer/sequencer.d.ts.map +1 -1
  533. package/dist/sequencer/sequencer.js +9 -9
  534. package/dist/sequencer/sequencer.js.map +1 -1
  535. package/dist/util/compression.js.map +1 -1
  536. package/dist/util/params.d.ts.map +1 -1
  537. package/dist/util/params.js +1 -1
  538. package/dist/util/params.js.map +1 -1
  539. package/dist/well-known.d.ts +3 -3
  540. package/dist/well-known.d.ts.map +1 -1
  541. package/dist/well-known.js +2 -5
  542. package/dist/well-known.js.map +1 -1
  543. package/package.json +21 -18
  544. package/src/account-manager/db/index.ts +1 -1
  545. package/src/account-manager/db/schema/authorization-request.ts +1 -1
  546. package/src/account-manager/db/schema/device.ts +1 -1
  547. package/src/account-manager/db/schema/index.ts +7 -7
  548. package/src/account-manager/db/schema/token.ts +1 -2
  549. package/src/account-manager/db/schema/used-refresh-token.ts +1 -1
  550. package/src/account-manager/helpers/account.ts +2 -2
  551. package/src/account-manager/helpers/authorization-request.ts +2 -2
  552. package/src/account-manager/helpers/device-account.ts +1 -2
  553. package/src/account-manager/helpers/device.ts +3 -3
  554. package/src/account-manager/helpers/email-token.ts +1 -1
  555. package/src/account-manager/helpers/invite.ts +1 -1
  556. package/src/account-manager/helpers/password.ts +2 -2
  557. package/src/account-manager/helpers/scrypt.ts +2 -2
  558. package/src/account-manager/helpers/token.ts +1 -1
  559. package/src/account-manager/index.ts +38 -8
  560. package/src/actor-store/actor-store-reader.ts +45 -0
  561. package/src/actor-store/actor-store-resources.ts +8 -0
  562. package/src/actor-store/actor-store-transactor.ts +31 -0
  563. package/src/actor-store/actor-store-writer.ts +17 -0
  564. package/src/actor-store/{index.ts → actor-store.ts} +26 -117
  565. package/src/actor-store/blob/reader.ts +17 -2
  566. package/src/actor-store/blob/transactor.ts +25 -10
  567. package/src/actor-store/db/index.ts +1 -1
  568. package/src/actor-store/db/schema/index.ts +3 -3
  569. package/src/actor-store/migrate.ts +1 -1
  570. package/src/actor-store/preference/transactor.ts +2 -2
  571. package/src/actor-store/record/reader.ts +125 -4
  572. package/src/actor-store/record/transactor.ts +3 -3
  573. package/src/actor-store/repo/reader.ts +1 -1
  574. package/src/actor-store/repo/sql-repo-reader.ts +7 -6
  575. package/src/actor-store/repo/sql-repo-transactor.ts +2 -2
  576. package/src/actor-store/repo/transactor.ts +16 -9
  577. package/src/api/app/bsky/actor/getPreferences.ts +4 -3
  578. package/src/api/app/bsky/actor/getProfile.ts +4 -4
  579. package/src/api/app/bsky/actor/getProfiles.ts +4 -4
  580. package/src/api/app/bsky/actor/index.ts +1 -2
  581. package/src/api/app/bsky/actor/putPreferences.ts +4 -3
  582. package/src/api/app/bsky/feed/getActorLikes.ts +4 -4
  583. package/src/api/app/bsky/feed/getAuthorFeed.ts +5 -5
  584. package/src/api/app/bsky/feed/getFeed.ts +8 -8
  585. package/src/api/app/bsky/feed/getPostThread.ts +14 -14
  586. package/src/api/app/bsky/feed/getTimeline.ts +4 -4
  587. package/src/api/app/bsky/feed/index.ts +1 -1
  588. package/src/api/app/bsky/index.ts +1 -1
  589. package/src/api/app/bsky/notification/index.ts +1 -1
  590. package/src/api/app/bsky/notification/registerPush.ts +9 -8
  591. package/src/api/app/bsky/util/resolver.ts +1 -1
  592. package/src/api/com/atproto/admin/deleteAccount.ts +2 -2
  593. package/src/api/com/atproto/admin/disableAccountInvites.ts +1 -1
  594. package/src/api/com/atproto/admin/disableInviteCodes.ts +1 -1
  595. package/src/api/com/atproto/admin/enableAccountInvites.ts +1 -1
  596. package/src/api/com/atproto/admin/getAccountInfo.ts +2 -3
  597. package/src/api/com/atproto/admin/getAccountInfos.ts +1 -1
  598. package/src/api/com/atproto/admin/getInviteCodes.ts +4 -4
  599. package/src/api/com/atproto/admin/getSubjectStatus.ts +1 -1
  600. package/src/api/com/atproto/admin/index.ts +9 -9
  601. package/src/api/com/atproto/admin/sendEmail.ts +2 -2
  602. package/src/api/com/atproto/admin/updateAccountEmail.ts +1 -1
  603. package/src/api/com/atproto/admin/updateAccountHandle.ts +1 -1
  604. package/src/api/com/atproto/admin/updateAccountPassword.ts +1 -1
  605. package/src/api/com/atproto/admin/updateSubjectStatus.ts +3 -3
  606. package/src/api/com/atproto/admin/util.ts +1 -1
  607. package/src/api/com/atproto/identity/getRecommendedDidCredentials.ts +1 -1
  608. package/src/api/com/atproto/identity/index.ts +3 -3
  609. package/src/api/com/atproto/identity/requestPlcOperationSignature.ts +2 -4
  610. package/src/api/com/atproto/identity/resolveHandle.ts +12 -16
  611. package/src/api/com/atproto/identity/signPlcOperation.ts +2 -4
  612. package/src/api/com/atproto/identity/submitPlcOperation.ts +2 -2
  613. package/src/api/com/atproto/identity/updateHandle.ts +3 -3
  614. package/src/api/com/atproto/index.ts +1 -1
  615. package/src/api/com/atproto/moderation/createReport.ts +4 -4
  616. package/src/api/com/atproto/moderation/index.ts +1 -1
  617. package/src/api/com/atproto/repo/applyWrites.ts +9 -7
  618. package/src/api/com/atproto/repo/createRecord.ts +4 -3
  619. package/src/api/com/atproto/repo/deleteRecord.ts +7 -4
  620. package/src/api/com/atproto/repo/describeRepo.ts +3 -3
  621. package/src/api/com/atproto/repo/getRecord.ts +2 -2
  622. package/src/api/com/atproto/repo/importRepo.ts +12 -27
  623. package/src/api/com/atproto/repo/index.ts +3 -3
  624. package/src/api/com/atproto/repo/listMissingBlobs.ts +1 -1
  625. package/src/api/com/atproto/repo/listRecords.ts +2 -2
  626. package/src/api/com/atproto/repo/putRecord.ts +8 -7
  627. package/src/api/com/atproto/repo/uploadBlob.ts +2 -2
  628. package/src/api/com/atproto/server/activateAccount.ts +2 -3
  629. package/src/api/com/atproto/server/checkAccountStatus.ts +1 -1
  630. package/src/api/com/atproto/server/confirmEmail.ts +1 -3
  631. package/src/api/com/atproto/server/createAccount.ts +6 -7
  632. package/src/api/com/atproto/server/createAppPassword.ts +1 -2
  633. package/src/api/com/atproto/server/createInviteCode.ts +1 -1
  634. package/src/api/com/atproto/server/createInviteCodes.ts +2 -2
  635. package/src/api/com/atproto/server/createSession.ts +1 -2
  636. package/src/api/com/atproto/server/deactivateAccount.ts +1 -1
  637. package/src/api/com/atproto/server/deleteAccount.ts +2 -2
  638. package/src/api/com/atproto/server/deleteSession.ts +1 -1
  639. package/src/api/com/atproto/server/describeServer.ts +1 -1
  640. package/src/api/com/atproto/server/getAccountInviteCodes.ts +2 -4
  641. package/src/api/com/atproto/server/getServiceAuth.ts +4 -4
  642. package/src/api/com/atproto/server/getSession.ts +3 -4
  643. package/src/api/com/atproto/server/index.ts +18 -27
  644. package/src/api/com/atproto/server/listAppPasswords.ts +1 -2
  645. package/src/api/com/atproto/server/refreshSession.ts +2 -3
  646. package/src/api/com/atproto/server/requestAccountDelete.ts +1 -3
  647. package/src/api/com/atproto/server/requestEmailConfirmation.ts +1 -3
  648. package/src/api/com/atproto/server/requestEmailUpdate.ts +2 -4
  649. package/src/api/com/atproto/server/requestPasswordReset.ts +1 -1
  650. package/src/api/com/atproto/server/reserveSigningKey.ts +1 -1
  651. package/src/api/com/atproto/server/resetPassword.ts +2 -2
  652. package/src/api/com/atproto/server/revokeAppPassword.ts +1 -2
  653. package/src/api/com/atproto/server/updateEmail.ts +2 -4
  654. package/src/api/com/atproto/server/util.ts +3 -3
  655. package/src/api/com/atproto/sync/deprecated/getCheckout.ts +1 -1
  656. package/src/api/com/atproto/sync/deprecated/getHead.ts +1 -1
  657. package/src/api/com/atproto/sync/getBlob.ts +4 -4
  658. package/src/api/com/atproto/sync/getBlocks.ts +2 -2
  659. package/src/api/com/atproto/sync/getLatestCommit.ts +1 -1
  660. package/src/api/com/atproto/sync/getRecord.ts +4 -4
  661. package/src/api/com/atproto/sync/getRepo.ts +4 -4
  662. package/src/api/com/atproto/sync/getRepoStatus.ts +2 -2
  663. package/src/api/com/atproto/sync/index.ts +5 -5
  664. package/src/api/com/atproto/sync/listBlobs.ts +2 -2
  665. package/src/api/com/atproto/sync/listRepos.ts +3 -3
  666. package/src/api/com/atproto/sync/subscribeRepos.ts +2 -2
  667. package/src/api/com/atproto/sync/util.ts +1 -1
  668. package/src/api/com/atproto/temp/checkSignupQueue.ts +2 -2
  669. package/src/api/com/atproto/temp/index.ts +1 -1
  670. package/src/api/index.ts +2 -2
  671. package/src/api/proxy.ts +1 -1
  672. package/src/auth-routes.ts +2 -3
  673. package/src/auth-verifier.ts +2 -3
  674. package/src/basic-routes.ts +4 -4
  675. package/src/bsky-app-view.ts +26 -0
  676. package/src/config/config.ts +1 -1
  677. package/src/config/env.ts +1 -1
  678. package/src/context.ts +49 -46
  679. package/src/crawlers.ts +1 -1
  680. package/src/db/db.ts +7 -7
  681. package/src/db/migrator.ts +1 -1
  682. package/src/db/tables/moderation.ts +2 -2
  683. package/src/db/util.ts +2 -2
  684. package/src/did-cache/db/index.ts +1 -1
  685. package/src/did-cache/index.ts +1 -1
  686. package/src/disk-blobstore.ts +6 -8
  687. package/src/error.ts +2 -2
  688. package/src/handle/index.ts +2 -2
  689. package/src/image/image-url-builder.ts +16 -0
  690. package/src/image/index.ts +2 -2
  691. package/src/index.ts +15 -13
  692. package/src/lexicon/lexicons.ts +37 -0
  693. package/src/lexicon/types/app/bsky/actor/defs.ts +36 -0
  694. package/src/lexicon/types/app/bsky/feed/postgate.ts +1 -0
  695. package/src/lexicon/types/app/bsky/feed/threadgate.ts +1 -0
  696. package/src/logger.ts +1 -1
  697. package/src/mailer/index.ts +1 -2
  698. package/src/mailer/moderation.ts +1 -1
  699. package/src/mailer/templates/confirm-email.d.ts +1 -1
  700. package/src/mailer/templates/delete-account.d.ts +1 -1
  701. package/src/mailer/templates/plc-operation.d.ts +1 -1
  702. package/src/mailer/templates/reset-password.d.ts +1 -1
  703. package/src/mailer/templates/update-email.d.ts +1 -1
  704. package/src/oauth/provider.ts +1 -17
  705. package/src/pipethrough.ts +4 -6
  706. package/src/read-after-write/types.ts +3 -3
  707. package/src/read-after-write/util.ts +3 -5
  708. package/src/read-after-write/viewer.ts +50 -124
  709. package/src/redis.ts +1 -1
  710. package/src/repo/prepare.ts +18 -18
  711. package/src/repo/types.ts +2 -2
  712. package/src/scripts/rebuild-repo.ts +4 -61
  713. package/src/sequencer/db/index.ts +1 -1
  714. package/src/sequencer/events.ts +3 -3
  715. package/src/sequencer/outbox.ts +1 -3
  716. package/src/sequencer/sequencer.ts +12 -12
  717. package/src/util/compression.ts +1 -1
  718. package/src/util/params.ts +1 -1
  719. package/src/well-known.ts +4 -4
  720. package/tests/_util.ts +5 -5
  721. package/tests/account-deletion.test.ts +7 -7
  722. package/tests/account-migration.test.ts +3 -3
  723. package/tests/account.test.ts +2 -2
  724. package/tests/app-passwords.test.ts +1 -1
  725. package/tests/blob-deletes.test.ts +4 -6
  726. package/tests/create-post.test.ts +3 -3
  727. package/tests/crud.test.ts +12 -16
  728. package/tests/email-confirmation.test.ts +5 -5
  729. package/tests/entryway.test.ts +5 -5
  730. package/tests/file-uploads.test.ts +7 -7
  731. package/tests/handles.test.ts +3 -3
  732. package/tests/invites-admin.test.ts +1 -1
  733. package/tests/moderation.test.ts +2 -2
  734. package/tests/moderator-auth.test.ts +4 -4
  735. package/tests/oauth.test.ts +4 -4
  736. package/tests/plc-operations.test.ts +6 -6
  737. package/tests/preferences.test.ts +2 -2
  738. package/tests/proxied/admin.test.ts +2 -2
  739. package/tests/proxied/feedgen.test.ts +4 -4
  740. package/tests/proxied/notif.test.ts +5 -5
  741. package/tests/proxied/procedures.test.ts +1 -1
  742. package/tests/proxied/proxy-catchall.test.ts +6 -6
  743. package/tests/proxied/proxy-header.test.ts +5 -5
  744. package/tests/proxied/read-after-write.test.ts +6 -6
  745. package/tests/proxied/views.test.ts +3 -3
  746. package/tests/races.test.ts +2 -2
  747. package/tests/rate-limits.test.ts +1 -1
  748. package/tests/sequencer.test.ts +7 -7
  749. package/tests/server.test.ts +4 -4
  750. package/tests/sync/list.test.ts +1 -1
  751. package/tests/sync/subscribe-repos.test.ts +9 -9
  752. package/tests/sync/sync.test.ts +3 -3
  753. package/tests/takedown-appeal.test.ts +1 -1
  754. package/tsconfig.build.tsbuildinfo +1 -1
  755. package/dist/actor-store/index.d.ts +0 -65
  756. package/dist/actor-store/index.d.ts.map +0 -1
  757. package/dist/actor-store/index.js.map +0 -1
  758. package/dist/oauth/detailed-account-store.d.ts +0 -27
  759. package/dist/oauth/detailed-account-store.d.ts.map +0 -1
  760. package/dist/oauth/detailed-account-store.js +0 -76
  761. package/dist/oauth/detailed-account-store.js.map +0 -1
  762. package/src/oauth/detailed-account-store.ts +0 -96
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAgC;AAChC,+CAAgC;AAChC,uDAAwC;AAExC,kDAAmC;AACnC,yDAMiC;AACjC,wDAAyC;AACzC,gDAA8C;AAC9C,sCAAuC;AACvC,sCAAsD;AACtD,4DAAgE;AAEhE,sDAM6B;AAG7B,+CAAmD;AACnD,mDAIwB;AACxB,qCAAsC;AACtC,qCAAuC;AACvC,oDAAsD;AACtD,uDAAkD;AAClD,2CAAuC;AACvC,6CAA8C;AAC9C,2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SACR,CAAC,CAAA;IACJ,CAAC;CACF;AAtVD,gCAsVC"}
@@ -1 +1 @@
1
- {"version":3,"file":"crawlers.d.ts","sourceRoot":"","sources":["../src/crawlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAGvC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAI9C,qBAAa,QAAQ;IAKV,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,MAAM,EAAE;IAClB,eAAe,EAAE,eAAe;IANlC,MAAM,EAAE,QAAQ,EAAE,CAAA;IAClB,YAAY,SAAI;gBAGd,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAAE,EAClB,eAAe,EAAE,eAAe;IAKnC,cAAc;CAwBrB"}
1
+ {"version":3,"file":"crawlers.d.ts","sourceRoot":"","sources":["../src/crawlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAK9C,qBAAa,QAAQ;IAKV,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,MAAM,EAAE;IAClB,eAAe,EAAE,eAAe;IANlC,MAAM,EAAE,QAAQ,EAAE,CAAA;IAClB,YAAY,SAAI;gBAGd,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAAE,EAClB,eAAe,EAAE,eAAe;IAKnC,cAAc;CAwBrB"}
package/dist/crawlers.js CHANGED
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Crawlers = void 0;
4
4
  const api_1 = require("@atproto/api");
5
- const logger_1 = require("./logger");
6
5
  const common_1 = require("@atproto/common");
6
+ const logger_1 = require("./logger");
7
7
  const NOTIFY_THRESHOLD = 20 * common_1.MINUTE;
8
8
  class Crawlers {
9
9
  constructor(hostname, crawlers, backgroundQueue) {
@@ -1 +1 @@
1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AAC,OAAO,CAAC,QAAQ,EAAE,EAAE,EAC1C,yBAAyB,CAC1B,CAAA;gBACH,CAAC;YACH,CAAC,CAAC,CACH,CAAA;YACD,IAAI,CAAC,YAAY,GAAG,GAAG,CAAA;QACzB,CAAC,CAAC,CAAA;IACJ,CAAC;CACF;AApCD,4BAoCC"}
package/dist/db/db.d.ts CHANGED
@@ -8,8 +8,8 @@ export declare class Database<Schema> {
8
8
  pragmas?: Record<string, string>;
9
9
  }): Database<T>;
10
10
  ensureWal(): Promise<void>;
11
- transactionNoRetry<T>(fn: (db: Database<Schema>) => T | Promise<T>): Promise<T>;
12
- transaction<T>(fn: (db: Database<Schema>) => T | Promise<T>): Promise<T>;
11
+ transactionNoRetry<T>(fn: (db: Database<Schema>) => T | PromiseLike<T>): Promise<T>;
12
+ transaction<T>(fn: (db: Database<Schema>) => T | PromiseLike<T>): Promise<T>;
13
13
  executeWithRetry<T>(query: {
14
14
  execute: () => Promise<T>;
15
15
  }): Promise<T>;
@@ -1 +1 @@
1
- {"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/db/db.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,MAAM,EAQP,MAAM,QAAQ,CAAA;AASf,qBAAa,QAAQ,CAAC,MAAM;IAIP,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC;IAHrC,SAAS,UAAQ;IACjB,WAAW,EAAE,UAAU,EAAE,CAAK;gBAEX,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC;IAErC,MAAM,CAAC,MAAM,CAAC,CAAC,EACb,QAAQ,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,GAC1C,QAAQ,CAAC,CAAC,CAAC;IAmBR,SAAS;IAIT,kBAAkB,CAAC,CAAC,EACxB,EAAE,EAAE,CAAC,EAAE,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,C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K,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,GAC/C,OAAO,CAAC,CAAC,CAAC;IAIP,gBAAgB,CAAC,CAAC,EAAE,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAA;KAAE;IAQ9D,QAAQ,CAAC,EAAE,EAAE,MAAM,IAAI;IAKvB,IAAI,aAAa,YAEhB;IAED,iBAAiB;IAIjB,oBAAoB;IAIpB,KAAK,IAAI,IAAI;CAOd;AAED,KAAK,UAAU,GAAG,MAAM,IAAI,CAAA"}
package/dist/db/db.js CHANGED
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Database = void 0;
7
- const assert_1 = __importDefault(require("assert"));
8
- const kysely_1 = require("kysely");
7
+ const node_assert_1 = __importDefault(require("node:assert"));
9
8
  const better_sqlite3_1 = __importDefault(require("better-sqlite3"));
9
+ const kysely_1 = require("kysely");
10
10
  const logger_1 = require("../logger");
11
11
  const util_1 = require("./util");
12
12
  const DEFAULT_PRAGMAS = {
@@ -96,10 +96,10 @@ class Database {
96
96
  return this.db.isTransaction;
97
97
  }
98
98
  assertTransaction() {
99
- (0, assert_1.default)(this.isTransaction, 'Transaction required');
99
+ (0, node_assert_1.default)(this.isTransaction, 'Transaction required');
100
100
  }
101
101
  assertNotTransaction() {
102
- (0, assert_1.default)(!this.isTransaction, 'Cannot be in a transaction');
102
+ (0, node_assert_1.default)(!this.isTransaction, 'Cannot be in a transaction');
103
103
  }
104
104
  close() {
105
105
  if (this.destroyed)
package/dist/db/db.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"db.js","sourceRoot":"","sources":["../../src/db/db.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA2B;AAC3B,mCAUe;AACf,oEAAqC;AACrC,sCAAoC;AACpC,iCAAoC;AAEpC,MAAM,eAAe,GAAG;AACtB,sEAAsE;CACvE,C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C;IAED,oBAAoB;QAClB,IAAA,qBAAM,EAAC,CAAC,IAAI,CAAC,aAAa,EAAE,4BAA4B,CAAC,CAAA;IAC3D,CAAC;IAED,KAAK;QACH,IAAI,IAAI,CAAC,SAAS;YAAE,OAAM;QAC1B,IAAI,CAAC,EAAE;aACJ,OAAO,EAAE;aACT,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;aACnC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,iBAAQ,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,kBAAkB,CAAC,CAAC,CAAA;IAChE,CAAC;CACF;AAhGD,4BAgGC;AAID,MAAM,aAAa;IAAnB;QACU;;;;mBAAS,KAAK;WAAA;IAkBxB,CAAC;IAhBC,KAAK;QACH,IAAI,CAAC,MAAM,GAAG,IAAI,CAAA;IACpB,CAAC;IAED,cAAc,CAAC,IAA8B;QAC3C,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAA;QACtC,CAAC;QACD,OAAO,IAAI,CAAC,IAAI,CAAA;IAClB,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,IAA+B;QAE/B,OAAO,IAAI,CAAC,MAAM,CAAA;IACpB,CAAC;CACF"}
@@ -1,4 +1,4 @@
1
- import { Kysely, Migrator as KyselyMigrator, Migration } from 'kysely';
1
+ import { Kysely, Migration, Migrator as KyselyMigrator } from 'kysely';
2
2
  export declare class Migrator<T> extends KyselyMigrator {
3
3
  db: Kysely<T>;
4
4
  constructor(db: Kysely<T>, migrations: Record<string, Migration>);
@@ -1 +1 @@
1
- {"version":3,"file":"migrator.d.ts","sourceRoot":"","sources":["../../src/db/migrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,IAAI,cAAc,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAEtE,qBAAa,QAAQ,CAAC,CAAC,CAAE,SAAQ,cAAc;IAEpC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;gBAAb,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,EACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC;IAYjC,gBAAgB,CAAC,SAAS,EAAE,MAAM;IAWlC,sBAAsB;CAU7B"}
1
+ {"version":3,"file":"migrator.d.ts","sourceRoot":"","sources":["../../src/db/migrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,QAAQ,CAAA;AAEtE,qBAAa,QAAQ,CAAC,CAAC,CAAE,SAAQ,cAAc;IAEpC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;gBAAb,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,EACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC;IAYjC,gBAAgB,CAAC,SAAS,EAAE,MAAM;IAWlC,sBAAsB;CAU7B"}
@@ -1,5 +1,5 @@
1
1
  import { Generated } from 'kysely';
2
- import { REASONOTHER, REASONSPAM, REASONMISLEADING, REASONRUDE, REASONSEXUAL, REASONVIOLATION } from '../../lexicon/types/com/atproto/moderation/defs';
2
+ import { REASONMISLEADING, REASONOTHER, REASONRUDE, REASONSEXUAL, REASONSPAM, REASONVIOLATION } from '../../lexicon/types/com/atproto/moderation/defs';
3
3
  export declare const actionTableName = "moderation_action";
4
4
  export declare const actionSubjectBlobTableName = "moderation_action_subject_blob";
5
5
  export declare const reportTableName = "moderation_report";
@@ -1 +1 @@
1
- {"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../../src/db/tables/moderation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,eAAe,EACh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aAAa,CAAC,KAAK,CAAC,CAAC,CAAA;AAEjE,MAAM,MAAM,KAAK,GAAG,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;AAErD,eAAO,MAAM,oBAAoB,QAAS,OAAO,YAMhD,CAAA"}
package/dist/db/util.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isErrUniqueViolation = exports.retrySqlite = exports.dummyDialect = exports.valuesList = exports.excluded = exports.countDistinct = exports.countAll = exports.softDeleted = exports.notSoftDeletedClause = void 0;
4
- const common_1 = require("@atproto/common");
5
4
  const kysely_1 = require("kysely");
5
+ const common_1 = require("@atproto/common");
6
6
  // Applies to repo_root or record table
7
7
  const notSoftDeletedClause = (alias) => {
8
8
  return (0, kysely_1.sql) `${alias}."takedownRef" is null`;
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/db/util.ts"],"names":[],"mappings":";;;AAAA,4CAAuC;AACvC,mCAWe;AAEf,uCAAuC;AAChC,MAAM,oBAAoB,GAAG,CAAC,KAAY,EAAE,EAAE;IACnD,OAAO,IAAA,YAAG,EAAA,GAAG,KAAK,wBAAwB,CAAA;AAC5C,CAAC,CAAA;AAFY,QAAA,oBAAoB,wBAEhC;AAEM,MAAM,WAAW,GAAG,CAAC,YAA4C,EAAE,EAAE;IAC1E,OAAO,YAAY,CAAC,WAAW,KAAK,IAAI,CAAA;AAC1C,CAAC,CAAA;AAFY,QAAA,WAAW,eAEvB;AAEY,QAAA,QAAQ,GAAG,IAAA,YAAG,EAAQ,UAAU,CAAA;AACtC,MAAM,aAAa,GAAG,CAAC,GAAU,EAAE,EAAE,CAAC,IAAA,YAAG,EAAQ,kBAAkB,GAAG,GAAG,CAAA;AAAnE,QAAA,aAAa,iBAAsD;AAEhF,6BAA6B;AACtB,MAAM,QAAQ,GAAG,CAAO,EAAa,EAAE,GAAG,EAAE,EAAE;IACn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sources":["../../../src/did-cache/db/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAGzC,cAAc,UAAU,CAAA;AAExB,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAA;AAEjD,eAAO,MAAM,KAAK,aACN,MAAM,yCAEf,UAKF,CAAA;AAED,eAAO,MAAM,WAAW,OAAQ,UAAU,6BAEzC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/did-cache/db/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,cAAc,UAAU,CAAA;AAExB,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAA;AAEjD,eAAO,MAAM,KAAK,aACN,MAAM,yCAEf,UAKF,CAAA;AAED,eAAO,MAAM,WAAW,OAAQ,UAAU,6BAEzC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/did-cache/db/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,iCAA6C;AAE7C,8DAAqC;AAErC,2CAAwB;AAIjB,MAAM,KAAK,GAAG,CACnB,QAAgB,EAChB,wBAAwB,GAAG,KAAK,EACpB,EAAE;IACd,MAAM,OAAO,GAA2B,wBAAwB;QAC9D,CAAC,CAAC,EAAE,kBAAkB,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE;QACpD,CAAC,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAA;IAC7B,OAAO,aAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,CAAC,CAAA;AAC/C,CAAC,CAAA;AARY,QAAA,KAAK,SAQjB;AAEM,MAAM,WAAW,GAAG,CAAC,EAAc,EAAE,EAAE;IAC5C,OAAO,IAAI,aAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,oBAAU,CAAC,CAAA;AACxC,CAAC,CAAA;AAFY,QAAA,WAAW,eAEvB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/did-cache/db/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,iCAA6C;AAC7C,8DAAqC;AAGrC,2CAAwB;AAIjB,MAAM,KAAK,GAAG,CACnB,QAAgB,EAChB,wBAAwB,GAAG,KAAK,EACpB,EAAE;IACd,MAAM,OAAO,GAA2B,wBAAwB;QAC9D,CAAC,CAAC,EAAE,kBAAkB,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE;QACpD,CAAC,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAA;IAC7B,OAAO,aAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,CAAC,CAAA;AAC/C,CAAC,CAAA;AARY,QAAA,KAAK,SAQjB;AAEM,MAAM,WAAW,GAAG,CAAC,EAAc,EAAE,EAAE;IAC5C,OAAO,IAAI,aAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,oBAAU,CAAC,CAAA;AACxC,CAAC,CAAA;AAFY,QAAA,WAAW,eAEvB"}
@@ -1,4 +1,4 @@
1
- import stream from 'stream';
1
+ import stream from 'node:stream';
2
2
  import { CID } from 'multiformats/cid';
3
3
  import { BlobStore } from '@atproto/repo';
4
4
  export declare class DiskBlobStore implements BlobStore {
@@ -28,5 +28,4 @@ export declare class DiskBlobStore implements BlobStore {
28
28
  deleteMany(cids: CID[]): Promise<void>;
29
29
  deleteAll(): Promise<void>;
30
30
  }
31
- export default DiskBlobStore;
32
31
  //# sourceMappingURL=disk-blobstore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"disk-blobstore.d.ts","sourceRoot":"","sources":["../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AAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAItC,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAIrC,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAAC,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC;IAO7D,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBnD,YAAY,CAChB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,UAAU,GAAG,MAAM,CAAC,QAAQ,GAClC,OAAO,CAAC,IAAI,CAAC;IAKV,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IASnC,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IASrC,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC;IAQvC,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC;IAS7C,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/B,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAItC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;CAKjC"}
@@ -4,13 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.DiskBlobStore = void 0;
7
- const promises_1 = __importDefault(require("fs/promises"));
8
- const fs_1 = __importDefault(require("fs"));
9
- const path_1 = __importDefault(require("path"));
10
- const repo_1 = require("@atproto/repo");
7
+ const node_fs_1 = __importDefault(require("node:fs"));
8
+ const promises_1 = __importDefault(require("node:fs/promises"));
9
+ const node_path_1 = __importDefault(require("node:path"));
10
+ const common_1 = require("@atproto/common");
11
11
  const crypto_1 = require("@atproto/crypto");
12
+ const repo_1 = require("@atproto/repo");
12
13
  const logger_1 = require("./logger");
13
- const common_1 = require("@atproto/common");
14
14
  class DiskBlobStore {
15
15
  constructor(did, location, tmpLocation, quarantineLocation) {
16
16
  Object.defineProperty(this, "did", {
@@ -40,19 +40,19 @@ class DiskBlobStore {
40
40
  }
41
41
  static creator(location, tmpLocation, quarantineLocation) {
42
42
  return (did) => {
43
- const tmp = tmpLocation || path_1.default.join(location, 'tempt');
44
- const quarantine = quarantineLocation || path_1.default.join(location, 'quarantine');
43
+ const tmp = tmpLocation || node_path_1.default.join(location, 'tempt');
44
+ const quarantine = quarantineLocation || node_path_1.default.join(location, 'quarantine');
45
45
  return new DiskBlobStore(did, location, tmp, quarantine);
46
46
  };
47
47
  }
48
48
  async ensureDir() {
49
- await promises_1.default.mkdir(path_1.default.join(this.location, this.did), { recursive: true });
49
+ await promises_1.default.mkdir(node_path_1.default.join(this.location, this.did), { recursive: true });
50
50
  }
51
51
  async ensureTemp() {
52
- await promises_1.default.mkdir(path_1.default.join(this.tmpLocation, this.did), { recursive: true });
52
+ await promises_1.default.mkdir(node_path_1.default.join(this.tmpLocation, this.did), { recursive: true });
53
53
  }
54
54
  async ensureQuarantine() {
55
- await promises_1.default.mkdir(path_1.default.join(this.quarantineLocation, this.did), {
55
+ await promises_1.default.mkdir(node_path_1.default.join(this.quarantineLocation, this.did), {
56
56
  recursive: true,
57
57
  });
58
58
  }
@@ -60,13 +60,13 @@ class DiskBlobStore {
60
60
  return (0, crypto_1.randomStr)(32, 'base32');
61
61
  }
62
62
  getTmpPath(key) {
63
- return path_1.default.join(this.tmpLocation, this.did, key);
63
+ return node_path_1.default.join(this.tmpLocation, this.did, key);
64
64
  }
65
65
  getStoredPath(cid) {
66
- return path_1.default.join(this.location, this.did, cid.toString());
66
+ return node_path_1.default.join(this.location, this.did, cid.toString());
67
67
  }
68
68
  getQuarantinePath(cid) {
69
- return path_1.default.join(this.quarantineLocation, this.did, cid.toString());
69
+ return node_path_1.default.join(this.quarantineLocation, this.did, cid.toString());
70
70
  }
71
71
  async hasTemp(key) {
72
72
  return (0, common_1.fileExists)(this.getTmpPath(key));
@@ -132,7 +132,7 @@ class DiskBlobStore {
132
132
  if (!exists) {
133
133
  throw new repo_1.BlobNotFoundError();
134
134
  }
135
- return fs_1.default.createReadStream(path);
135
+ return node_fs_1.default.createReadStream(path);
136
136
  }
137
137
  async delete(cid) {
138
138
  await (0, common_1.rmIfExists)(this.getStoredPath(cid));
@@ -141,9 +141,9 @@ class DiskBlobStore {
141
141
  await Promise.all(cids.map((cid) => this.delete(cid)));
142
142
  }
143
143
  async deleteAll() {
144
- await (0, common_1.rmIfExists)(path_1.default.join(this.location, this.did), true);
145
- await (0, common_1.rmIfExists)(path_1.default.join(this.tmpLocation, this.did), true);
146
- await (0, common_1.rmIfExists)(path_1.default.join(this.quarantineLocation, this.did), true);
144
+ await (0, common_1.rmIfExists)(node_path_1.default.join(this.location, this.did), true);
145
+ await (0, common_1.rmIfExists)(node_path_1.default.join(this.tmpLocation, this.did), true);
146
+ await (0, common_1.rmIfExists)(node_path_1.default.join(this.quarantineLocation, this.did), true);
147
147
  }
148
148
  }
149
149
  exports.DiskBlobStore = DiskBlobStore;
@@ -153,5 +153,4 @@ const translateErr = (err) => {
153
153
  }
154
154
  return err;
155
155
  };
156
- exports.default = DiskBlobStore;
157
156
  //# sourceMappingURL=disk-blobstore.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"disk-blobstore.js","sourceRoot":"","sources":["../src/disk-blobstore.ts"],"names":[],"mappings":";;;;;;AAAA,2DAA4B;AAC5B,4CAAuB;AAEvB,gDAAuB;AAEvB,wCAA4D;AAC5D,4CAA2C;AAC3C,qCAA4C;AAC5C,4CAA0E;AAE1E,MAAa,aAAa;IACxB,YACS,GAAW,EACX,QAAgB,EAChB,WAAmB,EACnB,kBAA0B;QAHjC;;;;mBAAO,GAAG;WAAQ;QAClB;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MAAM,SAAS,CAAA;AAI7C,eAAO,MAAM,OAAO,EAAE,mBAarB,CAAA"}
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAK7C,eAAO,MAAM,OAAO,EAAE,mBAarB,CAAA"}
package/dist/error.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.handler = void 0;
4
+ const oauth_provider_1 = require("@atproto/oauth-provider");
4
5
  const xrpc_server_1 = require("@atproto/xrpc-server");
5
6
  const logger_1 = require("./logger");
6
- const oauth_provider_1 = require("@atproto/oauth-provider");
7
7
  const handler = (err, _req, res, next) => {
8
8
  logger_1.httpLogger.error(err, 'unexpected internal server error');
9
9
  if (res.headersSent) {
package/dist/error.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";;;AAAA,sDAAgD;AAEhD,qCAA4C;AAC5C,4DAAoD;AAE7C,MAAM,OAAO,GAAwB,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;IACnE,mBAAG,CAAC,KAAK,CAAC,GAAG,EAAE,kCAAkC,CAAC,CAAA;IAClD,IAAI,GAAG,CAAC,WAAW,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC,GAAG,CAAC,CAAA;IAClB,CAAC;IAED,IAAI,GAAG,YAAY,2BAAU,EAAE,CAAC;QAC9B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAA;QACzC,OAAM;IACR,CAAC;IAED,MAAM,WAAW,GAAG,uBAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;IAC5C,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;AACxD,CAAC,CAAA;AAbY,QAAA,OAAO,WAanB"}
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";;;AACA,4DAAoD;AACpD,sDAAgD;AAChD,qCAA4C;AAErC,MAAM,OAAO,GAAwB,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;IACnE,mBAAG,CAAC,KAAK,CAAC,GAAG,EAAE,kCAAkC,CAAC,CAAA;IAClD,IAAI,GAAG,CAAC,WAAW,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC,GAAG,CAAC,CAAA;IAClB,CAAC;IAED,IAAI,GAAG,YAAY,2BAAU,EAAE,CAAC;QAC9B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAA;QACzC,OAAM;IACR,CAAC;IAED,MAAM,WAAW,GAAG,uBAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;IAC5C,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;AACxD,CAAC,CAAA;AAbY,QAAA,OAAO,WAanB"}
@@ -1,4 +1,4 @@
1
- import AppContext from '../context';
1
+ import { AppContext } from '../context';
2
2
  export declare const normalizeAndValidateHandle: (opts: {
3
3
  ctx: AppContext;
4
4
  handle: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handle/index.ts"],"names":[],"mappings":"AAIA,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,eAAO,MAAM,0BAA0B,SAAgB;IACrD,GAAG,EAAE,UAAU,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,KAAG,OAAO,CAAC,MAAM,CAuCjB,CAAA;AAED,eAAO,MAAM,wBAAwB,WAAY,MAAM,WAUtD,CAAA;AAED,eAAO,MAAM,eAAe,WAClB,MAAM,wBACQ,MAAM,EAAE,KAC7B,OAEF,CAAA;AAED,eAAO,MAAM,8BAA8B,WACjC,MAAM,wBACQ,MAAM,EAAE,8BAE7B,IAmBF,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handle/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAIvC,eAAO,MAAM,0BAA0B,SAAgB;IACrD,GAAG,EAAE,UAAU,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,KAAG,OAAO,CAAC,MAAM,CAuCjB,CAAA;AAED,eAAO,MAAM,wBAAwB,WAAY,MAAM,WAUtD,CAAA;AAED,eAAO,MAAM,eAAe,WAClB,MAAM,wBACQ,MAAM,EAAE,KAC7B,OAEF,CAAA;AAED,eAAO,MAAM,8BAA8B,WACjC,MAAM,wBACQ,MAAM,EAAE,8BAE7B,IAmBF,CAAA"}
@@ -26,8 +26,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.ensureHandleServiceConstraints = exports.isServiceDomain = exports.baseNormalizeAndValidate = exports.normalizeAndValidateHandle = void 0;
27
27
  const ident = __importStar(require("@atproto/syntax"));
28
28
  const xrpc_server_1 = require("@atproto/xrpc-server");
29
- const reserved_1 = require("./reserved");
30
29
  const explicit_slurs_1 = require("./explicit-slurs");
30
+ const reserved_1 = require("./reserved");
31
31
  const normalizeAndValidateHandle = async (opts) => {
32
32
  const { ctx, did, allowReserved } = opts;
33
33
  // base formatting validation
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/handle/index.ts"],"names":[],"mappings":";;;;;;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C5C,MAAc,EACd,oBAA8B,EAC9B,aAAa,GAAG,KAAK,EACf,EAAE;IACR,MAAM,eAAe,GACnB,oBAAoB,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;IACtE,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAA;IACrE,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,iCAAmB,CAC3B,8BAA8B,EAC9B,eAAe,CAChB,CAAA;IACH,CAAC;IACD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACrB,MAAM,IAAI,iCAAmB,CAAC,kBAAkB,EAAE,eAAe,CAAC,CAAA;IACpE,CAAC;IACD,IAAI,KAAK,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QACtB,MAAM,IAAI,iCAAmB,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAA;IACnE,CAAC;IACD,IAAI,CAAC,aAAa,IAAI,6BAAkB,CAAC,KAAK,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,iCAAmB,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,CAAA;IACxE,CAAC;AACH,CAAC,CAAA;AAvBY,QAAA,8BAA8B,kCAuB1C"}
@@ -0,0 +1,8 @@
1
+ import { BskyAppView } from '../bsky-app-view';
2
+ export declare class ImageUrlBuilder {
3
+ readonly pdsHostname: string;
4
+ readonly bskyAppView?: BskyAppView | undefined;
5
+ constructor(pdsHostname: string, bskyAppView?: BskyAppView | undefined);
6
+ build(pattern: string, did: string, cid: string): string;
7
+ }
8
+ //# sourceMappingURL=image-url-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-url-builder.d.ts","sourceRoot":"","sources":["../../src/image/image-url-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG9C,qBAAa,eAAe;IAExB,QAAQ,CAAC,WAAW,EAAE,MAAM;IAC5B,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW;gBADzB,WAAW,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,WAAW,YAAA;IAGpC,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM;CAMzD"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ImageUrlBuilder = void 0;
4
+ const lexicons_1 = require("../lexicon/lexicons");
5
+ class ImageUrlBuilder {
6
+ constructor(pdsHostname, bskyAppView) {
7
+ Object.defineProperty(this, "pdsHostname", {
8
+ enumerable: true,
9
+ configurable: true,
10
+ writable: true,
11
+ value: pdsHostname
12
+ });
13
+ Object.defineProperty(this, "bskyAppView", {
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true,
17
+ value: bskyAppView
18
+ });
19
+ }
20
+ build(pattern, did, cid) {
21
+ return (this.bskyAppView?.getImageUrl(pattern, did, cid) ??
22
+ `https://${this.pdsHostname}/xrpc/${lexicons_1.ids.ComAtprotoSyncGetBlob}?did=${did}&cid=${cid}`);
23
+ }
24
+ }
25
+ exports.ImageUrlBuilder = ImageUrlBuilder;
26
+ //# sourceMappingURL=image-url-builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-url-builder.js","sourceRoot":"","sources":["../../src/image/image-url-builder.ts"],"names":[],"mappings":";;;AACA,kDAAyC;AAEzC,MAAa,eAAe;IAC1B,YACW,WAAmB,EACnB,WAAyB;QADlC;;;;mBAAS,WAAW;WAAQ;QAC5B;;;;mBAAS,WAAW;WAAc;IACjC,CAAC;IAEJ,KAAK,CAAC,OAAe,EAAE,GAAW,EAAE,GAAW;QAC7C,OAAO,CACL,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC;YAChD,WAAW,IAAI,CAAC,WAAW,SAAS,cAAG,CAAC,qBAAqB,QAAQ,GAAG,QAAQ,GAAG,EAAE,CACtF,CAAA;IACH,CAAC;CACF;AAZD,0CAYC"}
@@ -1,4 +1,4 @@
1
- import { Readable } from 'stream';
1
+ import { Readable } from 'node:stream';
2
2
  import sharp from 'sharp';
3
3
  export declare function maybeGetInfo(stream: Readable): Promise<ImageInfo | null>;
4
4
  export declare function getInfo(stream: Readable): Promise<ImageInfo>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/image/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEjC,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,wBAAsB,YAAY,CAChC,MAAM,EAAE,QAAQ,GACf,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CA+B3B;AAED,wBAAsB,OAAO,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAMlE;AAED,MAAM,MAAM,UAAU,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE1D,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAA;CACpC,CAAA;AAED,eAAO,MAAM,cAAc,EAAE;KAC1B,CAAC,IAAI,MAAM,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,MAAM,EAAE;CAUlD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/image/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,wBAAsB,YAAY,CAChC,MAAM,EAAE,QAAQ,GACf,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CA+B3B;AAED,wBAAsB,OAAO,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAMlE;AAED,MAAM,MAAM,UAAU,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE1D,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAA;CACpC,CAAA;AAED,eAAO,MAAM,cAAc,EAAE;KAC1B,CAAC,IAAI,MAAM,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,MAAM,EAAE;CAUlD,CAAA"}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.formatsToMimes = void 0;
7
7
  exports.maybeGetInfo = maybeGetInfo;
8
8
  exports.getInfo = getInfo;
9
- const promises_1 = require("stream/promises");
9
+ const promises_1 = require("node:stream/promises");
10
10
  const sharp_1 = __importDefault(require("sharp"));
11
11
  const common_1 = require("@atproto/common");
12
12
  async function maybeGetInfo(stream) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/image/index.ts"],"names":[],"mappings":";;;;;;AAKA,oCAiCC;AAED,0BAMC;AA7CD,8CAA0C;AAC1C,kDAAyB;AACzB,4CAA2C;AAEpC,KAAK,UAAU,YAAY,CAChC,MAAgB;IAEhB,IAAI,QAAwB,CAAA;IAC5B,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,IAAA,eAAK,GAAE,CAAA;QACzB,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YACjC,SAAS,CAAC,QAAQ,EAAE;YACpB,IAAA,mBAAQ,EAAC,MAAM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E,eAAe;IACpB,GAAG,EAAE,YAAY;IACjB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,YAAY;CACnB,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import 'express-async-errors';
2
+ import http from 'node:http';
2
3
  import express from 'express';
3
- import http from 'http';
4
4
  import { ServerConfig, ServerSecrets } from './config';
5
- import AppContext, { AppContextOptions } from './context';
5
+ import { AppContext, AppContextOptions } from './context';
6
6
  export * from './config';
7
7
  export { Database } from './db';
8
8
  export { DiskBlobStore } from './disk-blobstore';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,sBAAsB,CAAA;AAE7B,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,OAAO,IAAI,MAAM,MAAM,CAAA;AAavB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAGtD,OAAO,UAAU,EAAE,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAIzD,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,EAAE,KAAK,OAAO,IAAI,eAAe,EAAE,MAAM,+CAA+C,CAAA;AAC/F,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAC/D,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,OAA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AE,KAAK,OAAO,IAAI,eAAe,EAAE,MAAM,+CAA+C,CAAA;AAC/F,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAC/D,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,qBAAa,GAAG;IACP,GAAG,EAAE,UAAU,CAAA;IACf,GAAG,EAAE,OAAO,CAAC,WAAW,CAAA;IACxB,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAA;IAC3B,OAAO,CAAC,UAAU,CAAC,CAAgB;IACnC,OAAO,CAAC,eAAe,CAAC,CAAgB;IACxC,OAAO,CAAC,sBAAsB,CAAC,CAAgB;gBAEnC,IAAI,EAAE;QAAE,GAAG,EAAE,UAAU,CAAC;QAAC,GAAG,EAAE,OAAO,CAAC,WAAW,CAAA;KAAE;WAKlD,MAAM,CACjB,GAAG,EAAE,YAAY,EACjB,OAAO,EAAE,aAAa,EACtB,SAAS,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,GACrC,OAAO,CAAC,GAAG,CAAC;IAgFT,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;IAU7B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAU/B;AAED,eAAe,GAAG,CAAA"}
package/dist/index.js CHANGED
@@ -35,23 +35,23 @@ exports.PDS = exports.scripts = exports.repoPrepare = exports.sequencer = export
35
35
  // they get handled in the error.handler middleware
36
36
  // leave at top of file before importing Routes
37
37
  require("express-async-errors");
38
- const express_1 = __importDefault(require("express"));
38
+ const node_events_1 = __importDefault(require("node:events"));
39
+ const lib_1 = require("@did-plc/lib");
39
40
  const cors_1 = __importDefault(require("cors"));
40
- const events_1 = __importDefault(require("events"));
41
+ const express_1 = __importDefault(require("express"));
42
+ const http_terminator_1 = require("http-terminator");
41
43
  const common_1 = require("@atproto/common");
42
44
  const xrpc_server_1 = require("@atproto/xrpc-server");
43
- const lib_1 = require("@did-plc/lib");
44
45
  const api_1 = __importDefault(require("./api"));
45
46
  const authRoutes = __importStar(require("./auth-routes"));
46
47
  const basicRoutes = __importStar(require("./basic-routes"));
47
- const wellKnown = __importStar(require("./well-known"));
48
+ const context_1 = require("./context");
48
49
  const error = __importStar(require("./error"));
49
- const logger_1 = require("./logger");
50
50
  const lexicon_1 = require("./lexicon");
51
- const http_terminator_1 = require("http-terminator");
52
- const context_1 = __importDefault(require("./context"));
53
- const compression_1 = __importDefault(require("./util/compression"));
51
+ const logger_1 = require("./logger");
54
52
  const pipethrough_1 = require("./pipethrough");
53
+ const compression_1 = __importDefault(require("./util/compression"));
54
+ const wellKnown = __importStar(require("./well-known"));
55
55
  __exportStar(require("./config"), exports);
56
56
  var db_1 = require("./db");
57
57
  Object.defineProperty(exports, "Database", { enumerable: true, get: function () { return db_1.Database; } });
@@ -111,7 +111,7 @@ class PDS {
111
111
  this.app = opts.app;
112
112
  }
113
113
  static async create(cfg, secrets, overrides) {
114
- const ctx = await context_1.default.fromConfig(cfg, secrets, overrides);
114
+ const ctx = await context_1.AppContext.fromConfig(cfg, secrets, overrides);
115
115
  const xrpcOpts = {
116
116
  validateResponse: false,
117
117
  payload: {
@@ -182,7 +182,7 @@ class PDS {
182
182
  this.server = server;
183
183
  this.server.keepAliveTimeout = 90000;
184
184
  this.terminator = (0, http_terminator_1.createHttpTerminator)({ server });
185
- await events_1.default.once(server, 'listening');
185
+ await node_events_1.default.once(server, 'listening');
186
186
  return server;
187
187
  }
188
188
  async destroy() {