@atproto/pds 0.4.104 → 0.4.106

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 (209) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/account-manager/{index.d.ts → account-manager.d.ts} +26 -35
  3. package/dist/account-manager/account-manager.d.ts.map +1 -0
  4. package/dist/account-manager/{index.js → account-manager.js} +52 -207
  5. package/dist/account-manager/account-manager.js.map +1 -0
  6. package/dist/account-manager/helpers/account.d.ts +3 -3
  7. package/dist/account-manager/helpers/device-account.d.ts +15 -15
  8. package/dist/account-manager/helpers/device-account.d.ts.map +1 -1
  9. package/dist/account-manager/helpers/device-account.js +2 -1
  10. package/dist/account-manager/helpers/device-account.js.map +1 -1
  11. package/dist/account-manager/helpers/token.d.ts +98 -98
  12. package/dist/account-manager/oauth-store.d.ts +58 -0
  13. package/dist/account-manager/oauth-store.d.ts.map +1 -0
  14. package/dist/account-manager/oauth-store.js +417 -0
  15. package/dist/account-manager/oauth-store.js.map +1 -0
  16. package/dist/actor-store/record/reader.d.ts +3 -3
  17. package/dist/actor-store/repo/reader.d.ts +2 -0
  18. package/dist/actor-store/repo/reader.d.ts.map +1 -1
  19. package/dist/actor-store/repo/reader.js +9 -0
  20. package/dist/actor-store/repo/reader.js.map +1 -1
  21. package/dist/actor-store/repo/sql-repo-reader.d.ts +1 -1
  22. package/dist/actor-store/repo/transactor.d.ts.map +1 -1
  23. package/dist/actor-store/repo/transactor.js +13 -4
  24. package/dist/actor-store/repo/transactor.js.map +1 -1
  25. package/dist/api/com/atproto/admin/deleteAccount.d.ts.map +1 -1
  26. package/dist/api/com/atproto/admin/deleteAccount.js +2 -3
  27. package/dist/api/com/atproto/admin/deleteAccount.js.map +1 -1
  28. package/dist/api/com/atproto/admin/updateAccountHandle.d.ts.map +1 -1
  29. package/dist/api/com/atproto/admin/updateAccountHandle.js +2 -6
  30. package/dist/api/com/atproto/admin/updateAccountHandle.js.map +1 -1
  31. package/dist/api/com/atproto/identity/resolveHandle.d.ts.map +1 -1
  32. package/dist/api/com/atproto/identity/resolveHandle.js +2 -36
  33. package/dist/api/com/atproto/identity/resolveHandle.js.map +1 -1
  34. package/dist/api/com/atproto/identity/updateHandle.d.ts.map +1 -1
  35. package/dist/api/com/atproto/identity/updateHandle.js +1 -7
  36. package/dist/api/com/atproto/identity/updateHandle.js.map +1 -1
  37. package/dist/api/com/atproto/server/activateAccount.d.ts.map +1 -1
  38. package/dist/api/com/atproto/server/activateAccount.js +2 -18
  39. package/dist/api/com/atproto/server/activateAccount.js.map +1 -1
  40. package/dist/api/com/atproto/server/createAccount.d.ts.map +1 -1
  41. package/dist/api/com/atproto/server/createAccount.js +7 -7
  42. package/dist/api/com/atproto/server/createAccount.js.map +1 -1
  43. package/dist/api/com/atproto/server/createSession.js +1 -1
  44. package/dist/api/com/atproto/server/createSession.js.map +1 -1
  45. package/dist/api/com/atproto/server/deleteAccount.d.ts.map +1 -1
  46. package/dist/api/com/atproto/server/deleteAccount.js +2 -3
  47. package/dist/api/com/atproto/server/deleteAccount.js.map +1 -1
  48. package/dist/api/com/atproto/server/getSession.js +1 -1
  49. package/dist/api/com/atproto/server/getSession.js.map +1 -1
  50. package/dist/api/com/atproto/server/refreshSession.js +1 -1
  51. package/dist/api/com/atproto/server/refreshSession.js.map +1 -1
  52. package/dist/api/com/atproto/sync/getRecord.d.ts.map +1 -1
  53. package/dist/api/com/atproto/sync/getRecord.js.map +1 -1
  54. package/dist/api/com/atproto/sync/getRepoStatus.js +1 -1
  55. package/dist/api/com/atproto/sync/getRepoStatus.js.map +1 -1
  56. package/dist/api/com/atproto/sync/listRepos.js +1 -1
  57. package/dist/api/com/atproto/sync/listRepos.js.map +1 -1
  58. package/dist/api/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
  59. package/dist/api/com/atproto/sync/subscribeRepos.js +2 -10
  60. package/dist/api/com/atproto/sync/subscribeRepos.js.map +1 -1
  61. package/dist/app-view.d.ts +14 -0
  62. package/dist/app-view.d.ts.map +1 -0
  63. package/dist/app-view.js +36 -0
  64. package/dist/app-view.js.map +1 -0
  65. package/dist/auth-routes.d.ts +1 -1
  66. package/dist/auth-routes.d.ts.map +1 -1
  67. package/dist/auth-routes.js +9 -3
  68. package/dist/auth-routes.js.map +1 -1
  69. package/dist/auth-verifier.d.ts +1 -1
  70. package/dist/auth-verifier.d.ts.map +1 -1
  71. package/dist/config/config.d.ts +3 -2
  72. package/dist/config/config.d.ts.map +1 -1
  73. package/dist/config/config.js +17 -7
  74. package/dist/config/config.js.map +1 -1
  75. package/dist/config/env.d.ts +4 -0
  76. package/dist/config/env.d.ts.map +1 -1
  77. package/dist/config/env.js +5 -0
  78. package/dist/config/env.js.map +1 -1
  79. package/dist/context.d.ts +4 -4
  80. package/dist/context.d.ts.map +1 -1
  81. package/dist/context.js +24 -18
  82. package/dist/context.js.map +1 -1
  83. package/dist/handle/index.d.ts +0 -7
  84. package/dist/handle/index.d.ts.map +1 -1
  85. package/dist/handle/index.js +4 -58
  86. package/dist/handle/index.js.map +1 -1
  87. package/dist/image/image-url.d.ts +8 -0
  88. package/dist/image/image-url.d.ts.map +1 -0
  89. package/dist/image/image-url.js +26 -0
  90. package/dist/image/image-url.js.map +1 -0
  91. package/dist/lexicon/index.d.ts +6 -0
  92. package/dist/lexicon/index.d.ts.map +1 -1
  93. package/dist/lexicon/index.js +12 -0
  94. package/dist/lexicon/index.js.map +1 -1
  95. package/dist/lexicon/lexicons.d.ts +310 -130
  96. package/dist/lexicon/lexicons.d.ts.map +1 -1
  97. package/dist/lexicon/lexicons.js +171 -67
  98. package/dist/lexicon/lexicons.js.map +1 -1
  99. package/dist/lexicon/types/app/bsky/embed/video.d.ts +1 -0
  100. package/dist/lexicon/types/app/bsky/embed/video.d.ts.map +1 -1
  101. package/dist/lexicon/types/app/bsky/embed/video.js.map +1 -1
  102. package/dist/lexicon/types/com/atproto/identity/defs.d.ts +17 -0
  103. package/dist/lexicon/types/com/atproto/identity/defs.d.ts.map +1 -0
  104. package/dist/lexicon/types/com/atproto/identity/defs.js +16 -0
  105. package/dist/lexicon/types/com/atproto/identity/defs.js.map +1 -0
  106. package/dist/lexicon/types/com/atproto/identity/refreshIdentity.d.ts +39 -0
  107. package/dist/lexicon/types/com/atproto/identity/refreshIdentity.d.ts.map +1 -0
  108. package/dist/lexicon/types/com/atproto/identity/refreshIdentity.js +7 -0
  109. package/dist/lexicon/types/com/atproto/identity/refreshIdentity.js.map +1 -0
  110. package/dist/lexicon/types/com/atproto/identity/resolveDid.d.ts +40 -0
  111. package/dist/lexicon/types/com/atproto/identity/resolveDid.d.ts.map +1 -0
  112. package/dist/lexicon/types/com/atproto/identity/resolveDid.js +7 -0
  113. package/dist/lexicon/types/com/atproto/identity/resolveDid.js.map +1 -0
  114. package/dist/lexicon/types/com/atproto/identity/resolveHandle.d.ts +1 -0
  115. package/dist/lexicon/types/com/atproto/identity/resolveHandle.d.ts.map +1 -1
  116. package/dist/lexicon/types/com/atproto/identity/resolveIdentity.d.ts +36 -0
  117. package/dist/lexicon/types/com/atproto/identity/resolveIdentity.d.ts.map +1 -0
  118. package/dist/lexicon/types/com/atproto/identity/resolveIdentity.js +7 -0
  119. package/dist/lexicon/types/com/atproto/identity/resolveIdentity.js.map +1 -0
  120. package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts +1 -30
  121. package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
  122. package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js +0 -27
  123. package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js.map +1 -1
  124. package/dist/lexicon/types/tools/ozone/team/listMembers.d.ts +1 -0
  125. package/dist/lexicon/types/tools/ozone/team/listMembers.d.ts.map +1 -1
  126. package/dist/mailer/index.d.ts +5 -5
  127. package/dist/mailer/index.d.ts.map +1 -1
  128. package/dist/mailer/index.js +6 -5
  129. package/dist/mailer/index.js.map +1 -1
  130. package/dist/read-after-write/viewer.d.ts +1 -1
  131. package/dist/read-after-write/viewer.d.ts.map +1 -1
  132. package/dist/repo/types.d.ts +6 -2
  133. package/dist/repo/types.d.ts.map +1 -1
  134. package/dist/repo/types.js.map +1 -1
  135. package/dist/scripts/rebuild-repo.d.ts.map +1 -1
  136. package/dist/scripts/rebuild-repo.js +2 -1
  137. package/dist/scripts/rebuild-repo.js.map +1 -1
  138. package/dist/sequencer/db/schema.d.ts +1 -1
  139. package/dist/sequencer/db/schema.d.ts.map +1 -1
  140. package/dist/sequencer/events.d.ts +27 -38
  141. package/dist/sequencer/events.d.ts.map +1 -1
  142. package/dist/sequencer/events.js +40 -58
  143. package/dist/sequencer/events.js.map +1 -1
  144. package/dist/sequencer/sequencer.d.ts +2 -3
  145. package/dist/sequencer/sequencer.d.ts.map +1 -1
  146. package/dist/sequencer/sequencer.js +5 -17
  147. package/dist/sequencer/sequencer.js.map +1 -1
  148. package/package.json +15 -15
  149. package/src/account-manager/{index.ts → account-manager.ts} +107 -307
  150. package/src/account-manager/helpers/device-account.ts +1 -0
  151. package/src/account-manager/oauth-store.ts +494 -0
  152. package/src/actor-store/repo/reader.ts +11 -0
  153. package/src/actor-store/repo/transactor.ts +15 -4
  154. package/src/api/com/atproto/admin/deleteAccount.ts +2 -3
  155. package/src/api/com/atproto/admin/updateAccountHandle.ts +7 -8
  156. package/src/api/com/atproto/identity/resolveHandle.ts +2 -11
  157. package/src/api/com/atproto/identity/updateHandle.ts +4 -7
  158. package/src/api/com/atproto/server/activateAccount.ts +4 -18
  159. package/src/api/com/atproto/server/createAccount.ts +15 -11
  160. package/src/api/com/atproto/server/createSession.ts +1 -1
  161. package/src/api/com/atproto/server/deleteAccount.ts +2 -3
  162. package/src/api/com/atproto/server/getSession.ts +1 -1
  163. package/src/api/com/atproto/server/refreshSession.ts +1 -1
  164. package/src/api/com/atproto/sync/getRecord.ts +0 -1
  165. package/src/api/com/atproto/sync/getRepoStatus.ts +1 -1
  166. package/src/api/com/atproto/sync/listRepos.ts +1 -1
  167. package/src/api/com/atproto/sync/subscribeRepos.ts +2 -9
  168. package/src/app-view.ts +24 -0
  169. package/src/auth-routes.ts +9 -3
  170. package/src/auth-verifier.ts +1 -1
  171. package/src/config/config.ts +25 -13
  172. package/src/config/env.ts +12 -0
  173. package/src/context.ts +44 -24
  174. package/src/handle/index.ts +6 -52
  175. package/src/image/image-url.ts +16 -0
  176. package/src/lexicon/index.ts +36 -0
  177. package/src/lexicon/lexicons.ts +186 -67
  178. package/src/lexicon/types/app/bsky/embed/video.ts +1 -0
  179. package/src/lexicon/types/com/atproto/identity/defs.ts +30 -0
  180. package/src/lexicon/types/com/atproto/identity/refreshIdentity.ts +52 -0
  181. package/src/lexicon/types/com/atproto/identity/resolveDid.ts +52 -0
  182. package/src/lexicon/types/com/atproto/identity/resolveHandle.ts +1 -0
  183. package/src/lexicon/types/com/atproto/identity/resolveIdentity.ts +48 -0
  184. package/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +0 -59
  185. package/src/lexicon/types/tools/ozone/team/listMembers.ts +1 -0
  186. package/src/mailer/index.ts +7 -5
  187. package/src/read-after-write/viewer.ts +1 -1
  188. package/src/repo/types.ts +7 -2
  189. package/src/scripts/rebuild-repo.ts +4 -1
  190. package/src/sequencer/db/schema.ts +1 -8
  191. package/src/sequencer/events.ts +47 -75
  192. package/src/sequencer/sequencer.ts +9 -23
  193. package/tests/account-deletion.test.ts +3 -5
  194. package/tests/oauth.test.ts +286 -71
  195. package/tests/sequencer.test.ts +20 -29
  196. package/tests/sync/subscribe-repos.test.ts +89 -45
  197. package/tsconfig.build.tsbuildinfo +1 -1
  198. package/dist/account-manager/index.d.ts.map +0 -1
  199. package/dist/account-manager/index.js.map +0 -1
  200. package/dist/actor-store/repo/util.d.ts +0 -5
  201. package/dist/actor-store/repo/util.d.ts.map +0 -1
  202. package/dist/actor-store/repo/util.js +0 -25
  203. package/dist/actor-store/repo/util.js.map +0 -1
  204. package/dist/oauth/provider.d.ts +0 -10
  205. package/dist/oauth/provider.d.ts.map +0 -1
  206. package/dist/oauth/provider.js +0 -38
  207. package/dist/oauth/provider.js.map +0 -1
  208. package/src/actor-store/repo/util.ts +0 -22
  209. package/src/oauth/provider.ts +0 -59
