@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":"token.d.ts","sourceRoot":"","sources":["../../../src/account-manager/helpers/token.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,YAAY,EAEZ,YAAY,EACZ,SAAS,EACT,OAAO,EACP,SAAS,EACV,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AASnC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,YAAY,EAAmB,MAAM,WAAW,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,eAAO,MAAM,QAAQ,OACf,SAAS,UACL;IACN,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mBAAmB,CAAC,EAAE,YAAY,CAAA;CACnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uYA+BF,CAAA;AAED,eAAO,MAAM,aAAa,OAAQ,SAAS,OAAO,MAAM,6KAEN,CAAA;AAElD,eAAO,MAAM,QAAQ,OACf,SAAS,MACT,MAAM,cACE,OAAO,mBACF,YAAY,WACpB,YAAY,sLAaE,CAAA;AAEzB,eAAO,MAAM,QAAQ,OAAQ,SAAS,WAAW,OAAO,6KAEE,CAAA"}
@@ -1,7 +1,9 @@
1
- import { AccountInfo, AccountStore, Code, DeviceData, DeviceId, DeviceStore, FoundRequestResult, NewTokenData, RefreshToken, RequestData, RequestId, RequestStore, SignInCredentials, TokenData, TokenId, TokenInfo, TokenStore, UpdateRequestData } from '@atproto/oauth-provider';
2
- import { CID } from 'multiformats/cid';
3
1
  import { KeyObject } from 'node:crypto';
2
+ import { CID } from 'multiformats/cid';
3
+ import { AccountInfo, AccountStore, Code, DeviceData, DeviceId, DeviceStore, FoundRequestResult, NewTokenData, RefreshToken, RequestData, RequestId, RequestStore, SignInCredentials, TokenData, TokenId, TokenInfo, TokenStore, UpdateRequestData } from '@atproto/oauth-provider';
4
+ import { ActorStore } from '../actor-store/actor-store';
4
5
  import { BackgroundQueue } from '../background';
6
+ import { ImageUrlBuilder } from '../image/image-url-builder';
5
7
  import { StatusAttr } from '../lexicon/types/com/atproto/admin/defs';
6
8
  import { AccountDb, EmailTokenPurpose } from './db';
7
9
  import * as account from './helpers/account';
@@ -10,11 +12,13 @@ import * as invite from './helpers/invite';
10
12
  import * as password from './helpers/password';
11
13
  export { AccountStatus, formatAccountStatus } from './helpers/account';
12
14
  export declare class AccountManager implements AccountStore, RequestStore, DeviceStore, TokenStore {
15
+ private actorStore;
16
+ private imageUrlBuilder;
13
17
  private backgroundQueue;
14
18
  private jwtKey;
15
19
  private serviceDid;
16
20
  db: AccountDb;
17
- constructor(backgroundQueue: BackgroundQueue, dbLocation: string, jwtKey: KeyObject, serviceDid: string, disableWalAutoCheckpoint?: boolean);
21
+ constructor(actorStore: ActorStore, imageUrlBuilder: ImageUrlBuilder, backgroundQueue: BackgroundQueue, dbLocation: string, jwtKey: KeyObject, serviceDid: string, disableWalAutoCheckpoint?: boolean);
18
22
  migrateOrThrow(): Promise<void>;
19
23
  close(): void;
20
24
  getAccount(handleOrDid: string, flags?: account.AvailabilityFlags): Promise<ActorAccount | null>;
@@ -106,6 +110,7 @@ export declare class AccountManager implements AccountStore, RequestStore, Devic
106
110
  did: string;
107
111
  password: string;
108
112
  }): Promise<void>;
113
+ private buildAccount;
109
114
  authenticateAccount({ username: identifier, password, remember }: SignInCredentials, deviceId: DeviceId): Promise<AccountInfo | null>;
110
115
  addAuthorizedClient(deviceId: DeviceId, sub: string, clientId: string): Promise<void>;
111
116
  getDeviceAccount(deviceId: DeviceId, sub: string): Promise<AccountInfo | null>;
