@learncard/core 1.1.4 → 1.3.1

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 +3855 -12007
  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 +4756 -0
  7. package/dist/core.esm.js +3857 -12007
  8. package/dist/core.esm.js.map +3 -3
  9. package/package.json +22 -17
  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,4756 @@
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 UnsignedVPValidator: z.ZodObject<{
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
+ }, "strip", z.ZodAny, {
2325
+ [x: string]: any;
2326
+ id?: string | undefined;
2327
+ holder?: string | undefined;
2328
+ type: [
2329
+ string,
2330
+ ...string[]
2331
+ ];
2332
+ "@context": string[];
2333
+ verifiableCredential: {
2334
+ [x: string]: any;
2335
+ id?: string | undefined;
2336
+ expirationDate?: string | undefined;
2337
+ credentialStatus?: {
2338
+ type: string;
2339
+ id: string;
2340
+ } | undefined;
2341
+ credentialSchema?: {
2342
+ type: string;
2343
+ id: string;
2344
+ }[] | undefined;
2345
+ refreshService?: {
2346
+ [x: string]: any;
2347
+ type: string;
2348
+ id: string;
2349
+ } | undefined;
2350
+ type: [
2351
+ string,
2352
+ ...string[]
2353
+ ];
2354
+ "@context": string[];
2355
+ issuer: string | {
2356
+ [x: string]: any;
2357
+ type?: [
2358
+ string,
2359
+ ...string[]
2360
+ ] | undefined;
2361
+ id?: string | undefined;
2362
+ name?: string | undefined;
2363
+ url?: string | undefined;
2364
+ phone?: string | undefined;
2365
+ description?: string | undefined;
2366
+ endorsement?: any[] | undefined;
2367
+ image?: string | {
2368
+ caption?: string | undefined;
2369
+ type: string;
2370
+ id: string;
2371
+ } | undefined;
2372
+ email?: string | undefined;
2373
+ address?: {
2374
+ addressCountry?: string | undefined;
2375
+ addressCountryCode?: string | undefined;
2376
+ addressRegion?: string | undefined;
2377
+ addressLocality?: string | undefined;
2378
+ streetAddress?: string | undefined;
2379
+ postOfficeBoxNumber?: string | undefined;
2380
+ postalCode?: string | undefined;
2381
+ geo?: {
2382
+ type: [
2383
+ string,
2384
+ ...string[]
2385
+ ];
2386
+ latitude: number;
2387
+ longitude: number;
2388
+ } | undefined;
2389
+ type: [
2390
+ string,
2391
+ ...string[]
2392
+ ];
2393
+ } | undefined;
2394
+ otherIdentifier?: {
2395
+ type: [
2396
+ string,
2397
+ ...string[]
2398
+ ];
2399
+ identifier: string;
2400
+ identifierType: string;
2401
+ }[] | undefined;
2402
+ official?: string | undefined;
2403
+ parentOrg?: any;
2404
+ familyName?: string | undefined;
2405
+ givenName?: string | undefined;
2406
+ additionalName?: string | undefined;
2407
+ patronymicName?: string | undefined;
2408
+ honorificPrefix?: string | undefined;
2409
+ honorificSuffix?: string | undefined;
2410
+ familyNamePrefix?: string | undefined;
2411
+ dateOfBirth?: string | undefined;
2412
+ };
2413
+ issuanceDate: string;
2414
+ credentialSubject: {
2415
+ [x: string]: any;
2416
+ id?: string | undefined;
2417
+ } | {
2418
+ [x: string]: any;
2419
+ id?: string | undefined;
2420
+ }[];
2421
+ proof: {
2422
+ [x: string]: any;
2423
+ challenge?: string | undefined;
2424
+ domain?: string | undefined;
2425
+ nonce?: string | undefined;
2426
+ jws?: string | undefined;
2427
+ type: string;
2428
+ created: string;
2429
+ proofPurpose: string;
2430
+ verificationMethod: string;
2431
+ } | {
2432
+ [x: string]: any;
2433
+ challenge?: string | undefined;
2434
+ domain?: string | undefined;
2435
+ nonce?: string | undefined;
2436
+ jws?: string | undefined;
2437
+ type: string;
2438
+ created: string;
2439
+ proofPurpose: string;
2440
+ verificationMethod: string;
2441
+ }[];
2442
+ } | {
2443
+ [x: string]: any;
2444
+ id?: string | undefined;
2445
+ expirationDate?: string | undefined;
2446
+ credentialStatus?: {
2447
+ type: string;
2448
+ id: string;
2449
+ } | undefined;
2450
+ credentialSchema?: {
2451
+ type: string;
2452
+ id: string;
2453
+ }[] | undefined;
2454
+ refreshService?: {
2455
+ [x: string]: any;
2456
+ type: string;
2457
+ id: string;
2458
+ } | undefined;
2459
+ type: [
2460
+ string,
2461
+ ...string[]
2462
+ ];
2463
+ "@context": string[];
2464
+ issuer: string | {
2465
+ [x: string]: any;
2466
+ type?: [
2467
+ string,
2468
+ ...string[]
2469
+ ] | undefined;
2470
+ id?: string | undefined;
2471
+ name?: string | undefined;
2472
+ url?: string | undefined;
2473
+ phone?: string | undefined;
2474
+ description?: string | undefined;
2475
+ endorsement?: any[] | undefined;
2476
+ image?: string | {
2477
+ caption?: string | undefined;
2478
+ type: string;
2479
+ id: string;
2480
+ } | undefined;
2481
+ email?: string | undefined;
2482
+ address?: {
2483
+ addressCountry?: string | undefined;
2484
+ addressCountryCode?: string | undefined;
2485
+ addressRegion?: string | undefined;
2486
+ addressLocality?: string | undefined;
2487
+ streetAddress?: string | undefined;
2488
+ postOfficeBoxNumber?: string | undefined;
2489
+ postalCode?: string | undefined;
2490
+ geo?: {
2491
+ type: [
2492
+ string,
2493
+ ...string[]
2494
+ ];
2495
+ latitude: number;
2496
+ longitude: number;
2497
+ } | undefined;
2498
+ type: [
2499
+ string,
2500
+ ...string[]
2501
+ ];
2502
+ } | undefined;
2503
+ otherIdentifier?: {
2504
+ type: [
2505
+ string,
2506
+ ...string[]
2507
+ ];
2508
+ identifier: string;
2509
+ identifierType: string;
2510
+ }[] | undefined;
2511
+ official?: string | undefined;
2512
+ parentOrg?: any;
2513
+ familyName?: string | undefined;
2514
+ givenName?: string | undefined;
2515
+ additionalName?: string | undefined;
2516
+ patronymicName?: string | undefined;
2517
+ honorificPrefix?: string | undefined;
2518
+ honorificSuffix?: string | undefined;
2519
+ familyNamePrefix?: string | undefined;
2520
+ dateOfBirth?: string | undefined;
2521
+ };
2522
+ issuanceDate: string;
2523
+ credentialSubject: {
2524
+ [x: string]: any;
2525
+ id?: string | undefined;
2526
+ } | {
2527
+ [x: string]: any;
2528
+ id?: string | undefined;
2529
+ }[];
2530
+ proof: {
2531
+ [x: string]: any;
2532
+ challenge?: string | undefined;
2533
+ domain?: string | undefined;
2534
+ nonce?: string | undefined;
2535
+ jws?: string | undefined;
2536
+ type: string;
2537
+ created: string;
2538
+ proofPurpose: string;
2539
+ verificationMethod: string;
2540
+ } | {
2541
+ [x: string]: any;
2542
+ challenge?: string | undefined;
2543
+ domain?: string | undefined;
2544
+ nonce?: string | undefined;
2545
+ jws?: string | undefined;
2546
+ type: string;
2547
+ created: string;
2548
+ proofPurpose: string;
2549
+ verificationMethod: string;
2550
+ }[];
2551
+ }[];
2552
+ }, {
2553
+ [x: string]: any;
2554
+ id?: string | undefined;
2555
+ holder?: string | undefined;
2556
+ type: [
2557
+ string,
2558
+ ...string[]
2559
+ ];
2560
+ "@context": string[];
2561
+ verifiableCredential: {
2562
+ [x: string]: any;
2563
+ id?: string | undefined;
2564
+ expirationDate?: string | undefined;
2565
+ credentialStatus?: {
2566
+ type: string;
2567
+ id: string;
2568
+ } | undefined;
2569
+ credentialSchema?: {
2570
+ type: string;
2571
+ id: string;
2572
+ }[] | undefined;
2573
+ refreshService?: {
2574
+ [x: string]: any;
2575
+ type: string;
2576
+ id: string;
2577
+ } | undefined;
2578
+ type: [
2579
+ string,
2580
+ ...string[]
2581
+ ];
2582
+ "@context": string[];
2583
+ issuer: string | {
2584
+ [x: string]: any;
2585
+ type?: [
2586
+ string,
2587
+ ...string[]
2588
+ ] | undefined;
2589
+ id?: string | undefined;
2590
+ name?: string | undefined;
2591
+ url?: string | undefined;
2592
+ phone?: string | undefined;
2593
+ description?: string | undefined;
2594
+ endorsement?: any[] | undefined;
2595
+ image?: string | {
2596
+ caption?: string | undefined;
2597
+ type: string;
2598
+ id: string;
2599
+ } | undefined;
2600
+ email?: string | undefined;
2601
+ address?: {
2602
+ addressCountry?: string | undefined;
2603
+ addressCountryCode?: string | undefined;
2604
+ addressRegion?: string | undefined;
2605
+ addressLocality?: string | undefined;
2606
+ streetAddress?: string | undefined;
2607
+ postOfficeBoxNumber?: string | undefined;
2608
+ postalCode?: string | undefined;
2609
+ geo?: {
2610
+ type: [
2611
+ string,
2612
+ ...string[]
2613
+ ];
2614
+ latitude: number;
2615
+ longitude: number;
2616
+ } | undefined;
2617
+ type: [
2618
+ string,
2619
+ ...string[]
2620
+ ];
2621
+ } | undefined;
2622
+ otherIdentifier?: {
2623
+ type: [
2624
+ string,
2625
+ ...string[]
2626
+ ];
2627
+ identifier: string;
2628
+ identifierType: string;
2629
+ }[] | undefined;
2630
+ official?: string | undefined;
2631
+ parentOrg?: any;
2632
+ familyName?: string | undefined;
2633
+ givenName?: string | undefined;
2634
+ additionalName?: string | undefined;
2635
+ patronymicName?: string | undefined;
2636
+ honorificPrefix?: string | undefined;
2637
+ honorificSuffix?: string | undefined;
2638
+ familyNamePrefix?: string | undefined;
2639
+ dateOfBirth?: string | undefined;
2640
+ };
2641
+ issuanceDate: string;
2642
+ credentialSubject: {
2643
+ [x: string]: any;
2644
+ id?: string | undefined;
2645
+ } | {
2646
+ [x: string]: any;
2647
+ id?: string | undefined;
2648
+ }[];
2649
+ proof: {
2650
+ [x: string]: any;
2651
+ challenge?: string | undefined;
2652
+ domain?: string | undefined;
2653
+ nonce?: string | undefined;
2654
+ jws?: string | undefined;
2655
+ type: string;
2656
+ created: string;
2657
+ proofPurpose: string;
2658
+ verificationMethod: string;
2659
+ } | {
2660
+ [x: string]: any;
2661
+ challenge?: string | undefined;
2662
+ domain?: string | undefined;
2663
+ nonce?: string | undefined;
2664
+ jws?: string | undefined;
2665
+ type: string;
2666
+ created: string;
2667
+ proofPurpose: string;
2668
+ verificationMethod: string;
2669
+ }[];
2670
+ } | {
2671
+ [x: string]: any;
2672
+ id?: string | undefined;
2673
+ expirationDate?: string | undefined;
2674
+ credentialStatus?: {
2675
+ type: string;
2676
+ id: string;
2677
+ } | undefined;
2678
+ credentialSchema?: {
2679
+ type: string;
2680
+ id: string;
2681
+ }[] | undefined;
2682
+ refreshService?: {
2683
+ [x: string]: any;
2684
+ type: string;
2685
+ id: string;
2686
+ } | undefined;
2687
+ type: [
2688
+ string,
2689
+ ...string[]
2690
+ ];
2691
+ "@context": string[];
2692
+ issuer: string | {
2693
+ [x: string]: any;
2694
+ type?: [
2695
+ string,
2696
+ ...string[]
2697
+ ] | undefined;
2698
+ id?: string | undefined;
2699
+ name?: string | undefined;
2700
+ url?: string | undefined;
2701
+ phone?: string | undefined;
2702
+ description?: string | undefined;
2703
+ endorsement?: any[] | undefined;
2704
+ image?: string | {
2705
+ caption?: string | undefined;
2706
+ type: string;
2707
+ id: string;
2708
+ } | undefined;
2709
+ email?: string | undefined;
2710
+ address?: {
2711
+ addressCountry?: string | undefined;
2712
+ addressCountryCode?: string | undefined;
2713
+ addressRegion?: string | undefined;
2714
+ addressLocality?: string | undefined;
2715
+ streetAddress?: string | undefined;
2716
+ postOfficeBoxNumber?: string | undefined;
2717
+ postalCode?: string | undefined;
2718
+ geo?: {
2719
+ type: [
2720
+ string,
2721
+ ...string[]
2722
+ ];
2723
+ latitude: number;
2724
+ longitude: number;
2725
+ } | undefined;
2726
+ type: [
2727
+ string,
2728
+ ...string[]
2729
+ ];
2730
+ } | undefined;
2731
+ otherIdentifier?: {
2732
+ type: [
2733
+ string,
2734
+ ...string[]
2735
+ ];
2736
+ identifier: string;
2737
+ identifierType: string;
2738
+ }[] | undefined;
2739
+ official?: string | undefined;
2740
+ parentOrg?: any;
2741
+ familyName?: string | undefined;
2742
+ givenName?: string | undefined;
2743
+ additionalName?: string | undefined;
2744
+ patronymicName?: string | undefined;
2745
+ honorificPrefix?: string | undefined;
2746
+ honorificSuffix?: string | undefined;
2747
+ familyNamePrefix?: string | undefined;
2748
+ dateOfBirth?: string | undefined;
2749
+ };
2750
+ issuanceDate: string;
2751
+ credentialSubject: {
2752
+ [x: string]: any;
2753
+ id?: string | undefined;
2754
+ } | {
2755
+ [x: string]: any;
2756
+ id?: string | undefined;
2757
+ }[];
2758
+ proof: {
2759
+ [x: string]: any;
2760
+ challenge?: string | undefined;
2761
+ domain?: string | undefined;
2762
+ nonce?: string | undefined;
2763
+ jws?: string | undefined;
2764
+ type: string;
2765
+ created: string;
2766
+ proofPurpose: string;
2767
+ verificationMethod: string;
2768
+ } | {
2769
+ [x: string]: any;
2770
+ challenge?: string | undefined;
2771
+ domain?: string | undefined;
2772
+ nonce?: string | undefined;
2773
+ jws?: string | undefined;
2774
+ type: string;
2775
+ created: string;
2776
+ proofPurpose: string;
2777
+ verificationMethod: string;
2778
+ }[];
2779
+ }[];
2780
+ }>;
2781
+ export declare type UnsignedVP = z.infer<typeof UnsignedVPValidator>;
2782
+ declare const VPValidator: z.ZodObject<z.extendShape<{
2783
+ "@context": z.ZodArray<z.ZodString, "many">;
2784
+ id: z.ZodOptional<z.ZodString>;
2785
+ type: z.ZodArray<z.ZodString, "atleastone">;
2786
+ verifiableCredential: z.ZodUnion<[
2787
+ z.ZodObject<z.extendShape<{
2788
+ "@context": z.ZodArray<z.ZodString, "many">;
2789
+ id: z.ZodOptional<z.ZodString>;
2790
+ type: z.ZodArray<z.ZodString, "atleastone">;
2791
+ issuer: z.ZodUnion<[
2792
+ z.ZodString,
2793
+ z.ZodObject<{
2794
+ id: z.ZodOptional<z.ZodString>;
2795
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
2796
+ name: z.ZodOptional<z.ZodString>;
2797
+ url: z.ZodOptional<z.ZodString>;
2798
+ phone: z.ZodOptional<z.ZodString>;
2799
+ description: z.ZodOptional<z.ZodString>;
2800
+ endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2801
+ image: z.ZodOptional<z.ZodUnion<[
2802
+ z.ZodString,
2803
+ z.ZodObject<{
2804
+ id: z.ZodString;
2805
+ type: z.ZodString;
2806
+ caption: z.ZodOptional<z.ZodString>;
2807
+ }, "strip", z.ZodTypeAny, {
2808
+ caption?: string | undefined;
2809
+ type: string;
2810
+ id: string;
2811
+ }, {
2812
+ caption?: string | undefined;
2813
+ type: string;
2814
+ id: string;
2815
+ }>
2816
+ ]>>;
2817
+ email: z.ZodOptional<z.ZodString>;
2818
+ address: z.ZodOptional<z.ZodObject<{
2819
+ type: z.ZodArray<z.ZodString, "atleastone">;
2820
+ addressCountry: z.ZodOptional<z.ZodString>;
2821
+ addressCountryCode: z.ZodOptional<z.ZodString>;
2822
+ addressRegion: z.ZodOptional<z.ZodString>;
2823
+ addressLocality: z.ZodOptional<z.ZodString>;
2824
+ streetAddress: z.ZodOptional<z.ZodString>;
2825
+ postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
2826
+ postalCode: z.ZodOptional<z.ZodString>;
2827
+ geo: z.ZodOptional<z.ZodObject<{
2828
+ type: z.ZodArray<z.ZodString, "atleastone">;
2829
+ latitude: z.ZodNumber;
2830
+ longitude: z.ZodNumber;
2831
+ }, "strip", z.ZodTypeAny, {
2832
+ type: [
2833
+ string,
2834
+ ...string[]
2835
+ ];
2836
+ latitude: number;
2837
+ longitude: number;
2838
+ }, {
2839
+ type: [
2840
+ string,
2841
+ ...string[]
2842
+ ];
2843
+ latitude: number;
2844
+ longitude: number;
2845
+ }>>;
2846
+ }, "strip", z.ZodTypeAny, {
2847
+ addressCountry?: string | undefined;
2848
+ addressCountryCode?: string | undefined;
2849
+ addressRegion?: string | undefined;
2850
+ addressLocality?: string | undefined;
2851
+ streetAddress?: string | undefined;
2852
+ postOfficeBoxNumber?: string | undefined;
2853
+ postalCode?: string | undefined;
2854
+ geo?: {
2855
+ type: [
2856
+ string,
2857
+ ...string[]
2858
+ ];
2859
+ latitude: number;
2860
+ longitude: number;
2861
+ } | undefined;
2862
+ type: [
2863
+ string,
2864
+ ...string[]
2865
+ ];
2866
+ }, {
2867
+ addressCountry?: string | undefined;
2868
+ addressCountryCode?: string | undefined;
2869
+ addressRegion?: string | undefined;
2870
+ addressLocality?: string | undefined;
2871
+ streetAddress?: string | undefined;
2872
+ postOfficeBoxNumber?: string | undefined;
2873
+ postalCode?: string | undefined;
2874
+ geo?: {
2875
+ type: [
2876
+ string,
2877
+ ...string[]
2878
+ ];
2879
+ latitude: number;
2880
+ longitude: number;
2881
+ } | undefined;
2882
+ type: [
2883
+ string,
2884
+ ...string[]
2885
+ ];
2886
+ }>>;
2887
+ otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
2888
+ type: z.ZodArray<z.ZodString, "atleastone">;
2889
+ identifier: z.ZodString;
2890
+ identifierType: z.ZodUnion<[
2891
+ z.ZodEnum<[
2892
+ "sourcedId",
2893
+ "systemId",
2894
+ "productId",
2895
+ "userName",
2896
+ "accountId",
2897
+ "emailAddress",
2898
+ "nationalIdentityNumber",
2899
+ "isbn",
2900
+ "issn",
2901
+ "lisSourcedId",
2902
+ "oneRosterSourcedId",
2903
+ "sisSourcedId",
2904
+ "ltiContextId",
2905
+ "ltiDeploymentId",
2906
+ "ltiToolId",
2907
+ "ltiPlatformId",
2908
+ "ltiUserId",
2909
+ "identifier"
2910
+ ]>,
2911
+ z.ZodString
2912
+ ]>;
2913
+ }, "strip", z.ZodTypeAny, {
2914
+ type: [
2915
+ string,
2916
+ ...string[]
2917
+ ];
2918
+ identifier: string;
2919
+ identifierType: string;
2920
+ }, {
2921
+ type: [
2922
+ string,
2923
+ ...string[]
2924
+ ];
2925
+ identifier: string;
2926
+ identifierType: string;
2927
+ }>, "many">>;
2928
+ official: z.ZodOptional<z.ZodString>;
2929
+ parentOrg: z.ZodOptional<z.ZodAny>;
2930
+ familyName: z.ZodOptional<z.ZodString>;
2931
+ givenName: z.ZodOptional<z.ZodString>;
2932
+ additionalName: z.ZodOptional<z.ZodString>;
2933
+ patronymicName: z.ZodOptional<z.ZodString>;
2934
+ honorificPrefix: z.ZodOptional<z.ZodString>;
2935
+ honorificSuffix: z.ZodOptional<z.ZodString>;
2936
+ familyNamePrefix: z.ZodOptional<z.ZodString>;
2937
+ dateOfBirth: z.ZodOptional<z.ZodString>;
2938
+ }, "strip", z.ZodAny, {
2939
+ [x: string]: any;
2940
+ type?: [
2941
+ string,
2942
+ ...string[]
2943
+ ] | undefined;
2944
+ id?: string | undefined;
2945
+ name?: string | undefined;
2946
+ url?: string | undefined;
2947
+ phone?: string | undefined;
2948
+ description?: string | undefined;
2949
+ endorsement?: any[] | undefined;
2950
+ image?: string | {
2951
+ caption?: string | undefined;
2952
+ type: string;
2953
+ id: string;
2954
+ } | undefined;
2955
+ email?: string | undefined;
2956
+ address?: {
2957
+ addressCountry?: string | undefined;
2958
+ addressCountryCode?: string | undefined;
2959
+ addressRegion?: string | undefined;
2960
+ addressLocality?: string | undefined;
2961
+ streetAddress?: string | undefined;
2962
+ postOfficeBoxNumber?: string | undefined;
2963
+ postalCode?: string | undefined;
2964
+ geo?: {
2965
+ type: [
2966
+ string,
2967
+ ...string[]
2968
+ ];
2969
+ latitude: number;
2970
+ longitude: number;
2971
+ } | undefined;
2972
+ type: [
2973
+ string,
2974
+ ...string[]
2975
+ ];
2976
+ } | undefined;
2977
+ otherIdentifier?: {
2978
+ type: [
2979
+ string,
2980
+ ...string[]
2981
+ ];
2982
+ identifier: string;
2983
+ identifierType: string;
2984
+ }[] | undefined;
2985
+ official?: string | undefined;
2986
+ parentOrg?: any;
2987
+ familyName?: string | undefined;
2988
+ givenName?: string | undefined;
2989
+ additionalName?: string | undefined;
2990
+ patronymicName?: string | undefined;
2991
+ honorificPrefix?: string | undefined;
2992
+ honorificSuffix?: string | undefined;
2993
+ familyNamePrefix?: string | undefined;
2994
+ dateOfBirth?: string | undefined;
2995
+ }, {
2996
+ [x: string]: any;
2997
+ type?: [
2998
+ string,
2999
+ ...string[]
3000
+ ] | undefined;
3001
+ id?: string | undefined;
3002
+ name?: string | undefined;
3003
+ url?: string | undefined;
3004
+ phone?: string | undefined;
3005
+ description?: string | undefined;
3006
+ endorsement?: any[] | undefined;
3007
+ image?: string | {
3008
+ caption?: string | undefined;
3009
+ type: string;
3010
+ id: string;
3011
+ } | undefined;
3012
+ email?: string | undefined;
3013
+ address?: {
3014
+ addressCountry?: string | undefined;
3015
+ addressCountryCode?: string | undefined;
3016
+ addressRegion?: string | undefined;
3017
+ addressLocality?: string | undefined;
3018
+ streetAddress?: string | undefined;
3019
+ postOfficeBoxNumber?: string | undefined;
3020
+ postalCode?: string | undefined;
3021
+ geo?: {
3022
+ type: [
3023
+ string,
3024
+ ...string[]
3025
+ ];
3026
+ latitude: number;
3027
+ longitude: number;
3028
+ } | undefined;
3029
+ type: [
3030
+ string,
3031
+ ...string[]
3032
+ ];
3033
+ } | undefined;
3034
+ otherIdentifier?: {
3035
+ type: [
3036
+ string,
3037
+ ...string[]
3038
+ ];
3039
+ identifier: string;
3040
+ identifierType: string;
3041
+ }[] | undefined;
3042
+ official?: string | undefined;
3043
+ parentOrg?: any;
3044
+ familyName?: string | undefined;
3045
+ givenName?: string | undefined;
3046
+ additionalName?: string | undefined;
3047
+ patronymicName?: string | undefined;
3048
+ honorificPrefix?: string | undefined;
3049
+ honorificSuffix?: string | undefined;
3050
+ familyNamePrefix?: string | undefined;
3051
+ dateOfBirth?: string | undefined;
3052
+ }>
3053
+ ]>;
3054
+ issuanceDate: z.ZodString;
3055
+ expirationDate: z.ZodOptional<z.ZodString>;
3056
+ credentialSubject: z.ZodUnion<[
3057
+ z.ZodObject<{
3058
+ id: z.ZodOptional<z.ZodString>;
3059
+ }, "strip", z.ZodAny, {
3060
+ [x: string]: any;
3061
+ id?: string | undefined;
3062
+ }, {
3063
+ [x: string]: any;
3064
+ id?: string | undefined;
3065
+ }>,
3066
+ z.ZodArray<z.ZodObject<{
3067
+ id: z.ZodOptional<z.ZodString>;
3068
+ }, "strip", z.ZodAny, {
3069
+ [x: string]: any;
3070
+ id?: string | undefined;
3071
+ }, {
3072
+ [x: string]: any;
3073
+ id?: string | undefined;
3074
+ }>, "many">
3075
+ ]>;
3076
+ credentialStatus: z.ZodOptional<z.ZodObject<{
3077
+ type: z.ZodString;
3078
+ id: z.ZodString;
3079
+ }, "strip", z.ZodTypeAny, {
3080
+ type: string;
3081
+ id: string;
3082
+ }, {
3083
+ type: string;
3084
+ id: string;
3085
+ }>>;
3086
+ credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
3087
+ id: z.ZodString;
3088
+ type: z.ZodString;
3089
+ }, "strip", z.ZodTypeAny, {
3090
+ type: string;
3091
+ id: string;
3092
+ }, {
3093
+ type: string;
3094
+ id: string;
3095
+ }>, "many">>;
3096
+ refreshService: z.ZodOptional<z.ZodObject<{
3097
+ id: z.ZodString;
3098
+ type: z.ZodString;
3099
+ }, "strip", z.ZodAny, {
3100
+ [x: string]: any;
3101
+ type: string;
3102
+ id: string;
3103
+ }, {
3104
+ [x: string]: any;
3105
+ type: string;
3106
+ id: string;
3107
+ }>>;
3108
+ }, {
3109
+ proof: z.ZodUnion<[
3110
+ z.ZodObject<{
3111
+ type: z.ZodString;
3112
+ created: z.ZodString;
3113
+ challenge: z.ZodOptional<z.ZodString>;
3114
+ domain: z.ZodOptional<z.ZodString>;
3115
+ nonce: z.ZodOptional<z.ZodString>;
3116
+ proofPurpose: z.ZodString;
3117
+ verificationMethod: z.ZodString;
3118
+ jws: z.ZodOptional<z.ZodString>;
3119
+ }, "strip", z.ZodAny, {
3120
+ [x: string]: any;
3121
+ challenge?: string | undefined;
3122
+ domain?: string | undefined;
3123
+ nonce?: string | undefined;
3124
+ jws?: string | undefined;
3125
+ type: string;
3126
+ created: string;
3127
+ proofPurpose: string;
3128
+ verificationMethod: string;
3129
+ }, {
3130
+ [x: string]: any;
3131
+ challenge?: string | undefined;
3132
+ domain?: string | undefined;
3133
+ nonce?: string | undefined;
3134
+ jws?: string | undefined;
3135
+ type: string;
3136
+ created: string;
3137
+ proofPurpose: string;
3138
+ verificationMethod: string;
3139
+ }>,
3140
+ z.ZodArray<z.ZodObject<{
3141
+ type: z.ZodString;
3142
+ created: z.ZodString;
3143
+ challenge: z.ZodOptional<z.ZodString>;
3144
+ domain: z.ZodOptional<z.ZodString>;
3145
+ nonce: z.ZodOptional<z.ZodString>;
3146
+ proofPurpose: z.ZodString;
3147
+ verificationMethod: z.ZodString;
3148
+ jws: z.ZodOptional<z.ZodString>;
3149
+ }, "strip", z.ZodAny, {
3150
+ [x: string]: any;
3151
+ challenge?: string | undefined;
3152
+ domain?: string | undefined;
3153
+ nonce?: string | undefined;
3154
+ jws?: string | undefined;
3155
+ type: string;
3156
+ created: string;
3157
+ proofPurpose: string;
3158
+ verificationMethod: string;
3159
+ }, {
3160
+ [x: string]: any;
3161
+ challenge?: string | undefined;
3162
+ domain?: string | undefined;
3163
+ nonce?: string | undefined;
3164
+ jws?: string | undefined;
3165
+ type: string;
3166
+ created: string;
3167
+ proofPurpose: string;
3168
+ verificationMethod: string;
3169
+ }>, "many">
3170
+ ]>;
3171
+ }>, "strip", z.ZodAny, {
3172
+ [x: string]: any;
3173
+ id?: string | undefined;
3174
+ expirationDate?: string | undefined;
3175
+ credentialStatus?: {
3176
+ type: string;
3177
+ id: string;
3178
+ } | undefined;
3179
+ credentialSchema?: {
3180
+ type: string;
3181
+ id: string;
3182
+ }[] | undefined;
3183
+ refreshService?: {
3184
+ [x: string]: any;
3185
+ type: string;
3186
+ id: string;
3187
+ } | undefined;
3188
+ type: [
3189
+ string,
3190
+ ...string[]
3191
+ ];
3192
+ "@context": string[];
3193
+ issuer: string | {
3194
+ [x: string]: any;
3195
+ type?: [
3196
+ string,
3197
+ ...string[]
3198
+ ] | undefined;
3199
+ id?: string | undefined;
3200
+ name?: string | undefined;
3201
+ url?: string | undefined;
3202
+ phone?: string | undefined;
3203
+ description?: string | undefined;
3204
+ endorsement?: any[] | undefined;
3205
+ image?: string | {
3206
+ caption?: string | undefined;
3207
+ type: string;
3208
+ id: string;
3209
+ } | undefined;
3210
+ email?: string | undefined;
3211
+ address?: {
3212
+ addressCountry?: string | undefined;
3213
+ addressCountryCode?: string | undefined;
3214
+ addressRegion?: string | undefined;
3215
+ addressLocality?: string | undefined;
3216
+ streetAddress?: string | undefined;
3217
+ postOfficeBoxNumber?: string | undefined;
3218
+ postalCode?: string | undefined;
3219
+ geo?: {
3220
+ type: [
3221
+ string,
3222
+ ...string[]
3223
+ ];
3224
+ latitude: number;
3225
+ longitude: number;
3226
+ } | undefined;
3227
+ type: [
3228
+ string,
3229
+ ...string[]
3230
+ ];
3231
+ } | undefined;
3232
+ otherIdentifier?: {
3233
+ type: [
3234
+ string,
3235
+ ...string[]
3236
+ ];
3237
+ identifier: string;
3238
+ identifierType: string;
3239
+ }[] | undefined;
3240
+ official?: string | undefined;
3241
+ parentOrg?: any;
3242
+ familyName?: string | undefined;
3243
+ givenName?: string | undefined;
3244
+ additionalName?: string | undefined;
3245
+ patronymicName?: string | undefined;
3246
+ honorificPrefix?: string | undefined;
3247
+ honorificSuffix?: string | undefined;
3248
+ familyNamePrefix?: string | undefined;
3249
+ dateOfBirth?: string | undefined;
3250
+ };
3251
+ issuanceDate: string;
3252
+ credentialSubject: {
3253
+ [x: string]: any;
3254
+ id?: string | undefined;
3255
+ } | {
3256
+ [x: string]: any;
3257
+ id?: string | undefined;
3258
+ }[];
3259
+ proof: {
3260
+ [x: string]: any;
3261
+ challenge?: string | undefined;
3262
+ domain?: string | undefined;
3263
+ nonce?: string | undefined;
3264
+ jws?: string | undefined;
3265
+ type: string;
3266
+ created: string;
3267
+ proofPurpose: string;
3268
+ verificationMethod: string;
3269
+ } | {
3270
+ [x: string]: any;
3271
+ challenge?: string | undefined;
3272
+ domain?: string | undefined;
3273
+ nonce?: string | undefined;
3274
+ jws?: string | undefined;
3275
+ type: string;
3276
+ created: string;
3277
+ proofPurpose: string;
3278
+ verificationMethod: string;
3279
+ }[];
3280
+ }, {
3281
+ [x: string]: any;
3282
+ id?: string | undefined;
3283
+ expirationDate?: string | undefined;
3284
+ credentialStatus?: {
3285
+ type: string;
3286
+ id: string;
3287
+ } | undefined;
3288
+ credentialSchema?: {
3289
+ type: string;
3290
+ id: string;
3291
+ }[] | undefined;
3292
+ refreshService?: {
3293
+ [x: string]: any;
3294
+ type: string;
3295
+ id: string;
3296
+ } | undefined;
3297
+ type: [
3298
+ string,
3299
+ ...string[]
3300
+ ];
3301
+ "@context": string[];
3302
+ issuer: string | {
3303
+ [x: string]: any;
3304
+ type?: [
3305
+ string,
3306
+ ...string[]
3307
+ ] | undefined;
3308
+ id?: string | undefined;
3309
+ name?: string | undefined;
3310
+ url?: string | undefined;
3311
+ phone?: string | undefined;
3312
+ description?: string | undefined;
3313
+ endorsement?: any[] | undefined;
3314
+ image?: string | {
3315
+ caption?: string | undefined;
3316
+ type: string;
3317
+ id: string;
3318
+ } | undefined;
3319
+ email?: string | undefined;
3320
+ address?: {
3321
+ addressCountry?: string | undefined;
3322
+ addressCountryCode?: string | undefined;
3323
+ addressRegion?: string | undefined;
3324
+ addressLocality?: string | undefined;
3325
+ streetAddress?: string | undefined;
3326
+ postOfficeBoxNumber?: string | undefined;
3327
+ postalCode?: string | undefined;
3328
+ geo?: {
3329
+ type: [
3330
+ string,
3331
+ ...string[]
3332
+ ];
3333
+ latitude: number;
3334
+ longitude: number;
3335
+ } | undefined;
3336
+ type: [
3337
+ string,
3338
+ ...string[]
3339
+ ];
3340
+ } | undefined;
3341
+ otherIdentifier?: {
3342
+ type: [
3343
+ string,
3344
+ ...string[]
3345
+ ];
3346
+ identifier: string;
3347
+ identifierType: string;
3348
+ }[] | undefined;
3349
+ official?: string | undefined;
3350
+ parentOrg?: any;
3351
+ familyName?: string | undefined;
3352
+ givenName?: string | undefined;
3353
+ additionalName?: string | undefined;
3354
+ patronymicName?: string | undefined;
3355
+ honorificPrefix?: string | undefined;
3356
+ honorificSuffix?: string | undefined;
3357
+ familyNamePrefix?: string | undefined;
3358
+ dateOfBirth?: string | undefined;
3359
+ };
3360
+ issuanceDate: string;
3361
+ credentialSubject: {
3362
+ [x: string]: any;
3363
+ id?: string | undefined;
3364
+ } | {
3365
+ [x: string]: any;
3366
+ id?: string | undefined;
3367
+ }[];
3368
+ proof: {
3369
+ [x: string]: any;
3370
+ challenge?: string | undefined;
3371
+ domain?: string | undefined;
3372
+ nonce?: string | undefined;
3373
+ jws?: string | undefined;
3374
+ type: string;
3375
+ created: string;
3376
+ proofPurpose: string;
3377
+ verificationMethod: string;
3378
+ } | {
3379
+ [x: string]: any;
3380
+ challenge?: string | undefined;
3381
+ domain?: string | undefined;
3382
+ nonce?: string | undefined;
3383
+ jws?: string | undefined;
3384
+ type: string;
3385
+ created: string;
3386
+ proofPurpose: string;
3387
+ verificationMethod: string;
3388
+ }[];
3389
+ }>,
3390
+ z.ZodArray<z.ZodObject<z.extendShape<{
3391
+ "@context": z.ZodArray<z.ZodString, "many">;
3392
+ id: z.ZodOptional<z.ZodString>;
3393
+ type: z.ZodArray<z.ZodString, "atleastone">;
3394
+ issuer: z.ZodUnion<[
3395
+ z.ZodString,
3396
+ z.ZodObject<{
3397
+ id: z.ZodOptional<z.ZodString>;
3398
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
3399
+ name: z.ZodOptional<z.ZodString>;
3400
+ url: z.ZodOptional<z.ZodString>;
3401
+ phone: z.ZodOptional<z.ZodString>;
3402
+ description: z.ZodOptional<z.ZodString>;
3403
+ endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
3404
+ image: z.ZodOptional<z.ZodUnion<[
3405
+ z.ZodString,
3406
+ z.ZodObject<{
3407
+ id: z.ZodString;
3408
+ type: z.ZodString;
3409
+ caption: z.ZodOptional<z.ZodString>;
3410
+ }, "strip", z.ZodTypeAny, {
3411
+ caption?: string | undefined;
3412
+ type: string;
3413
+ id: string;
3414
+ }, {
3415
+ caption?: string | undefined;
3416
+ type: string;
3417
+ id: string;
3418
+ }>
3419
+ ]>>;
3420
+ email: z.ZodOptional<z.ZodString>;
3421
+ address: z.ZodOptional<z.ZodObject<{
3422
+ type: z.ZodArray<z.ZodString, "atleastone">;
3423
+ addressCountry: z.ZodOptional<z.ZodString>;
3424
+ addressCountryCode: z.ZodOptional<z.ZodString>;
3425
+ addressRegion: z.ZodOptional<z.ZodString>;
3426
+ addressLocality: z.ZodOptional<z.ZodString>;
3427
+ streetAddress: z.ZodOptional<z.ZodString>;
3428
+ postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
3429
+ postalCode: z.ZodOptional<z.ZodString>;
3430
+ geo: z.ZodOptional<z.ZodObject<{
3431
+ type: z.ZodArray<z.ZodString, "atleastone">;
3432
+ latitude: z.ZodNumber;
3433
+ longitude: z.ZodNumber;
3434
+ }, "strip", z.ZodTypeAny, {
3435
+ type: [
3436
+ string,
3437
+ ...string[]
3438
+ ];
3439
+ latitude: number;
3440
+ longitude: number;
3441
+ }, {
3442
+ type: [
3443
+ string,
3444
+ ...string[]
3445
+ ];
3446
+ latitude: number;
3447
+ longitude: number;
3448
+ }>>;
3449
+ }, "strip", z.ZodTypeAny, {
3450
+ addressCountry?: string | undefined;
3451
+ addressCountryCode?: string | undefined;
3452
+ addressRegion?: string | undefined;
3453
+ addressLocality?: string | undefined;
3454
+ streetAddress?: string | undefined;
3455
+ postOfficeBoxNumber?: string | undefined;
3456
+ postalCode?: string | undefined;
3457
+ geo?: {
3458
+ type: [
3459
+ string,
3460
+ ...string[]
3461
+ ];
3462
+ latitude: number;
3463
+ longitude: number;
3464
+ } | undefined;
3465
+ type: [
3466
+ string,
3467
+ ...string[]
3468
+ ];
3469
+ }, {
3470
+ addressCountry?: string | undefined;
3471
+ addressCountryCode?: string | undefined;
3472
+ addressRegion?: string | undefined;
3473
+ addressLocality?: string | undefined;
3474
+ streetAddress?: string | undefined;
3475
+ postOfficeBoxNumber?: string | undefined;
3476
+ postalCode?: string | undefined;
3477
+ geo?: {
3478
+ type: [
3479
+ string,
3480
+ ...string[]
3481
+ ];
3482
+ latitude: number;
3483
+ longitude: number;
3484
+ } | undefined;
3485
+ type: [
3486
+ string,
3487
+ ...string[]
3488
+ ];
3489
+ }>>;
3490
+ otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
3491
+ type: z.ZodArray<z.ZodString, "atleastone">;
3492
+ identifier: z.ZodString;
3493
+ identifierType: z.ZodUnion<[
3494
+ z.ZodEnum<[
3495
+ "sourcedId",
3496
+ "systemId",
3497
+ "productId",
3498
+ "userName",
3499
+ "accountId",
3500
+ "emailAddress",
3501
+ "nationalIdentityNumber",
3502
+ "isbn",
3503
+ "issn",
3504
+ "lisSourcedId",
3505
+ "oneRosterSourcedId",
3506
+ "sisSourcedId",
3507
+ "ltiContextId",
3508
+ "ltiDeploymentId",
3509
+ "ltiToolId",
3510
+ "ltiPlatformId",
3511
+ "ltiUserId",
3512
+ "identifier"
3513
+ ]>,
3514
+ z.ZodString
3515
+ ]>;
3516
+ }, "strip", z.ZodTypeAny, {
3517
+ type: [
3518
+ string,
3519
+ ...string[]
3520
+ ];
3521
+ identifier: string;
3522
+ identifierType: string;
3523
+ }, {
3524
+ type: [
3525
+ string,
3526
+ ...string[]
3527
+ ];
3528
+ identifier: string;
3529
+ identifierType: string;
3530
+ }>, "many">>;
3531
+ official: z.ZodOptional<z.ZodString>;
3532
+ parentOrg: z.ZodOptional<z.ZodAny>;
3533
+ familyName: z.ZodOptional<z.ZodString>;
3534
+ givenName: z.ZodOptional<z.ZodString>;
3535
+ additionalName: z.ZodOptional<z.ZodString>;
3536
+ patronymicName: z.ZodOptional<z.ZodString>;
3537
+ honorificPrefix: z.ZodOptional<z.ZodString>;
3538
+ honorificSuffix: z.ZodOptional<z.ZodString>;
3539
+ familyNamePrefix: z.ZodOptional<z.ZodString>;
3540
+ dateOfBirth: z.ZodOptional<z.ZodString>;
3541
+ }, "strip", z.ZodAny, {
3542
+ [x: string]: any;
3543
+ type?: [
3544
+ string,
3545
+ ...string[]
3546
+ ] | undefined;
3547
+ id?: string | undefined;
3548
+ name?: string | undefined;
3549
+ url?: string | undefined;
3550
+ phone?: string | undefined;
3551
+ description?: string | undefined;
3552
+ endorsement?: any[] | undefined;
3553
+ image?: string | {
3554
+ caption?: string | undefined;
3555
+ type: string;
3556
+ id: string;
3557
+ } | undefined;
3558
+ email?: string | undefined;
3559
+ address?: {
3560
+ addressCountry?: string | undefined;
3561
+ addressCountryCode?: string | undefined;
3562
+ addressRegion?: string | undefined;
3563
+ addressLocality?: string | undefined;
3564
+ streetAddress?: string | undefined;
3565
+ postOfficeBoxNumber?: string | undefined;
3566
+ postalCode?: string | undefined;
3567
+ geo?: {
3568
+ type: [
3569
+ string,
3570
+ ...string[]
3571
+ ];
3572
+ latitude: number;
3573
+ longitude: number;
3574
+ } | undefined;
3575
+ type: [
3576
+ string,
3577
+ ...string[]
3578
+ ];
3579
+ } | undefined;
3580
+ otherIdentifier?: {
3581
+ type: [
3582
+ string,
3583
+ ...string[]
3584
+ ];
3585
+ identifier: string;
3586
+ identifierType: string;
3587
+ }[] | undefined;
3588
+ official?: string | undefined;
3589
+ parentOrg?: any;
3590
+ familyName?: string | undefined;
3591
+ givenName?: string | undefined;
3592
+ additionalName?: string | undefined;
3593
+ patronymicName?: string | undefined;
3594
+ honorificPrefix?: string | undefined;
3595
+ honorificSuffix?: string | undefined;
3596
+ familyNamePrefix?: string | undefined;
3597
+ dateOfBirth?: string | undefined;
3598
+ }, {
3599
+ [x: string]: any;
3600
+ type?: [
3601
+ string,
3602
+ ...string[]
3603
+ ] | undefined;
3604
+ id?: string | undefined;
3605
+ name?: string | undefined;
3606
+ url?: string | undefined;
3607
+ phone?: string | undefined;
3608
+ description?: string | undefined;
3609
+ endorsement?: any[] | undefined;
3610
+ image?: string | {
3611
+ caption?: string | undefined;
3612
+ type: string;
3613
+ id: string;
3614
+ } | undefined;
3615
+ email?: string | undefined;
3616
+ address?: {
3617
+ addressCountry?: string | undefined;
3618
+ addressCountryCode?: string | undefined;
3619
+ addressRegion?: string | undefined;
3620
+ addressLocality?: string | undefined;
3621
+ streetAddress?: string | undefined;
3622
+ postOfficeBoxNumber?: string | undefined;
3623
+ postalCode?: string | undefined;
3624
+ geo?: {
3625
+ type: [
3626
+ string,
3627
+ ...string[]
3628
+ ];
3629
+ latitude: number;
3630
+ longitude: number;
3631
+ } | undefined;
3632
+ type: [
3633
+ string,
3634
+ ...string[]
3635
+ ];
3636
+ } | undefined;
3637
+ otherIdentifier?: {
3638
+ type: [
3639
+ string,
3640
+ ...string[]
3641
+ ];
3642
+ identifier: string;
3643
+ identifierType: string;
3644
+ }[] | undefined;
3645
+ official?: string | undefined;
3646
+ parentOrg?: any;
3647
+ familyName?: string | undefined;
3648
+ givenName?: string | undefined;
3649
+ additionalName?: string | undefined;
3650
+ patronymicName?: string | undefined;
3651
+ honorificPrefix?: string | undefined;
3652
+ honorificSuffix?: string | undefined;
3653
+ familyNamePrefix?: string | undefined;
3654
+ dateOfBirth?: string | undefined;
3655
+ }>
3656
+ ]>;
3657
+ issuanceDate: z.ZodString;
3658
+ expirationDate: z.ZodOptional<z.ZodString>;
3659
+ credentialSubject: z.ZodUnion<[
3660
+ z.ZodObject<{
3661
+ id: z.ZodOptional<z.ZodString>;
3662
+ }, "strip", z.ZodAny, {
3663
+ [x: string]: any;
3664
+ id?: string | undefined;
3665
+ }, {
3666
+ [x: string]: any;
3667
+ id?: string | undefined;
3668
+ }>,
3669
+ z.ZodArray<z.ZodObject<{
3670
+ id: z.ZodOptional<z.ZodString>;
3671
+ }, "strip", z.ZodAny, {
3672
+ [x: string]: any;
3673
+ id?: string | undefined;
3674
+ }, {
3675
+ [x: string]: any;
3676
+ id?: string | undefined;
3677
+ }>, "many">
3678
+ ]>;
3679
+ credentialStatus: z.ZodOptional<z.ZodObject<{
3680
+ type: z.ZodString;
3681
+ id: z.ZodString;
3682
+ }, "strip", z.ZodTypeAny, {
3683
+ type: string;
3684
+ id: string;
3685
+ }, {
3686
+ type: string;
3687
+ id: string;
3688
+ }>>;
3689
+ credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
3690
+ id: z.ZodString;
3691
+ type: z.ZodString;
3692
+ }, "strip", z.ZodTypeAny, {
3693
+ type: string;
3694
+ id: string;
3695
+ }, {
3696
+ type: string;
3697
+ id: string;
3698
+ }>, "many">>;
3699
+ refreshService: z.ZodOptional<z.ZodObject<{
3700
+ id: z.ZodString;
3701
+ type: z.ZodString;
3702
+ }, "strip", z.ZodAny, {
3703
+ [x: string]: any;
3704
+ type: string;
3705
+ id: string;
3706
+ }, {
3707
+ [x: string]: any;
3708
+ type: string;
3709
+ id: string;
3710
+ }>>;
3711
+ }, {
3712
+ proof: z.ZodUnion<[
3713
+ z.ZodObject<{
3714
+ type: z.ZodString;
3715
+ created: z.ZodString;
3716
+ challenge: z.ZodOptional<z.ZodString>;
3717
+ domain: z.ZodOptional<z.ZodString>;
3718
+ nonce: z.ZodOptional<z.ZodString>;
3719
+ proofPurpose: z.ZodString;
3720
+ verificationMethod: z.ZodString;
3721
+ jws: z.ZodOptional<z.ZodString>;
3722
+ }, "strip", z.ZodAny, {
3723
+ [x: string]: any;
3724
+ challenge?: string | undefined;
3725
+ domain?: string | undefined;
3726
+ nonce?: string | undefined;
3727
+ jws?: string | undefined;
3728
+ type: string;
3729
+ created: string;
3730
+ proofPurpose: string;
3731
+ verificationMethod: string;
3732
+ }, {
3733
+ [x: string]: any;
3734
+ challenge?: string | undefined;
3735
+ domain?: string | undefined;
3736
+ nonce?: string | undefined;
3737
+ jws?: string | undefined;
3738
+ type: string;
3739
+ created: string;
3740
+ proofPurpose: string;
3741
+ verificationMethod: string;
3742
+ }>,
3743
+ z.ZodArray<z.ZodObject<{
3744
+ type: z.ZodString;
3745
+ created: z.ZodString;
3746
+ challenge: z.ZodOptional<z.ZodString>;
3747
+ domain: z.ZodOptional<z.ZodString>;
3748
+ nonce: z.ZodOptional<z.ZodString>;
3749
+ proofPurpose: z.ZodString;
3750
+ verificationMethod: z.ZodString;
3751
+ jws: z.ZodOptional<z.ZodString>;
3752
+ }, "strip", z.ZodAny, {
3753
+ [x: string]: any;
3754
+ challenge?: string | undefined;
3755
+ domain?: string | undefined;
3756
+ nonce?: string | undefined;
3757
+ jws?: string | undefined;
3758
+ type: string;
3759
+ created: string;
3760
+ proofPurpose: string;
3761
+ verificationMethod: string;
3762
+ }, {
3763
+ [x: string]: any;
3764
+ challenge?: string | undefined;
3765
+ domain?: string | undefined;
3766
+ nonce?: string | undefined;
3767
+ jws?: string | undefined;
3768
+ type: string;
3769
+ created: string;
3770
+ proofPurpose: string;
3771
+ verificationMethod: string;
3772
+ }>, "many">
3773
+ ]>;
3774
+ }>, "strip", z.ZodAny, {
3775
+ [x: string]: any;
3776
+ id?: string | undefined;
3777
+ expirationDate?: string | undefined;
3778
+ credentialStatus?: {
3779
+ type: string;
3780
+ id: string;
3781
+ } | undefined;
3782
+ credentialSchema?: {
3783
+ type: string;
3784
+ id: string;
3785
+ }[] | undefined;
3786
+ refreshService?: {
3787
+ [x: string]: any;
3788
+ type: string;
3789
+ id: string;
3790
+ } | undefined;
3791
+ type: [
3792
+ string,
3793
+ ...string[]
3794
+ ];
3795
+ "@context": string[];
3796
+ issuer: string | {
3797
+ [x: string]: any;
3798
+ type?: [
3799
+ string,
3800
+ ...string[]
3801
+ ] | undefined;
3802
+ id?: string | undefined;
3803
+ name?: string | undefined;
3804
+ url?: string | undefined;
3805
+ phone?: string | undefined;
3806
+ description?: string | undefined;
3807
+ endorsement?: any[] | undefined;
3808
+ image?: string | {
3809
+ caption?: string | undefined;
3810
+ type: string;
3811
+ id: string;
3812
+ } | undefined;
3813
+ email?: string | undefined;
3814
+ address?: {
3815
+ addressCountry?: string | undefined;
3816
+ addressCountryCode?: string | undefined;
3817
+ addressRegion?: string | undefined;
3818
+ addressLocality?: string | undefined;
3819
+ streetAddress?: string | undefined;
3820
+ postOfficeBoxNumber?: string | undefined;
3821
+ postalCode?: string | undefined;
3822
+ geo?: {
3823
+ type: [
3824
+ string,
3825
+ ...string[]
3826
+ ];
3827
+ latitude: number;
3828
+ longitude: number;
3829
+ } | undefined;
3830
+ type: [
3831
+ string,
3832
+ ...string[]
3833
+ ];
3834
+ } | undefined;
3835
+ otherIdentifier?: {
3836
+ type: [
3837
+ string,
3838
+ ...string[]
3839
+ ];
3840
+ identifier: string;
3841
+ identifierType: string;
3842
+ }[] | undefined;
3843
+ official?: string | undefined;
3844
+ parentOrg?: any;
3845
+ familyName?: string | undefined;
3846
+ givenName?: string | undefined;
3847
+ additionalName?: string | undefined;
3848
+ patronymicName?: string | undefined;
3849
+ honorificPrefix?: string | undefined;
3850
+ honorificSuffix?: string | undefined;
3851
+ familyNamePrefix?: string | undefined;
3852
+ dateOfBirth?: string | undefined;
3853
+ };
3854
+ issuanceDate: string;
3855
+ credentialSubject: {
3856
+ [x: string]: any;
3857
+ id?: string | undefined;
3858
+ } | {
3859
+ [x: string]: any;
3860
+ id?: string | undefined;
3861
+ }[];
3862
+ proof: {
3863
+ [x: string]: any;
3864
+ challenge?: string | undefined;
3865
+ domain?: string | undefined;
3866
+ nonce?: string | undefined;
3867
+ jws?: string | undefined;
3868
+ type: string;
3869
+ created: string;
3870
+ proofPurpose: string;
3871
+ verificationMethod: string;
3872
+ } | {
3873
+ [x: string]: any;
3874
+ challenge?: string | undefined;
3875
+ domain?: string | undefined;
3876
+ nonce?: string | undefined;
3877
+ jws?: string | undefined;
3878
+ type: string;
3879
+ created: string;
3880
+ proofPurpose: string;
3881
+ verificationMethod: string;
3882
+ }[];
3883
+ }, {
3884
+ [x: string]: any;
3885
+ id?: string | undefined;
3886
+ expirationDate?: string | undefined;
3887
+ credentialStatus?: {
3888
+ type: string;
3889
+ id: string;
3890
+ } | undefined;
3891
+ credentialSchema?: {
3892
+ type: string;
3893
+ id: string;
3894
+ }[] | undefined;
3895
+ refreshService?: {
3896
+ [x: string]: any;
3897
+ type: string;
3898
+ id: string;
3899
+ } | undefined;
3900
+ type: [
3901
+ string,
3902
+ ...string[]
3903
+ ];
3904
+ "@context": string[];
3905
+ issuer: string | {
3906
+ [x: string]: any;
3907
+ type?: [
3908
+ string,
3909
+ ...string[]
3910
+ ] | undefined;
3911
+ id?: string | undefined;
3912
+ name?: string | undefined;
3913
+ url?: string | undefined;
3914
+ phone?: string | undefined;
3915
+ description?: string | undefined;
3916
+ endorsement?: any[] | undefined;
3917
+ image?: string | {
3918
+ caption?: string | undefined;
3919
+ type: string;
3920
+ id: string;
3921
+ } | undefined;
3922
+ email?: string | undefined;
3923
+ address?: {
3924
+ addressCountry?: string | undefined;
3925
+ addressCountryCode?: string | undefined;
3926
+ addressRegion?: string | undefined;
3927
+ addressLocality?: string | undefined;
3928
+ streetAddress?: string | undefined;
3929
+ postOfficeBoxNumber?: string | undefined;
3930
+ postalCode?: string | undefined;
3931
+ geo?: {
3932
+ type: [
3933
+ string,
3934
+ ...string[]
3935
+ ];
3936
+ latitude: number;
3937
+ longitude: number;
3938
+ } | undefined;
3939
+ type: [
3940
+ string,
3941
+ ...string[]
3942
+ ];
3943
+ } | undefined;
3944
+ otherIdentifier?: {
3945
+ type: [
3946
+ string,
3947
+ ...string[]
3948
+ ];
3949
+ identifier: string;
3950
+ identifierType: string;
3951
+ }[] | undefined;
3952
+ official?: string | undefined;
3953
+ parentOrg?: any;
3954
+ familyName?: string | undefined;
3955
+ givenName?: string | undefined;
3956
+ additionalName?: string | undefined;
3957
+ patronymicName?: string | undefined;
3958
+ honorificPrefix?: string | undefined;
3959
+ honorificSuffix?: string | undefined;
3960
+ familyNamePrefix?: string | undefined;
3961
+ dateOfBirth?: string | undefined;
3962
+ };
3963
+ issuanceDate: string;
3964
+ credentialSubject: {
3965
+ [x: string]: any;
3966
+ id?: string | undefined;
3967
+ } | {
3968
+ [x: string]: any;
3969
+ id?: string | undefined;
3970
+ }[];
3971
+ proof: {
3972
+ [x: string]: any;
3973
+ challenge?: string | undefined;
3974
+ domain?: string | undefined;
3975
+ nonce?: string | undefined;
3976
+ jws?: string | undefined;
3977
+ type: string;
3978
+ created: string;
3979
+ proofPurpose: string;
3980
+ verificationMethod: string;
3981
+ } | {
3982
+ [x: string]: any;
3983
+ challenge?: string | undefined;
3984
+ domain?: string | undefined;
3985
+ nonce?: string | undefined;
3986
+ jws?: string | undefined;
3987
+ type: string;
3988
+ created: string;
3989
+ proofPurpose: string;
3990
+ verificationMethod: string;
3991
+ }[];
3992
+ }>, "many">
3993
+ ]>;
3994
+ holder: z.ZodOptional<z.ZodString>;
3995
+ }, {
3996
+ proof: z.ZodUnion<[
3997
+ z.ZodObject<{
3998
+ type: z.ZodString;
3999
+ created: z.ZodString;
4000
+ challenge: z.ZodOptional<z.ZodString>;
4001
+ domain: z.ZodOptional<z.ZodString>;
4002
+ nonce: z.ZodOptional<z.ZodString>;
4003
+ proofPurpose: z.ZodString;
4004
+ verificationMethod: z.ZodString;
4005
+ jws: z.ZodOptional<z.ZodString>;
4006
+ }, "strip", z.ZodAny, {
4007
+ [x: string]: any;
4008
+ challenge?: string | undefined;
4009
+ domain?: string | undefined;
4010
+ nonce?: string | undefined;
4011
+ jws?: string | undefined;
4012
+ type: string;
4013
+ created: string;
4014
+ proofPurpose: string;
4015
+ verificationMethod: string;
4016
+ }, {
4017
+ [x: string]: any;
4018
+ challenge?: string | undefined;
4019
+ domain?: string | undefined;
4020
+ nonce?: string | undefined;
4021
+ jws?: string | undefined;
4022
+ type: string;
4023
+ created: string;
4024
+ proofPurpose: string;
4025
+ verificationMethod: string;
4026
+ }>,
4027
+ z.ZodArray<z.ZodObject<{
4028
+ type: z.ZodString;
4029
+ created: z.ZodString;
4030
+ challenge: z.ZodOptional<z.ZodString>;
4031
+ domain: z.ZodOptional<z.ZodString>;
4032
+ nonce: z.ZodOptional<z.ZodString>;
4033
+ proofPurpose: z.ZodString;
4034
+ verificationMethod: z.ZodString;
4035
+ jws: z.ZodOptional<z.ZodString>;
4036
+ }, "strip", z.ZodAny, {
4037
+ [x: string]: any;
4038
+ challenge?: string | undefined;
4039
+ domain?: string | undefined;
4040
+ nonce?: string | undefined;
4041
+ jws?: string | undefined;
4042
+ type: string;
4043
+ created: string;
4044
+ proofPurpose: string;
4045
+ verificationMethod: string;
4046
+ }, {
4047
+ [x: string]: any;
4048
+ challenge?: string | undefined;
4049
+ domain?: string | undefined;
4050
+ nonce?: string | undefined;
4051
+ jws?: string | undefined;
4052
+ type: string;
4053
+ created: string;
4054
+ proofPurpose: string;
4055
+ verificationMethod: string;
4056
+ }>, "many">
4057
+ ]>;
4058
+ }>, "strip", z.ZodAny, {
4059
+ [x: string]: any;
4060
+ id?: string | undefined;
4061
+ holder?: string | undefined;
4062
+ type: [
4063
+ string,
4064
+ ...string[]
4065
+ ];
4066
+ "@context": string[];
4067
+ proof: {
4068
+ [x: string]: any;
4069
+ challenge?: string | undefined;
4070
+ domain?: string | undefined;
4071
+ nonce?: string | undefined;
4072
+ jws?: string | undefined;
4073
+ type: string;
4074
+ created: string;
4075
+ proofPurpose: string;
4076
+ verificationMethod: string;
4077
+ } | {
4078
+ [x: string]: any;
4079
+ challenge?: string | undefined;
4080
+ domain?: string | undefined;
4081
+ nonce?: string | undefined;
4082
+ jws?: string | undefined;
4083
+ type: string;
4084
+ created: string;
4085
+ proofPurpose: string;
4086
+ verificationMethod: string;
4087
+ }[];
4088
+ verifiableCredential: {
4089
+ [x: string]: any;
4090
+ id?: string | undefined;
4091
+ expirationDate?: string | undefined;
4092
+ credentialStatus?: {
4093
+ type: string;
4094
+ id: string;
4095
+ } | undefined;
4096
+ credentialSchema?: {
4097
+ type: string;
4098
+ id: string;
4099
+ }[] | undefined;
4100
+ refreshService?: {
4101
+ [x: string]: any;
4102
+ type: string;
4103
+ id: string;
4104
+ } | undefined;
4105
+ type: [
4106
+ string,
4107
+ ...string[]
4108
+ ];
4109
+ "@context": string[];
4110
+ issuer: string | {
4111
+ [x: string]: any;
4112
+ type?: [
4113
+ string,
4114
+ ...string[]
4115
+ ] | undefined;
4116
+ id?: string | undefined;
4117
+ name?: string | undefined;
4118
+ url?: string | undefined;
4119
+ phone?: string | undefined;
4120
+ description?: string | undefined;
4121
+ endorsement?: any[] | undefined;
4122
+ image?: string | {
4123
+ caption?: string | undefined;
4124
+ type: string;
4125
+ id: string;
4126
+ } | undefined;
4127
+ email?: string | undefined;
4128
+ address?: {
4129
+ addressCountry?: string | undefined;
4130
+ addressCountryCode?: string | undefined;
4131
+ addressRegion?: string | undefined;
4132
+ addressLocality?: string | undefined;
4133
+ streetAddress?: string | undefined;
4134
+ postOfficeBoxNumber?: string | undefined;
4135
+ postalCode?: string | undefined;
4136
+ geo?: {
4137
+ type: [
4138
+ string,
4139
+ ...string[]
4140
+ ];
4141
+ latitude: number;
4142
+ longitude: number;
4143
+ } | undefined;
4144
+ type: [
4145
+ string,
4146
+ ...string[]
4147
+ ];
4148
+ } | undefined;
4149
+ otherIdentifier?: {
4150
+ type: [
4151
+ string,
4152
+ ...string[]
4153
+ ];
4154
+ identifier: string;
4155
+ identifierType: string;
4156
+ }[] | undefined;
4157
+ official?: string | undefined;
4158
+ parentOrg?: any;
4159
+ familyName?: string | undefined;
4160
+ givenName?: string | undefined;
4161
+ additionalName?: string | undefined;
4162
+ patronymicName?: string | undefined;
4163
+ honorificPrefix?: string | undefined;
4164
+ honorificSuffix?: string | undefined;
4165
+ familyNamePrefix?: string | undefined;
4166
+ dateOfBirth?: string | undefined;
4167
+ };
4168
+ issuanceDate: string;
4169
+ credentialSubject: {
4170
+ [x: string]: any;
4171
+ id?: string | undefined;
4172
+ } | {
4173
+ [x: string]: any;
4174
+ id?: string | undefined;
4175
+ }[];
4176
+ proof: {
4177
+ [x: string]: any;
4178
+ challenge?: string | undefined;
4179
+ domain?: string | undefined;
4180
+ nonce?: string | undefined;
4181
+ jws?: string | undefined;
4182
+ type: string;
4183
+ created: string;
4184
+ proofPurpose: string;
4185
+ verificationMethod: string;
4186
+ } | {
4187
+ [x: string]: any;
4188
+ challenge?: string | undefined;
4189
+ domain?: string | undefined;
4190
+ nonce?: string | undefined;
4191
+ jws?: string | undefined;
4192
+ type: string;
4193
+ created: string;
4194
+ proofPurpose: string;
4195
+ verificationMethod: string;
4196
+ }[];
4197
+ } | {
4198
+ [x: string]: any;
4199
+ id?: string | undefined;
4200
+ expirationDate?: string | undefined;
4201
+ credentialStatus?: {
4202
+ type: string;
4203
+ id: string;
4204
+ } | undefined;
4205
+ credentialSchema?: {
4206
+ type: string;
4207
+ id: string;
4208
+ }[] | undefined;
4209
+ refreshService?: {
4210
+ [x: string]: any;
4211
+ type: string;
4212
+ id: string;
4213
+ } | undefined;
4214
+ type: [
4215
+ string,
4216
+ ...string[]
4217
+ ];
4218
+ "@context": string[];
4219
+ issuer: string | {
4220
+ [x: string]: any;
4221
+ type?: [
4222
+ string,
4223
+ ...string[]
4224
+ ] | undefined;
4225
+ id?: string | undefined;
4226
+ name?: string | undefined;
4227
+ url?: string | undefined;
4228
+ phone?: string | undefined;
4229
+ description?: string | undefined;
4230
+ endorsement?: any[] | undefined;
4231
+ image?: string | {
4232
+ caption?: string | undefined;
4233
+ type: string;
4234
+ id: string;
4235
+ } | undefined;
4236
+ email?: string | undefined;
4237
+ address?: {
4238
+ addressCountry?: string | undefined;
4239
+ addressCountryCode?: string | undefined;
4240
+ addressRegion?: string | undefined;
4241
+ addressLocality?: string | undefined;
4242
+ streetAddress?: string | undefined;
4243
+ postOfficeBoxNumber?: string | undefined;
4244
+ postalCode?: string | undefined;
4245
+ geo?: {
4246
+ type: [
4247
+ string,
4248
+ ...string[]
4249
+ ];
4250
+ latitude: number;
4251
+ longitude: number;
4252
+ } | undefined;
4253
+ type: [
4254
+ string,
4255
+ ...string[]
4256
+ ];
4257
+ } | undefined;
4258
+ otherIdentifier?: {
4259
+ type: [
4260
+ string,
4261
+ ...string[]
4262
+ ];
4263
+ identifier: string;
4264
+ identifierType: string;
4265
+ }[] | undefined;
4266
+ official?: string | undefined;
4267
+ parentOrg?: any;
4268
+ familyName?: string | undefined;
4269
+ givenName?: string | undefined;
4270
+ additionalName?: string | undefined;
4271
+ patronymicName?: string | undefined;
4272
+ honorificPrefix?: string | undefined;
4273
+ honorificSuffix?: string | undefined;
4274
+ familyNamePrefix?: string | undefined;
4275
+ dateOfBirth?: string | undefined;
4276
+ };
4277
+ issuanceDate: string;
4278
+ credentialSubject: {
4279
+ [x: string]: any;
4280
+ id?: string | undefined;
4281
+ } | {
4282
+ [x: string]: any;
4283
+ id?: string | undefined;
4284
+ }[];
4285
+ proof: {
4286
+ [x: string]: any;
4287
+ challenge?: string | undefined;
4288
+ domain?: string | undefined;
4289
+ nonce?: string | undefined;
4290
+ jws?: string | undefined;
4291
+ type: string;
4292
+ created: string;
4293
+ proofPurpose: string;
4294
+ verificationMethod: string;
4295
+ } | {
4296
+ [x: string]: any;
4297
+ challenge?: string | undefined;
4298
+ domain?: string | undefined;
4299
+ nonce?: string | undefined;
4300
+ jws?: string | undefined;
4301
+ type: string;
4302
+ created: string;
4303
+ proofPurpose: string;
4304
+ verificationMethod: string;
4305
+ }[];
4306
+ }[];
4307
+ }, {
4308
+ [x: string]: any;
4309
+ id?: string | undefined;
4310
+ holder?: string | undefined;
4311
+ type: [
4312
+ string,
4313
+ ...string[]
4314
+ ];
4315
+ "@context": string[];
4316
+ proof: {
4317
+ [x: string]: any;
4318
+ challenge?: string | undefined;
4319
+ domain?: string | undefined;
4320
+ nonce?: string | undefined;
4321
+ jws?: string | undefined;
4322
+ type: string;
4323
+ created: string;
4324
+ proofPurpose: string;
4325
+ verificationMethod: string;
4326
+ } | {
4327
+ [x: string]: any;
4328
+ challenge?: string | undefined;
4329
+ domain?: string | undefined;
4330
+ nonce?: string | undefined;
4331
+ jws?: string | undefined;
4332
+ type: string;
4333
+ created: string;
4334
+ proofPurpose: string;
4335
+ verificationMethod: string;
4336
+ }[];
4337
+ verifiableCredential: {
4338
+ [x: string]: any;
4339
+ id?: string | undefined;
4340
+ expirationDate?: string | undefined;
4341
+ credentialStatus?: {
4342
+ type: string;
4343
+ id: string;
4344
+ } | undefined;
4345
+ credentialSchema?: {
4346
+ type: string;
4347
+ id: string;
4348
+ }[] | undefined;
4349
+ refreshService?: {
4350
+ [x: string]: any;
4351
+ type: string;
4352
+ id: string;
4353
+ } | undefined;
4354
+ type: [
4355
+ string,
4356
+ ...string[]
4357
+ ];
4358
+ "@context": string[];
4359
+ issuer: string | {
4360
+ [x: string]: any;
4361
+ type?: [
4362
+ string,
4363
+ ...string[]
4364
+ ] | undefined;
4365
+ id?: string | undefined;
4366
+ name?: string | undefined;
4367
+ url?: string | undefined;
4368
+ phone?: string | undefined;
4369
+ description?: string | undefined;
4370
+ endorsement?: any[] | undefined;
4371
+ image?: string | {
4372
+ caption?: string | undefined;
4373
+ type: string;
4374
+ id: string;
4375
+ } | undefined;
4376
+ email?: string | undefined;
4377
+ address?: {
4378
+ addressCountry?: string | undefined;
4379
+ addressCountryCode?: string | undefined;
4380
+ addressRegion?: string | undefined;
4381
+ addressLocality?: string | undefined;
4382
+ streetAddress?: string | undefined;
4383
+ postOfficeBoxNumber?: string | undefined;
4384
+ postalCode?: string | undefined;
4385
+ geo?: {
4386
+ type: [
4387
+ string,
4388
+ ...string[]
4389
+ ];
4390
+ latitude: number;
4391
+ longitude: number;
4392
+ } | undefined;
4393
+ type: [
4394
+ string,
4395
+ ...string[]
4396
+ ];
4397
+ } | undefined;
4398
+ otherIdentifier?: {
4399
+ type: [
4400
+ string,
4401
+ ...string[]
4402
+ ];
4403
+ identifier: string;
4404
+ identifierType: string;
4405
+ }[] | undefined;
4406
+ official?: string | undefined;
4407
+ parentOrg?: any;
4408
+ familyName?: string | undefined;
4409
+ givenName?: string | undefined;
4410
+ additionalName?: string | undefined;
4411
+ patronymicName?: string | undefined;
4412
+ honorificPrefix?: string | undefined;
4413
+ honorificSuffix?: string | undefined;
4414
+ familyNamePrefix?: string | undefined;
4415
+ dateOfBirth?: string | undefined;
4416
+ };
4417
+ issuanceDate: string;
4418
+ credentialSubject: {
4419
+ [x: string]: any;
4420
+ id?: string | undefined;
4421
+ } | {
4422
+ [x: string]: any;
4423
+ id?: string | undefined;
4424
+ }[];
4425
+ proof: {
4426
+ [x: string]: any;
4427
+ challenge?: string | undefined;
4428
+ domain?: string | undefined;
4429
+ nonce?: string | undefined;
4430
+ jws?: string | undefined;
4431
+ type: string;
4432
+ created: string;
4433
+ proofPurpose: string;
4434
+ verificationMethod: string;
4435
+ } | {
4436
+ [x: string]: any;
4437
+ challenge?: string | undefined;
4438
+ domain?: string | undefined;
4439
+ nonce?: string | undefined;
4440
+ jws?: string | undefined;
4441
+ type: string;
4442
+ created: string;
4443
+ proofPurpose: string;
4444
+ verificationMethod: string;
4445
+ }[];
4446
+ } | {
4447
+ [x: string]: any;
4448
+ id?: string | undefined;
4449
+ expirationDate?: string | undefined;
4450
+ credentialStatus?: {
4451
+ type: string;
4452
+ id: string;
4453
+ } | undefined;
4454
+ credentialSchema?: {
4455
+ type: string;
4456
+ id: string;
4457
+ }[] | undefined;
4458
+ refreshService?: {
4459
+ [x: string]: any;
4460
+ type: string;
4461
+ id: string;
4462
+ } | undefined;
4463
+ type: [
4464
+ string,
4465
+ ...string[]
4466
+ ];
4467
+ "@context": string[];
4468
+ issuer: string | {
4469
+ [x: string]: any;
4470
+ type?: [
4471
+ string,
4472
+ ...string[]
4473
+ ] | undefined;
4474
+ id?: string | undefined;
4475
+ name?: string | undefined;
4476
+ url?: string | undefined;
4477
+ phone?: string | undefined;
4478
+ description?: string | undefined;
4479
+ endorsement?: any[] | undefined;
4480
+ image?: string | {
4481
+ caption?: string | undefined;
4482
+ type: string;
4483
+ id: string;
4484
+ } | undefined;
4485
+ email?: string | undefined;
4486
+ address?: {
4487
+ addressCountry?: string | undefined;
4488
+ addressCountryCode?: string | undefined;
4489
+ addressRegion?: string | undefined;
4490
+ addressLocality?: string | undefined;
4491
+ streetAddress?: string | undefined;
4492
+ postOfficeBoxNumber?: string | undefined;
4493
+ postalCode?: string | undefined;
4494
+ geo?: {
4495
+ type: [
4496
+ string,
4497
+ ...string[]
4498
+ ];
4499
+ latitude: number;
4500
+ longitude: number;
4501
+ } | undefined;
4502
+ type: [
4503
+ string,
4504
+ ...string[]
4505
+ ];
4506
+ } | undefined;
4507
+ otherIdentifier?: {
4508
+ type: [
4509
+ string,
4510
+ ...string[]
4511
+ ];
4512
+ identifier: string;
4513
+ identifierType: string;
4514
+ }[] | undefined;
4515
+ official?: string | undefined;
4516
+ parentOrg?: any;
4517
+ familyName?: string | undefined;
4518
+ givenName?: string | undefined;
4519
+ additionalName?: string | undefined;
4520
+ patronymicName?: string | undefined;
4521
+ honorificPrefix?: string | undefined;
4522
+ honorificSuffix?: string | undefined;
4523
+ familyNamePrefix?: string | undefined;
4524
+ dateOfBirth?: string | undefined;
4525
+ };
4526
+ issuanceDate: string;
4527
+ credentialSubject: {
4528
+ [x: string]: any;
4529
+ id?: string | undefined;
4530
+ } | {
4531
+ [x: string]: any;
4532
+ id?: string | undefined;
4533
+ }[];
4534
+ proof: {
4535
+ [x: string]: any;
4536
+ challenge?: string | undefined;
4537
+ domain?: string | undefined;
4538
+ nonce?: string | undefined;
4539
+ jws?: string | undefined;
4540
+ type: string;
4541
+ created: string;
4542
+ proofPurpose: string;
4543
+ verificationMethod: string;
4544
+ } | {
4545
+ [x: string]: any;
4546
+ challenge?: string | undefined;
4547
+ domain?: string | undefined;
4548
+ nonce?: string | undefined;
4549
+ jws?: string | undefined;
4550
+ type: string;
4551
+ created: string;
4552
+ proofPurpose: string;
4553
+ verificationMethod: string;
4554
+ }[];
4555
+ }[];
4556
+ }>;
4557
+ export declare type VP = z.infer<typeof VPValidator>;
4558
+ declare const VerificationCheckValidator: z.ZodObject<{
4559
+ checks: z.ZodArray<z.ZodString, "many">;
4560
+ warnings: z.ZodArray<z.ZodString, "many">;
4561
+ errors: z.ZodArray<z.ZodString, "many">;
4562
+ }, "strip", z.ZodTypeAny, {
4563
+ checks: string[];
4564
+ warnings: string[];
4565
+ errors: string[];
4566
+ }, {
4567
+ checks: string[];
4568
+ warnings: string[];
4569
+ errors: string[];
4570
+ }>;
4571
+ export declare type VerificationCheck = z.infer<typeof VerificationCheckValidator>;
4572
+ declare const VerificationItemValidator: z.ZodObject<{
4573
+ check: z.ZodString;
4574
+ status: z.ZodEnum<[
4575
+ "Success",
4576
+ "Failed",
4577
+ "Error"
4578
+ ]>;
4579
+ message: z.ZodOptional<z.ZodString>;
4580
+ details: z.ZodOptional<z.ZodString>;
4581
+ }, "strip", z.ZodTypeAny, {
4582
+ message?: string | undefined;
4583
+ details?: string | undefined;
4584
+ status: "Failed" | "Success" | "Error";
4585
+ check: string;
4586
+ }, {
4587
+ message?: string | undefined;
4588
+ details?: string | undefined;
4589
+ status: "Failed" | "Success" | "Error";
4590
+ check: string;
4591
+ }>;
4592
+ export declare type VerificationItem = z.infer<typeof VerificationItemValidator>;
4593
+ export declare type DidMethod = "key" | "tz" | "pkh:tz" | "pkh:tezos" | "pkh:sol" | "pkh:solana";
4594
+ export declare type KeyPair = {
4595
+ kty: string;
4596
+ crv: string;
4597
+ x: string;
4598
+ d: string;
4599
+ };
4600
+ export declare type ProofOptions = {
4601
+ verificationMethod: string;
4602
+ proofPurpose: string;
4603
+ };
4604
+ export declare type DidKeyPluginMethods<T extends string> = {
4605
+ getSubjectDid: (type: T) => string;
4606
+ getSubjectKeypair: () => {
4607
+ kty: string;
4608
+ crv: string;
4609
+ x: string;
4610
+ d: string;
4611
+ };
4612
+ getKey: () => string;
4613
+ };
4614
+ export declare type IDXPluginMethods = {
4615
+ getCredentialsListFromIndex: (alias?: string) => Promise<CredentialsList>;
4616
+ publishContentToCeramic: (cred: any) => Promise<string>;
4617
+ readContentFromCeramic: (streamId: string) => Promise<any>;
4618
+ getVerifiableCredentialFromIndex: (title: string) => Promise<any>;
4619
+ getVerifiableCredentialsFromIndex: () => Promise<any>;
4620
+ addVerifiableCredentialInIdx: (cred: IDXCredential) => Promise<StreamID>;
4621
+ };
4622
+ declare enum StorageType {
4623
+ ceramic = "ceramic"
4624
+ }
4625
+ export declare type IDXCredential = {
4626
+ id: string;
4627
+ title: string;
4628
+ storageType?: StorageType;
4629
+ };
4630
+ export declare type CredentialsList = {
4631
+ credentials: IDXCredential[];
4632
+ };
4633
+ export declare type DependentMethods = {
4634
+ getSubjectDid: (type: "key") => string;
4635
+ getSubjectKeypair: () => KeyPair;
4636
+ keyToVerificationMethod: (type: string, keypair: KeyPair) => Promise<string>;
4637
+ issueCredential: (credential: UnsignedVC, options: ProofOptions, keypair: KeyPair) => Promise<VC>;
4638
+ verifyCredential: (credential: VC) => Promise<VerificationCheck>;
4639
+ issuePresentation: (presentation: UnsignedVP, options: ProofOptions, keypair: KeyPair) => Promise<VP>;
4640
+ verifyPresentation: (presentation: VP) => Promise<VerificationCheck>;
4641
+ };
4642
+ export declare type VCPluginMethods = DependentMethods & {
4643
+ issueCredential: (credential: UnsignedVC) => Promise<VC>;
4644
+ verifyCredential: (credential: VC) => Promise<VerificationCheck>;
4645
+ issuePresentation: (credential: VC) => Promise<VP>;
4646
+ verifyPresentation: (presentation: VP) => Promise<VerificationCheck>;
4647
+ getTestVc: (subject?: string) => UnsignedVC;
4648
+ };
4649
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
4650
+ export declare type Plugin<Name extends string, PublicMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = {
4651
+ name?: Name;
4652
+ pluginMethods: {
4653
+ [Key in keyof PublicMethods]: <T extends UnlockedWallet<any, PublicMethods>>(wallet: T, ...args: Parameters<PublicMethods[Key]>) => ReturnType<PublicMethods[Key]>;
4654
+ };
4655
+ };
4656
+ export declare type PublicFieldsObj<PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = {
4657
+ pluginMethods: PluginMethods;
4658
+ };
4659
+ declare enum WalletStatus {
4660
+ Locked = "LOCKED",
4661
+ Unlocked = "UNLOCKED"
4662
+ }
4663
+ export declare type BaseWallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = PublicFieldsObj<PluginMethods> & {
4664
+ contents: any[];
4665
+ plugins: Plugin<PluginNames, Record<string, (...args: any[]) => any>>[];
4666
+ };
4667
+ export declare type LockedWallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = BaseWallet<PluginNames, PluginMethods> & {
4668
+ status: WalletStatus.Locked;
4669
+ };
4670
+ export declare type UnlockedWallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = BaseWallet<PluginNames, PluginMethods> & {
4671
+ status: WalletStatus.Unlocked;
4672
+ add: (content: any) => Promise<UnlockedWallet<PluginNames, PluginMethods>>;
4673
+ remove: (contentId: string) => Promise<UnlockedWallet<PluginNames, PluginMethods>>;
4674
+ 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>>;
4675
+ };
4676
+ export declare type Wallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = LockedWallet<PluginNames, PluginMethods> | UnlockedWallet<PluginNames, PluginMethods>;
4677
+ export declare type LearnCardRawWallet = UnlockedWallet<"DIDKit" | "DID Key" | "VC" | "IDX" | "Expiration", DidKeyPluginMethods<DidMethod> & VCPluginMethods & IDXPluginMethods>;
4678
+ export declare type LearnCardWallet = {
4679
+ /** Raw IoE wallet instance. You shouldn't need to drop down to this level! */
4680
+ _wallet: LearnCardRawWallet;
4681
+ /** Wallet holder's did */
4682
+ did: (type?: DidMethod) => string;
4683
+ /** Wallet holder's ed25519 key pair */
4684
+ keypair: {
4685
+ kty: string;
4686
+ crv: string;
4687
+ x: string;
4688
+ d: string;
4689
+ };
4690
+ /** Signs an unsigned Verifiable Credential, returning the signed VC */
4691
+ issueCredential: (credential: UnsignedVC) => Promise<VC>;
4692
+ /**
4693
+ * Verifies a signed Verifiable Credential
4694
+ *
4695
+ * Empty error/warnings arrays means verification was successful
4696
+ */
4697
+ verifyCredential: (credential: VC) => Promise<VerificationItem[]>;
4698
+ /** Creates a signed Verifiable Presentation from a signed Verifiable Credential */
4699
+ issuePresentation: (credential: VC) => Promise<VP>;
4700
+ /**
4701
+ * Verifies a signed Verifiable Presentation
4702
+ *
4703
+ * Empry error/warnings arrays means verification was successful
4704
+ */
4705
+ verifyPresentation: (presentation: VP) => Promise<VerificationCheck>;
4706
+ /** Returns the credential marked with `title` from IDX */
4707
+ getCredential: (title: string) => Promise<any>;
4708
+ /** Returns all credentials from IDX */
4709
+ getCredentials: () => Promise<any[]>;
4710
+ /**
4711
+ * Publishes a credential to Ceramic, returning the credential's stream ID
4712
+ *
4713
+ * This stream ID may then be shared/persisted/resolved to gain access to the credential
4714
+ *
4715
+ * Resolving a stream ID can be done by passing the stream ID to `readFromCeramic`
4716
+ */
4717
+ publishCredential: (credential: any) => Promise<string>;
4718
+ /**
4719
+ * Adds a stream ID pointing to a credential (such as the one returned by `publishCredential`)
4720
+ * to IDX with a bespoke title
4721
+ *
4722
+ * The credential may then be retrieved using `getCredential` and passing in that bespoke title,
4723
+ * or by using `getCredentials` to get a list of all credentials that have been added to IDX
4724
+ */
4725
+ addCredential: (credential: IDXCredential) => Promise<void>;
4726
+ /**
4727
+ * Resolves a stream ID, returning its contents
4728
+ *
4729
+ * This can be given the return value of `publishCredential` to gain access to the credential
4730
+ * that was published
4731
+ */
4732
+ readFromCeramic: (streamId: string) => Promise<any>;
4733
+ /**
4734
+ * Returns an example credential, optionally allowing a subject's did to be passed in
4735
+ *
4736
+ * You can use this to test out implementations that use this library!
4737
+ */
4738
+ getTestVc: (subject?: string) => UnsignedVC;
4739
+ };
4740
+ export declare type CeramicIDXArgs = {
4741
+ modelData: ModelAliases;
4742
+ credentialAlias: string;
4743
+ ceramicEndpoint: string;
4744
+ defaultContentFamily: string;
4745
+ };
4746
+ export declare type LearnCardConfig = {
4747
+ ceramicIdx: CeramicIDXArgs;
4748
+ didkit: InitInput | Promise<InitInput>;
4749
+ defaultContents: any[];
4750
+ };
4751
+ /** Generates a LearnCard Wallet from a 64 character seed string */
4752
+ export declare const walletFromKey: (key: string, { ceramicIdx, didkit, defaultContents, }?: Partial<LearnCardConfig>) => Promise<LearnCardWallet>;
4753
+ export { walletFromKey } from "@wallet/init";
4754
+ export { Wallet, UnlockedWallet, LockedWallet, Plugin } from "types/wallet";
4755
+
4756
+ export {};