@@ -1,25 +1,25 @@
1
1
  import { z } from 'zod';
2
- import { AccountStatus } from '../account-manager';
3
- import { CommitDataWithOps } from '../repo';
2
+ import { AccountStatus } from '../account-manager/account-manager';
3
+ import { CommitDataWithOps, SyncEvtData } from '../repo';
4
4
  import { RepoSeqInsert } from './db';
5
5
  export declare const formatSeqCommit: (did: string, commitData: CommitDataWithOps) => Promise<RepoSeqInsert>;
6
- export declare const formatSeqHandleUpdate: (did: string, handle: string) => Promise<RepoSeqInsert>;
6
+ export declare const formatSeqSyncEvt: (did: string, data: SyncEvtData) => Promise<RepoSeqInsert>;
7
+ export declare const syncEvtDataFromCommit: (commitData: CommitDataWithOps) => SyncEvtData;
7
8
  export declare const formatSeqIdentityEvt: (did: string, handle?: string) => Promise<RepoSeqInsert>;
8
9
  export declare const formatSeqAccountEvt: (did: string, status: AccountStatus) => Promise<RepoSeqInsert>;
9
- export declare const formatSeqTombstone: (did: string) => Promise<RepoSeqInsert>;
10
10
  export declare const commitEvtOp: z.ZodObject<{
11
11
  action: z.ZodUnion<[z.ZodLiteral<"create">, z.ZodLiteral<"update">, z.ZodLiteral<"delete">]>;
12
12
  path: z.ZodString;
13
13
  cid: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, import("multiformats/cid").CID, any>>;
14
14
  prev: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, import("multiformats/cid").CID, any>>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- cid: import("multiformats/cid").CID | null;
17
16
  path: string;
18
- action: "create" | "update" | "delete";
17
+ cid: import("multiformats/cid").CID | null;
18
+ action: "create" | "delete" | "update";
19
19
  prev?: import("multiformats/cid").CID | undefined;
20
20
  }, {
21
21
  path: string;
22
- action: "create" | "update" | "delete";
22
+ action: "create" | "delete" | "update";
23
23
  cid?: any;
24
24
  prev?: any;
25
25
  }>;