@@ -1 +1 @@
1
- {"version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AC,IAAI,CAAC;IAIpE,aAAa,CAAC,EAAE,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3C,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAOjE,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjE,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,GAAG,UAAU,CAAC;IAK1D,YAAY,CAChB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,GACxB,OAAO,CAAC,IAAI,CAAC;IAIV,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAO/C,WAAW,CACf,EAAE,EAAE,OAAO,EACX,IAAI,EAAE,SAAS,EACf,YAAY,CAAC,EAAE,YAAY,GAC1B,OAAO,CAAC,IAAI,CAAC;IAgBV,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAKtD,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAK5C,WAAW,CACf,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,OAAO,EACnB,eAAe,EAAE,YAAY,EAC7B,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC;IA6BV,uBAAuB,CAC3B,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAatB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;CAI7D"}
@@ -46,7 +46,19 @@ var account_2 = require("./helpers/account");
46
46
  Object.defineProperty(exports, "AccountStatus", { enumerable: true, get: function () { return account_2.AccountStatus; } });
47
47
  Object.defineProperty(exports, "formatAccountStatus", { enumerable: true, get: function () { return account_2.formatAccountStatus; } });
48
48
  class AccountManager {
49
- constructor(backgroundQueue, dbLocation, jwtKey, serviceDid, disableWalAutoCheckpoint = false) {
49
+ constructor(actorStore, imageUrlBuilder, backgroundQueue, dbLocation, jwtKey, serviceDid, disableWalAutoCheckpoint = false) {
50
+ Object.defineProperty(this, "actorStore", {
51
+ enumerable: true,
52
+ configurable: true,
53
+ writable: true,
54
+ value: actorStore
55
+ });
56
+ Object.defineProperty(this, "imageUrlBuilder", {
57
+ enumerable: true,
58
+ configurable: true,
59
+ writable: true,
60
+ value: imageUrlBuilder
61
+ });
50
62
  Object.defineProperty(this, "backgroundQueue", {
51
63
  enumerable: true,
52
64
  configurable: true,
@@ -364,6 +376,23 @@ class AccountManager {
364
376
  ]));
365
377
  }
366
378
  // AccountStore
379
+ async buildAccount(row) {
380
+ const account = deviceAccount.toAccount(row, this.serviceDid);
381
+ if (!account.name || !account.picture) {
382
+ const did = account.sub;
383
+ const profile = await this.actorStore.read(did, async (store) => {
384
+ return store.record.getProfileRecord();
385
+ });
386
+ if (profile) {
387
+ const { avatar, displayName } = profile;
388
+ account.name || (account.name = displayName);
389
+ account.picture || (account.picture = avatar
390
+ ? this.imageUrlBuilder.build('avatar', did, avatar.ref.toString())
391
+ : undefined);
392
+ }
393
+ }
394
+ return account;
395
+ }
367
396
  async authenticateAccount({ username: identifier, password, remember = false }, deviceId) {
368
397
  try {
369
398
  const { user, appPassword } = await this.login({ identifier, password });
@@ -401,7 +430,7 @@ class AccountManager {
401
430
  if (!row)
402
431
  return null;
403
432
  return {
404
- account: deviceAccount.toAccount(row, this.serviceDid),
433
+ account: await this.buildAccount(row),
405
434
  info: deviceAccount.toDeviceAccountInfo(row),
406
435
  };
407
436
  }
@@ -409,10 +438,10 @@ class AccountManager {
409
438
  const rows = await deviceAccount
410
439
  .listRememberedQB(this.db, deviceId)
411
440
  .execute();
412
- return rows.map((row) => ({
413
- account: deviceAccount.toAccount(row, this.serviceDid),
441
+ return Promise.all(rows.map(async (row) => ({
442
+ account: await this.buildAccount(row),
414
443
  info: deviceAccount.toDeviceAccountInfo(row),
415
- }));
444
+ })));
416
445
  }
417
446
  async removeDeviceAccount(deviceId, sub) {
418
447
  await this.db.executeWithRetry(deviceAccount.removeQB(this.db, deviceId, sub));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/account-manager/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA4C;AAqB5C,sDAAwD;AAIxD,oDAA4C;AAE5C,8BAAmC;AAEnC,6BAAuE;AACvE,2DAA4C;AAC5C,+CAA+D;AAC/D,qDAAsC;AACtC,6EAA8D;AAC9D,yDAA0C;AAC1C,wEAAyD;AACzD,kEAAmD;AACnD,yDAA0C;AAC1C,6DAA8C;AAC9C,qDAAsC;AACtC,yDAA0C;AAC1C,uDAAwC;AACxC,+EAAgE;AAEhE,6CAAsE;AAA7D,wGAAA,aAAa,OAAA;AAAE,8GAAA,mBAAmB,OAAA;AAE3C,MAAa,cAAc;IAKzB,YACU,eAAgC,EACxC,UAAkB,EACV,MAAiB,EACjB,UAAkB,EAC1B,wBAAwB,GAAG,KAAK;QAJhC;;;;mBAAQ,eAAe;WAAiB;QAExC;;;;mBAAQ,MAAM;WAAW;QACzB;;;;mBAAQ,UAAU;WAAQ;QAN5B;;;;;WAAa;QASX,IAAI,CAAC,EAAE,GAAG,IAAA,UAAK,EAAC,UAAU,EAAE,wBAAwB,CAAC,CAAA;IACvD,CAAC;IAED,KAAK,CAAC,cAAc;QAClB,MAAM,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,CAAA;QACzB,MAAM,IAAA,gBAAW,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,sBAAsB,EAAE,CAAA;IACrD,CAAC;IAED,KAAK;QACH,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAA;IACjB,CAAC;IAED,UAAU;IACV,aAAa;IAEb,KAAK,CAA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,CAAC,uBAAuB,CAC3B,YAA0B;QAE1B,MAAM,IAAI,GAAG,MAAM,gBAAgB;aAChC,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,CAAC;aACpC,gBAAgB,EAAE,CAAA;QAErB,MAAM,MAAM,GAAG,IAAI;YACjB,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,CAAC,CAAC,EAAE,mBAAmB,EAAE,YAAY,EAAE,CAAA;QAEzC,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,gBAAgB,EAAE,CAAA;QACpE,OAAO,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAC7D,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,IAAU;QAC9B,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,gBAAgB,EAAE,CAAA;QACtE,OAAO,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAC7D,CAAC;CACF;AA7rBD,wCA6rBC"}
@@ -0,0 +1,19 @@
1
+ import { Keypair } from '@atproto/crypto';
2
+ import { ActorStoreResources } from './actor-store-resources';
3
+ import { ActorStoreTransactor } from './actor-store-transactor';
4
+ import { ActorDb } from './db';
5
+ import { PreferenceReader } from './preference/reader';
6
+ import { RecordReader } from './record/reader';
7
+ import { RepoReader } from './repo/reader';
8
+ export declare class ActorStoreReader {
9
+ readonly did: string;
10
+ protected readonly db: ActorDb;
11
+ protected readonly resources: ActorStoreResources;
12
+ readonly keypair: () => Promise<Keypair>;
13
+ readonly repo: RepoReader;
14
+ readonly record: RecordReader;
15
+ readonly pref: PreferenceReader;
16
+ constructor(did: string, db: ActorDb, resources: ActorStoreResources, keypair: () => Promise<Keypair>);
17
+ transact<T>(fn: (fn: ActorStoreTransactor) => T | PromiseLike<T>): Promise<T>;
18
+ }
19
+ //# sourceMappingURL=actor-store-reader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actor-store-reader.d.ts","sourceRoot":"","sources":["../../src/actor-store/actor-store-reader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,qBAAa,gBAAgB;aAMT,GAAG,EAAE,MAAM;IAC3B,SAAS,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO;IAC9B,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,mBAAmB;aACjC,OAAO,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC;IARjD,SAAgB,IAAI,EAAE,UAAU,CAAA;IAChC,SAAgB,MAAM,EAAE,YAAY,CAAA;IACpC,SAAgB,IAAI,EAAE,gBAAgB,CAAA;gBAGpB,GAAG,EAAE,MAAM,EACR,EAAE,EAAE,OAAO,EACX,SAAS,EAAE,mBAAmB,EACjC,OAAO,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC;IAa3C,QAAQ,CAAC,CAAC,EACd,EAAE,EAAE,CAAC,EAAE,EAAE,oBAAoB,KAAK,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,GACnD,OAAO,CAAC,CAAC,CAAC;CAYd"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActorStoreReader = void 0;
4
+ const actor_store_transactor_1 = require("./actor-store-transactor");
5
+ const reader_1 = require("./preference/reader");
6
+ const reader_2 = require("./record/reader");
7
+ const reader_3 = require("./repo/reader");
8
+ class ActorStoreReader {
9
+ constructor(did, db, resources, keypair) {
10
+ Object.defineProperty(this, "did", {
11
+ enumerable: true,
12
+ configurable: true,
13
+ writable: true,
14
+ value: did
15
+ });
16
+ Object.defineProperty(this, "db", {
17
+ enumerable: true,
18
+ configurable: true,
19
+ writable: true,
20
+ value: db
21
+ });
22
+ Object.defineProperty(this, "resources", {
23
+ enumerable: true,
24
+ configurable: true,
25
+ writable: true,
26
+ value: resources
27
+ });
28
+ Object.defineProperty(this, "keypair", {
29
+ enumerable: true,
30
+ configurable: true,
31
+ writable: true,
32
+ value: keypair
33
+ });
34
+ Object.defineProperty(this, "repo", {
35
+ enumerable: true,
36
+ configurable: true,
37
+ writable: true,
38
+ value: void 0
39
+ });
40
+ Object.defineProperty(this, "record", {
41
+ enumerable: true,
42
+ configurable: true,
43
+ writable: true,
44
+ value: void 0
45
+ });
46
+ Object.defineProperty(this, "pref", {
47
+ enumerable: true,
48
+ configurable: true,
49
+ writable: true,
50
+ value: void 0
51
+ });
52
+ const blobstore = resources.blobstore(did);
53
+ this.repo = new reader_3.RepoReader(db, blobstore);
54
+ this.record = new reader_2.RecordReader(db);
55
+ this.pref = new reader_1.PreferenceReader(db);
56
+ // Invoke "keypair" once. Also avoids leaking "this" as keypair context.
57
+ let keypairPromise;
58
+ this.keypair = () => (keypairPromise ?? (keypairPromise = Promise.resolve().then(keypair)));
59
+ }
60
+ async transact(fn) {
61
+ const keypair = await this.keypair();
62
+ return this.db.transaction((dbTxn) => {
63
+ const store = new actor_store_transactor_1.ActorStoreTransactor(this.did, dbTxn, keypair, this.resources);
64
+ return fn(store);
65
+ });
66
+ }
67
+ }
68
+ exports.ActorStoreReader = ActorStoreReader;
69
+ //# sourceMappingURL=actor-store-reader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actor-store-reader.js","sourceRoot":"","sources":["../../src/actor-store/actor-store-reader.ts"],"names":[],"mappings":";;;AAEA,qEAA+D;AAE/D,gDAAsD;AACtD,4CAA8C;AAC9C,0CAA0C;AAE1C,MAAa,gBAAgB;IAK3B,YACkB,GAAW,EACR,EAAW,EACX,SAA8B,EACjC,OAA+B;QAH/C;;;;mBAAgB,GAAG;WAAQ;QAC3B;;;;mBAAmB,EAAE;WAAS;QAC9B;;;;mBAAmB,SAAS;WAAqB;QACjD;;;;mBAAgB,OAAO;WAAwB;QARjC;;;;;WAAgB;QAChB;;;;;WAAoB;QACpB;;;;;WAAsB;QAQpC,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;QAE1C,IAAI,CAAC,IAAI,GAAG,IAAI,mBAAU,CAAC,EAAE,EAAE,SAAS,CAAC,CAAA;QACzC,IAAI,CAAC,MAAM,GAAG,IAAI,qBAAY,CAAC,EAAE,CAAC,CAAA;QAClC,IAAI,CAAC,IAAI,GAAG,IAAI,yBAAgB,CAAC,EAAE,CAAC,CAAA;QAEpC,wEAAwE;QACxE,IAAI,cAAgC,CAAA;QACpC,IAAI,CAAC,OAAO,GAAG,GAAG,EAAE,CAAC,CAAC,cAAc,KAAd,cAAc,GAAK,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,EAAC,CAAA;IAC3E,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,EAAoD;QAEpD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,OAAO,EAAE,CAAA;QACpC,OAAO,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,KAAK,EAAE,EAAE;YACnC,MAAM,KAAK,GAAG,IAAI,6CAAoB,CACpC,IAAI,CAAC,GAAG,EACR,KAAK,EACL,OAAO,EACP,IAAI,CAAC,SAAS,CACf,CAAA;YACD,OAAO,EAAE,CAAC,KAAK,CAAC,CAAA;QAClB,CAAC,CAAC,CAAA;IACJ,CAAC;CACF;AApCD,4CAoCC"}
@@ -0,0 +1,8 @@
1
+ import { BlobStore } from '@atproto/repo';
2
+ import { BackgroundQueue } from '../background';
3
+ export type ActorStoreResources = {
4
+ blobstore: (did: string) => BlobStore;
5
+ backgroundQueue: BackgroundQueue;
6
+ reservedKeyDir?: string;
7
+ };
8
+ //# sourceMappingURL=actor-store-resources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actor-store-resources.d.ts","sourceRoot":"","sources":["../../src/actor-store/actor-store-resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE/C,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,SAAS,CAAA;IACrC,eAAe,EAAE,eAAe,CAAA;IAChC,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=actor-store-resources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actor-store-resources.js","sourceRoot":"","sources":["../../src/actor-store/actor-store-resources.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import { Keypair } from '@atproto/crypto';
2
+ import { ActorStoreResources } from './actor-store-resources';
3
+ import { ActorDb } from './db';
4
+ import { PreferenceTransactor } from './preference/transactor';
5
+ import { RecordTransactor } from './record/transactor';
6
+ import { RepoTransactor } from './repo/transactor';
7
+ export declare class ActorStoreTransactor {
8
+ readonly did: string;
9
+ protected readonly db: ActorDb;
10
+ protected readonly keypair: Keypair;
11
+ protected readonly resources: ActorStoreResources;
12
+ readonly record: RecordTransactor;
13
+ readonly repo: RepoTransactor;
14
+ readonly pref: PreferenceTransactor;
15
+ constructor(did: string, db: ActorDb, keypair: Keypair, resources: ActorStoreResources);
16
+ }
17
+ //# sourceMappingURL=actor-store-transactor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actor-store-transactor.d.ts","sourceRoot":"","sources":["../../src/actor-store/actor-store-transactor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD,qBAAa,oBAAoB;aAMb,GAAG,EAAE,MAAM;IAC3B,SAAS,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO;IAC9B,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO;IACnC,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,mBAAmB;IARnD,SAAgB,MAAM,EAAE,gBAAgB,CAAA;IACxC,SAAgB,IAAI,EAAE,cAAc,CAAA;IACpC,SAAgB,IAAI,EAAE,oBAAoB,CAAA;gBAGxB,GAAG,EAAE,MAAM,EACR,EAAE,EAAE,OAAO,EACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,mBAAmB;CAcpD"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActorStoreTransactor = void 0;
4
+ const transactor_1 = require("./preference/transactor");
5
+ const transactor_2 = require("./record/transactor");
6
+ const transactor_3 = require("./repo/transactor");
7
+ class ActorStoreTransactor {
8
+ constructor(did, db, keypair, resources) {
9
+ Object.defineProperty(this, "did", {
10
+ enumerable: true,
11
+ configurable: true,
12
+ writable: true,
13
+ value: did
14
+ });
15
+ Object.defineProperty(this, "db", {
16
+ enumerable: true,
17
+ configurable: true,
18
+ writable: true,
19
+ value: db
20
+ });
21
+ Object.defineProperty(this, "keypair", {
22
+ enumerable: true,
23
+ configurable: true,
24
+ writable: true,
25
+ value: keypair
26
+ });
27
+ Object.defineProperty(this, "resources", {
28
+ enumerable: true,
29
+ configurable: true,
30
+ writable: true,
31
+ value: resources
32
+ });
33
+ Object.defineProperty(this, "record", {
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true,
37
+ value: void 0
38
+ });
39
+ Object.defineProperty(this, "repo", {
40
+ enumerable: true,
41
+ configurable: true,
42
+ writable: true,
43
+ value: void 0
44
+ });
45
+ Object.defineProperty(this, "pref", {
46
+ enumerable: true,
47
+ configurable: true,
48
+ writable: true,
49
+ value: void 0
50
+ });
51
+ const blobstore = resources.blobstore(did);
52
+ this.record = new transactor_2.RecordTransactor(db, blobstore);
53
+ this.pref = new transactor_1.PreferenceTransactor(db);
54
+ this.repo = new transactor_3.RepoTransactor(db, blobstore, did, keypair, resources.backgroundQueue);
55
+ }
56
+ }
57
+ exports.ActorStoreTransactor = ActorStoreTransactor;
58
+ //# sourceMappingURL=actor-store-transactor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actor-store-transactor.js","sourceRoot":"","sources":["../../src/actor-store/actor-store-transactor.ts"],"names":[],"mappings":";;;AAGA,wDAA8D;AAC9D,oDAAsD;AACtD,kDAAkD;AAElD,MAAa,oBAAoB;IAK/B,YACkB,GAAW,EACR,EAAW,EACX,OAAgB,EAChB,SAA8B;QAHjD;;;;mBAAgB,GAAG;WAAQ;QAC3B;;;;mBAAmB,EAAE;WAAS;QAC9B;;;;mBAAmB,OAAO;WAAS;QACnC;;;;mBAAmB,SAAS;WAAqB;QARnC;;;;;WAAwB;QACxB;;;;;WAAoB;QACpB;;;;;WAA0B;QAQxC,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;QAE1C,IAAI,CAAC,MAAM,GAAG,IAAI,6BAAgB,CAAC,EAAE,EAAE,SAAS,CAAC,CAAA;QACjD,IAAI,CAAC,IAAI,GAAG,IAAI,iCAAoB,CAAC,EAAE,CAAC,CAAA;QACxC,IAAI,CAAC,IAAI,GAAG,IAAI,2BAAc,CAC5B,EAAE,EACF,SAAS,EACT,GAAG,EACH,OAAO,EACP,SAAS,CAAC,eAAe,CAC1B,CAAA;IACH,CAAC;CACF;AAvBD,oDAuBC"}
@@ -0,0 +1,5 @@
1
+ import { ActorStoreTransactor } from './actor-store-transactor';
2
+ export declare class ActorStoreWriter extends ActorStoreTransactor {
3
+ transact<T>(fn: (fn: ActorStoreTransactor) => T | PromiseLike<T>): Promise<T>;
4
+ }
5
+ //# sourceMappingURL=actor-store-writer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actor-store-writer.d.ts","sourceRoot":"","sources":["../../src/actor-store/actor-store-writer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAE/D,qBAAa,gBAAiB,SAAQ,oBAAoB;IAClD,QAAQ,CAAC,CAAC,EACd,EAAE,EAAE,CAAC,EAAE,EAAE,oBAAoB,KAAK,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,GACnD,OAAO,CAAC,CAAC,CAAC;CAWd"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActorStoreWriter = void 0;
4
+ const actor_store_transactor_1 = require("./actor-store-transactor");
5
+ class ActorStoreWriter extends actor_store_transactor_1.ActorStoreTransactor {
6
+ async transact(fn) {
7
+ return this.db.transaction((dbTxn) => {
8
+ const transactor = new actor_store_transactor_1.ActorStoreTransactor(this.did, dbTxn, this.keypair, this.resources);
9
+ return fn(transactor);
10
+ });
11
+ }
12
+ }
13
+ exports.ActorStoreWriter = ActorStoreWriter;
14
+ //# sourceMappingURL=actor-store-writer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actor-store-writer.js","sourceRoot":"","sources":["../../src/actor-store/actor-store-writer.ts"],"names":[],"mappings":";;;AAAA,qEAA+D;AAE/D,MAAa,gBAAiB,SAAQ,6CAAoB;IACxD,KAAK,CAAC,QAAQ,CACZ,EAAoD;QAEpD,OAAO,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,KAAK,EAAE,EAAE;YACnC,MAAM,UAAU,GAAG,IAAI,6CAAoB,CACzC,IAAI,CAAC,GAAG,EACR,KAAK,EACL,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,SAAS,CACf,CAAA;YACD,OAAO,EAAE,CAAC,UAAU,CAAC,CAAA;QACvB,CAAC,CAAC,CAAA;IACJ,CAAC;CACF;AAdD,4CAcC"}
@@ -0,0 +1,33 @@
1
+ import { ExportableKeypair, Keypair } from '@atproto/crypto';
2
+ import { ActorStoreConfig } from '../config';
3
+ import { ActorStoreReader } from './actor-store-reader';
4
+ import { ActorStoreResources } from './actor-store-resources';
5
+ import { ActorStoreTransactor } from './actor-store-transactor';
6
+ import { ActorStoreWriter } from './actor-store-writer';
7
+ import { ActorDb } from './db';
8
+ export declare class ActorStore {
9
+ cfg: ActorStoreConfig;
10
+ resources: ActorStoreResources;
11
+ reservedKeyDir: string;
12
+ constructor(cfg: ActorStoreConfig, resources: ActorStoreResources);
13
+ getLocation(did: string): Promise<{
14
+ directory: string;
15
+ dbLocation: string;
16
+ keyLocation: string;
17
+ }>;
18
+ exists(did: string): Promise<boolean>;
19
+ keypair(did: string): Promise<Keypair>;
20
+ openDb(did: string): Promise<ActorDb>;
21
+ read<T>(did: string, fn: (fn: ActorStoreReader) => T | PromiseLike<T>): Promise<T>;
22
+ transact<T>(did: string, fn: (fn: ActorStoreTransactor) => T | PromiseLike<T>): Promise<T>;
23
+ writeNoTransaction<T>(did: string, fn: (fn: ActorStoreWriter) => T | PromiseLike<T>): Promise<T>;
24
+ create(did: string, keypair: ExportableKeypair): Promise<void>;
25
+ destroy(did: string): Promise<void>;
26
+ reserveKeypair(did?: string): Promise<string>;
27
+ getReservedKeypair(signingKeyOrDid: string): Promise<ExportableKeypair | undefined>;
28
+ clearReservedKeypair(keyDid: string, did?: string): Promise<void>;
29
+ storePlcOp(did: string, op: Uint8Array): Promise<void>;
30
+ getPlcOp(did: string): Promise<Uint8Array>;
31
+ clearPlcOp(did: string): Promise<void>;
32
+ }
33
+ //# sourceMappingURL=actor-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actor-store.d.ts","sourceRoot":"","sources":["../../src/actor-store/actor-store.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAG5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,OAAO,EAAsB,MAAM,MAAM,CAAA;AAElD,qBAAa,UAAU;IAIZ,GAAG,EAAE,gBAAgB;IACrB,SAAS,EAAE,mBAAmB;IAJvC,cAAc,EAAE,MAAM,CAAA;gBAGb,GAAG,EAAE,gBAAgB,EACrB,SAAS,EAAE,mBAAmB;IAKjC,WAAW,CAAC,GAAG,EAAE,MAAM;;;;;IAQvB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKrC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMtC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAsBrC,IAAI,CAA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