@did-plc/lib 0.0.1

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.
@@ -0,0 +1,1481 @@
1
+ import * as z from 'zod';
2
+ import * as mf from 'multiformats/cid';
3
+ declare const documentData: z.ZodObject<{
4
+ did: z.ZodString;
5
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
6
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
7
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
8
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
9
+ type: z.ZodString;
10
+ endpoint: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ type: string;
13
+ endpoint: string;
14
+ }, {
15
+ type: string;
16
+ endpoint: string;
17
+ }>>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ alsoKnownAs: string[];
20
+ did: string;
21
+ rotationKeys: string[];
22
+ verificationMethods: Record<string, string>;
23
+ services: Record<string, {
24
+ type: string;
25
+ endpoint: string;
26
+ }>;
27
+ }, {
28
+ alsoKnownAs: string[];
29
+ did: string;
30
+ rotationKeys: string[];
31
+ verificationMethods: Record<string, string>;
32
+ services: Record<string, {
33
+ type: string;
34
+ endpoint: string;
35
+ }>;
36
+ }>;
37
+ export declare type DocumentData = z.infer<typeof documentData>;
38
+ declare const unsignedCreateOpV1: z.ZodObject<{
39
+ type: z.ZodLiteral<"create">;
40
+ signingKey: z.ZodString;
41
+ recoveryKey: z.ZodString;
42
+ handle: z.ZodString;
43
+ service: z.ZodString;
44
+ prev: z.ZodNull;
45
+ }, "strip", z.ZodTypeAny, {
46
+ type: "create";
47
+ service: string;
48
+ signingKey: string;
49
+ recoveryKey: string;
50
+ handle: string;
51
+ prev: null;
52
+ }, {
53
+ type: "create";
54
+ service: string;
55
+ signingKey: string;
56
+ recoveryKey: string;
57
+ handle: string;
58
+ prev: null;
59
+ }>;
60
+ export declare type UnsignedCreateOpV1 = z.infer<typeof unsignedCreateOpV1>;
61
+ declare const createOpV1: z.ZodObject<z.extendShape<{
62
+ type: z.ZodLiteral<"create">;
63
+ signingKey: z.ZodString;
64
+ recoveryKey: z.ZodString;
65
+ handle: z.ZodString;
66
+ service: z.ZodString;
67
+ prev: z.ZodNull;
68
+ }, {
69
+ sig: z.ZodString;
70
+ }>, "strip", z.ZodTypeAny, {
71
+ type: "create";
72
+ service: string;
73
+ signingKey: string;
74
+ recoveryKey: string;
75
+ handle: string;
76
+ prev: null;
77
+ sig: string;
78
+ }, {
79
+ type: "create";
80
+ service: string;
81
+ signingKey: string;
82
+ recoveryKey: string;
83
+ handle: string;
84
+ prev: null;
85
+ sig: string;
86
+ }>;
87
+ export declare type CreateOpV1 = z.infer<typeof createOpV1>;
88
+ declare const unsignedOperation: z.ZodObject<{
89
+ type: z.ZodLiteral<"plc_operation">;
90
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
91
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
92
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
93
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
94
+ type: z.ZodString;
95
+ endpoint: z.ZodString;
96
+ }, "strip", z.ZodTypeAny, {
97
+ type: string;
98
+ endpoint: string;
99
+ }, {
100
+ type: string;
101
+ endpoint: string;
102
+ }>>;
103
+ prev: z.ZodNullable<z.ZodString>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ type: "plc_operation";
106
+ alsoKnownAs: string[];
107
+ rotationKeys: string[];
108
+ verificationMethods: Record<string, string>;
109
+ services: Record<string, {
110
+ type: string;
111
+ endpoint: string;
112
+ }>;
113
+ prev: string | null;
114
+ }, {
115
+ type: "plc_operation";
116
+ alsoKnownAs: string[];
117
+ rotationKeys: string[];
118
+ verificationMethods: Record<string, string>;
119
+ services: Record<string, {
120
+ type: string;
121
+ endpoint: string;
122
+ }>;
123
+ prev: string | null;
124
+ }>;
125
+ export declare type UnsignedOperation = z.infer<typeof unsignedOperation>;
126
+ declare const operation: z.ZodObject<z.extendShape<{
127
+ type: z.ZodLiteral<"plc_operation">;
128
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
129
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
130
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
131
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
132
+ type: z.ZodString;
133
+ endpoint: z.ZodString;
134
+ }, "strip", z.ZodTypeAny, {
135
+ type: string;
136
+ endpoint: string;
137
+ }, {
138
+ type: string;
139
+ endpoint: string;
140
+ }>>;
141
+ prev: z.ZodNullable<z.ZodString>;
142
+ }, {
143
+ sig: z.ZodString;
144
+ }>, "strip", z.ZodTypeAny, {
145
+ type: "plc_operation";
146
+ alsoKnownAs: string[];
147
+ rotationKeys: string[];
148
+ verificationMethods: Record<string, string>;
149
+ services: Record<string, {
150
+ type: string;
151
+ endpoint: string;
152
+ }>;
153
+ prev: string | null;
154
+ sig: string;
155
+ }, {
156
+ type: "plc_operation";
157
+ alsoKnownAs: string[];
158
+ rotationKeys: string[];
159
+ verificationMethods: Record<string, string>;
160
+ services: Record<string, {
161
+ type: string;
162
+ endpoint: string;
163
+ }>;
164
+ prev: string | null;
165
+ sig: string;
166
+ }>;
167
+ export declare type Operation = z.infer<typeof operation>;
168
+ declare const unsignedTombstone: z.ZodObject<{
169
+ type: z.ZodLiteral<"plc_tombstone">;
170
+ prev: z.ZodString;
171
+ }, "strip", z.ZodTypeAny, {
172
+ type: "plc_tombstone";
173
+ prev: string;
174
+ }, {
175
+ type: "plc_tombstone";
176
+ prev: string;
177
+ }>;
178
+ export declare type UnsignedTombstone = z.infer<typeof unsignedTombstone>;
179
+ declare const tombstone: z.ZodObject<z.extendShape<{
180
+ type: z.ZodLiteral<"plc_tombstone">;
181
+ prev: z.ZodString;
182
+ }, {
183
+ sig: z.ZodString;
184
+ }>, "strip", z.ZodTypeAny, {
185
+ type: "plc_tombstone";
186
+ prev: string;
187
+ sig: string;
188
+ }, {
189
+ type: "plc_tombstone";
190
+ prev: string;
191
+ sig: string;
192
+ }>;
193
+ export declare type Tombstone = z.infer<typeof tombstone>;
194
+ declare const opOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
195
+ type: z.ZodLiteral<"plc_operation">;
196
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
197
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
198
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
199
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
200
+ type: z.ZodString;
201
+ endpoint: z.ZodString;
202
+ }, "strip", z.ZodTypeAny, {
203
+ type: string;
204
+ endpoint: string;
205
+ }, {
206
+ type: string;
207
+ endpoint: string;
208
+ }>>;
209
+ prev: z.ZodNullable<z.ZodString>;
210
+ }, {
211
+ sig: z.ZodString;
212
+ }>, "strip", z.ZodTypeAny, {
213
+ type: "plc_operation";
214
+ alsoKnownAs: string[];
215
+ rotationKeys: string[];
216
+ verificationMethods: Record<string, string>;
217
+ services: Record<string, {
218
+ type: string;
219
+ endpoint: string;
220
+ }>;
221
+ prev: string | null;
222
+ sig: string;
223
+ }, {
224
+ type: "plc_operation";
225
+ alsoKnownAs: string[];
226
+ rotationKeys: string[];
227
+ verificationMethods: Record<string, string>;
228
+ services: Record<string, {
229
+ type: string;
230
+ endpoint: string;
231
+ }>;
232
+ prev: string | null;
233
+ sig: string;
234
+ }>, z.ZodObject<z.extendShape<{
235
+ type: z.ZodLiteral<"plc_tombstone">;
236
+ prev: z.ZodString;
237
+ }, {
238
+ sig: z.ZodString;
239
+ }>, "strip", z.ZodTypeAny, {
240
+ type: "plc_tombstone";
241
+ prev: string;
242
+ sig: string;
243
+ }, {
244
+ type: "plc_tombstone";
245
+ prev: string;
246
+ sig: string;
247
+ }>]>;
248
+ export declare type OpOrTombstone = z.infer<typeof opOrTombstone>;
249
+ declare const compatibleOp: z.ZodUnion<[z.ZodObject<z.extendShape<{
250
+ type: z.ZodLiteral<"create">;
251
+ signingKey: z.ZodString;
252
+ recoveryKey: z.ZodString;
253
+ handle: z.ZodString;
254
+ service: z.ZodString;
255
+ prev: z.ZodNull;
256
+ }, {
257
+ sig: z.ZodString;
258
+ }>, "strip", z.ZodTypeAny, {
259
+ type: "create";
260
+ service: string;
261
+ signingKey: string;
262
+ recoveryKey: string;
263
+ handle: string;
264
+ prev: null;
265
+ sig: string;
266
+ }, {
267
+ type: "create";
268
+ service: string;
269
+ signingKey: string;
270
+ recoveryKey: string;
271
+ handle: string;
272
+ prev: null;
273
+ sig: string;
274
+ }>, z.ZodObject<z.extendShape<{
275
+ type: z.ZodLiteral<"plc_operation">;
276
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
277
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
278
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
279
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
280
+ type: z.ZodString;
281
+ endpoint: z.ZodString;
282
+ }, "strip", z.ZodTypeAny, {
283
+ type: string;
284
+ endpoint: string;
285
+ }, {
286
+ type: string;
287
+ endpoint: string;
288
+ }>>;
289
+ prev: z.ZodNullable<z.ZodString>;
290
+ }, {
291
+ sig: z.ZodString;
292
+ }>, "strip", z.ZodTypeAny, {
293
+ type: "plc_operation";
294
+ alsoKnownAs: string[];
295
+ rotationKeys: string[];
296
+ verificationMethods: Record<string, string>;
297
+ services: Record<string, {
298
+ type: string;
299
+ endpoint: string;
300
+ }>;
301
+ prev: string | null;
302
+ sig: string;
303
+ }, {
304
+ type: "plc_operation";
305
+ alsoKnownAs: string[];
306
+ rotationKeys: string[];
307
+ verificationMethods: Record<string, string>;
308
+ services: Record<string, {
309
+ type: string;
310
+ endpoint: string;
311
+ }>;
312
+ prev: string | null;
313
+ sig: string;
314
+ }>]>;
315
+ export declare type CompatibleOp = z.infer<typeof compatibleOp>;
316
+ declare const compatibleOpOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
317
+ type: z.ZodLiteral<"create">;
318
+ signingKey: z.ZodString;
319
+ recoveryKey: z.ZodString;
320
+ handle: z.ZodString;
321
+ service: z.ZodString;
322
+ prev: z.ZodNull;
323
+ }, {
324
+ sig: z.ZodString;
325
+ }>, "strip", z.ZodTypeAny, {
326
+ type: "create";
327
+ service: string;
328
+ signingKey: string;
329
+ recoveryKey: string;
330
+ handle: string;
331
+ prev: null;
332
+ sig: string;
333
+ }, {
334
+ type: "create";
335
+ service: string;
336
+ signingKey: string;
337
+ recoveryKey: string;
338
+ handle: string;
339
+ prev: null;
340
+ sig: string;
341
+ }>, z.ZodObject<z.extendShape<{
342
+ type: z.ZodLiteral<"plc_operation">;
343
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
344
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
345
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
346
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
347
+ type: z.ZodString;
348
+ endpoint: z.ZodString;
349
+ }, "strip", z.ZodTypeAny, {
350
+ type: string;
351
+ endpoint: string;
352
+ }, {
353
+ type: string;
354
+ endpoint: string;
355
+ }>>;
356
+ prev: z.ZodNullable<z.ZodString>;
357
+ }, {
358
+ sig: z.ZodString;
359
+ }>, "strip", z.ZodTypeAny, {
360
+ type: "plc_operation";
361
+ alsoKnownAs: string[];
362
+ rotationKeys: string[];
363
+ verificationMethods: Record<string, string>;
364
+ services: Record<string, {
365
+ type: string;
366
+ endpoint: string;
367
+ }>;
368
+ prev: string | null;
369
+ sig: string;
370
+ }, {
371
+ type: "plc_operation";
372
+ alsoKnownAs: string[];
373
+ rotationKeys: string[];
374
+ verificationMethods: Record<string, string>;
375
+ services: Record<string, {
376
+ type: string;
377
+ endpoint: string;
378
+ }>;
379
+ prev: string | null;
380
+ sig: string;
381
+ }>, z.ZodObject<z.extendShape<{
382
+ type: z.ZodLiteral<"plc_tombstone">;
383
+ prev: z.ZodString;
384
+ }, {
385
+ sig: z.ZodString;
386
+ }>, "strip", z.ZodTypeAny, {
387
+ type: "plc_tombstone";
388
+ prev: string;
389
+ sig: string;
390
+ }, {
391
+ type: "plc_tombstone";
392
+ prev: string;
393
+ sig: string;
394
+ }>]>;
395
+ export declare type CompatibleOpOrTombstone = z.infer<typeof compatibleOpOrTombstone>;
396
+ export declare const indexedOperation: z.ZodObject<{
397
+ did: z.ZodString;
398
+ operation: z.ZodUnion<[z.ZodObject<z.extendShape<{
399
+ type: z.ZodLiteral<"create">;
400
+ signingKey: z.ZodString;
401
+ recoveryKey: z.ZodString;
402
+ handle: z.ZodString;
403
+ service: z.ZodString;
404
+ prev: z.ZodNull;
405
+ }, {
406
+ sig: z.ZodString;
407
+ }>, "strip", z.ZodTypeAny, {
408
+ type: "create";
409
+ service: string;
410
+ signingKey: string;
411
+ recoveryKey: string;
412
+ handle: string;
413
+ prev: null;
414
+ sig: string;
415
+ }, {
416
+ type: "create";
417
+ service: string;
418
+ signingKey: string;
419
+ recoveryKey: string;
420
+ handle: string;
421
+ prev: null;
422
+ sig: string;
423
+ }>, z.ZodObject<z.extendShape<{
424
+ type: z.ZodLiteral<"plc_operation">;
425
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
426
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
427
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
428
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
429
+ type: z.ZodString;
430
+ endpoint: z.ZodString;
431
+ }, "strip", z.ZodTypeAny, {
432
+ type: string;
433
+ endpoint: string;
434
+ }, {
435
+ type: string;
436
+ endpoint: string;
437
+ }>>;
438
+ prev: z.ZodNullable<z.ZodString>;
439
+ }, {
440
+ sig: z.ZodString;
441
+ }>, "strip", z.ZodTypeAny, {
442
+ type: "plc_operation";
443
+ alsoKnownAs: string[];
444
+ rotationKeys: string[];
445
+ verificationMethods: Record<string, string>;
446
+ services: Record<string, {
447
+ type: string;
448
+ endpoint: string;
449
+ }>;
450
+ prev: string | null;
451
+ sig: string;
452
+ }, {
453
+ type: "plc_operation";
454
+ alsoKnownAs: string[];
455
+ rotationKeys: string[];
456
+ verificationMethods: Record<string, string>;
457
+ services: Record<string, {
458
+ type: string;
459
+ endpoint: string;
460
+ }>;
461
+ prev: string | null;
462
+ sig: string;
463
+ }>, z.ZodObject<z.extendShape<{
464
+ type: z.ZodLiteral<"plc_tombstone">;
465
+ prev: z.ZodString;
466
+ }, {
467
+ sig: z.ZodString;
468
+ }>, "strip", z.ZodTypeAny, {
469
+ type: "plc_tombstone";
470
+ prev: string;
471
+ sig: string;
472
+ }, {
473
+ type: "plc_tombstone";
474
+ prev: string;
475
+ sig: string;
476
+ }>]>;
477
+ cid: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, mf.CID, any>;
478
+ nullified: z.ZodBoolean;
479
+ createdAt: z.ZodDate;
480
+ }, "strip", z.ZodTypeAny, {
481
+ did: string;
482
+ operation: {
483
+ type: "create";
484
+ service: string;
485
+ signingKey: string;
486
+ recoveryKey: string;
487
+ handle: string;
488
+ prev: null;
489
+ sig: string;
490
+ } | {
491
+ type: "plc_operation";
492
+ alsoKnownAs: string[];
493
+ rotationKeys: string[];
494
+ verificationMethods: Record<string, string>;
495
+ services: Record<string, {
496
+ type: string;
497
+ endpoint: string;
498
+ }>;
499
+ prev: string | null;
500
+ sig: string;
501
+ } | {
502
+ type: "plc_tombstone";
503
+ prev: string;
504
+ sig: string;
505
+ };
506
+ cid: mf.CID;
507
+ nullified: boolean;
508
+ createdAt: Date;
509
+ }, {
510
+ cid?: any;
511
+ did: string;
512
+ operation: {
513
+ type: "create";
514
+ service: string;
515
+ signingKey: string;
516
+ recoveryKey: string;
517
+ handle: string;
518
+ prev: null;
519
+ sig: string;
520
+ } | {
521
+ type: "plc_operation";
522
+ alsoKnownAs: string[];
523
+ rotationKeys: string[];
524
+ verificationMethods: Record<string, string>;
525
+ services: Record<string, {
526
+ type: string;
527
+ endpoint: string;
528
+ }>;
529
+ prev: string | null;
530
+ sig: string;
531
+ } | {
532
+ type: "plc_tombstone";
533
+ prev: string;
534
+ sig: string;
535
+ };
536
+ nullified: boolean;
537
+ createdAt: Date;
538
+ }>;
539
+ export declare type IndexedOperation = z.infer<typeof indexedOperation>;
540
+ export declare const exportedOp: z.ZodObject<{
541
+ did: z.ZodString;
542
+ operation: z.ZodUnion<[z.ZodObject<z.extendShape<{
543
+ type: z.ZodLiteral<"create">;
544
+ signingKey: z.ZodString;
545
+ recoveryKey: z.ZodString;
546
+ handle: z.ZodString;
547
+ service: z.ZodString;
548
+ prev: z.ZodNull;
549
+ }, {
550
+ sig: z.ZodString;
551
+ }>, "strip", z.ZodTypeAny, {
552
+ type: "create";
553
+ service: string;
554
+ signingKey: string;
555
+ recoveryKey: string;
556
+ handle: string;
557
+ prev: null;
558
+ sig: string;
559
+ }, {
560
+ type: "create";
561
+ service: string;
562
+ signingKey: string;
563
+ recoveryKey: string;
564
+ handle: string;
565
+ prev: null;
566
+ sig: string;
567
+ }>, z.ZodObject<z.extendShape<{
568
+ type: z.ZodLiteral<"plc_operation">;
569
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
570
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
571
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
572
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
573
+ type: z.ZodString;
574
+ endpoint: z.ZodString;
575
+ }, "strip", z.ZodTypeAny, {
576
+ type: string;
577
+ endpoint: string;
578
+ }, {
579
+ type: string;
580
+ endpoint: string;
581
+ }>>;
582
+ prev: z.ZodNullable<z.ZodString>;
583
+ }, {
584
+ sig: z.ZodString;
585
+ }>, "strip", z.ZodTypeAny, {
586
+ type: "plc_operation";
587
+ alsoKnownAs: string[];
588
+ rotationKeys: string[];
589
+ verificationMethods: Record<string, string>;
590
+ services: Record<string, {
591
+ type: string;
592
+ endpoint: string;
593
+ }>;
594
+ prev: string | null;
595
+ sig: string;
596
+ }, {
597
+ type: "plc_operation";
598
+ alsoKnownAs: string[];
599
+ rotationKeys: string[];
600
+ verificationMethods: Record<string, string>;
601
+ services: Record<string, {
602
+ type: string;
603
+ endpoint: string;
604
+ }>;
605
+ prev: string | null;
606
+ sig: string;
607
+ }>, z.ZodObject<z.extendShape<{
608
+ type: z.ZodLiteral<"plc_tombstone">;
609
+ prev: z.ZodString;
610
+ }, {
611
+ sig: z.ZodString;
612
+ }>, "strip", z.ZodTypeAny, {
613
+ type: "plc_tombstone";
614
+ prev: string;
615
+ sig: string;
616
+ }, {
617
+ type: "plc_tombstone";
618
+ prev: string;
619
+ sig: string;
620
+ }>]>;
621
+ cid: z.ZodString;
622
+ nullified: z.ZodBoolean;
623
+ createdAt: z.ZodString;
624
+ }, "strip", z.ZodTypeAny, {
625
+ did: string;
626
+ operation: {
627
+ type: "create";
628
+ service: string;
629
+ signingKey: string;
630
+ recoveryKey: string;
631
+ handle: string;
632
+ prev: null;
633
+ sig: string;
634
+ } | {
635
+ type: "plc_operation";
636
+ alsoKnownAs: string[];
637
+ rotationKeys: string[];
638
+ verificationMethods: Record<string, string>;
639
+ services: Record<string, {
640
+ type: string;
641
+ endpoint: string;
642
+ }>;
643
+ prev: string | null;
644
+ sig: string;
645
+ } | {
646
+ type: "plc_tombstone";
647
+ prev: string;
648
+ sig: string;
649
+ };
650
+ cid: string;
651
+ nullified: boolean;
652
+ createdAt: string;
653
+ }, {
654
+ did: string;
655
+ operation: {
656
+ type: "create";
657
+ service: string;
658
+ signingKey: string;
659
+ recoveryKey: string;
660
+ handle: string;
661
+ prev: null;
662
+ sig: string;
663
+ } | {
664
+ type: "plc_operation";
665
+ alsoKnownAs: string[];
666
+ rotationKeys: string[];
667
+ verificationMethods: Record<string, 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 declare type ExportedOp = z.infer<typeof exportedOp>;
684
+ export declare const didDocVerificationMethod: z.ZodObject<{
685
+ id: z.ZodString;
686
+ type: z.ZodString;
687
+ controller: z.ZodString;
688
+ publicKeyMultibase: z.ZodString;
689
+ }, "strip", z.ZodTypeAny, {
690
+ type: string;
691
+ id: string;
692
+ controller: string;
693
+ publicKeyMultibase: string;
694
+ }, {
695
+ type: string;
696
+ id: string;
697
+ controller: string;
698
+ publicKeyMultibase: string;
699
+ }>;
700
+ export declare const didDocService: z.ZodObject<{
701
+ id: z.ZodString;
702
+ type: z.ZodString;
703
+ serviceEndpoint: z.ZodString;
704
+ }, "strip", z.ZodTypeAny, {
705
+ type: string;
706
+ id: string;
707
+ serviceEndpoint: string;
708
+ }, {
709
+ type: string;
710
+ id: string;
711
+ serviceEndpoint: string;
712
+ }>;
713
+ export declare const didDocument: z.ZodObject<{
714
+ '@context': z.ZodArray<z.ZodString, "many">;
715
+ id: z.ZodString;
716
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
717
+ verificationMethod: z.ZodArray<z.ZodObject<{
718
+ id: z.ZodString;
719
+ type: z.ZodString;
720
+ controller: z.ZodString;
721
+ publicKeyMultibase: z.ZodString;
722
+ }, "strip", z.ZodTypeAny, {
723
+ type: string;
724
+ id: string;
725
+ controller: string;
726
+ publicKeyMultibase: string;
727
+ }, {
728
+ type: string;
729
+ id: string;
730
+ controller: string;
731
+ publicKeyMultibase: string;
732
+ }>, "many">;
733
+ service: z.ZodArray<z.ZodObject<{
734
+ id: z.ZodString;
735
+ type: z.ZodString;
736
+ serviceEndpoint: z.ZodString;
737
+ }, "strip", z.ZodTypeAny, {
738
+ type: string;
739
+ id: string;
740
+ serviceEndpoint: string;
741
+ }, {
742
+ type: string;
743
+ id: string;
744
+ serviceEndpoint: string;
745
+ }>, "many">;
746
+ }, "strip", z.ZodTypeAny, {
747
+ '@context': string[];
748
+ id: string;
749
+ alsoKnownAs: string[];
750
+ verificationMethod: {
751
+ type: string;
752
+ id: string;
753
+ controller: string;
754
+ publicKeyMultibase: string;
755
+ }[];
756
+ service: {
757
+ type: string;
758
+ id: string;
759
+ serviceEndpoint: string;
760
+ }[];
761
+ }, {
762
+ '@context': string[];
763
+ id: string;
764
+ alsoKnownAs: string[];
765
+ verificationMethod: {
766
+ type: string;
767
+ id: string;
768
+ controller: string;
769
+ publicKeyMultibase: string;
770
+ }[];
771
+ service: {
772
+ type: string;
773
+ id: string;
774
+ serviceEndpoint: string;
775
+ }[];
776
+ }>;
777
+ export declare type DidDocument = z.infer<typeof didDocument>;
778
+ export declare const def: {
779
+ documentData: z.ZodObject<{
780
+ did: z.ZodString;
781
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
782
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
783
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
784
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
785
+ type: z.ZodString;
786
+ endpoint: z.ZodString;
787
+ }, "strip", z.ZodTypeAny, {
788
+ type: string;
789
+ endpoint: string;
790
+ }, {
791
+ type: string;
792
+ endpoint: string;
793
+ }>>;
794
+ }, "strip", z.ZodTypeAny, {
795
+ alsoKnownAs: string[];
796
+ did: string;
797
+ rotationKeys: string[];
798
+ verificationMethods: Record<string, string>;
799
+ services: Record<string, {
800
+ type: string;
801
+ endpoint: string;
802
+ }>;
803
+ }, {
804
+ alsoKnownAs: string[];
805
+ did: string;
806
+ rotationKeys: string[];
807
+ verificationMethods: Record<string, string>;
808
+ services: Record<string, {
809
+ type: string;
810
+ endpoint: string;
811
+ }>;
812
+ }>;
813
+ createOpV1: z.ZodObject<z.extendShape<{
814
+ type: z.ZodLiteral<"create">;
815
+ signingKey: z.ZodString;
816
+ recoveryKey: z.ZodString;
817
+ handle: z.ZodString;
818
+ service: z.ZodString;
819
+ prev: z.ZodNull;
820
+ }, {
821
+ sig: z.ZodString;
822
+ }>, "strip", z.ZodTypeAny, {
823
+ type: "create";
824
+ service: string;
825
+ signingKey: string;
826
+ recoveryKey: string;
827
+ handle: string;
828
+ prev: null;
829
+ sig: string;
830
+ }, {
831
+ type: "create";
832
+ service: string;
833
+ signingKey: string;
834
+ recoveryKey: string;
835
+ handle: string;
836
+ prev: null;
837
+ sig: string;
838
+ }>;
839
+ unsignedOperation: z.ZodObject<{
840
+ type: z.ZodLiteral<"plc_operation">;
841
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
842
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
843
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
844
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
845
+ type: z.ZodString;
846
+ endpoint: z.ZodString;
847
+ }, "strip", z.ZodTypeAny, {
848
+ type: string;
849
+ endpoint: string;
850
+ }, {
851
+ type: string;
852
+ endpoint: string;
853
+ }>>;
854
+ prev: z.ZodNullable<z.ZodString>;
855
+ }, "strip", z.ZodTypeAny, {
856
+ type: "plc_operation";
857
+ alsoKnownAs: string[];
858
+ rotationKeys: string[];
859
+ verificationMethods: Record<string, string>;
860
+ services: Record<string, {
861
+ type: string;
862
+ endpoint: string;
863
+ }>;
864
+ prev: string | null;
865
+ }, {
866
+ type: "plc_operation";
867
+ alsoKnownAs: string[];
868
+ rotationKeys: string[];
869
+ verificationMethods: Record<string, string>;
870
+ services: Record<string, {
871
+ type: string;
872
+ endpoint: string;
873
+ }>;
874
+ prev: string | null;
875
+ }>;
876
+ operation: z.ZodObject<z.extendShape<{
877
+ type: z.ZodLiteral<"plc_operation">;
878
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
879
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
880
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
881
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
882
+ type: z.ZodString;
883
+ endpoint: z.ZodString;
884
+ }, "strip", z.ZodTypeAny, {
885
+ type: string;
886
+ endpoint: string;
887
+ }, {
888
+ type: string;
889
+ endpoint: string;
890
+ }>>;
891
+ prev: z.ZodNullable<z.ZodString>;
892
+ }, {
893
+ sig: z.ZodString;
894
+ }>, "strip", z.ZodTypeAny, {
895
+ type: "plc_operation";
896
+ alsoKnownAs: string[];
897
+ rotationKeys: string[];
898
+ verificationMethods: Record<string, string>;
899
+ services: Record<string, {
900
+ type: string;
901
+ endpoint: string;
902
+ }>;
903
+ prev: string | null;
904
+ sig: string;
905
+ }, {
906
+ type: "plc_operation";
907
+ alsoKnownAs: string[];
908
+ rotationKeys: string[];
909
+ verificationMethods: Record<string, string>;
910
+ services: Record<string, {
911
+ type: string;
912
+ endpoint: string;
913
+ }>;
914
+ prev: string | null;
915
+ sig: string;
916
+ }>;
917
+ tombstone: z.ZodObject<z.extendShape<{
918
+ type: z.ZodLiteral<"plc_tombstone">;
919
+ prev: z.ZodString;
920
+ }, {
921
+ sig: z.ZodString;
922
+ }>, "strip", z.ZodTypeAny, {
923
+ type: "plc_tombstone";
924
+ prev: string;
925
+ sig: string;
926
+ }, {
927
+ type: "plc_tombstone";
928
+ prev: string;
929
+ sig: string;
930
+ }>;
931
+ opOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
932
+ type: z.ZodLiteral<"plc_operation">;
933
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
934
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
935
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
936
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
937
+ type: z.ZodString;
938
+ endpoint: z.ZodString;
939
+ }, "strip", z.ZodTypeAny, {
940
+ type: string;
941
+ endpoint: string;
942
+ }, {
943
+ type: string;
944
+ endpoint: string;
945
+ }>>;
946
+ prev: z.ZodNullable<z.ZodString>;
947
+ }, {
948
+ sig: z.ZodString;
949
+ }>, "strip", z.ZodTypeAny, {
950
+ type: "plc_operation";
951
+ alsoKnownAs: string[];
952
+ rotationKeys: string[];
953
+ verificationMethods: Record<string, string>;
954
+ services: Record<string, {
955
+ type: string;
956
+ endpoint: string;
957
+ }>;
958
+ prev: string | null;
959
+ sig: string;
960
+ }, {
961
+ type: "plc_operation";
962
+ alsoKnownAs: string[];
963
+ rotationKeys: string[];
964
+ verificationMethods: Record<string, string>;
965
+ services: Record<string, {
966
+ type: string;
967
+ endpoint: string;
968
+ }>;
969
+ prev: string | null;
970
+ sig: string;
971
+ }>, z.ZodObject<z.extendShape<{
972
+ type: z.ZodLiteral<"plc_tombstone">;
973
+ prev: z.ZodString;
974
+ }, {
975
+ sig: z.ZodString;
976
+ }>, "strip", z.ZodTypeAny, {
977
+ type: "plc_tombstone";
978
+ prev: string;
979
+ sig: string;
980
+ }, {
981
+ type: "plc_tombstone";
982
+ prev: string;
983
+ sig: string;
984
+ }>]>;
985
+ compatibleOp: z.ZodUnion<[z.ZodObject<z.extendShape<{
986
+ type: z.ZodLiteral<"create">;
987
+ signingKey: z.ZodString;
988
+ recoveryKey: z.ZodString;
989
+ handle: z.ZodString;
990
+ service: z.ZodString;
991
+ prev: z.ZodNull;
992
+ }, {
993
+ sig: z.ZodString;
994
+ }>, "strip", z.ZodTypeAny, {
995
+ type: "create";
996
+ service: string;
997
+ signingKey: string;
998
+ recoveryKey: string;
999
+ handle: string;
1000
+ prev: null;
1001
+ sig: string;
1002
+ }, {
1003
+ type: "create";
1004
+ service: string;
1005
+ signingKey: string;
1006
+ recoveryKey: string;
1007
+ handle: string;
1008
+ prev: null;
1009
+ sig: string;
1010
+ }>, z.ZodObject<z.extendShape<{
1011
+ type: z.ZodLiteral<"plc_operation">;
1012
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
1013
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
1014
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
1015
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
1016
+ type: z.ZodString;
1017
+ endpoint: z.ZodString;
1018
+ }, "strip", z.ZodTypeAny, {
1019
+ type: string;
1020
+ endpoint: string;
1021
+ }, {
1022
+ type: string;
1023
+ endpoint: string;
1024
+ }>>;
1025
+ prev: z.ZodNullable<z.ZodString>;
1026
+ }, {
1027
+ sig: z.ZodString;
1028
+ }>, "strip", z.ZodTypeAny, {
1029
+ type: "plc_operation";
1030
+ alsoKnownAs: string[];
1031
+ rotationKeys: string[];
1032
+ verificationMethods: Record<string, string>;
1033
+ services: Record<string, {
1034
+ type: string;
1035
+ endpoint: string;
1036
+ }>;
1037
+ prev: string | null;
1038
+ sig: string;
1039
+ }, {
1040
+ type: "plc_operation";
1041
+ alsoKnownAs: string[];
1042
+ rotationKeys: string[];
1043
+ verificationMethods: Record<string, string>;
1044
+ services: Record<string, {
1045
+ type: string;
1046
+ endpoint: string;
1047
+ }>;
1048
+ prev: string | null;
1049
+ sig: string;
1050
+ }>]>;
1051
+ compatibleOpOrTombstone: z.ZodUnion<[z.ZodObject<z.extendShape<{
1052
+ type: z.ZodLiteral<"create">;
1053
+ signingKey: z.ZodString;
1054
+ recoveryKey: z.ZodString;
1055
+ handle: z.ZodString;
1056
+ service: z.ZodString;
1057
+ prev: z.ZodNull;
1058
+ }, {
1059
+ sig: z.ZodString;
1060
+ }>, "strip", z.ZodTypeAny, {
1061
+ type: "create";
1062
+ service: string;
1063
+ signingKey: string;
1064
+ recoveryKey: string;
1065
+ handle: string;
1066
+ prev: null;
1067
+ sig: string;
1068
+ }, {
1069
+ type: "create";
1070
+ service: string;
1071
+ signingKey: string;
1072
+ recoveryKey: string;
1073
+ handle: string;
1074
+ prev: null;
1075
+ sig: string;
1076
+ }>, z.ZodObject<z.extendShape<{
1077
+ type: z.ZodLiteral<"plc_operation">;
1078
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
1079
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
1080
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
1081
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
1082
+ type: z.ZodString;
1083
+ endpoint: z.ZodString;
1084
+ }, "strip", z.ZodTypeAny, {
1085
+ type: string;
1086
+ endpoint: string;
1087
+ }, {
1088
+ type: string;
1089
+ endpoint: string;
1090
+ }>>;
1091
+ prev: z.ZodNullable<z.ZodString>;
1092
+ }, {
1093
+ sig: z.ZodString;
1094
+ }>, "strip", z.ZodTypeAny, {
1095
+ type: "plc_operation";
1096
+ alsoKnownAs: string[];
1097
+ rotationKeys: string[];
1098
+ verificationMethods: Record<string, string>;
1099
+ services: Record<string, {
1100
+ type: string;
1101
+ endpoint: string;
1102
+ }>;
1103
+ prev: string | null;
1104
+ sig: string;
1105
+ }, {
1106
+ type: "plc_operation";
1107
+ alsoKnownAs: string[];
1108
+ rotationKeys: string[];
1109
+ verificationMethods: Record<string, string>;
1110
+ services: Record<string, {
1111
+ type: string;
1112
+ endpoint: string;
1113
+ }>;
1114
+ prev: string | null;
1115
+ sig: string;
1116
+ }>, z.ZodObject<z.extendShape<{
1117
+ type: z.ZodLiteral<"plc_tombstone">;
1118
+ prev: z.ZodString;
1119
+ }, {
1120
+ sig: z.ZodString;
1121
+ }>, "strip", z.ZodTypeAny, {
1122
+ type: "plc_tombstone";
1123
+ prev: string;
1124
+ sig: string;
1125
+ }, {
1126
+ type: "plc_tombstone";
1127
+ prev: string;
1128
+ sig: string;
1129
+ }>]>;
1130
+ indexedOperation: z.ZodObject<{
1131
+ did: z.ZodString;
1132
+ operation: z.ZodUnion<[z.ZodObject<z.extendShape<{
1133
+ type: z.ZodLiteral<"create">;
1134
+ signingKey: z.ZodString;
1135
+ recoveryKey: z.ZodString;
1136
+ handle: z.ZodString;
1137
+ service: z.ZodString;
1138
+ prev: z.ZodNull;
1139
+ }, {
1140
+ sig: z.ZodString;
1141
+ }>, "strip", z.ZodTypeAny, {
1142
+ type: "create";
1143
+ service: string;
1144
+ signingKey: string;
1145
+ recoveryKey: string;
1146
+ handle: string;
1147
+ prev: null;
1148
+ sig: string;
1149
+ }, {
1150
+ type: "create";
1151
+ service: string;
1152
+ signingKey: string;
1153
+ recoveryKey: string;
1154
+ handle: string;
1155
+ prev: null;
1156
+ sig: string;
1157
+ }>, z.ZodObject<z.extendShape<{
1158
+ type: z.ZodLiteral<"plc_operation">;
1159
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
1160
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
1161
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
1162
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
1163
+ type: z.ZodString;
1164
+ endpoint: z.ZodString;
1165
+ }, "strip", z.ZodTypeAny, {
1166
+ type: string;
1167
+ endpoint: string;
1168
+ }, {
1169
+ type: string;
1170
+ endpoint: string;
1171
+ }>>;
1172
+ prev: z.ZodNullable<z.ZodString>;
1173
+ }, {
1174
+ sig: z.ZodString;
1175
+ }>, "strip", z.ZodTypeAny, {
1176
+ type: "plc_operation";
1177
+ alsoKnownAs: string[];
1178
+ rotationKeys: string[];
1179
+ verificationMethods: Record<string, string>;
1180
+ services: Record<string, {
1181
+ type: string;
1182
+ endpoint: string;
1183
+ }>;
1184
+ prev: string | null;
1185
+ sig: string;
1186
+ }, {
1187
+ type: "plc_operation";
1188
+ alsoKnownAs: string[];
1189
+ rotationKeys: string[];
1190
+ verificationMethods: Record<string, string>;
1191
+ services: Record<string, {
1192
+ type: string;
1193
+ endpoint: string;
1194
+ }>;
1195
+ prev: string | null;
1196
+ sig: string;
1197
+ }>, z.ZodObject<z.extendShape<{
1198
+ type: z.ZodLiteral<"plc_tombstone">;
1199
+ prev: z.ZodString;
1200
+ }, {
1201
+ sig: z.ZodString;
1202
+ }>, "strip", z.ZodTypeAny, {
1203
+ type: "plc_tombstone";
1204
+ prev: string;
1205
+ sig: string;
1206
+ }, {
1207
+ type: "plc_tombstone";
1208
+ prev: string;
1209
+ sig: string;
1210
+ }>]>;
1211
+ cid: z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, mf.CID, any>;
1212
+ nullified: z.ZodBoolean;
1213
+ createdAt: z.ZodDate;
1214
+ }, "strip", z.ZodTypeAny, {
1215
+ did: string;
1216
+ operation: {
1217
+ type: "create";
1218
+ service: string;
1219
+ signingKey: string;
1220
+ recoveryKey: string;
1221
+ handle: string;
1222
+ prev: null;
1223
+ sig: string;
1224
+ } | {
1225
+ type: "plc_operation";
1226
+ alsoKnownAs: string[];
1227
+ rotationKeys: string[];
1228
+ verificationMethods: Record<string, string>;
1229
+ services: Record<string, {
1230
+ type: string;
1231
+ endpoint: string;
1232
+ }>;
1233
+ prev: string | null;
1234
+ sig: string;
1235
+ } | {
1236
+ type: "plc_tombstone";
1237
+ prev: string;
1238
+ sig: string;
1239
+ };
1240
+ cid: mf.CID;
1241
+ nullified: boolean;
1242
+ createdAt: Date;
1243
+ }, {
1244
+ cid?: any;
1245
+ did: string;
1246
+ operation: {
1247
+ type: "create";
1248
+ service: string;
1249
+ signingKey: string;
1250
+ recoveryKey: string;
1251
+ handle: string;
1252
+ prev: null;
1253
+ sig: string;
1254
+ } | {
1255
+ type: "plc_operation";
1256
+ alsoKnownAs: string[];
1257
+ rotationKeys: string[];
1258
+ verificationMethods: Record<string, string>;
1259
+ services: Record<string, {
1260
+ type: string;
1261
+ endpoint: string;
1262
+ }>;
1263
+ prev: string | null;
1264
+ sig: string;
1265
+ } | {
1266
+ type: "plc_tombstone";
1267
+ prev: string;
1268
+ sig: string;
1269
+ };
1270
+ nullified: boolean;
1271
+ createdAt: Date;
1272
+ }>;
1273
+ exportedOp: z.ZodObject<{
1274
+ did: z.ZodString;
1275
+ operation: z.ZodUnion<[z.ZodObject<z.extendShape<{
1276
+ type: z.ZodLiteral<"create">;
1277
+ signingKey: z.ZodString;
1278
+ recoveryKey: z.ZodString;
1279
+ handle: z.ZodString;
1280
+ service: z.ZodString;
1281
+ prev: z.ZodNull;
1282
+ }, {
1283
+ sig: z.ZodString;
1284
+ }>, "strip", z.ZodTypeAny, {
1285
+ type: "create";
1286
+ service: string;
1287
+ signingKey: string;
1288
+ recoveryKey: string;
1289
+ handle: string;
1290
+ prev: null;
1291
+ sig: string;
1292
+ }, {
1293
+ type: "create";
1294
+ service: string;
1295
+ signingKey: string;
1296
+ recoveryKey: string;
1297
+ handle: string;
1298
+ prev: null;
1299
+ sig: string;
1300
+ }>, z.ZodObject<z.extendShape<{
1301
+ type: z.ZodLiteral<"plc_operation">;
1302
+ rotationKeys: z.ZodArray<z.ZodString, "many">;
1303
+ verificationMethods: z.ZodRecord<z.ZodString, z.ZodString>;
1304
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
1305
+ services: z.ZodRecord<z.ZodString, z.ZodObject<{
1306
+ type: z.ZodString;
1307
+ endpoint: z.ZodString;
1308
+ }, "strip", z.ZodTypeAny, {
1309
+ type: string;
1310
+ endpoint: string;
1311
+ }, {
1312
+ type: string;
1313
+ endpoint: string;
1314
+ }>>;
1315
+ prev: z.ZodNullable<z.ZodString>;
1316
+ }, {
1317
+ sig: z.ZodString;
1318
+ }>, "strip", z.ZodTypeAny, {
1319
+ type: "plc_operation";
1320
+ alsoKnownAs: string[];
1321
+ rotationKeys: string[];
1322
+ verificationMethods: Record<string, string>;
1323
+ services: Record<string, {
1324
+ type: string;
1325
+ endpoint: string;
1326
+ }>;
1327
+ prev: string | null;
1328
+ sig: string;
1329
+ }, {
1330
+ type: "plc_operation";
1331
+ alsoKnownAs: string[];
1332
+ rotationKeys: string[];
1333
+ verificationMethods: Record<string, string>;
1334
+ services: Record<string, {
1335
+ type: string;
1336
+ endpoint: string;
1337
+ }>;
1338
+ prev: string | null;
1339
+ sig: string;
1340
+ }>, z.ZodObject<z.extendShape<{
1341
+ type: z.ZodLiteral<"plc_tombstone">;
1342
+ prev: z.ZodString;
1343
+ }, {
1344
+ sig: z.ZodString;
1345
+ }>, "strip", z.ZodTypeAny, {
1346
+ type: "plc_tombstone";
1347
+ prev: string;
1348
+ sig: string;
1349
+ }, {
1350
+ type: "plc_tombstone";
1351
+ prev: string;
1352
+ sig: string;
1353
+ }>]>;
1354
+ cid: z.ZodString;
1355
+ nullified: z.ZodBoolean;
1356
+ createdAt: z.ZodString;
1357
+ }, "strip", z.ZodTypeAny, {
1358
+ did: string;
1359
+ operation: {
1360
+ type: "create";
1361
+ service: string;
1362
+ signingKey: string;
1363
+ recoveryKey: string;
1364
+ handle: string;
1365
+ prev: null;
1366
+ sig: string;
1367
+ } | {
1368
+ type: "plc_operation";
1369
+ alsoKnownAs: string[];
1370
+ rotationKeys: string[];
1371
+ verificationMethods: Record<string, string>;
1372
+ services: Record<string, {
1373
+ type: string;
1374
+ endpoint: string;
1375
+ }>;
1376
+ prev: string | null;
1377
+ sig: string;
1378
+ } | {
1379
+ type: "plc_tombstone";
1380
+ prev: string;
1381
+ sig: string;
1382
+ };
1383
+ cid: string;
1384
+ nullified: boolean;
1385
+ createdAt: string;
1386
+ }, {
1387
+ did: string;
1388
+ operation: {
1389
+ type: "create";
1390
+ service: string;
1391
+ signingKey: string;
1392
+ recoveryKey: string;
1393
+ handle: string;
1394
+ prev: null;
1395
+ sig: string;
1396
+ } | {
1397
+ type: "plc_operation";
1398
+ alsoKnownAs: string[];
1399
+ rotationKeys: string[];
1400
+ verificationMethods: Record<string, string>;
1401
+ services: Record<string, {
1402
+ type: string;
1403
+ endpoint: string;
1404
+ }>;
1405
+ prev: string | null;
1406
+ sig: string;
1407
+ } | {
1408
+ type: "plc_tombstone";
1409
+ prev: string;
1410
+ sig: string;
1411
+ };
1412
+ cid: string;
1413
+ nullified: boolean;
1414
+ createdAt: string;
1415
+ }>;
1416
+ didDocument: z.ZodObject<{
1417
+ '@context': z.ZodArray<z.ZodString, "many">;
1418
+ id: z.ZodString;
1419
+ alsoKnownAs: z.ZodArray<z.ZodString, "many">;
1420
+ verificationMethod: z.ZodArray<z.ZodObject<{
1421
+ id: z.ZodString;
1422
+ type: z.ZodString;
1423
+ controller: z.ZodString;
1424
+ publicKeyMultibase: z.ZodString;
1425
+ }, "strip", z.ZodTypeAny, {
1426
+ type: string;
1427
+ id: string;
1428
+ controller: string;
1429
+ publicKeyMultibase: string;
1430
+ }, {
1431
+ type: string;
1432
+ id: string;
1433
+ controller: string;
1434
+ publicKeyMultibase: string;
1435
+ }>, "many">;
1436
+ service: z.ZodArray<z.ZodObject<{
1437
+ id: z.ZodString;
1438
+ type: z.ZodString;
1439
+ serviceEndpoint: z.ZodString;
1440
+ }, "strip", z.ZodTypeAny, {
1441
+ type: string;
1442
+ id: string;
1443
+ serviceEndpoint: string;
1444
+ }, {
1445
+ type: string;
1446
+ id: string;
1447
+ serviceEndpoint: string;
1448
+ }>, "many">;
1449
+ }, "strip", z.ZodTypeAny, {
1450
+ '@context': string[];
1451
+ id: string;
1452
+ alsoKnownAs: string[];
1453
+ verificationMethod: {
1454
+ type: string;
1455
+ id: string;
1456
+ controller: string;
1457
+ publicKeyMultibase: string;
1458
+ }[];
1459
+ service: {
1460
+ type: string;
1461
+ id: string;
1462
+ serviceEndpoint: string;
1463
+ }[];
1464
+ }, {
1465
+ '@context': string[];
1466
+ id: string;
1467
+ alsoKnownAs: string[];
1468
+ verificationMethod: {
1469
+ type: string;
1470
+ id: string;
1471
+ controller: string;
1472
+ publicKeyMultibase: string;
1473
+ }[];
1474
+ service: {
1475
+ type: string;
1476
+ id: string;
1477
+ serviceEndpoint: string;
1478
+ }[];
1479
+ }>;
1480
+ };
1481
+ export {};