@@ -38,37 +38,37 @@ export declare const commitEvt: z.ZodObject<{
38
38
  cid: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, import("multiformats/cid").CID, any>>;
39
39
  prev: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, import("multiformats/cid").CID, any>>;
40
40
  }, "strip", z.ZodTypeAny, {
41
- cid: import("multiformats/cid").CID | null;
42
41
  path: string;
43
- action: "create" | "update" | "delete";
42
+ cid: import("multiformats/cid").CID | null;
43
+ action: "create" | "delete" | "update";
44
44
  prev?: import("multiformats/cid").CID | undefined;
45
45
  }, {
46
46
  path: string;
47
- action: "create" | "update" | "delete";
47
+ action: "create" | "delete" | "update";
48
48
  cid?: any;
49
49
  prev?: any;
50
50
  }>, "many">;
51
51
  blobs: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, import("multiformats/cid").CID, any>, "many">;
52
52
  prevData: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, import("multiformats/cid").CID, any>>;
53
53
  }, "strip", z.ZodTypeAny, {
54
- rev: string;
55
54
  repo: string;
56
55
  commit: import("multiformats/cid").CID;
56
+ rev: string;
57
57
  blobs: import("multiformats/cid").CID[];
58
58
  since: string | null;
59
59
  rebase: boolean;
60
60
  tooBig: boolean;
61
61
  blocks: Uint8Array;
62
62
  ops: {
63
- cid: import("multiformats/cid").CID | null;
64
63
  path: string;
65
- action: "create" | "update" | "delete";
64
+ cid: import("multiformats/cid").CID | null;
65
+ action: "create" | "delete" | "update";
66
66
  prev?: import("multiformats/cid").CID | undefined;
67
67
  }[];
68
68
  prevData?: import("multiformats/cid").CID | undefined;
69
69
  }, {
70
- rev: string;
71
70
  repo: string;
71
+ rev: string;
72
72
  blobs: any[];
73
73
  since: string | null;
74
74
  rebase: boolean;
@@ -76,7 +76,7 @@ export declare const commitEvt: z.ZodObject<{
76
76
  blocks: Uint8Array;
77
77
  ops: {
78
78
  path: string;
79
- action: "create" | "update" | "delete";
79
+ action: "create" | "delete" | "update";
80
80
  cid?: any;
81
81
  prev?: any;
82
82
  }[];
@@ -84,17 +84,20 @@ export declare const commitEvt: z.ZodObject<{
84
84
  prevData?: any;
85
85
  }>;
86
86
  export type CommitEvt = z.infer<typeof commitEvt>;
87
- export declare const handleEvt: z.ZodObject<{
87
+ export declare const syncEvt: z.ZodObject<{
88
88
  did: z.ZodString;
89
- handle: z.ZodString;
89
+ blocks: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
90
+ rev: z.ZodString;
90
91
  }, "strip", z.ZodTypeAny, {
91
92
  did: string;
92
- handle: string;
93
+ rev: string;
94
+ blocks: Uint8Array;
93
95
  }, {
94
96
  did: string;
95
- handle: string;
97
+ rev: string;
98
+ blocks: Uint8Array;
96
99
  }>;
97
- export type HandleEvt = z.infer<typeof handleEvt>;
100
+ export type SyncEvt = z.infer<typeof syncEvt>;
98
101
  export declare const identityEvt: z.ZodObject<{
99
102
  did: z.ZodString;
100
103
  handle: z.ZodOptional<z.ZodString>;
@@ -120,25 +123,17 @@ export declare const accountEvt: z.ZodObject<{
120
123
  status?: AccountStatus.Takendown | AccountStatus.Suspended | AccountStatus.Deleted | AccountStatus.Deactivated | undefined;
121
124
  }>;
122
125
  export type AccountEvt = z.infer<typeof accountEvt>;
123
- export declare const tombstoneEvt: z.ZodObject<{
124
- did: z.ZodString;
125
- }, "strip", z.ZodTypeAny, {
126
- did: string;
127
- }, {
128
- did: string;
129
- }>;
130
- export type TombstoneEvt = z.infer<typeof tombstoneEvt>;
131
126
  type TypedCommitEvt = {
132
127
  type: 'commit';
133
128
  seq: number;
134
129
  time: string;
135
130
  evt: CommitEvt;
136
131
  };
137
- type TypedHandleEvt = {
138
- type: 'handle';
132
+ type TypedSyncEvt = {
133
+ type: 'sync';
139
134
  seq: number;
140
135
  time: string;
141
- evt: HandleEvt;
136
+ evt: SyncEvt;
142
137
  };
143
138
  type TypedIdentityEvt = {
144
139
  type: 'identity';
@@ -152,12 +147,6 @@ type TypedAccountEvt = {
152
147
  time: string;
153
148
  evt: AccountEvt;
154
149
  };
155
- type TypedTombstoneEvt = {
156
- type: 'tombstone';
157
- seq: number;
158
- time: string;
159
- evt: TombstoneEvt;
160
- };
161
- export type SeqEvt = TypedCommitEvt | TypedHandleEvt | TypedIdentityEvt | TypedAccountEvt | TypedTombstoneEvt;
150
+ export type SeqEvt = TypedCommitEvt | TypedSyncEvt | TypedIdentityEvt | TypedAccountEvt;
162
151
  export {};
163
152
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/sequencer/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAA;AAEpC,eAAO,MAAM,eAAe,QACrB,MAAM,cACC,iBAAiB,KAC5B,OAAO,CAAC,aAAa,CAgDvB,CAAA;AAED,eAAO,MAAM,qBAAqB,QAC3B,MAAM,UACH,MAAM,KACb,OAAO,CAAC,aAAa,CAWvB,CAAA;AAED,eAAO,MAAM,oBAAoB,QAC1B,MAAM,WACF,MAAM,KACd,OAAO,CAAC,aAAa,CAavB,CAAA;AAED,eAAO,MAAM,mBAAmB,QACzB,MAAM,UACH,aAAa,KACpB,OAAO,CAAC,aAAa,CAevB,CAAA;AAED,eAAO,MAAM,kBAAkB,QACxB,MAAM,KACV,OAAO,CAAC,aAAa,CAUvB,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;EAStB,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AAErD,eAAO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ule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.tombstoneEvt = exports.accountEvt = exports.identityEvt = exports.handleEvt = exports.commitEvt = exports.commitEvtOp = exports.formatSeqTombstone = exports.formatSeqAccountEvt = exports.formatSeqIdentityEvt = exports.formatSeqHandleUpdate = exports.formatSeqCommit = void 0;
6
+ exports.accountEvt = exports.identityEvt = exports.syncEvt = exports.commitEvt = exports.commitEvtOp = exports.formatSeqAccountEvt = exports.formatSeqIdentityEvt = exports.syncEvtDataFromCommit = exports.formatSeqSyncEvt = exports.formatSeqCommit = void 0;
7
+ const node_assert_1 = __importDefault(require("node:assert"));
4
8
  const zod_1 = require("zod");
5
9
  const common_1 = require("@atproto/common");
6
10
  const repo_1 = require("@atproto/repo");
7
- const account_manager_1 = require("../account-manager");
11
+ const account_manager_1 = require("../account-manager/account-manager");
8
12
  const formatSeqCommit = async (did, commitData) => {
9
13
  const blocksToSend = new repo_1.BlockMap();
10
14
  blocksToSend.addMap(commitData.newBlocks);
11
15
  blocksToSend.addMap(commitData.relevantBlocks);
12
- let evt;
13
- // If event is too big (max 200 ops or 1MB of data)
14
- if (commitData.ops.length > 200 || blocksToSend.byteSize > 1000000) {
15
- const justRoot = new repo_1.BlockMap();
16
- const rootBlock = blocksToSend.get(commitData.cid);
17
- if (rootBlock) {
18
- justRoot.set(commitData.cid, rootBlock);
19
- }
20
- evt = {
21
- rebase: false,
22
- tooBig: true,
23
- repo: did,
24
- commit: commitData.cid,
25
- rev: commitData.rev,
26
- since: commitData.since,
27
- blocks: await (0, repo_1.blocksToCarFile)(commitData.cid, justRoot),
28
- ops: [],
29
- blobs: [],
30
- prevData: commitData.prevData ?? undefined,
31
- };
32
- }
33
- else {
34
- evt = {
35
- rebase: false,
36
- tooBig: false,
37
- repo: did,
38
- commit: commitData.cid,
39
- rev: commitData.rev,
40
- since: commitData.since,
41
- blocks: await (0, repo_1.blocksToCarFile)(commitData.cid, blocksToSend),
42
- ops: commitData.ops,
43
- blobs: commitData.blobs.toList(),
44
- prevData: commitData.prevData ?? undefined,
45
- };
46
- }
16
+ const evt = {
17
+ repo: did,
18
+ commit: commitData.cid,
19
+ rev: commitData.rev,
20
+ since: commitData.since,
21
+ blocks: await (0, repo_1.blocksToCarFile)(commitData.cid, blocksToSend),
22
+ ops: commitData.ops,
23
+ prevData: commitData.prevData ?? undefined,
24
+ // deprecated (but still required) fields
25
+ rebase: false,
26
+ tooBig: false,
27
+ blobs: [],
28
+ };
47
29
  return {
48
30
  did,
49
31
  eventType: 'append',
@@ -52,19 +34,33 @@ const formatSeqCommit = async (did, commitData) => {
52
34
  };
53
35
  };
54
36
  exports.formatSeqCommit = formatSeqCommit;
55
- const formatSeqHandleUpdate = async (did, handle) => {
37
+ const formatSeqSyncEvt = async (did, data) => {
38
+ const blocks = await (0, repo_1.blocksToCarFile)(data.cid, data.blocks);
56
39
  const evt = {
57
40
  did,
58
- handle,
41
+ rev: data.rev,
42
+ blocks,
59
43
  };
60
44
  return {
61
45
  did,
62
- eventType: 'handle',
46
+ eventType: 'sync',
63
47
  event: (0, common_1.cborEncode)(evt),
64
48
  sequencedAt: new Date().toISOString(),
65
49
  };
66
50
  };
67
- exports.formatSeqHandleUpdate = formatSeqHandleUpdate;
51
+ exports.formatSeqSyncEvt = formatSeqSyncEvt;
52
+ const syncEvtDataFromCommit = (commitData) => {
53
+ const { blocks, missing } = commitData.relevantBlocks.getMany([
54
+ commitData.cid,
55
+ ]);
56
+ (0, node_assert_1.default)(!missing.length, 'commit block was not found, could not build sync event');
57
+ return {
58
+ rev: commitData.rev,
59
+ cid: commitData.cid,
60
+ blocks,
61
+ };
62
+ };
63
+ exports.syncEvtDataFromCommit = syncEvtDataFromCommit;
68
64
  const formatSeqIdentityEvt = async (did, handle) => {
69
65
  const evt = {
70
66
  did,
@@ -96,18 +92,6 @@ const formatSeqAccountEvt = async (did, status) => {
96
92
  };
97
93
  };
98
94
  exports.formatSeqAccountEvt = formatSeqAccountEvt;
99
- const formatSeqTombstone = async (did) => {
100
- const evt = {
101
- did,
102
- };
103
- return {
104
- did,
105
- eventType: 'tombstone',
106
- event: (0, common_1.cborEncode)(evt),
107
- sequencedAt: new Date().toISOString(),
108
- };
109
- };
110
- exports.formatSeqTombstone = formatSeqTombstone;
111
95
  exports.commitEvtOp = zod_1.z.object({
112
96
  action: zod_1.z.union([
113
97
  zod_1.z.literal('create'),
@@ -130,9 +114,10 @@ exports.commitEvt = zod_1.z.object({
130
114
  blobs: zod_1.z.array(common_1.schema.cid),
131
115
  prevData: common_1.schema.cid.optional(),
132
116
  });
133
- exports.handleEvt = zod_1.z.object({
117
+ exports.syncEvt = zod_1.z.object({
134
118
  did: zod_1.z.string(),
135
- handle: zod_1.z.string(),
119
+ blocks: common_1.schema.bytes,
120
+ rev: zod_1.z.string(),
136
121
  });
137
122
  exports.identityEvt = zod_1.z.object({
138
123
  did: zod_1.z.string(),
@@ -150,7 +135,4 @@ exports.accountEvt = zod_1.z.object({
150
135
  ])
151
136
  .optional(),
152
137
  });
153
- exports.tombstoneEvt = zod_1.z.object({
154
- did: zod_1.z.string(),
155
- });
156
138
  //# sourceMappingURL=events.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/sequencer/events.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,4CAAqE;AACrE,wCAAyD;AACzD,wDAAkD;AAI3C,MAAM,eAAe,GAAG,KAAK,EAClC,GAAW,EACX,UAA6B,EACL,EAAE;IAC1B,MAAM,YAAY,GAAG,IAAI,eAAQ,EAAE,CAAA;IACnC,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;IACzC,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;IAE9C,IAAI,GAAc,CAAA;IAElB,mDAAmD;IACnD,IAAI,UAAU,CAAC,GAAG,CAAC,MAAM,GAAG,GAAG,IAAI,YAAY,CAAC,QAAQ,GAA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AC,QAAQ,EAAE;CAC9B,CAAC,CAAA;AAGW,QAAA,UAAU,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;IACnB,MAAM,EAAE,OAAC;SACN,IAAI,CAAC;QACJ,+BAAa,CAAC,SAAS;QACvB,+BAAa,CAAC,SAAS;QACvB,+BAAa,CAAC,OAAO;QACrB,+BAAa,CAAC,WAAW;KAC1B,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import TypedEmitter from 'typed-emitter';
2
2
  import { AccountStatus } from '../account-manager/helpers/account';
3
3
  import { Crawlers } from '../crawlers';
4
- import { CommitDataWithOps } from '../repo';
4
+ import { CommitDataWithOps, SyncEvtData } from '../repo';
5
5
  import { RepoSeqEntry, RepoSeqInsert, SequencerDb } from './db';
6
6
  import { SeqEvt } from './events';
7
7
  export * from './events';
@@ -29,10 +29,9 @@ export declare class Sequencer extends Sequencer_base {
29
29
  private exponentialBackoff;
30
30
  sequenceEvt(evt: RepoSeqInsert): Promise<number>;
31
31
  sequenceCommit(did: string, commitData: CommitDataWithOps): Promise<number>;
32
- sequenceHandleUpdate(did: string, handle: string): Promise<number>;
32
+ sequenceSyncEvt(did: string, data: SyncEvtData): Promise<number>;
33
33
  sequenceIdentityEvt(did: string, handle?: string): Promise<number>;
34
34
  sequenceAccountEvt(did: string, status: AccountStatus): Promise<number>;
35
- sequenceTombstone(did: string): Promise<number>;
36
35
  deleteAllForUser(did: string, excludingSeqs?: number[]): Promise<void>;
37
36
  }
38
37
  type SeqRow = RepoSeqEntry;
@@ -1 +1 @@
1
- {"version":3,"file":"sequencer.d.ts","sourceRoot":"","sources":["../../src/sequencer/sequencer.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,eAAe,CAAA;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAClE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AAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAChC,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;AAE5D,eAAe,SAAS,CAAA"}
@@ -143,7 +143,7 @@ class Sequencer extends node_events_1.default {
143
143
  continue;
144
144
  }
145
145
  const evt = (0, common_1.cborDecode)(row.event);
146
- if (row.eventType === 'append' || row.eventType === 'rebase') {
146
+ if (row.eventType === 'append') {
147
147
  seqEvts.push({
148
148
  type: 'commit',
149
149
  seq: row.seq,
@@ -151,9 +151,9 @@ class Sequencer extends node_events_1.default {
151
151
  evt: evt,
152
152
  });
153
153
  }
154
- else if (row.eventType === 'handle') {
154
+ else if (row.eventType === 'sync') {
155
155
  seqEvts.push({
156
- type: 'handle',
156
+ type: 'sync',
157
157
  seq: row.seq,
158
158
  time: row.sequencedAt,
159
159
  evt: evt,
@@ -175,14 +175,6 @@ class Sequencer extends node_events_1.default {
175
175
  evt: evt,
176
176
  });
177
177
  }
178
- else if (row.eventType === 'tombstone') {
179
- seqEvts.push({
180
- type: 'tombstone',
181
- seq: row.seq,
182
- time: row.sequencedAt,
183
- evt: evt,
184
- });
185
- }
186
178
  }
187
179
  return seqEvts;
188
180
  }
@@ -226,8 +218,8 @@ class Sequencer extends node_events_1.default {
226
218
  const evt = await (0, events_1.formatSeqCommit)(did, commitData);
227
219
  return await this.sequenceEvt(evt);
228
220
  }
229
- async sequenceHandleUpdate(did, handle) {
230
- const evt = await (0, events_1.formatSeqHandleUpdate)(did, handle);
221
+ async sequenceSyncEvt(did, data) {
222
+ const evt = await (0, events_1.formatSeqSyncEvt)(did, data);
231
223
  return await this.sequenceEvt(evt);
232
224
  }
233
225
  async sequenceIdentityEvt(did, handle) {
@@ -238,10 +230,6 @@ class Sequencer extends node_events_1.default {
238
230
  const evt = await (0, events_1.formatSeqAccountEvt)(did, status);
239
231
  return await this.sequenceEvt(evt);
240
232
  }
241
- async sequenceTombstone(did) {
242
- const evt = await (0, events_1.formatSeqTombstone)(did);
243
- return await this.sequenceEvt(evt);
244
- }
245
233
  async deleteAllForUser(did, excludingSeqs = []) {
246
234
  await this.db.executeWithRetry(this.db.db
247
235
  .deleteFrom('repo_seq')
@@ -1 +1 @@
1
- {"version":3,"file":"sequencer.js","sourceRoot":"","sources":["../../src/sequencer/sequencer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAsC;AAEtC,4CAA0D;AAG1D,sCAA4C;AAE5C,6BAMa;AACb,qCAYiB;AAEjB,2CAAwB;AAExB,MAAa,SAAU,SAAS,qBAA2C;IAMzE,YACE,UAAkB,EACX,QAAkB,EAClB,WAAW,CAAC,EACnB,wBAAwB,GAAG,KAAK;QAEhC,KAAK,EAAE,CAAA;QAJP;;;;mBAAO,QAAQ;WAAU;QACzB;;;;mBAAO,QAAQ;WAAI;QARrB;;;;;WAAe;QACf;;;;mBAAY,KAAK;WAAA;QACjB;;;;mBAAoC,IAAI;WAAA;QACxC;;;;mBAAqB,CAAC;WAAA;QASpB,0EAA0E;QAC1E,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAA;QACzB,IAAI,CAAC,EAAE,GAAG,IAAA,UAAK,EAAC,UAAU,EAAE,wBAAwB,CAAC,CAAA;IACvD,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,CAAA;QACzB,MAAM,QAAQ,GAAG,IAAA,gBAAW,EAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACrC,MAAM,QAAQ,CAAC,sBAAsB,EAAE,CAAA;QACvC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAA;QAC9B,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,CAAC,CAAA;QACzB,IAAI,IAAI,CAAC,WAAW,KAAK,IAAI,EAAE,CAAC;YAC9B,IAAI,CAAC,WAAW,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AAqB;QAErB,MAAM,GAAG,GAAG,MAAM,IAAA,4BAAmB,EAAC,GAAG,EAAE,MAAM,CAAC,CAAA;QAClD,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;IACpC,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,GAAW,EAAE,gBAA0B,EAAE;QAC9D,MAAM,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAC5B,IAAI,CAAC,EAAE,CAAC,EAAE;aACP,UAAU,CAAC,UAAU,CAAC;aACtB,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC;aACtB,EAAE,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CACnC,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,aAAa,CAAC,CACzC,CACJ,CAAA;IACH,CAAC;CACF;AAvND,8BAuNC;AAWD,kBAAe,SAAS,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/pds",
3
- "version": "0.4.104",
3
+ "version": "0.4.106",
4
4
  "license": "MIT",
5
5
  "description": "Reference implementation of atproto Personal Data Server (PDS)",
6
6
  "keywords": [
@@ -48,19 +48,19 @@
48
48
  "uint8arrays": "3.0.0",
49
49
  "undici": "^6.19.8",
50
50
  "zod": "^3.23.8",
51
- "@atproto-labs/fetch-node": "0.1.7",
52
- "@atproto-labs/xrpc-utils": "0.0.7",
53
- "@atproto/api": "^0.14.7",
54
- "@atproto/aws": "^0.2.16",
51
+ "@atproto-labs/fetch-node": "0.1.8",
52
+ "@atproto-labs/xrpc-utils": "0.0.8",
53
+ "@atproto/api": "^0.14.9",
54
+ "@atproto/aws": "^0.2.17",
55
55
  "@atproto/common": "^0.4.8",
56
56
  "@atproto/crypto": "^0.4.4",
57
57
  "@atproto/identity": "^0.4.6",
58
- "@atproto/lexicon": "^0.4.7",
59
- "@atproto/oauth-provider": "^0.4.0",
60
- "@atproto/repo": "^0.7.0",
61
- "@atproto/syntax": "^0.3.3",
62
- "@atproto/xrpc": "^0.6.9",
63
- "@atproto/xrpc-server": "^0.7.11"
58
+ "@atproto/lexicon": "^0.4.8",
59
+ "@atproto/oauth-provider": "^0.5.1",
60
+ "@atproto/repo": "^0.7.1",
61
+ "@atproto/syntax": "^0.3.4",
62
+ "@atproto/xrpc": "^0.6.10",
63
+ "@atproto/xrpc-server": "^0.7.12"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@atproto/pds-entryway": "npm:@atproto/pds@0.3.0-entryway.3",
@@ -78,10 +78,10 @@
78
78
  "ts-node": "^10.8.2",
79
79
  "typescript": "^5.6.3",
80
80
  "ws": "^8.12.0",
81
- "@atproto/api": "^0.14.7",
82
- "@atproto/bsky": "^0.0.124",
83
- "@atproto/lex-cli": "^0.6.1",
84
- "@atproto/oauth-client-browser-example": "0.0.1"
81
+ "@atproto/api": "^0.14.9",
82
+ "@atproto/bsky": "^0.0.126",
83
+ "@atproto/lex-cli": "^0.6.2",
84
+ "@atproto/oauth-client-browser-example": "0.0.2"
85
85
  },
86
86
  "scripts": {
87
87
  "codegen": "lex gen-server --yes ./src/lexicon ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/* ../../lexicons/tools/ozone/*/*",