@did-plc/lib 0.0.4 → 1.0.0-next.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.
Files changed (47) hide show
  1. package/README.md +64 -1
  2. package/dist/client.d.ts +79 -25
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/client.js +188 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/data.d.ts +3 -2
  7. package/dist/data.d.ts.map +1 -0
  8. package/dist/data.js +102 -0
  9. package/dist/data.js.map +1 -0
  10. package/dist/document.d.ts +2 -1
  11. package/dist/document.d.ts.map +1 -0
  12. package/dist/document.js +67 -0
  13. package/dist/document.js.map +1 -0
  14. package/dist/error.d.ts +1 -0
  15. package/dist/error.d.ts.map +1 -0
  16. package/dist/error.js +66 -0
  17. package/dist/error.js.map +1 -0
  18. package/dist/index.d.ts +7 -6
  19. package/dist/index.d.ts.map +1 -0
  20. package/dist/index.js +7 -33182
  21. package/dist/index.js.map +1 -7
  22. package/dist/operations.d.ts +29 -20
  23. package/dist/operations.d.ts.map +1 -0
  24. package/dist/operations.js +202 -0
  25. package/dist/operations.js.map +1 -0
  26. package/dist/types.d.ts +517 -223
  27. package/dist/types.d.ts.map +1 -0
  28. package/dist/types.js +108 -0
  29. package/dist/types.js.map +1 -0
  30. package/package.json +40 -24
  31. package/src/client.ts +283 -72
  32. package/src/data.ts +15 -12
  33. package/src/document.ts +31 -18
  34. package/src/error.ts +14 -4
  35. package/src/index.ts +6 -6
  36. package/src/operations.ts +124 -111
  37. package/src/types.ts +46 -27
  38. package/build.js +0 -26
  39. package/jest.config.js +0 -6
  40. package/tests/compatibility.test.ts +0 -89
  41. package/tests/data.test.ts +0 -214
  42. package/tests/document.test.ts +0 -81
  43. package/tests/recovery.test.ts +0 -188
  44. package/tsconfig.build.json +0 -4
  45. package/tsconfig.build.tsbuildinfo +0 -1
  46. package/tsconfig.json +0 -10
  47. package/update-pkg.js +0 -14
package/dist/types.d.ts CHANGED
@@ -8,7 +8,7 @@ declare const documentData: z.ZodObject<{
8
8
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
9
9
  type: z.ZodString;
10
10
  endpoint: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
11
+ }, "strict", z.ZodTypeAny, {
12
12
  type: string;
13
13
  endpoint: string;
14
14
  }, {
@@ -16,25 +16,25 @@ declare const documentData: z.ZodObject<{
16
16
  endpoint: string;
17
17
  }>>;
18
18
  }, "strip", z.ZodTypeAny, {
19
- alsoKnownAs: string[];
20
19
  did: string;
21
20
  rotationKeys: string[];
22
21
  verificationMethods: Record<string, string>;
22
+ alsoKnownAs: string[];
23
23
  services: Record<string, {
24
24
  type: string;
25
25
  endpoint: string;
26
26
  }>;
27
27
  }, {
28
- alsoKnownAs: string[];
29
28
  did: string;
30
29
  rotationKeys: string[];
31
30
  verificationMethods: Record<string, string>;
31
+ alsoKnownAs: string[];
32
32
  services: Record<string, {
33
33
  type: string;
34
34
  endpoint: string;
35
35
  }>;
36
36
  }>;
