@learncard/core 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/README.md +16 -5
  2. package/dist/core.cjs.development.js +3504 -11698
  3. package/dist/core.cjs.development.js.map +3 -3
  4. package/dist/core.cjs.production.min.js +204 -290
  5. package/dist/core.cjs.production.min.js.map +3 -3
  6. package/dist/core.d.ts +3058 -0
  7. package/dist/core.esm.js +3506 -11698
  8. package/dist/core.esm.js.map +3 -3
  9. package/package.json +15 -12
  10. package/dist/didkit/index.d.ts +0 -4
  11. package/dist/index.d.ts +0 -3
  12. package/dist/types/LearnCard.d.ts +0 -77
  13. package/dist/types/wallet.d.ts +0 -27
  14. package/dist/wallet/base/crypto.d.ts +0 -3
  15. package/dist/wallet/base/functions/index.d.ts +0 -2
  16. package/dist/wallet/base/functions/passwordToKey.d.ts +0 -1
  17. package/dist/wallet/base/functions/seedToId.d.ts +0 -1
  18. package/dist/wallet/base/index.d.ts +0 -2
  19. package/dist/wallet/base/wallet.d.ts +0 -2
  20. package/dist/wallet/defaults.d.ts +0 -2
  21. package/dist/wallet/init.d.ts +0 -3
  22. package/dist/wallet/plugins/didkey/index.d.ts +0 -3
  23. package/dist/wallet/plugins/didkey/types.d.ts +0 -19
  24. package/dist/wallet/plugins/expiration/index.d.ts +0 -3
  25. package/dist/wallet/plugins/idx/idx.d.ts +0 -6
  26. package/dist/wallet/plugins/idx/index.d.ts +0 -4
  27. package/dist/wallet/plugins/idx/types.d.ts +0 -20
  28. package/dist/wallet/plugins/vc/index.d.ts +0 -2
  29. package/dist/wallet/plugins/vc/issueCredential.d.ts +0 -5
  30. package/dist/wallet/plugins/vc/issuePresentation.d.ts +0 -6
  31. package/dist/wallet/plugins/vc/types.d.ts +0 -18
  32. package/dist/wallet/plugins/vc/vc.d.ts +0 -6
  33. package/dist/wallet/plugins/vc/verifyCredential.d.ts +0 -2
  34. package/dist/wallet/plugins/vc/verifyPresentation.d.ts +0 -2
  35. package/dist/wallet/verify.d.ts +0 -3
