@learncard/types 2.0.1 → 2.1.0

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