@learncard/core 1.0.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/core.d.ts CHANGED
@@ -5,92 +5,2087 @@
5
5
  import { StreamID } from '@ceramicnetwork/streamid';
6
6
  import { ModelAliases } from '@glazed/types';
7
7
 
8
- declare enum VerificationStatus {
9
- Success = "Success",
10
- Failed = "Failed",
11
- Error = "Error"
12
- }
13
- export declare type VerificationItem = {
14
- check: string;
15
- status: VerificationStatus;
16
- message?: string;
17
- details?: string;
18
- };
19
- export declare type AchievementCriteria = {
20
- type?: string;
21
- narrative?: string;
22
- };
23
- export declare type CredentialSubjectAchievement = {
24
- type?: string;
25
- name?: string;
26
- description?: string;
27
- criteria?: AchievementCriteria;
28
- image?: string;
29
- };
30
- export declare type CredentialSubject = {
31
- type?: string;
32
- id?: string;
33
- achievement?: CredentialSubjectAchievement;
34
- };
35
- export declare type Issuer = string | {
36
- type?: string;
37
- id?: string;
38
- name?: string;
39
- url?: string;
40
- image?: string;
41
- };
42
- export declare type Proof = {
43
- type: string;
44
- proofPurpose: string;
45
- verificationMethod: string;
46
- jws: string;
47
- created: string;
48
- };
49
- export declare type UnsignedVC = {
50
- [key: string]: any;
51
- "@context": string | string[];
52
- credentialSubject: CredentialSubject;
53
- id: string;
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.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
+ id?: string | undefined;
162
+ name?: string | undefined;
163
+ url?: string | undefined;
164
+ phone?: string | undefined;
165
+ description?: string | undefined;
166
+ endorsement?: any[] | undefined;
167
+ image?: string | {
168
+ caption?: string | undefined;
169
+ type: string;
170
+ id: string;
171
+ } | undefined;
172
+ email?: string | undefined;
173
+ address?: {
174
+ addressCountry?: string | undefined;
175
+ addressCountryCode?: string | undefined;
176
+ addressRegion?: string | undefined;
177
+ addressLocality?: string | undefined;
178
+ streetAddress?: string | undefined;
179
+ postOfficeBoxNumber?: string | undefined;
180
+ postalCode?: string | undefined;
181
+ geo?: {
182
+ type: [
183
+ string,
184
+ ...string[]
185
+ ];
186
+ latitude: number;
187
+ longitude: number;
188
+ } | undefined;
189
+ type: [
190
+ string,
191
+ ...string[]
192
+ ];
193
+ } | undefined;
194
+ otherIdentifier?: {
195
+ type: [
196
+ string,
197
+ ...string[]
198
+ ];
199
+ identifier: string;
200
+ identifierType: string;
201
+ }[] | undefined;
202
+ official?: string | undefined;
203
+ parentOrg?: any;
204
+ familyName?: string | undefined;
205
+ givenName?: string | undefined;
206
+ additionalName?: string | undefined;
207
+ patronymicName?: string | undefined;
208
+ honorificPrefix?: string | undefined;
209
+ honorificSuffix?: string | undefined;
210
+ familyNamePrefix?: string | undefined;
211
+ dateOfBirth?: string | undefined;
212
+ type: [
213
+ string,
214
+ ...string[]
215
+ ];
216
+ }, {
217
+ [x: string]: any;
218
+ id?: string | undefined;
219
+ name?: string | undefined;
220
+ url?: string | undefined;
221
+ phone?: string | undefined;
222
+ description?: string | undefined;
223
+ endorsement?: any[] | undefined;
224
+ image?: string | {
225
+ caption?: string | undefined;
226
+ type: string;
227
+ id: string;
228
+ } | undefined;
229
+ email?: string | undefined;
230
+ address?: {
231
+ addressCountry?: string | undefined;
232
+ addressCountryCode?: string | undefined;
233
+ addressRegion?: string | undefined;
234
+ addressLocality?: string | undefined;
235
+ streetAddress?: string | undefined;
236
+ postOfficeBoxNumber?: string | undefined;
237
+ postalCode?: string | undefined;
238
+ geo?: {
239
+ type: [
240
+ string,
241
+ ...string[]
242
+ ];
243
+ latitude: number;
244
+ longitude: number;
245
+ } | undefined;
246
+ type: [
247
+ string,
248
+ ...string[]
249
+ ];
250
+ } | undefined;
251
+ otherIdentifier?: {
252
+ type: [
253
+ string,
254
+ ...string[]
255
+ ];
256
+ identifier: string;
257
+ identifierType: string;
258
+ }[] | undefined;
259
+ official?: string | undefined;
260
+ parentOrg?: any;
261
+ familyName?: string | undefined;
262
+ givenName?: string | undefined;
263
+ additionalName?: string | undefined;
264
+ patronymicName?: string | undefined;
265
+ honorificPrefix?: string | undefined;
266
+ honorificSuffix?: string | undefined;
267
+ familyNamePrefix?: string | undefined;
268
+ dateOfBirth?: string | undefined;
269
+ type: [
270
+ string,
271
+ ...string[]
272
+ ];
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
+ id?: string | undefined;
354
+ name?: string | undefined;
355
+ url?: string | undefined;
356
+ phone?: string | undefined;
357
+ description?: string | undefined;
358
+ endorsement?: any[] | undefined;
359
+ image?: string | {
360
+ caption?: string | undefined;
361
+ type: string;
362
+ id: string;
363
+ } | undefined;
364
+ email?: string | undefined;
365
+ address?: {
366
+ addressCountry?: string | undefined;
367
+ addressCountryCode?: string | undefined;
368
+ addressRegion?: string | undefined;
369
+ addressLocality?: string | undefined;
370
+ streetAddress?: string | undefined;
371
+ postOfficeBoxNumber?: string | undefined;
372
+ postalCode?: string | undefined;
373
+ geo?: {
374
+ type: [
375
+ string,
376
+ ...string[]
377
+ ];
378
+ latitude: number;
379
+ longitude: number;
380
+ } | undefined;
381
+ type: [
382
+ string,
383
+ ...string[]
384
+ ];
385
+ } | undefined;
386
+ otherIdentifier?: {
387
+ type: [
388
+ string,
389
+ ...string[]
390
+ ];
391
+ identifier: string;
392
+ identifierType: string;
393
+ }[] | undefined;
394
+ official?: string | undefined;
395
+ parentOrg?: any;
396
+ familyName?: string | undefined;
397
+ givenName?: string | undefined;
398
+ additionalName?: string | undefined;
399
+ patronymicName?: string | undefined;
400
+ honorificPrefix?: string | undefined;
401
+ honorificSuffix?: string | undefined;
402
+ familyNamePrefix?: string | undefined;
403
+ dateOfBirth?: string | undefined;
404
+ type: [
405
+ string,
406
+ ...string[]
407
+ ];
408
+ };
54
409
  issuanceDate: string;
55
- expirationDate?: string;
56
- issuer: Issuer;
57
- type: string[];
58
- };
59
- export declare type VC = UnsignedVC & {
60
- proof: Proof;
61
- };
62
- export declare type UnsignedVP = {
63
- [key: string]: any;
64
- "@context": string | string[];
65
- holder: string;
66
- type: string[];
67
- verifiableCredential: VC;
68
- };
69
- export declare type VP = UnsignedVP & {
70
- proof: Proof;
71
- };
72
- export declare type JWK = {
73
- id: string;
74
- type: string | string[];
75
- controller?: string;
76
- publicKeyJwk?: any;
77
- privateKeyJwk?: any;
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
+ ];
78
438
  "@context": string[];