37
- export declare type DocumentData = z.infer<typeof documentData>;
37
+ export type DocumentData = z.infer<typeof documentData>;
38
38
  declare const unsignedCreateOpV1: z.ZodObject<{
39
39
  type: z.ZodLiteral<"create">;
40
40
  signingKey: z.ZodString;
@@ -42,49 +42,49 @@ declare const unsignedCreateOpV1: z.ZodObject<{
42
42
  handle: z.ZodString;
43
43
  service: z.ZodString;
44
44
  prev: z.ZodNull;
45
- }, "strip", z.ZodTypeAny, {
45
+ }, "strict", z.ZodTypeAny, {
46
46
  type: "create";
47
- service: string;
48
47
  signingKey: string;
49
48
  recoveryKey: string;
50
49
  handle: string;
50
+ service: string;
51
51
  prev: null;
52
52
  }, {
53
53
  type: "create";
54
- service: string;
55
54
  signingKey: string;
56
55
  recoveryKey: string;
57
56
  handle: string;
57
+ service: string;
58
58
  prev: null;
59
59
  }>;
60
- export declare type UnsignedCreateOpV1 = z.infer<typeof unsignedCreateOpV1>;
61
- declare const createOpV1: z.ZodObject<z.extendShape<{
60
+ export type UnsignedCreateOpV1 = z.infer<typeof unsignedCreateOpV1>;
61
+ declare const createOpV1: z.ZodObject<{
62
62
  type: z.ZodLiteral<"create">;
63
63
  signingKey: z.ZodString;
64
64
  recoveryKey: z.ZodString;
65
65
  handle: z.ZodString;
66
66
  service: z.ZodString;
67
67
  prev: z.ZodNull;
68
- }, {
68
+ } & {
69
69
  sig: z.ZodString;
70
- }>, "strip", z.ZodTypeAny, {
70
+ }, "strict", z.ZodTypeAny, {
71
71
  type: "create";
72
- service: string;
73
72
  signingKey: string;
74
73
  recoveryKey: string;
75
74
  handle: string;
75
+ service: string;
76
76
  prev: null;
77
77
  sig: string;
78
78
  }, {
79
79
  type: "create";
80
- service: string;
81
80
  signingKey: string;
82
81
  recoveryKey: string;
83
82
  handle: string;
83
+ service: string;
84
84
  prev: null;
85
85
  sig: string;
86
86
  }>;
87
- export declare type CreateOpV1 = z.infer<typeof createOpV1>;
87
+ export type CreateOpV1 = z.infer<typeof createOpV1>;
88
88
  declare const unsignedOperation: z.ZodObject<{
89
89
  type: z.ZodLiteral<"plc_operation">;
90
90
  rotationKeys: z.ZodArray<z.ZodString, "many">;
@@ -93,7 +93,7 @@ declare const unsignedOperation: z.ZodObject<{
93
93
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
94
94
  type: z.ZodString;
95
95
  endpoint: z.ZodString;
96
- }, "strip", z.ZodTypeAny, {
96
+ }, "strict", z.ZodTypeAny, {
97
97
  type: string;
98
98
  endpoint: string;
99
99
  }, {
@@ -101,11 +101,11 @@ declare const unsignedOperation: z.ZodObject<{
101
101
  endpoint: string;
102
102
  }>>;
103
103
  prev: z.ZodNullable<z.ZodString>;
104
- }, "strip", z.ZodTypeAny, {
104
+ }, "strict", z.ZodTypeAny, {
105
105
  type: "plc_operation";
106
- alsoKnownAs: string[];
107
106
  rotationKeys: string[];
108
107
  verificationMethods: Record<string, string>;
108
+ alsoKnownAs: string[];
109
109
  services: Record<string, {
110
110
  type: string;
111
111
  endpoint: string;
@@ -113,17 +113,17 @@ declare const unsignedOperation: z.ZodObject<{
113
113
  prev: string | null;
114
114
  }, {
115
115
  type: "plc_operation";
116
- alsoKnownAs: string[];
117
116
  rotationKeys: string[];
118
117
  verificationMethods: Record<string, string>;
118
+ alsoKnownAs: string[];
119
119
  services: Record<string, {
120
120
  type: string;
121
121
  endpoint: string;
122
122
  }>;
123
123
  prev: string | null;
124
124
  }>;
125
- export declare type UnsignedOperation = z.infer<typeof unsignedOperation>;
126
- declare const operation: z.ZodObject<z.extendShape<{
125
+ export type UnsignedOperation = z.infer<typeof unsignedOperation>;
126
+ declare const operation: z.ZodObject<{
127
127
  type: z.ZodLiteral<"plc_operation">;
128
128
  rotationKeys: z.ZodArray<z.ZodString, "many">;
129
129
  verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -131,7 +131,7 @@ declare const operation: z.ZodObject<z.extendShape<{
131
131
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
132
132
  type: z.ZodString;
133
133
  endpoint: z.ZodString;
134
- }, "strip", z.ZodTypeAny, {
134
+ }, "strict", z.ZodTypeAny, {
135
135
  type: string;
136
136
  endpoint: string;
137
137
  }, {
@@ -139,13 +139,13 @@ declare const operation: z.ZodObject<z.extendShape<{
139
139
  endpoint: string;
140
140
  }>>;
141
141
  prev: z.ZodNullable<z.ZodString>;
142
- }, {
142
+ } & {
143
143
  sig: z.ZodString;
144
- }>, "strip", z.ZodTypeAny, {
144
+ }, "strict", z.ZodTypeAny, {
145
145
  type: "plc_operation";
146
- alsoKnownAs: string[];
147
146
  rotationKeys: string[];
148
147
  verificationMethods: Record<string, string>;
148
+ alsoKnownAs: string[];
149
149
  services: Record<string, {
150
150
  type: string;
151
151
  endpoint: string;
@@ -154,9 +154,9 @@ declare const operation: z.ZodObject<z.extendShape<{
154
154
  sig: string;
155
155
  }, {
156
156
  type: "plc_operation";
157
- alsoKnownAs: string[];
158
157
  rotationKeys: string[];
159
158
  verificationMethods: Record<string, string>;
159
+ alsoKnownAs: string[];
160
160
  services: Record<string, {
161
161
  type: string;
162
162
  endpoint: string;
@@ -164,24 +164,24 @@ declare const operation: z.ZodObject<z.extendShape<{
164
164
  prev: string | null;
165
165
  sig: string;
166
166
  }>;
167
- export declare type Operation = z.infer<typeof operation>;
167
+ export type Operation = z.infer<typeof operation>;
168
168
  declare const unsignedTombstone: z.ZodObject<{
169
169
  type: z.ZodLiteral<"plc_tombstone">;
170
170
  prev: z.ZodString;
171
- }, "strip", z.ZodTypeAny, {
171
+ }, "strict", z.ZodTypeAny, {
172
172
  type: "plc_tombstone";
173
173
  prev: string;
174
174
  }, {
175
175
  type: "plc_tombstone";
176
176
  prev: string;
177
177
  }>;
178
- export declare type UnsignedTombstone = z.infer<typeof unsignedTombstone>;
179
- declare const tombstone: z.ZodObject<z.extendShape<{
178
+ export type UnsignedTombstone = z.infer<typeof unsignedTombstone>;
179
+ declare const tombstone: z.ZodObject<{
180
180
  type: z.ZodLiteral<"plc_tombstone">;
181
181
  prev: z.ZodString;
182
- }, {
182
+ } & {
183
183
  sig: z.ZodString;
184
- }>, "strip", z.ZodTypeAny, {
184
+ }, "strict", z.ZodTypeAny, {
185
185
  type: "plc_tombstone";
186
186
  prev: string;
187
187
  sig: string;
@@ -190,8 +190,8 @@ declare const tombstone: z.ZodObject<z.extendShape<{
190
190
  prev: string;
191
191
  sig: string;
192
192
  }>;
193
- export declare type Tombstone = z.infer<typeof tombstone>;
194
- declare const opOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
193
+ export type Tombstone = z.infer<typeof tombstone>;
194
+ declare const opOrTombstone: z.ZodUnion<[z.ZodObject<{
195
195
  type: z.ZodLiteral<"plc_operation">;
196
196
  rotationKeys: z.ZodArray<z.ZodString, "many">;
197
197
  verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -199,7 +199,7 @@ declare const opOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
199
199
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
200
200
  type: z.ZodString;
201
201
  endpoint: z.ZodString;
202
- }, "strip", z.ZodTypeAny, {
202
+ }, "strict", z.ZodTypeAny, {
203
203
  type: string;
204
204
  endpoint: string;
205
205
  }, {
@@ -207,13 +207,13 @@ declare const opOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
207
207
  endpoint: string;
208
208
  }>>;
209
209
  prev: z.ZodNullable<z.ZodString>;
210
- }, {
210
+ } & {
211
211
  sig: z.ZodString;
212
- }>, "strip", z.ZodTypeAny, {
212
+ }, "strict", z.ZodTypeAny, {
213
213
  type: "plc_operation";
214
- alsoKnownAs: string[];
215
214
  rotationKeys: string[];
216
215
  verificationMethods: Record<string, string>;
216
+ alsoKnownAs: string[];
217
217
  services: Record<string, {
218
218
  type: string;
219
219
  endpoint: string;
@@ -222,21 +222,21 @@ declare const opOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
222
222
  sig: string;
223
223
  }, {
224
224
  type: "plc_operation";
225
- alsoKnownAs: string[];
226
225
  rotationKeys: string[];
227
226
  verificationMethods: Record<string, string>;
227
+ alsoKnownAs: string[];
228
228
  services: Record<string, {
229
229
  type: string;
230
230
  endpoint: string;
231
231
  }>;
232
232
  prev: string | null;
233
233
  sig: string;
234
- }>, z.ZodObject<z.extendShape<{
234
+ }>, z.ZodObject<{
235
235
  type: z.ZodLiteral<"plc_tombstone">;
236
236
  prev: z.ZodString;
237
- }, {
237
+ } & {
238
238
  sig: z.ZodString;
239
- }>, "strip", z.ZodTypeAny, {
239
+ }, "strict", z.ZodTypeAny, {
240
240
  type: "plc_tombstone";
241
241
  prev: string;
242
242
  sig: string;
@@ -245,33 +245,33 @@ declare const opOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
245
245
  prev: string;
246
246
  sig: string;
247
247
  }>]>;
248
- export declare type OpOrTombstone = z.infer<typeof opOrTombstone>;
249
- declare const compatibleOp: z.ZodUnion<[z.ZodObject<z.extendShape<{
248
+ export type OpOrTombstone = z.infer<typeof opOrTombstone>;
249
+ declare const compatibleOp: z.ZodUnion<[z.ZodObject<{
250
250
  type: z.ZodLiteral<"create">;
251
251
  signingKey: z.ZodString;
252
252
  recoveryKey: z.ZodString;
253
253
  handle: z.ZodString;
254
254
  service: z.ZodString;
255
255
  prev: z.ZodNull;
256
- }, {
256
+ } & {
257
257
  sig: z.ZodString;
258
- }>, "strip", z.ZodTypeAny, {
258
+ }, "strict", z.ZodTypeAny, {
259
259
  type: "create";
260
- service: string;
261
260
  signingKey: string;
262
261
  recoveryKey: string;
263
262
  handle: string;
263
+ service: string;
264
264
  prev: null;
265
265
  sig: string;
266
266
  }, {
267
267
  type: "create";
268
- service: string;
269
268
  signingKey: string;
270
269
  recoveryKey: string;
271
270
  handle: string;
271
+ service: string;
272
272
  prev: null;
273
273
  sig: string;
274
- }>, z.ZodObject<z.extendShape<{
274
+ }>, z.ZodObject<{
275
275
  type: z.ZodLiteral<"plc_operation">;
276
276
  rotationKeys: z.ZodArray<z.ZodString, "many">;
277
277
  verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -279,7 +279,7 @@ declare const compatibleOp: z.ZodUnion<[z.ZodObject<z.extendShape<{
279
279
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
280
280
  type: z.ZodString;
281
281
  endpoint: z.ZodString;
282
- }, "strip", z.ZodTypeAny, {
282
+ }, "strict", z.ZodTypeAny, {
283
283
  type: string;
284
284
  endpoint: string;
285
285
  }, {
@@ -287,13 +287,13 @@ declare const compatibleOp: z.ZodUnion<[z.ZodObject<z.extendShape<{
287
287
  endpoint: string;
288
288
  }>>;
289
289
  prev: z.ZodNullable<z.ZodString>;
290
- }, {
290
+ } & {
291
291
  sig: z.ZodString;
292
- }>, "strip", z.ZodTypeAny, {
292
+ }, "strict", z.ZodTypeAny, {
293
293
  type: "plc_operation";
294
- alsoKnownAs: string[];
295
294
  rotationKeys: string[];
296
295
  verificationMethods: Record<string, string>;
296
+ alsoKnownAs: string[];
297
297
  services: Record<string, {
298
298
  type: string;
299
299
  endpoint: string;
@@ -302,9 +302,9 @@ declare const compatibleOp: z.ZodUnion<[z.ZodObject<z.extendShape<{
302
302
  sig: string;
303
303
  }, {
304
304
  type: "plc_operation";
305
- alsoKnownAs: string[];
306
305
  rotationKeys: string[];
307
306
  verificationMethods: Record<string, string>;
307
+ alsoKnownAs: string[];
308
308
  services: Record<string, {
309
309
  type: string;
310
310
  endpoint: string;
@@ -312,33 +312,33 @@ declare const compatibleOp: z.ZodUnion<[z.ZodObject<z.extendShape<{
312
312
  prev: string | null;
313
313
  sig: string;
314
314
  }>]>;
315
- export declare type CompatibleOp = z.infer<typeof compatibleOp>;
316
- declare const compatibleOpOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
315
+ export type CompatibleOp = z.infer<typeof compatibleOp>;
316
+ declare const compatibleOpOrTombstone: z.ZodUnion<[z.ZodObject<{
317
317
  type: z.ZodLiteral<"create">;
318
318
  signingKey: z.ZodString;
319
319
  recoveryKey: z.ZodString;
320
320
  handle: z.ZodString;
321
321
  service: z.ZodString;
322
322
  prev: z.ZodNull;
323
- }, {
323
+ } & {
324
324
  sig: z.ZodString;
325
- }>, "strip", z.ZodTypeAny, {
325
+ }, "strict", z.ZodTypeAny, {
326
326
  type: "create";
327
- service: string;
328
327
  signingKey: string;
329
328
  recoveryKey: string;
330
329
  handle: string;
330
+ service: string;
331
331
  prev: null;
332
332
  sig: string;
333
333
  }, {
334
334
  type: "create";
335
- service: string;
336
335
  signingKey: string;
337
336
  recoveryKey: string;
338
337
  handle: string;
338
+ service: string;
339
339
  prev: null;
340
340
  sig: string;
341
- }>, z.ZodObject<z.extendShape<{
341
+ }>, z.ZodObject<{
342
342
  type: z.ZodLiteral<"plc_operation">;
343
343
  rotationKeys: z.ZodArray<z.ZodString, "many">;
344
344
  verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -346,7 +346,7 @@ declare const compatibleOpOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
346
346
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
347
347
  type: z.ZodString;
348
348
  endpoint: z.ZodString;
349
- }, "strip", z.ZodTypeAny, {
349
+ }, "strict", z.ZodTypeAny, {
350
350
  type: string;
351
351
  endpoint: string;
352
352
  }, {
@@ -354,13 +354,13 @@ declare const compatibleOpOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
354
354
  endpoint: string;
355
355
  }>>;
356
356
  prev: z.ZodNullable<z.ZodString>;
357
- }, {
357
+ } & {
358
358
  sig: z.ZodString;
359
- }>, "strip", z.ZodTypeAny, {
359
+ }, "strict", z.ZodTypeAny, {
360
360
  type: "plc_operation";
361
- alsoKnownAs: string[];
362
361
  rotationKeys: string[];
363
362
  verificationMethods: Record<string, string>;
363
+ alsoKnownAs: string[];
364
364
  services: Record<string, {
365
365
  type: string;
366
366
  endpoint: string;
@@ -369,21 +369,21 @@ declare const compatibleOpOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
369
369
  sig: string;
370
370
  }, {
371
371
  type: "plc_operation";
372
- alsoKnownAs: string[];
373
372
  rotationKeys: string[];
374
373
  verificationMethods: Record<string, string>;
374
+ alsoKnownAs: string[];
375
375
  services: Record<string, {
376
376
  type: string;
377
377
  endpoint: string;
378
378
  }>;
379
379
  prev: string | null;
380
380
  sig: string;
381
- }>, z.ZodObject<z.extendShape<{
381
+ }>, z.ZodObject<{
382
382
  type: z.ZodLiteral<"plc_tombstone">;
383
383
  prev: z.ZodString;
384
- }, {
384
+ } & {
385
385
  sig: z.ZodString;
386
- }>, "strip", z.ZodTypeAny, {
386
+ }, "strict", z.ZodTypeAny, {
387
387
  type: "plc_tombstone";
388
388
  prev: string;
389
389
  sig: string;
@@ -392,35 +392,35 @@ declare const compatibleOpOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
392
392
  prev: string;
393
393
  sig: string;
394
394
  }>]>;
395
- export declare type CompatibleOpOrTombstone = z.infer<typeof compatibleOpOrTombstone>;
395
+ export type CompatibleOpOrTombstone = z.infer<typeof compatibleOpOrTombstone>;
396
396
  export declare const indexedOperation: z.ZodObject<{
397
397
  did: z.ZodString;
398
- operation: z.ZodUnion<[z.ZodObject<z.extendShape<{
398
+ operation: z.ZodUnion<[z.ZodObject<{
399
399
  type: z.ZodLiteral<"create">;
400
400
  signingKey: z.ZodString;
401
401
  recoveryKey: z.ZodString;
402
402
  handle: z.ZodString;
403
403
  service: z.ZodString;
404
404
  prev: z.ZodNull;
405
- }, {
405
+ } & {
406
406
  sig: z.ZodString;
407
- }>, "strip", z.ZodTypeAny, {
407
+ }, "strict", z.ZodTypeAny, {
408
408
  type: "create";
409
- service: string;
410
409
  signingKey: string;
411
410
  recoveryKey: string;
412
411
  handle: string;
412
+ service: string;
413
413
  prev: null;
414
414
  sig: string;
415
415
  }, {
416
416
  type: "create";
417
- service: string;
418
417
  signingKey: string;
419
418
  recoveryKey: string;
420
419
  handle: string;
420
+ service: string;
421
421
  prev: null;
422
422
  sig: string;
423
- }>, z.ZodObject<z.extendShape<{
423
+ }>, z.ZodObject<{
424
424
  type: z.ZodLiteral<"plc_operation">;
425
425
  rotationKeys: z.ZodArray<z.ZodString, "many">;
426
426
  verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -428,7 +428,7 @@ export declare const indexedOperation: z.ZodObject<{
428
428
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
429
429
  type: z.ZodString;
430
430
  endpoint: z.ZodString;
431
- }, "strip", z.ZodTypeAny, {
431
+ }, "strict", z.ZodTypeAny, {
432
432
  type: string;
433
433
  endpoint: string;
434
434
  }, {
@@ -436,13 +436,13 @@ export declare const indexedOperation: z.ZodObject<{
436
436
  endpoint: string;
437
437
  }>>;
438
438
  prev: z.ZodNullable<z.ZodString>;
439
- }, {
439
+ } & {
440
440
  sig: z.ZodString;
441
- }>, "strip", z.ZodTypeAny, {
441
+ }, "strict", z.ZodTypeAny, {
442
442
  type: "plc_operation";
443
- alsoKnownAs: string[];
444
443
  rotationKeys: string[];
445
444
  verificationMethods: Record<string, string>;
445
+ alsoKnownAs: string[];
446
446
  services: Record<string, {
447
447
  type: string;
448
448
  endpoint: string;
@@ -451,21 +451,21 @@ export declare const indexedOperation: z.ZodObject<{
451
451
  sig: string;
452
452
  }, {
453
453
  type: "plc_operation";
454
- alsoKnownAs: string[];
455
454
  rotationKeys: string[];
456
455
  verificationMethods: Record<string, string>;
456
+ alsoKnownAs: string[];
457
457
  services: Record<string, {
458
458
  type: string;
459
459
  endpoint: string;
460
460
  }>;
461
461
  prev: string | null;
462
462
  sig: string;
463
- }>, z.ZodObject<z.extendShape<{
463
+ }>, z.ZodObject<{
464
464
  type: z.ZodLiteral<"plc_tombstone">;
465
465
  prev: z.ZodString;
466
- }, {
466
+ } & {
467
467
  sig: z.ZodString;
468
- }>, "strip", z.ZodTypeAny, {
468
+ }, "strict", z.ZodTypeAny, {
469
469
  type: "plc_tombstone";
470
470
  prev: string;
471
471
  sig: string;
@@ -474,24 +474,24 @@ export declare const indexedOperation: z.ZodObject<{
474
474
  prev: string;
475
475
  sig: string;
476
476
  }>]>;
477
- cid: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, mf.CID, any>;
477
+ cid: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, mf.CID<unknown, number, number, mf.Version>, any>;
478
478
  nullified: z.ZodBoolean;
479
479
  createdAt: z.ZodDate;
480
480
  }, "strip", z.ZodTypeAny, {
481
481
  did: string;
482
482
  operation: {
483
483
  type: "create";
484
- service: string;
485
484
  signingKey: string;
486
485
  recoveryKey: string;
487
486
  handle: string;
487
+ service: string;
488
488
  prev: null;
489
489
  sig: string;
490
490
  } | {
491
491
  type: "plc_operation";
492
- alsoKnownAs: string[];
493
492
  rotationKeys: string[];
494
493
  verificationMethods: Record<string, string>;
494
+ alsoKnownAs: string[];
495
495
  services: Record<string, {
496
496
  type: string;
497
497
  endpoint: string;
@@ -503,25 +503,24 @@ export declare const indexedOperation: z.ZodObject<{
503
503
  prev: string;
504
504
  sig: string;
505
505
  };
506
- cid: mf.CID;
506
+ cid: mf.CID<unknown, number, number, mf.Version>;
507
507
  nullified: boolean;
508
508
  createdAt: Date;
509
509
  }, {
510
- cid?: any;
511
510
  did: string;
512
511
  operation: {
513
512
  type: "create";
514
- service: string;
515
513
  signingKey: string;
516
514
  recoveryKey: string;
517
515
  handle: string;
516
+ service: string;
518
517
  prev: null;
519
518
  sig: string;
520
519
  } | {
521
520
  type: "plc_operation";
522
- alsoKnownAs: string[];
523
521
  rotationKeys: string[];
524
522
  verificationMethods: Record<string, string>;
523
+ alsoKnownAs: string[];
525
524
  services: Record<string, {
526
525
  type: string;
527
526
  endpoint: string;
@@ -533,38 +532,39 @@ export declare const indexedOperation: z.ZodObject<{
533
532
  prev: string;
534
533
  sig: string;
535
534
  };
535
+ cid?: any;
536
536
  nullified: boolean;
537
537
  createdAt: Date;
538
538
  }>;
539
- export declare type IndexedOperation = z.infer<typeof indexedOperation>;
539
+ export type IndexedOperation = z.infer<typeof indexedOperation>;
540
540
  export declare const exportedOp: z.ZodObject<{
541
541
  did: z.ZodString;
542
- operation: z.ZodUnion<[z.ZodObject<z.extendShape<{
542
+ operation: z.ZodUnion<[z.ZodObject<{
543
543
  type: z.ZodLiteral<"create">;
544
544
  signingKey: z.ZodString;
545
545
  recoveryKey: z.ZodString;
546
546
  handle: z.ZodString;
547
547
  service: z.ZodString;
548
548
  prev: z.ZodNull;
549
- }, {
549
+ } & {
550
550
  sig: z.ZodString;
551
- }>, "strip", z.ZodTypeAny, {
551
+ }, "strict", z.ZodTypeAny, {
552
552
  type: "create";
553
- service: string;
554
553
  signingKey: string;
555
554
  recoveryKey: string;
556
555
  handle: string;
556
+ service: string;
557
557
  prev: null;
558
558
  sig: string;
559
559
  }, {
560
560
  type: "create";
561
- service: string;
562
561
  signingKey: string;
563
562
  recoveryKey: string;
564
563
  handle: string;
564
+ service: string;
565
565
  prev: null;
566
566
  sig: string;
567
- }>, z.ZodObject<z.extendShape<{
567
+ }>, z.ZodObject<{
568
568
  type: z.ZodLiteral<"plc_operation">;
569
569
  rotationKeys: z.ZodArray<z.ZodString, "many">;
570
570
  verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -572,7 +572,7 @@ export declare const exportedOp: z.ZodObject<{
572
572
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
573
573
  type: z.ZodString;
574
574
  endpoint: z.ZodString;
575
- }, "strip", z.ZodTypeAny, {
575
+ }, "strict", z.ZodTypeAny, {
576
576
  type: string;
577
577
  endpoint: string;
578
578
  }, {
@@ -580,13 +580,13 @@ export declare const exportedOp: z.ZodObject<{
580
580
  endpoint: string;
581
581
  }>>;
582
582
  prev: z.ZodNullable<z.ZodString>;
583
- }, {
583
+ } & {
584
584
  sig: z.ZodString;
585
- }>, "strip", z.ZodTypeAny, {
585
+ }, "strict", z.ZodTypeAny, {
586
586
  type: "plc_operation";
587
- alsoKnownAs: string[];
588
587
  rotationKeys: string[];
589
588
  verificationMethods: Record<string, string>;
589
+ alsoKnownAs: string[];
590
590
  services: Record<string, {
591
591
  type: string;
592
592
  endpoint: string;
@@ -595,21 +595,21 @@ export declare const exportedOp: z.ZodObject<{
595
595
  sig: string;
596
596
  }, {
597
597
  type: "plc_operation";
598
- alsoKnownAs: string[];
599
598
  rotationKeys: string[];
600
599
  verificationMethods: Record<string, string>;
600
+ alsoKnownAs: string[];
601
601
  services: Record<string, {
602
602
  type: string;
603
603
  endpoint: string;
604
604
  }>;
605
605
  prev: string | null;
606
606
  sig: string;
607
- }>, z.ZodObject<z.extendShape<{
607
+ }>, z.ZodObject<{
608
608
  type: z.ZodLiteral<"plc_tombstone">;
609
609
  prev: z.ZodString;
610
- }, {
610
+ } & {
611
611
  sig: z.ZodString;
612
- }>, "strip", z.ZodTypeAny, {
612
+ }, "strict", z.ZodTypeAny, {
613
613
  type: "plc_tombstone";
614
614
  prev: string;
615
615
  sig: string;
@@ -625,17 +625,17 @@ export declare const exportedOp: z.ZodObject<{
625
625
  did: string;
626
626
  operation: {
627
627
  type: "create";
628
- service: string;
629
628
  signingKey: string;
630
629
  recoveryKey: string;
631
630
  handle: string;
631
+ service: string;
632
632
  prev: null;
633
633
  sig: string;
634
634
  } | {
635
635
  type: "plc_operation";
636
- alsoKnownAs: string[];
637
636
  rotationKeys: string[];
638
637
  verificationMethods: Record<string, string>;
638
+ alsoKnownAs: string[];
639
639
  services: Record<string, {
640
640
  type: string;
641
641
  endpoint: string;
@@ -654,17 +654,163 @@ export declare const exportedOp: z.ZodObject<{
654
654
  did: string;
655
655
  operation: {
656
656
  type: "create";
657
+ signingKey: string;
658
+ recoveryKey: string;
659
+ handle: string;
660
+ service: string;
661
+ prev: null;
662
+ sig: string;
663
+ } | {
664
+ type: "plc_operation";
665
+ rotationKeys: string[];
666
+ verificationMethods: Record<string, string>;
667
+ alsoKnownAs: string[];
668
+ services: Record<string, {
669
+ type: string;
670
+ endpoint: string;
671
+ }>;
672
+ prev: string | null;
673
+ sig: string;
674
+ } | {
675
+ type: "plc_tombstone";
676
+ prev: string;
677
+ sig: string;
678
+ };
679
+ cid: string;
680
+ nullified: boolean;
681
+ createdAt: string;
682
+ }>;
683
+ export type ExportedOp = z.infer<typeof exportedOp>;
684
+ export declare const exportedOpWithSeq: z.ZodObject<{
685
+ did: z.ZodString;
686
+ operation: z.ZodUnion<[z.ZodObject<{
687
+ type: z.ZodLiteral<"create">;
688
+ signingKey: z.ZodString;
689
+ recoveryKey: z.ZodString;
690
+ handle: z.ZodString;
691
+ service: z.ZodString;
692
+ prev: z.ZodNull;
693
+ } & {
694
+ sig: z.ZodString;
695
+ }, "strict", z.ZodTypeAny, {
696
+ type: "create";
697
+ signingKey: string;
698
+ recoveryKey: string;
699
+ handle: string;
657
700
  service: string;
701
+ prev: null;
702
+ sig: string;
703
+ }, {
704
+ type: "create";
705
+ signingKey: string;
706
+ recoveryKey: string;
707
+ handle: string;
708
+ service: string;
709
+ prev: null;
710
+ sig: string;
711
+ }>, z.ZodObject<{
712
+ type: z.ZodLiteral<"plc_operation">;
713
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
714
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
715
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
716
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
717
+ type: z.ZodString;
718
+ endpoint: z.ZodString;
719
+ }, "strict", z.ZodTypeAny, {
720
+ type: string;
721
+ endpoint: string;
722
+ }, {
723
+ type: string;
724
+ endpoint: string;
725
+ }>>;
726
+ prev: z.ZodNullable<z.ZodString>;
727
+ } & {
728
+ sig: z.ZodString;
729
+ }, "strict", z.ZodTypeAny, {
730
+ type: "plc_operation";
731
+ rotationKeys: string[];
732
+ verificationMethods: Record<string, string>;
733
+ alsoKnownAs: string[];
734
+ services: Record<string, {
735
+ type: string;
736
+ endpoint: string;
737
+ }>;
738
+ prev: string | null;
739
+ sig: string;
740
+ }, {
741
+ type: "plc_operation";
742
+ rotationKeys: string[];
743
+ verificationMethods: Record<string, string>;
744
+ alsoKnownAs: string[];
745
+ services: Record<string, {
746
+ type: string;
747
+ endpoint: string;
748
+ }>;
749
+ prev: string | null;
750
+ sig: string;
751
+ }>, z.ZodObject<{
752
+ type: z.ZodLiteral<"plc_tombstone">;
753
+ prev: z.ZodString;
754
+ } & {
755
+ sig: z.ZodString;
756
+ }, "strict", z.ZodTypeAny, {
757
+ type: "plc_tombstone";
758
+ prev: string;
759
+ sig: string;
760
+ }, {
761
+ type: "plc_tombstone";
762
+ prev: string;
763
+ sig: string;
764
+ }>]>;
765
+ cid: z.ZodString;
766
+ createdAt: z.ZodString;
767
+ seq: z.ZodNumber;
768
+ type: z.ZodLiteral<"sequenced_op">;
769
+ }, "strip", z.ZodTypeAny, {
770
+ did: string;
771
+ operation: {
772
+ type: "create";
658
773
  signingKey: string;
659
774
  recoveryKey: string;
660
775
  handle: string;
776
+ service: string;
661
777
  prev: null;
662
778
  sig: string;
663
779
  } | {
664
780
  type: "plc_operation";
781
+ rotationKeys: string[];
782
+ verificationMethods: Record<string, string>;
665
783
  alsoKnownAs: string[];
784
+ services: Record<string, {
785
+ type: string;
786
+ endpoint: string;
787
+ }>;
788
+ prev: string | null;
789
+ sig: string;
790
+ } | {
791
+ type: "plc_tombstone";
792
+ prev: string;
793
+ sig: string;
794
+ };
795
+ cid: string;
796
+ createdAt: string;
797
+ seq: number;
798
+ type: "sequenced_op";
799
+ }, {
800
+ did: string;
801
+ operation: {
802
+ type: "create";
803
+ signingKey: string;
804
+ recoveryKey: string;
805
+ handle: string;
806
+ service: string;
807
+ prev: null;
808
+ sig: string;
809
+ } | {
810
+ type: "plc_operation";
666
811
  rotationKeys: string[];
667
812
  verificationMethods: Record<string, string>;
813
+ alsoKnownAs: string[];
668
814
  services: Record<string, {
669
815
  type: string;
670
816
  endpoint: string;
@@ -677,23 +823,24 @@ export declare const exportedOp: z.ZodObject<{
677
823
  sig: string;
678
824
  };
679
825
  cid: string;
680
- nullified: boolean;
681
826
  createdAt: string;
827
+ seq: number;
828
+ type: "sequenced_op";
682
829
  }>;
683
- export declare type ExportedOp = z.infer<typeof exportedOp>;
830
+ export type ExportedOpWithSeq = z.infer<typeof exportedOpWithSeq>;
684
831
  export declare const didDocVerificationMethod: z.ZodObject<{
685
832
  id: z.ZodString;
686
833
  type: z.ZodString;
687
834
  controller: z.ZodString;
688
835
  publicKeyMultibase: z.ZodString;
689
836
  }, "strip", z.ZodTypeAny, {
690
- type: string;
691
837
  id: string;
838
+ type: string;
692
839
  controller: string;
693
840
  publicKeyMultibase: string;
694
841
  }, {
695
- type: string;
696
842
  id: string;
843
+ type: string;
697
844
  controller: string;
698
845
  publicKeyMultibase: string;
699
846
  }>;
@@ -702,12 +849,12 @@ export declare const didDocService: z.ZodObject<{
702
849
  type: z.ZodString;
703
850
  serviceEndpoint: z.ZodString;
704
851
  }, "strip", z.ZodTypeAny, {
705
- type: string;
706
852
  id: string;
853
+ type: string;
707
854
  serviceEndpoint: string;
708
855
  }, {
709
- type: string;
710
856
  id: string;
857
+ type: string;
711
858
  serviceEndpoint: string;
712
859
  }>;
713
860
  export declare const didDocument: z.ZodObject<{
@@ -720,13 +867,13 @@ export declare const didDocument: z.ZodObject<{
720
867
  controller: z.ZodString;
721
868
  publicKeyMultibase: z.ZodString;
722
869
  }, "strip", z.ZodTypeAny, {
723
- type: string;
724
870
  id: string;
871
+ type: string;
725
872
  controller: string;
726
873
  publicKeyMultibase: string;
727
874
  }, {
728
- type: string;
729
875
  id: string;
876
+ type: string;
730
877
  controller: string;
731
878
  publicKeyMultibase: string;
732
879
  }>, "many">;
@@ -735,12 +882,12 @@ export declare const didDocument: z.ZodObject<{
735
882
  type: z.ZodString;
736
883
  serviceEndpoint: z.ZodString;
737
884
  }, "strip", z.ZodTypeAny, {
738
- type: string;
739
885
  id: string;
886
+ type: string;
740
887
  serviceEndpoint: string;
741
888
  }, {
742
- type: string;
743
889
  id: string;
890
+ type: string;
744
891
  serviceEndpoint: string;
745
892
  }>, "many">;
746
893
  }, "strip", z.ZodTypeAny, {
@@ -748,14 +895,14 @@ export declare const didDocument: z.ZodObject<{
748
895
  id: string;
749
896
  alsoKnownAs: string[];
750
897
  verificationMethod: {
751
- type: string;
752
898
  id: string;
899
+ type: string;
753
900
  controller: string;
754
901
  publicKeyMultibase: string;
755
902
  }[];
756
903
  service: {
757
- type: string;
758
904
  id: string;
905
+ type: string;
759
906
  serviceEndpoint: string;
760
907
  }[];
761
908
  }, {
@@ -763,18 +910,18 @@ export declare const didDocument: z.ZodObject<{
763
910
  id: string;
764
911
  alsoKnownAs: string[];
765
912
  verificationMethod: {
766
- type: string;
767
913
  id: string;
914
+ type: string;
768
915
  controller: string;
769
916
  publicKeyMultibase: string;
770
917
  }[];
771
918
  service: {
772
- type: string;
773
919
  id: string;
920
+ type: string;
774
921
  serviceEndpoint: string;
775
922
  }[];
776
923
  }>;
777
- export declare type DidDocument = z.infer<typeof didDocument>;
924
+ export type DidDocument = z.infer<typeof didDocument>;
778
925
  export declare const def: {
779
926
  documentData: z.ZodObject<{
780
927
  did: z.ZodString;
@@ -784,7 +931,7 @@ export declare const def: {
784
931
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
785
932
  type: z.ZodString;
786
933
  endpoint: z.ZodString;
787
- }, "strip", z.ZodTypeAny, {
934
+ }, "strict", z.ZodTypeAny, {
788
935
  type: string;
789
936
  endpoint: string;
790
937
  }, {
@@ -792,47 +939,47 @@ export declare const def: {
792
939
  endpoint: string;
793
940
  }>>;
794
941
  }, "strip", z.ZodTypeAny, {
795
- alsoKnownAs: string[];
796
942
  did: string;
797
943
  rotationKeys: string[];
798
944
  verificationMethods: Record<string, string>;
945
+ alsoKnownAs: string[];
799
946
  services: Record<string, {
800
947
  type: string;
801
948
  endpoint: string;
802
949
  }>;
803
950
  }, {
804
- alsoKnownAs: string[];
805
951
  did: string;
806
952
  rotationKeys: string[];
807
953
  verificationMethods: Record<string, string>;
954
+ alsoKnownAs: string[];
808
955
  services: Record<string, {
809
956
  type: string;
810
957
  endpoint: string;
811
958
  }>;
812
959
  }>;
813
- createOpV1: z.ZodObject<z.extendShape<{
960
+ createOpV1: z.ZodObject<{
814
961
  type: z.ZodLiteral<"create">;
815
962
  signingKey: z.ZodString;
816
963
  recoveryKey: z.ZodString;
817
964
  handle: z.ZodString;
818
965
  service: z.ZodString;
819
966
  prev: z.ZodNull;
820
- }, {
967
+ } & {
821
968
  sig: z.ZodString;
822
- }>, "strip", z.ZodTypeAny, {
969
+ }, "strict", z.ZodTypeAny, {
823
970
  type: "create";
824
- service: string;
825
971
  signingKey: string;
826
972
  recoveryKey: string;
827
973
  handle: string;
974
+ service: string;
828
975
  prev: null;
829
976
  sig: string;
830
977
  }, {
831
978
  type: "create";
832
- service: string;
833
979
  signingKey: string;
834
980
  recoveryKey: string;
835
981
  handle: string;
982
+ service: string;
836
983
  prev: null;
837
984
  sig: string;
838
985
  }>;
@@ -844,7 +991,7 @@ export declare const def: {
844
991
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
845
992
  type: z.ZodString;
846
993
  endpoint: z.ZodString;
847
- }, "strip", z.ZodTypeAny, {
994
+ }, "strict", z.ZodTypeAny, {
848
995
  type: string;
849
996
  endpoint: string;
850
997
  }, {
@@ -852,11 +999,11 @@ export declare const def: {
852
999
  endpoint: string;
853
1000
  }>>;
854
1001
  prev: z.ZodNullable<z.ZodString>;
855
- }, "strip", z.ZodTypeAny, {
1002
+ }, "strict", z.ZodTypeAny, {
856
1003
  type: "plc_operation";
857
- alsoKnownAs: string[];
858
1004
  rotationKeys: string[];
859
1005
  verificationMethods: Record<string, string>;
1006
+ alsoKnownAs: string[];
860
1007
  services: Record<string, {
861
1008
  type: string;
862
1009
  endpoint: string;
@@ -864,16 +1011,16 @@ export declare const def: {
864
1011
  prev: string | null;
865
1012
  }, {
866
1013
  type: "plc_operation";
867
- alsoKnownAs: string[];
868
1014
  rotationKeys: string[];
869
1015
  verificationMethods: Record<string, string>;
1016
+ alsoKnownAs: string[];
870
1017
  services: Record<string, {
871
1018
  type: string;
872
1019
  endpoint: string;
873
1020
  }>;
874
1021
  prev: string | null;
875
1022
  }>;
876
- operation: z.ZodObject<z.extendShape<{
1023
+ operation: z.ZodObject<{
877
1024
  type: z.ZodLiteral<"plc_operation">;
878
1025
  rotationKeys: z.ZodArray<z.ZodString, "many">;
879
1026
  verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -881,7 +1028,7 @@ export declare const def: {
881
1028
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
882
1029
  type: z.ZodString;
883
1030
  endpoint: z.ZodString;
884
- }, "strip", z.ZodTypeAny, {
1031
+ }, "strict", z.ZodTypeAny, {
885
1032
  type: string;
886
1033
  endpoint: string;
887
1034
  }, {
@@ -889,13 +1036,13 @@ export declare const def: {
889
1036
  endpoint: string;
890
1037
  }>>;
891
1038
  prev: z.ZodNullable<z.ZodString>;
892
- }, {
1039
+ } & {
893
1040
  sig: z.ZodString;
894
- }>, "strip", z.ZodTypeAny, {
1041
+ }, "strict", z.ZodTypeAny, {
895
1042
  type: "plc_operation";
896
- alsoKnownAs: string[];
897
1043
  rotationKeys: string[];
898
1044
  verificationMethods: Record<string, string>;
1045
+ alsoKnownAs: string[];
899
1046
  services: Record<string, {
900
1047
  type: string;
901
1048
  endpoint: string;
@@ -904,9 +1051,9 @@ export declare const def: {
904
1051
  sig: string;
905
1052
  }, {
906
1053
  type: "plc_operation";
907
- alsoKnownAs: string[];
908
1054
  rotationKeys: string[];
909
1055
  verificationMethods: Record<string, string>;
1056
+ alsoKnownAs: string[];
910
1057
  services: Record<string, {
911
1058
  type: string;
912
1059
  endpoint: string;
@@ -914,12 +1061,12 @@ export declare const def: {
914
1061
  prev: string | null;
915
1062
  sig: string;
916
1063
  }>;
917
- tombstone: z.ZodObject<z.extendShape<{
1064
+ tombstone: z.ZodObject<{
918
1065
  type: z.ZodLiteral<"plc_tombstone">;
919
1066
  prev: z.ZodString;
920
- }, {
1067
+ } & {
921
1068
  sig: z.ZodString;
922
- }>, "strip", z.ZodTypeAny, {
1069
+ }, "strict", z.ZodTypeAny, {
923
1070
  type: "plc_tombstone";
924
1071
  prev: string;
925
1072
  sig: string;
@@ -928,7 +1075,7 @@ export declare const def: {
928
1075
  prev: string;
929
1076
  sig: string;
930
1077
  }>;
931
- opOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
1078
+ opOrTombstone: z.ZodUnion<[z.ZodObject<{
932
1079
  type: z.ZodLiteral<"plc_operation">;
933
1080
  rotationKeys: z.ZodArray<z.ZodString, "many">;
934
1081
  verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -936,7 +1083,7 @@ export declare const def: {
936
1083
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
937
1084
  type: z.ZodString;
938
1085
  endpoint: z.ZodString;
939
- }, "strip", z.ZodTypeAny, {
1086
+ }, "strict", z.ZodTypeAny, {
940
1087
  type: string;
941
1088
  endpoint: string;
942
1089
  }, {
@@ -944,13 +1091,13 @@ export declare const def: {
944
1091
  endpoint: string;
945
1092
  }>>;
946
1093
  prev: z.ZodNullable<z.ZodString>;
947
- }, {
1094
+ } & {
948
1095
  sig: z.ZodString;
949
- }>, "strip", z.ZodTypeAny, {
1096
+ }, "strict", z.ZodTypeAny, {
950
1097
  type: "plc_operation";
951
- alsoKnownAs: string[];
952
1098
  rotationKeys: string[];
953
1099
  verificationMethods: Record<string, string>;
1100
+ alsoKnownAs: string[];
954
1101
  services: Record<string, {
955
1102
  type: string;
956
1103
  endpoint: string;
@@ -959,21 +1106,21 @@ export declare const def: {
959
1106
  sig: string;
960
1107
  }, {
961
1108
  type: "plc_operation";
962
- alsoKnownAs: string[];
963
1109
  rotationKeys: string[];
964
1110
  verificationMethods: Record<string, string>;
1111
+ alsoKnownAs: string[];
965
1112
  services: Record<string, {
966
1113
  type: string;
967
1114
  endpoint: string;
968
1115
  }>;
969
1116
  prev: string | null;
970
1117
  sig: string;
971
- }>, z.ZodObject<z.extendShape<{
1118
+ }>, z.ZodObject<{
972
1119
  type: z.ZodLiteral<"plc_tombstone">;
973
1120
  prev: z.ZodString;
974
- }, {
1121
+ } & {
975
1122
  sig: z.ZodString;
976
- }>, "strip", z.ZodTypeAny, {
1123
+ }, "strict", z.ZodTypeAny, {
977
1124
  type: "plc_tombstone";
978
1125
  prev: string;
979
1126
  sig: string;
@@ -982,32 +1129,32 @@ export declare const def: {
982
1129
  prev: string;
983
1130
  sig: string;
984
1131
  }>]>;
985
- compatibleOp: z.ZodUnion<[z.ZodObject<z.extendShape<{
1132
+ compatibleOp: z.ZodUnion<[z.ZodObject<{
986
1133
  type: z.ZodLiteral<"create">;
987
1134
  signingKey: z.ZodString;
988
1135
  recoveryKey: z.ZodString;
989
1136
  handle: z.ZodString;
990
1137
  service: z.ZodString;
991
1138
  prev: z.ZodNull;
992
- }, {
1139
+ } & {
993
1140
  sig: z.ZodString;
994
- }>, "strip", z.ZodTypeAny, {
1141
+ }, "strict", z.ZodTypeAny, {
995
1142
  type: "create";
996
- service: string;
997
1143
  signingKey: string;
998
1144
  recoveryKey: string;
999
1145
  handle: string;
1146
+ service: string;
1000
1147
  prev: null;
1001
1148
  sig: string;
1002
1149
  }, {
1003
1150
  type: "create";
1004
- service: string;
1005
1151
  signingKey: string;
1006
1152
  recoveryKey: string;
1007
1153
  handle: string;
1154
+ service: string;
1008
1155
  prev: null;
1009
1156
  sig: string;
1010
- }>, z.ZodObject<z.extendShape<{
1157
+ }>, z.ZodObject<{
1011
1158
  type: z.ZodLiteral<"plc_operation">;
1012
1159
  rotationKeys: z.ZodArray<z.ZodString, "many">;
1013
1160
  verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -1015,7 +1162,7 @@ export declare const def: {
1015
1162
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
1016
1163
  type: z.ZodString;
1017
1164
  endpoint: z.ZodString;
1018
- }, "strip", z.ZodTypeAny, {
1165
+ }, "strict", z.ZodTypeAny, {
1019
1166
  type: string;
1020
1167
  endpoint: string;
1021
1168
  }, {
@@ -1023,13 +1170,13 @@ export declare const def: {
1023
1170
  endpoint: string;
1024
1171
  }>>;
1025
1172
  prev: z.ZodNullable<z.ZodString>;
1026
- }, {
1173
+ } & {
1027
1174
  sig: z.ZodString;
1028
- }>, "strip", z.ZodTypeAny, {
1175
+ }, "strict", z.ZodTypeAny, {
1029
1176
  type: "plc_operation";
1030
- alsoKnownAs: string[];
1031
1177
  rotationKeys: string[];
1032
1178
  verificationMethods: Record<string, string>;
1179
+ alsoKnownAs: string[];
1033
1180
  services: Record<string, {
1034
1181
  type: string;
1035
1182
  endpoint: string;
@@ -1038,9 +1185,9 @@ export declare const def: {
1038
1185
  sig: string;
1039
1186
  }, {
1040
1187
  type: "plc_operation";
1041
- alsoKnownAs: string[];
1042
1188
  rotationKeys: string[];
1043
1189
  verificationMethods: Record<string, string>;
1190
+ alsoKnownAs: string[];
1044
1191
  services: Record<string, {
1045
1192
  type: string;
1046
1193
  endpoint: string;
@@ -1048,32 +1195,32 @@ export declare const def: {
1048
1195
  prev: string | null;
1049
1196
  sig: string;
1050
1197
  }>]>;
1051
- compatibleOpOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
1198
+ compatibleOpOrTombstone: z.ZodUnion<[z.ZodObject<{
1052
1199
  type: z.ZodLiteral<"create">;
1053
1200
  signingKey: z.ZodString;
1054
1201
  recoveryKey: z.ZodString;
1055
1202
  handle: z.ZodString;
1056
1203
  service: z.ZodString;
1057
1204
  prev: z.ZodNull;
1058
- }, {
1205
+ } & {
1059
1206
  sig: z.ZodString;
1060
- }>, "strip", z.ZodTypeAny, {
1207
+ }, "strict", z.ZodTypeAny, {
1061
1208
  type: "create";
1062
- service: string;
1063
1209
  signingKey: string;
1064
1210
  recoveryKey: string;
1065
1211
  handle: string;
1212
+ service: string;
1066
1213
  prev: null;
1067
1214
  sig: string;
1068
1215
  }, {
1069
1216
  type: "create";
1070
- service: string;
1071
1217
  signingKey: string;
1072
1218
  recoveryKey: string;
1073
1219
  handle: string;
1220
+ service: string;
1074
1221
  prev: null;
1075
1222
  sig: string;
1076
- }>, z.ZodObject<z.extendShape<{
1223
+ }>, z.ZodObject<{
1077
1224
  type: z.ZodLiteral<"plc_operation">;
1078
1225
  rotationKeys: z.ZodArray<z.ZodString, "many">;
1079
1226
  verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -1081,7 +1228,7 @@ export declare const def: {
1081
1228
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
1082
1229
  type: z.ZodString;
1083
1230
  endpoint: z.ZodString;
1084
- }, "strip", z.ZodTypeAny, {
1231
+ }, "strict", z.ZodTypeAny, {
1085
1232
  type: string;
1086
1233
  endpoint: string;
1087
1234
  }, {
@@ -1089,13 +1236,13 @@ export declare const def: {
1089
1236
  endpoint: string;
1090
1237
  }>>;
1091
1238
  prev: z.ZodNullable<z.ZodString>;
1092
- }, {
1239
+ } & {
1093
1240
  sig: z.ZodString;
1094
- }>, "strip", z.ZodTypeAny, {
1241
+ }, "strict", z.ZodTypeAny, {
1095
1242
  type: "plc_operation";
1096
- alsoKnownAs: string[];
1097
1243
  rotationKeys: string[];
1098
1244
  verificationMethods: Record<string, string>;
1245
+ alsoKnownAs: string[];
1099
1246
  services: Record<string, {
1100
1247
  type: string;
1101
1248
  endpoint: string;
@@ -1104,21 +1251,21 @@ export declare const def: {
1104
1251
  sig: string;
1105
1252
  }, {
1106
1253
  type: "plc_operation";
1107
- alsoKnownAs: string[];
1108
1254
  rotationKeys: string[];
1109
1255
  verificationMethods: Record<string, string>;
1256
+ alsoKnownAs: string[];
1110
1257
  services: Record<string, {
1111
1258
  type: string;
1112
1259
  endpoint: string;
1113
1260
  }>;
1114
1261
  prev: string | null;
1115
1262
  sig: string;
1116
- }>, z.ZodObject<z.extendShape<{
1263
+ }>, z.ZodObject<{
1117
1264
  type: z.ZodLiteral<"plc_tombstone">;
1118
1265
  prev: z.ZodString;
1119
- }, {
1266
+ } & {
1120
1267
  sig: z.ZodString;
1121
- }>, "strip", z.ZodTypeAny, {
1268
+ }, "strict", z.ZodTypeAny, {
1122
1269
  type: "plc_tombstone";
1123
1270
  prev: string;
1124
1271
  sig: string;
@@ -1129,32 +1276,32 @@ export declare const def: {
1129
1276
  }>]>;
1130
1277
  indexedOperation: z.ZodObject<{
1131
1278
  did: z.ZodString;
1132
- operation: z.ZodUnion<[z.ZodObject<z.extendShape<{
1279
+ operation: z.ZodUnion<[z.ZodObject<{
1133
1280
  type: z.ZodLiteral<"create">;
1134
1281
  signingKey: z.ZodString;
1135
1282
  recoveryKey: z.ZodString;
1136
1283
  handle: z.ZodString;
1137
1284
  service: z.ZodString;
1138
1285
  prev: z.ZodNull;
1139
- }, {
1286
+ } & {
1140
1287
  sig: z.ZodString;
1141
- }>, "strip", z.ZodTypeAny, {
1288
+ }, "strict", z.ZodTypeAny, {
1142
1289
  type: "create";
1143
- service: string;
1144
1290
  signingKey: string;
1145
1291
  recoveryKey: string;
1146
1292
  handle: string;
1293
+ service: string;
1147
1294
  prev: null;
1148
1295
  sig: string;
1149
1296
  }, {
1150
1297
  type: "create";
1151
- service: string;
1152
1298
  signingKey: string;
1153
1299
  recoveryKey: string;
1154
1300
  handle: string;
1301
+ service: string;
1155
1302
  prev: null;
1156
1303
  sig: string;
1157
- }>, z.ZodObject<z.extendShape<{
1304
+ }>, z.ZodObject<{
1158
1305
  type: z.ZodLiteral<"plc_operation">;
1159
1306
  rotationKeys: z.ZodArray<z.ZodString, "many">;
1160
1307
  verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -1162,7 +1309,7 @@ export declare const def: {
1162
1309
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
1163
1310
  type: z.ZodString;
1164
1311
  endpoint: z.ZodString;
1165
- }, "strip", z.ZodTypeAny, {
1312
+ }, "strict", z.ZodTypeAny, {
1166
1313
  type: string;
1167
1314
  endpoint: string;
1168
1315
  }, {
@@ -1170,13 +1317,13 @@ export declare const def: {
1170
1317
  endpoint: string;
1171
1318
  }>>;
1172
1319
  prev: z.ZodNullable<z.ZodString>;
1173
- }, {
1320
+ } & {
1174
1321
  sig: z.ZodString;
1175
- }>, "strip", z.ZodTypeAny, {
1322
+ }, "strict", z.ZodTypeAny, {
1176
1323
  type: "plc_operation";
1177
- alsoKnownAs: string[];
1178
1324
  rotationKeys: string[];
1179
1325
  verificationMethods: Record<string, string>;
1326
+ alsoKnownAs: string[];
1180
1327
  services: Record<string, {
1181
1328
  type: string;
1182
1329
  endpoint: string;
@@ -1185,21 +1332,21 @@ export declare const def: {
1185
1332
  sig: string;
1186
1333
  }, {
1187
1334
  type: "plc_operation";
1188
- alsoKnownAs: string[];
1189
1335
  rotationKeys: string[];
1190
1336
  verificationMethods: Record<string, string>;
1337
+ alsoKnownAs: string[];
1191
1338
  services: Record<string, {
1192
1339
  type: string;
1193
1340
  endpoint: string;
1194
1341
  }>;
1195
1342
  prev: string | null;
1196
1343
  sig: string;
1197
- }>, z.ZodObject<z.extendShape<{
1344
+ }>, z.ZodObject<{
1198
1345
  type: z.ZodLiteral<"plc_tombstone">;
1199
1346
  prev: z.ZodString;
1200
- }, {
1347
+ } & {
1201
1348
  sig: z.ZodString;
1202
- }>, "strip", z.ZodTypeAny, {
1349
+ }, "strict", z.ZodTypeAny, {
1203
1350
  type: "plc_tombstone";
1204
1351
  prev: string;
1205
1352
  sig: string;
@@ -1208,24 +1355,24 @@ export declare const def: {
1208
1355
  prev: string;
1209
1356
  sig: string;
1210
1357
  }>]>;
1211
- cid: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, mf.CID, any>;
1358
+ cid: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, mf.CID<unknown, number, number, mf.Version>, any>;
1212
1359
  nullified: z.ZodBoolean;
1213
1360
  createdAt: z.ZodDate;
1214
1361
  }, "strip", z.ZodTypeAny, {
1215
1362
  did: string;
1216
1363
  operation: {
1217
1364
  type: "create";
1218
- service: string;
1219
1365
  signingKey: string;
1220
1366
  recoveryKey: string;
1221
1367
  handle: string;
1368
+ service: string;
1222
1369
  prev: null;
1223
1370
  sig: string;
1224
1371
  } | {
1225
1372
  type: "plc_operation";
1226
- alsoKnownAs: string[];
1227
1373
  rotationKeys: string[];
1228
1374
  verificationMethods: Record<string, string>;
1375
+ alsoKnownAs: string[];
1229
1376
  services: Record<string, {
1230
1377
  type: string;
1231
1378
  endpoint: string;
@@ -1237,25 +1384,24 @@ export declare const def: {
1237
1384
  prev: string;
1238
1385
  sig: string;
1239
1386
  };
1240
- cid: mf.CID;
1387
+ cid: mf.CID<unknown, number, number, mf.Version>;
1241
1388
  nullified: boolean;
1242
1389
  createdAt: Date;
1243
1390
  }, {
1244
- cid?: any;
1245
1391
  did: string;
1246
1392
  operation: {
1247
1393
  type: "create";
1248
- service: string;
1249
1394
  signingKey: string;
1250
1395
  recoveryKey: string;
1251
1396
  handle: string;
1397
+ service: string;
1252
1398
  prev: null;
1253
1399
  sig: string;
1254
1400
  } | {
1255
1401
  type: "plc_operation";
1256
- alsoKnownAs: string[];
1257
1402
  rotationKeys: string[];
1258
1403
  verificationMethods: Record<string, string>;
1404
+ alsoKnownAs: string[];
1259
1405
  services: Record<string, {
1260
1406
  type: string;
1261
1407
  endpoint: string;
@@ -1267,37 +1413,38 @@ export declare const def: {
1267
1413
  prev: string;
1268
1414
  sig: string;
1269
1415
  };
1416
+ cid?: any;
1270
1417
  nullified: boolean;
1271
1418
  createdAt: Date;
1272
1419
  }>;
1273
1420
  exportedOp: z.ZodObject<{
1274
1421
  did: z.ZodString;
1275
- operation: z.ZodUnion<[z.ZodObject<z.extendShape<{
1422
+ operation: z.ZodUnion<[z.ZodObject<{
1276
1423
  type: z.ZodLiteral<"create">;
1277
1424
  signingKey: z.ZodString;
1278
1425
  recoveryKey: z.ZodString;
1279
1426
  handle: z.ZodString;
1280
1427
  service: z.ZodString;
1281
1428
  prev: z.ZodNull;
1282
- }, {
1429
+ } & {
1283
1430
  sig: z.ZodString;
1284
- }>, "strip", z.ZodTypeAny, {
1431
+ }, "strict", z.ZodTypeAny, {
1285
1432
  type: "create";
1286
- service: string;
1287
1433
  signingKey: string;
1288
1434
  recoveryKey: string;
1289
1435
  handle: string;
1436
+ service: string;
1290
1437
  prev: null;
1291
1438
  sig: string;
1292
1439
  }, {
1293
1440
  type: "create";
1294
- service: string;
1295
1441
  signingKey: string;
1296
1442
  recoveryKey: string;
1297
1443
  handle: string;
1444
+ service: string;
1298
1445
  prev: null;
1299
1446
  sig: string;
1300
- }>, z.ZodObject<z.extendShape<{
1447
+ }>, z.ZodObject<{
1301
1448
  type: z.ZodLiteral<"plc_operation">;
1302
1449
  rotationKeys: z.ZodArray<z.ZodString, "many">;
1303
1450
  verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -1305,7 +1452,7 @@ export declare const def: {
1305
1452
  services: z.ZodRecord<z.ZodString, z.ZodObject<{
1306
1453
  type: z.ZodString;
1307
1454
  endpoint: z.ZodString;
1308
- }, "strip", z.ZodTypeAny, {
1455
+ }, "strict", z.ZodTypeAny, {
1309
1456
  type: string;
1310
1457
  endpoint: string;
1311
1458
  }, {
@@ -1313,13 +1460,13 @@ export declare const def: {
1313
1460
  endpoint: string;
1314
1461
  }>>;
1315
1462
  prev: z.ZodNullable<z.ZodString>;
1316
- }, {
1463
+ } & {
1317
1464
  sig: z.ZodString;
1318
- }>, "strip", z.ZodTypeAny, {
1465
+ }, "strict", z.ZodTypeAny, {
1319
1466
  type: "plc_operation";
1320
- alsoKnownAs: string[];
1321
1467
  rotationKeys: string[];
1322
1468
  verificationMethods: Record<string, string>;
1469
+ alsoKnownAs: string[];
1323
1470
  services: Record<string, {
1324
1471
  type: string;
1325
1472
  endpoint: string;
@@ -1328,21 +1475,21 @@ export declare const def: {
1328
1475
  sig: string;
1329
1476
  }, {
1330
1477
  type: "plc_operation";
1331
- alsoKnownAs: string[];
1332
1478
  rotationKeys: string[];
1333
1479
  verificationMethods: Record<string, string>;
1480
+ alsoKnownAs: string[];
1334
1481
  services: Record<string, {
1335
1482
  type: string;
1336
1483
  endpoint: string;
1337
1484
  }>;
1338
1485
  prev: string | null;
1339
1486
  sig: string;
1340
- }>, z.ZodObject<z.extendShape<{
1487
+ }>, z.ZodObject<{
1341
1488
  type: z.ZodLiteral<"plc_tombstone">;
1342
1489
  prev: z.ZodString;
1343
- }, {
1490
+ } & {
1344
1491
  sig: z.ZodString;
1345
- }>, "strip", z.ZodTypeAny, {
1492
+ }, "strict", z.ZodTypeAny, {
1346
1493
  type: "plc_tombstone";
1347
1494
  prev: string;
1348
1495
  sig: string;
@@ -1358,17 +1505,17 @@ export declare const def: {
1358
1505
  did: string;
1359
1506
  operation: {
1360
1507
  type: "create";
1361
- service: string;
1362
1508
  signingKey: string;
1363
1509
  recoveryKey: string;
1364
1510
  handle: string;
1511
+ service: string;
1365
1512
  prev: null;
1366
1513
  sig: string;
1367
1514
  } | {
1368
1515
  type: "plc_operation";
1369
- alsoKnownAs: string[];
1370
1516
  rotationKeys: string[];
1371
1517
  verificationMethods: Record<string, string>;
1518
+ alsoKnownAs: string[];
1372
1519
  services: Record<string, {
1373
1520
  type: string;
1374
1521
  endpoint: string;
@@ -1387,17 +1534,162 @@ export declare const def: {
1387
1534
  did: string;
1388
1535
  operation: {
1389
1536
  type: "create";
1537
+ signingKey: string;
1538
+ recoveryKey: string;
1539
+ handle: string;
1540
+ service: string;
1541
+ prev: null;
1542
+ sig: string;
1543
+ } | {
1544
+ type: "plc_operation";
1545
+ rotationKeys: string[];
1546
+ verificationMethods: Record<string, string>;
1547
+ alsoKnownAs: string[];
1548
+ services: Record<string, {
1549
+ type: string;
1550
+ endpoint: string;
1551
+ }>;
1552
+ prev: string | null;
1553
+ sig: string;
1554
+ } | {
1555
+ type: "plc_tombstone";
1556
+ prev: string;
1557
+ sig: string;
1558
+ };
1559
+ cid: string;
1560
+ nullified: boolean;
1561
+ createdAt: string;
1562
+ }>;
1563
+ exportedOpWithSeq: z.ZodObject<{
1564
+ did: z.ZodString;
1565
+ operation: z.ZodUnion<[z.ZodObject<{
1566
+ type: z.ZodLiteral<"create">;
1567
+ signingKey: z.ZodString;
1568
+ recoveryKey: z.ZodString;
1569
+ handle: z.ZodString;
1570
+ service: z.ZodString;
1571
+ prev: z.ZodNull;
1572
+ } & {
1573
+ sig: z.ZodString;
1574
+ }, "strict", z.ZodTypeAny, {
1575
+ type: "create";
1576
+ signingKey: string;
1577
+ recoveryKey: string;
1578
+ handle: string;
1390
1579
  service: string;
1580
+ prev: null;
1581
+ sig: string;
1582
+ }, {
1583
+ type: "create";
1584
+ signingKey: string;
1585
+ recoveryKey: string;
1586
+ handle: string;
1587
+ service: string;
1588
+ prev: null;
1589
+ sig: string;
1590
+ }>, z.ZodObject<{
1591
+ type: z.ZodLiteral<"plc_operation">;
1592
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
1593
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
1594
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
1595
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
1596
+ type: z.ZodString;
1597
+ endpoint: z.ZodString;
1598
+ }, "strict", z.ZodTypeAny, {
1599
+ type: string;
1600
+ endpoint: string;
1601
+ }, {
1602
+ type: string;
1603
+ endpoint: string;
1604
+ }>>;
1605
+ prev: z.ZodNullable<z.ZodString>;
1606
+ } & {
1607
+ sig: z.ZodString;
1608
+ }, "strict", z.ZodTypeAny, {
1609
+ type: "plc_operation";
1610
+ rotationKeys: string[];
1611
+ verificationMethods: Record<string, string>;
1612
+ alsoKnownAs: string[];
1613
+ services: Record<string, {
1614
+ type: string;
1615
+ endpoint: string;
1616
+ }>;
1617
+ prev: string | null;
1618
+ sig: string;
1619
+ }, {
1620
+ type: "plc_operation";
1621
+ rotationKeys: string[];
1622
+ verificationMethods: Record<string, string>;
1623
+ alsoKnownAs: string[];
1624
+ services: Record<string, {
1625
+ type: string;
1626
+ endpoint: string;
1627
+ }>;
1628
+ prev: string | null;
1629
+ sig: string;
1630
+ }>, z.ZodObject<{
1631
+ type: z.ZodLiteral<"plc_tombstone">;
1632
+ prev: z.ZodString;
1633
+ } & {
1634
+ sig: z.ZodString;
1635
+ }, "strict", z.ZodTypeAny, {
1636
+ type: "plc_tombstone";
1637
+ prev: string;
1638
+ sig: string;
1639
+ }, {
1640
+ type: "plc_tombstone";
1641
+ prev: string;
1642
+ sig: string;
1643
+ }>]>;
1644
+ cid: z.ZodString;
1645
+ createdAt: z.ZodString;
1646
+ seq: z.ZodNumber;
1647
+ type: z.ZodLiteral<"sequenced_op">;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ did: string;
1650
+ operation: {
1651
+ type: "create";
1391
1652
  signingKey: string;
1392
1653
  recoveryKey: string;
1393
1654
  handle: string;
1655
+ service: string;
1394
1656
  prev: null;
1395
1657
  sig: string;
1396
1658
  } | {
1397
1659
  type: "plc_operation";
1660
+ rotationKeys: string[];
1661
+ verificationMethods: Record<string, string>;
1398
1662
  alsoKnownAs: string[];
1663
+ services: Record<string, {
1664
+ type: string;
1665
+ endpoint: string;
1666
+ }>;
1667
+ prev: string | null;
1668
+ sig: string;
1669
+ } | {
1670
+ type: "plc_tombstone";
1671
+ prev: string;
1672
+ sig: string;
1673
+ };
1674
+ cid: string;
1675
+ createdAt: string;
1676
+ seq: number;
1677
+ type: "sequenced_op";
1678
+ }, {
1679
+ did: string;
1680
+ operation: {
1681
+ type: "create";
1682
+ signingKey: string;
1683
+ recoveryKey: string;
1684
+ handle: string;
1685
+ service: string;
1686
+ prev: null;
1687
+ sig: string;
1688
+ } | {
1689
+ type: "plc_operation";
1399
1690
  rotationKeys: string[];
1400
1691
  verificationMethods: Record<string, string>;
1692
+ alsoKnownAs: string[];
1401
1693
  services: Record<string, {
1402
1694
  type: string;
1403
1695
  endpoint: string;
@@ -1410,8 +1702,9 @@ export declare const def: {
1410
1702
  sig: string;
1411
1703
  };
1412
1704
  cid: string;
1413
- nullified: boolean;
1414
1705
  createdAt: string;
1706
+ seq: number;
1707
+ type: "sequenced_op";
1415
1708
  }>;
1416
1709
  didDocument: z.ZodObject<{
1417
1710
  '@context': z.ZodArray<z.ZodString, "many">;
@@ -1423,13 +1716,13 @@ export declare const def: {
1423
1716
  controller: z.ZodString;
1424
1717
  publicKeyMultibase: z.ZodString;
1425
1718
  }, "strip", z.ZodTypeAny, {
1426
- type: string;
1427
1719
  id: string;
1720
+ type: string;
1428
1721
  controller: string;
1429
1722
  publicKeyMultibase: string;
1430
1723
  }, {
1431
- type: string;
1432
1724
  id: string;
1725
+ type: string;
1433
1726
  controller: string;
1434
1727
  publicKeyMultibase: string;
1435
1728
  }>, "many">;
@@ -1438,12 +1731,12 @@ export declare const def: {
1438
1731
  type: z.ZodString;
1439
1732
  serviceEndpoint: z.ZodString;
1440
1733
  }, "strip", z.ZodTypeAny, {
1441
- type: string;
1442
1734
  id: string;
1735
+ type: string;
1443
1736
  serviceEndpoint: string;
1444
1737
  }, {
1445
- type: string;
1446
1738
  id: string;
1739
+ type: string;
1447
1740
  serviceEndpoint: string;
1448
1741
  }>, "many">;
1449
1742
  }, "strip", z.ZodTypeAny, {
@@ -1451,14 +1744,14 @@ export declare const def: {
1451
1744
  id: string;
1452
1745
  alsoKnownAs: string[];
1453
1746
  verificationMethod: {
1454
- type: string;
1455
1747
  id: string;
1748
+ type: string;
1456
1749
  controller: string;
1457
1750
  publicKeyMultibase: string;
1458
1751
  }[];
1459
1752
  service: {
1460
- type: string;
1461
1753
  id: string;
1754
+ type: string;
1462
1755
  serviceEndpoint: string;
1463
1756
  }[];
1464
1757
  }, {
@@ -1466,16 +1759,17 @@ export declare const def: {
1466
1759
  id: string;
1467
1760
  alsoKnownAs: string[];
1468
1761
  verificationMethod: {
1469
- type: string;
1470
1762
  id: string;
1763
+ type: string;
1471
1764
  controller: string;
1472
1765
  publicKeyMultibase: string;
1473
1766
  }[];
1474
1767
  service: {
1475
- type: string;
1476
1768
  id: string;
1769
+ type: string;
1477
1770
  serviceEndpoint: string;
1478
1771
  }[];
1479
1772
  }>;
1480
1773
  };
1481
1774
  export {};
1775
+ //# sourceMappingURL=types.d.ts.map