package/dist/core.d.ts ADDED
@@ -0,0 +1,3058 @@
1
+ // Generated by dts-bundle-generator v5.9.0
2
+
3
+ /// <reference types="node" />
4
+
5
+ import { StreamID } from '@ceramicnetwork/streamid';
6
+ import { ModelAliases } from '@glazed/types';
7
+
8
+ declare const UnsignedVCValidator: z.ZodObject<{
9
+ "@context": z.ZodArray<z.ZodString, "many">;
10
+ id: z.ZodOptional<z.ZodString>;
11
+ type: z.ZodArray<z.ZodString, "atleastone">;
12
+ issuer: z.ZodUnion<[
13
+ z.ZodString,
14
+ z.ZodObject<{
15
+ id: z.ZodOptional<z.ZodString>;
16
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
17
+ name: z.ZodOptional<z.ZodString>;
18
+ url: z.ZodOptional<z.ZodString>;
19
+ phone: z.ZodOptional<z.ZodString>;
20
+ description: z.ZodOptional<z.ZodString>;
21
+ endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
22
+ image: z.ZodOptional<z.ZodUnion<[
23
+ z.ZodString,
24
+ z.ZodObject<{
25
+ id: z.ZodString;
26
+ type: z.ZodString;
27
+ caption: z.ZodOptional<z.ZodString>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ caption?: string | undefined;
30
+ type: string;
31
+ id: string;
32
+ }, {
33
+ caption?: string | undefined;
34
+ type: string;
35
+ id: string;
36
+ }>
37
+ ]>>;
38
+ email: z.ZodOptional<z.ZodString>;
39
+ address: z.ZodOptional<z.ZodObject<{
40
+ type: z.ZodArray<z.ZodString, "atleastone">;
41
+ addressCountry: z.ZodOptional<z.ZodString>;
42
+ addressCountryCode: z.ZodOptional<z.ZodString>;
43
+ addressRegion: z.ZodOptional<z.ZodString>;
44
+ addressLocality: z.ZodOptional<z.ZodString>;
45
+ streetAddress: z.ZodOptional<z.ZodString>;
46
+ postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
47
+ postalCode: z.ZodOptional<z.ZodString>;
48
+ geo: z.ZodOptional<z.ZodObject<{
49
+ type: z.ZodArray<z.ZodString, "atleastone">;
50
+ latitude: z.ZodNumber;
51
+ longitude: z.ZodNumber;
52
+ }, "strip", z.ZodTypeAny, {
53
+ type: [
54
+ string,
55
+ ...string[]
56
+ ];
57
+ latitude: number;
58
+ longitude: number;
59
+ }, {
60
+ type: [
61
+ string,
62
+ ...string[]
63
+ ];
64
+ latitude: number;
65
+ longitude: number;
66
+ }>>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ addressCountry?: string | undefined;
69
+ addressCountryCode?: string | undefined;
70
+ addressRegion?: string | undefined;
71
+ addressLocality?: string | undefined;
72
+ streetAddress?: string | undefined;
73
+ postOfficeBoxNumber?: string | undefined;
74
+ postalCode?: string | undefined;
75
+ geo?: {
76
+ type: [
77
+ string,
78
+ ...string[]
79
+ ];
80
+ latitude: number;
81
+ longitude: number;
82
+ } | undefined;
83
+ type: [
84
+ string,
85
+ ...string[]
86
+ ];
87
+ }, {
88
+ addressCountry?: string | undefined;
89
+ addressCountryCode?: string | undefined;
90
+ addressRegion?: string | undefined;
91
+ addressLocality?: string | undefined;
92
+ streetAddress?: string | undefined;
93
+ postOfficeBoxNumber?: string | undefined;
94
+ postalCode?: string | undefined;
95
+ geo?: {
96
+ type: [
97
+ string,
98
+ ...string[]
99
+ ];
100
+ latitude: number;
101
+ longitude: number;
102
+ } | undefined;
103
+ type: [
104
+ string,
105
+ ...string[]
106
+ ];
107
+ }>>;
108
+ otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
109
+ type: z.ZodArray<z.ZodString, "atleastone">;
110
+ identifier: z.ZodString;
111
+ identifierType: z.ZodUnion<[
112
+ z.ZodEnum<[
113
+ "sourcedId",
114
+ "systemId",
115
+ "productId",
116
+ "userName",
117
+ "accountId",
118
+ "emailAddress",
119
+ "nationalIdentityNumber",
120
+ "isbn",
121
+ "issn",
122
+ "lisSourcedId",
123
+ "oneRosterSourcedId",
124
+ "sisSourcedId",
125
+ "ltiContextId",
126
+ "ltiDeploymentId",
127
+ "ltiToolId",
128
+ "ltiPlatformId",
129
+ "ltiUserId",
130
+ "identifier"
131
+ ]>,
132
+ z.ZodString
133
+ ]>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ type: [
136
+ string,
137
+ ...string[]
138
+ ];
139
+ identifier: string;
140
+ identifierType: string;
141
+ }, {
142
+ type: [
143
+ string,
144
+ ...string[]
145
+ ];
146
+ identifier: string;
147
+ identifierType: string;
148
+ }>, "many">>;
149
+ official: z.ZodOptional<z.ZodString>;
150
+ parentOrg: z.ZodOptional<z.ZodAny>;
151
+ familyName: z.ZodOptional<z.ZodString>;
152
+ givenName: z.ZodOptional<z.ZodString>;
153
+ additionalName: z.ZodOptional<z.ZodString>;
154
+ patronymicName: z.ZodOptional<z.ZodString>;
155
+ honorificPrefix: z.ZodOptional<z.ZodString>;
156
+ honorificSuffix: z.ZodOptional<z.ZodString>;
157
+ familyNamePrefix: z.ZodOptional<z.ZodString>;
158
+ dateOfBirth: z.ZodOptional<z.ZodString>;
159
+ }, "strip", z.ZodAny, {
160
+ [x: string]: any;
161
+ type?: [
162
+ string,
163
+ ...string[]
164
+ ] | undefined;
165
+ id?: string | undefined;
166
+ name?: string | undefined;
167
+ url?: string | undefined;
168
+ phone?: string | undefined;
169
+ description?: string | undefined;
170
+ endorsement?: any[] | undefined;
171
+ image?: string | {
172
+ caption?: string | undefined;
173
+ type: string;
174
+ id: string;
175
+ } | undefined;
176
+ email?: string | undefined;
177
+ address?: {
178
+ addressCountry?: string | undefined;
179
+ addressCountryCode?: string | undefined;
180
+ addressRegion?: string | undefined;
181
+ addressLocality?: string | undefined;
182
+ streetAddress?: string | undefined;
183
+ postOfficeBoxNumber?: string | undefined;
184
+ postalCode?: string | undefined;
185
+ geo?: {
186
+ type: [
187
+ string,
188
+ ...string[]
189
+ ];
190
+ latitude: number;
191
+ longitude: number;
192
+ } | undefined;
193
+ type: [
194
+ string,
195
+ ...string[]
196
+ ];
197
+ } | undefined;
198
+ otherIdentifier?: {
199
+ type: [
200
+ string,
201
+ ...string[]
202
+ ];
203
+ identifier: string;
204
+ identifierType: string;
205
+ }[] | undefined;
206
+ official?: string | undefined;
207
+ parentOrg?: any;
208
+ familyName?: string | undefined;
209
+ givenName?: string | undefined;
210
+ additionalName?: string | undefined;
211
+ patronymicName?: string | undefined;
212
+ honorificPrefix?: string | undefined;
213
+ honorificSuffix?: string | undefined;
214
+ familyNamePrefix?: string | undefined;
215
+ dateOfBirth?: string | undefined;
216
+ }, {
217
+ [x: string]: any;
218
+ type?: [
219
+ string,
220
+ ...string[]
221
+ ] | undefined;
222
+ id?: string | undefined;
223
+ name?: string | undefined;
224
+ url?: string | undefined;
225
+ phone?: string | undefined;
226
+ description?: string | undefined;
227
+ endorsement?: any[] | undefined;
228
+ image?: string | {
229
+ caption?: string | undefined;
230
+ type: string;
231
+ id: string;
232
+ } | undefined;
233
+ email?: string | undefined;
234
+ address?: {
235
+ addressCountry?: string | undefined;
236
+ addressCountryCode?: string | undefined;
237
+ addressRegion?: string | undefined;
238
+ addressLocality?: string | undefined;
239
+ streetAddress?: string | undefined;
240
+ postOfficeBoxNumber?: string | undefined;
241
+ postalCode?: string | undefined;
242
+ geo?: {
243
+ type: [
244
+ string,
245
+ ...string[]
246
+ ];
247
+ latitude: number;
248
+ longitude: number;
249
+ } | undefined;
250
+ type: [
251
+ string,
252
+ ...string[]
253
+ ];
254
+ } | undefined;
255
+ otherIdentifier?: {
256
+ type: [
257
+ string,
258
+ ...string[]
259
+ ];
260
+ identifier: string;
261
+ identifierType: string;
262
+ }[] | undefined;
263
+ official?: string | undefined;
264
+ parentOrg?: any;
265
+ familyName?: string | undefined;
266
+ givenName?: string | undefined;
267
+ additionalName?: string | undefined;
268
+ patronymicName?: string | undefined;
269
+ honorificPrefix?: string | undefined;
270
+ honorificSuffix?: string | undefined;
271
+ familyNamePrefix?: string | undefined;
272
+ dateOfBirth?: string | undefined;
273
+ }>
274
+ ]>;
275
+ issuanceDate: z.ZodString;
276
+ expirationDate: z.ZodOptional<z.ZodString>;
277
+ credentialSubject: z.ZodUnion<[
278
+ z.ZodObject<{
279
+ id: z.ZodOptional<z.ZodString>;
280
+ }, "strip", z.ZodAny, {
281
+ [x: string]: any;
282
+ id?: string | undefined;
283
+ }, {
284
+ [x: string]: any;
285
+ id?: string | undefined;
286
+ }>,
287
+ z.ZodArray<z.ZodObject<{
288
+ id: z.ZodOptional<z.ZodString>;
289
+ }, "strip", z.ZodAny, {
290
+ [x: string]: any;
291
+ id?: string | undefined;
292
+ }, {
293
+ [x: string]: any;
294
+ id?: string | undefined;
295
+ }>, "many">
296
+ ]>;
297
+ credentialStatus: z.ZodOptional<z.ZodObject<{
298
+ type: z.ZodString;
299
+ id: z.ZodString;
300
+ }, "strip", z.ZodTypeAny, {
301
+ type: string;
302
+ id: string;
303
+ }, {
304
+ type: string;
305
+ id: string;
306
+ }>>;
307
+ credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
308
+ id: z.ZodString;
309
+ type: z.ZodString;
310
+ }, "strip", z.ZodTypeAny, {
311
+ type: string;
312
+ id: string;
313
+ }, {
314
+ type: string;
315
+ id: string;
316
+ }>, "many">>;
317
+ refreshService: z.ZodOptional<z.ZodObject<{
318
+ id: z.ZodString;
319
+ type: z.ZodString;
320
+ }, "strip", z.ZodAny, {
321
+ [x: string]: any;
322
+ type: string;
323
+ id: string;
324
+ }, {
325
+ [x: string]: any;
326
+ type: string;
327
+ id: string;
328
+ }>>;
329
+ }, "strip", z.ZodAny, {
330
+ [x: string]: any;
331
+ id?: string | undefined;
332
+ expirationDate?: string | undefined;
333
+ credentialStatus?: {
334
+ type: string;
335
+ id: string;
336
+ } | undefined;
337
+ credentialSchema?: {
338
+ type: string;
339
+ id: string;
340
+ }[] | undefined;
341
+ refreshService?: {
342
+ [x: string]: any;
343
+ type: string;
344
+ id: string;
345
+ } | undefined;
346
+ type: [
347
+ string,
348
+ ...string[]
349
+ ];
350
+ "@context": string[];
351
+ issuer: string | {
352
+ [x: string]: any;
353
+ type?: [
354
+ string,
355
+ ...string[]
356
+ ] | undefined;
357
+ id?: string | undefined;
358
+ name?: string | undefined;
359
+ url?: string | undefined;
360
+ phone?: string | undefined;
361
+ description?: string | undefined;
362
+ endorsement?: any[] | undefined;
363
+ image?: string | {
364
+ caption?: string | undefined;
365
+ type: string;
366
+ id: string;
367
+ } | undefined;
368
+ email?: string | undefined;
369
+ address?: {
370
+ addressCountry?: string | undefined;
371
+ addressCountryCode?: string | undefined;
372
+ addressRegion?: string | undefined;
373
+ addressLocality?: string | undefined;
374
+ streetAddress?: string | undefined;
375
+ postOfficeBoxNumber?: string | undefined;
376
+ postalCode?: string | undefined;
377
+ geo?: {
378
+ type: [
379
+ string,
380
+ ...string[]
381
+ ];
382
+ latitude: number;
383
+ longitude: number;
384
+ } | undefined;
385
+ type: [
386
+ string,
387
+ ...string[]
388
+ ];
389
+ } | undefined;
390
+ otherIdentifier?: {
391
+ type: [
392
+ string,
393
+ ...string[]
394
+ ];
395
+ identifier: string;
396
+ identifierType: string;
397
+ }[] | undefined;
398
+ official?: string | undefined;
399
+ parentOrg?: any;
400
+ familyName?: string | undefined;
401
+ givenName?: string | undefined;
402
+ additionalName?: string | undefined;
403
+ patronymicName?: string | undefined;
404
+ honorificPrefix?: string | undefined;
405
+ honorificSuffix?: string | undefined;
406
+ familyNamePrefix?: string | undefined;
407
+ dateOfBirth?: string | undefined;
408
+ };
409
+ issuanceDate: string;
410
+ credentialSubject: {
411
+ [x: string]: any;
412
+ id?: string | undefined;
413
+ } | {
414
+ [x: string]: any;
415
+ id?: string | undefined;
416
+ }[];
417
+ }, {
418
+ [x: string]: any;
419
+ id?: string | undefined;
420
+ expirationDate?: string | undefined;
421
+ credentialStatus?: {
422
+ type: string;
423
+ id: string;
424
+ } | undefined;
425
+ credentialSchema?: {
426
+ type: string;
427
+ id: string;
428
+ }[] | undefined;
429
+ refreshService?: {
430
+ [x: string]: any;
431
+ type: string;
432
+ id: string;
433
+ } | undefined;
434
+ type: [
435
+ string,
436
+ ...string[]
437
+ ];
438
+ "@context": string[];
439
+ issuer: string | {
440
+ [x: string]: any;
441
+ type?: [
442
+ string,
443
+ ...string[]
444
+ ] | undefined;
445
+ id?: string | undefined;
446
+ name?: string | undefined;
447
+ url?: string | undefined;
448
+ phone?: string | undefined;
449
+ description?: string | undefined;
450
+ endorsement?: any[] | undefined;
451
+ image?: string | {
452
+ caption?: string | undefined;
453
+ type: string;
454
+ id: string;
455
+ } | undefined;
456
+ email?: string | undefined;
457
+ address?: {
458
+ addressCountry?: string | undefined;
459
+ addressCountryCode?: string | undefined;
460
+ addressRegion?: string | undefined;
461
+ addressLocality?: string | undefined;
462
+ streetAddress?: string | undefined;
463
+ postOfficeBoxNumber?: string | undefined;
464
+ postalCode?: string | undefined;
465
+ geo?: {
466
+ type: [
467
+ string,
468
+ ...string[]
469
+ ];
470
+ latitude: number;
471
+ longitude: number;
472
+ } | undefined;
473
+ type: [
474
+ string,
475
+ ...string[]
476
+ ];
477
+ } | undefined;
478
+ otherIdentifier?: {
479
+ type: [
480
+ string,
481
+ ...string[]
482
+ ];
483
+ identifier: string;
484
+ identifierType: string;
485
+ }[] | undefined;
486
+ official?: string | undefined;
487
+ parentOrg?: any;
488
+ familyName?: string | undefined;
489
+ givenName?: string | undefined;
490
+ additionalName?: string | undefined;
491
+ patronymicName?: string | undefined;
492
+ honorificPrefix?: string | undefined;
493
+ honorificSuffix?: string | undefined;
494
+ familyNamePrefix?: string | undefined;
495
+ dateOfBirth?: string | undefined;
496
+ };
497
+ issuanceDate: string;
498
+ credentialSubject: {
499
+ [x: string]: any;
500
+ id?: string | undefined;
501
+ } | {
502
+ [x: string]: any;
503
+ id?: string | undefined;
504
+ }[];
505
+ }>;
506
+ export declare type UnsignedVC = z.infer<typeof UnsignedVCValidator>;
507
+ declare const VCValidator: z.ZodObject<z.extendShape<{
508
+ "@context": z.ZodArray<z.ZodString, "many">;
509
+ id: z.ZodOptional<z.ZodString>;
510
+ type: z.ZodArray<z.ZodString, "atleastone">;
511
+ issuer: z.ZodUnion<[
512
+ z.ZodString,
513
+ z.ZodObject<{
514
+ id: z.ZodOptional<z.ZodString>;
515
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
516
+ name: z.ZodOptional<z.ZodString>;
517
+ url: z.ZodOptional<z.ZodString>;
518
+ phone: z.ZodOptional<z.ZodString>;
519
+ description: z.ZodOptional<z.ZodString>;
520
+ endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
521
+ image: z.ZodOptional<z.ZodUnion<[
522
+ z.ZodString,
523
+ z.ZodObject<{
524
+ id: z.ZodString;
525
+ type: z.ZodString;
526
+ caption: z.ZodOptional<z.ZodString>;
527
+ }, "strip", z.ZodTypeAny, {
528
+ caption?: string | undefined;
529
+ type: string;
530
+ id: string;
531
+ }, {
532
+ caption?: string | undefined;
533
+ type: string;
534
+ id: string;
535
+ }>
536
+ ]>>;
537
+ email: z.ZodOptional<z.ZodString>;
538
+ address: z.ZodOptional<z.ZodObject<{
539
+ type: z.ZodArray<z.ZodString, "atleastone">;
540
+ addressCountry: z.ZodOptional<z.ZodString>;
541
+ addressCountryCode: z.ZodOptional<z.ZodString>;
542
+ addressRegion: z.ZodOptional<z.ZodString>;
543
+ addressLocality: z.ZodOptional<z.ZodString>;
544
+ streetAddress: z.ZodOptional<z.ZodString>;
545
+ postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
546
+ postalCode: z.ZodOptional<z.ZodString>;
547
+ geo: z.ZodOptional<z.ZodObject<{
548
+ type: z.ZodArray<z.ZodString, "atleastone">;
549
+ latitude: z.ZodNumber;
550
+ longitude: z.ZodNumber;
551
+ }, "strip", z.ZodTypeAny, {
552
+ type: [
553
+ string,
554
+ ...string[]
555
+ ];
556
+ latitude: number;
557
+ longitude: number;
558
+ }, {
559
+ type: [
560
+ string,
561
+ ...string[]
562
+ ];
563
+ latitude: number;
564
+ longitude: number;
565
+ }>>;
566
+ }, "strip", z.ZodTypeAny, {
567
+ addressCountry?: string | undefined;
568
+ addressCountryCode?: string | undefined;
569
+ addressRegion?: string | undefined;
570
+ addressLocality?: string | undefined;
571
+ streetAddress?: string | undefined;
572
+ postOfficeBoxNumber?: string | undefined;
573
+ postalCode?: string | undefined;
574
+ geo?: {
575
+ type: [
576
+ string,
577
+ ...string[]
578
+ ];
579
+ latitude: number;
580
+ longitude: number;
581
+ } | undefined;
582
+ type: [
583
+ string,
584
+ ...string[]
585
+ ];
586
+ }, {
587
+ addressCountry?: string | undefined;
588
+ addressCountryCode?: string | undefined;
589
+ addressRegion?: string | undefined;
590
+ addressLocality?: string | undefined;
591
+ streetAddress?: string | undefined;
592
+ postOfficeBoxNumber?: string | undefined;
593
+ postalCode?: string | undefined;
594
+ geo?: {
595
+ type: [
596
+ string,
597
+ ...string[]
598
+ ];
599
+ latitude: number;
600
+ longitude: number;
601
+ } | undefined;
602
+ type: [
603
+ string,
604
+ ...string[]
605
+ ];
606
+ }>>;
607
+ otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
608
+ type: z.ZodArray<z.ZodString, "atleastone">;
609
+ identifier: z.ZodString;
610
+ identifierType: z.ZodUnion<[
611
+ z.ZodEnum<[
612
+ "sourcedId",
613
+ "systemId",
614
+ "productId",
615
+ "userName",
616
+ "accountId",
617
+ "emailAddress",
618
+ "nationalIdentityNumber",
619
+ "isbn",
620
+ "issn",
621
+ "lisSourcedId",
622
+ "oneRosterSourcedId",
623
+ "sisSourcedId",
624
+ "ltiContextId",
625
+ "ltiDeploymentId",
626
+ "ltiToolId",
627
+ "ltiPlatformId",
628
+ "ltiUserId",
629
+ "identifier"
630
+ ]>,
631
+ z.ZodString
632
+ ]>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ type: [
635
+ string,
636
+ ...string[]
637
+ ];
638
+ identifier: string;
639
+ identifierType: string;
640
+ }, {
641
+ type: [
642
+ string,
643
+ ...string[]
644
+ ];
645
+ identifier: string;
646
+ identifierType: string;
647
+ }>, "many">>;
648
+ official: z.ZodOptional<z.ZodString>;
649
+ parentOrg: z.ZodOptional<z.ZodAny>;
650
+ familyName: z.ZodOptional<z.ZodString>;
651
+ givenName: z.ZodOptional<z.ZodString>;
652
+ additionalName: z.ZodOptional<z.ZodString>;
653
+ patronymicName: z.ZodOptional<z.ZodString>;
654
+ honorificPrefix: z.ZodOptional<z.ZodString>;
655
+ honorificSuffix: z.ZodOptional<z.ZodString>;
656
+ familyNamePrefix: z.ZodOptional<z.ZodString>;
657
+ dateOfBirth: z.ZodOptional<z.ZodString>;
658
+ }, "strip", z.ZodAny, {
659
+ [x: string]: any;
660
+ type?: [
661
+ string,
662
+ ...string[]
663
+ ] | undefined;
664
+ id?: string | undefined;
665
+ name?: string | undefined;
666
+ url?: string | undefined;
667
+ phone?: string | undefined;
668
+ description?: string | undefined;
669
+ endorsement?: any[] | undefined;
670
+ image?: string | {
671
+ caption?: string | undefined;
672
+ type: string;
673
+ id: string;
674
+ } | undefined;
675
+ email?: string | undefined;
676
+ address?: {
677
+ addressCountry?: string | undefined;
678
+ addressCountryCode?: string | undefined;
679
+ addressRegion?: string | undefined;
680
+ addressLocality?: string | undefined;
681
+ streetAddress?: string | undefined;
682
+ postOfficeBoxNumber?: string | undefined;
683
+ postalCode?: string | undefined;
684
+ geo?: {
685
+ type: [
686
+ string,
687
+ ...string[]
688
+ ];
689
+ latitude: number;
690
+ longitude: number;
691
+ } | undefined;
692
+ type: [
693
+ string,
694
+ ...string[]
695
+ ];
696
+ } | undefined;
697
+ otherIdentifier?: {
698
+ type: [
699
+ string,
700
+ ...string[]
701
+ ];
702
+ identifier: string;
703
+ identifierType: string;
704
+ }[] | undefined;
705
+ official?: string | undefined;
706
+ parentOrg?: any;
707
+ familyName?: string | undefined;
708
+ givenName?: string | undefined;
709
+ additionalName?: string | undefined;
710
+ patronymicName?: string | undefined;
711
+ honorificPrefix?: string | undefined;
712
+ honorificSuffix?: string | undefined;
713
+ familyNamePrefix?: string | undefined;
714
+ dateOfBirth?: string | undefined;
715
+ }, {
716
+ [x: string]: any;
717
+ type?: [
718
+ string,
719
+ ...string[]
720
+ ] | undefined;
721
+ id?: string | undefined;
722
+ name?: string | undefined;
723
+ url?: string | undefined;
724
+ phone?: string | undefined;
725
+ description?: string | undefined;
726
+ endorsement?: any[] | undefined;
727
+ image?: string | {
728
+ caption?: string | undefined;
729
+ type: string;
730
+ id: string;
731
+ } | undefined;
732
+ email?: string | undefined;
733
+ address?: {
734
+ addressCountry?: string | undefined;
735
+ addressCountryCode?: string | undefined;
736
+ addressRegion?: string | undefined;
737
+ addressLocality?: string | undefined;
738
+ streetAddress?: string | undefined;
739
+ postOfficeBoxNumber?: string | undefined;
740
+ postalCode?: string | undefined;
741
+ geo?: {
742
+ type: [
743
+ string,
744
+ ...string[]
745
+ ];
746
+ latitude: number;
747
+ longitude: number;
748
+ } | undefined;
749
+ type: [
750
+ string,
751
+ ...string[]
752
+ ];
753
+ } | undefined;
754
+ otherIdentifier?: {
755
+ type: [
756
+ string,
757
+ ...string[]
758
+ ];
759
+ identifier: string;
760
+ identifierType: string;
761
+ }[] | undefined;
762
+ official?: string | undefined;
763
+ parentOrg?: any;
764
+ familyName?: string | undefined;
765
+ givenName?: string | undefined;
766
+ additionalName?: string | undefined;
767
+ patronymicName?: string | undefined;
768
+ honorificPrefix?: string | undefined;
769
+ honorificSuffix?: string | undefined;
770
+ familyNamePrefix?: string | undefined;
771
+ dateOfBirth?: string | undefined;
772
+ }>
773
+ ]>;
774
+ issuanceDate: z.ZodString;
775
+ expirationDate: z.ZodOptional<z.ZodString>;
776
+ credentialSubject: z.ZodUnion<[
777
+ z.ZodObject<{
778
+ id: z.ZodOptional<z.ZodString>;
779
+ }, "strip", z.ZodAny, {
780
+ [x: string]: any;
781
+ id?: string | undefined;
782
+ }, {
783
+ [x: string]: any;
784
+ id?: string | undefined;
785
+ }>,
786
+ z.ZodArray<z.ZodObject<{
787
+ id: z.ZodOptional<z.ZodString>;
788
+ }, "strip", z.ZodAny, {
789
+ [x: string]: any;
790
+ id?: string | undefined;
791
+ }, {
792
+ [x: string]: any;
793
+ id?: string | undefined;
794
+ }>, "many">
795
+ ]>;
796
+ credentialStatus: z.ZodOptional<z.ZodObject<{
797
+ type: z.ZodString;
798
+ id: z.ZodString;
799
+ }, "strip", z.ZodTypeAny, {
800
+ type: string;
801
+ id: string;
802
+ }, {
803
+ type: string;
804
+ id: string;
805
+ }>>;
806
+ credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
807
+ id: z.ZodString;
808
+ type: z.ZodString;
809
+ }, "strip", z.ZodTypeAny, {
810
+ type: string;
811
+ id: string;
812
+ }, {
813
+ type: string;
814
+ id: string;
815
+ }>, "many">>;
816
+ refreshService: z.ZodOptional<z.ZodObject<{
817
+ id: z.ZodString;
818
+ type: z.ZodString;
819
+ }, "strip", z.ZodAny, {
820
+ [x: string]: any;
821
+ type: string;
822
+ id: string;
823
+ }, {
824
+ [x: string]: any;
825
+ type: string;
826
+ id: string;
827
+ }>>;
828
+ }, {
829
+ proof: z.ZodUnion<[
830
+ z.ZodObject<{
831
+ type: z.ZodString;
832
+ created: z.ZodString;
833
+ challenge: z.ZodOptional<z.ZodString>;
834
+ domain: z.ZodOptional<z.ZodString>;
835
+ nonce: z.ZodOptional<z.ZodString>;
836
+ proofPurpose: z.ZodString;
837
+ verificationMethod: z.ZodString;
838
+ jws: z.ZodOptional<z.ZodString>;
839
+ }, "strip", z.ZodAny, {
840
+ [x: string]: any;
841
+ challenge?: string | undefined;
842
+ domain?: string | undefined;
843
+ nonce?: string | undefined;
844
+ jws?: string | undefined;
845
+ type: string;
846
+ created: string;
847
+ proofPurpose: string;
848
+ verificationMethod: string;
849
+ }, {
850
+ [x: string]: any;
851
+ challenge?: string | undefined;
852
+ domain?: string | undefined;
853
+ nonce?: string | undefined;
854
+ jws?: string | undefined;
855
+ type: string;
856
+ created: string;
857
+ proofPurpose: string;
858
+ verificationMethod: string;
859
+ }>,
860
+ z.ZodArray<z.ZodObject<{
861
+ type: z.ZodString;
862
+ created: z.ZodString;
863
+ challenge: z.ZodOptional<z.ZodString>;
864
+ domain: z.ZodOptional<z.ZodString>;
865
+ nonce: z.ZodOptional<z.ZodString>;
866
+ proofPurpose: z.ZodString;
867
+ verificationMethod: z.ZodString;
868
+ jws: z.ZodOptional<z.ZodString>;
869
+ }, "strip", z.ZodAny, {
870
+ [x: string]: any;
871
+ challenge?: string | undefined;
872
+ domain?: string | undefined;
873
+ nonce?: string | undefined;
874
+ jws?: string | undefined;
875
+ type: string;
876
+ created: string;
877
+ proofPurpose: string;
878
+ verificationMethod: string;
879
+ }, {
880
+ [x: string]: any;
881
+ challenge?: string | undefined;
882
+ domain?: string | undefined;
883
+ nonce?: string | undefined;
884
+ jws?: string | undefined;
885
+ type: string;
886
+ created: string;
887
+ proofPurpose: string;
888
+ verificationMethod: string;
889
+ }>, "many">
890
+ ]>;
891
+ }>, "strip", z.ZodAny, {
892
+ [x: string]: any;
893
+ id?: string | undefined;
894
+ expirationDate?: string | undefined;
895
+ credentialStatus?: {
896
+ type: string;
897
+ id: string;
898
+ } | undefined;
899
+ credentialSchema?: {
900
+ type: string;
901
+ id: string;
902
+ }[] | undefined;
903
+ refreshService?: {
904
+ [x: string]: any;
905
+ type: string;
906
+ id: string;
907
+ } | undefined;
908
+ type: [
909
+ string,
910
+ ...string[]
911
+ ];
912
+ "@context": string[];
913
+ issuer: string | {
914
+ [x: string]: any;
915
+ type?: [
916
+ string,
917
+ ...string[]
918
+ ] | undefined;
919
+ id?: string | undefined;
920
+ name?: string | undefined;
921
+ url?: string | undefined;
922
+ phone?: string | undefined;
923
+ description?: string | undefined;
924
+ endorsement?: any[] | undefined;
925
+ image?: string | {
926
+ caption?: string | undefined;
927
+ type: string;
928
+ id: string;
929
+ } | undefined;
930
+ email?: string | undefined;
931
+ address?: {
932
+ addressCountry?: string | undefined;
933
+ addressCountryCode?: string | undefined;
934
+ addressRegion?: string | undefined;
935
+ addressLocality?: string | undefined;
936
+ streetAddress?: string | undefined;
937
+ postOfficeBoxNumber?: string | undefined;
938
+ postalCode?: string | undefined;
939
+ geo?: {
940
+ type: [
941
+ string,
942
+ ...string[]
943
+ ];
944
+ latitude: number;
945
+ longitude: number;
946
+ } | undefined;
947
+ type: [
948
+ string,
949
+ ...string[]
950
+ ];
951
+ } | undefined;
952
+ otherIdentifier?: {
953
+ type: [
954
+ string,
955
+ ...string[]
956
+ ];
957
+ identifier: string;
958
+ identifierType: string;
959
+ }[] | undefined;
960
+ official?: string | undefined;
961
+ parentOrg?: any;
962
+ familyName?: string | undefined;
963
+ givenName?: string | undefined;
964
+ additionalName?: string | undefined;
965
+ patronymicName?: string | undefined;
966
+ honorificPrefix?: string | undefined;
967
+ honorificSuffix?: string | undefined;
968
+ familyNamePrefix?: string | undefined;
969
+ dateOfBirth?: string | undefined;
970
+ };
971
+ issuanceDate: string;
972
+ credentialSubject: {
973
+ [x: string]: any;
974
+ id?: string | undefined;
975
+ } | {
976
+ [x: string]: any;
977
+ id?: string | undefined;
978
+ }[];
979
+ proof: {
980
+ [x: string]: any;
981
+ challenge?: string | undefined;
982
+ domain?: string | undefined;
983
+ nonce?: string | undefined;
984
+ jws?: string | undefined;
985
+ type: string;
986
+ created: string;
987
+ proofPurpose: string;
988
+ verificationMethod: string;
989
+ } | {
990
+ [x: string]: any;
991
+ challenge?: string | undefined;
992
+ domain?: string | undefined;
993
+ nonce?: string | undefined;
994
+ jws?: string | undefined;
995
+ type: string;
996
+ created: string;
997
+ proofPurpose: string;
998
+ verificationMethod: string;
999
+ }[];
1000
+ }, {
1001
+ [x: string]: any;
1002
+ id?: string | undefined;
1003
+ expirationDate?: string | undefined;
1004
+ credentialStatus?: {
1005
+ type: string;
1006
+ id: string;
1007
+ } | undefined;
1008
+ credentialSchema?: {
1009
+ type: string;
1010
+ id: string;
1011
+ }[] | undefined;
1012
+ refreshService?: {
1013
+ [x: string]: any;
1014
+ type: string;
1015
+ id: string;
1016
+ } | undefined;
1017
+ type: [
1018
+ string,
1019
+ ...string[]
1020
+ ];
1021
+ "@context": string[];
1022
+ issuer: string | {
1023
+ [x: string]: any;
1024
+ type?: [
1025
+ string,
1026
+ ...string[]
1027
+ ] | undefined;
1028
+ id?: string | undefined;
1029
+ name?: string | undefined;
1030
+ url?: string | undefined;
1031
+ phone?: string | undefined;
1032
+ description?: string | undefined;
1033
+ endorsement?: any[] | undefined;
1034
+ image?: string | {
1035
+ caption?: string | undefined;
1036
+ type: string;
1037
+ id: string;
1038
+ } | undefined;
1039
+ email?: string | undefined;
1040
+ address?: {
1041
+ addressCountry?: string | undefined;
1042
+ addressCountryCode?: string | undefined;
1043
+ addressRegion?: string | undefined;
1044
+ addressLocality?: string | undefined;
1045
+ streetAddress?: string | undefined;
1046
+ postOfficeBoxNumber?: string | undefined;
1047
+ postalCode?: string | undefined;
1048
+ geo?: {
1049
+ type: [
1050
+ string,
1051
+ ...string[]
1052
+ ];
1053
+ latitude: number;
1054
+ longitude: number;
1055
+ } | undefined;
1056
+ type: [
1057
+ string,
1058
+ ...string[]
1059
+ ];
1060
+ } | undefined;
1061
+ otherIdentifier?: {
1062
+ type: [
1063
+ string,
1064
+ ...string[]
1065
+ ];
1066
+ identifier: string;
1067
+ identifierType: string;
1068
+ }[] | undefined;
1069
+ official?: string | undefined;
1070
+ parentOrg?: any;
1071
+ familyName?: string | undefined;
1072
+ givenName?: string | undefined;
1073
+ additionalName?: string | undefined;
1074
+ patronymicName?: string | undefined;
1075
+ honorificPrefix?: string | undefined;
1076
+ honorificSuffix?: string | undefined;
1077
+ familyNamePrefix?: string | undefined;
1078
+ dateOfBirth?: string | undefined;
1079
+ };
1080
+ issuanceDate: string;
1081
+ credentialSubject: {
1082
+ [x: string]: any;
1083
+ id?: string | undefined;
1084
+ } | {
1085
+ [x: string]: any;
1086
+ id?: string | undefined;
1087
+ }[];
1088
+ proof: {
1089
+ [x: string]: any;
1090
+ challenge?: string | undefined;
1091
+ domain?: string | undefined;
1092
+ nonce?: string | undefined;
1093
+ jws?: string | undefined;
1094
+ type: string;
1095
+ created: string;
1096
+ proofPurpose: string;
1097
+ verificationMethod: string;
1098
+ } | {
1099
+ [x: string]: any;
1100
+ challenge?: string | undefined;
1101
+ domain?: string | undefined;
1102
+ nonce?: string | undefined;
1103
+ jws?: string | undefined;
1104
+ type: string;
1105
+ created: string;
1106
+ proofPurpose: string;
1107
+ verificationMethod: string;
1108
+ }[];
1109
+ }>;
1110
+ export declare type VC = z.infer<typeof VCValidator>;
1111
+ declare const VPValidator: z.ZodObject<z.extendShape<{
1112
+ "@context": z.ZodArray<z.ZodString, "many">;
1113
+ id: z.ZodOptional<z.ZodString>;
1114
+ type: z.ZodArray<z.ZodString, "atleastone">;
1115
+ verifiableCredential: z.ZodUnion<[
1116
+ z.ZodObject<z.extendShape<{
1117
+ "@context": z.ZodArray<z.ZodString, "many">;
1118
+ id: z.ZodOptional<z.ZodString>;
1119
+ type: z.ZodArray<z.ZodString, "atleastone">;
1120
+ issuer: z.ZodUnion<[
1121
+ z.ZodString,
1122
+ z.ZodObject<{
1123
+ id: z.ZodOptional<z.ZodString>;
1124
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
1125
+ name: z.ZodOptional<z.ZodString>;
1126
+ url: z.ZodOptional<z.ZodString>;
1127
+ phone: z.ZodOptional<z.ZodString>;
1128
+ description: z.ZodOptional<z.ZodString>;
1129
+ endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1130
+ image: z.ZodOptional<z.ZodUnion<[
1131
+ z.ZodString,
1132
+ z.ZodObject<{
1133
+ id: z.ZodString;
1134
+ type: z.ZodString;
1135
+ caption: z.ZodOptional<z.ZodString>;
1136
+ }, "strip", z.ZodTypeAny, {
1137
+ caption?: string | undefined;
1138
+ type: string;
1139
+ id: string;
1140
+ }, {
1141
+ caption?: string | undefined;
1142
+ type: string;
1143
+ id: string;
1144
+ }>
1145
+ ]>>;
1146
+ email: z.ZodOptional<z.ZodString>;
1147
+ address: z.ZodOptional<z.ZodObject<{
1148
+ type: z.ZodArray<z.ZodString, "atleastone">;
1149
+ addressCountry: z.ZodOptional<z.ZodString>;
1150
+ addressCountryCode: z.ZodOptional<z.ZodString>;
1151
+ addressRegion: z.ZodOptional<z.ZodString>;
1152
+ addressLocality: z.ZodOptional<z.ZodString>;
1153
+ streetAddress: z.ZodOptional<z.ZodString>;
1154
+ postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
1155
+ postalCode: z.ZodOptional<z.ZodString>;
1156
+ geo: z.ZodOptional<z.ZodObject<{
1157
+ type: z.ZodArray<z.ZodString, "atleastone">;
1158
+ latitude: z.ZodNumber;
1159
+ longitude: z.ZodNumber;
1160
+ }, "strip", z.ZodTypeAny, {
1161
+ type: [
1162
+ string,
1163
+ ...string[]
1164
+ ];
1165
+ latitude: number;
1166
+ longitude: number;
1167
+ }, {
1168
+ type: [
1169
+ string,
1170
+ ...string[]
1171
+ ];
1172
+ latitude: number;
1173
+ longitude: number;
1174
+ }>>;
1175
+ }, "strip", z.ZodTypeAny, {
1176
+ addressCountry?: string | undefined;
1177
+ addressCountryCode?: string | undefined;
1178
+ addressRegion?: string | undefined;
1179
+ addressLocality?: string | undefined;
1180
+ streetAddress?: string | undefined;
1181
+ postOfficeBoxNumber?: string | undefined;
1182
+ postalCode?: string | undefined;
1183
+ geo?: {
1184
+ type: [
1185
+ string,
1186
+ ...string[]
1187
+ ];
1188
+ latitude: number;
1189
+ longitude: number;
1190
+ } | undefined;
1191
+ type: [
1192
+ string,
1193
+ ...string[]
1194
+ ];
1195
+ }, {
1196
+ addressCountry?: string | undefined;
1197
+ addressCountryCode?: string | undefined;
1198
+ addressRegion?: string | undefined;
1199
+ addressLocality?: string | undefined;
1200
+ streetAddress?: string | undefined;
1201
+ postOfficeBoxNumber?: string | undefined;
1202
+ postalCode?: string | undefined;
1203
+ geo?: {
1204
+ type: [
1205
+ string,
1206
+ ...string[]
1207
+ ];
1208
+ latitude: number;
1209
+ longitude: number;
1210
+ } | undefined;
1211
+ type: [
1212
+ string,
1213
+ ...string[]
1214
+ ];
1215
+ }>>;
1216
+ otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
1217
+ type: z.ZodArray<z.ZodString, "atleastone">;
1218
+ identifier: z.ZodString;
1219
+ identifierType: z.ZodUnion<[
1220
+ z.ZodEnum<[
1221
+ "sourcedId",
1222
+ "systemId",
1223
+ "productId",
1224
+ "userName",
1225
+ "accountId",
1226
+ "emailAddress",
1227
+ "nationalIdentityNumber",
1228
+ "isbn",
1229
+ "issn",
1230
+ "lisSourcedId",
1231
+ "oneRosterSourcedId",
1232
+ "sisSourcedId",
1233
+ "ltiContextId",
1234
+ "ltiDeploymentId",
1235
+ "ltiToolId",
1236
+ "ltiPlatformId",
1237
+ "ltiUserId",
1238
+ "identifier"
1239
+ ]>,
1240
+ z.ZodString
1241
+ ]>;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ type: [
1244
+ string,
1245
+ ...string[]
1246
+ ];
1247
+ identifier: string;
1248
+ identifierType: string;
1249
+ }, {
1250
+ type: [
1251
+ string,
1252
+ ...string[]
1253
+ ];
1254
+ identifier: string;
1255
+ identifierType: string;
1256
+ }>, "many">>;
1257
+ official: z.ZodOptional<z.ZodString>;
1258
+ parentOrg: z.ZodOptional<z.ZodAny>;
1259
+ familyName: z.ZodOptional<z.ZodString>;
1260
+ givenName: z.ZodOptional<z.ZodString>;
1261
+ additionalName: z.ZodOptional<z.ZodString>;
1262
+ patronymicName: z.ZodOptional<z.ZodString>;
1263
+ honorificPrefix: z.ZodOptional<z.ZodString>;
1264
+ honorificSuffix: z.ZodOptional<z.ZodString>;
1265
+ familyNamePrefix: z.ZodOptional<z.ZodString>;
1266
+ dateOfBirth: z.ZodOptional<z.ZodString>;
1267
+ }, "strip", z.ZodAny, {
1268
+ [x: string]: any;
1269
+ type?: [
1270
+ string,
1271
+ ...string[]
1272
+ ] | undefined;
1273
+ id?: string | undefined;
1274
+ name?: string | undefined;
1275
+ url?: string | undefined;
1276
+ phone?: string | undefined;
1277
+ description?: string | undefined;
1278
+ endorsement?: any[] | undefined;
1279
+ image?: string | {
1280
+ caption?: string | undefined;
1281
+ type: string;
1282
+ id: string;
1283
+ } | undefined;
1284
+ email?: string | undefined;
1285
+ address?: {
1286
+ addressCountry?: string | undefined;
1287
+ addressCountryCode?: string | undefined;
1288
+ addressRegion?: string | undefined;
1289
+ addressLocality?: string | undefined;
1290
+ streetAddress?: string | undefined;
1291
+ postOfficeBoxNumber?: string | undefined;
1292
+ postalCode?: string | undefined;
1293
+ geo?: {
1294
+ type: [
1295
+ string,
1296
+ ...string[]
1297
+ ];
1298
+ latitude: number;
1299
+ longitude: number;
1300
+ } | undefined;
1301
+ type: [
1302
+ string,
1303
+ ...string[]
1304
+ ];
1305
+ } | undefined;
1306
+ otherIdentifier?: {
1307
+ type: [
1308
+ string,
1309
+ ...string[]
1310
+ ];
1311
+ identifier: string;
1312
+ identifierType: string;
1313
+ }[] | undefined;
1314
+ official?: string | undefined;
1315
+ parentOrg?: any;
1316
+ familyName?: string | undefined;
1317
+ givenName?: string | undefined;
1318
+ additionalName?: string | undefined;
1319
+ patronymicName?: string | undefined;
1320
+ honorificPrefix?: string | undefined;
1321
+ honorificSuffix?: string | undefined;
1322
+ familyNamePrefix?: string | undefined;
1323
+ dateOfBirth?: string | undefined;
1324
+ }, {
1325
+ [x: string]: any;
1326
+ type?: [
1327
+ string,
1328
+ ...string[]
1329
+ ] | undefined;
1330
+ id?: string | undefined;
1331
+ name?: string | undefined;
1332
+ url?: string | undefined;
1333
+ phone?: string | undefined;
1334
+ description?: string | undefined;
1335
+ endorsement?: any[] | undefined;
1336
+ image?: string | {
1337
+ caption?: string | undefined;
1338
+ type: string;
1339
+ id: string;
1340
+ } | undefined;
1341
+ email?: string | undefined;
1342
+ address?: {
1343
+ addressCountry?: string | undefined;
1344
+ addressCountryCode?: string | undefined;
1345
+ addressRegion?: string | undefined;
1346
+ addressLocality?: string | undefined;
1347
+ streetAddress?: string | undefined;
1348
+ postOfficeBoxNumber?: string | undefined;
1349
+ postalCode?: string | undefined;
1350
+ geo?: {
1351
+ type: [
1352
+ string,
1353
+ ...string[]
1354
+ ];
1355
+ latitude: number;
1356
+ longitude: number;
1357
+ } | undefined;
1358
+ type: [
1359
+ string,
1360
+ ...string[]
1361
+ ];
1362
+ } | undefined;
1363
+ otherIdentifier?: {
1364
+ type: [
1365
+ string,
1366
+ ...string[]
1367
+ ];
1368
+ identifier: string;
1369
+ identifierType: string;
1370
+ }[] | undefined;
1371
+ official?: string | undefined;
1372
+ parentOrg?: any;
1373
+ familyName?: string | undefined;
1374
+ givenName?: string | undefined;
1375
+ additionalName?: string | undefined;
1376
+ patronymicName?: string | undefined;
1377
+ honorificPrefix?: string | undefined;
1378
+ honorificSuffix?: string | undefined;
1379
+ familyNamePrefix?: string | undefined;
1380
+ dateOfBirth?: string | undefined;
1381
+ }>
1382
+ ]>;
1383
+ issuanceDate: z.ZodString;
1384
+ expirationDate: z.ZodOptional<z.ZodString>;
1385
+ credentialSubject: z.ZodUnion<[
1386
+ z.ZodObject<{
1387
+ id: z.ZodOptional<z.ZodString>;
1388
+ }, "strip", z.ZodAny, {
1389
+ [x: string]: any;
1390
+ id?: string | undefined;
1391
+ }, {
1392
+ [x: string]: any;
1393
+ id?: string | undefined;
1394
+ }>,
1395
+ z.ZodArray<z.ZodObject<{
1396
+ id: z.ZodOptional<z.ZodString>;
1397
+ }, "strip", z.ZodAny, {
1398
+ [x: string]: any;
1399
+ id?: string | undefined;
1400
+ }, {
1401
+ [x: string]: any;
1402
+ id?: string | undefined;
1403
+ }>, "many">
1404
+ ]>;
1405
+ credentialStatus: z.ZodOptional<z.ZodObject<{
1406
+ type: z.ZodString;
1407
+ id: z.ZodString;
1408
+ }, "strip", z.ZodTypeAny, {
1409
+ type: string;
1410
+ id: string;
1411
+ }, {
1412
+ type: string;
1413
+ id: string;
1414
+ }>>;
1415
+ credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
1416
+ id: z.ZodString;
1417
+ type: z.ZodString;
1418
+ }, "strip", z.ZodTypeAny, {
1419
+ type: string;
1420
+ id: string;
1421
+ }, {
1422
+ type: string;
1423
+ id: string;
1424
+ }>, "many">>;
1425
+ refreshService: z.ZodOptional<z.ZodObject<{
1426
+ id: z.ZodString;
1427
+ type: z.ZodString;
1428
+ }, "strip", z.ZodAny, {
1429
+ [x: string]: any;
1430
+ type: string;
1431
+ id: string;
1432
+ }, {
1433
+ [x: string]: any;
1434
+ type: string;
1435
+ id: string;
1436
+ }>>;
1437
+ }, {
1438
+ proof: z.ZodUnion<[
1439
+ z.ZodObject<{
1440
+ type: z.ZodString;
1441
+ created: z.ZodString;
1442
+ challenge: z.ZodOptional<z.ZodString>;
1443
+ domain: z.ZodOptional<z.ZodString>;
1444
+ nonce: z.ZodOptional<z.ZodString>;
1445
+ proofPurpose: z.ZodString;
1446
+ verificationMethod: z.ZodString;
1447
+ jws: z.ZodOptional<z.ZodString>;
1448
+ }, "strip", z.ZodAny, {
1449
+ [x: string]: any;
1450
+ challenge?: string | undefined;
1451
+ domain?: string | undefined;
1452
+ nonce?: string | undefined;
1453
+ jws?: string | undefined;
1454
+ type: string;
1455
+ created: string;
1456
+ proofPurpose: string;
1457
+ verificationMethod: string;
1458
+ }, {
1459
+ [x: string]: any;
1460
+ challenge?: string | undefined;
1461
+ domain?: string | undefined;
1462
+ nonce?: string | undefined;
1463
+ jws?: string | undefined;
1464
+ type: string;
1465
+ created: string;
1466
+ proofPurpose: string;
1467
+ verificationMethod: string;
1468
+ }>,
1469
+ z.ZodArray<z.ZodObject<{
1470
+ type: z.ZodString;
1471
+ created: z.ZodString;
1472
+ challenge: z.ZodOptional<z.ZodString>;
1473
+ domain: z.ZodOptional<z.ZodString>;
1474
+ nonce: z.ZodOptional<z.ZodString>;
1475
+ proofPurpose: z.ZodString;
1476
+ verificationMethod: z.ZodString;
1477
+ jws: z.ZodOptional<z.ZodString>;
1478
+ }, "strip", z.ZodAny, {
1479
+ [x: string]: any;
1480
+ challenge?: string | undefined;
1481
+ domain?: string | undefined;
1482
+ nonce?: string | undefined;
1483
+ jws?: string | undefined;
1484
+ type: string;
1485
+ created: string;
1486
+ proofPurpose: string;
1487
+ verificationMethod: string;
1488
+ }, {
1489
+ [x: string]: any;
1490
+ challenge?: string | undefined;
1491
+ domain?: string | undefined;
1492
+ nonce?: string | undefined;
1493
+ jws?: string | undefined;
1494
+ type: string;
1495
+ created: string;
1496
+ proofPurpose: string;
1497
+ verificationMethod: string;
1498
+ }>, "many">
1499
+ ]>;
1500
+ }>, "strip", z.ZodAny, {
1501
+ [x: string]: any;
1502
+ id?: string | undefined;
1503
+ expirationDate?: string | undefined;
1504
+ credentialStatus?: {
1505
+ type: string;
1506
+ id: string;
1507
+ } | undefined;
1508
+ credentialSchema?: {
1509
+ type: string;
1510
+ id: string;
1511
+ }[] | undefined;
1512
+ refreshService?: {
1513
+ [x: string]: any;
1514
+ type: string;
1515
+ id: string;
1516
+ } | undefined;
1517
+ type: [
1518
+ string,
1519
+ ...string[]
1520
+ ];
1521
+ "@context": string[];
1522
+ issuer: string | {
1523
+ [x: string]: any;
1524
+ type?: [
1525
+ string,
1526
+ ...string[]
1527
+ ] | undefined;
1528
+ id?: string | undefined;
1529
+ name?: string | undefined;
1530
+ url?: string | undefined;
1531
+ phone?: string | undefined;
1532
+ description?: string | undefined;
1533
+ endorsement?: any[] | undefined;
1534
+ image?: string | {
1535
+ caption?: string | undefined;
1536
+ type: string;
1537
+ id: string;
1538
+ } | undefined;
1539
+ email?: string | undefined;
1540
+ address?: {
1541
+ addressCountry?: string | undefined;
1542
+ addressCountryCode?: string | undefined;
1543
+ addressRegion?: string | undefined;
1544
+ addressLocality?: string | undefined;
1545
+ streetAddress?: string | undefined;
1546
+ postOfficeBoxNumber?: string | undefined;
1547
+ postalCode?: string | undefined;
1548
+ geo?: {
1549
+ type: [
1550
+ string,
1551
+ ...string[]
1552
+ ];
1553
+ latitude: number;
1554
+ longitude: number;
1555
+ } | undefined;
1556
+ type: [
1557
+ string,
1558
+ ...string[]
1559
+ ];
1560
+ } | undefined;
1561
+ otherIdentifier?: {
1562
+ type: [
1563
+ string,
1564
+ ...string[]
1565
+ ];
1566
+ identifier: string;
1567
+ identifierType: string;
1568
+ }[] | undefined;
1569
+ official?: string | undefined;
1570
+ parentOrg?: any;
1571
+ familyName?: string | undefined;
1572
+ givenName?: string | undefined;
1573
+ additionalName?: string | undefined;
1574
+ patronymicName?: string | undefined;
1575
+ honorificPrefix?: string | undefined;
1576
+ honorificSuffix?: string | undefined;
1577
+ familyNamePrefix?: string | undefined;
1578
+ dateOfBirth?: string | undefined;
1579
+ };
1580
+ issuanceDate: string;
1581
+ credentialSubject: {
1582
+ [x: string]: any;
1583
+ id?: string | undefined;
1584
+ } | {
1585
+ [x: string]: any;
1586
+ id?: string | undefined;
1587
+ }[];
1588
+ proof: {
1589
+ [x: string]: any;
1590
+ challenge?: string | undefined;
1591
+ domain?: string | undefined;
1592
+ nonce?: string | undefined;
1593
+ jws?: string | undefined;
1594
+ type: string;
1595
+ created: string;
1596
+ proofPurpose: string;
1597
+ verificationMethod: string;
1598
+ } | {
1599
+ [x: string]: any;
1600
+ challenge?: string | undefined;
1601
+ domain?: string | undefined;
1602
+ nonce?: string | undefined;
1603
+ jws?: string | undefined;
1604
+ type: string;
1605
+ created: string;
1606
+ proofPurpose: string;
1607
+ verificationMethod: string;
1608
+ }[];
1609
+ }, {
1610
+ [x: string]: any;
1611
+ id?: string | undefined;
1612
+ expirationDate?: string | undefined;
1613
+ credentialStatus?: {
1614
+ type: string;
1615
+ id: string;
1616
+ } | undefined;
1617
+ credentialSchema?: {
1618
+ type: string;
1619
+ id: string;
1620
+ }[] | undefined;
1621
+ refreshService?: {
1622
+ [x: string]: any;
1623
+ type: string;
1624
+ id: string;
1625
+ } | undefined;
1626
+ type: [
1627
+ string,
1628
+ ...string[]
1629
+ ];
1630
+ "@context": string[];
1631
+ issuer: string | {
1632
+ [x: string]: any;
1633
+ type?: [
1634
+ string,
1635
+ ...string[]
1636
+ ] | undefined;
1637
+ id?: string | undefined;
1638
+ name?: string | undefined;
1639
+ url?: string | undefined;
1640
+ phone?: string | undefined;
1641
+ description?: string | undefined;
1642
+ endorsement?: any[] | undefined;
1643
+ image?: string | {
1644
+ caption?: string | undefined;
1645
+ type: string;
1646
+ id: string;
1647
+ } | undefined;
1648
+ email?: string | undefined;
1649
+ address?: {
1650
+ addressCountry?: string | undefined;
1651
+ addressCountryCode?: string | undefined;
1652
+ addressRegion?: string | undefined;
1653
+ addressLocality?: string | undefined;
1654
+ streetAddress?: string | undefined;
1655
+ postOfficeBoxNumber?: string | undefined;
1656
+ postalCode?: string | undefined;
1657
+ geo?: {
1658
+ type: [
1659
+ string,
1660
+ ...string[]
1661
+ ];
1662
+ latitude: number;
1663
+ longitude: number;
1664
+ } | undefined;
1665
+ type: [
1666
+ string,
1667
+ ...string[]
1668
+ ];
1669
+ } | undefined;
1670
+ otherIdentifier?: {
1671
+ type: [
1672
+ string,
1673
+ ...string[]
1674
+ ];
1675
+ identifier: string;
1676
+ identifierType: string;
1677
+ }[] | undefined;
1678
+ official?: string | undefined;
1679
+ parentOrg?: any;
1680
+ familyName?: string | undefined;
1681
+ givenName?: string | undefined;
1682
+ additionalName?: string | undefined;
1683
+ patronymicName?: string | undefined;
1684
+ honorificPrefix?: string | undefined;
1685
+ honorificSuffix?: string | undefined;
1686
+ familyNamePrefix?: string | undefined;
1687
+ dateOfBirth?: string | undefined;
1688
+ };
1689
+ issuanceDate: string;
1690
+ credentialSubject: {
1691
+ [x: string]: any;
1692
+ id?: string | undefined;
1693
+ } | {
1694
+ [x: string]: any;
1695
+ id?: string | undefined;
1696
+ }[];
1697
+ proof: {
1698
+ [x: string]: any;
1699
+ challenge?: string | undefined;
1700
+ domain?: string | undefined;
1701
+ nonce?: string | undefined;
1702
+ jws?: string | undefined;
1703
+ type: string;
1704
+ created: string;
1705
+ proofPurpose: string;
1706
+ verificationMethod: string;
1707
+ } | {
1708
+ [x: string]: any;
1709
+ challenge?: string | undefined;
1710
+ domain?: string | undefined;
1711
+ nonce?: string | undefined;
1712
+ jws?: string | undefined;
1713
+ type: string;
1714
+ created: string;
1715
+ proofPurpose: string;
1716
+ verificationMethod: string;
1717
+ }[];
1718
+ }>,
1719
+ z.ZodArray<z.ZodObject<z.extendShape<{
1720
+ "@context": z.ZodArray<z.ZodString, "many">;
1721
+ id: z.ZodOptional<z.ZodString>;
1722
+ type: z.ZodArray<z.ZodString, "atleastone">;
1723
+ issuer: z.ZodUnion<[
1724
+ z.ZodString,
1725
+ z.ZodObject<{
1726
+ id: z.ZodOptional<z.ZodString>;
1727
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
1728
+ name: z.ZodOptional<z.ZodString>;
1729
+ url: z.ZodOptional<z.ZodString>;
1730
+ phone: z.ZodOptional<z.ZodString>;
1731
+ description: z.ZodOptional<z.ZodString>;
1732
+ endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1733
+ image: z.ZodOptional<z.ZodUnion<[
1734
+ z.ZodString,
1735
+ z.ZodObject<{
1736
+ id: z.ZodString;
1737
+ type: z.ZodString;
1738
+ caption: z.ZodOptional<z.ZodString>;
1739
+ }, "strip", z.ZodTypeAny, {
1740
+ caption?: string | undefined;
1741
+ type: string;
1742
+ id: string;
1743
+ }, {
1744
+ caption?: string | undefined;
1745
+ type: string;
1746
+ id: string;
1747
+ }>
1748
+ ]>>;
1749
+ email: z.ZodOptional<z.ZodString>;
1750
+ address: z.ZodOptional<z.ZodObject<{
1751
+ type: z.ZodArray<z.ZodString, "atleastone">;
1752
+ addressCountry: z.ZodOptional<z.ZodString>;
1753
+ addressCountryCode: z.ZodOptional<z.ZodString>;
1754
+ addressRegion: z.ZodOptional<z.ZodString>;
1755
+ addressLocality: z.ZodOptional<z.ZodString>;
1756
+ streetAddress: z.ZodOptional<z.ZodString>;
1757
+ postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
1758
+ postalCode: z.ZodOptional<z.ZodString>;
1759
+ geo: z.ZodOptional<z.ZodObject<{
1760
+ type: z.ZodArray<z.ZodString, "atleastone">;
1761
+ latitude: z.ZodNumber;
1762
+ longitude: z.ZodNumber;
1763
+ }, "strip", z.ZodTypeAny, {
1764
+ type: [
1765
+ string,
1766
+ ...string[]
1767
+ ];
1768
+ latitude: number;
1769
+ longitude: number;
1770
+ }, {
1771
+ type: [
1772
+ string,
1773
+ ...string[]
1774
+ ];
1775
+ latitude: number;
1776
+ longitude: number;
1777
+ }>>;
1778
+ }, "strip", z.ZodTypeAny, {
1779
+ addressCountry?: string | undefined;
1780
+ addressCountryCode?: string | undefined;
1781
+ addressRegion?: string | undefined;
1782
+ addressLocality?: string | undefined;
1783
+ streetAddress?: string | undefined;
1784
+ postOfficeBoxNumber?: string | undefined;
1785
+ postalCode?: string | undefined;
1786
+ geo?: {
1787
+ type: [
1788
+ string,
1789
+ ...string[]
1790
+ ];
1791
+ latitude: number;
1792
+ longitude: number;
1793
+ } | undefined;
1794
+ type: [
1795
+ string,
1796
+ ...string[]
1797
+ ];
1798
+ }, {
1799
+ addressCountry?: string | undefined;
1800
+ addressCountryCode?: string | undefined;
1801
+ addressRegion?: string | undefined;
1802
+ addressLocality?: string | undefined;
1803
+ streetAddress?: string | undefined;
1804
+ postOfficeBoxNumber?: string | undefined;
1805
+ postalCode?: string | undefined;
1806
+ geo?: {
1807
+ type: [
1808
+ string,
1809
+ ...string[]
1810
+ ];
1811
+ latitude: number;
1812
+ longitude: number;
1813
+ } | undefined;
1814
+ type: [
1815
+ string,
1816
+ ...string[]
1817
+ ];
1818
+ }>>;
1819
+ otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
1820
+ type: z.ZodArray<z.ZodString, "atleastone">;
1821
+ identifier: z.ZodString;
1822
+ identifierType: z.ZodUnion<[
1823
+ z.ZodEnum<[
1824
+ "sourcedId",
1825
+ "systemId",
1826
+ "productId",
1827
+ "userName",
1828
+ "accountId",
1829
+ "emailAddress",
1830
+ "nationalIdentityNumber",
1831
+ "isbn",
1832
+ "issn",
1833
+ "lisSourcedId",
1834
+ "oneRosterSourcedId",
1835
+ "sisSourcedId",
1836
+ "ltiContextId",
1837
+ "ltiDeploymentId",
1838
+ "ltiToolId",
1839
+ "ltiPlatformId",
1840
+ "ltiUserId",
1841
+ "identifier"
1842
+ ]>,
1843
+ z.ZodString
1844
+ ]>;
1845
+ }, "strip", z.ZodTypeAny, {
1846
+ type: [
1847
+ string,
1848
+ ...string[]
1849
+ ];
1850
+ identifier: string;
1851
+ identifierType: string;
1852
+ }, {
1853
+ type: [
1854
+ string,
1855
+ ...string[]
1856
+ ];
1857
+ identifier: string;
1858
+ identifierType: string;
1859
+ }>, "many">>;
1860
+ official: z.ZodOptional<z.ZodString>;
1861
+ parentOrg: z.ZodOptional<z.ZodAny>;
1862
+ familyName: z.ZodOptional<z.ZodString>;
1863
+ givenName: z.ZodOptional<z.ZodString>;
1864
+ additionalName: z.ZodOptional<z.ZodString>;
1865
+ patronymicName: z.ZodOptional<z.ZodString>;
1866
+ honorificPrefix: z.ZodOptional<z.ZodString>;
1867
+ honorificSuffix: z.ZodOptional<z.ZodString>;
1868
+ familyNamePrefix: z.ZodOptional<z.ZodString>;
1869
+ dateOfBirth: z.ZodOptional<z.ZodString>;
1870
+ }, "strip", z.ZodAny, {
1871
+ [x: string]: any;
1872
+ type?: [
1873
+ string,
1874
+ ...string[]
1875
+ ] | undefined;
1876
+ id?: string | undefined;
1877
+ name?: string | undefined;
1878
+ url?: string | undefined;
1879
+ phone?: string | undefined;
1880
+ description?: string | undefined;
1881
+ endorsement?: any[] | undefined;
1882
+ image?: string | {
1883
+ caption?: string | undefined;
1884
+ type: string;
1885
+ id: string;
1886
+ } | undefined;
1887
+ email?: string | undefined;
1888
+ address?: {
1889
+ addressCountry?: string | undefined;
1890
+ addressCountryCode?: string | undefined;
1891
+ addressRegion?: string | undefined;
1892
+ addressLocality?: string | undefined;
1893
+ streetAddress?: string | undefined;
1894
+ postOfficeBoxNumber?: string | undefined;
1895
+ postalCode?: string | undefined;
1896
+ geo?: {
1897
+ type: [
1898
+ string,
1899
+ ...string[]
1900
+ ];
1901
+ latitude: number;
1902
+ longitude: number;
1903
+ } | undefined;
1904
+ type: [
1905
+ string,
1906
+ ...string[]
1907
+ ];
1908
+ } | undefined;
1909
+ otherIdentifier?: {
1910
+ type: [
1911
+ string,
1912
+ ...string[]
1913
+ ];
1914
+ identifier: string;
1915
+ identifierType: string;
1916
+ }[] | undefined;
1917
+ official?: string | undefined;
1918
+ parentOrg?: any;
1919
+ familyName?: string | undefined;
1920
+ givenName?: string | undefined;
1921
+ additionalName?: string | undefined;
1922
+ patronymicName?: string | undefined;
1923
+ honorificPrefix?: string | undefined;
1924
+ honorificSuffix?: string | undefined;
1925
+ familyNamePrefix?: string | undefined;
1926
+ dateOfBirth?: string | undefined;
1927
+ }, {
1928
+ [x: string]: any;
1929
+ type?: [
1930
+ string,
1931
+ ...string[]
1932
+ ] | undefined;
1933
+ id?: string | undefined;
1934
+ name?: string | undefined;
1935
+ url?: string | undefined;
1936
+ phone?: string | undefined;
1937
+ description?: string | undefined;
1938
+ endorsement?: any[] | undefined;
1939
+ image?: string | {
1940
+ caption?: string | undefined;
1941
+ type: string;
1942
+ id: string;
1943
+ } | undefined;
1944
+ email?: string | undefined;
1945
+ address?: {
1946
+ addressCountry?: string | undefined;
1947
+ addressCountryCode?: string | undefined;
1948
+ addressRegion?: string | undefined;
1949
+ addressLocality?: string | undefined;
1950
+ streetAddress?: string | undefined;
1951
+ postOfficeBoxNumber?: string | undefined;
1952
+ postalCode?: string | undefined;
1953
+ geo?: {
1954
+ type: [
1955
+ string,
1956
+ ...string[]
1957
+ ];
1958
+ latitude: number;
1959
+ longitude: number;
1960
+ } | undefined;
1961
+ type: [
1962
+ string,
1963
+ ...string[]
1964
+ ];
1965
+ } | undefined;
1966
+ otherIdentifier?: {
1967
+ type: [
1968
+ string,
1969
+ ...string[]
1970
+ ];
1971
+ identifier: string;
1972
+ identifierType: string;
1973
+ }[] | undefined;
1974
+ official?: string | undefined;
1975
+ parentOrg?: any;
1976
+ familyName?: string | undefined;
1977
+ givenName?: string | undefined;
1978
+ additionalName?: string | undefined;
1979
+ patronymicName?: string | undefined;
1980
+ honorificPrefix?: string | undefined;
1981
+ honorificSuffix?: string | undefined;
1982
+ familyNamePrefix?: string | undefined;
1983
+ dateOfBirth?: string | undefined;
1984
+ }>
1985
+ ]>;
1986
+ issuanceDate: z.ZodString;
1987
+ expirationDate: z.ZodOptional<z.ZodString>;
1988
+ credentialSubject: z.ZodUnion<[
1989
+ z.ZodObject<{
1990
+ id: z.ZodOptional<z.ZodString>;
1991
+ }, "strip", z.ZodAny, {
1992
+ [x: string]: any;
1993
+ id?: string | undefined;
1994
+ }, {
1995
+ [x: string]: any;
1996
+ id?: string | undefined;
1997
+ }>,
1998
+ z.ZodArray<z.ZodObject<{
1999
+ id: z.ZodOptional<z.ZodString>;
2000
+ }, "strip", z.ZodAny, {
2001
+ [x: string]: any;
2002
+ id?: string | undefined;
2003
+ }, {
2004
+ [x: string]: any;
2005
+ id?: string | undefined;
2006
+ }>, "many">
2007
+ ]>;
2008
+ credentialStatus: z.ZodOptional<z.ZodObject<{
2009
+ type: z.ZodString;
2010
+ id: z.ZodString;
2011
+ }, "strip", z.ZodTypeAny, {
2012
+ type: string;
2013
+ id: string;
2014
+ }, {
2015
+ type: string;
2016
+ id: string;
2017
+ }>>;
2018
+ credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
2019
+ id: z.ZodString;
2020
+ type: z.ZodString;
2021
+ }, "strip", z.ZodTypeAny, {
2022
+ type: string;
2023
+ id: string;
2024
+ }, {
2025
+ type: string;
2026
+ id: string;
2027
+ }>, "many">>;
2028
+ refreshService: z.ZodOptional<z.ZodObject<{
2029
+ id: z.ZodString;
2030
+ type: z.ZodString;
2031
+ }, "strip", z.ZodAny, {
2032
+ [x: string]: any;
2033
+ type: string;
2034
+ id: string;
2035
+ }, {
2036
+ [x: string]: any;
2037
+ type: string;
2038
+ id: string;
2039
+ }>>;
2040
+ }, {
2041
+ proof: z.ZodUnion<[
2042
+ z.ZodObject<{
2043
+ type: z.ZodString;
2044
+ created: z.ZodString;
2045
+ challenge: z.ZodOptional<z.ZodString>;
2046
+ domain: z.ZodOptional<z.ZodString>;
2047
+ nonce: z.ZodOptional<z.ZodString>;
2048
+ proofPurpose: z.ZodString;
2049
+ verificationMethod: z.ZodString;
2050
+ jws: z.ZodOptional<z.ZodString>;
2051
+ }, "strip", z.ZodAny, {
2052
+ [x: string]: any;
2053
+ challenge?: string | undefined;
2054
+ domain?: string | undefined;
2055
+ nonce?: string | undefined;
2056
+ jws?: string | undefined;
2057
+ type: string;
2058
+ created: string;
2059
+ proofPurpose: string;
2060
+ verificationMethod: string;
2061
+ }, {
2062
+ [x: string]: any;
2063
+ challenge?: string | undefined;
2064
+ domain?: string | undefined;
2065
+ nonce?: string | undefined;
2066
+ jws?: string | undefined;
2067
+ type: string;
2068
+ created: string;
2069
+ proofPurpose: string;
2070
+ verificationMethod: string;
2071
+ }>,
2072
+ z.ZodArray<z.ZodObject<{
2073
+ type: z.ZodString;
2074
+ created: z.ZodString;
2075
+ challenge: z.ZodOptional<z.ZodString>;
2076
+ domain: z.ZodOptional<z.ZodString>;
2077
+ nonce: z.ZodOptional<z.ZodString>;
2078
+ proofPurpose: z.ZodString;
2079
+ verificationMethod: z.ZodString;
2080
+ jws: z.ZodOptional<z.ZodString>;
2081
+ }, "strip", z.ZodAny, {
2082
+ [x: string]: any;
2083
+ challenge?: string | undefined;
2084
+ domain?: string | undefined;
2085
+ nonce?: string | undefined;
2086
+ jws?: string | undefined;
2087
+ type: string;
2088
+ created: string;
2089
+ proofPurpose: string;
2090
+ verificationMethod: string;
2091
+ }, {
2092
+ [x: string]: any;
2093
+ challenge?: string | undefined;
2094
+ domain?: string | undefined;
2095
+ nonce?: string | undefined;
2096
+ jws?: string | undefined;
2097
+ type: string;
2098
+ created: string;
2099
+ proofPurpose: string;
2100
+ verificationMethod: string;
2101
+ }>, "many">
2102
+ ]>;
2103
+ }>, "strip", z.ZodAny, {
2104
+ [x: string]: any;
2105
+ id?: string | undefined;
2106
+ expirationDate?: string | undefined;
2107
+ credentialStatus?: {
2108
+ type: string;
2109
+ id: string;
2110
+ } | undefined;
2111
+ credentialSchema?: {
2112
+ type: string;
2113
+ id: string;
2114
+ }[] | undefined;
2115
+ refreshService?: {
2116
+ [x: string]: any;
2117
+ type: string;
2118
+ id: string;
2119
+ } | undefined;
2120
+ type: [
2121
+ string,
2122
+ ...string[]
2123
+ ];
2124
+ "@context": string[];
2125
+ issuer: string | {
2126
+ [x: string]: any;
2127
+ type?: [
2128
+ string,
2129
+ ...string[]
2130
+ ] | undefined;
2131
+ id?: string | undefined;
2132
+ name?: string | undefined;
2133
+ url?: string | undefined;
2134
+ phone?: string | undefined;
2135
+ description?: string | undefined;
2136
+ endorsement?: any[] | undefined;
2137
+ image?: string | {
2138
+ caption?: string | undefined;
2139
+ type: string;
2140
+ id: string;
2141
+ } | undefined;
2142
+ email?: string | undefined;
2143
+ address?: {
2144
+ addressCountry?: string | undefined;
2145
+ addressCountryCode?: string | undefined;
2146
+ addressRegion?: string | undefined;
2147
+ addressLocality?: string | undefined;
2148
+ streetAddress?: string | undefined;
2149
+ postOfficeBoxNumber?: string | undefined;
2150
+ postalCode?: string | undefined;
2151
+ geo?: {
2152
+ type: [
2153
+ string,
2154
+ ...string[]
2155
+ ];
2156
+ latitude: number;
2157
+ longitude: number;
2158
+ } | undefined;
2159
+ type: [
2160
+ string,
2161
+ ...string[]
2162
+ ];
2163
+ } | undefined;
2164
+ otherIdentifier?: {
2165
+ type: [
2166
+ string,
2167
+ ...string[]
2168
+ ];
2169
+ identifier: string;
2170
+ identifierType: string;
2171
+ }[] | undefined;
2172
+ official?: string | undefined;
2173
+ parentOrg?: any;
2174
+ familyName?: string | undefined;
2175
+ givenName?: string | undefined;
2176
+ additionalName?: string | undefined;
2177
+ patronymicName?: string | undefined;
2178
+ honorificPrefix?: string | undefined;
2179
+ honorificSuffix?: string | undefined;
2180
+ familyNamePrefix?: string | undefined;
2181
+ dateOfBirth?: string | undefined;
2182
+ };
2183
+ issuanceDate: string;
2184
+ credentialSubject: {
2185
+ [x: string]: any;
2186
+ id?: string | undefined;
2187
+ } | {
2188
+ [x: string]: any;
2189
+ id?: string | undefined;
2190
+ }[];
2191
+ proof: {
2192
+ [x: string]: any;
2193
+ challenge?: string | undefined;
2194
+ domain?: string | undefined;
2195
+ nonce?: string | undefined;
2196
+ jws?: string | undefined;
2197
+ type: string;
2198
+ created: string;
2199
+ proofPurpose: string;
2200
+ verificationMethod: string;
2201
+ } | {
2202
+ [x: string]: any;
2203
+ challenge?: string | undefined;
2204
+ domain?: string | undefined;
2205
+ nonce?: string | undefined;
2206
+ jws?: string | undefined;
2207
+ type: string;
2208
+ created: string;
2209
+ proofPurpose: string;
2210
+ verificationMethod: string;
2211
+ }[];
2212
+ }, {
2213
+ [x: string]: any;
2214
+ id?: string | undefined;
2215
+ expirationDate?: string | undefined;
2216
+ credentialStatus?: {
2217
+ type: string;
2218
+ id: string;
2219
+ } | undefined;
2220
+ credentialSchema?: {
2221
+ type: string;
2222
+ id: string;
2223
+ }[] | undefined;
2224
+ refreshService?: {
2225
+ [x: string]: any;
2226
+ type: string;
2227
+ id: string;
2228
+ } | undefined;
2229
+ type: [
2230
+ string,
2231
+ ...string[]
2232
+ ];
2233
+ "@context": string[];
2234
+ issuer: string | {
2235
+ [x: string]: any;
2236
+ type?: [
2237
+ string,
2238
+ ...string[]
2239
+ ] | undefined;
2240
+ id?: string | undefined;
2241
+ name?: string | undefined;
2242
+ url?: string | undefined;
2243
+ phone?: string | undefined;
2244
+ description?: string | undefined;
2245
+ endorsement?: any[] | undefined;
2246
+ image?: string | {
2247
+ caption?: string | undefined;
2248
+ type: string;
2249
+ id: string;
2250
+ } | undefined;
2251
+ email?: string | undefined;
2252
+ address?: {
2253
+ addressCountry?: string | undefined;
2254
+ addressCountryCode?: string | undefined;
2255
+ addressRegion?: string | undefined;
2256
+ addressLocality?: string | undefined;
2257
+ streetAddress?: string | undefined;
2258
+ postOfficeBoxNumber?: string | undefined;
2259
+ postalCode?: string | undefined;
2260
+ geo?: {
2261
+ type: [
2262
+ string,
2263
+ ...string[]
2264
+ ];
2265
+ latitude: number;
2266
+ longitude: number;
2267
+ } | undefined;
2268
+ type: [
2269
+ string,
2270
+ ...string[]
2271
+ ];
2272
+ } | undefined;
2273
+ otherIdentifier?: {
2274
+ type: [
2275
+ string,
2276
+ ...string[]
2277
+ ];
2278
+ identifier: string;
2279
+ identifierType: string;
2280
+ }[] | undefined;
2281
+ official?: string | undefined;
2282
+ parentOrg?: any;
2283
+ familyName?: string | undefined;
2284
+ givenName?: string | undefined;
2285
+ additionalName?: string | undefined;
2286
+ patronymicName?: string | undefined;
2287
+ honorificPrefix?: string | undefined;
2288
+ honorificSuffix?: string | undefined;
2289
+ familyNamePrefix?: string | undefined;
2290
+ dateOfBirth?: string | undefined;
2291
+ };
2292
+ issuanceDate: string;
2293
+ credentialSubject: {
2294
+ [x: string]: any;
2295
+ id?: string | undefined;
2296
+ } | {
2297
+ [x: string]: any;
2298
+ id?: string | undefined;
2299
+ }[];
2300
+ proof: {
2301
+ [x: string]: any;
2302
+ challenge?: string | undefined;
2303
+ domain?: string | undefined;
2304
+ nonce?: string | undefined;
2305
+ jws?: string | undefined;
2306
+ type: string;
2307
+ created: string;
2308
+ proofPurpose: string;
2309
+ verificationMethod: string;
2310
+ } | {
2311
+ [x: string]: any;
2312
+ challenge?: string | undefined;
2313
+ domain?: string | undefined;
2314
+ nonce?: string | undefined;
2315
+ jws?: string | undefined;
2316
+ type: string;
2317
+ created: string;
2318
+ proofPurpose: string;
2319
+ verificationMethod: string;
2320
+ }[];
2321
+ }>, "many">
2322
+ ]>;
2323
+ holder: z.ZodOptional<z.ZodString>;
2324
+ }, {
2325
+ proof: z.ZodUnion<[
2326
+ z.ZodObject<{
2327
+ type: z.ZodString;
2328
+ created: z.ZodString;
2329
+ challenge: z.ZodOptional<z.ZodString>;
2330
+ domain: z.ZodOptional<z.ZodString>;
2331
+ nonce: z.ZodOptional<z.ZodString>;
2332
+ proofPurpose: z.ZodString;
2333
+ verificationMethod: z.ZodString;
2334
+ jws: z.ZodOptional<z.ZodString>;
2335
+ }, "strip", z.ZodAny, {
2336
+ [x: string]: any;
2337
+ challenge?: string | undefined;
2338
+ domain?: string | undefined;
2339
+ nonce?: string | undefined;
2340
+ jws?: string | undefined;
2341
+ type: string;
2342
+ created: string;
2343
+ proofPurpose: string;
2344
+ verificationMethod: string;
2345
+ }, {
2346
+ [x: string]: any;
2347
+ challenge?: string | undefined;
2348
+ domain?: string | undefined;
2349
+ nonce?: string | undefined;
2350
+ jws?: string | undefined;
2351
+ type: string;
2352
+ created: string;
2353
+ proofPurpose: string;
2354
+ verificationMethod: string;
2355
+ }>,
2356
+ z.ZodArray<z.ZodObject<{
2357
+ type: z.ZodString;
2358
+ created: z.ZodString;
2359
+ challenge: z.ZodOptional<z.ZodString>;
2360
+ domain: z.ZodOptional<z.ZodString>;
2361
+ nonce: z.ZodOptional<z.ZodString>;
2362
+ proofPurpose: z.ZodString;
2363
+ verificationMethod: z.ZodString;
2364
+ jws: z.ZodOptional<z.ZodString>;
2365
+ }, "strip", z.ZodAny, {
2366
+ [x: string]: any;
2367
+ challenge?: string | undefined;
2368
+ domain?: string | undefined;
2369
+ nonce?: string | undefined;
2370
+ jws?: string | undefined;
2371
+ type: string;
2372
+ created: string;
2373
+ proofPurpose: string;
2374
+ verificationMethod: string;
2375
+ }, {
2376
+ [x: string]: any;
2377
+ challenge?: string | undefined;
2378
+ domain?: string | undefined;
2379
+ nonce?: string | undefined;
2380
+ jws?: string | undefined;
2381
+ type: string;
2382
+ created: string;
2383
+ proofPurpose: string;
2384
+ verificationMethod: string;
2385
+ }>, "many">
2386
+ ]>;
2387
+ }>, "strip", z.ZodAny, {
2388
+ [x: string]: any;
2389
+ id?: string | undefined;
2390
+ holder?: string | undefined;
2391
+ type: [
2392
+ string,
2393
+ ...string[]
2394
+ ];
2395
+ "@context": string[];
2396
+ proof: {
2397
+ [x: string]: any;
2398
+ challenge?: string | undefined;
2399
+ domain?: string | undefined;
2400
+ nonce?: string | undefined;
2401
+ jws?: string | undefined;
2402
+ type: string;
2403
+ created: string;
2404
+ proofPurpose: string;
2405
+ verificationMethod: string;
2406
+ } | {
2407
+ [x: string]: any;
2408
+ challenge?: string | undefined;
2409
+ domain?: string | undefined;
2410
+ nonce?: string | undefined;
2411
+ jws?: string | undefined;
2412
+ type: string;
2413
+ created: string;
2414
+ proofPurpose: string;
2415
+ verificationMethod: string;
2416
+ }[];
2417
+ verifiableCredential: {
2418
+ [x: string]: any;
2419
+ id?: string | undefined;
2420
+ expirationDate?: string | undefined;
2421
+ credentialStatus?: {
2422
+ type: string;
2423
+ id: string;
2424
+ } | undefined;
2425
+ credentialSchema?: {
2426
+ type: string;
2427
+ id: string;
2428
+ }[] | undefined;
2429
+ refreshService?: {
2430
+ [x: string]: any;
2431
+ type: string;
2432
+ id: string;
2433
+ } | undefined;
2434
+ type: [
2435
+ string,
2436
+ ...string[]
2437
+ ];
2438
+ "@context": string[];
2439
+ issuer: string | {
2440
+ [x: string]: any;
2441
+ type?: [
2442
+ string,
2443
+ ...string[]
2444
+ ] | undefined;
2445
+ id?: string | undefined;
2446
+ name?: string | undefined;
2447
+ url?: string | undefined;
2448
+ phone?: string | undefined;
2449
+ description?: string | undefined;
2450
+ endorsement?: any[] | undefined;
2451
+ image?: string | {
2452
+ caption?: string | undefined;
2453
+ type: string;
2454
+ id: string;
2455
+ } | undefined;
2456
+ email?: string | undefined;
2457
+ address?: {
2458
+ addressCountry?: string | undefined;
2459
+ addressCountryCode?: string | undefined;
2460
+ addressRegion?: string | undefined;
2461
+ addressLocality?: string | undefined;
2462
+ streetAddress?: string | undefined;
2463
+ postOfficeBoxNumber?: string | undefined;
2464
+ postalCode?: string | undefined;
2465
+ geo?: {
2466
+ type: [
2467
+ string,
2468
+ ...string[]
2469
+ ];
2470
+ latitude: number;
2471
+ longitude: number;
2472
+ } | undefined;
2473
+ type: [
2474
+ string,
2475
+ ...string[]
2476
+ ];
2477
+ } | undefined;
2478
+ otherIdentifier?: {
2479
+ type: [
2480
+ string,
2481
+ ...string[]
2482
+ ];
2483
+ identifier: string;
2484
+ identifierType: string;
2485
+ }[] | undefined;
2486
+ official?: string | undefined;
2487
+ parentOrg?: any;
2488
+ familyName?: string | undefined;
2489
+ givenName?: string | undefined;
2490
+ additionalName?: string | undefined;
2491
+ patronymicName?: string | undefined;
2492
+ honorificPrefix?: string | undefined;
2493
+ honorificSuffix?: string | undefined;
2494
+ familyNamePrefix?: string | undefined;
2495
+ dateOfBirth?: string | undefined;
2496
+ };
2497
+ issuanceDate: string;
2498
+ credentialSubject: {
2499
+ [x: string]: any;
2500
+ id?: string | undefined;
2501
+ } | {
2502
+ [x: string]: any;
2503
+ id?: string | undefined;
2504
+ }[];
2505
+ proof: {
2506
+ [x: string]: any;
2507
+ challenge?: string | undefined;
2508
+ domain?: string | undefined;
2509
+ nonce?: string | undefined;
2510
+ jws?: string | undefined;
2511
+ type: string;
2512
+ created: string;
2513
+ proofPurpose: string;
2514
+ verificationMethod: string;
2515
+ } | {
2516
+ [x: string]: any;
2517
+ challenge?: string | undefined;
2518
+ domain?: string | undefined;
2519
+ nonce?: string | undefined;
2520
+ jws?: string | undefined;
2521
+ type: string;
2522
+ created: string;
2523
+ proofPurpose: string;
2524
+ verificationMethod: string;
2525
+ }[];
2526
+ } | {
2527
+ [x: string]: any;
2528
+ id?: string | undefined;
2529
+ expirationDate?: string | undefined;
2530
+ credentialStatus?: {
2531
+ type: string;
2532
+ id: string;
2533
+ } | undefined;
2534
+ credentialSchema?: {
2535
+ type: string;
2536
+ id: string;
2537
+ }[] | undefined;
2538
+ refreshService?: {
2539
+ [x: string]: any;
2540
+ type: string;
2541
+ id: string;
2542
+ } | undefined;
2543
+ type: [
2544
+ string,
2545
+ ...string[]
2546
+ ];
2547
+ "@context": string[];
2548
+ issuer: string | {
2549
+ [x: string]: any;
2550
+ type?: [
2551
+ string,
2552
+ ...string[]
2553
+ ] | undefined;
2554
+ id?: string | undefined;
2555
+ name?: string | undefined;
2556
+ url?: string | undefined;
2557
+ phone?: string | undefined;
2558
+ description?: string | undefined;
2559
+ endorsement?: any[] | undefined;
2560
+ image?: string | {
2561
+ caption?: string | undefined;
2562
+ type: string;
2563
+ id: string;
2564
+ } | undefined;
2565
+ email?: string | undefined;
2566
+ address?: {
2567
+ addressCountry?: string | undefined;
2568
+ addressCountryCode?: string | undefined;
2569
+ addressRegion?: string | undefined;
2570
+ addressLocality?: string | undefined;
2571
+ streetAddress?: string | undefined;
2572
+ postOfficeBoxNumber?: string | undefined;
2573
+ postalCode?: string | undefined;
2574
+ geo?: {
2575
+ type: [
2576
+ string,
2577
+ ...string[]
2578
+ ];
2579
+ latitude: number;
2580
+ longitude: number;
2581
+ } | undefined;
2582
+ type: [
2583
+ string,
2584
+ ...string[]
2585
+ ];
2586
+ } | undefined;
2587
+ otherIdentifier?: {
2588
+ type: [
2589
+ string,
2590
+ ...string[]
2591
+ ];
2592
+ identifier: string;
2593
+ identifierType: string;
2594
+ }[] | undefined;
2595
+ official?: string | undefined;
2596
+ parentOrg?: any;
2597
+ familyName?: string | undefined;
2598
+ givenName?: string | undefined;
2599
+ additionalName?: string | undefined;
2600
+ patronymicName?: string | undefined;
2601
+ honorificPrefix?: string | undefined;
2602
+ honorificSuffix?: string | undefined;
2603
+ familyNamePrefix?: string | undefined;
2604
+ dateOfBirth?: string | undefined;
2605
+ };
2606
+ issuanceDate: string;
2607
+ credentialSubject: {
2608
+ [x: string]: any;
2609
+ id?: string | undefined;
2610
+ } | {
2611
+ [x: string]: any;
2612
+ id?: string | undefined;
2613
+ }[];
2614
+ proof: {
2615
+ [x: string]: any;
2616
+ challenge?: string | undefined;
2617
+ domain?: string | undefined;
2618
+ nonce?: string | undefined;
2619
+ jws?: string | undefined;
2620
+ type: string;
2621
+ created: string;
2622
+ proofPurpose: string;
2623
+ verificationMethod: string;
2624
+ } | {
2625
+ [x: string]: any;
2626
+ challenge?: string | undefined;
2627
+ domain?: string | undefined;
2628
+ nonce?: string | undefined;
2629
+ jws?: string | undefined;
2630
+ type: string;
2631
+ created: string;
2632
+ proofPurpose: string;
2633
+ verificationMethod: string;
2634
+ }[];
2635
+ }[];
2636
+ }, {
2637
+ [x: string]: any;
2638
+ id?: string | undefined;
2639
+ holder?: string | undefined;
2640
+ type: [
2641
+ string,
2642
+ ...string[]
2643
+ ];
2644
+ "@context": string[];
2645
+ proof: {
2646
+ [x: string]: any;
2647
+ challenge?: string | undefined;
2648
+ domain?: string | undefined;
2649
+ nonce?: string | undefined;
2650
+ jws?: string | undefined;
2651
+ type: string;
2652
+ created: string;
2653
+ proofPurpose: string;
2654
+ verificationMethod: string;
2655
+ } | {
2656
+ [x: string]: any;
2657
+ challenge?: string | undefined;
2658
+ domain?: string | undefined;
2659
+ nonce?: string | undefined;
2660
+ jws?: string | undefined;
2661
+ type: string;
2662
+ created: string;
2663
+ proofPurpose: string;
2664
+ verificationMethod: string;
2665
+ }[];
2666
+ verifiableCredential: {
2667
+ [x: string]: any;
2668
+ id?: string | undefined;
2669
+ expirationDate?: string | undefined;
2670
+ credentialStatus?: {
2671
+ type: string;
2672
+ id: string;
2673
+ } | undefined;
2674
+ credentialSchema?: {
2675
+ type: string;
2676
+ id: string;
2677
+ }[] | undefined;
2678
+ refreshService?: {
2679
+ [x: string]: any;
2680
+ type: string;
2681
+ id: string;
2682
+ } | undefined;
2683
+ type: [
2684
+ string,
2685
+ ...string[]
2686
+ ];
2687
+ "@context": string[];
2688
+ issuer: string | {
2689
+ [x: string]: any;
2690
+ type?: [
2691
+ string,
2692
+ ...string[]
2693
+ ] | undefined;
2694
+ id?: string | undefined;
2695
+ name?: string | undefined;
2696
+ url?: string | undefined;
2697
+ phone?: string | undefined;
2698
+ description?: string | undefined;
2699
+ endorsement?: any[] | undefined;
2700
+ image?: string | {
2701
+ caption?: string | undefined;
2702
+ type: string;
2703
+ id: string;
2704
+ } | undefined;
2705
+ email?: string | undefined;
2706
+ address?: {
2707
+ addressCountry?: string | undefined;
2708
+ addressCountryCode?: string | undefined;
2709
+ addressRegion?: string | undefined;
2710
+ addressLocality?: string | undefined;
2711
+ streetAddress?: string | undefined;
2712
+ postOfficeBoxNumber?: string | undefined;
2713
+ postalCode?: string | undefined;
2714
+ geo?: {
2715
+ type: [
2716
+ string,
2717
+ ...string[]
2718
+ ];
2719
+ latitude: number;
2720
+ longitude: number;
2721
+ } | undefined;
2722
+ type: [
2723
+ string,
2724
+ ...string[]
2725
+ ];
2726
+ } | undefined;
2727
+ otherIdentifier?: {
2728
+ type: [
2729
+ string,
2730
+ ...string[]
2731
+ ];
2732
+ identifier: string;
2733
+ identifierType: string;
2734
+ }[] | undefined;
2735
+ official?: string | undefined;
2736
+ parentOrg?: any;
2737
+ familyName?: string | undefined;
2738
+ givenName?: string | undefined;
2739
+ additionalName?: string | undefined;
2740
+ patronymicName?: string | undefined;
2741
+ honorificPrefix?: string | undefined;
2742
+ honorificSuffix?: string | undefined;
2743
+ familyNamePrefix?: string | undefined;
2744
+ dateOfBirth?: string | undefined;
2745
+ };
2746
+ issuanceDate: string;
2747
+ credentialSubject: {
2748
+ [x: string]: any;
2749
+ id?: string | undefined;
2750
+ } | {
2751
+ [x: string]: any;
2752
+ id?: string | undefined;
2753
+ }[];
2754
+ proof: {
2755
+ [x: string]: any;
2756
+ challenge?: string | undefined;
2757
+ domain?: string | undefined;
2758
+ nonce?: string | undefined;
2759
+ jws?: string | undefined;
2760
+ type: string;
2761
+ created: string;
2762
+ proofPurpose: string;
2763
+ verificationMethod: string;
2764
+ } | {
2765
+ [x: string]: any;
2766
+ challenge?: string | undefined;
2767
+ domain?: string | undefined;
2768
+ nonce?: string | undefined;
2769
+ jws?: string | undefined;
2770
+ type: string;
2771
+ created: string;
2772
+ proofPurpose: string;
2773
+ verificationMethod: string;
2774
+ }[];
2775
+ } | {
2776
+ [x: string]: any;
2777
+ id?: string | undefined;
2778
+ expirationDate?: string | undefined;
2779
+ credentialStatus?: {
2780
+ type: string;
2781
+ id: string;
2782
+ } | undefined;
2783
+ credentialSchema?: {
2784
+ type: string;
2785
+ id: string;
2786
+ }[] | undefined;
2787
+ refreshService?: {
2788
+ [x: string]: any;
2789
+ type: string;
2790
+ id: string;
2791
+ } | undefined;
2792
+ type: [
2793
+ string,
2794
+ ...string[]
2795
+ ];
2796
+ "@context": string[];
2797
+ issuer: string | {
2798
+ [x: string]: any;
2799
+ type?: [
2800
+ string,
2801
+ ...string[]
2802
+ ] | undefined;
2803
+ id?: string | undefined;
2804
+ name?: string | undefined;
2805
+ url?: string | undefined;
2806
+ phone?: string | undefined;
2807
+ description?: string | undefined;
2808
+ endorsement?: any[] | undefined;
2809
+ image?: string | {
2810
+ caption?: string | undefined;
2811
+ type: string;
2812
+ id: string;
2813
+ } | undefined;
2814
+ email?: string | undefined;
2815
+ address?: {
2816
+ addressCountry?: string | undefined;
2817
+ addressCountryCode?: string | undefined;
2818
+ addressRegion?: string | undefined;
2819
+ addressLocality?: string | undefined;
2820
+ streetAddress?: string | undefined;
2821
+ postOfficeBoxNumber?: string | undefined;
2822
+ postalCode?: string | undefined;
2823
+ geo?: {
2824
+ type: [
2825
+ string,
2826
+ ...string[]
2827
+ ];
2828
+ latitude: number;
2829
+ longitude: number;
2830
+ } | undefined;
2831
+ type: [
2832
+ string,
2833
+ ...string[]
2834
+ ];
2835
+ } | undefined;
2836
+ otherIdentifier?: {
2837
+ type: [
2838
+ string,
2839
+ ...string[]
2840
+ ];
2841
+ identifier: string;
2842
+ identifierType: string;
2843
+ }[] | undefined;
2844
+ official?: string | undefined;
2845
+ parentOrg?: any;
2846
+ familyName?: string | undefined;
2847
+ givenName?: string | undefined;
2848
+ additionalName?: string | undefined;
2849
+ patronymicName?: string | undefined;
2850
+ honorificPrefix?: string | undefined;
2851
+ honorificSuffix?: string | undefined;
2852
+ familyNamePrefix?: string | undefined;
2853
+ dateOfBirth?: string | undefined;
2854
+ };
2855
+ issuanceDate: string;
2856
+ credentialSubject: {
2857
+ [x: string]: any;
2858
+ id?: string | undefined;
2859
+ } | {
2860
+ [x: string]: any;
2861
+ id?: string | undefined;
2862
+ }[];
2863
+ proof: {
2864
+ [x: string]: any;
2865
+ challenge?: string | undefined;
2866
+ domain?: string | undefined;
2867
+ nonce?: string | undefined;
2868
+ jws?: string | undefined;
2869
+ type: string;
2870
+ created: string;
2871
+ proofPurpose: string;
2872
+ verificationMethod: string;
2873
+ } | {
2874
+ [x: string]: any;
2875
+ challenge?: string | undefined;
2876
+ domain?: string | undefined;
2877
+ nonce?: string | undefined;
2878
+ jws?: string | undefined;
2879
+ type: string;
2880
+ created: string;
2881
+ proofPurpose: string;
2882
+ verificationMethod: string;
2883
+ }[];
2884
+ }[];
2885
+ }>;
2886
+ export declare type VP = z.infer<typeof VPValidator>;
2887
+ declare const VerificationItemValidator: z.ZodObject<{
2888
+ check: z.ZodString;
2889
+ status: z.ZodEnum<[
2890
+ "Success",
2891
+ "Failed",
2892
+ "Error"
2893
+ ]>;
2894
+ message: z.ZodOptional<z.ZodString>;
2895
+ details: z.ZodOptional<z.ZodString>;
2896
+ }, "strip", z.ZodTypeAny, {
2897
+ message?: string | undefined;
2898
+ details?: string | undefined;
2899
+ status: "Failed" | "Success" | "Error";
2900
+ check: string;
2901
+ }, {
2902
+ message?: string | undefined;
2903
+ details?: string | undefined;
2904
+ status: "Failed" | "Success" | "Error";
2905
+ check: string;
2906
+ }>;
2907
+ export declare type VerificationItem = z.infer<typeof VerificationItemValidator>;
2908
+ export declare type DidKeyPluginMethods = {
2909
+ getSubjectDid: () => string;
2910
+ getSubjectKeypair: () => {
2911
+ kty: string;
2912
+ crv: string;
2913
+ x: string;
2914
+ d: string;
2915
+ };
2916
+ getKey: () => string;
2917
+ };
2918
+ export declare type IDXPluginMethods = {
2919
+ getCredentialsListFromIndex: (alias?: string) => Promise<CredentialsList>;
2920
+ publishContentToCeramic: (cred: any) => Promise<string>;
2921
+ readContentFromCeramic: (streamId: string) => Promise<any>;
2922
+ getVerifiableCredentialFromIndex: (title: string) => Promise<any>;
2923
+ getVerifiableCredentialsFromIndex: () => Promise<any>;
2924
+ addVerifiableCredentialInIdx: (cred: IDXCredential) => Promise<StreamID>;
2925
+ };
2926
+ declare enum StorageType {
2927
+ ceramic = "ceramic"
2928
+ }
2929
+ export declare type IDXCredential = {
2930
+ id: string;
2931
+ title: string;
2932
+ storageType?: StorageType;
2933
+ };
2934
+ export declare type CredentialsList = {
2935
+ credentials: IDXCredential[];
2936
+ };
2937
+ export declare type VerificationCheck = {
2938
+ checks: string[];
2939
+ warnings: string[];
2940
+ errors: string[];
2941
+ };
2942
+ export declare type VCPluginMethods = {
2943
+ issueCredential: (credential: UnsignedVC) => Promise<VC>;
2944
+ verifyCredential: (credential: VC) => Promise<VerificationCheck>;
2945
+ issuePresentation: (credential: VC) => Promise<VP>;
2946
+ verifyPresentation: (presentation: VP) => Promise<VerificationCheck>;
2947
+ getTestVc: (subject?: string) => UnsignedVC;
2948
+ getSubjectDid: () => string;
2949
+ getSubjectKeypair: () => Record<string, string>;
2950
+ };
2951
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
2952
+ export declare type Plugin<Name extends string, PublicMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = {
2953
+ name?: Name;
2954
+ pluginMethods: {
2955
+ [Key in keyof PublicMethods]: <T extends UnlockedWallet<any, PublicMethods>>(wallet: T, ...args: Parameters<PublicMethods[Key]>) => ReturnType<PublicMethods[Key]>;
2956
+ };
2957
+ };
2958
+ export declare type PublicFieldsObj<PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = {
2959
+ pluginMethods: PluginMethods;
2960
+ };
2961
+ declare enum WalletStatus {
2962
+ Locked = "LOCKED",
2963
+ Unlocked = "UNLOCKED"
2964
+ }
2965
+ export declare type BaseWallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = PublicFieldsObj<PluginMethods> & {
2966
+ contents: any[];
2967
+ plugins: Plugin<PluginNames, Record<string, (...args: any[]) => any>>[];
2968
+ };
2969
+ export declare type LockedWallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = BaseWallet<PluginNames, PluginMethods> & {
2970
+ status: WalletStatus.Locked;
2971
+ };
2972
+ export declare type UnlockedWallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = BaseWallet<PluginNames, PluginMethods> & {
2973
+ status: WalletStatus.Unlocked;
2974
+ add: (content: any) => Promise<UnlockedWallet<PluginNames, PluginMethods>>;
2975
+ remove: (contentId: string) => Promise<UnlockedWallet<PluginNames, PluginMethods>>;
2976
+ addPlugin: <Name extends string, Methods extends Record<string, (...args: any[]) => any> = Record<never, never>>(plugin: Plugin<Name, Methods>) => Promise<UnlockedWallet<"" extends PluginNames ? Name : PluginNames | Name, Record<never, never> extends PluginMethods ? Methods : PluginMethods & Methods>>;
2977
+ };
2978
+ export declare type Wallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = LockedWallet<PluginNames, PluginMethods> | UnlockedWallet<PluginNames, PluginMethods>;
2979
+ export declare type LearnCardRawWallet = UnlockedWallet<"DID Key" | "VC" | "IDX" | "Expiration", DidKeyPluginMethods & VCPluginMethods & IDXPluginMethods>;
2980
+ export declare type LearnCardWallet = {
2981
+ /** Raw IoE wallet instance. You shouldn't need to drop down to this level! */
2982
+ _wallet: LearnCardRawWallet;
2983
+ /** Wallet holder's did */
2984
+ did: string;
2985
+ /** Wallet holder's ed25519 key pair */
2986
+ keypair: {
2987
+ kty: string;
2988
+ crv: string;
2989
+ x: string;
2990
+ d: string;
2991
+ };
2992
+ /** Signs an unsigned Verifiable Credential, returning the signed VC */
2993
+ issueCredential: (credential: UnsignedVC) => Promise<VC>;
2994
+ /**
2995
+ * Verifies a signed Verifiable Credential
2996
+ *
2997
+ * Empty error/warnings arrays means verification was successful
2998
+ */
2999
+ verifyCredential: (credential: VC) => Promise<VerificationItem[]>;
3000
+ /** Creates a signed Verifiable Presentation from a signed Verifiable Credential */
3001
+ issuePresentation: (credential: VC) => Promise<VP>;
3002
+ /**
3003
+ * Verifies a signed Verifiable Presentation
3004
+ *
3005
+ * Empry error/warnings arrays means verification was successful
3006
+ */
3007
+ verifyPresentation: (presentation: VP) => Promise<VerificationCheck>;
3008
+ /** Returns the credential marked with `title` from IDX */
3009
+ getCredential: (title: string) => Promise<any>;
3010
+ /** Returns all credentials from IDX */
3011
+ getCredentials: () => Promise<any[]>;
3012
+ /**
3013
+ * Publishes a credential to Ceramic, returning the credential's stream ID
3014
+ *
3015
+ * This stream ID may then be shared/persisted/resolved to gain access to the credential
3016
+ *
3017
+ * Resolving a stream ID can be done by passing the stream ID to `readFromCeramic`
3018
+ */
3019
+ publishCredential: (credential: any) => Promise<string>;
3020
+ /**
3021
+ * Adds a stream ID pointing to a credential (such as the one returned by `publishCredential`)
3022
+ * to IDX with a bespoke title
3023
+ *
3024
+ * The credential may then be retrieved using `getCredential` and passing in that bespoke title,
3025
+ * or by using `getCredentials` to get a list of all credentials that have been added to IDX
3026
+ */
3027
+ addCredential: (credential: IDXCredential) => Promise<void>;
3028
+ /**
3029
+ * Resolves a stream ID, returning its contents
3030
+ *
3031
+ * This can be given the return value of `publishCredential` to gain access to the credential
3032
+ * that was published
3033
+ */
3034
+ readFromCeramic: (streamId: string) => Promise<any>;
3035
+ /**
3036
+ * Returns an example credential, optionally allowing a subject's did to be passed in
3037
+ *
3038
+ * You can use this to test out implementations that use this library!
3039
+ */
3040
+ getTestVc: (subject?: string) => UnsignedVC;
3041
+ };
3042
+ export declare type CeramicIDXArgs = {
3043
+ modelData: ModelAliases;
3044
+ credentialAlias: string;
3045
+ ceramicEndpoint: string;
3046
+ defaultContentFamily: string;
3047
+ };
3048
+ export declare type LearnCardConfig = {
3049
+ ceramicIdx: CeramicIDXArgs;
3050
+ didkit: InitInput | Promise<InitInput>;
3051
+ defaultContents: any[];
3052
+ };
3053
+ /** Generates a LearnCard Wallet from a 64 character seed string */
3054
+ export declare const walletFromKey: (key: string, { ceramicIdx, didkit, defaultContents, }?: Partial<LearnCardConfig>) => Promise<LearnCardWallet>;
3055
+ export { walletFromKey } from "@wallet/init";
3056
+ export { Wallet, UnlockedWallet, LockedWallet, Plugin } from "types/wallet";
3057
+
3058
+ export {};