79
- name: string;
80
- image: string;
81
- description: string;
82
- tags: string[];
83
- value?: string;
84
- generatedFrom?: [
85
- string
439
+ issuer: string | {
440
+ [x: string]: any;
441
+ id?: string | undefined;
442
+ name?: string | undefined;
443
+ url?: string | undefined;
444
+ phone?: string | undefined;
445
+ description?: string | undefined;
446
+ endorsement?: any[] | undefined;
447
+ image?: string | {
448
+ caption?: string | undefined;
449
+ type: string;
450
+ id: string;
451
+ } | undefined;
452
+ email?: string | undefined;
453
+ address?: {
454
+ addressCountry?: string | undefined;
455
+ addressCountryCode?: string | undefined;
456
+ addressRegion?: string | undefined;
457
+ addressLocality?: string | undefined;
458
+ streetAddress?: string | undefined;
459
+ postOfficeBoxNumber?: string | undefined;
460
+ postalCode?: string | undefined;
461
+ geo?: {
462
+ type: [
463
+ string,
464
+ ...string[]
465
+ ];
466
+ latitude: number;
467
+ longitude: number;
468
+ } | undefined;
469
+ type: [
470
+ string,
471
+ ...string[]
472
+ ];
473
+ } | undefined;
474
+ otherIdentifier?: {
475
+ type: [
476
+ string,
477
+ ...string[]
478
+ ];
479
+ identifier: string;
480
+ identifierType: string;
481
+ }[] | undefined;
482
+ official?: string | undefined;
483
+ parentOrg?: any;
484
+ familyName?: string | undefined;
485
+ givenName?: string | undefined;
486
+ additionalName?: string | undefined;
487
+ patronymicName?: string | undefined;
488
+ honorificPrefix?: string | undefined;
489
+ honorificSuffix?: string | undefined;
490
+ familyNamePrefix?: string | undefined;
491
+ dateOfBirth?: string | undefined;
492
+ type: [
493
+ string,
494
+ ...string[]
495
+ ];
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.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
+ id?: string | undefined;
661
+ name?: string | undefined;
662
+ url?: string | undefined;
663
+ phone?: string | undefined;
664
+ description?: string | undefined;
665
+ endorsement?: any[] | undefined;
666
+ image?: string | {
667
+ caption?: string | undefined;
668
+ type: string;
669
+ id: string;
670
+ } | undefined;
671
+ email?: string | undefined;
672
+ address?: {
673
+ addressCountry?: string | undefined;
674
+ addressCountryCode?: string | undefined;
675
+ addressRegion?: string | undefined;
676
+ addressLocality?: string | undefined;
677
+ streetAddress?: string | undefined;
678
+ postOfficeBoxNumber?: string | undefined;
679
+ postalCode?: string | undefined;
680
+ geo?: {
681
+ type: [
682
+ string,
683
+ ...string[]
684
+ ];
685
+ latitude: number;
686
+ longitude: number;
687
+ } | undefined;
688
+ type: [
689
+ string,
690
+ ...string[]
691
+ ];
692
+ } | undefined;
693
+ otherIdentifier?: {
694
+ type: [
695
+ string,
696
+ ...string[]
697
+ ];
698
+ identifier: string;
699
+ identifierType: string;
700
+ }[] | undefined;
701
+ official?: string | undefined;
702
+ parentOrg?: any;
703
+ familyName?: string | undefined;
704
+ givenName?: string | undefined;
705
+ additionalName?: string | undefined;
706
+ patronymicName?: string | undefined;
707
+ honorificPrefix?: string | undefined;
708
+ honorificSuffix?: string | undefined;
709
+ familyNamePrefix?: string | undefined;
710
+ dateOfBirth?: string | undefined;
711
+ type: [
712
+ string,
713
+ ...string[]
714
+ ];
715
+ }, {
716
+ [x: string]: any;
717
+ id?: string | undefined;
718
+ name?: string | undefined;
719
+ url?: string | undefined;
720
+ phone?: string | undefined;
721
+ description?: string | undefined;
722
+ endorsement?: any[] | undefined;
723
+ image?: string | {
724
+ caption?: string | undefined;
725
+ type: string;
726
+ id: string;
727
+ } | undefined;
728
+ email?: string | undefined;
729
+ address?: {
730
+ addressCountry?: string | undefined;
731
+ addressCountryCode?: string | undefined;
732
+ addressRegion?: string | undefined;
733
+ addressLocality?: string | undefined;
734
+ streetAddress?: string | undefined;
735
+ postOfficeBoxNumber?: string | undefined;
736
+ postalCode?: string | undefined;
737
+ geo?: {
738
+ type: [
739
+ string,
740
+ ...string[]
741
+ ];
742
+ latitude: number;
743
+ longitude: number;
744
+ } | undefined;
745
+ type: [
746
+ string,
747
+ ...string[]
748
+ ];
749
+ } | undefined;
750
+ otherIdentifier?: {
751
+ type: [
752
+ string,
753
+ ...string[]
754
+ ];
755
+ identifier: string;
756
+ identifierType: string;
757
+ }[] | undefined;
758
+ official?: string | undefined;
759
+ parentOrg?: any;
760
+ familyName?: string | undefined;
761
+ givenName?: string | undefined;
762
+ additionalName?: string | undefined;
763
+ patronymicName?: string | undefined;
764
+ honorificPrefix?: string | undefined;
765
+ honorificSuffix?: string | undefined;
766
+ familyNamePrefix?: string | undefined;
767
+ dateOfBirth?: string | undefined;
768
+ type: [
769
+ string,
770
+ ...string[]
771
+ ];
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.ZodLiteral<"assertionMethod">;
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: "assertionMethod";
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: "assertionMethod";
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.ZodLiteral<"assertionMethod">;
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: "assertionMethod";
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: "assertionMethod";
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[]
86
911
  ];
87
- };
912
+ "@context": string[];
913
+ issuer: string | {
914
+ [x: string]: any;
915
+ id?: string | undefined;
916
+ name?: string | undefined;
917
+ url?: string | undefined;
918
+ phone?: string | undefined;
919
+ description?: string | undefined;
920
+ endorsement?: any[] | undefined;
921
+ image?: string | {
922
+ caption?: string | undefined;
923
+ type: string;
924
+ id: string;
925
+ } | undefined;
926
+ email?: string | undefined;
927
+ address?: {
928
+ addressCountry?: string | undefined;
929
+ addressCountryCode?: string | undefined;
930
+ addressRegion?: string | undefined;
931
+ addressLocality?: string | undefined;
932
+ streetAddress?: string | undefined;
933
+ postOfficeBoxNumber?: string | undefined;
934
+ postalCode?: string | undefined;
935
+ geo?: {
936
+ type: [
937
+ string,
938
+ ...string[]
939
+ ];
940
+ latitude: number;
941
+ longitude: number;
942
+ } | undefined;
943
+ type: [
944
+ string,
945
+ ...string[]
946
+ ];
947
+ } | undefined;
948
+ otherIdentifier?: {
949
+ type: [
950
+ string,
951
+ ...string[]
952
+ ];
953
+ identifier: string;
954
+ identifierType: string;
955
+ }[] | undefined;
956
+ official?: string | undefined;
957
+ parentOrg?: any;
958
+ familyName?: string | undefined;
959
+ givenName?: string | undefined;
960
+ additionalName?: string | undefined;
961
+ patronymicName?: string | undefined;
962
+ honorificPrefix?: string | undefined;
963
+ honorificSuffix?: string | undefined;
964
+ familyNamePrefix?: string | undefined;
965
+ dateOfBirth?: string | undefined;
966
+ type: [
967
+ string,
968
+ ...string[]
969
+ ];
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: "assertionMethod";
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: "assertionMethod";
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
+ id?: string | undefined;
1025
+ name?: string | undefined;
1026
+ url?: string | undefined;
1027
+ phone?: string | undefined;
1028
+ description?: string | undefined;
1029
+ endorsement?: any[] | undefined;
1030
+ image?: string | {
1031
+ caption?: string | undefined;
1032
+ type: string;
1033
+ id: string;
1034
+ } | undefined;
1035
+ email?: string | undefined;
1036
+ address?: {
1037
+ addressCountry?: string | undefined;
1038
+ addressCountryCode?: string | undefined;
1039
+ addressRegion?: string | undefined;
1040
+ addressLocality?: string | undefined;
1041
+ streetAddress?: string | undefined;
1042
+ postOfficeBoxNumber?: string | undefined;
1043
+ postalCode?: string | undefined;
1044
+ geo?: {
1045
+ type: [
1046
+ string,
1047
+ ...string[]
1048
+ ];
1049
+ latitude: number;
1050
+ longitude: number;
1051
+ } | undefined;
1052
+ type: [
1053
+ string,
1054
+ ...string[]
1055
+ ];
1056
+ } | undefined;
1057
+ otherIdentifier?: {
1058
+ type: [
1059
+ string,
1060
+ ...string[]
1061
+ ];
1062
+ identifier: string;
1063
+ identifierType: string;
1064
+ }[] | undefined;
1065
+ official?: string | undefined;
1066
+ parentOrg?: any;
1067
+ familyName?: string | undefined;
1068
+ givenName?: string | undefined;
1069
+ additionalName?: string | undefined;
1070
+ patronymicName?: string | undefined;
1071
+ honorificPrefix?: string | undefined;
1072
+ honorificSuffix?: string | undefined;
1073
+ familyNamePrefix?: string | undefined;
1074
+ dateOfBirth?: string | undefined;
1075
+ type: [
1076
+ string,
1077
+ ...string[]
1078
+ ];
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: "assertionMethod";
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: "assertionMethod";
1107
+ verificationMethod: string;
1108
+ }[];
1109
+ }>;
1110
+ export declare type VC = z.infer<typeof VCValidator>;
1111
+ declare const VPValidator: z.ZodObject<z.extendShape<{
1112
+ "@context": z.ZodArray<z.ZodString, "many">;
1113
+ id: z.ZodOptional<z.ZodString>;
1114
+ type: z.ZodArray<z.ZodString, "atleastone">;
1115
+ verifiableCredential: z.ZodObject<z.extendShape<{
1116
+ "@context": z.ZodArray<z.ZodString, "many">;
1117
+ id: z.ZodOptional<z.ZodString>;
1118
+ type: z.ZodArray<z.ZodString, "atleastone">;
1119
+ issuer: z.ZodUnion<[
1120
+ z.ZodString,
1121
+ z.ZodObject<{
1122
+ id: z.ZodOptional<z.ZodString>;
1123
+ type: z.ZodArray<z.ZodString, "atleastone">;
1124
+ name: z.ZodOptional<z.ZodString>;
1125
+ url: z.ZodOptional<z.ZodString>;
1126
+ phone: z.ZodOptional<z.ZodString>;
1127
+ description: z.ZodOptional<z.ZodString>;
1128
+ endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1129
+ image: z.ZodOptional<z.ZodUnion<[
1130
+ z.ZodString,
1131
+ z.ZodObject<{
1132
+ id: z.ZodString;
1133
+ type: z.ZodString;
1134
+ caption: z.ZodOptional<z.ZodString>;
1135
+ }, "strip", z.ZodTypeAny, {
1136
+ caption?: string | undefined;
1137
+ type: string;
1138
+ id: string;
1139
+ }, {
1140
+ caption?: string | undefined;
1141
+ type: string;
1142
+ id: string;
1143
+ }>
1144
+ ]>>;
1145
+ email: z.ZodOptional<z.ZodString>;
1146
+ address: z.ZodOptional<z.ZodObject<{
1147
+ type: z.ZodArray<z.ZodString, "atleastone">;
1148
+ addressCountry: z.ZodOptional<z.ZodString>;
1149
+ addressCountryCode: z.ZodOptional<z.ZodString>;
1150
+ addressRegion: z.ZodOptional<z.ZodString>;
1151
+ addressLocality: z.ZodOptional<z.ZodString>;
1152
+ streetAddress: z.ZodOptional<z.ZodString>;
1153
+ postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
1154
+ postalCode: z.ZodOptional<z.ZodString>;
1155
+ geo: z.ZodOptional<z.ZodObject<{
1156
+ type: z.ZodArray<z.ZodString, "atleastone">;
1157
+ latitude: z.ZodNumber;
1158
+ longitude: z.ZodNumber;
1159
+ }, "strip", z.ZodTypeAny, {
1160
+ type: [
1161
+ string,
1162
+ ...string[]
1163
+ ];
1164
+ latitude: number;
1165
+ longitude: number;
1166
+ }, {
1167
+ type: [
1168
+ string,
1169
+ ...string[]
1170
+ ];
1171
+ latitude: number;
1172
+ longitude: number;
1173
+ }>>;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ addressCountry?: string | undefined;
1176
+ addressCountryCode?: string | undefined;
1177
+ addressRegion?: string | undefined;
1178
+ addressLocality?: string | undefined;
1179
+ streetAddress?: string | undefined;
1180
+ postOfficeBoxNumber?: string | undefined;
1181
+ postalCode?: string | undefined;
1182
+ geo?: {
1183
+ type: [
1184
+ string,
1185
+ ...string[]
1186
+ ];
1187
+ latitude: number;
1188
+ longitude: number;
1189
+ } | undefined;
1190
+ type: [
1191
+ string,
1192
+ ...string[]
1193
+ ];
1194
+ }, {
1195
+ addressCountry?: string | undefined;
1196
+ addressCountryCode?: string | undefined;
1197
+ addressRegion?: string | undefined;
1198
+ addressLocality?: string | undefined;
1199
+ streetAddress?: string | undefined;
1200
+ postOfficeBoxNumber?: string | undefined;
1201
+ postalCode?: string | undefined;
1202
+ geo?: {
1203
+ type: [
1204
+ string,
1205
+ ...string[]
1206
+ ];
1207
+ latitude: number;
1208
+ longitude: number;
1209
+ } | undefined;
1210
+ type: [
1211
+ string,
1212
+ ...string[]
1213
+ ];
1214
+ }>>;
1215
+ otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
1216
+ type: z.ZodArray<z.ZodString, "atleastone">;
1217
+ identifier: z.ZodString;
1218
+ identifierType: z.ZodUnion<[
1219
+ z.ZodEnum<[
1220
+ "sourcedId",
1221
+ "systemId",
1222
+ "productId",
1223
+ "userName",
1224
+ "accountId",
1225
+ "emailAddress",
1226
+ "nationalIdentityNumber",
1227
+ "isbn",
1228
+ "issn",
1229
+ "lisSourcedId",
1230
+ "oneRosterSourcedId",
1231
+ "sisSourcedId",
1232
+ "ltiContextId",
1233
+ "ltiDeploymentId",
1234
+ "ltiToolId",
1235
+ "ltiPlatformId",
1236
+ "ltiUserId",
1237
+ "identifier"
1238
+ ]>,
1239
+ z.ZodString
1240
+ ]>;
1241
+ }, "strip", z.ZodTypeAny, {
1242
+ type: [
1243
+ string,
1244
+ ...string[]
1245
+ ];
1246
+ identifier: string;
1247
+ identifierType: string;
1248
+ }, {
1249
+ type: [
1250
+ string,
1251
+ ...string[]
1252
+ ];
1253
+ identifier: string;
1254
+ identifierType: string;
1255
+ }>, "many">>;
1256
+ official: z.ZodOptional<z.ZodString>;
1257
+ parentOrg: z.ZodOptional<z.ZodAny>;
1258
+ familyName: z.ZodOptional<z.ZodString>;
1259
+ givenName: z.ZodOptional<z.ZodString>;
1260
+ additionalName: z.ZodOptional<z.ZodString>;
1261
+ patronymicName: z.ZodOptional<z.ZodString>;
1262
+ honorificPrefix: z.ZodOptional<z.ZodString>;
1263
+ honorificSuffix: z.ZodOptional<z.ZodString>;
1264
+ familyNamePrefix: z.ZodOptional<z.ZodString>;
1265
+ dateOfBirth: z.ZodOptional<z.ZodString>;
1266
+ }, "strip", z.ZodAny, {
1267
+ [x: string]: any;
1268
+ id?: string | undefined;
1269
+ name?: string | undefined;
1270
+ url?: string | undefined;
1271
+ phone?: string | undefined;
1272
+ description?: string | undefined;
1273
+ endorsement?: any[] | undefined;
1274
+ image?: string | {
1275
+ caption?: string | undefined;
1276
+ type: string;
1277
+ id: string;
1278
+ } | undefined;
1279
+ email?: string | undefined;
1280
+ address?: {
1281
+ addressCountry?: string | undefined;
1282
+ addressCountryCode?: string | undefined;
1283
+ addressRegion?: string | undefined;
1284
+ addressLocality?: string | undefined;
1285
+ streetAddress?: string | undefined;
1286
+ postOfficeBoxNumber?: string | undefined;
1287
+ postalCode?: string | undefined;
1288
+ geo?: {
1289
+ type: [
1290
+ string,
1291
+ ...string[]
1292
+ ];
1293
+ latitude: number;
1294
+ longitude: number;
1295
+ } | undefined;
1296
+ type: [
1297
+ string,
1298
+ ...string[]
1299
+ ];
1300
+ } | undefined;
1301
+ otherIdentifier?: {
1302
+ type: [
1303
+ string,
1304
+ ...string[]
1305
+ ];
1306
+ identifier: string;
1307
+ identifierType: string;
1308
+ }[] | undefined;
1309
+ official?: string | undefined;
1310
+ parentOrg?: any;
1311
+ familyName?: string | undefined;
1312
+ givenName?: string | undefined;
1313
+ additionalName?: string | undefined;
1314
+ patronymicName?: string | undefined;
1315
+ honorificPrefix?: string | undefined;
1316
+ honorificSuffix?: string | undefined;
1317
+ familyNamePrefix?: string | undefined;
1318
+ dateOfBirth?: string | undefined;
1319
+ type: [
1320
+ string,
1321
+ ...string[]
1322
+ ];
1323
+ }, {
1324
+ [x: string]: any;
1325
+ id?: string | undefined;
1326
+ name?: string | undefined;
1327
+ url?: string | undefined;
1328
+ phone?: string | undefined;
1329
+ description?: string | undefined;
1330
+ endorsement?: any[] | undefined;
1331
+ image?: string | {
1332
+ caption?: string | undefined;
1333
+ type: string;
1334
+ id: string;
1335
+ } | undefined;
1336
+ email?: string | undefined;
1337
+ address?: {
1338
+ addressCountry?: string | undefined;
1339
+ addressCountryCode?: string | undefined;
1340
+ addressRegion?: string | undefined;
1341
+ addressLocality?: string | undefined;
1342
+ streetAddress?: string | undefined;
1343
+ postOfficeBoxNumber?: string | undefined;
1344
+ postalCode?: string | undefined;
1345
+ geo?: {
1346
+ type: [
1347
+ string,
1348
+ ...string[]
1349
+ ];
1350
+ latitude: number;
1351
+ longitude: number;
1352
+ } | undefined;
1353
+ type: [
1354
+ string,
1355
+ ...string[]
1356
+ ];
1357
+ } | undefined;
1358
+ otherIdentifier?: {
1359
+ type: [
1360
+ string,
1361
+ ...string[]
1362
+ ];
1363
+ identifier: string;
1364
+ identifierType: string;
1365
+ }[] | undefined;
1366
+ official?: string | undefined;
1367
+ parentOrg?: any;
1368
+ familyName?: string | undefined;
1369
+ givenName?: string | undefined;
1370
+ additionalName?: string | undefined;
1371
+ patronymicName?: string | undefined;
1372
+ honorificPrefix?: string | undefined;
1373
+ honorificSuffix?: string | undefined;
1374
+ familyNamePrefix?: string | undefined;
1375
+ dateOfBirth?: string | undefined;
1376
+ type: [
1377
+ string,
1378
+ ...string[]
1379
+ ];
1380
+ }>
1381
+ ]>;
1382
+ issuanceDate: z.ZodString;
1383
+ expirationDate: z.ZodOptional<z.ZodString>;
1384
+ credentialSubject: z.ZodUnion<[
1385
+ z.ZodObject<{
1386
+ id: z.ZodOptional<z.ZodString>;
1387
+ }, "strip", z.ZodAny, {
1388
+ [x: string]: any;
1389
+ id?: string | undefined;
1390
+ }, {
1391
+ [x: string]: any;
1392
+ id?: string | undefined;
1393
+ }>,
1394
+ z.ZodArray<z.ZodObject<{
1395
+ id: z.ZodOptional<z.ZodString>;
1396
+ }, "strip", z.ZodAny, {
1397
+ [x: string]: any;
1398
+ id?: string | undefined;
1399
+ }, {
1400
+ [x: string]: any;
1401
+ id?: string | undefined;
1402
+ }>, "many">
1403
+ ]>;
1404
+ credentialStatus: z.ZodOptional<z.ZodObject<{
1405
+ type: z.ZodString;
1406
+ id: z.ZodString;
1407
+ }, "strip", z.ZodTypeAny, {
1408
+ type: string;
1409
+ id: string;
1410
+ }, {
1411
+ type: string;
1412
+ id: string;
1413
+ }>>;
1414
+ credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
1415
+ id: z.ZodString;
1416
+ type: z.ZodString;
1417
+ }, "strip", z.ZodTypeAny, {
1418
+ type: string;
1419
+ id: string;
1420
+ }, {
1421
+ type: string;
1422
+ id: string;
1423
+ }>, "many">>;
1424
+ refreshService: z.ZodOptional<z.ZodObject<{
1425
+ id: z.ZodString;
1426
+ type: z.ZodString;
1427
+ }, "strip", z.ZodAny, {
1428
+ [x: string]: any;
1429
+ type: string;
1430
+ id: string;
1431
+ }, {
1432
+ [x: string]: any;
1433
+ type: string;
1434
+ id: string;
1435
+ }>>;
1436
+ }, {
1437
+ proof: z.ZodUnion<[
1438
+ z.ZodObject<{
1439
+ type: z.ZodString;
1440
+ created: z.ZodString;
1441
+ challenge: z.ZodOptional<z.ZodString>;
1442
+ domain: z.ZodOptional<z.ZodString>;
1443
+ nonce: z.ZodOptional<z.ZodString>;
1444
+ proofPurpose: z.ZodLiteral<"assertionMethod">;
1445
+ verificationMethod: z.ZodString;
1446
+ jws: z.ZodOptional<z.ZodString>;
1447
+ }, "strip", z.ZodAny, {
1448
+ [x: string]: any;
1449
+ challenge?: string | undefined;
1450
+ domain?: string | undefined;
1451
+ nonce?: string | undefined;
1452
+ jws?: string | undefined;
1453
+ type: string;
1454
+ created: string;
1455
+ proofPurpose: "assertionMethod";
1456
+ verificationMethod: string;
1457
+ }, {
1458
+ [x: string]: any;
1459
+ challenge?: string | undefined;
1460
+ domain?: string | undefined;
1461
+ nonce?: string | undefined;
1462
+ jws?: string | undefined;
1463
+ type: string;
1464
+ created: string;
1465
+ proofPurpose: "assertionMethod";
1466
+ verificationMethod: string;
1467
+ }>,
1468
+ z.ZodArray<z.ZodObject<{
1469
+ type: z.ZodString;
1470
+ created: z.ZodString;
1471
+ challenge: z.ZodOptional<z.ZodString>;
1472
+ domain: z.ZodOptional<z.ZodString>;
1473
+ nonce: z.ZodOptional<z.ZodString>;
1474
+ proofPurpose: z.ZodLiteral<"assertionMethod">;
1475
+ verificationMethod: z.ZodString;
1476
+ jws: z.ZodOptional<z.ZodString>;
1477
+ }, "strip", z.ZodAny, {
1478
+ [x: string]: any;
1479
+ challenge?: string | undefined;
1480
+ domain?: string | undefined;
1481
+ nonce?: string | undefined;
1482
+ jws?: string | undefined;
1483
+ type: string;
1484
+ created: string;
1485
+ proofPurpose: "assertionMethod";
1486
+ verificationMethod: string;
1487
+ }, {
1488
+ [x: string]: any;
1489
+ challenge?: string | undefined;
1490
+ domain?: string | undefined;
1491
+ nonce?: string | undefined;
1492
+ jws?: string | undefined;
1493
+ type: string;
1494
+ created: string;
1495
+ proofPurpose: "assertionMethod";
1496
+ verificationMethod: string;
1497
+ }>, "many">
1498
+ ]>;
1499
+ }>, "strip", z.ZodAny, {
1500
+ [x: string]: any;
1501
+ id?: string | undefined;
1502
+ expirationDate?: string | undefined;
1503
+ credentialStatus?: {
1504
+ type: string;
1505
+ id: string;
1506
+ } | undefined;
1507
+ credentialSchema?: {
1508
+ type: string;
1509
+ id: string;
1510
+ }[] | undefined;
1511
+ refreshService?: {
1512
+ [x: string]: any;
1513
+ type: string;
1514
+ id: string;
1515
+ } | undefined;
1516
+ type: [
1517
+ string,
1518
+ ...string[]
1519
+ ];
1520
+ "@context": string[];
1521
+ issuer: string | {
1522
+ [x: string]: any;
1523
+ id?: string | undefined;
1524
+ name?: string | undefined;
1525
+ url?: string | undefined;
1526
+ phone?: string | undefined;
1527
+ description?: string | undefined;
1528
+ endorsement?: any[] | undefined;
1529
+ image?: string | {
1530
+ caption?: string | undefined;
1531
+ type: string;
1532
+ id: string;
1533
+ } | undefined;
1534
+ email?: string | undefined;
1535
+ address?: {
1536
+ addressCountry?: string | undefined;
1537
+ addressCountryCode?: string | undefined;
1538
+ addressRegion?: string | undefined;
1539
+ addressLocality?: string | undefined;
1540
+ streetAddress?: string | undefined;
1541
+ postOfficeBoxNumber?: string | undefined;
1542
+ postalCode?: string | undefined;
1543
+ geo?: {
1544
+ type: [
1545
+ string,
1546
+ ...string[]
1547
+ ];
1548
+ latitude: number;
1549
+ longitude: number;
1550
+ } | undefined;
1551
+ type: [
1552
+ string,
1553
+ ...string[]
1554
+ ];
1555
+ } | undefined;
1556
+ otherIdentifier?: {
1557
+ type: [
1558
+ string,
1559
+ ...string[]
1560
+ ];
1561
+ identifier: string;
1562
+ identifierType: string;
1563
+ }[] | undefined;
1564
+ official?: string | undefined;
1565
+ parentOrg?: any;
1566
+ familyName?: string | undefined;
1567
+ givenName?: string | undefined;
1568
+ additionalName?: string | undefined;
1569
+ patronymicName?: string | undefined;
1570
+ honorificPrefix?: string | undefined;
1571
+ honorificSuffix?: string | undefined;
1572
+ familyNamePrefix?: string | undefined;
1573
+ dateOfBirth?: string | undefined;
1574
+ type: [
1575
+ string,
1576
+ ...string[]
1577
+ ];
1578
+ };
1579
+ issuanceDate: string;
1580
+ credentialSubject: {
1581
+ [x: string]: any;
1582
+ id?: string | undefined;
1583
+ } | {
1584
+ [x: string]: any;
1585
+ id?: string | undefined;
1586
+ }[];
1587
+ proof: {
1588
+ [x: string]: any;
1589
+ challenge?: string | undefined;
1590
+ domain?: string | undefined;
1591
+ nonce?: string | undefined;
1592
+ jws?: string | undefined;
1593
+ type: string;
1594
+ created: string;
1595
+ proofPurpose: "assertionMethod";
1596
+ verificationMethod: string;
1597
+ } | {
1598
+ [x: string]: any;
1599
+ challenge?: string | undefined;
1600
+ domain?: string | undefined;
1601
+ nonce?: string | undefined;
1602
+ jws?: string | undefined;
1603
+ type: string;
1604
+ created: string;
1605
+ proofPurpose: "assertionMethod";
1606
+ verificationMethod: string;
1607
+ }[];
1608
+ }, {
1609
+ [x: string]: any;
1610
+ id?: string | undefined;
1611
+ expirationDate?: string | undefined;
1612
+ credentialStatus?: {
1613
+ type: string;
1614
+ id: string;
1615
+ } | undefined;
1616
+ credentialSchema?: {
1617
+ type: string;
1618
+ id: string;
1619
+ }[] | undefined;
1620
+ refreshService?: {
1621
+ [x: string]: any;
1622
+ type: string;
1623
+ id: string;
1624
+ } | undefined;
1625
+ type: [
1626
+ string,
1627
+ ...string[]
1628
+ ];
1629
+ "@context": string[];
1630
+ issuer: string | {
1631
+ [x: string]: any;
1632
+ id?: string | undefined;
1633
+ name?: string | undefined;
1634
+ url?: string | undefined;
1635
+ phone?: string | undefined;
1636
+ description?: string | undefined;
1637
+ endorsement?: any[] | undefined;
1638
+ image?: string | {
1639
+ caption?: string | undefined;
1640
+ type: string;
1641
+ id: string;
1642
+ } | undefined;
1643
+ email?: string | undefined;
1644
+ address?: {
1645
+ addressCountry?: string | undefined;
1646
+ addressCountryCode?: string | undefined;
1647
+ addressRegion?: string | undefined;
1648
+ addressLocality?: string | undefined;
1649
+ streetAddress?: string | undefined;
1650
+ postOfficeBoxNumber?: string | undefined;
1651
+ postalCode?: string | undefined;
1652
+ geo?: {
1653
+ type: [
1654
+ string,
1655
+ ...string[]
1656
+ ];
1657
+ latitude: number;
1658
+ longitude: number;
1659
+ } | undefined;
1660
+ type: [
1661
+ string,
1662
+ ...string[]
1663
+ ];
1664
+ } | undefined;
1665
+ otherIdentifier?: {
1666
+ type: [
1667
+ string,
1668
+ ...string[]
1669
+ ];
1670
+ identifier: string;
1671
+ identifierType: string;
1672
+ }[] | undefined;
1673
+ official?: string | undefined;
1674
+ parentOrg?: any;
1675
+ familyName?: string | undefined;
1676
+ givenName?: string | undefined;
1677
+ additionalName?: string | undefined;
1678
+ patronymicName?: string | undefined;
1679
+ honorificPrefix?: string | undefined;
1680
+ honorificSuffix?: string | undefined;
1681
+ familyNamePrefix?: string | undefined;
1682
+ dateOfBirth?: string | undefined;
1683
+ type: [
1684
+ string,
1685
+ ...string[]
1686
+ ];
1687
+ };
1688
+ issuanceDate: string;
1689
+ credentialSubject: {
1690
+ [x: string]: any;
1691
+ id?: string | undefined;
1692
+ } | {
1693
+ [x: string]: any;
1694
+ id?: string | undefined;
1695
+ }[];
1696
+ proof: {
1697
+ [x: string]: any;
1698
+ challenge?: string | undefined;
1699
+ domain?: string | undefined;
1700
+ nonce?: string | undefined;
1701
+ jws?: string | undefined;
1702
+ type: string;
1703
+ created: string;
1704
+ proofPurpose: "assertionMethod";
1705
+ verificationMethod: string;
1706
+ } | {
1707
+ [x: string]: any;
1708
+ challenge?: string | undefined;
1709
+ domain?: string | undefined;
1710
+ nonce?: string | undefined;
1711
+ jws?: string | undefined;
1712
+ type: string;
1713
+ created: string;
1714
+ proofPurpose: "assertionMethod";
1715
+ verificationMethod: string;
1716
+ }[];
1717
+ }>;
1718
+ holder: z.ZodOptional<z.ZodString>;
1719
+ }, {
1720
+ proof: z.ZodUnion<[
1721
+ z.ZodObject<{
1722
+ type: z.ZodString;
1723
+ created: z.ZodString;
1724
+ challenge: z.ZodOptional<z.ZodString>;
1725
+ domain: z.ZodOptional<z.ZodString>;
1726
+ nonce: z.ZodOptional<z.ZodString>;
1727
+ proofPurpose: z.ZodLiteral<"assertionMethod">;
1728
+ verificationMethod: z.ZodString;
1729
+ jws: z.ZodOptional<z.ZodString>;
1730
+ }, "strip", z.ZodAny, {
1731
+ [x: string]: any;
1732
+ challenge?: string | undefined;
1733
+ domain?: string | undefined;
1734
+ nonce?: string | undefined;
1735
+ jws?: string | undefined;
1736
+ type: string;
1737
+ created: string;
1738
+ proofPurpose: "assertionMethod";
1739
+ verificationMethod: string;
1740
+ }, {
1741
+ [x: string]: any;
1742
+ challenge?: string | undefined;
1743
+ domain?: string | undefined;
1744
+ nonce?: string | undefined;
1745
+ jws?: string | undefined;
1746
+ type: string;
1747
+ created: string;
1748
+ proofPurpose: "assertionMethod";
1749
+ verificationMethod: string;
1750
+ }>,
1751
+ z.ZodArray<z.ZodObject<{
1752
+ type: z.ZodString;
1753
+ created: z.ZodString;
1754
+ challenge: z.ZodOptional<z.ZodString>;
1755
+ domain: z.ZodOptional<z.ZodString>;
1756
+ nonce: z.ZodOptional<z.ZodString>;
1757
+ proofPurpose: z.ZodLiteral<"assertionMethod">;
1758
+ verificationMethod: z.ZodString;
1759
+ jws: z.ZodOptional<z.ZodString>;
1760
+ }, "strip", z.ZodAny, {
1761
+ [x: string]: any;
1762
+ challenge?: string | undefined;
1763
+ domain?: string | undefined;
1764
+ nonce?: string | undefined;
1765
+ jws?: string | undefined;
1766
+ type: string;
1767
+ created: string;
1768
+ proofPurpose: "assertionMethod";
1769
+ verificationMethod: string;
1770
+ }, {
1771
+ [x: string]: any;
1772
+ challenge?: string | undefined;
1773
+ domain?: string | undefined;
1774
+ nonce?: string | undefined;
1775
+ jws?: string | undefined;
1776
+ type: string;
1777
+ created: string;
1778
+ proofPurpose: "assertionMethod";
1779
+ verificationMethod: string;
1780
+ }>, "many">
1781
+ ]>;
1782
+ }>, "strip", z.ZodAny, {
1783
+ [x: string]: any;
1784
+ id?: string | undefined;
1785
+ holder?: string | undefined;
1786
+ type: [
1787
+ string,
1788
+ ...string[]
1789
+ ];
1790
+ "@context": string[];
1791
+ proof: {
1792
+ [x: string]: any;
1793
+ challenge?: string | undefined;
1794
+ domain?: string | undefined;
1795
+ nonce?: string | undefined;
1796
+ jws?: string | undefined;
1797
+ type: string;
1798
+ created: string;
1799
+ proofPurpose: "assertionMethod";
1800
+ verificationMethod: string;
1801
+ } | {
1802
+ [x: string]: any;
1803
+ challenge?: string | undefined;
1804
+ domain?: string | undefined;
1805
+ nonce?: string | undefined;
1806
+ jws?: string | undefined;
1807
+ type: string;
1808
+ created: string;
1809
+ proofPurpose: "assertionMethod";
1810
+ verificationMethod: string;
1811
+ }[];
1812
+ verifiableCredential: {
1813
+ [x: string]: any;
1814
+ id?: string | undefined;
1815
+ expirationDate?: string | undefined;
1816
+ credentialStatus?: {
1817
+ type: string;
1818
+ id: string;
1819
+ } | undefined;
1820
+ credentialSchema?: {
1821
+ type: string;
1822
+ id: string;
1823
+ }[] | undefined;
1824
+ refreshService?: {
1825
+ [x: string]: any;
1826
+ type: string;
1827
+ id: string;
1828
+ } | undefined;
1829
+ type: [
1830
+ string,
1831
+ ...string[]
1832
+ ];
1833
+ "@context": string[];
1834
+ issuer: string | {
1835
+ [x: string]: any;
1836
+ id?: string | undefined;
1837
+ name?: string | undefined;
1838
+ url?: string | undefined;
1839
+ phone?: string | undefined;
1840
+ description?: string | undefined;
1841
+ endorsement?: any[] | undefined;
1842
+ image?: string | {
1843
+ caption?: string | undefined;
1844
+ type: string;
1845
+ id: string;
1846
+ } | undefined;
1847
+ email?: string | undefined;
1848
+ address?: {
1849
+ addressCountry?: string | undefined;
1850
+ addressCountryCode?: string | undefined;
1851
+ addressRegion?: string | undefined;
1852
+ addressLocality?: string | undefined;
1853
+ streetAddress?: string | undefined;
1854
+ postOfficeBoxNumber?: string | undefined;
1855
+ postalCode?: string | undefined;
1856
+ geo?: {
1857
+ type: [
1858
+ string,
1859
+ ...string[]
1860
+ ];
1861
+ latitude: number;
1862
+ longitude: number;
1863
+ } | undefined;
1864
+ type: [
1865
+ string,
1866
+ ...string[]
1867
+ ];
1868
+ } | undefined;
1869
+ otherIdentifier?: {
1870
+ type: [
1871
+ string,
1872
+ ...string[]
1873
+ ];
1874
+ identifier: string;
1875
+ identifierType: string;
1876
+ }[] | undefined;
1877
+ official?: string | undefined;
1878
+ parentOrg?: any;
1879
+ familyName?: string | undefined;
1880
+ givenName?: string | undefined;
1881
+ additionalName?: string | undefined;
1882
+ patronymicName?: string | undefined;
1883
+ honorificPrefix?: string | undefined;
1884
+ honorificSuffix?: string | undefined;
1885
+ familyNamePrefix?: string | undefined;
1886
+ dateOfBirth?: string | undefined;
1887
+ type: [
1888
+ string,
1889
+ ...string[]
1890
+ ];
1891
+ };
1892
+ issuanceDate: string;
1893
+ credentialSubject: {
1894
+ [x: string]: any;
1895
+ id?: string | undefined;
1896
+ } | {
1897
+ [x: string]: any;
1898
+ id?: string | undefined;
1899
+ }[];
1900
+ proof: {
1901
+ [x: string]: any;
1902
+ challenge?: string | undefined;
1903
+ domain?: string | undefined;
1904
+ nonce?: string | undefined;
1905
+ jws?: string | undefined;
1906
+ type: string;
1907
+ created: string;
1908
+ proofPurpose: "assertionMethod";
1909
+ verificationMethod: string;
1910
+ } | {
1911
+ [x: string]: any;
1912
+ challenge?: string | undefined;
1913
+ domain?: string | undefined;
1914
+ nonce?: string | undefined;
1915
+ jws?: string | undefined;
1916
+ type: string;
1917
+ created: string;
1918
+ proofPurpose: "assertionMethod";
1919
+ verificationMethod: string;
1920
+ }[];
1921
+ };
1922
+ }, {
1923
+ [x: string]: any;
1924
+ id?: string | undefined;
1925
+ holder?: string | undefined;
1926
+ type: [
1927
+ string,
1928
+ ...string[]
1929
+ ];
1930
+ "@context": string[];
1931
+ proof: {
1932
+ [x: string]: any;
1933
+ challenge?: string | undefined;
1934
+ domain?: string | undefined;
1935
+ nonce?: string | undefined;
1936
+ jws?: string | undefined;
1937
+ type: string;
1938
+ created: string;
1939
+ proofPurpose: "assertionMethod";
1940
+ verificationMethod: string;
1941
+ } | {
1942
+ [x: string]: any;
1943
+ challenge?: string | undefined;
1944
+ domain?: string | undefined;
1945
+ nonce?: string | undefined;
1946
+ jws?: string | undefined;
1947
+ type: string;
1948
+ created: string;
1949
+ proofPurpose: "assertionMethod";
1950
+ verificationMethod: string;
1951
+ }[];
1952
+ verifiableCredential: {
1953
+ [x: string]: any;
1954
+ id?: string | undefined;
1955
+ expirationDate?: string | undefined;
1956
+ credentialStatus?: {
1957
+ type: string;
1958
+ id: string;
1959
+ } | undefined;
1960
+ credentialSchema?: {
1961
+ type: string;
1962
+ id: string;
1963
+ }[] | undefined;
1964
+ refreshService?: {
1965
+ [x: string]: any;
1966
+ type: string;
1967
+ id: string;
1968
+ } | undefined;
1969
+ type: [
1970
+ string,
1971
+ ...string[]
1972
+ ];
1973
+ "@context": string[];
1974
+ issuer: string | {
1975
+ [x: string]: any;
1976
+ id?: string | undefined;
1977
+ name?: string | undefined;
1978
+ url?: string | undefined;
1979
+ phone?: string | undefined;
1980
+ description?: string | undefined;
1981
+ endorsement?: any[] | undefined;
1982
+ image?: string | {
1983
+ caption?: string | undefined;
1984
+ type: string;
1985
+ id: string;
1986
+ } | undefined;
1987
+ email?: string | undefined;
1988
+ address?: {
1989
+ addressCountry?: string | undefined;
1990
+ addressCountryCode?: string | undefined;
1991
+ addressRegion?: string | undefined;
1992
+ addressLocality?: string | undefined;
1993
+ streetAddress?: string | undefined;
1994
+ postOfficeBoxNumber?: string | undefined;
1995
+ postalCode?: string | undefined;
1996
+ geo?: {
1997
+ type: [
1998
+ string,
1999
+ ...string[]
2000
+ ];
2001
+ latitude: number;
2002
+ longitude: number;
2003
+ } | undefined;
2004
+ type: [
2005
+ string,
2006
+ ...string[]
2007
+ ];
2008
+ } | undefined;
2009
+ otherIdentifier?: {
2010
+ type: [
2011
+ string,
2012
+ ...string[]
2013
+ ];
2014
+ identifier: string;
2015
+ identifierType: string;
2016
+ }[] | undefined;
2017
+ official?: string | undefined;
2018
+ parentOrg?: any;
2019
+ familyName?: string | undefined;
2020
+ givenName?: string | undefined;
2021
+ additionalName?: string | undefined;
2022
+ patronymicName?: string | undefined;
2023
+ honorificPrefix?: string | undefined;
2024
+ honorificSuffix?: string | undefined;
2025
+ familyNamePrefix?: string | undefined;
2026
+ dateOfBirth?: string | undefined;
2027
+ type: [
2028
+ string,
2029
+ ...string[]
2030
+ ];
2031
+ };
2032
+ issuanceDate: string;
2033
+ credentialSubject: {
2034
+ [x: string]: any;
2035
+ id?: string | undefined;
2036
+ } | {
2037
+ [x: string]: any;
2038
+ id?: string | undefined;
2039
+ }[];
2040
+ proof: {
2041
+ [x: string]: any;
2042
+ challenge?: string | undefined;
2043
+ domain?: string | undefined;
2044
+ nonce?: string | undefined;
2045
+ jws?: string | undefined;
2046
+ type: string;
2047
+ created: string;
2048
+ proofPurpose: "assertionMethod";
2049
+ verificationMethod: string;
2050
+ } | {
2051
+ [x: string]: any;
2052
+ challenge?: string | undefined;
2053
+ domain?: string | undefined;
2054
+ nonce?: string | undefined;
2055
+ jws?: string | undefined;
2056
+ type: string;
2057
+ created: string;
2058
+ proofPurpose: "assertionMethod";
2059
+ verificationMethod: string;
2060
+ }[];
2061
+ };
2062
+ }>;
2063
+ export declare type VP = z.infer<typeof VPValidator>;
2064
+ declare const VerificationItemValidator: z.ZodObject<{
2065
+ check: z.ZodString;
2066
+ status: z.ZodEnum<[
2067
+ "Success",
2068
+ "Failed",
2069
+ "Error"
2070
+ ]>;
2071
+ message: z.ZodOptional<z.ZodString>;
2072
+ details: z.ZodOptional<z.ZodString>;
2073
+ }, "strip", z.ZodTypeAny, {
2074
+ message?: string | undefined;
2075
+ details?: string | undefined;
2076
+ status: "Failed" | "Success" | "Error";
2077
+ check: string;
2078
+ }, {
2079
+ message?: string | undefined;
2080
+ details?: string | undefined;
2081
+ status: "Failed" | "Success" | "Error";
2082
+ check: string;
2083
+ }>;
2084
+ export declare type VerificationItem = z.infer<typeof VerificationItemValidator>;
88
2085
  export declare type DidKeyPluginMethods = {
89
2086
  getSubjectDid: () => string;
90
2087
  getSubjectKeypair: () => Record<string, string>;
91
- };
92
- export declare type DidKeyPluginConstants = {
93
- generateContentFromSeed: (seed: Uint8Array) => Promise<JWK[]>;
2088
+ getKey: () => string;
94
2089
  };
