@atproto/repo 0.2.0 → 0.3.0
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.
- package/dist/data-diff.d.ts +11 -9
- package/dist/index.d.ts +0 -1
- package/dist/index.js +404 -1655
- package/dist/index.js.map +4 -4
- package/dist/mst/mst.d.ts +10 -6
- package/dist/readable-repo.d.ts +1 -1
- package/dist/repo.d.ts +1 -4
- package/dist/storage/index.d.ts +0 -1
- package/dist/storage/memory-blockstore.d.ts +7 -12
- package/dist/storage/types.d.ts +28 -0
- package/dist/sync/consumer.d.ts +13 -17
- package/dist/sync/provider.d.ts +1 -5
- package/dist/types.d.ts +228 -39
- package/dist/util.d.ts +3 -5
- package/package.json +2 -2
- package/src/data-diff.ts +46 -44
- package/src/index.ts +0 -1
- package/src/mst/diff.ts +14 -36
- package/src/mst/mst.ts +14 -4
- package/src/readable-repo.ts +3 -3
- package/src/repo.ts +49 -70
- package/src/storage/index.ts +0 -1
- package/src/storage/memory-blockstore.ts +18 -77
- package/src/storage/types.ts +29 -0
- package/src/sync/consumer.ts +170 -116
- package/src/sync/provider.ts +2 -40
- package/src/types.ts +49 -23
- package/src/util.ts +24 -79
- package/tests/_util.ts +38 -67
- package/tests/mst.test.ts +4 -1
- package/tests/{sync/narrow.test.ts → proofs.test.ts} +9 -20
- package/tests/repo.test.ts +5 -4
- package/tests/sync.test.ts +97 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/src/block-map.d.ts +0 -23
- package/dist/src/blockstore/index.d.ts +0 -2
- package/dist/src/blockstore/ipld-store.d.ts +0 -27
- package/dist/src/blockstore/memory-blockstore.d.ts +0 -13
- package/dist/src/blockstore/persistent-blockstore.d.ts +0 -12
- package/dist/src/cid-set.d.ts +0 -14
- package/dist/src/collection.d.ts +0 -22
- package/dist/src/data-diff.d.ts +0 -34
- package/dist/src/error.d.ts +0 -21
- package/dist/src/index.d.ts +0 -7
- package/dist/src/logger.d.ts +0 -2
- package/dist/src/mst/diff.d.ts +0 -33
- package/dist/src/mst/index.d.ts +0 -4
- package/dist/src/mst/mst.d.ts +0 -106
- package/dist/src/mst/util.d.ts +0 -9
- package/dist/src/mst/walker.d.ts +0 -22
- package/dist/src/parse.d.ts +0 -11
- package/dist/src/readable-repo.d.ts +0 -25
- package/dist/src/repo.d.ts +0 -39
- package/dist/src/storage/error.d.ts +0 -22
- package/dist/src/storage/index.d.ts +0 -1
- package/dist/src/storage/memory-blobstore.d.ts +0 -1
- package/dist/src/storage/memory-blockstore.d.ts +0 -28
- package/dist/src/storage/readable-blockstore.d.ts +0 -21
- package/dist/src/storage/repo-storage.d.ts +0 -18
- package/dist/src/storage/sync-storage.d.ts +0 -15
- package/dist/src/storage/types.d.ts +0 -12
- package/dist/src/storage/util.d.ts +0 -17
- package/dist/src/structure.d.ts +0 -39
- package/dist/src/sync/consumer.d.ts +0 -19
- package/dist/src/sync/index.d.ts +0 -2
- package/dist/src/sync/producer.d.ts +0 -13
- package/dist/src/sync/provider.d.ts +0 -11
- package/dist/src/sync.d.ts +0 -9
- package/dist/src/types.d.ts +0 -368
- package/dist/src/util.d.ts +0 -13
- package/dist/src/verify.d.ts +0 -5
- package/dist/storage/repo-storage.d.ts +0 -19
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- package/dist/verify.d.ts +0 -32
- package/src/storage/repo-storage.ts +0 -43
- package/src/verify.ts +0 -268
- package/tests/rebase.test.ts +0 -37
- package/tests/sync/checkout.test.ts +0 -75
- package/tests/sync/diff.test.ts +0 -92
package/dist/src/types.d.ts
DELETED
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { BlockWriter } from '@ipld/car/writer';
|
|
3
|
-
import { CID } from 'multiformats';
|
|
4
|
-
import { DataDiff } from './mst';
|
|
5
|
-
declare const repoMeta: z.ZodObject<{
|
|
6
|
-
did: z.ZodString;
|
|
7
|
-
version: z.ZodNumber;
|
|
8
|
-
datastore: z.ZodString;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
did: string;
|
|
11
|
-
version: number;
|
|
12
|
-
datastore: string;
|
|
13
|
-
}, {
|
|
14
|
-
did: string;
|
|
15
|
-
version: number;
|
|
16
|
-
datastore: string;
|
|
17
|
-
}>;
|
|
18
|
-
export declare type RepoMeta = z.infer<typeof repoMeta>;
|
|
19
|
-
declare const repoRoot: z.ZodObject<{
|
|
20
|
-
meta: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>;
|
|
21
|
-
prev: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>>;
|
|
22
|
-
auth_token: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>>;
|
|
23
|
-
data: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>;
|
|
24
|
-
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
data: CID;
|
|
26
|
-
meta: CID;
|
|
27
|
-
prev: CID | null;
|
|
28
|
-
auth_token: CID | null;
|
|
29
|
-
}, {
|
|
30
|
-
data?: any;
|
|
31
|
-
meta?: any;
|
|
32
|
-
prev?: any;
|
|
33
|
-
auth_token?: any;
|
|
34
|
-
}>;
|
|
35
|
-
export declare type RepoRoot = z.infer<typeof repoRoot>;
|
|
36
|
-
declare const commit: z.ZodObject<{
|
|
37
|
-
root: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>;
|
|
38
|
-
sig: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
root: CID;
|
|
41
|
-
sig: Uint8Array;
|
|
42
|
-
}, {
|
|
43
|
-
root?: any;
|
|
44
|
-
sig: Uint8Array;
|
|
45
|
-
}>;
|
|
46
|
-
export declare type Commit = z.infer<typeof commit>;
|
|
47
|
-
export declare const cidCreateOp: z.ZodObject<{
|
|
48
|
-
action: z.ZodLiteral<"create">;
|
|
49
|
-
collection: z.ZodString;
|
|
50
|
-
rkey: z.ZodString;
|
|
51
|
-
cid: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>;
|
|
52
|
-
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
collection: string;
|
|
54
|
-
action: "create";
|
|
55
|
-
rkey: string;
|
|
56
|
-
cid: CID;
|
|
57
|
-
}, {
|
|
58
|
-
cid?: any;
|
|
59
|
-
collection: string;
|
|
60
|
-
action: "create";
|
|
61
|
-
rkey: string;
|
|
62
|
-
}>;
|
|
63
|
-
export declare type CidCreateOp = z.infer<typeof cidCreateOp>;
|
|
64
|
-
export declare const cidUpdateOp: z.ZodObject<{
|
|
65
|
-
action: z.ZodLiteral<"update">;
|
|
66
|
-
collection: z.ZodString;
|
|
67
|
-
rkey: z.ZodString;
|
|
68
|
-
cid: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
collection: string;
|
|
71
|
-
action: "update";
|
|
72
|
-
rkey: string;
|
|
73
|
-
cid: CID;
|
|
74
|
-
}, {
|
|
75
|
-
cid?: any;
|
|
76
|
-
collection: string;
|
|
77
|
-
action: "update";
|
|
78
|
-
rkey: string;
|
|
79
|
-
}>;
|
|
80
|
-
export declare type CidUpdateOp = z.infer<typeof cidUpdateOp>;
|
|
81
|
-
export declare const deleteOp: z.ZodObject<{
|
|
82
|
-
action: z.ZodLiteral<"delete">;
|
|
83
|
-
collection: z.ZodString;
|
|
84
|
-
rkey: z.ZodString;
|
|
85
|
-
}, "strip", z.ZodTypeAny, {
|
|
86
|
-
collection: string;
|
|
87
|
-
action: "delete";
|
|
88
|
-
rkey: string;
|
|
89
|
-
}, {
|
|
90
|
-
collection: string;
|
|
91
|
-
action: "delete";
|
|
92
|
-
rkey: string;
|
|
93
|
-
}>;
|
|
94
|
-
export declare type DeleteOp = z.infer<typeof deleteOp>;
|
|
95
|
-
export declare const cidWriteOp: z.ZodUnion<[z.ZodObject<{
|
|
96
|
-
action: z.ZodLiteral<"create">;
|
|
97
|
-
collection: z.ZodString;
|
|
98
|
-
rkey: z.ZodString;
|
|
99
|
-
cid: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>;
|
|
100
|
-
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
collection: string;
|
|
102
|
-
action: "create";
|
|
103
|
-
rkey: string;
|
|
104
|
-
cid: CID;
|
|
105
|
-
}, {
|
|
106
|
-
cid?: any;
|
|
107
|
-
collection: string;
|
|
108
|
-
action: "create";
|
|
109
|
-
rkey: string;
|
|
110
|
-
}>, z.ZodObject<{
|
|
111
|
-
action: z.ZodLiteral<"update">;
|
|
112
|
-
collection: z.ZodString;
|
|
113
|
-
rkey: z.ZodString;
|
|
114
|
-
cid: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>;
|
|
115
|
-
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
collection: string;
|
|
117
|
-
action: "update";
|
|
118
|
-
rkey: string;
|
|
119
|
-
cid: CID;
|
|
120
|
-
}, {
|
|
121
|
-
cid?: any;
|
|
122
|
-
collection: string;
|
|
123
|
-
action: "update";
|
|
124
|
-
rkey: string;
|
|
125
|
-
}>, z.ZodObject<{
|
|
126
|
-
action: z.ZodLiteral<"delete">;
|
|
127
|
-
collection: z.ZodString;
|
|
128
|
-
rkey: z.ZodString;
|
|
129
|
-
}, "strip", z.ZodTypeAny, {
|
|
130
|
-
collection: string;
|
|
131
|
-
action: "delete";
|
|
132
|
-
rkey: string;
|
|
133
|
-
}, {
|
|
134
|
-
collection: string;
|
|
135
|
-
action: "delete";
|
|
136
|
-
rkey: string;
|
|
137
|
-
}>]>;
|
|
138
|
-
export declare type CidWriteOp = z.infer<typeof cidWriteOp>;
|
|
139
|
-
export declare const recordCreateOp: z.ZodObject<{
|
|
140
|
-
action: z.ZodLiteral<"create">;
|
|
141
|
-
collection: z.ZodString;
|
|
142
|
-
rkey: z.ZodString;
|
|
143
|
-
value: z.ZodAny;
|
|
144
|
-
}, "strip", z.ZodTypeAny, {
|
|
145
|
-
value?: any;
|
|
146
|
-
collection: string;
|
|
147
|
-
action: "create";
|
|
148
|
-
rkey: string;
|
|
149
|
-
}, {
|
|
150
|
-
value?: any;
|
|
151
|
-
collection: string;
|
|
152
|
-
action: "create";
|
|
153
|
-
rkey: string;
|
|
154
|
-
}>;
|
|
155
|
-
export declare type RecordCreateOp = z.infer<typeof recordCreateOp>;
|
|
156
|
-
export declare const recordUpdateOp: z.ZodObject<{
|
|
157
|
-
action: z.ZodLiteral<"update">;
|
|
158
|
-
collection: z.ZodString;
|
|
159
|
-
rkey: z.ZodString;
|
|
160
|
-
value: z.ZodAny;
|
|
161
|
-
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
value?: any;
|
|
163
|
-
collection: string;
|
|
164
|
-
action: "update";
|
|
165
|
-
rkey: string;
|
|
166
|
-
}, {
|
|
167
|
-
value?: any;
|
|
168
|
-
collection: string;
|
|
169
|
-
action: "update";
|
|
170
|
-
rkey: string;
|
|
171
|
-
}>;
|
|
172
|
-
export declare type RecordUpdateOp = z.infer<typeof recordUpdateOp>;
|
|
173
|
-
export declare const recordWriteOp: z.ZodUnion<[z.ZodObject<{
|
|
174
|
-
action: z.ZodLiteral<"create">;
|
|
175
|
-
collection: z.ZodString;
|
|
176
|
-
rkey: z.ZodString;
|
|
177
|
-
value: z.ZodAny;
|
|
178
|
-
}, "strip", z.ZodTypeAny, {
|
|
179
|
-
value?: any;
|
|
180
|
-
collection: string;
|
|
181
|
-
action: "create";
|
|
182
|
-
rkey: string;
|
|
183
|
-
}, {
|
|
184
|
-
value?: any;
|
|
185
|
-
collection: string;
|
|
186
|
-
action: "create";
|
|
187
|
-
rkey: string;
|
|
188
|
-
}>, z.ZodObject<{
|
|
189
|
-
action: z.ZodLiteral<"update">;
|
|
190
|
-
collection: z.ZodString;
|
|
191
|
-
rkey: z.ZodString;
|
|
192
|
-
value: z.ZodAny;
|
|
193
|
-
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
value?: any;
|
|
195
|
-
collection: string;
|
|
196
|
-
action: "update";
|
|
197
|
-
rkey: string;
|
|
198
|
-
}, {
|
|
199
|
-
value?: any;
|
|
200
|
-
collection: string;
|
|
201
|
-
action: "update";
|
|
202
|
-
rkey: string;
|
|
203
|
-
}>, z.ZodObject<{
|
|
204
|
-
action: z.ZodLiteral<"delete">;
|
|
205
|
-
collection: z.ZodString;
|
|
206
|
-
rkey: z.ZodString;
|
|
207
|
-
}, "strip", z.ZodTypeAny, {
|
|
208
|
-
collection: string;
|
|
209
|
-
action: "delete";
|
|
210
|
-
rkey: string;
|
|
211
|
-
}, {
|
|
212
|
-
collection: string;
|
|
213
|
-
action: "delete";
|
|
214
|
-
rkey: string;
|
|
215
|
-
}>]>;
|
|
216
|
-
export declare type RecordWriteOp = z.infer<typeof recordWriteOp>;
|
|
217
|
-
export declare const def: {
|
|
218
|
-
repoMeta: z.ZodObject<{
|
|
219
|
-
did: z.ZodString;
|
|
220
|
-
version: z.ZodNumber;
|
|
221
|
-
datastore: z.ZodString;
|
|
222
|
-
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
did: string;
|
|
224
|
-
version: number;
|
|
225
|
-
datastore: string;
|
|
226
|
-
}, {
|
|
227
|
-
did: string;
|
|
228
|
-
version: number;
|
|
229
|
-
datastore: string;
|
|
230
|
-
}>;
|
|
231
|
-
repoRoot: z.ZodObject<{
|
|
232
|
-
meta: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>;
|
|
233
|
-
prev: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>>;
|
|
234
|
-
auth_token: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>>;
|
|
235
|
-
data: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>;
|
|
236
|
-
}, "strip", z.ZodTypeAny, {
|
|
237
|
-
data: CID;
|
|
238
|
-
meta: CID;
|
|
239
|
-
prev: CID | null;
|
|
240
|
-
auth_token: CID | null;
|
|
241
|
-
}, {
|
|
242
|
-
data?: any;
|
|
243
|
-
meta?: any;
|
|
244
|
-
prev?: any;
|
|
245
|
-
auth_token?: any;
|
|
246
|
-
}>;
|
|
247
|
-
commit: z.ZodObject<{
|
|
248
|
-
root: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>;
|
|
249
|
-
sig: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
250
|
-
}, "strip", z.ZodTypeAny, {
|
|
251
|
-
root: CID;
|
|
252
|
-
sig: Uint8Array;
|
|
253
|
-
}, {
|
|
254
|
-
root?: any;
|
|
255
|
-
sig: Uint8Array;
|
|
256
|
-
}>;
|
|
257
|
-
cidWriteOp: z.ZodUnion<[z.ZodObject<{
|
|
258
|
-
action: z.ZodLiteral<"create">;
|
|
259
|
-
collection: z.ZodString;
|
|
260
|
-
rkey: z.ZodString;
|
|
261
|
-
cid: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>;
|
|
262
|
-
}, "strip", z.ZodTypeAny, {
|
|
263
|
-
collection: string;
|
|
264
|
-
action: "create";
|
|
265
|
-
rkey: string;
|
|
266
|
-
cid: CID;
|
|
267
|
-
}, {
|
|
268
|
-
cid?: any;
|
|
269
|
-
collection: string;
|
|
270
|
-
action: "create";
|
|
271
|
-
rkey: string;
|
|
272
|
-
}>, z.ZodObject<{
|
|
273
|
-
action: z.ZodLiteral<"update">;
|
|
274
|
-
collection: z.ZodString;
|
|
275
|
-
rkey: z.ZodString;
|
|
276
|
-
cid: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>;
|
|
277
|
-
}, "strip", z.ZodTypeAny, {
|
|
278
|
-
collection: string;
|
|
279
|
-
action: "update";
|
|
280
|
-
rkey: string;
|
|
281
|
-
cid: CID;
|
|
282
|
-
}, {
|
|
283
|
-
cid?: any;
|
|
284
|
-
collection: string;
|
|
285
|
-
action: "update";
|
|
286
|
-
rkey: string;
|
|
287
|
-
}>, z.ZodObject<{
|
|
288
|
-
action: z.ZodLiteral<"delete">;
|
|
289
|
-
collection: z.ZodString;
|
|
290
|
-
rkey: z.ZodString;
|
|
291
|
-
}, "strip", z.ZodTypeAny, {
|
|
292
|
-
collection: string;
|
|
293
|
-
action: "delete";
|
|
294
|
-
rkey: string;
|
|
295
|
-
}, {
|
|
296
|
-
collection: string;
|
|
297
|
-
action: "delete";
|
|
298
|
-
rkey: string;
|
|
299
|
-
}>]>;
|
|
300
|
-
recordWriteOp: z.ZodUnion<[z.ZodObject<{
|
|
301
|
-
action: z.ZodLiteral<"create">;
|
|
302
|
-
collection: z.ZodString;
|
|
303
|
-
rkey: z.ZodString;
|
|
304
|
-
value: z.ZodAny;
|
|
305
|
-
}, "strip", z.ZodTypeAny, {
|
|
306
|
-
value?: any;
|
|
307
|
-
collection: string;
|
|
308
|
-
action: "create";
|
|
309
|
-
rkey: string;
|
|
310
|
-
}, {
|
|
311
|
-
value?: any;
|
|
312
|
-
collection: string;
|
|
313
|
-
action: "create";
|
|
314
|
-
rkey: string;
|
|
315
|
-
}>, z.ZodObject<{
|
|
316
|
-
action: z.ZodLiteral<"update">;
|
|
317
|
-
collection: z.ZodString;
|
|
318
|
-
rkey: z.ZodString;
|
|
319
|
-
value: z.ZodAny;
|
|
320
|
-
}, "strip", z.ZodTypeAny, {
|
|
321
|
-
value?: any;
|
|
322
|
-
collection: string;
|
|
323
|
-
action: "update";
|
|
324
|
-
rkey: string;
|
|
325
|
-
}, {
|
|
326
|
-
value?: any;
|
|
327
|
-
collection: string;
|
|
328
|
-
action: "update";
|
|
329
|
-
rkey: string;
|
|
330
|
-
}>, z.ZodObject<{
|
|
331
|
-
action: z.ZodLiteral<"delete">;
|
|
332
|
-
collection: z.ZodString;
|
|
333
|
-
rkey: z.ZodString;
|
|
334
|
-
}, "strip", z.ZodTypeAny, {
|
|
335
|
-
collection: string;
|
|
336
|
-
action: "delete";
|
|
337
|
-
rkey: string;
|
|
338
|
-
}, {
|
|
339
|
-
collection: string;
|
|
340
|
-
action: "delete";
|
|
341
|
-
rkey: string;
|
|
342
|
-
}>]>;
|
|
343
|
-
string: z.ZodString;
|
|
344
|
-
cid: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>;
|
|
345
|
-
strToCid: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, CID, string>;
|
|
346
|
-
bytes: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
347
|
-
strToInt: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, number, string>;
|
|
348
|
-
strToBool: z.ZodEffects<z.ZodString, boolean, string>;
|
|
349
|
-
};
|
|
350
|
-
export interface CarStreamable {
|
|
351
|
-
writeToCarStream(car: BlockWriter): Promise<void>;
|
|
352
|
-
}
|
|
353
|
-
export declare type DataValue = {
|
|
354
|
-
key: string;
|
|
355
|
-
value: CID;
|
|
356
|
-
};
|
|
357
|
-
export interface DataStore {
|
|
358
|
-
add(key: string, value: CID): Promise<DataStore>;
|
|
359
|
-
update(key: string, value: CID): Promise<DataStore>;
|
|
360
|
-
delete(key: string): Promise<DataStore>;
|
|
361
|
-
get(key: string): Promise<CID | null>;
|
|
362
|
-
list(count: number, after?: string, before?: string): Promise<DataValue[]>;
|
|
363
|
-
listWithPrefix(prefix: string, count?: number): Promise<DataValue[]>;
|
|
364
|
-
diff(other: DataStore): Promise<DataDiff>;
|
|
365
|
-
stage(): Promise<CID>;
|
|
366
|
-
writeToCarStream(car: BlockWriter): Promise<void>;
|
|
367
|
-
}
|
|
368
|
-
export {};
|
package/dist/src/util.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CID } from 'multiformats/cid';
|
|
2
|
-
import * as auth from '@atproto/auth';
|
|
3
|
-
import { DataDiff } from './mst';
|
|
4
|
-
import { IpldStore } from './blockstore';
|
|
5
|
-
import { DataStore, RecordWriteOp } from './types';
|
|
6
|
-
export declare const ucanForOperation: (prevData: DataStore, newData: DataStore, rootDid: string, authStore: auth.AuthStore) => Promise<string>;
|
|
7
|
-
export declare const getCommitPath: (blockstore: IpldStore, earliest: CID | null, latest: CID) => Promise<CID[] | null>;
|
|
8
|
-
export declare const getWriteOpLog: (blockstore: IpldStore, earliest: CID | null, latest: CID) => Promise<RecordWriteOp[][]>;
|
|
9
|
-
export declare const diffToWriteOps: (blockstore: IpldStore, diff: DataDiff) => Promise<RecordWriteOp[]>;
|
|
10
|
-
export declare const parseRecordKey: (key: string) => {
|
|
11
|
-
collection: string;
|
|
12
|
-
rkey: string;
|
|
13
|
-
};
|
package/dist/src/verify.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { CID } from 'multiformats/cid';
|
|
2
|
-
import * as auth from '@atproto/auth';
|
|
3
|
-
import { IpldStore } from './blockstore';
|
|
4
|
-
import { DataDiff } from './mst';
|
|
5
|
-
export declare const verifyUpdates: (blockstore: IpldStore, earliest: CID | null, latest: CID, verifier: auth.Verifier) => Promise<DataDiff>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CID } from 'multiformats/cid';
|
|
2
|
-
import BlockMap from '../block-map';
|
|
3
|
-
import { CommitBlockData, CommitData, RebaseData } from '../types';
|
|
4
|
-
import ReadableBlockstore from './readable-blockstore';
|
|
5
|
-
export declare abstract class RepoStorage extends ReadableBlockstore {
|
|
6
|
-
abstract getHead(forUpdate?: boolean): Promise<CID | null>;
|
|
7
|
-
abstract getCommitPath(latest: CID, earliest: CID | null): Promise<CID[] | null>;
|
|
8
|
-
abstract getBlocksForCommits(commits: CID[]): Promise<{
|
|
9
|
-
[commit: string]: BlockMap;
|
|
10
|
-
}>;
|
|
11
|
-
abstract putBlock(cid: CID, block: Uint8Array): Promise<void>;
|
|
12
|
-
abstract putMany(blocks: BlockMap): Promise<void>;
|
|
13
|
-
abstract updateHead(cid: CID, prev: CID | null): Promise<void>;
|
|
14
|
-
abstract indexCommits(commit: CommitData[]): Promise<void>;
|
|
15
|
-
abstract applyRebase(rebase: RebaseData): Promise<void>;
|
|
16
|
-
applyCommit(commit: CommitData): Promise<void>;
|
|
17
|
-
getCommits(latest: CID, earliest: CID | null): Promise<CommitBlockData[] | null>;
|
|
18
|
-
}
|
|
19
|
-
export default RepoStorage;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/multiformats/types/src/bases/interface.d.ts","../../../node_modules/multiformats/types/src/hashes/interface.d.ts","../../../node_modules/multiformats/types/src/cid.d.ts","../../../node_modules/multiformats/types/src/hashes/digest.d.ts","../../../node_modules/multiformats/types/src/hashes/hasher.d.ts","../../../node_modules/multiformats/types/src/varint.d.ts","../../../node_modules/multiformats/types/src/bytes.d.ts","../../../node_modules/multiformats/types/src/index.d.ts","../src/cid-set.ts","../../../node_modules/@types/node/ts4.8/assert.d.ts","../../../node_modules/@types/node/ts4.8/assert/strict.d.ts","../../../node_modules/@types/node/ts4.8/globals.d.ts","../../../node_modules/@types/node/ts4.8/async_hooks.d.ts","../../../node_modules/@types/node/ts4.8/buffer.d.ts","../../../node_modules/@types/node/ts4.8/child_process.d.ts","../../../node_modules/@types/node/ts4.8/cluster.d.ts","../../../node_modules/@types/node/ts4.8/console.d.ts","../../../node_modules/@types/node/ts4.8/constants.d.ts","../../../node_modules/@types/node/ts4.8/crypto.d.ts","../../../node_modules/@types/node/ts4.8/dgram.d.ts","../../../node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../../../node_modules/@types/node/ts4.8/dns.d.ts","../../../node_modules/@types/node/ts4.8/dns/promises.d.ts","../../../node_modules/@types/node/ts4.8/domain.d.ts","../../../node_modules/@types/node/ts4.8/dom-events.d.ts","../../../node_modules/@types/node/ts4.8/events.d.ts","../../../node_modules/@types/node/ts4.8/fs.d.ts","../../../node_modules/@types/node/ts4.8/fs/promises.d.ts","../../../node_modules/@types/node/ts4.8/http.d.ts","../../../node_modules/@types/node/ts4.8/http2.d.ts","../../../node_modules/@types/node/ts4.8/https.d.ts","../../../node_modules/@types/node/ts4.8/inspector.d.ts","../../../node_modules/@types/node/ts4.8/module.d.ts","../../../node_modules/@types/node/ts4.8/net.d.ts","../../../node_modules/@types/node/ts4.8/os.d.ts","../../../node_modules/@types/node/ts4.8/path.d.ts","../../../node_modules/@types/node/ts4.8/perf_hooks.d.ts","../../../node_modules/@types/node/ts4.8/process.d.ts","../../../node_modules/@types/node/ts4.8/punycode.d.ts","../../../node_modules/@types/node/ts4.8/querystring.d.ts","../../../node_modules/@types/node/ts4.8/readline.d.ts","../../../node_modules/@types/node/ts4.8/readline/promises.d.ts","../../../node_modules/@types/node/ts4.8/repl.d.ts","../../../node_modules/@types/node/ts4.8/stream.d.ts","../../../node_modules/@types/node/ts4.8/stream/promises.d.ts","../../../node_modules/@types/node/ts4.8/stream/consumers.d.ts","../../../node_modules/@types/node/ts4.8/stream/web.d.ts","../../../node_modules/@types/node/ts4.8/string_decoder.d.ts","../../../node_modules/@types/node/ts4.8/test.d.ts","../../../node_modules/@types/node/ts4.8/timers.d.ts","../../../node_modules/@types/node/ts4.8/timers/promises.d.ts","../../../node_modules/@types/node/ts4.8/tls.d.ts","../../../node_modules/@types/node/ts4.8/trace_events.d.ts","../../../node_modules/@types/node/ts4.8/tty.d.ts","../../../node_modules/@types/node/ts4.8/url.d.ts","../../../node_modules/@types/node/ts4.8/util.d.ts","../../../node_modules/@types/node/ts4.8/v8.d.ts","../../../node_modules/@types/node/ts4.8/vm.d.ts","../../../node_modules/@types/node/ts4.8/wasi.d.ts","../../../node_modules/@types/node/ts4.8/worker_threads.d.ts","../../../node_modules/@types/node/ts4.8/zlib.d.ts","../../../node_modules/@types/node/ts4.8/globals.global.d.ts","../../../node_modules/@types/node/ts4.8/index.d.ts","../../../node_modules/@ipld/car/types/api.d.ts","../../../node_modules/@ipld/car/types/lib/coding.d.ts","../../../node_modules/@ipld/car/types/lib/writer-browser.d.ts","../../../node_modules/@ipld/car/types/lib/writer.d.ts","../../common/src/check.ts","../../common/src/util.ts","../../common/src/tid.ts","../../../node_modules/multiformats/types/src/codecs/interface.d.ts","../../../node_modules/multiformats/types/src/block.d.ts","../../../node_modules/multiformats/types/src/codecs/raw.d.ts","../../../node_modules/multiformats/types/src/hashes/sha2.d.ts","../../../node_modules/@ipld/dag-cbor/types/index.d.ts","../../common/src/blocks.ts","../../../node_modules/pino-abstract-transport/index.d.ts","../../../node_modules/pino-pretty/index.d.ts","../../../node_modules/pino-std-serializers/index.d.ts","../../../node_modules/sonic-boom/types/index.d.ts","../../../node_modules/pino/pino.d.ts","../../common/src/logger.ts","../../../node_modules/zod/lib/helpers/typealiases.d.ts","../../../node_modules/zod/lib/helpers/util.d.ts","../../../node_modules/zod/lib/zoderror.d.ts","../../../node_modules/zod/lib/locales/en.d.ts","../../../node_modules/zod/lib/errors.d.ts","../../../node_modules/zod/lib/helpers/parseutil.d.ts","../../../node_modules/zod/lib/helpers/enumutil.d.ts","../../../node_modules/zod/lib/helpers/errorutil.d.ts","../../../node_modules/zod/lib/helpers/partialutil.d.ts","../../../node_modules/zod/lib/types.d.ts","../../../node_modules/zod/lib/external.d.ts","../../../node_modules/zod/lib/index.d.ts","../../../node_modules/zod/index.d.ts","../../common/src/types.ts","../../common/src/streams.ts","../../common/src/index.ts","../../../node_modules/@ipld/car/types/lib/reader-browser.d.ts","../../../node_modules/@ipld/car/types/lib/reader.d.ts","../src/blockstore/ipld-store.ts","../src/blockstore/memory-blockstore.ts","../src/blockstore/index.ts","../../../node_modules/@ipld/car/types/lib/indexer.d.ts","../../../node_modules/@ipld/car/types/lib/iterator.d.ts","../../../node_modules/@ipld/car/types/lib/indexed-reader.d.ts","../../../node_modules/@ipld/car/types/car.d.ts","../../../node_modules/@ucans/core/dist/types/plugins.d.ts","../../../node_modules/@ucans/core/dist/types/capability/super-user.d.ts","../../../node_modules/@ucans/core/dist/types/capability/ability.d.ts","../../../node_modules/@ucans/core/dist/types/capability/resource-pointer.d.ts","../../../node_modules/@ucans/core/dist/types/capability/index.d.ts","../../../node_modules/@ucans/core/dist/types/semver.d.ts","../../../node_modules/multiformats/types/src/bases/base.d.ts","../../../node_modules/uint8arrays/types/src/util/bases.d.ts","../../../node_modules/@ucans/core/dist/types/attenuation.d.ts","../../../node_modules/@ucans/core/dist/types/types.d.ts","../../../node_modules/@ucans/core/dist/types/token.d.ts","../../../node_modules/@ucans/core/dist/types/verify.d.ts","../../../node_modules/@ucans/core/dist/types/builder.d.ts","../../../node_modules/@ucans/core/dist/types/store.d.ts","../../../node_modules/@ucans/core/dist/types/util.d.ts","../../../node_modules/@ucans/core/dist/types/index.d.ts","../../../node_modules/one-webcrypto/index.d.ts","../../../node_modules/uint8arrays/types/src/compare.d.ts","../../../node_modules/uint8arrays/types/src/concat.d.ts","../../../node_modules/uint8arrays/types/src/equals.d.ts","../../../node_modules/uint8arrays/types/src/from-string.d.ts","../../../node_modules/uint8arrays/types/src/to-string.d.ts","../../../node_modules/uint8arrays/types/src/xor.d.ts","../../../node_modules/uint8arrays/types/src/index.d.ts","../../crypto/src/random.ts","../../crypto/src/aes.ts","../../crypto/src/const.ts","../../../node_modules/big-integer/biginteger.d.ts","../../crypto/src/p256/encoding.ts","../../../node_modules/@noble/secp256k1/lib/index.d.ts","../../crypto/src/secp256k1/encoding.ts","../../crypto/src/p256/operations.ts","../../crypto/src/p256/plugin.ts","../../crypto/src/secp256k1/operations.ts","../../crypto/src/secp256k1/plugin.ts","../../crypto/src/plugins.ts","../../crypto/src/did.ts","../../crypto/src/multibase.ts","../../crypto/src/sha.ts","../../crypto/src/verify.ts","../../crypto/src/p256/keypair.ts","../../crypto/src/secp256k1/keypair.ts","../../crypto/src/index.ts","../../auth/src/plugins.ts","../../auth/src/signatures.ts","../../auth/src/atp-semantics.ts","../../auth/src/atp-capabilities.ts","../../auth/src/verify.ts","../../auth/src/consts.ts","../../auth/src/types.ts","../../auth/src/auth-store.ts","../../../node_modules/did-resolver/lib/resolver.d.ts","../../did-resolver/node_modules/axios/index.d.ts","../../did-resolver/src/errors.ts","../../did-resolver/src/web-resolver.ts","../../did-resolver/src/plc-resolver.ts","../../did-resolver/src/atp-did.ts","../../did-resolver/src/logger.ts","../../did-resolver/src/resolver.ts","../../did-resolver/src/index.ts","../../auth/src/verifier.ts","../../auth/src/index.ts","../src/util.ts","../src/mst/diff.ts","../src/mst/util.ts","../src/mst/walker.ts","../src/mst/mst.ts","../src/mst/index.ts","../src/types.ts","../src/logger.ts","../src/repo.ts","../src/storage/types.ts","../src/storage/index.ts","../src/verify.ts","../src/index.ts","../src/sync.ts","../../../node_modules/@babel/types/lib/index.d.ts","../../../node_modules/@types/babel__generator/index.d.ts","../../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../../node_modules/@types/babel__template/index.d.ts","../../../node_modules/@types/babel__traverse/index.d.ts","../../../node_modules/@types/babel__core/index.d.ts","../../../node_modules/@types/bn.js/index.d.ts","../../../node_modules/@types/connect/index.d.ts","../../../node_modules/@types/body-parser/index.d.ts","../../../node_modules/@types/cors/index.d.ts","../../../node_modules/@types/elliptic/index.d.ts","../../../node_modules/@types/range-parser/index.d.ts","../../../node_modules/@types/qs/index.d.ts","../../../node_modules/@types/express-serve-static-core/index.d.ts","../../../node_modules/@types/mime/mime.d.ts","../../../node_modules/@types/mime/index.d.ts","../../../node_modules/@types/serve-static/index.d.ts","../../../node_modules/@types/express/index.d.ts","../../../node_modules/@types/graceful-fs/index.d.ts","../../../node_modules/@types/http-errors/index.d.ts","../../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../node_modules/@types/istanbul-lib-report/index.d.ts","../../../node_modules/@types/istanbul-reports/index.d.ts","../../../node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/chalk/index.d.ts","../../../node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/expect/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../../node_modules/@types/jsonwebtoken/index.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/minimist/index.d.ts","../../../node_modules/@types/nodemailer/lib/dkim/index.d.ts","../../../node_modules/@types/nodemailer/lib/mailer/mail-message.d.ts","../../../node_modules/@types/nodemailer/lib/xoauth2/index.d.ts","../../../node_modules/@types/nodemailer/lib/mailer/index.d.ts","../../../node_modules/@types/nodemailer/lib/mime-node/index.d.ts","../../../node_modules/@types/nodemailer/lib/smtp-connection/index.d.ts","../../../node_modules/@types/nodemailer/lib/shared/index.d.ts","../../../node_modules/@types/nodemailer/lib/json-transport/index.d.ts","../../../node_modules/@types/nodemailer/lib/sendmail-transport/index.d.ts","../../../node_modules/@types/nodemailer/lib/ses-transport/index.d.ts","../../../node_modules/@types/nodemailer/lib/smtp-pool/index.d.ts","../../../node_modules/@types/nodemailer/lib/smtp-transport/index.d.ts","../../../node_modules/@types/nodemailer/lib/stream-transport/index.d.ts","../../../node_modules/@types/nodemailer/index.d.ts","../../../node_modules/@types/normalize-package-data/index.d.ts","../../../node_modules/@types/parse-json/index.d.ts","../../../node_modules/pg-types/index.d.ts","../../../node_modules/pg-protocol/dist/messages.d.ts","../../../node_modules/pg-protocol/dist/serializer.d.ts","../../../node_modules/pg-protocol/dist/parser.d.ts","../../../node_modules/pg-protocol/dist/index.d.ts","../../../node_modules/@types/pg/index.d.ts","../../../node_modules/@types/prettier/index.d.ts","../../../node_modules/@types/sharp/index.d.ts","../../../node_modules/@types/stack-utils/index.d.ts","../../../node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/@types/yargs/index.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../node_modules/multiformats/types/src/bases/interface.d.ts","../node_modules/multiformats/types/src/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"9b087de7268e4efc5f215347a62656663933d63c0b1d7b624913240367b999ea","affectsGlobalScope":true},{"version":"3260e3386d9535b804205bdddb5618a9a27735bd22927f48ad54363abcd23d45","affectsGlobalScope":true},{"version":"adb09ec0a64fc17dbbc4a228b3b18aa5f01db3440a6b0cbb02354df58674d584","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"930446bf32192f698b78f8ea4b309d8c2cfe02ab5ad78e4db907417405ebf5e7","5d3e07dbeabff37885262d9b4bd21c3185d95a09a268ab795f81135046a32bf4","7d309fbde13b5e30eff77c07a28b66451b0b50b83564d0cfa6a2a52c8b69aae6","853c5447ea8851049c1d008e130d23030d9fe3b5a8405a0ae7e55b00e173692d","ba0b552579e1bbafd93208f9bc84a61838148bd17f22a8ea55c46eea9c895e7a","87b44430497cae7542bbd5ac2fb6663df6a465dea7a46be58a49cd9416530439","32b67d761db3999f1e482d0add405b695d3ec5607e07ae4c963a96334c331814","1428847d803b8342711c0b22208df4f83590cce15ef2c8f36ba53cea24f4616d",{"version":"f003ef20527fb3c92b5e079f38bfe74b352560f28dafad3c719632a7b8c14479","signature":"2f1b2df4cfc93709cfb32ff94a3b1ba48c20b0cde6458342be96062473a4fae5"},"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"02873d070f9cb79f50833fbf4a9a27ac578a2edf8ddb8421eba1b37faba83bfb","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"c0db280fa6b09d7b8d6720a19a47f485956a41ee0e6914f1b704033eb69c6058","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","afcc1c426b76db7ec80e563d4fb0ba9e6bcc6e63c2d7e9342e649dc56d26347f","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","489532ff54b714f0e0939947a1c560e516d3ae93d51d639ab02e907a0e950114","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","b01a80007e448d035a16c74b5c95a5405b2e81b12fabcf18b75aa9eb9ef28990","04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","dbe5aa5a5dd8bd1c6a8d11b1310c3f0cdabaacc78a37b394a8c7b14faeb5fb84","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"d4ac44f01d42f541631c5fc88d0ed8efac29a3a3ad9a745d9fd58f8b61ed132e","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","3163f47436da41706c6e2b3c1511f3b7cce9f9f3905b2f3e01246c48b4ba7d14","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","213fc4f2b172d8beb74b77d7c1b41488d67348066d185e4263470cbb010cd6e8",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"f7db71191aa7aac5d6bc927ed6e7075c2763d22c7238227ec0c63c8cf5cb6a8b","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"652ee9c5103e89102d87bc20d167a02a0e3e5e53665674466c8cfea8a9e418c7","30d9b4052cd71f8f90cc5d3205950539d27f49803676ec13d4e5b1dd58733c2f","a6006cdf560a2b722ca2943c7ba5429eb2b61389dc89889315d77c5980b1b3a1","e000fe1ac81a9dd7ed058ee62fc4b8d523b71122cb144045d05630bf751c75ee","75aa316561ed73fbc9679e62f4e3cfc3285e1dd04637016ce3990e5fe13957f3","cb917ce33e6748b02f26f78b00838a77eb5aeedb63914cc60ff74d4d46fe0d2a","f14b59e2caa9ae4d7443b0960ca463bc03dd23c219d3690b57b05d7e3275d1e7","a4c7f74586dafdf53d17e7b022bec236b43c3a52aef698db104ea45faab2af72","6bea75e2b9873f7c123ffef3edf16e7c49ff7cefd2756543d51786fb354c3211","ebb7adfc90de5d2001075bfc4b8e2530c7649d1cd219d75589b45cba22d06782","7b684ae75736b26fddc21144deda04c3ae391f95f8eb241ceb23b27096f76963","2f686fbec43c87bc9b9c3d0e237f780e0e822d2c3a9a25fc99a16030a294b764","2cb05bc199aa0aedcedced658aa99b423c2f7e56f11bd301adb6415e8c464696","52aa4cb8a16a1632f7e48beb792744ee02c90c6dbbc1d0cafcf2c9bd7936f2ed","0d47fc0aed3e69968b3e168c4f2afba7f02fe81b7d40f34c5fbe4c8ed14222ac","955081e7442259cc2cbf0f7f122bc2fa10387c3c5298a8bd4cd402dbcefce4cf","043e933c8127f2215f940035bfac94354b82a49f419bb77af0045f0c57e6a05e","9d9f4da63084ac107eddda8b4ea92d7ee443e0c86601e8c844943b82fd3ef6f8","bde15a4b72e85c0816548fe37f82ae6fe9a6238e5b60ebe9a9449f9293e2d456","dacf98eb56a73c300285659e07ecc8ca9289c99a506e94ad9685d4728cc1561a","9afae14803f3b7343ed6d193173008715c1fa3421a353a818c805244ed737a84","bb98c05ae5cb9bd7cb7ad76fe517251a661787a6f24337b842f47faf393f79c7","a93bf95f7009c90e7d1edb092560d4052e3ebbe9b9ad2d796bcd95dc4306825c","8485b6da53ec35637d072e516631d25dae53984500de70a6989058f24354666f","ebe80346928736532e4a822154eb77f57ef3389dbe2b3ba4e571366a15448ef2","c2cb3c8ff388781258ea9ddbcd8a947f751bddd6886e1d3b3ea09ddaa895df80","f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","014b34d4c2ef27191fdf3feabb6557ec92127f813910725b6e79ed9a49e466b6","72efc3e8cee3cb13144cb63bb8aacf28f918439a2ff222de89e0e5d7ba9c7170","b61efb129c7011068cb4ccbbd86d5741ac82653476b09f46d3d06dd99b5b687e","2b7961486503fa279a4f1a52928d8c31fc6558c335b750878721467210552dd7","d1f62988c7e8e8650f7ed39520a766648155abbf75dd89f60e24f069433301d4","5568d7c32e5cf5f35e092649f4e5e168c3114c800b1d7545b7ae5e0415704802","ae7ec9add53f145824f5e169d2c798b3507bebd9326eb3709036a868d2144db6","b97b3071f36975c893f9dd28a0d113482891fd402d3ac787bded362d7d35af67","1953fb9bcb47ec55e148a074c8cf5a5f960560a16733638b3ad9617263b47e17","5ad9fe68a14e80eb7c761ee5c22a1aaedf37e1109cff3e49eee2da4f75e38a50","3e434e0f832573b4e40417408a7f82a3aca2a651912626986828bcfcb3f4aab5",{"version":"a0c87b77bcb0f4c0384608e2b89e81d1ee2ef77532df8e3e0cc25ea099e9c5d2","signature":"e2ed9e9d2aa578c7391a54fe15706dfe03d88259dd42f0718f2e76ca847f66c3"},{"version":"5ab23cb50ddb897e760d8b6c966299a2afc9dd890cba46356eeb42989c2325ef","signature":"bbeb34faa46b2fe4d31d39af90ac11cf1ae0edbaccd6ef6ca644dae21abfec6c"},{"version":"c4b3637474f36a50b38464e2bf73111d7d8772f4a4eeb4b5574b48620b809c32","signature":"74be0b03d97b320aaed4822e02fc9fe731421e9ace22291e96e82b923492e9e0"},"292345ac37355c5c8a5295d4addb9abda0d749696d1c7aa2e587e36e69c9e1a7","3babf813b1f9334fd4067cdf88217e40fa3108f4714d55a8d340f0f7b4756ca5","10f148c0056069ef3cc97098824c0d8beb97e0fab477f45ed6b9c2cbce5c8004","38de5874fcbbc25c56c680329c40d00cbc6170719257a1c6c8d6f5f1d9532984","121af4f79ad3fbfaab73691f49993c8fe7cbde1070ccf89437f3ba55a48ed6b2","cdbadf00293a858195c3dcfaaf2b961569a3f027718f35020ce3ac8fdd41b8b1","71f362fdc93d1353f8b3f0fd4e4f57ccdd981ee14b283c863803b4870c0fc025","e4442df4980530388fec1176eb3428edb97d7cf25c2e32b3d90873bf6df77068","67e6016a03261e460b9d09b49e6ae948cefdb3a537efc4addd7b6a4e95868908","22b4fa161da217c21e187936b3cbc50c4e96e0bc948e0b3be47d6b7ae167f1a8","729b819a6779d842c3a6908ba4ed93d9fe50e2533d989f05f55a4811b3dd9910","e47d9ea931ddade1deee3946884e8dc7aafbf4af74f9ecb85ef77c895100bd39","1eae169dd0e79a18f4619b215f47ef7aa153fe12ab6d9f5a23f35ffa02fb1bc9","1af7c4b2383db57a24454a4a5b8ec3804322d3f51c2e564ded379813e9c32a9a","de71b3e44a3638cef985a877c15568389a8883380f17e817b1290f1276ec4534","091a86032c6979b663b4f8321526e7aece845ae9e74507973eb4163f827f9101","4431cf4410d8ce7167cae0437f9d414b204e4bc516272ef958a0c1b4506c0c34","b999ceba7b16e9bc59d649b2d8c0c7c2c0b483d5b8fb537096109b33f55d2e78","2c795056013d90c0dd01d5b4e33df6c5cc9799abfe2753e6edf438849a61b2d8","e68dc51e279de76cbf4e7590e05de0ca65071479cc88809bad9c0d35a3b2583c","59a8559f80757b01df8020ff87833a5c2ad6c59e894eddd49cc97622dbef465f","90cf3b12cd05d01c42193be1cd25af2c8dbef608ae143e5eaacf73cdb99840d2","4e37a214f2cd5a350affba5580d1d7c01ca83da6393ef2c13a66d74fc7b95eac","3157fa89ebde7e5d5499da49d8ae13e523c1de12d5c1285251c17b7672887b1e","0841c3aed9354ad025302d5c7cde53916825047646e559d918b62a31500aebe7","7c515715da56f17e695e2c3611cf073d2cebfd417497652b35f9042b7235d5b2","a4942fc385f0368be5a50d7e7280c5c6ad47b082a9eaa0284042c89ce2df9e08","91072b0ddd41ce84a3c85f36cf927f2e7b1724f7ce71accf16715d99bafc113a","cb27a790684e806760b7beb581ef3edff3a77297f64af026603806f6918ff1e4","d7aed3509ea44d62d69f3f3ec8585d6eeaa566d850cc5d0f10c469f81a263696","b86a270598e5424a18bffef7ceadb47d90cba86f0c38e9dfe830cee5b3bc86ec","0656964e2e4e36418ad53e23aebdaa2ee3c4311a8c6ef94db68ee3ecbafd0227","6815c0bc452def44dde51380d4469e8e74a28c4eea685f32c8e9e5f6436e2809","32d21255d0e9e84cf7ec2b6619667f272dd2bf24ab65da803fd0550d978d207e","0fdc843a9a032a1e06dee90d94a488b79de13bb5c56e2f7f842c1f07d257a7a4","68ff080d443d7c071d8e98bc0c2a2b7da93a001134e2c828bd629348e817bf7e","81360552fcba984ebc4282ba26d3f954e3b6f78ca5e4b5b18b37ba2f4f2ad26f","e2f57308de18bd25a5592fc9a053bce9c310cac2d6aa5b987379c677eecce8c1","7c5ca8f3cdf144e34fc2883aa41cf917851aa2fa8b48956304d85ebbc94f95cf","dba391c789c85b1d249eb24656e6524d1a0b9a203dca53848365db60a7fcc1fa","2b1c6ff010741ea7928a30985fac52dde420004c4de5b4e123c80db59305811c","1067fc5c43383e77af47043ef8c1591b16e0cae0246a0df3c996d4e49e2e871b","74ded0a999b6ee4086ef522b2d21e284f371fdad35c8854552cac8373be9917f","ec8d395c7bd2429646d7bbcefbed1e41bcc4c1593ae414881c93a7168c1657d5","c83579aa7675e2f5fc8fc165c2f388a7cb5d28671505700bdd21e00bf86a91be","4ee7bc8cc4fa77895dd67116799d817669fbd64b7717964a79249edbda00d040","114264aec122d0eae64a1ddba9437cb1bc1d78b774f3a92c0d0f1422e9fea9e1","9ca19b8c1e93f76340572a13d173ca18e07672cab0be109fa5d3766b99a8ddf7","c9ce5a0c6196627d1fb4d868519130d8c48f2cd640403b53e8779634145e2da3","e7edc284c6253f3c458419cfe2d061c0cb862bfde6dcf980d9afb119e7d94e61","fdea5bf281acea7c18cc7ac70b739c94ca417bc78299a25e1e127cb271d9d8c2","f5df2d7bb8ba396c4541efb694210ee907b91e457439472cd018017577139e5d","c0ef44088e1825f74d7ea0e3dd348bc456c79797c524ef4c6c5c35ca8bfc26d2","9b569fe33c25fc0aecf61458df094e783fd6154b53434543eded78793481a935","9ca75469965a919b1706172af20ea73cd983d43e9d31d1f0407fb338be451d1d","899ae98cd217a34bd53b8aefbd51599610165cd27462ece4f7f46508cb8aeda1","644c59289eb29590d65062c5b64dda9ef2797ce120071265a9099436f0d41a16","b17f361e1df7932937364f06c135faf3fd2486a4467071004fba83378afa6ffb","79039d021ac053ee6cd6cf06f035333b16e048f298d007402fd4cec10d22a697","d3dad5da531330438c0161f40466b2f709b204a7335013e106cf1b125e79d389","b7a9196d4305ff728c0122bcb9bbf842269bfab11b52a4e511bf2695f913e9c4","25612592421667faa6b09e01471026d56f5385d13c085432570731d7d8805f69","30104c99ee146450e7d75d02f283e2dd9aa9c896e44508066323b471f68626b5","9da2a621f41ee9efbe4dcb05864c0caa75e2288dfeab5747d52651e93cf0bdca","52e566f3f59cd3789bdabd85e27d4e77f8d5217e4de81330ff4fcfee633dc51d","e6a03b6ffb9e37b1c43aed39a5abf9d370dfbe4bd3935be4d6223243cf96cc9e",{"version":"f0e98338d35efae77834d2495d02cdf23cf560810dec285f15ceba679ca3cd8d","signature":"8f94746ec3ae9331d6e7c42bfd39f6c6755c2227973a82372ed0906b1043ed19"},{"version":"96e079a03d7865e72f1ffd9c13eb9a2f662ef2500cf0bc28b349ef37443e1516","signature":"d74c31a3bce89b36d13ed6381d3a06884523fa486e61490d54d5e3ae1878818e"},{"version":"cbef53d2d977be9f1e99e48029f89f75aba1044e7ef96ea9f6eb588d2e99436c","signature":"915a8efb2b22ff0ae1aaa2253f8a77ffd0517586dbf83fa3646d16c1ef870c60"},{"version":"b6056a5b387d97fde02c6082d0404fc75a0703df32402138d641148e38f61819","signature":"3e436c6eabd877ce317a1d70a4c5f89608a8442a21be9063081e11b35f2e308b"},{"version":"a706e57e3e8508bc12ea5b9caf417cdb7152707b529e56083360a0a78d7d7177","signature":"65f6de3474751505e5d5987c455e9d4f7b591c7a9ce09affd96ac7f7ee14e8d7"},{"version":"bd419cdb3ee43aa8858080f0730d05c91745a440d6b80eb802b31ac04ef7a624","signature":"daf02811f0fe444cdfc78618b80d280d1ab43dcb21dd2d2f081eeaea5a0c7870"},{"version":"15d74d5878804c320663d79484a5332bf1c9147f094102787133e389676e6ddf","signature":"10a521696580ea5bbe5790d021c5b55f3268c9e6003aa59ef732ed092cb979a6"},{"version":"046e4a93ed85a529216936f87c551bfce05c2d87e32cf6dd786def95f9fc83e4","signature":"25d0df9893c6c7f0421353081826302fdd9d0fe32880e50cdbf20c868b8ade89"},{"version":"f34e7958a5a01c5c23d401efd30eab232007e7b7bbd3d72271b0036d5cfdbfb7","signature":"649052e804b3c2115e7849174c394afa8f9b668114e63e798128264778506e51"},{"version":"b8bbdefb9bc9bc52a3e520ad9e6afd0054f918f7bad5e0ceb356a7eef0a8200c","signature":"9ca4a994576d16f6546785b0b3f1d03a9a950c0b9ebc81c449accc292c168e7e"},{"version":"908a84aef7827422ff7c8623c661bcf2bcb0cb7a30aea39e82a79bbc09042ef6","signature":"d5c19655468e29f60c871b21e73af8ebc653f736e7123ade916f22c4a5f80ce5"},{"version":"bc6587d421c560babc2b3209f34f401cf636757e09826b8a0edd39171a6e0da5","signature":"6d58d7d3fddb80c7fe1bd2fe61d37eb97dbb5cce511198070619d566e50085f5"},{"version":"54962a6927e95989916b0973ff5d576c39b096aea5c533a9de19f4518c46dbc4","signature":"76ced66517e3734dcc0f0fc6a6c505c2b8cead129eea3acacfd5cf938f318c04"},{"version":"565d8deafad9dec029fd591e9403c292e3b3a705d9462b9a5a6a812b538e6191","signature":"20bba7be61a51f66bf0224589b2a23daef222571143cf807fb9be4fd277886cf"},"c561efdf5ba0b62619745d4761fe2d9756f23db972e039367d15922fed67fd2f","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","7ec238b220ea991b6643e24191b1f552a65956d5f6de4c6144e700b9985265d8","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","dae3d1adc67ac3dbd1cd471889301339ec439837b5df565982345be20c8fca9a","5426e62886b7be7806312d31a00e8f7dccd6fe63ba9bbefe99ee2eab29cc48a3","01f7828047b5c6703d3c601473618b448f5506a88fcac852638b0715c3abf4eb","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90","6fbd58e4015b9ae31ea977d4d549eb24a1102cc798b57ec5d70868b542c06612","b8a427b9fe88504a6fb092e21adfe272d144394a2ced7f9e4adc3de7efa6e216","16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",{"version":"ae3fe461989bbd951344efc1f1fe932360ce7392e6126bdb225a82a1bbaf15ee","affectsGlobalScope":true},"5b9ecf7da4d71cf3832dbb8336150fa924631811f488ad4690c2dfec2b4fb1d7","951c85f75aac041dddbedfedf565886a7b494e29ec1532e2a9b4a6180560b50e","f47887b61c6cf2f48746980390d6cb5b8013518951d912cfb37fe748071942be","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","f463d61cf39c3a6a5f96cdf7adfdb72a0b1d663f7b5d5b6dd042adba835430c2","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","763e521cf114b80e0dd0e21ca49b9f8ae62e8999555a5e7bade8ce36b33001c2","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","3e6bbb0883148627ca0854a9f62d820aaf1a0f1842f5568176721fef156b8f23","ffcc5500e77223169833fc6eb59b3a507944a1f89574e0a1276b0ea7fc22c4a4","22f13de9e2fe5f0f4724797abd3d34a1cdd6e47ef81fc4933fea3b8bf4ad524b","e3ba509d3dce019b3190ceb2f3fc88e2610ab717122dabd91a9efaa37804040d","cda0cb09b995489b7f4c57f168cd31b83dcbaa7aad49612734fb3c9c73f6e4f2","f72f8428f3c1caa22e9c247d046603b85b442c0dae7b77a7a0bc092c18867cb7",{"version":"195f63105abc03e72b6a176e3e34dfb5ac932b55db378fdc7874b1617e24b465","affectsGlobalScope":true},"f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","bb4ed283cfb3db7ec1d4bb79c37f5e96d39b340f1f4de995c4b0b836c8d5fa05","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","bb654d426b82e0846cd4bd7de91d637039ecdfd63c94447373490178f80846fe","db90f54098b237753ac9c846e39cd49aa538dcad07a2e1c68a138f3c0f8e621d","92ad68795c32309fb43576cacb38bd2677deeed38f5730dcd4a8c5e65463ae15","4b16417aab5a4b276fd4a7db95120a8c7b4d49a6d68ddfe075e9f46dcbf22f00","eecb2ea10a1500dcc6bdeff14be1fb43806f63a9b8562e16e1b4fc8baa8dfa8d","221a6ab66d611349faaf80af49c7a34d95623787610fd153fed4da0811abdcae","f3d84d6f83cf131e4db335dc8100898adbeb01dd4cf4e2fe695ab220eac98be4","6521aaade4e1d23cbc4b665083b004aeaca23f3347ba2422f88d1828968a0056","e79130cf2ba010f2b79747bf43b086252ad041b130768331a1144c0a86185877","e9709ed827c40789c669736fc78e2ab603605e8e81325d1e6d7a5eb451810dd0","dafce7a7b279977940b6b4b50017625e4f922f73094433d2875994bdc0b27e87","6fc76efbb61d3336833ef44ff3f37552667f26c2a73b368f3b4b259f19f2c234","479496e5bb48f2f5e981ef646665bc09fd9ab080e86e9ea882ca4369411604af","6c559dee3c6251c261b67df08e01d4cbc89cbd7a63300150c636705733cebfff","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","f60e3e3060207ac982da13363181fd7ee4beecc19a7c569f0d6bb034331066c2","17230b34bb564a3a2e36f9d3985372ccab4ad1722df2c43f7c5c2b553f68e5db","87ed0f84f0691d5c724b23159db96342e6b04ac69201b02c65936f4281ce1fbe","13868c5792808236b17dfe2803eafce911ea4d09d3b2fda95391891a494f988f","0dfe35191a04e8f9dc7caeb9f52f2ee07402736563d12cbccd15fb5f31ac877f","fa5c2d3fcd8e227e180815df0a0903ed4b116400452af8a75ac5b68e5e1de9da","93c4fc5b5237c09bc9ed65cb8f0dc1d89034406ab40500b89701341994897142","9adb78bae51a473d33f40da9bdb50c0e491d1cc7a5db776665853effa0cd3374","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","28288f5e5f8b7b895ed2abe6359c1da3e0d14a64b5aef985071285671f347c01"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":1,"module":1,"noImplicitAny":false,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"strictPropertyInitialization":false,"target":7},"fileIdsList":[[112,240],[112],[59,112],[112,123,156,160,161,162],[59,112,120],[59,83,112,119,120,155],[64,112,120,121],[83,112,119,120,155],[59,112,120,121],[59,83,112,119,120,122],[112,127],[112,265],[112,240,241,242,243,244],[112,240,242],[112,119],[85,112,119,247],[85,112,119],[85,112],[112,246],[82,85,112,119,251,252],[112,248,252,253,256],[83,112,119],[112,260],[112,261],[112,267,270],[112,254],[112,255],[66,112],[69,112],[70,75,103,112],[71,82,83,90,100,111,112],[71,72,82,90,112],[73,112],[74,75,83,91,112],[75,100,108,112],[76,78,82,90,112],[77,112],[78,79,112],[82,112],[80,82,112],[82,83,84,100,111,112],[82,83,84,97,100,103,112],[112,116],[85,90,100,111,112],[82,83,85,86,90,100,108,111,112],[85,87,100,108,111,112],[66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118],[82,88,112],[89,111,112],[78,82,90,100,112],[91,112],[92,112],[69,93,112],[94,110,112,116],[95,112],[96,112],[82,97,98,112],[97,99,112,114],[70,82,100,101,102,103,112],[70,100,102,112],[100,101,112],[103,112],[104,112],[82,106,107,112],[106,107,112],[75,90,100,108,112],[109,112],[90,110,112],[70,85,96,111,112],[75,112],[100,112,113],[112,114],[112,115],[70,75,82,84,93,100,111,112,114,116],[100,112,117],[112,119,277,279,283,284,285,286,287,288],[100,112,119],[82,112,119,277,279,280,282,289],[82,90,100,111,112,119,276,277,278,280,281,282,289],[100,112,119,279,280],[100,112,119,279,281],[112,119,277,279,280,282,289],[100,112,119,281],[82,90,100,108,112,119,278,280,282],[82,112,119,277,279,280,281,282,289],[82,100,112,119,277,278,279,280,281,282,289],[82,100,112,119,277,279,280,282,289],[85,100,112,119,282],[82,100,108,112,119,292,293,296,297],[85,112,119,255],[112,301],[112,164,165,166,167,168,173],[112,164,173],[112,165],[112,165,166,167],[112,164,166,167,168,172,173,174,175,176,177,178],[112,164,172,173],[112,164,168,173],[112,168,169,171,172],[112,164,168,172,173],[112,263,269],[112,267],[112,264,268],[57,112],[58,64,112,127],[57,58,112],[58,112],[58,60,112],[61,112],[59,60,61,62,63,112],[112,119,293,294,295],[100,112,119,293],[100,112,119,133,137],[82,112,116,134,135,136],[112,266],[82,112,119],[112,171],[112,181,182,183,184,185,186],[57,112,170],[112,150],[112,141,142],[112,139,140,141,143,144,148],[112,140,141],[112,149],[112,141],[112,139,140,141,144,145,146,147],[112,139,140,150],[112,179,209],[112,179],[112,179,207,209,210,212,213],[112,179,206,207,208,209,210,211,213,214,224],[112,179,187],[112,179,206,207,208,211,214,223],[112,179,207,209,210],[59,64,112,128,129,130,131],[112,124,125,126,132,138,152,153],[112,137],[100,112],[112,125],[59,112,151],[112,180,187,188],[112,187,190,192,194,199],[112,179,188,189,190,196,198,200,201,202,203,204,205],[112,187],[112,187,191],[112,179,180,187,190,195,200],[112,180,190,200],[112,179,190,195],[112,196,198],[112,180,185,187],[112,193],[112,179,187,190,193,200],[112,190,193,200],[112,179,190,197],[75,100,112,130,187],[112,199,200],[112,206,215],[112,215],[112,218,219,220,222],[112,154],[112,215,216,217],[112,215,218,219,220,221],[112,157,158],[59,65,112,120,123,154,156],[59,112,157],[64,112],[112,159,226,231,232,234,236,237],[64,65,112,225,226],[112,227,228,229,230],[64,112,120,151,154,157,227,228,229,232],[64,112,154,157,187,206,230],[112,230],[59,112,123,154,157,163,225,226,231,232,233],[112,235],[59,100,112],[112,159,225,231,234,237],[64,112,123,151,154,231],[59,112,159,225,231,232,234],[59,112,159,225,226,231,232,234],[240],[127],[265],[303],[240,241,242,243,244],[240,242],[303,304],[247,304,305],[304,305],[305],[246,303],[251,252,304,305,306],[248,252,253,256],[304,307],[260],[261],[267,270],[304],[254],[255],[277,279,283,284,285,286,287,288,304],[304,308],[277,279,280,282,289,304,306],[276,277,278,280,281,282,289,304,306,308,309,310],[279,280,304,308],[279,281,304,308],[277,279,280,282,289,304],[281,304,308],[278,280,282,304,306,308,309,311],[277,279,280,281,282,289,304,306],[277,278,279,280,281,282,289,304,306,308],[277,279,280,282,289,304,306,308],[282,304,305,308],[292,293,296,297,304,306,308,311],[255,304,305],[301],[263,269],[267],[264,268],[293,294,295,304],[293,304,308],[133,137,304,308],[134,135,136,306,312],[266],[304,306],[171],[181,182,183,184,185,186],[170,313],[150],[141,142],[139,140,141,143,144,148],[140,141],[149],[141],[139,140,141,144,145,146,147],[139,140,150],[137],[125],[180,187,188],[187,190,192,194,199],[187],[187,191,303],[180,190,200],[196,198,303],[180,185,187],[193,303],[190,193,200],[157,158],[59,65,120,123,154],[59,157],[314],[159,226,231,232,234,236,237],[64,65,225],[227,228,229,230],[64,120,151,157,227,232],[64,157,230],[230],[59,123,157,225,232],[235],[59,100],[159,225,231,234],[64,123,151,231],[59,159,225,231,232],[59,159,225,231]],"referencedMap":[[242,1],[240,2],[120,3],[163,4],[121,5],[162,6],[160,7],[161,7],[155,7],[156,8],[122,9],[123,10],[131,11],[263,2],[266,12],[193,2],[265,2],[245,13],[241,1],[243,14],[244,1],[246,15],[248,16],[247,17],[249,18],[250,19],[253,20],[257,21],[258,22],[259,2],[260,2],[261,23],[262,24],[271,25],[272,2],[273,15],[255,26],[254,27],[274,2],[275,2],[66,28],[67,28],[69,29],[70,30],[71,31],[72,32],[73,33],[74,34],[75,35],[76,36],[77,37],[78,38],[79,38],[81,39],[80,40],[82,39],[83,41],[84,42],[68,43],[118,2],[85,44],[86,45],[87,46],[119,47],[88,48],[89,49],[90,50],[91,51],[92,52],[93,53],[94,54],[95,55],[96,56],[97,57],[98,57],[99,58],[100,59],[102,60],[101,61],[103,62],[104,63],[105,2],[106,64],[107,65],[108,66],[109,67],[110,68],[111,69],[112,70],[113,71],[114,72],[115,73],[116,74],[117,75],[289,76],[276,77],[283,78],[279,79],[277,80],[280,81],[284,82],[285,78],[282,83],[281,84],[286,85],[287,86],[288,87],[278,88],[290,2],[291,2],[297,89],[298,2],[252,2],[251,2],[256,90],[299,77],[300,2],[301,2],[302,91],[172,92],[176,93],[166,94],[168,95],[167,94],[165,2],[179,96],[164,2],[169,2],[177,97],[174,98],[173,99],[178,2],[175,100],[191,2],[264,2],[215,2],[270,101],[268,102],[269,103],[170,104],[57,2],[128,105],[63,2],[59,106],[127,2],[129,11],[60,107],[61,108],[58,2],[130,109],[64,110],[62,2],[180,2],[296,111],[293,15],[295,112],[294,15],[292,2],[133,77],[134,113],[135,17],[137,114],[267,115],[136,116],[11,2],[12,2],[15,2],[14,2],[2,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[23,2],[3,2],[4,2],[27,2],[24,2],[25,2],[26,2],[28,2],[29,2],[30,2],[5,2],[31,2],[32,2],[33,2],[34,2],[6,2],[35,2],[36,2],[37,2],[38,2],[7,2],[39,2],[44,2],[45,2],[40,2],[41,2],[42,2],[43,2],[8,2],[49,2],[46,2],[47,2],[48,2],[50,2],[9,2],[51,2],[52,2],[53,2],[54,2],[55,2],[1,2],[10,2],[56,2],[13,2],[181,2],[182,2],[183,2],[184,117],[187,118],[185,117],[171,119],[186,2],[151,120],[143,121],[149,122],[145,2],[146,2],[144,123],[147,120],[139,2],[140,2],[150,124],[142,125],[148,126],[141,127],[210,128],[209,129],[214,130],[212,2],[225,131],[207,129],[208,132],[213,129],[224,133],[211,134],[132,135],[124,2],[154,136],[138,137],[153,138],[126,139],[152,140],[125,2],[189,141],[190,2],[200,142],[206,143],[201,144],[192,145],[204,146],[195,147],[196,148],[199,149],[188,150],[194,151],[205,152],[197,153],[198,154],[202,155],[203,156],[216,2],[220,157],[217,158],[223,159],[221,160],[219,161],[222,162],[218,161],[159,163],[157,164],[158,165],[65,166],[238,167],[233,160],[227,168],[231,169],[230,170],[228,171],[229,172],[234,173],[236,174],[235,175],[239,176],[232,177],[226,178],[237,179]],"exportedModulesMap":[[242,180],[120,3],[163,4],[121,5],[162,6],[160,7],[161,7],[155,7],[156,8],[122,9],[123,10],[131,181],[266,182],[193,183],[245,184],[241,180],[243,185],[244,180],[246,186],[248,187],[247,188],[249,189],[250,190],[253,191],[257,192],[258,193],[261,194],[262,195],[271,196],[273,197],[255,198],[254,199],[66,28],[67,28],[69,29],[70,30],[71,31],[72,32],[73,33],[74,34],[75,35],[76,36],[77,37],[78,38],[79,38],[81,39],[80,40],[82,39],[83,41],[84,42],[68,43],[118,2],[85,44],[86,45],[87,46],[119,47],[88,48],[89,49],[90,50],[91,51],[92,52],[93,53],[94,54],[95,55],[96,56],[97,57],[98,57],[99,58],[100,59],[102,60],[101,61],[103,62],[104,63],[105,2],[106,64],[107,65],[108,66],[109,67],[110,68],[111,69],[112,70],[113,71],[114,72],[115,73],[116,74],[117,75],[289,200],[276,201],[283,202],[279,203],[277,204],[280,205],[284,206],[285,202],[282,207],[281,208],[286,209],[287,210],[288,211],[278,212],[297,213],[256,214],[299,77],[302,215],[172,92],[176,93],[166,94],[168,95],[167,94],[165,2],[179,96],[164,2],[169,2],[177,97],[174,98],[173,99],[178,2],[175,100],[215,2],[270,216],[268,217],[269,218],[170,104],[57,2],[128,105],[63,2],[59,106],[127,2],[129,11],[60,107],[61,108],[58,2],[130,109],[64,110],[62,2],[296,219],[293,197],[295,220],[294,197],[133,201],[134,221],[135,188],[137,222],[267,223],[136,224],[184,225],[187,226],[185,225],[171,227],[151,228],[143,229],[149,230],[144,231],[147,228],[150,232],[142,233],[148,234],[141,235],[210,128],[209,129],[214,130],[212,2],[225,131],[207,129],[208,132],[213,129],[224,133],[211,134],[132,135],[124,2],[154,136],[138,236],[153,138],[126,237],[152,140],[125,2],[189,238],[190,183],[200,239],[206,143],[201,240],[192,241],[204,146],[195,242],[196,148],[199,243],[188,244],[194,245],[205,152],[197,246],[198,154],[202,155],[203,156],[216,2],[220,157],[217,158],[223,159],[221,160],[219,161],[222,162],[218,161],[159,247],[157,248],[158,249],[65,250],[238,251],[233,236],[227,252],[231,253],[230,254],[228,255],[229,256],[234,257],[236,258],[235,259],[239,260],[232,261],[226,262],[237,263]],"semanticDiagnosticsPerFile":[242,240,120,163,121,162,160,161,155,156,122,123,131,263,266,193,265,245,241,243,244,246,248,247,249,250,253,257,258,259,260,261,262,271,272,273,255,254,274,275,66,67,69,70,71,72,73,74,75,76,77,78,79,81,80,82,83,84,68,118,85,86,87,119,88,89,90,91,92,93,94,95,96,97,98,99,100,102,101,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,289,276,283,279,277,280,284,285,282,281,286,287,288,278,290,291,297,298,252,251,256,299,300,301,302,172,176,166,168,167,165,179,164,169,177,174,173,178,175,191,264,215,270,268,269,170,57,128,63,59,127,129,60,61,58,130,64,62,180,296,293,295,294,292,133,134,135,137,267,136,11,12,15,14,2,16,17,18,19,20,21,22,23,3,4,27,24,25,26,28,29,30,5,31,32,33,34,6,35,36,37,38,7,39,44,45,40,41,42,43,8,49,46,47,48,50,9,51,52,53,54,55,1,10,56,13,181,182,183,184,187,185,171,186,151,143,149,145,146,144,147,139,140,150,142,148,141,210,209,214,212,225,207,208,213,224,211,132,124,154,138,153,126,152,125,189,190,200,206,201,192,204,195,196,199,188,194,205,197,198,202,203,216,220,217,223,221,219,222,218,159,157,158,65,238,233,227,231,230,228,229,234,236,235,239,232,226,237],"latestChangedDtsFile":"./src/sync.d.ts"},"version":"4.8.4"}
|
package/dist/verify.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { CID } from 'multiformats/cid';
|
|
2
|
-
import { ReadableBlockstore, RepoStorage } from './storage';
|
|
3
|
-
import DataDiff from './data-diff';
|
|
4
|
-
import ReadableRepo from './readable-repo';
|
|
5
|
-
import CidSet from './cid-set';
|
|
6
|
-
import { RecordClaim, RepoContents, RepoContentsWithCids } from './types';
|
|
7
|
-
export declare type VerifiedCheckout = {
|
|
8
|
-
contents: RepoContents;
|
|
9
|
-
newCids: CidSet;
|
|
10
|
-
};
|
|
11
|
-
export declare type VerifiedCheckoutWithCids = {
|
|
12
|
-
commit: CID;
|
|
13
|
-
contents: RepoContentsWithCids;
|
|
14
|
-
};
|
|
15
|
-
export declare const verifyCheckout: (storage: ReadableBlockstore, head: CID, did: string, signingKey: string) => Promise<VerifiedCheckout>;
|
|
16
|
-
export declare const verifyCheckoutWithCids: (storage: ReadableBlockstore, head: CID, did: string, signingKey: string) => Promise<VerifiedCheckoutWithCids>;
|
|
17
|
-
export declare type VerifiedUpdate = {
|
|
18
|
-
commit: CID;
|
|
19
|
-
prev: CID | null;
|
|
20
|
-
diff: DataDiff;
|
|
21
|
-
newCids: CidSet;
|
|
22
|
-
};
|
|
23
|
-
export declare const verifyFullHistory: (storage: RepoStorage, head: CID, did: string, signingKey: string) => Promise<VerifiedUpdate[]>;
|
|
24
|
-
export declare const verifyUpdates: (repo: ReadableRepo, updateStorage: RepoStorage, updateRoot: CID, did: string, signingKey: string) => Promise<VerifiedUpdate[]>;
|
|
25
|
-
export declare const verifyCommitPath: (baseRepo: ReadableRepo, storage: ReadableBlockstore, commitPath: CID[], did: string, signingKey: string) => Promise<VerifiedUpdate[]>;
|
|
26
|
-
export declare const verifyProofs: (proofs: Uint8Array, claims: RecordClaim[], did: string, didKey: string) => Promise<{
|
|
27
|
-
verified: RecordClaim[];
|
|
28
|
-
unverified: RecordClaim[];
|
|
29
|
-
}>;
|
|
30
|
-
export declare const verifyRecords: (proofs: Uint8Array, did: string, signingKey: string) => Promise<RecordClaim[]>;
|
|
31
|
-
export declare class RepoVerificationError extends Error {
|
|
32
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { CID } from 'multiformats/cid'
|
|
2
|
-
import BlockMap from '../block-map'
|
|
3
|
-
import { CommitBlockData, CommitData, RebaseData } from '../types'
|
|
4
|
-
import ReadableBlockstore from './readable-blockstore'
|
|
5
|
-
|
|
6
|
-
export abstract class RepoStorage extends ReadableBlockstore {
|
|
7
|
-
abstract getHead(forUpdate?: boolean): Promise<CID | null>
|
|
8
|
-
abstract getCommitPath(
|
|
9
|
-
latest: CID,
|
|
10
|
-
earliest: CID | null,
|
|
11
|
-
): Promise<CID[] | null>
|
|
12
|
-
abstract getBlocksForCommits(
|
|
13
|
-
commits: CID[],
|
|
14
|
-
): Promise<{ [commit: string]: BlockMap }>
|
|
15
|
-
|
|
16
|
-
abstract putBlock(cid: CID, block: Uint8Array): Promise<void>
|
|
17
|
-
abstract putMany(blocks: BlockMap): Promise<void>
|
|
18
|
-
abstract updateHead(cid: CID, prev: CID | null): Promise<void>
|
|
19
|
-
abstract indexCommits(commit: CommitData[]): Promise<void>
|
|
20
|
-
abstract applyRebase(rebase: RebaseData): Promise<void>
|
|
21
|
-
|
|
22
|
-
async applyCommit(commit: CommitData): Promise<void> {
|
|
23
|
-
await Promise.all([
|
|
24
|
-
this.indexCommits([commit]),
|
|
25
|
-
this.updateHead(commit.commit, commit.prev),
|
|
26
|
-
])
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
async getCommits(
|
|
30
|
-
latest: CID,
|
|
31
|
-
earliest: CID | null,
|
|
32
|
-
): Promise<CommitBlockData[] | null> {
|
|
33
|
-
const commitPath = await this.getCommitPath(latest, earliest)
|
|
34
|
-
if (!commitPath) return null
|
|
35
|
-
const blocksByCommit = await this.getBlocksForCommits(commitPath)
|
|
36
|
-
return commitPath.map((commit) => ({
|
|
37
|
-
commit,
|
|
38
|
-
blocks: blocksByCommit[commit.toString()] || new BlockMap(),
|
|
39
|
-
}))
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export default RepoStorage
|