@atproto/pds 0.4.91 → 0.4.93

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 (763) hide show
  1. package/CHANGELOG.md +32 -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 +68 -4
  473. package/dist/lexicon/lexicons.d.ts.map +1 -1
  474. package/dist/lexicon/lexicons.js +39 -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 +8 -1
  484. package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts.map +1 -1
  485. package/dist/lexicon/types/app/bsky/feed/threadgate.js +10 -0
  486. package/dist/lexicon/types/app/bsky/feed/threadgate.js.map +1 -1
  487. package/dist/logger.js +2 -5
  488. package/dist/logger.js.map +1 -1
  489. package/dist/mailer/index.d.ts.map +1 -1
  490. package/dist/mailer/index.js.map +1 -1
  491. package/dist/mailer/moderation.d.ts.map +1 -1
  492. package/dist/mailer/moderation.js.map +1 -1
  493. package/dist/oauth/provider.d.ts +1 -5
  494. package/dist/oauth/provider.d.ts.map +1 -1
  495. package/dist/oauth/provider.js +2 -6
  496. package/dist/oauth/provider.js.map +1 -1
  497. package/dist/pipethrough.d.ts +2 -2
  498. package/dist/pipethrough.d.ts.map +1 -1
  499. package/dist/pipethrough.js +1 -1
  500. package/dist/pipethrough.js.map +1 -1
  501. package/dist/read-after-write/types.d.ts +3 -3
  502. package/dist/read-after-write/types.d.ts.map +1 -1
  503. package/dist/read-after-write/util.d.ts +2 -2
  504. package/dist/read-after-write/util.d.ts.map +1 -1
  505. package/dist/read-after-write/util.js +1 -2
  506. package/dist/read-after-write/util.js.map +1 -1
  507. package/dist/read-after-write/viewer.d.ts +16 -31
  508. package/dist/read-after-write/viewer.d.ts.map +1 -1
  509. package/dist/read-after-write/viewer.js +28 -110
  510. package/dist/read-after-write/viewer.js.map +1 -1
  511. package/dist/redis.js +2 -2
  512. package/dist/redis.js.map +1 -1
  513. package/dist/repo/prepare.d.ts +2 -2
  514. package/dist/repo/prepare.d.ts.map +1 -1
  515. package/dist/repo/prepare.js +6 -6
  516. package/dist/repo/prepare.js.map +1 -1
  517. package/dist/repo/types.d.ts +2 -2
  518. package/dist/repo/types.d.ts.map +1 -1
  519. package/dist/scripts/rebuild-repo.d.ts +1 -1
  520. package/dist/scripts/rebuild-repo.d.ts.map +1 -1
  521. package/dist/scripts/rebuild-repo.js +3 -46
  522. package/dist/scripts/rebuild-repo.js.map +1 -1
  523. package/dist/sequencer/db/index.d.ts.map +1 -1
  524. package/dist/sequencer/db/index.js.map +1 -1
  525. package/dist/sequencer/events.d.ts +7 -7
  526. package/dist/sequencer/events.d.ts.map +1 -1
  527. package/dist/sequencer/events.js.map +1 -1
  528. package/dist/sequencer/outbox.d.ts +1 -2
  529. package/dist/sequencer/outbox.d.ts.map +1 -1
  530. package/dist/sequencer/outbox.js +0 -1
  531. package/dist/sequencer/outbox.js.map +1 -1
  532. package/dist/sequencer/sequencer.d.ts +4 -4
  533. package/dist/sequencer/sequencer.d.ts.map +1 -1
  534. package/dist/sequencer/sequencer.js +9 -9
  535. package/dist/sequencer/sequencer.js.map +1 -1
  536. package/dist/util/compression.js.map +1 -1
  537. package/dist/util/params.d.ts.map +1 -1
  538. package/dist/util/params.js +1 -1
  539. package/dist/util/params.js.map +1 -1
  540. package/dist/well-known.d.ts +3 -3
  541. package/dist/well-known.d.ts.map +1 -1
  542. package/dist/well-known.js +2 -5
  543. package/dist/well-known.js.map +1 -1
  544. package/package.json +21 -18
  545. package/src/account-manager/db/index.ts +1 -1
  546. package/src/account-manager/db/schema/authorization-request.ts +1 -1
  547. package/src/account-manager/db/schema/device.ts +1 -1
  548. package/src/account-manager/db/schema/index.ts +7 -7
  549. package/src/account-manager/db/schema/token.ts +1 -2
  550. package/src/account-manager/db/schema/used-refresh-token.ts +1 -1
  551. package/src/account-manager/helpers/account.ts +2 -2
  552. package/src/account-manager/helpers/authorization-request.ts +2 -2
  553. package/src/account-manager/helpers/device-account.ts +1 -2
  554. package/src/account-manager/helpers/device.ts +3 -3
  555. package/src/account-manager/helpers/email-token.ts +1 -1
  556. package/src/account-manager/helpers/invite.ts +1 -1
  557. package/src/account-manager/helpers/password.ts +2 -2
  558. package/src/account-manager/helpers/scrypt.ts +2 -2
  559. package/src/account-manager/helpers/token.ts +1 -1
  560. package/src/account-manager/index.ts +38 -8
  561. package/src/actor-store/actor-store-reader.ts +45 -0
  562. package/src/actor-store/actor-store-resources.ts +8 -0
  563. package/src/actor-store/actor-store-transactor.ts +31 -0
  564. package/src/actor-store/actor-store-writer.ts +17 -0
  565. package/src/actor-store/{index.ts → actor-store.ts} +26 -117
  566. package/src/actor-store/blob/reader.ts +17 -2
  567. package/src/actor-store/blob/transactor.ts +25 -10
  568. package/src/actor-store/db/index.ts +1 -1
  569. package/src/actor-store/db/schema/index.ts +3 -3
  570. package/src/actor-store/migrate.ts +1 -1
  571. package/src/actor-store/preference/transactor.ts +2 -2
  572. package/src/actor-store/record/reader.ts +125 -4
  573. package/src/actor-store/record/transactor.ts +3 -3
  574. package/src/actor-store/repo/reader.ts +1 -1
  575. package/src/actor-store/repo/sql-repo-reader.ts +7 -6
  576. package/src/actor-store/repo/sql-repo-transactor.ts +2 -2
  577. package/src/actor-store/repo/transactor.ts +16 -9
  578. package/src/api/app/bsky/actor/getPreferences.ts +4 -3
  579. package/src/api/app/bsky/actor/getProfile.ts +4 -4
  580. package/src/api/app/bsky/actor/getProfiles.ts +4 -4
  581. package/src/api/app/bsky/actor/index.ts +1 -2
  582. package/src/api/app/bsky/actor/putPreferences.ts +4 -3
  583. package/src/api/app/bsky/feed/getActorLikes.ts +4 -4
  584. package/src/api/app/bsky/feed/getAuthorFeed.ts +5 -5
  585. package/src/api/app/bsky/feed/getFeed.ts +8 -8
  586. package/src/api/app/bsky/feed/getPostThread.ts +14 -14
  587. package/src/api/app/bsky/feed/getTimeline.ts +4 -4
  588. package/src/api/app/bsky/feed/index.ts +1 -1
  589. package/src/api/app/bsky/index.ts +1 -1
  590. package/src/api/app/bsky/notification/index.ts +1 -1
  591. package/src/api/app/bsky/notification/registerPush.ts +9 -8
  592. package/src/api/app/bsky/util/resolver.ts +1 -1
  593. package/src/api/com/atproto/admin/deleteAccount.ts +2 -2
  594. package/src/api/com/atproto/admin/disableAccountInvites.ts +1 -1
  595. package/src/api/com/atproto/admin/disableInviteCodes.ts +1 -1
  596. package/src/api/com/atproto/admin/enableAccountInvites.ts +1 -1
  597. package/src/api/com/atproto/admin/getAccountInfo.ts +2 -3
  598. package/src/api/com/atproto/admin/getAccountInfos.ts +1 -1
  599. package/src/api/com/atproto/admin/getInviteCodes.ts +4 -4
  600. package/src/api/com/atproto/admin/getSubjectStatus.ts +1 -1
  601. package/src/api/com/atproto/admin/index.ts +9 -9
  602. package/src/api/com/atproto/admin/sendEmail.ts +2 -2
  603. package/src/api/com/atproto/admin/updateAccountEmail.ts +1 -1
  604. package/src/api/com/atproto/admin/updateAccountHandle.ts +1 -1
  605. package/src/api/com/atproto/admin/updateAccountPassword.ts +1 -1
  606. package/src/api/com/atproto/admin/updateSubjectStatus.ts +3 -3
  607. package/src/api/com/atproto/admin/util.ts +1 -1
  608. package/src/api/com/atproto/identity/getRecommendedDidCredentials.ts +1 -1
  609. package/src/api/com/atproto/identity/index.ts +3 -3
  610. package/src/api/com/atproto/identity/requestPlcOperationSignature.ts +2 -4
  611. package/src/api/com/atproto/identity/resolveHandle.ts +12 -16
  612. package/src/api/com/atproto/identity/signPlcOperation.ts +2 -4
  613. package/src/api/com/atproto/identity/submitPlcOperation.ts +2 -2
  614. package/src/api/com/atproto/identity/updateHandle.ts +3 -3
  615. package/src/api/com/atproto/index.ts +1 -1
  616. package/src/api/com/atproto/moderation/createReport.ts +4 -4
  617. package/src/api/com/atproto/moderation/index.ts +1 -1
  618. package/src/api/com/atproto/repo/applyWrites.ts +9 -7
  619. package/src/api/com/atproto/repo/createRecord.ts +4 -3
  620. package/src/api/com/atproto/repo/deleteRecord.ts +7 -4
  621. package/src/api/com/atproto/repo/describeRepo.ts +3 -3
  622. package/src/api/com/atproto/repo/getRecord.ts +2 -2
  623. package/src/api/com/atproto/repo/importRepo.ts +12 -27
  624. package/src/api/com/atproto/repo/index.ts +3 -3
  625. package/src/api/com/atproto/repo/listMissingBlobs.ts +1 -1
  626. package/src/api/com/atproto/repo/listRecords.ts +2 -2
  627. package/src/api/com/atproto/repo/putRecord.ts +8 -7
  628. package/src/api/com/atproto/repo/uploadBlob.ts +2 -2
  629. package/src/api/com/atproto/server/activateAccount.ts +2 -3
  630. package/src/api/com/atproto/server/checkAccountStatus.ts +1 -1
  631. package/src/api/com/atproto/server/confirmEmail.ts +1 -3
  632. package/src/api/com/atproto/server/createAccount.ts +6 -7
  633. package/src/api/com/atproto/server/createAppPassword.ts +1 -2
  634. package/src/api/com/atproto/server/createInviteCode.ts +1 -1
  635. package/src/api/com/atproto/server/createInviteCodes.ts +2 -2
  636. package/src/api/com/atproto/server/createSession.ts +1 -2
  637. package/src/api/com/atproto/server/deactivateAccount.ts +1 -1
  638. package/src/api/com/atproto/server/deleteAccount.ts +2 -2
  639. package/src/api/com/atproto/server/deleteSession.ts +1 -1
  640. package/src/api/com/atproto/server/describeServer.ts +1 -1
  641. package/src/api/com/atproto/server/getAccountInviteCodes.ts +2 -4
  642. package/src/api/com/atproto/server/getServiceAuth.ts +4 -4
  643. package/src/api/com/atproto/server/getSession.ts +3 -4
  644. package/src/api/com/atproto/server/index.ts +18 -27
  645. package/src/api/com/atproto/server/listAppPasswords.ts +1 -2
  646. package/src/api/com/atproto/server/refreshSession.ts +2 -3
  647. package/src/api/com/atproto/server/requestAccountDelete.ts +1 -3
  648. package/src/api/com/atproto/server/requestEmailConfirmation.ts +1 -3
  649. package/src/api/com/atproto/server/requestEmailUpdate.ts +2 -4
  650. package/src/api/com/atproto/server/requestPasswordReset.ts +1 -1
  651. package/src/api/com/atproto/server/reserveSigningKey.ts +1 -1
  652. package/src/api/com/atproto/server/resetPassword.ts +2 -2
  653. package/src/api/com/atproto/server/revokeAppPassword.ts +1 -2
  654. package/src/api/com/atproto/server/updateEmail.ts +2 -4
  655. package/src/api/com/atproto/server/util.ts +3 -3
  656. package/src/api/com/atproto/sync/deprecated/getCheckout.ts +1 -1
  657. package/src/api/com/atproto/sync/deprecated/getHead.ts +1 -1
  658. package/src/api/com/atproto/sync/getBlob.ts +4 -4
  659. package/src/api/com/atproto/sync/getBlocks.ts +2 -2
  660. package/src/api/com/atproto/sync/getLatestCommit.ts +1 -1
  661. package/src/api/com/atproto/sync/getRecord.ts +4 -4
  662. package/src/api/com/atproto/sync/getRepo.ts +4 -4
  663. package/src/api/com/atproto/sync/getRepoStatus.ts +2 -2
  664. package/src/api/com/atproto/sync/index.ts +5 -5
  665. package/src/api/com/atproto/sync/listBlobs.ts +2 -2
  666. package/src/api/com/atproto/sync/listRepos.ts +3 -3
  667. package/src/api/com/atproto/sync/subscribeRepos.ts +2 -2
  668. package/src/api/com/atproto/sync/util.ts +1 -1
  669. package/src/api/com/atproto/temp/checkSignupQueue.ts +2 -2
  670. package/src/api/com/atproto/temp/index.ts +1 -1
  671. package/src/api/index.ts +2 -2
  672. package/src/api/proxy.ts +1 -1
  673. package/src/auth-routes.ts +2 -3
  674. package/src/auth-verifier.ts +2 -3
  675. package/src/basic-routes.ts +4 -4
  676. package/src/bsky-app-view.ts +26 -0
  677. package/src/config/config.ts +1 -1
  678. package/src/config/env.ts +1 -1
  679. package/src/context.ts +49 -46
  680. package/src/crawlers.ts +1 -1
  681. package/src/db/db.ts +7 -7
  682. package/src/db/migrator.ts +1 -1
  683. package/src/db/tables/moderation.ts +2 -2
  684. package/src/db/util.ts +2 -2
  685. package/src/did-cache/db/index.ts +1 -1
  686. package/src/did-cache/index.ts +1 -1
  687. package/src/disk-blobstore.ts +6 -8
  688. package/src/error.ts +2 -2
  689. package/src/handle/index.ts +2 -2
  690. package/src/image/image-url-builder.ts +16 -0
  691. package/src/image/index.ts +2 -2
  692. package/src/index.ts +15 -13
  693. package/src/lexicon/lexicons.ts +44 -0
  694. package/src/lexicon/types/app/bsky/actor/defs.ts +37 -0
  695. package/src/lexicon/types/app/bsky/feed/postgate.ts +1 -0
  696. package/src/lexicon/types/app/bsky/feed/threadgate.ts +19 -0
  697. package/src/logger.ts +1 -1
  698. package/src/mailer/index.ts +1 -2
  699. package/src/mailer/moderation.ts +1 -1
  700. package/src/mailer/templates/confirm-email.d.ts +1 -1
  701. package/src/mailer/templates/delete-account.d.ts +1 -1
  702. package/src/mailer/templates/plc-operation.d.ts +1 -1
  703. package/src/mailer/templates/reset-password.d.ts +1 -1
  704. package/src/mailer/templates/update-email.d.ts +1 -1
  705. package/src/oauth/provider.ts +1 -17
  706. package/src/pipethrough.ts +4 -6
  707. package/src/read-after-write/types.ts +3 -3
  708. package/src/read-after-write/util.ts +3 -5
  709. package/src/read-after-write/viewer.ts +50 -124
  710. package/src/redis.ts +1 -1
  711. package/src/repo/prepare.ts +18 -18
  712. package/src/repo/types.ts +2 -2
  713. package/src/scripts/rebuild-repo.ts +4 -61
  714. package/src/sequencer/db/index.ts +1 -1
  715. package/src/sequencer/events.ts +3 -3
  716. package/src/sequencer/outbox.ts +1 -3
  717. package/src/sequencer/sequencer.ts +12 -12
  718. package/src/util/compression.ts +1 -1
  719. package/src/util/params.ts +1 -1
  720. package/src/well-known.ts +4 -4
  721. package/tests/_util.ts +5 -5
  722. package/tests/account-deletion.test.ts +7 -7
  723. package/tests/account-migration.test.ts +3 -3
  724. package/tests/account.test.ts +2 -2
  725. package/tests/app-passwords.test.ts +1 -1
  726. package/tests/blob-deletes.test.ts +4 -6
  727. package/tests/create-post.test.ts +3 -3
  728. package/tests/crud.test.ts +12 -16
  729. package/tests/email-confirmation.test.ts +5 -5
  730. package/tests/entryway.test.ts +5 -5
  731. package/tests/file-uploads.test.ts +7 -7
  732. package/tests/handles.test.ts +3 -3
  733. package/tests/invites-admin.test.ts +1 -1
  734. package/tests/moderation.test.ts +2 -2
  735. package/tests/moderator-auth.test.ts +4 -4
  736. package/tests/oauth.test.ts +4 -4
  737. package/tests/plc-operations.test.ts +6 -6
  738. package/tests/preferences.test.ts +2 -2
  739. package/tests/proxied/admin.test.ts +2 -2
  740. package/tests/proxied/feedgen.test.ts +4 -4
  741. package/tests/proxied/notif.test.ts +5 -5
  742. package/tests/proxied/procedures.test.ts +1 -1
  743. package/tests/proxied/proxy-catchall.test.ts +6 -6
  744. package/tests/proxied/proxy-header.test.ts +5 -5
  745. package/tests/proxied/read-after-write.test.ts +6 -6
  746. package/tests/proxied/views.test.ts +3 -3
  747. package/tests/races.test.ts +2 -2
  748. package/tests/rate-limits.test.ts +1 -1
  749. package/tests/sequencer.test.ts +7 -7
  750. package/tests/server.test.ts +4 -4
  751. package/tests/sync/list.test.ts +1 -1
  752. package/tests/sync/subscribe-repos.test.ts +9 -9
  753. package/tests/sync/sync.test.ts +3 -3
  754. package/tests/takedown-appeal.test.ts +1 -1
  755. package/tsconfig.build.tsbuildinfo +1 -1
  756. package/dist/actor-store/index.d.ts +0 -65
  757. package/dist/actor-store/index.d.ts.map +0 -1
  758. package/dist/actor-store/index.js.map +0 -1
  759. package/dist/oauth/detailed-account-store.d.ts +0 -27
  760. package/dist/oauth/detailed-account-store.d.ts.map +0 -1
  761. package/dist/oauth/detailed-account-store.js +0 -76
  762. package/dist/oauth/detailed-account-store.js.map +0 -1
  763. package/src/oauth/detailed-account-store.ts +0 -96