95
2090
  export declare type IDXPluginMethods = {
96
2091
  getCredentialsListFromIndex: (alias?: string) => Promise<CredentialsList>;
@@ -126,36 +2121,34 @@ export declare type VCPluginMethods = {
126
2121
  getSubjectKeypair: () => Record<string, string>;
127
2122
  };
128
2123
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
129
- export declare type Plugin<Name extends string, PublicMethods extends Record<string, (...args: any[]) => any> = Record<never, never>, PublicConstants extends Record<string, any> = Record<never, never>> = {
2124
+ export declare type Plugin<Name extends string, PublicMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = {
130
2125
  name?: Name;
131
2126
  pluginMethods: {
132
- [Key in keyof PublicMethods]: <T extends UnlockedWallet<any, PublicMethods, PublicConstants>>(wallet: T, ...args: Parameters<PublicMethods[Key]>) => ReturnType<PublicMethods[Key]>;
2127
+ [Key in keyof PublicMethods]: <T extends UnlockedWallet<any, PublicMethods>>(wallet: T, ...args: Parameters<PublicMethods[Key]>) => ReturnType<PublicMethods[Key]>;
133
2128
  };
134
- pluginConstants: PublicConstants;
135
2129
  };
136
- export declare type PublicFieldsObj<PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>, PluginConstants extends Record<string, any> = Record<never, never>> = {
2130
+ export declare type PublicFieldsObj<PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = {
137
2131
  pluginMethods: PluginMethods;
138
- pluginConstants: PluginConstants;
139
2132
  };
140
2133
  declare enum WalletStatus {
141
2134
  Locked = "LOCKED",
142
2135
  Unlocked = "UNLOCKED"
143
2136
  }
144
- export declare type BaseWallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>, PluginConstants extends Record<string, any> = Record<never, never>> = PublicFieldsObj<PluginMethods, PluginConstants> & {
2137
+ export declare type BaseWallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = PublicFieldsObj<PluginMethods> & {
145
2138
  contents: any[];
146
- plugins: Plugin<PluginNames, Record<string, (...args: any[]) => any>, Record<string, any>>[];
2139
+ plugins: Plugin<PluginNames, Record<string, (...args: any[]) => any>>[];
147
2140
  };
148
- export declare type LockedWallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>, PluginConstants extends Record<string, any> = Record<never, never>> = BaseWallet<PluginNames, PluginMethods, PluginConstants> & {
2141
+ export declare type LockedWallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = BaseWallet<PluginNames, PluginMethods> & {
149
2142
  status: WalletStatus.Locked;
150
2143
  };
151
- export declare type UnlockedWallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>, PluginConstants extends Record<string, any> = Record<never, never>> = BaseWallet<PluginNames, PluginMethods, PluginConstants> & {
2144
+ export declare type UnlockedWallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = BaseWallet<PluginNames, PluginMethods> & {
152
2145
  status: WalletStatus.Unlocked;
153
- add: (content: any) => Promise<UnlockedWallet<PluginNames, PluginMethods, PluginConstants>>;
154
- remove: (contentId: string) => Promise<UnlockedWallet<PluginNames, PluginMethods, PluginConstants>>;
155
- addPlugin: <Name extends string, Methods extends Record<string, (...args: any[]) => any> = Record<never, never>, Constants extends Record<string, any> = Record<never, never>>(plugin: Plugin<Name, Methods, Constants>) => Promise<UnlockedWallet<"" extends PluginNames ? Name : PluginNames | Name, Record<never, never> extends PluginMethods ? Methods : PluginMethods & Methods, Record<never, never> extends PluginConstants ? Constants : PluginConstants & Constants>>;
2146
+ add: (content: any) => Promise<UnlockedWallet<PluginNames, PluginMethods>>;
2147
+ remove: (contentId: string) => Promise<UnlockedWallet<PluginNames, PluginMethods>>;
2148
+ 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>>;
156
2149
  };
157
- export declare type Wallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>, PluginConstants extends Record<string, any> = Record<never, never>> = LockedWallet<PluginNames, PluginMethods, PluginConstants> | UnlockedWallet<PluginNames, PluginMethods, PluginConstants>;
158
- export declare type LearnCardRawWallet = UnlockedWallet<"DID Key" | "VC" | "IDX" | "Expiration", DidKeyPluginMethods & VCPluginMethods & IDXPluginMethods, DidKeyPluginConstants>;
2150
+ export declare type Wallet<PluginNames extends string = "", PluginMethods extends Record<string, (...args: any[]) => any> = Record<never, never>> = LockedWallet<PluginNames, PluginMethods> | UnlockedWallet<PluginNames, PluginMethods>;
2151
+ export declare type LearnCardRawWallet = UnlockedWallet<"DID Key" | "VC" | "IDX" | "Expiration", DidKeyPluginMethods & VCPluginMethods & IDXPluginMethods>;
159
2152
  export declare type LearnCardWallet = {
160
2153
  /** Raw IoE wallet instance. You shouldn't need to drop down to this level! */
161
2154
  _wallet: LearnCardRawWallet;
@@ -222,11 +2215,11 @@ export declare type CeramicIDXArgs = {
222
2215
  export declare type LearnCardConfig = {
223
2216
  ceramicIdx: CeramicIDXArgs;
224
2217
  didkit: InitInput | Promise<InitInput>;
2218
+ defaultContents: any[];
225
2219
  };
226
- export declare const createWallet: (defaultContents: any[], { ceramicIdx, didkit }?: Partial<LearnCardConfig>) => Promise<LearnCardWallet>;
227
- /** Generates did documents from key and returns default wallet */
228
- export declare const walletFromKey: (key: string, { ceramicIdx, didkit }?: Partial<LearnCardConfig>) => Promise<LearnCardWallet>;
229
- export { createWallet, walletFromKey } from "@wallet/init";
2220
+ /** Generates a LearnCard Wallet from a 64 character seed string */
2221
+ export declare const walletFromKey: (key: string, { ceramicIdx, didkit, defaultContents, }?: Partial<LearnCardConfig>) => Promise<LearnCardWallet>;
2222
+ export { walletFromKey } from "@wallet/init";
230
2223
  export { Wallet, UnlockedWallet, LockedWallet, Plugin } from "types/wallet";
231
2224
 
232
2225
  export {};