@@ -1 +1 @@
1
- {"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/api/proxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAE3C,eAAO,MAAM,cAAc,GAAI,CAAC,UAAU;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE;;;CAMtE,CAAA;AAID,wBAAgB,YAAY,CAC1B,GAAG,EAAE,eAAe,EACpB,YAAY,CAAC,EAAE,KAAK,GACnB;IAAE,OAAO,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,SAAS,CAAA;AAE1E,wBAAgB,YAAY,CAC1B,GAAG,EAAE,eAAe,EACpB,YAAY,EAAE,IAAI,GAEhB;IAAE,OAAO,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,EAAE,kBAAkB,CAAA;CAAE,GACpE,SAAS,CAAA"}
1
+ {"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/api/proxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAGvC,eAAO,MAAM,cAAc,GAAI,CAAC,UAAU;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE;;;CAMtE,CAAA;AAID,wBAAgB,YAAY,CAC1B,GAAG,EAAE,eAAe,EACpB,YAAY,CAAC,EAAE,KAAK,GACnB;IAAE,OAAO,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,SAAS,CAAA;AAE1E,wBAAgB,YAAY,CAC1B,GAAG,EAAE,eAAe,EACpB,YAAY,EAAE,IAAI,GAEhB;IAAE,OAAO,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,EAAE,kBAAkB,CAAA;CAAE,GACpE,SAAS,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"proxy.js","sourceRoot":"","sources":["../../src/api/proxy.ts"],"names":[],"mappings":";;;AA0BA,oCA0BC;AAnDD,sDAA0D;AAGnD,MAAM,cAAc,GAAG,CAAI,MAAqC,EAAE,EAAE;IACzE,sEAAsE;IACtE,O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YAAsB;IACvE,MAAM,EAAE,aAAa,EAAE,GAAG,GAAG,CAAC,OAAO,CAAA;IAErC,IAAI,aAAa,EAAE,CAAC;QAClB,4EAA4E;QAC5E,qEAAqE;QACrE,oEAAoE;QACpE,qEAAqE;QACrE,qBAAqB;QAErB,wEAAwE;QACxE,2EAA2E;QAC3E,0BAA0B;QAC1B,MAAM,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;QAC1C,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,iCAAmB,CAAC,8BAA8B,CAAC,CAAA;QAC/D,CAAC;QACD,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,MAAM,IAAI,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YACzD,MAAM,IAAI,iCAAmB,CAAC,iCAAiC,CAAC,CAAA;QAClE,CAAC;QAED,OAAO;YACL,OAAO,EAAE,EAAE,aAAa,EAAE;YAC1B,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS;SACxD,CAAA;IACH,CAAC;AACH,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { Router } from 'express';
2
- import AppContext from './context';
2
+ import { AppContext } from './context';
3
3
  export declare const createRouter: ({ authProvider, cfg }: AppContext) => Router;
4
4
  //# sourceMappingURL=auth-routes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth-routes.d.ts","sourceRoot":"","sources":["../src/auth-routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC,OAAO,UAAU,MAAM,WAAW,CAAA;AAElC,eAAO,MAAM,YAAY,0BAA2B,UAAU,KAAG,MA+BhE,CAAA"}
1
+ {"version":3,"file":"auth-routes.d.ts","sourceRoot":"","sources":["../src/auth-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAEtC,eAAO,MAAM,YAAY,0BAA2B,UAAU,KAAG,MA+BhE,CAAA"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createRouter = void 0;
4
- const oauth_provider_1 = require("@atproto/oauth-provider");
5
4
  const express_1 = require("express");
5
+ const oauth_provider_1 = require("@atproto/oauth-provider");
6
6
  const createRouter = ({ authProvider, cfg }) => {
7
7
  const router = (0, express_1.Router)();
8
8
  const oauthProtectedResourceMetadata = oauth_provider_1.oauthProtectedResourceMetadataSchema.parse({
@@ -1 +1 @@
1
- {"version":3,"file":"auth-routes.js","sourceRoot":"","sources":["../src/auth-routes.ts"],"names":[],"mappings":";;;AAAA,4DAA8E;AAC9E,qCAAgC;AAIzB,MAAM,YAAY,GAAG,CAAC,EAAE,YAAY,EAAE,GAAG,EAAc,EAAU,EAAE;IACxE,MAAM,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAA;IAEvB,MAAM,8BAA8B,GAClC,qDAAoC,CAAC,KAAK,CAAC;QACzC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,SAAS;QAC/B,qBAAqB,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC;QACnE,wBAAwB,EAAE,CAAC,QAAQ,CAAC;QACpC,gBAAgB,EAAE,EAAE;QACpB,sBAAsB,EAAE,qBAAqB;KAC9C,CAAC,CAAA;IAEJ,IACE,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO;QACpB,CAAC,8BAA8B,CAAC,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,EAC/D,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAA;IAC3D,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,uCAAuC,EAAE,CAAC,GAAG,EAAE,GAA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AC,GAAG,CAAC,uCAAuC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QAC/D,GAAG,CAAC,SAAS,CAAC,6BAA6B,EAAE,GAAG,CAAC,CAAA;QACjD,GAAG,CAAC,SAAS,CAAC,6BAA6B,EAAE,GAAG,CAAC,CAAA;QACjD,GAAG,CAAC,SAAS,CAAC,8BAA8B,EAAE,GAAG,CAAC,CAAA;QAClD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAA;IACtD,CAAC,CAAC,CAAA;IAEF,IAAI,YAAY,EAAE,CAAC;QACjB,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC,CAAA;IACzC,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AA/BY,QAAA,YAAY,gBA+BxB"}
@@ -1,8 +1,8 @@
1
1
  import { KeyObject } from 'node:crypto';
2
+ import * as jose from 'jose';
2
3
  import { IdResolver } from '@atproto/identity';
3
4
  import { OAuthVerifier } from '@atproto/oauth-provider';
4
5
  import { AuthVerifierContext, StreamAuthVerifierContext } from '@atproto/xrpc-server';
5
- import * as jose from 'jose';
6
6
  import { AccountManager } from './account-manager';
7
7
  type ReqCtx = AuthVerifierContext | StreamAuthVerifierContext;
8
8
  export declare enum AuthScope {
@@ -1 +1 @@
1
- {"version":3,"file":"auth-verifier.d.ts","sourceRoot":"","sources":["../src/auth-verifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,aAAa,CAAA;AAIzE,OAAO,EAAE,UAAU,EAA0B,MAAM,mBAAmB,CAAA;AACtE,OAAO,EAEL,aAAa,EAEd,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEL,mBAAmB,EAGnB,yBAAyB,EAI1B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAE5B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAA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;IAOvC,aAAa,CACX,IAAI,EAAE,YAAY,GAAG,gBAAgB,GAAG,UAAU,EAClD,GAAG,EAAE,MAAM,GACV,OAAO;cAUM,SAAS,CACvB,KAAK,EAAE,MAAM,EACb,aAAa,CAAC,EAAE,IAAI,CAAC,gBAAgB;IAevC,SAAS,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM;CAOrC;AAKD,aAAK,QAAQ;IACX,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,eAAO,MAAM,wBAAwB,mBACnB,MAAM,KACrB,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,CAqB/C,CAAA;AAsBD,eAAO,MAAM,cAAc,yBACH,MAAM,KAC3B;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,IAc3C,CAAA;AAOD,eAAO,MAAM,qBAAqB,WAAY,MAAM,KAAG,SAEtD,CAAA;AAED,eAAO,MAAM,qBAAqB,iBAAkB,MAAM,KAAG,SAG5D,CAAA"}
@@ -28,12 +28,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.createPublicKeyObject = exports.createSecretKeyObject = exports.parseBasicAuth = exports.parseAuthorizationHeader = exports.AuthVerifier = exports.RoleStatus = exports.AuthScope = void 0;
30
30
  const node_crypto_1 = require("node:crypto");
31
+ const jose = __importStar(require("jose"));
32
+ const key_encoder_1 = __importDefault(require("key-encoder"));
31
33
  const common_1 = require("@atproto/common");
32
34
  const identity_1 = require("@atproto/identity");
33
35
  const oauth_provider_1 = require("@atproto/oauth-provider");
34
36
  const xrpc_server_1 = require("@atproto/xrpc-server");
35
- const jose = __importStar(require("jose"));
36
- const key_encoder_1 = __importDefault(require("key-encoder"));
37
37
  const db_1 = require("./db");
38
38
  // @TODO sync-up with current method names, consider backwards compat.
39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AC,CAAC;YAChD,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;QAC3B,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,GAAG,CAAC,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QACjC,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -1,4 +1,4 @@
1
- import express from 'express';
2
- import AppContext from './context';
3
- export declare const createRouter: (ctx: AppContext) => express.Router;
1
+ import { Router } from 'express';
2
+ import { AppContext } from './context';
3
+ export declare const createRouter: (ctx: AppContext) => Router;
4
4
  //# sourceMappingURL=basic-routes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"basic-routes.d.ts","sourceRoot":"","sources":["../src/basic-routes.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,OAAO,UAAU,MAAM,WAAW,CAAA;AAElC,eAAO,MAAM,YAAY,QAAS,UAAU,KAAG,OAAO,CAAC,MA+CtD,CAAA"}
1
+ {"version":3,"file":"basic-routes.d.ts","sourceRoot":"","sources":["../src/basic-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAEtC,eAAO,MAAM,YAAY,QAAS,UAAU,KAAG,MA+C9C,CAAA"}
@@ -1,13 +1,10 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.createRouter = void 0;
7
- const express_1 = __importDefault(require("express"));
4
+ const express_1 = require("express");
8
5
  const kysely_1 = require("kysely");
9
6
  const createRouter = (ctx) => {
10
- const router = express_1.default.Router();
7
+ const router = (0, express_1.Router)();
11
8
  router.get('/', function (req, res) {
12
9
  res.type('text/plain');
13
10
  res.send(`
@@ -1 +1 @@
1
- {"version":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CAAA;IACvB,CAAC,CAAC,CAAA;IAEF,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AA/CY,QAAA,YAAY,gBA+CxB"}
@@ -0,0 +1,15 @@
1
+ import { AtpAgent } from '@atproto/api';
2
+ export type AppViewOptions = {
3
+ url: string;
4
+ did: string;
5
+ cdnUrlPattern?: string;
6
+ };
7
+ export declare class BskyAppView {
8
+ did: string;
9
+ url: string;
10
+ agent: AtpAgent;
11
+ private cdnUrlPattern?;
12
+ constructor(options: AppViewOptions);
13
+ getImageUrl(pattern: string, did: string, cid: string): string | undefined;
14
+ }
15
+ //# sourceMappingURL=bsky-app-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bsky-app-view.d.ts","sourceRoot":"","sources":["../src/bsky-app-view.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,qBAAa,WAAW;IACf,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,QAAQ,CAAA;IACtB,OAAO,CAAC,aAAa,CAAC,CAAQ;gBAElB,OAAO,EAAE,cAAc;IAOnC,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;CAG3E"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BskyAppView = void 0;
4
+ const node_util_1 = require("node:util");
5
+ const api_1 = require("@atproto/api");
6
+ class BskyAppView {
7
+ constructor(options) {
8
+ Object.defineProperty(this, "did", {
9
+ enumerable: true,
10
+ configurable: true,
11
+ writable: true,
12
+ value: void 0
13
+ });
14
+ Object.defineProperty(this, "url", {
15
+ enumerable: true,
16
+ configurable: true,
17
+ writable: true,
18
+ value: void 0
19
+ });
20
+ Object.defineProperty(this, "agent", {
21
+ enumerable: true,
22
+ configurable: true,
23
+ writable: true,
24
+ value: void 0
25
+ });
26
+ Object.defineProperty(this, "cdnUrlPattern", {
27
+ enumerable: true,
28
+ configurable: true,
29
+ writable: true,
30
+ value: void 0
31
+ });
32
+ this.did = options.did;
33
+ this.url = options.url;
34
+ this.agent = new api_1.AtpAgent({ service: options.url });
35
+ this.cdnUrlPattern = options.cdnUrlPattern;
36
+ }
37
+ getImageUrl(pattern, did, cid) {
38
+ if (this.cdnUrlPattern)
39
+ return (0, node_util_1.format)(this.cdnUrlPattern, pattern, did, cid);
40
+ }
41
+ }
42
+ exports.BskyAppView = BskyAppView;
43
+ //# sourceMappingURL=bsky-app-view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bsky-app-view.js","sourceRoot":"","sources":["../src/bsky-app-view.ts"],"names":[],"mappings":";;;AAAA,yCAAkC;AAClC,sCAAuC;AAQvC,MAAa,WAAW;IAMtB,YAAY,OAAuB;QAL5B;;;;;WAAW;QACX;;;;;WAAW;QACX;;;;;WAAe;QACd;;;;;WAAsB;QAG5B,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;QACtB,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,cAAQ,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;QACnD,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAA;IAC5C,CAAC;IAED,WAAW,CAAC,OAAe,EAAE,GAAW,EAAE,GAAW;QACnD,IAAI,IAAI,CAAC,aAAa;YAAE,OAAO,IAAA,kBAAM,EAAC,IAAI,CAAC,aAAa,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;IAC9E,CAAC;CACF;AAhBD,kCAgBC"}
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.envToCfg = void 0;
7
- const node_path_1 = __importDefault(require("node:path"));
8
7
  const node_assert_1 = __importDefault(require("node:assert"));
8
+ const node_path_1 = __importDefault(require("node:path"));
9
9
  const common_1 = require("@atproto/common");
10
10
  // off-config but still from env:
11
11
  // logging: LOG_LEVEL, LOG_SYSTEMS, LOG_ENABLED, LOG_DESTINATION
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA4B;AAC5B,8DAAgC;AAChC,4CAAmD;AAInD,iCAAiC;AACjC,gEAAgE;AAEzD,MAAM,QAAQ,GAAG,CAAC,GAAsB,EAAgB,EAAE;IAC/D,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,CAAA;IAC7B,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,IAAI,WAAW,CAAA;IAC5C,MAAM,SAAS,GACb,QAAQ,KAAK,WAAW;QACtB,CAAC,CAAC,oBAAoB,IAAI,EAAE;QAC5B,CAAC,CAAC,WAAW,QAAQ,EAAE,CAAA;IAC3B,MAAM,GAAG,GAAG,GAAG,CAAC,UAAU,IAAI,WAAW,QAAQ,EAAE,CAAA;IACnD,MAAM,UAAU,GAA4B;QAC1C,IAAI;QACJ,QAAQ;QACR,SAAS;QACT,GAAG;QACH,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,WAAW;QACjC,gBAAgB,EAAE,GAAG,CAAC,gBAAgB;QACtC,iBAAiB,EAAE,GAAG,CAAC,iBAAiB;QACxC,mBAAmB,EAAE,GAAG,CAAC,mBAAmB;QAC5C,gBAAgB,EAAE,GAAG,CAAC,gBAAgB,IAAI,IAAI;QAC9C,eAAe,EAAE,GAAG,CAAC,eAAe,IAAI,CAAC,GAAG,IAAI,G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CACjB;iBACF;aACF;SACF,CAAA;IAEL,OAAO;QACL,OAAO,EAAE,UAAU;QACnB,EAAE,EAAE,KAAK;QACT,UAAU,EAAE,aAAa;QACzB,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,WAAW;QACrB,OAAO,EAAE,UAAU;QACnB,KAAK,EAAE,QAAQ;QACf,eAAe,EAAE,kBAAkB;QACnC,YAAY,EAAE,eAAe;QAC7B,WAAW,EAAE,cAAc;QAC3B,UAAU,EAAE,aAAa;QACzB,aAAa,EAAE,gBAAgB;QAC/B,KAAK,EAAE,QAAQ;QACf,UAAU,EAAE,aAAa;QACzB,QAAQ,EAAE,WAAW;QACrB,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,QAAQ;KAChB,CAAA;AACH,CAAC,CAAA;AAxTY,QAAA,QAAQ,YAwTpB"}
package/dist/context.d.ts CHANGED
@@ -1,24 +1,25 @@
1
- import * as undici from 'undici';
2
- import { Redis } from 'ioredis';
3
1
  import * as plc from '@did-plc/lib';
4
- import { Fetch } from '@atproto-labs/fetch-node';
2
+ import { Redis } from 'ioredis';
3
+ import * as undici from 'undici';
4
+ import { AtpAgent } from '@atproto/api';
5
5
  import * as crypto from '@atproto/crypto';
6
6
  import { IdResolver } from '@atproto/identity';
7
- import { AtpAgent } from '@atproto/api';
8
7
  import { BlobStore } from '@atproto/repo';
9
8
  import { RateLimiterCreator } from '@atproto/xrpc-server';
10
- import { ServerConfig, ServerSecrets } from './config';
11
- import { PdsOAuthProvider } from './oauth/provider';
12
- import { AuthVerifier } from './auth-verifier';
13
- import { ServerMailer } from './mailer';
14
- import { ModerationMailer } from './mailer/moderation';
9
+ import { Fetch } from '@atproto-labs/fetch-node';
15
10
  import { AccountManager } from './account-manager';
16
- import { Sequencer } from './sequencer';
11
+ import { ActorStore } from './actor-store/actor-store';
12
+ import { AuthVerifier } from './auth-verifier';
17
13
  import { BackgroundQueue } from './background';
18
- import { DidSqliteCache } from './did-cache';
14
+ import { BskyAppView } from './bsky-app-view';
15
+ import { ServerConfig, ServerSecrets } from './config';
19
16
  import { Crawlers } from './crawlers';
20
- import { ActorStore } from './actor-store';
17
+ import { DidSqliteCache } from './did-cache';
18
+ import { ServerMailer } from './mailer';
19
+ import { ModerationMailer } from './mailer/moderation';
20
+ import { PdsOAuthProvider } from './oauth/provider';
21
21
  import { LocalViewerCreator } from './read-after-write/viewer';
22
+ import { Sequencer } from './sequencer';
22
23
  export type AppContextOptions = {
23
24
  actorStore: ActorStore;
24
25
  blobstore: (did: string) => BlobStore;
@@ -34,7 +35,7 @@ export type AppContextOptions = {
34
35
  redisScratch?: Redis;
35
36
  ratelimitCreator?: RateLimiterCreator;
36
37
  crawlers: Crawlers;
37
- appViewAgent?: AtpAgent;
38
+ bskyAppView?: BskyAppView;
38
39
  moderationAgent?: AtpAgent;
39
40
  reportingAgent?: AtpAgent;
40
41
  entrywayAgent?: AtpAgent;
@@ -60,7 +61,7 @@ export declare class AppContext {
60
61
  redisScratch?: Redis;
61
62
  ratelimitCreator?: RateLimiterCreator;
62
63
  crawlers: Crawlers;
63
- appViewAgent: AtpAgent | undefined;
64
+ bskyAppView?: BskyAppView;
64
65
  moderationAgent: AtpAgent | undefined;
65
66
  reportingAgent: AtpAgent | undefined;
66
67
  entrywayAgent: AtpAgent | undefined;
@@ -84,5 +85,4 @@ export declare class AppContext {
84
85
  }>;
85
86
  serviceAuthJwt(did: string, aud: string, lxm: string): Promise<string>;
86
87
  }
87
- export default AppContext;
88
88
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAA;AAEhC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,KAAK,GAAG,MAAM,cAAc,CAAA;AACnC,OAAO,EACL,KAAK,EAKN,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AAG,EAAE,YAAY,EACjB,OAAO,EAAE,aAAa,EACtB,SAAS,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,GACrC,OAAO,CAAC,UAAU,CAAC;IAqQhB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;;;;;IAK3C,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;;;;;IAUxD,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;CAS3D"}
package/dist/context.js CHANGED
@@ -28,30 +28,32 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.AppContext = void 0;
30
30
  const node_assert_1 = __importDefault(require("node:assert"));
31
- const undici = __importStar(require("undici"));
32
- const nodemailer = __importStar(require("nodemailer"));
33
31
  const plc = __importStar(require("@did-plc/lib"));
34
- const fetch_node_1 = require("@atproto-labs/fetch-node");
35
- const crypto = __importStar(require("@atproto/crypto"));
36
- const identity_1 = require("@atproto/identity");
32
+ const nodemailer = __importStar(require("nodemailer"));
33
+ const undici = __importStar(require("undici"));
37
34
  const api_1 = require("@atproto/api");
38
35
  const aws_1 = require("@atproto/aws");
36
+ const crypto = __importStar(require("@atproto/crypto"));
37
+ const identity_1 = require("@atproto/identity");
39
38
  const oauth_provider_1 = require("@atproto/oauth-provider");
40
39
  const xrpc_server_1 = require("@atproto/xrpc-server");
41
- const provider_1 = require("./oauth/provider");
42
- const auth_verifier_1 = require("./auth-verifier");
43
- const logger_1 = require("./logger");
44
- const mailer_1 = require("./mailer");
45
- const moderation_1 = require("./mailer/moderation");
40
+ const fetch_node_1 = require("@atproto-labs/fetch-node");
46
41
  const account_manager_1 = require("./account-manager");
47
- const sequencer_1 = require("./sequencer");
42
+ const actor_store_1 = require("./actor-store/actor-store");
43
+ const auth_verifier_1 = require("./auth-verifier");
48
44
  const background_1 = require("./background");
49
- const did_cache_1 = require("./did-cache");
45
+ const bsky_app_view_1 = require("./bsky-app-view");
50
46
  const crawlers_1 = require("./crawlers");
47
+ const did_cache_1 = require("./did-cache");
51
48
  const disk_blobstore_1 = require("./disk-blobstore");
52
- const redis_1 = require("./redis");
53
- const actor_store_1 = require("./actor-store");
49
+ const image_url_builder_1 = require("./image/image-url-builder");
50
+ const logger_1 = require("./logger");
51
+ const mailer_1 = require("./mailer");
52
+ const moderation_1 = require("./mailer/moderation");
53
+ const provider_1 = require("./oauth/provider");
54
54
  const viewer_1 = require("./read-after-write/viewer");
55
+ const redis_1 = require("./redis");
56
+ const sequencer_1 = require("./sequencer");
55
57
  class AppContext {
56
58
  constructor(opts) {
57
59
  Object.defineProperty(this, "actorStore", {
@@ -138,7 +140,7 @@ class AppContext {
138
140
  writable: true,
139
141
  value: void 0
140
142
  });
141
- Object.defineProperty(this, "appViewAgent", {
143
+ Object.defineProperty(this, "bskyAppView", {
142
144
  enumerable: true,
143
145
  configurable: true,
144
146
  writable: true,
@@ -212,7 +214,7 @@ class AppContext {
212
214
  this.redisScratch = opts.redisScratch;
213
215
  this.ratelimitCreator = opts.ratelimitCreator;
214
216
  this.crawlers = opts.crawlers;
215
- this.appViewAgent = opts.appViewAgent;
217
+ this.bskyAppView = opts.bskyAppView;
216
218
  this.moderationAgent = opts.moderationAgent;
217
219
  this.reportingAgent = opts.reportingAgent;
218
220
  this.entrywayAgent = opts.entrywayAgent;
@@ -279,8 +281,8 @@ class AppContext {
279
281
  });
280
282
  }
281
283
  }
282
- const appViewAgent = cfg.bskyAppView
283
- ? new api_1.AtpAgent({ service: cfg.bskyAppView.url })
284
+ const bskyAppView = cfg.bskyAppView
285
+ ? new bsky_app_view_1.BskyAppView(cfg.bskyAppView)
284
286
  : undefined;
285
287
  const moderationAgent = cfg.modService
286
288
  ? new api_1.AtpAgent({ service: cfg.modService.url })
@@ -295,24 +297,19 @@ class AppContext {
295
297
  const jwtPublicKey = cfg.entryway
296
298
  ? (0, auth_verifier_1.createPublicKeyObject)(cfg.entryway.jwtPublicKeyHex)
297
299
  : null;
298
- const accountManager = new account_manager_1.AccountManager(backgroundQueue, cfg.db.accountDbLoc, jwtSecretKey, cfg.service.did, cfg.db.disableWalAutoCheckpoint);
300
+ const imageUrlBuilder = new image_url_builder_1.ImageUrlBuilder(cfg.service.hostname, bskyAppView);
301
+ const actorStore = new actor_store_1.ActorStore(cfg.actorStore, {
302
+ blobstore,
303
+ backgroundQueue,
304
+ });
305
+ const accountManager = new account_manager_1.AccountManager(actorStore, imageUrlBuilder, backgroundQueue, cfg.db.accountDbLoc, jwtSecretKey, cfg.service.did, cfg.db.disableWalAutoCheckpoint);
299
306
  await accountManager.migrateOrThrow();
300
307
  const plcRotationKey = secrets.plcRotationKey.provider === 'kms'
301
308
  ? await aws_1.KmsKeypair.load({
302
309
  keyId: secrets.plcRotationKey.keyId,
303
310
  })
304
311
  : await crypto.Secp256k1Keypair.import(secrets.plcRotationKey.privateKeyHex);
305
- const actorStore = new actor_store_1.ActorStore(cfg.actorStore, {
306
- blobstore,
307
- backgroundQueue,
308
- });
309
- const localViewer = viewer_1.LocalViewer.creator({
310
- accountManager,
311
- appViewAgent,
312
- pdsHostname: cfg.service.hostname,
313
- appviewDid: cfg.bskyAppView?.did,
314
- appviewCdnUrlPattern: cfg.bskyAppView?.cdnUrlPattern,
315
- });
312
+ const localViewer = viewer_1.LocalViewer.creator(accountManager, imageUrlBuilder, bskyAppView);
316
313
  // An agent for performing HTTP requests based on user provided URLs.
317
314
  const proxyAgentBase = new undici.Agent({
318
315
  allowH2: cfg.proxy.allowHTTP2, // This is experimental
@@ -368,8 +365,6 @@ class AppContext {
368
365
  await oauth_provider_1.JoseKey.fromKeyLike(jwtSecretKey, undefined, 'HS256'),
369
366
  ],
370
367
  accountManager,
371
- actorStore,
372
- localViewer,
373
368
  redis: redisScratch,
374
369
  dpopSecret: secrets.dpopSecret,
375
370
  customization: cfg.oauth.provider.customization,
@@ -408,7 +403,7 @@ class AppContext {
408
403
  redisScratch,
409
404
  ratelimitCreator,
410
405
  crawlers,
411
- appViewAgent,
406
+ bskyAppView,
412
407
  moderationAgent,
413
408
  reportingAgent,
414
409
  entrywayAgent,
@@ -422,8 +417,8 @@ class AppContext {
422
417
  });
423
418
  }
424
419
  async appviewAuthHeaders(did, lxm) {
425
- (0, node_assert_1.default)(this.cfg.bskyAppView);
426
- return this.serviceAuthHeaders(did, this.cfg.bskyAppView.did, lxm);
420
+ (0, node_assert_1.default)(this.bskyAppView);
421
+ return this.serviceAuthHeaders(did, this.bskyAppView.did, lxm);
427
422
  }
428
423
  async serviceAuthHeaders(did, aud, lxm) {
429
424
  const keypair = await this.actorStore.keypair(did);
@@ -445,5 +440,4 @@ class AppContext {
445
440
  }
446
441
  }
447
442
  exports.AppContext = AppContext;
448
- exports.default = AppContext;
449
443
  //# sourceMappingURL=context.js.map