@learncard/types 2.1.1 → 2.2.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 CHANGED
@@ -110,7 +110,7 @@ export declare const IdentifierEntryValidator: z.ZodObject<{
110
110
  export declare type IdentifierEntry = z.infer<typeof IdentifierEntryValidator>;
111
111
  export declare const ProfileValidator: z.ZodUnion<[z.ZodString, z.ZodObject<{
112
112
  id: z.ZodOptional<z.ZodString>;
113
- type: z.ZodArray<z.ZodString, "atleastone">;
113
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
114
114
  name: z.ZodOptional<z.ZodString>;
115
115
  url: z.ZodOptional<z.ZodString>;
116
116
  phone: z.ZodOptional<z.ZodString>;
@@ -206,6 +206,7 @@ export declare const ProfileValidator: z.ZodUnion<[z.ZodString, z.ZodObject<{
206
206
  dateOfBirth: z.ZodOptional<z.ZodString>;
207
207
  }, "strip", z.ZodAny, {
208
208
  [x: string]: any;
209
+ type?: [string, ...string[]] | undefined;
209
210
  id?: string | undefined;
210
211
  name?: string | undefined;
211
212
  url?: string | undefined;
@@ -248,9 +249,9 @@ export declare const ProfileValidator: z.ZodUnion<[z.ZodString, z.ZodObject<{
248
249
  honorificSuffix?: string | undefined;
249
250
  familyNamePrefix?: string | undefined;
250
251
  dateOfBirth?: string | undefined;
251
- type: [string, ...string[]];
252
252
  }, {
253
253
  [x: string]: any;
254
+ type?: [string, ...string[]] | undefined;
254
255
  id?: string | undefined;
255
256
  name?: string | undefined;
256
257
  url?: string | undefined;
@@ -293,7 +294,6 @@ export declare const ProfileValidator: z.ZodUnion<[z.ZodString, z.ZodObject<{
293
294
  honorificSuffix?: string | undefined;
294
295
  familyNamePrefix?: string | undefined;
295
296
  dateOfBirth?: string | undefined;
296
- type: [string, ...string[]];
297
297
  }>]>;
298
298
  export declare type Profile = z.infer<typeof ProfileValidator>;
299
299
  export declare const CredentialSubjectValidator: z.ZodObject<{
@@ -347,7 +347,7 @@ export declare const UnsignedVCValidator: z.ZodObject<{
347
347
  type: z.ZodArray<z.ZodString, "atleastone">;
348
348
  issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
349
349
  id: z.ZodOptional<z.ZodString>;
350
- type: z.ZodArray<z.ZodString, "atleastone">;
350
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
351
351
  name: z.ZodOptional<z.ZodString>;
352
352
  url: z.ZodOptional<z.ZodString>;
353
353
  phone: z.ZodOptional<z.ZodString>;
@@ -443,6 +443,7 @@ export declare const UnsignedVCValidator: z.ZodObject<{
443
443
  dateOfBirth: z.ZodOptional<z.ZodString>;
444
444
  }, "strip", z.ZodAny, {
445
445
  [x: string]: any;
446
+ type?: [string, ...string[]] | undefined;
446
447
  id?: string | undefined;
447
448
  name?: string | undefined;
448
449
  url?: string | undefined;
@@ -485,9 +486,9 @@ export declare const UnsignedVCValidator: z.ZodObject<{
485
486
  honorificSuffix?: string | undefined;
486
487
  familyNamePrefix?: string | undefined;
487
488
  dateOfBirth?: string | undefined;
488
- type: [string, ...string[]];
489
489
  }, {
490
490
  [x: string]: any;
491
+ type?: [string, ...string[]] | undefined;
491
492
  id?: string | undefined;
492
493
  name?: string | undefined;
493
494
  url?: string | undefined;
@@ -530,7 +531,6 @@ export declare const UnsignedVCValidator: z.ZodObject<{
530
531
  honorificSuffix?: string | undefined;
531
532
  familyNamePrefix?: string | undefined;
532
533
  dateOfBirth?: string | undefined;
533
- type: [string, ...string[]];
534
534
  }>]>;
535
535
  issuanceDate: z.ZodString;
536
536
  expirationDate: z.ZodOptional<z.ZodString>;
@@ -604,6 +604,7 @@ export declare const UnsignedVCValidator: z.ZodObject<{
604
604
  '@context': string[];
605
605
  issuer: string | {
606
606
  [x: string]: any;
607
+ type?: [string, ...string[]] | undefined;
607
608
  id?: string | undefined;
608
609
  name?: string | undefined;
609
610
  url?: string | undefined;
@@ -646,7 +647,6 @@ export declare const UnsignedVCValidator: z.ZodObject<{
646
647
  honorificSuffix?: string | undefined;
647
648
  familyNamePrefix?: string | undefined;
648
649
  dateOfBirth?: string | undefined;
649
- type: [string, ...string[]];
650
650
  };
651
651
  issuanceDate: string;
652
652
  credentialSubject: {
@@ -677,6 +677,7 @@ export declare const UnsignedVCValidator: z.ZodObject<{
677
677
  '@context': string[];
678
678
  issuer: string | {
679
679
  [x: string]: any;
680
+ type?: [string, ...string[]] | undefined;
680
681
  id?: string | undefined;
681
682
  name?: string | undefined;
682
683
  url?: string | undefined;
@@ -719,7 +720,6 @@ export declare const UnsignedVCValidator: z.ZodObject<{
719
720
  honorificSuffix?: string | undefined;
720
721
  familyNamePrefix?: string | undefined;
721
722
  dateOfBirth?: string | undefined;
722
- type: [string, ...string[]];
723
723
  };
724
724
  issuanceDate: string;
725
725
  credentialSubject: {
@@ -737,7 +737,7 @@ export declare const ProofValidator: z.ZodObject<{
737
737
  challenge: z.ZodOptional<z.ZodString>;
738
738
  domain: z.ZodOptional<z.ZodString>;
739
739
  nonce: z.ZodOptional<z.ZodString>;
740
- proofPurpose: z.ZodLiteral<"assertionMethod">;
740
+ proofPurpose: z.ZodString;
741
741
  verificationMethod: z.ZodString;
742
742
  jws: z.ZodOptional<z.ZodString>;
743
743
  }, "strip", z.ZodAny, {
@@ -748,7 +748,7 @@ export declare const ProofValidator: z.ZodObject<{
748
748
  jws?: string | undefined;
749
749
  type: string;
750
750
  created: string;
751
- proofPurpose: "assertionMethod";
751
+ proofPurpose: string;
752
752
  verificationMethod: string;
753
753
  }, {
754
754
  [x: string]: any;
@@ -758,7 +758,7 @@ export declare const ProofValidator: z.ZodObject<{
758
758
  jws?: string | undefined;
759
759
  type: string;
760
760
  created: string;
761
- proofPurpose: "assertionMethod";
761
+ proofPurpose: string;
762
762
  verificationMethod: string;
763
763
  }>;
764
764
  export declare type Proof = z.infer<typeof ProofValidator>;
@@ -768,7 +768,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
768
768
  type: z.ZodArray<z.ZodString, "atleastone">;
769
769
  issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
770
770
  id: z.ZodOptional<z.ZodString>;
771
- type: z.ZodArray<z.ZodString, "atleastone">;
771
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
772
772
  name: z.ZodOptional<z.ZodString>;
773
773
  url: z.ZodOptional<z.ZodString>;
774
774
  phone: z.ZodOptional<z.ZodString>;
@@ -864,6 +864,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
864
864
  dateOfBirth: z.ZodOptional<z.ZodString>;
865
865
  }, "strip", z.ZodAny, {
866
866
  [x: string]: any;
867
+ type?: [string, ...string[]] | undefined;
867
868
  id?: string | undefined;
868
869
  name?: string | undefined;
869
870
  url?: string | undefined;
@@ -906,9 +907,9 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
906
907
  honorificSuffix?: string | undefined;
907
908
  familyNamePrefix?: string | undefined;
908
909
  dateOfBirth?: string | undefined;
909
- type: [string, ...string[]];
910
910
  }, {
911
911
  [x: string]: any;
912
+ type?: [string, ...string[]] | undefined;
912
913
  id?: string | undefined;
913
914
  name?: string | undefined;
914
915
  url?: string | undefined;
@@ -951,7 +952,6 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
951
952
  honorificSuffix?: string | undefined;
952
953
  familyNamePrefix?: string | undefined;
953
954
  dateOfBirth?: string | undefined;
954
- type: [string, ...string[]];
955
955
  }>]>;
956
956
  issuanceDate: z.ZodString;
957
957
  expirationDate: z.ZodOptional<z.ZodString>;
@@ -1011,7 +1011,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1011
1011
  challenge: z.ZodOptional<z.ZodString>;
1012
1012
  domain: z.ZodOptional<z.ZodString>;
1013
1013
  nonce: z.ZodOptional<z.ZodString>;
1014
- proofPurpose: z.ZodLiteral<"assertionMethod">;
1014
+ proofPurpose: z.ZodString;
1015
1015
  verificationMethod: z.ZodString;
1016
1016
  jws: z.ZodOptional<z.ZodString>;
1017
1017
  }, "strip", z.ZodAny, {
@@ -1022,7 +1022,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1022
1022
  jws?: string | undefined;
1023
1023
  type: string;
1024
1024
  created: string;
1025
- proofPurpose: "assertionMethod";
1025
+ proofPurpose: string;
1026
1026
  verificationMethod: string;
1027
1027
  }, {
1028
1028
  [x: string]: any;
@@ -1032,7 +1032,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1032
1032
  jws?: string | undefined;
1033
1033
  type: string;
1034
1034
  created: string;
1035
- proofPurpose: "assertionMethod";
1035
+ proofPurpose: string;
1036
1036
  verificationMethod: string;
1037
1037
  }>, z.ZodArray<z.ZodObject<{
1038
1038
  type: z.ZodString;
@@ -1040,7 +1040,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1040
1040
  challenge: z.ZodOptional<z.ZodString>;
1041
1041
  domain: z.ZodOptional<z.ZodString>;
1042
1042
  nonce: z.ZodOptional<z.ZodString>;
1043
- proofPurpose: z.ZodLiteral<"assertionMethod">;
1043
+ proofPurpose: z.ZodString;
1044
1044
  verificationMethod: z.ZodString;
1045
1045
  jws: z.ZodOptional<z.ZodString>;
1046
1046
  }, "strip", z.ZodAny, {
@@ -1051,7 +1051,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1051
1051
  jws?: string | undefined;
1052
1052
  type: string;
1053
1053
  created: string;
1054
- proofPurpose: "assertionMethod";
1054
+ proofPurpose: string;
1055
1055
  verificationMethod: string;
1056
1056
  }, {
1057
1057
  [x: string]: any;
@@ -1061,7 +1061,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1061
1061
  jws?: string | undefined;
1062
1062
  type: string;
1063
1063
  created: string;
1064
- proofPurpose: "assertionMethod";
1064
+ proofPurpose: string;
1065
1065
  verificationMethod: string;
1066
1066
  }>, "many">]>;
1067
1067
  }>, "strip", z.ZodAny, {
@@ -1085,6 +1085,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1085
1085
  '@context': string[];
1086
1086
  issuer: string | {
1087
1087
  [x: string]: any;
1088
+ type?: [string, ...string[]] | undefined;
1088
1089
  id?: string | undefined;
1089
1090
  name?: string | undefined;
1090
1091
  url?: string | undefined;
@@ -1127,7 +1128,6 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1127
1128
  honorificSuffix?: string | undefined;
1128
1129
  familyNamePrefix?: string | undefined;
1129
1130
  dateOfBirth?: string | undefined;
1130
- type: [string, ...string[]];
1131
1131
  };
1132
1132
  issuanceDate: string;
1133
1133
  credentialSubject: {
@@ -1145,7 +1145,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1145
1145
  jws?: string | undefined;
1146
1146
  type: string;
1147
1147
  created: string;
1148
- proofPurpose: "assertionMethod";
1148
+ proofPurpose: string;
1149
1149
  verificationMethod: string;
1150
1150
  } | {
1151
1151
  [x: string]: any;
@@ -1155,7 +1155,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1155
1155
  jws?: string | undefined;
1156
1156
  type: string;
1157
1157
  created: string;
1158
- proofPurpose: "assertionMethod";
1158
+ proofPurpose: string;
1159
1159
  verificationMethod: string;
1160
1160
  }[];
1161
1161
  }, {
@@ -1179,6 +1179,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1179
1179
  '@context': string[];
1180
1180
  issuer: string | {
1181
1181
  [x: string]: any;
1182
+ type?: [string, ...string[]] | undefined;
1182
1183
  id?: string | undefined;
1183
1184
  name?: string | undefined;
1184
1185
  url?: string | undefined;
@@ -1221,7 +1222,6 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1221
1222
  honorificSuffix?: string | undefined;
1222
1223
  familyNamePrefix?: string | undefined;
1223
1224
  dateOfBirth?: string | undefined;
1224
- type: [string, ...string[]];
1225
1225
  };
1226
1226
  issuanceDate: string;
1227
1227
  credentialSubject: {
@@ -1239,7 +1239,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1239
1239
  jws?: string | undefined;
1240
1240
  type: string;
1241
1241
  created: string;
1242
- proofPurpose: "assertionMethod";
1242
+ proofPurpose: string;
1243
1243
  verificationMethod: string;
1244
1244
  } | {
1245
1245
  [x: string]: any;
@@ -1249,7 +1249,7 @@ export declare const VCValidator: z.ZodObject<z.extendShape<{
1249
1249
  jws?: string | undefined;
1250
1250
  type: string;
1251
1251
  created: string;
1252
- proofPurpose: "assertionMethod";
1252
+ proofPurpose: string;
1253
1253
  verificationMethod: string;
1254
1254
  }[];
1255
1255
  }>;
@@ -1258,13 +1258,13 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1258
1258
  '@context': z.ZodArray<z.ZodString, "many">;
1259
1259
  id: z.ZodOptional<z.ZodString>;
1260
1260
  type: z.ZodArray<z.ZodString, "atleastone">;
1261
- verifiableCredential: z.ZodObject<z.extendShape<{
1261
+ verifiableCredential: z.ZodUnion<[z.ZodObject<z.extendShape<{
1262
1262
  '@context': z.ZodArray<z.ZodString, "many">;
1263
1263
  id: z.ZodOptional<z.ZodString>;
1264
1264
  type: z.ZodArray<z.ZodString, "atleastone">;
1265
1265
  issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
1266
1266
  id: z.ZodOptional<z.ZodString>;
1267
- type: z.ZodArray<z.ZodString, "atleastone">;
1267
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
1268
1268
  name: z.ZodOptional<z.ZodString>;
1269
1269
  url: z.ZodOptional<z.ZodString>;
1270
1270
  phone: z.ZodOptional<z.ZodString>;
@@ -1360,6 +1360,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1360
1360
  dateOfBirth: z.ZodOptional<z.ZodString>;
1361
1361
  }, "strip", z.ZodAny, {
1362
1362
  [x: string]: any;
1363
+ type?: [string, ...string[]] | undefined;
1363
1364
  id?: string | undefined;
1364
1365
  name?: string | undefined;
1365
1366
  url?: string | undefined;
@@ -1402,9 +1403,9 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1402
1403
  honorificSuffix?: string | undefined;
1403
1404
  familyNamePrefix?: string | undefined;
1404
1405
  dateOfBirth?: string | undefined;
1405
- type: [string, ...string[]];
1406
1406
  }, {
1407
1407
  [x: string]: any;
1408
+ type?: [string, ...string[]] | undefined;
1408
1409
  id?: string | undefined;
1409
1410
  name?: string | undefined;
1410
1411
  url?: string | undefined;
@@ -1447,7 +1448,6 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1447
1448
  honorificSuffix?: string | undefined;
1448
1449
  familyNamePrefix?: string | undefined;
1449
1450
  dateOfBirth?: string | undefined;
1450
- type: [string, ...string[]];
1451
1451
  }>]>;
1452
1452
  issuanceDate: z.ZodString;
1453
1453
  expirationDate: z.ZodOptional<z.ZodString>;
@@ -1507,7 +1507,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1507
1507
  challenge: z.ZodOptional<z.ZodString>;
1508
1508
  domain: z.ZodOptional<z.ZodString>;
1509
1509
  nonce: z.ZodOptional<z.ZodString>;
1510
- proofPurpose: z.ZodLiteral<"assertionMethod">;
1510
+ proofPurpose: z.ZodString;
1511
1511
  verificationMethod: z.ZodString;
1512
1512
  jws: z.ZodOptional<z.ZodString>;
1513
1513
  }, "strip", z.ZodAny, {
@@ -1518,7 +1518,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1518
1518
  jws?: string | undefined;
1519
1519
  type: string;
1520
1520
  created: string;
1521
- proofPurpose: "assertionMethod";
1521
+ proofPurpose: string;
1522
1522
  verificationMethod: string;
1523
1523
  }, {
1524
1524
  [x: string]: any;
@@ -1528,7 +1528,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1528
1528
  jws?: string | undefined;
1529
1529
  type: string;
1530
1530
  created: string;
1531
- proofPurpose: "assertionMethod";
1531
+ proofPurpose: string;
1532
1532
  verificationMethod: string;
1533
1533
  }>, z.ZodArray<z.ZodObject<{
1534
1534
  type: z.ZodString;
@@ -1536,7 +1536,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1536
1536
  challenge: z.ZodOptional<z.ZodString>;
1537
1537
  domain: z.ZodOptional<z.ZodString>;
1538
1538
  nonce: z.ZodOptional<z.ZodString>;
1539
- proofPurpose: z.ZodLiteral<"assertionMethod">;
1539
+ proofPurpose: z.ZodString;
1540
1540
  verificationMethod: z.ZodString;
1541
1541
  jws: z.ZodOptional<z.ZodString>;
1542
1542
  }, "strip", z.ZodAny, {
@@ -1547,7 +1547,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1547
1547
  jws?: string | undefined;
1548
1548
  type: string;
1549
1549
  created: string;
1550
- proofPurpose: "assertionMethod";
1550
+ proofPurpose: string;
1551
1551
  verificationMethod: string;
1552
1552
  }, {
1553
1553
  [x: string]: any;
@@ -1557,7 +1557,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1557
1557
  jws?: string | undefined;
1558
1558
  type: string;
1559
1559
  created: string;
1560
- proofPurpose: "assertionMethod";
1560
+ proofPurpose: string;
1561
1561
  verificationMethod: string;
1562
1562
  }>, "many">]>;
1563
1563
  }>, "strip", z.ZodAny, {
@@ -1581,6 +1581,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1581
1581
  '@context': string[];
1582
1582
  issuer: string | {
1583
1583
  [x: string]: any;
1584
+ type?: [string, ...string[]] | undefined;
1584
1585
  id?: string | undefined;
1585
1586
  name?: string | undefined;
1586
1587
  url?: string | undefined;
@@ -1623,7 +1624,6 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1623
1624
  honorificSuffix?: string | undefined;
1624
1625
  familyNamePrefix?: string | undefined;
1625
1626
  dateOfBirth?: string | undefined;
1626
- type: [string, ...string[]];
1627
1627
  };
1628
1628
  issuanceDate: string;
1629
1629
  credentialSubject: {
@@ -1641,7 +1641,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1641
1641
  jws?: string | undefined;
1642
1642
  type: string;
1643
1643
  created: string;
1644
- proofPurpose: "assertionMethod";
1644
+ proofPurpose: string;
1645
1645
  verificationMethod: string;
1646
1646
  } | {
1647
1647
  [x: string]: any;
@@ -1651,7 +1651,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1651
1651
  jws?: string | undefined;
1652
1652
  type: string;
1653
1653
  created: string;
1654
- proofPurpose: "assertionMethod";
1654
+ proofPurpose: string;
1655
1655
  verificationMethod: string;
1656
1656
  }[];
1657
1657
  }, {
@@ -1675,6 +1675,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1675
1675
  '@context': string[];
1676
1676
  issuer: string | {
1677
1677
  [x: string]: any;
1678
+ type?: [string, ...string[]] | undefined;
1678
1679
  id?: string | undefined;
1679
1680
  name?: string | undefined;
1680
1681
  url?: string | undefined;
@@ -1717,210 +1718,6 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1717
1718
  honorificSuffix?: string | undefined;
1718
1719
  familyNamePrefix?: string | undefined;
1719
1720
  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
1721
  };
1925
1722
  issuanceDate: string;
1926
1723
  credentialSubject: {
@@ -1938,7 +1735,7 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1938
1735
  jws?: string | undefined;
1939
1736
  type: string;
1940
1737
  created: string;
1941
- proofPurpose: "assertionMethod";
1738
+ proofPurpose: string;
1942
1739
  verificationMethod: string;
1943
1740
  } | {
1944
1741
  [x: string]: any;
@@ -1948,23 +1745,16 @@ export declare const UnsignedVPValidator: z.ZodObject<{
1948
1745
  jws?: string | undefined;
1949
1746
  type: string;
1950
1747
  created: string;
1951
- proofPurpose: "assertionMethod";
1748
+ proofPurpose: string;
1952
1749
  verificationMethod: string;
1953
1750
  }[];
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<{
1751
+ }>, z.ZodArray<z.ZodObject<z.extendShape<{
1962
1752
  '@context': z.ZodArray<z.ZodString, "many">;
1963
1753
  id: z.ZodOptional<z.ZodString>;
1964
1754
  type: z.ZodArray<z.ZodString, "atleastone">;
1965
1755
  issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
1966
1756
  id: z.ZodOptional<z.ZodString>;
1967
- type: z.ZodArray<z.ZodString, "atleastone">;
1757
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
1968
1758
  name: z.ZodOptional<z.ZodString>;
1969
1759
  url: z.ZodOptional<z.ZodString>;
1970
1760
  phone: z.ZodOptional<z.ZodString>;
@@ -2060,6 +1850,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2060
1850
  dateOfBirth: z.ZodOptional<z.ZodString>;
2061
1851
  }, "strip", z.ZodAny, {
2062
1852
  [x: string]: any;
1853
+ type?: [string, ...string[]] | undefined;
2063
1854
  id?: string | undefined;
2064
1855
  name?: string | undefined;
2065
1856
  url?: string | undefined;
@@ -2102,9 +1893,9 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2102
1893
  honorificSuffix?: string | undefined;
2103
1894
  familyNamePrefix?: string | undefined;
2104
1895
  dateOfBirth?: string | undefined;
2105
- type: [string, ...string[]];
2106
1896
  }, {
2107
1897
  [x: string]: any;
1898
+ type?: [string, ...string[]] | undefined;
2108
1899
  id?: string | undefined;
2109
1900
  name?: string | undefined;
2110
1901
  url?: string | undefined;
@@ -2147,7 +1938,6 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2147
1938
  honorificSuffix?: string | undefined;
2148
1939
  familyNamePrefix?: string | undefined;
2149
1940
  dateOfBirth?: string | undefined;
2150
- type: [string, ...string[]];
2151
1941
  }>]>;
2152
1942
  issuanceDate: z.ZodString;
2153
1943
  expirationDate: z.ZodOptional<z.ZodString>;
@@ -2207,7 +1997,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2207
1997
  challenge: z.ZodOptional<z.ZodString>;
2208
1998
  domain: z.ZodOptional<z.ZodString>;
2209
1999
  nonce: z.ZodOptional<z.ZodString>;
2210
- proofPurpose: z.ZodLiteral<"assertionMethod">;
2000
+ proofPurpose: z.ZodString;
2211
2001
  verificationMethod: z.ZodString;
2212
2002
  jws: z.ZodOptional<z.ZodString>;
2213
2003
  }, "strip", z.ZodAny, {
@@ -2218,7 +2008,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2218
2008
  jws?: string | undefined;
2219
2009
  type: string;
2220
2010
  created: string;
2221
- proofPurpose: "assertionMethod";
2011
+ proofPurpose: string;
2222
2012
  verificationMethod: string;
2223
2013
  }, {
2224
2014
  [x: string]: any;
@@ -2228,7 +2018,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2228
2018
  jws?: string | undefined;
2229
2019
  type: string;
2230
2020
  created: string;
2231
- proofPurpose: "assertionMethod";
2021
+ proofPurpose: string;
2232
2022
  verificationMethod: string;
2233
2023
  }>, z.ZodArray<z.ZodObject<{
2234
2024
  type: z.ZodString;
@@ -2236,7 +2026,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2236
2026
  challenge: z.ZodOptional<z.ZodString>;
2237
2027
  domain: z.ZodOptional<z.ZodString>;
2238
2028
  nonce: z.ZodOptional<z.ZodString>;
2239
- proofPurpose: z.ZodLiteral<"assertionMethod">;
2029
+ proofPurpose: z.ZodString;
2240
2030
  verificationMethod: z.ZodString;
2241
2031
  jws: z.ZodOptional<z.ZodString>;
2242
2032
  }, "strip", z.ZodAny, {
@@ -2247,7 +2037,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2247
2037
  jws?: string | undefined;
2248
2038
  type: string;
2249
2039
  created: string;
2250
- proofPurpose: "assertionMethod";
2040
+ proofPurpose: string;
2251
2041
  verificationMethod: string;
2252
2042
  }, {
2253
2043
  [x: string]: any;
@@ -2257,7 +2047,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2257
2047
  jws?: string | undefined;
2258
2048
  type: string;
2259
2049
  created: string;
2260
- proofPurpose: "assertionMethod";
2050
+ proofPurpose: string;
2261
2051
  verificationMethod: string;
2262
2052
  }>, "many">]>;
2263
2053
  }>, "strip", z.ZodAny, {
@@ -2281,6 +2071,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2281
2071
  '@context': string[];
2282
2072
  issuer: string | {
2283
2073
  [x: string]: any;
2074
+ type?: [string, ...string[]] | undefined;
2284
2075
  id?: string | undefined;
2285
2076
  name?: string | undefined;
2286
2077
  url?: string | undefined;
@@ -2323,7 +2114,6 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2323
2114
  honorificSuffix?: string | undefined;
2324
2115
  familyNamePrefix?: string | undefined;
2325
2116
  dateOfBirth?: string | undefined;
2326
- type: [string, ...string[]];
2327
2117
  };
2328
2118
  issuanceDate: string;
2329
2119
  credentialSubject: {
@@ -2341,7 +2131,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2341
2131
  jws?: string | undefined;
2342
2132
  type: string;
2343
2133
  created: string;
2344
- proofPurpose: "assertionMethod";
2134
+ proofPurpose: string;
2345
2135
  verificationMethod: string;
2346
2136
  } | {
2347
2137
  [x: string]: any;
@@ -2351,7 +2141,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2351
2141
  jws?: string | undefined;
2352
2142
  type: string;
2353
2143
  created: string;
2354
- proofPurpose: "assertionMethod";
2144
+ proofPurpose: string;
2355
2145
  verificationMethod: string;
2356
2146
  }[];
2357
2147
  }, {
@@ -2375,6 +2165,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2375
2165
  '@context': string[];
2376
2166
  issuer: string | {
2377
2167
  [x: string]: any;
2168
+ type?: [string, ...string[]] | undefined;
2378
2169
  id?: string | undefined;
2379
2170
  name?: string | undefined;
2380
2171
  url?: string | undefined;
@@ -2417,7 +2208,6 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2417
2208
  honorificSuffix?: string | undefined;
2418
2209
  familyNamePrefix?: string | undefined;
2419
2210
  dateOfBirth?: string | undefined;
2420
- type: [string, ...string[]];
2421
2211
  };
2422
2212
  issuanceDate: string;
2423
2213
  credentialSubject: {
@@ -2435,7 +2225,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2435
2225
  jws?: string | undefined;
2436
2226
  type: string;
2437
2227
  created: string;
2438
- proofPurpose: "assertionMethod";
2228
+ proofPurpose: string;
2439
2229
  verificationMethod: string;
2440
2230
  } | {
2441
2231
  [x: string]: any;
@@ -2445,40 +2235,1418 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2445
2235
  jws?: string | undefined;
2446
2236
  type: string;
2447
2237
  created: string;
2448
- proofPurpose: "assertionMethod";
2238
+ proofPurpose: string;
2449
2239
  verificationMethod: string;
2450
2240
  }[];
2451
- }>;
2241
+ }>, "many">]>;
2452
2242
  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
- }, {
2243
+ }, "strip", z.ZodAny, {
2244
+ [x: string]: any;
2245
+ id?: string | undefined;
2246
+ holder?: string | undefined;
2247
+ type: [string, ...string[]];
2248
+ '@context': string[];
2249
+ verifiableCredential: {
2474
2250
  [x: string]: any;
2475
- challenge?: string | undefined;
2251
+ id?: string | undefined;
2252
+ expirationDate?: string | undefined;
2253
+ credentialStatus?: {
2254
+ type: string;
2255
+ id: string;
2256
+ } | undefined;
2257
+ credentialSchema?: {
2258
+ type: string;
2259
+ id: string;
2260
+ }[] | undefined;
2261
+ refreshService?: {
2262
+ [x: string]: any;
2263
+ type: string;
2264
+ id: string;
2265
+ } | undefined;
2266
+ type: [string, ...string[]];
2267
+ '@context': string[];
2268
+ issuer: string | {
2269
+ [x: string]: any;
2270
+ type?: [string, ...string[]] | undefined;
2271
+ id?: string | undefined;
2272
+ name?: string | undefined;
2273
+ url?: string | undefined;
2274
+ phone?: string | undefined;
2275
+ description?: string | undefined;
2276
+ endorsement?: any[] | undefined;
2277
+ image?: string | {
2278
+ caption?: string | undefined;
2279
+ type: string;
2280
+ id: string;
2281
+ } | undefined;
2282
+ email?: string | undefined;
2283
+ address?: {
2284
+ addressCountry?: string | undefined;
2285
+ addressCountryCode?: string | undefined;
2286
+ addressRegion?: string | undefined;
2287
+ addressLocality?: string | undefined;
2288
+ streetAddress?: string | undefined;
2289
+ postOfficeBoxNumber?: string | undefined;
2290
+ postalCode?: string | undefined;
2291
+ geo?: {
2292
+ type: [string, ...string[]];
2293
+ latitude: number;
2294
+ longitude: number;
2295
+ } | undefined;
2296
+ type: [string, ...string[]];
2297
+ } | undefined;
2298
+ otherIdentifier?: {
2299
+ type: [string, ...string[]];
2300
+ identifier: string;
2301
+ identifierType: string;
2302
+ }[] | undefined;
2303
+ official?: string | undefined;
2304
+ parentOrg?: any;
2305
+ familyName?: string | undefined;
2306
+ givenName?: string | undefined;
2307
+ additionalName?: string | undefined;
2308
+ patronymicName?: string | undefined;
2309
+ honorificPrefix?: string | undefined;
2310
+ honorificSuffix?: string | undefined;
2311
+ familyNamePrefix?: string | undefined;
2312
+ dateOfBirth?: string | undefined;
2313
+ };
2314
+ issuanceDate: string;
2315
+ credentialSubject: {
2316
+ [x: string]: any;
2317
+ id?: string | undefined;
2318
+ } | {
2319
+ [x: string]: any;
2320
+ id?: string | undefined;
2321
+ }[];
2322
+ proof: {
2323
+ [x: string]: any;
2324
+ challenge?: string | undefined;
2325
+ domain?: string | undefined;
2326
+ nonce?: string | undefined;
2327
+ jws?: string | undefined;
2328
+ type: string;
2329
+ created: string;
2330
+ proofPurpose: string;
2331
+ verificationMethod: string;
2332
+ } | {
2333
+ [x: string]: any;
2334
+ challenge?: string | undefined;
2335
+ domain?: string | undefined;
2336
+ nonce?: string | undefined;
2337
+ jws?: string | undefined;
2338
+ type: string;
2339
+ created: string;
2340
+ proofPurpose: string;
2341
+ verificationMethod: string;
2342
+ }[];
2343
+ } | {
2344
+ [x: string]: any;
2345
+ id?: string | undefined;
2346
+ expirationDate?: string | undefined;
2347
+ credentialStatus?: {
2348
+ type: string;
2349
+ id: string;
2350
+ } | undefined;
2351
+ credentialSchema?: {
2352
+ type: string;
2353
+ id: string;
2354
+ }[] | undefined;
2355
+ refreshService?: {
2356
+ [x: string]: any;
2357
+ type: string;
2358
+ id: string;
2359
+ } | undefined;
2360
+ type: [string, ...string[]];
2361
+ '@context': string[];
2362
+ issuer: string | {
2363
+ [x: string]: any;
2364
+ type?: [string, ...string[]] | undefined;
2365
+ id?: string | undefined;
2366
+ name?: string | undefined;
2367
+ url?: string | undefined;
2368
+ phone?: string | undefined;
2369
+ description?: string | undefined;
2370
+ endorsement?: any[] | undefined;
2371
+ image?: string | {
2372
+ caption?: string | undefined;
2373
+ type: string;
2374
+ id: string;
2375
+ } | undefined;
2376
+ email?: string | undefined;
2377
+ address?: {
2378
+ addressCountry?: string | undefined;
2379
+ addressCountryCode?: string | undefined;
2380
+ addressRegion?: string | undefined;
2381
+ addressLocality?: string | undefined;
2382
+ streetAddress?: string | undefined;
2383
+ postOfficeBoxNumber?: string | undefined;
2384
+ postalCode?: string | undefined;
2385
+ geo?: {
2386
+ type: [string, ...string[]];
2387
+ latitude: number;
2388
+ longitude: number;
2389
+ } | undefined;
2390
+ type: [string, ...string[]];
2391
+ } | undefined;
2392
+ otherIdentifier?: {
2393
+ type: [string, ...string[]];
2394
+ identifier: string;
2395
+ identifierType: string;
2396
+ }[] | undefined;
2397
+ official?: string | undefined;
2398
+ parentOrg?: any;
2399
+ familyName?: string | undefined;
2400
+ givenName?: string | undefined;
2401
+ additionalName?: string | undefined;
2402
+ patronymicName?: string | undefined;
2403
+ honorificPrefix?: string | undefined;
2404
+ honorificSuffix?: string | undefined;
2405
+ familyNamePrefix?: string | undefined;
2406
+ dateOfBirth?: string | undefined;
2407
+ };
2408
+ issuanceDate: string;
2409
+ credentialSubject: {
2410
+ [x: string]: any;
2411
+ id?: string | undefined;
2412
+ } | {
2413
+ [x: string]: any;
2414
+ id?: string | undefined;
2415
+ }[];
2416
+ proof: {
2417
+ [x: string]: any;
2418
+ challenge?: string | undefined;
2419
+ domain?: string | undefined;
2420
+ nonce?: string | undefined;
2421
+ jws?: string | undefined;
2422
+ type: string;
2423
+ created: string;
2424
+ proofPurpose: string;
2425
+ verificationMethod: string;
2426
+ } | {
2427
+ [x: string]: any;
2428
+ challenge?: string | undefined;
2429
+ domain?: string | undefined;
2430
+ nonce?: string | undefined;
2431
+ jws?: string | undefined;
2432
+ type: string;
2433
+ created: string;
2434
+ proofPurpose: string;
2435
+ verificationMethod: string;
2436
+ }[];
2437
+ }[];
2438
+ }, {
2439
+ [x: string]: any;
2440
+ id?: string | undefined;
2441
+ holder?: string | undefined;
2442
+ type: [string, ...string[]];
2443
+ '@context': string[];
2444
+ verifiableCredential: {
2445
+ [x: string]: any;
2446
+ id?: string | undefined;
2447
+ expirationDate?: string | undefined;
2448
+ credentialStatus?: {
2449
+ type: string;
2450
+ id: string;
2451
+ } | undefined;
2452
+ credentialSchema?: {
2453
+ type: string;
2454
+ id: string;
2455
+ }[] | undefined;
2456
+ refreshService?: {
2457
+ [x: string]: any;
2458
+ type: string;
2459
+ id: string;
2460
+ } | undefined;
2461
+ type: [string, ...string[]];
2462
+ '@context': string[];
2463
+ issuer: string | {
2464
+ [x: string]: any;
2465
+ type?: [string, ...string[]] | undefined;
2466
+ id?: string | undefined;
2467
+ name?: string | undefined;
2468
+ url?: string | undefined;
2469
+ phone?: string | undefined;
2470
+ description?: string | undefined;
2471
+ endorsement?: any[] | undefined;
2472
+ image?: string | {
2473
+ caption?: string | undefined;
2474
+ type: string;
2475
+ id: string;
2476
+ } | undefined;
2477
+ email?: string | undefined;
2478
+ address?: {
2479
+ addressCountry?: string | undefined;
2480
+ addressCountryCode?: string | undefined;
2481
+ addressRegion?: string | undefined;
2482
+ addressLocality?: string | undefined;
2483
+ streetAddress?: string | undefined;
2484
+ postOfficeBoxNumber?: string | undefined;
2485
+ postalCode?: string | undefined;
2486
+ geo?: {
2487
+ type: [string, ...string[]];
2488
+ latitude: number;
2489
+ longitude: number;
2490
+ } | undefined;
2491
+ type: [string, ...string[]];
2492
+ } | undefined;
2493
+ otherIdentifier?: {
2494
+ type: [string, ...string[]];
2495
+ identifier: string;
2496
+ identifierType: string;
2497
+ }[] | undefined;
2498
+ official?: string | undefined;
2499
+ parentOrg?: any;
2500
+ familyName?: string | undefined;
2501
+ givenName?: string | undefined;
2502
+ additionalName?: string | undefined;
2503
+ patronymicName?: string | undefined;
2504
+ honorificPrefix?: string | undefined;
2505
+ honorificSuffix?: string | undefined;
2506
+ familyNamePrefix?: string | undefined;
2507
+ dateOfBirth?: string | undefined;
2508
+ };
2509
+ issuanceDate: string;
2510
+ credentialSubject: {
2511
+ [x: string]: any;
2512
+ id?: string | undefined;
2513
+ } | {
2514
+ [x: string]: any;
2515
+ id?: string | undefined;
2516
+ }[];
2517
+ proof: {
2518
+ [x: string]: any;
2519
+ challenge?: string | undefined;
2520
+ domain?: string | undefined;
2521
+ nonce?: string | undefined;
2522
+ jws?: string | undefined;
2523
+ type: string;
2524
+ created: string;
2525
+ proofPurpose: string;
2526
+ verificationMethod: string;
2527
+ } | {
2528
+ [x: string]: any;
2529
+ challenge?: string | undefined;
2530
+ domain?: string | undefined;
2531
+ nonce?: string | undefined;
2532
+ jws?: string | undefined;
2533
+ type: string;
2534
+ created: string;
2535
+ proofPurpose: string;
2536
+ verificationMethod: string;
2537
+ }[];
2538
+ } | {
2539
+ [x: string]: any;
2540
+ id?: string | undefined;
2541
+ expirationDate?: string | undefined;
2542
+ credentialStatus?: {
2543
+ type: string;
2544
+ id: string;
2545
+ } | undefined;
2546
+ credentialSchema?: {
2547
+ type: string;
2548
+ id: string;
2549
+ }[] | undefined;
2550
+ refreshService?: {
2551
+ [x: string]: any;
2552
+ type: string;
2553
+ id: string;
2554
+ } | undefined;
2555
+ type: [string, ...string[]];
2556
+ '@context': string[];
2557
+ issuer: string | {
2558
+ [x: string]: any;
2559
+ type?: [string, ...string[]] | undefined;
2560
+ id?: string | undefined;
2561
+ name?: string | undefined;
2562
+ url?: string | undefined;
2563
+ phone?: string | undefined;
2564
+ description?: string | undefined;
2565
+ endorsement?: any[] | undefined;
2566
+ image?: string | {
2567
+ caption?: string | undefined;
2568
+ type: string;
2569
+ id: string;
2570
+ } | undefined;
2571
+ email?: string | undefined;
2572
+ address?: {
2573
+ addressCountry?: string | undefined;
2574
+ addressCountryCode?: string | undefined;
2575
+ addressRegion?: string | undefined;
2576
+ addressLocality?: string | undefined;
2577
+ streetAddress?: string | undefined;
2578
+ postOfficeBoxNumber?: string | undefined;
2579
+ postalCode?: string | undefined;
2580
+ geo?: {
2581
+ type: [string, ...string[]];
2582
+ latitude: number;
2583
+ longitude: number;
2584
+ } | undefined;
2585
+ type: [string, ...string[]];
2586
+ } | undefined;
2587
+ otherIdentifier?: {
2588
+ type: [string, ...string[]];
2589
+ identifier: string;
2590
+ identifierType: string;
2591
+ }[] | undefined;
2592
+ official?: string | undefined;
2593
+ parentOrg?: any;
2594
+ familyName?: string | undefined;
2595
+ givenName?: string | undefined;
2596
+ additionalName?: string | undefined;
2597
+ patronymicName?: string | undefined;
2598
+ honorificPrefix?: string | undefined;
2599
+ honorificSuffix?: string | undefined;
2600
+ familyNamePrefix?: string | undefined;
2601
+ dateOfBirth?: string | undefined;
2602
+ };
2603
+ issuanceDate: string;
2604
+ credentialSubject: {
2605
+ [x: string]: any;
2606
+ id?: string | undefined;
2607
+ } | {
2608
+ [x: string]: any;
2609
+ id?: string | undefined;
2610
+ }[];
2611
+ proof: {
2612
+ [x: string]: any;
2613
+ challenge?: string | undefined;
2614
+ domain?: string | undefined;
2615
+ nonce?: string | undefined;
2616
+ jws?: string | undefined;
2617
+ type: string;
2618
+ created: string;
2619
+ proofPurpose: string;
2620
+ verificationMethod: string;
2621
+ } | {
2622
+ [x: string]: any;
2623
+ challenge?: string | undefined;
2624
+ domain?: string | undefined;
2625
+ nonce?: string | undefined;
2626
+ jws?: string | undefined;
2627
+ type: string;
2628
+ created: string;
2629
+ proofPurpose: string;
2630
+ verificationMethod: string;
2631
+ }[];
2632
+ }[];
2633
+ }>;
2634
+ export declare type UnsignedVP = z.infer<typeof UnsignedVPValidator>;
2635
+ export declare const VPValidator: z.ZodObject<z.extendShape<{
2636
+ '@context': z.ZodArray<z.ZodString, "many">;
2637
+ id: z.ZodOptional<z.ZodString>;
2638
+ type: z.ZodArray<z.ZodString, "atleastone">;
2639
+ verifiableCredential: z.ZodUnion<[z.ZodObject<z.extendShape<{
2640
+ '@context': z.ZodArray<z.ZodString, "many">;
2641
+ id: z.ZodOptional<z.ZodString>;
2642
+ type: z.ZodArray<z.ZodString, "atleastone">;
2643
+ issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
2644
+ id: z.ZodOptional<z.ZodString>;
2645
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
2646
+ name: z.ZodOptional<z.ZodString>;
2647
+ url: z.ZodOptional<z.ZodString>;
2648
+ phone: z.ZodOptional<z.ZodString>;
2649
+ description: z.ZodOptional<z.ZodString>;
2650
+ endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2651
+ image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2652
+ id: z.ZodString;
2653
+ type: z.ZodString;
2654
+ caption: z.ZodOptional<z.ZodString>;
2655
+ }, "strip", z.ZodTypeAny, {
2656
+ caption?: string | undefined;
2657
+ type: string;
2658
+ id: string;
2659
+ }, {
2660
+ caption?: string | undefined;
2661
+ type: string;
2662
+ id: string;
2663
+ }>]>>;
2664
+ email: z.ZodOptional<z.ZodString>;
2665
+ address: z.ZodOptional<z.ZodObject<{
2666
+ type: z.ZodArray<z.ZodString, "atleastone">;
2667
+ addressCountry: z.ZodOptional<z.ZodString>;
2668
+ addressCountryCode: z.ZodOptional<z.ZodString>;
2669
+ addressRegion: z.ZodOptional<z.ZodString>;
2670
+ addressLocality: z.ZodOptional<z.ZodString>;
2671
+ streetAddress: z.ZodOptional<z.ZodString>;
2672
+ postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
2673
+ postalCode: z.ZodOptional<z.ZodString>;
2674
+ geo: z.ZodOptional<z.ZodObject<{
2675
+ type: z.ZodArray<z.ZodString, "atleastone">;
2676
+ latitude: z.ZodNumber;
2677
+ longitude: z.ZodNumber;
2678
+ }, "strip", z.ZodTypeAny, {
2679
+ type: [string, ...string[]];
2680
+ latitude: number;
2681
+ longitude: number;
2682
+ }, {
2683
+ type: [string, ...string[]];
2684
+ latitude: number;
2685
+ longitude: number;
2686
+ }>>;
2687
+ }, "strip", z.ZodTypeAny, {
2688
+ addressCountry?: string | undefined;
2689
+ addressCountryCode?: string | undefined;
2690
+ addressRegion?: string | undefined;
2691
+ addressLocality?: string | undefined;
2692
+ streetAddress?: string | undefined;
2693
+ postOfficeBoxNumber?: string | undefined;
2694
+ postalCode?: string | undefined;
2695
+ geo?: {
2696
+ type: [string, ...string[]];
2697
+ latitude: number;
2698
+ longitude: number;
2699
+ } | undefined;
2700
+ type: [string, ...string[]];
2701
+ }, {
2702
+ addressCountry?: string | undefined;
2703
+ addressCountryCode?: string | undefined;
2704
+ addressRegion?: string | undefined;
2705
+ addressLocality?: string | undefined;
2706
+ streetAddress?: string | undefined;
2707
+ postOfficeBoxNumber?: string | undefined;
2708
+ postalCode?: string | undefined;
2709
+ geo?: {
2710
+ type: [string, ...string[]];
2711
+ latitude: number;
2712
+ longitude: number;
2713
+ } | undefined;
2714
+ type: [string, ...string[]];
2715
+ }>>;
2716
+ otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
2717
+ type: z.ZodArray<z.ZodString, "atleastone">;
2718
+ identifier: z.ZodString;
2719
+ 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]>;
2720
+ }, "strip", z.ZodTypeAny, {
2721
+ type: [string, ...string[]];
2722
+ identifier: string;
2723
+ identifierType: string;
2724
+ }, {
2725
+ type: [string, ...string[]];
2726
+ identifier: string;
2727
+ identifierType: string;
2728
+ }>, "many">>;
2729
+ official: z.ZodOptional<z.ZodString>;
2730
+ parentOrg: z.ZodOptional<z.ZodAny>;
2731
+ familyName: z.ZodOptional<z.ZodString>;
2732
+ givenName: z.ZodOptional<z.ZodString>;
2733
+ additionalName: z.ZodOptional<z.ZodString>;
2734
+ patronymicName: z.ZodOptional<z.ZodString>;
2735
+ honorificPrefix: z.ZodOptional<z.ZodString>;
2736
+ honorificSuffix: z.ZodOptional<z.ZodString>;
2737
+ familyNamePrefix: z.ZodOptional<z.ZodString>;
2738
+ dateOfBirth: z.ZodOptional<z.ZodString>;
2739
+ }, "strip", z.ZodAny, {
2740
+ [x: string]: any;
2741
+ type?: [string, ...string[]] | undefined;
2742
+ id?: string | undefined;
2743
+ name?: string | undefined;
2744
+ url?: string | undefined;
2745
+ phone?: string | undefined;
2746
+ description?: string | undefined;
2747
+ endorsement?: any[] | undefined;
2748
+ image?: string | {
2749
+ caption?: string | undefined;
2750
+ type: string;
2751
+ id: string;
2752
+ } | undefined;
2753
+ email?: string | undefined;
2754
+ address?: {
2755
+ addressCountry?: string | undefined;
2756
+ addressCountryCode?: string | undefined;
2757
+ addressRegion?: string | undefined;
2758
+ addressLocality?: string | undefined;
2759
+ streetAddress?: string | undefined;
2760
+ postOfficeBoxNumber?: string | undefined;
2761
+ postalCode?: string | undefined;
2762
+ geo?: {
2763
+ type: [string, ...string[]];
2764
+ latitude: number;
2765
+ longitude: number;
2766
+ } | undefined;
2767
+ type: [string, ...string[]];
2768
+ } | undefined;
2769
+ otherIdentifier?: {
2770
+ type: [string, ...string[]];
2771
+ identifier: string;
2772
+ identifierType: string;
2773
+ }[] | undefined;
2774
+ official?: string | undefined;
2775
+ parentOrg?: any;
2776
+ familyName?: string | undefined;
2777
+ givenName?: string | undefined;
2778
+ additionalName?: string | undefined;
2779
+ patronymicName?: string | undefined;
2780
+ honorificPrefix?: string | undefined;
2781
+ honorificSuffix?: string | undefined;
2782
+ familyNamePrefix?: string | undefined;
2783
+ dateOfBirth?: string | undefined;
2784
+ }, {
2785
+ [x: string]: any;
2786
+ type?: [string, ...string[]] | undefined;
2787
+ id?: string | undefined;
2788
+ name?: string | undefined;
2789
+ url?: string | undefined;
2790
+ phone?: string | undefined;
2791
+ description?: string | undefined;
2792
+ endorsement?: any[] | undefined;
2793
+ image?: string | {
2794
+ caption?: string | undefined;
2795
+ type: string;
2796
+ id: string;
2797
+ } | undefined;
2798
+ email?: string | undefined;
2799
+ address?: {
2800
+ addressCountry?: string | undefined;
2801
+ addressCountryCode?: string | undefined;
2802
+ addressRegion?: string | undefined;
2803
+ addressLocality?: string | undefined;
2804
+ streetAddress?: string | undefined;
2805
+ postOfficeBoxNumber?: string | undefined;
2806
+ postalCode?: string | undefined;
2807
+ geo?: {
2808
+ type: [string, ...string[]];
2809
+ latitude: number;
2810
+ longitude: number;
2811
+ } | undefined;
2812
+ type: [string, ...string[]];
2813
+ } | undefined;
2814
+ otherIdentifier?: {
2815
+ type: [string, ...string[]];
2816
+ identifier: string;
2817
+ identifierType: string;
2818
+ }[] | undefined;
2819
+ official?: string | undefined;
2820
+ parentOrg?: any;
2821
+ familyName?: string | undefined;
2822
+ givenName?: string | undefined;
2823
+ additionalName?: string | undefined;
2824
+ patronymicName?: string | undefined;
2825
+ honorificPrefix?: string | undefined;
2826
+ honorificSuffix?: string | undefined;
2827
+ familyNamePrefix?: string | undefined;
2828
+ dateOfBirth?: string | undefined;
2829
+ }>]>;
2830
+ issuanceDate: z.ZodString;
2831
+ expirationDate: z.ZodOptional<z.ZodString>;
2832
+ credentialSubject: z.ZodUnion<[z.ZodObject<{
2833
+ id: z.ZodOptional<z.ZodString>;
2834
+ }, "strip", z.ZodAny, {
2835
+ [x: string]: any;
2836
+ id?: string | undefined;
2837
+ }, {
2838
+ [x: string]: any;
2839
+ id?: string | undefined;
2840
+ }>, z.ZodArray<z.ZodObject<{
2841
+ id: z.ZodOptional<z.ZodString>;
2842
+ }, "strip", z.ZodAny, {
2843
+ [x: string]: any;
2844
+ id?: string | undefined;
2845
+ }, {
2846
+ [x: string]: any;
2847
+ id?: string | undefined;
2848
+ }>, "many">]>;
2849
+ credentialStatus: z.ZodOptional<z.ZodObject<{
2850
+ type: z.ZodString;
2851
+ id: z.ZodString;
2852
+ }, "strip", z.ZodTypeAny, {
2853
+ type: string;
2854
+ id: string;
2855
+ }, {
2856
+ type: string;
2857
+ id: string;
2858
+ }>>;
2859
+ credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
2860
+ id: z.ZodString;
2861
+ type: z.ZodString;
2862
+ }, "strip", z.ZodTypeAny, {
2863
+ type: string;
2864
+ id: string;
2865
+ }, {
2866
+ type: string;
2867
+ id: string;
2868
+ }>, "many">>;
2869
+ refreshService: z.ZodOptional<z.ZodObject<{
2870
+ id: z.ZodString;
2871
+ type: z.ZodString;
2872
+ }, "strip", z.ZodAny, {
2873
+ [x: string]: any;
2874
+ type: string;
2875
+ id: string;
2876
+ }, {
2877
+ [x: string]: any;
2878
+ type: string;
2879
+ id: string;
2880
+ }>>;
2881
+ }, {
2882
+ proof: z.ZodUnion<[z.ZodObject<{
2883
+ type: z.ZodString;
2884
+ created: z.ZodString;
2885
+ challenge: z.ZodOptional<z.ZodString>;
2886
+ domain: z.ZodOptional<z.ZodString>;
2887
+ nonce: z.ZodOptional<z.ZodString>;
2888
+ proofPurpose: z.ZodString;
2889
+ verificationMethod: z.ZodString;
2890
+ jws: z.ZodOptional<z.ZodString>;
2891
+ }, "strip", z.ZodAny, {
2892
+ [x: string]: any;
2893
+ challenge?: string | undefined;
2894
+ domain?: string | undefined;
2895
+ nonce?: string | undefined;
2896
+ jws?: string | undefined;
2897
+ type: string;
2898
+ created: string;
2899
+ proofPurpose: string;
2900
+ verificationMethod: string;
2901
+ }, {
2902
+ [x: string]: any;
2903
+ challenge?: string | undefined;
2904
+ domain?: string | undefined;
2905
+ nonce?: string | undefined;
2906
+ jws?: string | undefined;
2907
+ type: string;
2908
+ created: string;
2909
+ proofPurpose: string;
2910
+ verificationMethod: string;
2911
+ }>, z.ZodArray<z.ZodObject<{
2912
+ type: z.ZodString;
2913
+ created: z.ZodString;
2914
+ challenge: z.ZodOptional<z.ZodString>;
2915
+ domain: z.ZodOptional<z.ZodString>;
2916
+ nonce: z.ZodOptional<z.ZodString>;
2917
+ proofPurpose: z.ZodString;
2918
+ verificationMethod: z.ZodString;
2919
+ jws: z.ZodOptional<z.ZodString>;
2920
+ }, "strip", z.ZodAny, {
2921
+ [x: string]: any;
2922
+ challenge?: string | undefined;
2923
+ domain?: string | undefined;
2924
+ nonce?: string | undefined;
2925
+ jws?: string | undefined;
2926
+ type: string;
2927
+ created: string;
2928
+ proofPurpose: string;
2929
+ verificationMethod: string;
2930
+ }, {
2931
+ [x: string]: any;
2932
+ challenge?: string | undefined;
2933
+ domain?: string | undefined;
2934
+ nonce?: string | undefined;
2935
+ jws?: string | undefined;
2936
+ type: string;
2937
+ created: string;
2938
+ proofPurpose: string;
2939
+ verificationMethod: string;
2940
+ }>, "many">]>;
2941
+ }>, "strip", z.ZodAny, {
2942
+ [x: string]: any;
2943
+ id?: string | undefined;
2944
+ expirationDate?: string | undefined;
2945
+ credentialStatus?: {
2946
+ type: string;
2947
+ id: string;
2948
+ } | undefined;
2949
+ credentialSchema?: {
2950
+ type: string;
2951
+ id: string;
2952
+ }[] | undefined;
2953
+ refreshService?: {
2954
+ [x: string]: any;
2955
+ type: string;
2956
+ id: string;
2957
+ } | undefined;
2958
+ type: [string, ...string[]];
2959
+ '@context': string[];
2960
+ issuer: string | {
2961
+ [x: string]: any;
2962
+ type?: [string, ...string[]] | undefined;
2963
+ id?: string | undefined;
2964
+ name?: string | undefined;
2965
+ url?: string | undefined;
2966
+ phone?: string | undefined;
2967
+ description?: string | undefined;
2968
+ endorsement?: any[] | undefined;
2969
+ image?: string | {
2970
+ caption?: string | undefined;
2971
+ type: string;
2972
+ id: string;
2973
+ } | undefined;
2974
+ email?: string | undefined;
2975
+ address?: {
2976
+ addressCountry?: string | undefined;
2977
+ addressCountryCode?: string | undefined;
2978
+ addressRegion?: string | undefined;
2979
+ addressLocality?: string | undefined;
2980
+ streetAddress?: string | undefined;
2981
+ postOfficeBoxNumber?: string | undefined;
2982
+ postalCode?: string | undefined;
2983
+ geo?: {
2984
+ type: [string, ...string[]];
2985
+ latitude: number;
2986
+ longitude: number;
2987
+ } | undefined;
2988
+ type: [string, ...string[]];
2989
+ } | undefined;
2990
+ otherIdentifier?: {
2991
+ type: [string, ...string[]];
2992
+ identifier: string;
2993
+ identifierType: string;
2994
+ }[] | undefined;
2995
+ official?: string | undefined;
2996
+ parentOrg?: any;
2997
+ familyName?: string | undefined;
2998
+ givenName?: string | undefined;
2999
+ additionalName?: string | undefined;
3000
+ patronymicName?: string | undefined;
3001
+ honorificPrefix?: string | undefined;
3002
+ honorificSuffix?: string | undefined;
3003
+ familyNamePrefix?: string | undefined;
3004
+ dateOfBirth?: string | undefined;
3005
+ };
3006
+ issuanceDate: string;
3007
+ credentialSubject: {
3008
+ [x: string]: any;
3009
+ id?: string | undefined;
3010
+ } | {
3011
+ [x: string]: any;
3012
+ id?: string | undefined;
3013
+ }[];
3014
+ proof: {
3015
+ [x: string]: any;
3016
+ challenge?: string | undefined;
3017
+ domain?: string | undefined;
3018
+ nonce?: string | undefined;
3019
+ jws?: string | undefined;
3020
+ type: string;
3021
+ created: string;
3022
+ proofPurpose: string;
3023
+ verificationMethod: string;
3024
+ } | {
3025
+ [x: string]: any;
3026
+ challenge?: string | undefined;
3027
+ domain?: string | undefined;
3028
+ nonce?: string | undefined;
3029
+ jws?: string | undefined;
3030
+ type: string;
3031
+ created: string;
3032
+ proofPurpose: string;
3033
+ verificationMethod: string;
3034
+ }[];
3035
+ }, {
3036
+ [x: string]: any;
3037
+ id?: string | undefined;
3038
+ expirationDate?: string | undefined;
3039
+ credentialStatus?: {
3040
+ type: string;
3041
+ id: string;
3042
+ } | undefined;
3043
+ credentialSchema?: {
3044
+ type: string;
3045
+ id: string;
3046
+ }[] | undefined;
3047
+ refreshService?: {
3048
+ [x: string]: any;
3049
+ type: string;
3050
+ id: string;
3051
+ } | undefined;
3052
+ type: [string, ...string[]];
3053
+ '@context': string[];
3054
+ issuer: string | {
3055
+ [x: string]: any;
3056
+ type?: [string, ...string[]] | undefined;
3057
+ id?: string | undefined;
3058
+ name?: string | undefined;
3059
+ url?: string | undefined;
3060
+ phone?: string | undefined;
3061
+ description?: string | undefined;
3062
+ endorsement?: any[] | undefined;
3063
+ image?: string | {
3064
+ caption?: string | undefined;
3065
+ type: string;
3066
+ id: string;
3067
+ } | undefined;
3068
+ email?: string | undefined;
3069
+ address?: {
3070
+ addressCountry?: string | undefined;
3071
+ addressCountryCode?: string | undefined;
3072
+ addressRegion?: string | undefined;
3073
+ addressLocality?: string | undefined;
3074
+ streetAddress?: string | undefined;
3075
+ postOfficeBoxNumber?: string | undefined;
3076
+ postalCode?: string | undefined;
3077
+ geo?: {
3078
+ type: [string, ...string[]];
3079
+ latitude: number;
3080
+ longitude: number;
3081
+ } | undefined;
3082
+ type: [string, ...string[]];
3083
+ } | undefined;
3084
+ otherIdentifier?: {
3085
+ type: [string, ...string[]];
3086
+ identifier: string;
3087
+ identifierType: string;
3088
+ }[] | undefined;
3089
+ official?: string | undefined;
3090
+ parentOrg?: any;
3091
+ familyName?: string | undefined;
3092
+ givenName?: string | undefined;
3093
+ additionalName?: string | undefined;
3094
+ patronymicName?: string | undefined;
3095
+ honorificPrefix?: string | undefined;
3096
+ honorificSuffix?: string | undefined;
3097
+ familyNamePrefix?: string | undefined;
3098
+ dateOfBirth?: string | undefined;
3099
+ };
3100
+ issuanceDate: string;
3101
+ credentialSubject: {
3102
+ [x: string]: any;
3103
+ id?: string | undefined;
3104
+ } | {
3105
+ [x: string]: any;
3106
+ id?: string | undefined;
3107
+ }[];
3108
+ proof: {
3109
+ [x: string]: any;
3110
+ challenge?: string | undefined;
3111
+ domain?: string | undefined;
3112
+ nonce?: string | undefined;
3113
+ jws?: string | undefined;
3114
+ type: string;
3115
+ created: string;
3116
+ proofPurpose: string;
3117
+ verificationMethod: string;
3118
+ } | {
3119
+ [x: string]: any;
3120
+ challenge?: string | undefined;
3121
+ domain?: string | undefined;
3122
+ nonce?: string | undefined;
3123
+ jws?: string | undefined;
3124
+ type: string;
3125
+ created: string;
3126
+ proofPurpose: string;
3127
+ verificationMethod: string;
3128
+ }[];
3129
+ }>, z.ZodArray<z.ZodObject<z.extendShape<{
3130
+ '@context': z.ZodArray<z.ZodString, "many">;
3131
+ id: z.ZodOptional<z.ZodString>;
3132
+ type: z.ZodArray<z.ZodString, "atleastone">;
3133
+ issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
3134
+ id: z.ZodOptional<z.ZodString>;
3135
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
3136
+ name: z.ZodOptional<z.ZodString>;
3137
+ url: z.ZodOptional<z.ZodString>;
3138
+ phone: z.ZodOptional<z.ZodString>;
3139
+ description: z.ZodOptional<z.ZodString>;
3140
+ endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
3141
+ image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
3142
+ id: z.ZodString;
3143
+ type: z.ZodString;
3144
+ caption: z.ZodOptional<z.ZodString>;
3145
+ }, "strip", z.ZodTypeAny, {
3146
+ caption?: string | undefined;
3147
+ type: string;
3148
+ id: string;
3149
+ }, {
3150
+ caption?: string | undefined;
3151
+ type: string;
3152
+ id: string;
3153
+ }>]>>;
3154
+ email: z.ZodOptional<z.ZodString>;
3155
+ address: z.ZodOptional<z.ZodObject<{
3156
+ type: z.ZodArray<z.ZodString, "atleastone">;
3157
+ addressCountry: z.ZodOptional<z.ZodString>;
3158
+ addressCountryCode: z.ZodOptional<z.ZodString>;
3159
+ addressRegion: z.ZodOptional<z.ZodString>;
3160
+ addressLocality: z.ZodOptional<z.ZodString>;
3161
+ streetAddress: z.ZodOptional<z.ZodString>;
3162
+ postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
3163
+ postalCode: z.ZodOptional<z.ZodString>;
3164
+ geo: z.ZodOptional<z.ZodObject<{
3165
+ type: z.ZodArray<z.ZodString, "atleastone">;
3166
+ latitude: z.ZodNumber;
3167
+ longitude: z.ZodNumber;
3168
+ }, "strip", z.ZodTypeAny, {
3169
+ type: [string, ...string[]];
3170
+ latitude: number;
3171
+ longitude: number;
3172
+ }, {
3173
+ type: [string, ...string[]];
3174
+ latitude: number;
3175
+ longitude: number;
3176
+ }>>;
3177
+ }, "strip", z.ZodTypeAny, {
3178
+ addressCountry?: string | undefined;
3179
+ addressCountryCode?: string | undefined;
3180
+ addressRegion?: string | undefined;
3181
+ addressLocality?: string | undefined;
3182
+ streetAddress?: string | undefined;
3183
+ postOfficeBoxNumber?: string | undefined;
3184
+ postalCode?: string | undefined;
3185
+ geo?: {
3186
+ type: [string, ...string[]];
3187
+ latitude: number;
3188
+ longitude: number;
3189
+ } | undefined;
3190
+ type: [string, ...string[]];
3191
+ }, {
3192
+ addressCountry?: string | undefined;
3193
+ addressCountryCode?: string | undefined;
3194
+ addressRegion?: string | undefined;
3195
+ addressLocality?: string | undefined;
3196
+ streetAddress?: string | undefined;
3197
+ postOfficeBoxNumber?: string | undefined;
3198
+ postalCode?: string | undefined;
3199
+ geo?: {
3200
+ type: [string, ...string[]];
3201
+ latitude: number;
3202
+ longitude: number;
3203
+ } | undefined;
3204
+ type: [string, ...string[]];
3205
+ }>>;
3206
+ otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
3207
+ type: z.ZodArray<z.ZodString, "atleastone">;
3208
+ identifier: z.ZodString;
3209
+ 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]>;
3210
+ }, "strip", z.ZodTypeAny, {
3211
+ type: [string, ...string[]];
3212
+ identifier: string;
3213
+ identifierType: string;
3214
+ }, {
3215
+ type: [string, ...string[]];
3216
+ identifier: string;
3217
+ identifierType: string;
3218
+ }>, "many">>;
3219
+ official: z.ZodOptional<z.ZodString>;
3220
+ parentOrg: z.ZodOptional<z.ZodAny>;
3221
+ familyName: z.ZodOptional<z.ZodString>;
3222
+ givenName: z.ZodOptional<z.ZodString>;
3223
+ additionalName: z.ZodOptional<z.ZodString>;
3224
+ patronymicName: z.ZodOptional<z.ZodString>;
3225
+ honorificPrefix: z.ZodOptional<z.ZodString>;
3226
+ honorificSuffix: z.ZodOptional<z.ZodString>;
3227
+ familyNamePrefix: z.ZodOptional<z.ZodString>;
3228
+ dateOfBirth: z.ZodOptional<z.ZodString>;
3229
+ }, "strip", z.ZodAny, {
3230
+ [x: string]: any;
3231
+ type?: [string, ...string[]] | undefined;
3232
+ id?: string | undefined;
3233
+ name?: string | undefined;
3234
+ url?: string | undefined;
3235
+ phone?: string | undefined;
3236
+ description?: string | undefined;
3237
+ endorsement?: any[] | undefined;
3238
+ image?: string | {
3239
+ caption?: string | undefined;
3240
+ type: string;
3241
+ id: string;
3242
+ } | undefined;
3243
+ email?: string | undefined;
3244
+ address?: {
3245
+ addressCountry?: string | undefined;
3246
+ addressCountryCode?: string | undefined;
3247
+ addressRegion?: string | undefined;
3248
+ addressLocality?: string | undefined;
3249
+ streetAddress?: string | undefined;
3250
+ postOfficeBoxNumber?: string | undefined;
3251
+ postalCode?: string | undefined;
3252
+ geo?: {
3253
+ type: [string, ...string[]];
3254
+ latitude: number;
3255
+ longitude: number;
3256
+ } | undefined;
3257
+ type: [string, ...string[]];
3258
+ } | undefined;
3259
+ otherIdentifier?: {
3260
+ type: [string, ...string[]];
3261
+ identifier: string;
3262
+ identifierType: string;
3263
+ }[] | undefined;
3264
+ official?: string | undefined;
3265
+ parentOrg?: any;
3266
+ familyName?: string | undefined;
3267
+ givenName?: string | undefined;
3268
+ additionalName?: string | undefined;
3269
+ patronymicName?: string | undefined;
3270
+ honorificPrefix?: string | undefined;
3271
+ honorificSuffix?: string | undefined;
3272
+ familyNamePrefix?: string | undefined;
3273
+ dateOfBirth?: string | undefined;
3274
+ }, {
3275
+ [x: string]: any;
3276
+ type?: [string, ...string[]] | undefined;
3277
+ id?: string | undefined;
3278
+ name?: string | undefined;
3279
+ url?: string | undefined;
3280
+ phone?: string | undefined;
3281
+ description?: string | undefined;
3282
+ endorsement?: any[] | undefined;
3283
+ image?: string | {
3284
+ caption?: string | undefined;
3285
+ type: string;
3286
+ id: string;
3287
+ } | undefined;
3288
+ email?: string | undefined;
3289
+ address?: {
3290
+ addressCountry?: string | undefined;
3291
+ addressCountryCode?: string | undefined;
3292
+ addressRegion?: string | undefined;
3293
+ addressLocality?: string | undefined;
3294
+ streetAddress?: string | undefined;
3295
+ postOfficeBoxNumber?: string | undefined;
3296
+ postalCode?: string | undefined;
3297
+ geo?: {
3298
+ type: [string, ...string[]];
3299
+ latitude: number;
3300
+ longitude: number;
3301
+ } | undefined;
3302
+ type: [string, ...string[]];
3303
+ } | undefined;
3304
+ otherIdentifier?: {
3305
+ type: [string, ...string[]];
3306
+ identifier: string;
3307
+ identifierType: string;
3308
+ }[] | undefined;
3309
+ official?: string | undefined;
3310
+ parentOrg?: any;
3311
+ familyName?: string | undefined;
3312
+ givenName?: string | undefined;
3313
+ additionalName?: string | undefined;
3314
+ patronymicName?: string | undefined;
3315
+ honorificPrefix?: string | undefined;
3316
+ honorificSuffix?: string | undefined;
3317
+ familyNamePrefix?: string | undefined;
3318
+ dateOfBirth?: string | undefined;
3319
+ }>]>;
3320
+ issuanceDate: z.ZodString;
3321
+ expirationDate: z.ZodOptional<z.ZodString>;
3322
+ credentialSubject: z.ZodUnion<[z.ZodObject<{
3323
+ id: z.ZodOptional<z.ZodString>;
3324
+ }, "strip", z.ZodAny, {
3325
+ [x: string]: any;
3326
+ id?: string | undefined;
3327
+ }, {
3328
+ [x: string]: any;
3329
+ id?: string | undefined;
3330
+ }>, z.ZodArray<z.ZodObject<{
3331
+ id: z.ZodOptional<z.ZodString>;
3332
+ }, "strip", z.ZodAny, {
3333
+ [x: string]: any;
3334
+ id?: string | undefined;
3335
+ }, {
3336
+ [x: string]: any;
3337
+ id?: string | undefined;
3338
+ }>, "many">]>;
3339
+ credentialStatus: z.ZodOptional<z.ZodObject<{
3340
+ type: z.ZodString;
3341
+ id: z.ZodString;
3342
+ }, "strip", z.ZodTypeAny, {
3343
+ type: string;
3344
+ id: string;
3345
+ }, {
3346
+ type: string;
3347
+ id: string;
3348
+ }>>;
3349
+ credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
3350
+ id: z.ZodString;
3351
+ type: z.ZodString;
3352
+ }, "strip", z.ZodTypeAny, {
3353
+ type: string;
3354
+ id: string;
3355
+ }, {
3356
+ type: string;
3357
+ id: string;
3358
+ }>, "many">>;
3359
+ refreshService: z.ZodOptional<z.ZodObject<{
3360
+ id: z.ZodString;
3361
+ type: z.ZodString;
3362
+ }, "strip", z.ZodAny, {
3363
+ [x: string]: any;
3364
+ type: string;
3365
+ id: string;
3366
+ }, {
3367
+ [x: string]: any;
3368
+ type: string;
3369
+ id: string;
3370
+ }>>;
3371
+ }, {
3372
+ proof: z.ZodUnion<[z.ZodObject<{
3373
+ type: z.ZodString;
3374
+ created: z.ZodString;
3375
+ challenge: z.ZodOptional<z.ZodString>;
3376
+ domain: z.ZodOptional<z.ZodString>;
3377
+ nonce: z.ZodOptional<z.ZodString>;
3378
+ proofPurpose: z.ZodString;
3379
+ verificationMethod: z.ZodString;
3380
+ jws: z.ZodOptional<z.ZodString>;
3381
+ }, "strip", z.ZodAny, {
3382
+ [x: string]: any;
3383
+ challenge?: string | undefined;
3384
+ domain?: string | undefined;
3385
+ nonce?: string | undefined;
3386
+ jws?: string | undefined;
3387
+ type: string;
3388
+ created: string;
3389
+ proofPurpose: string;
3390
+ verificationMethod: string;
3391
+ }, {
3392
+ [x: string]: any;
3393
+ challenge?: string | undefined;
3394
+ domain?: string | undefined;
3395
+ nonce?: string | undefined;
3396
+ jws?: string | undefined;
3397
+ type: string;
3398
+ created: string;
3399
+ proofPurpose: string;
3400
+ verificationMethod: string;
3401
+ }>, z.ZodArray<z.ZodObject<{
3402
+ type: z.ZodString;
3403
+ created: z.ZodString;
3404
+ challenge: z.ZodOptional<z.ZodString>;
3405
+ domain: z.ZodOptional<z.ZodString>;
3406
+ nonce: z.ZodOptional<z.ZodString>;
3407
+ proofPurpose: z.ZodString;
3408
+ verificationMethod: z.ZodString;
3409
+ jws: z.ZodOptional<z.ZodString>;
3410
+ }, "strip", z.ZodAny, {
3411
+ [x: string]: any;
3412
+ challenge?: string | undefined;
3413
+ domain?: string | undefined;
3414
+ nonce?: string | undefined;
3415
+ jws?: string | undefined;
3416
+ type: string;
3417
+ created: string;
3418
+ proofPurpose: string;
3419
+ verificationMethod: string;
3420
+ }, {
3421
+ [x: string]: any;
3422
+ challenge?: string | undefined;
3423
+ domain?: string | undefined;
3424
+ nonce?: string | undefined;
3425
+ jws?: string | undefined;
3426
+ type: string;
3427
+ created: string;
3428
+ proofPurpose: string;
3429
+ verificationMethod: string;
3430
+ }>, "many">]>;
3431
+ }>, "strip", z.ZodAny, {
3432
+ [x: string]: any;
3433
+ id?: string | undefined;
3434
+ expirationDate?: string | undefined;
3435
+ credentialStatus?: {
3436
+ type: string;
3437
+ id: string;
3438
+ } | undefined;
3439
+ credentialSchema?: {
3440
+ type: string;
3441
+ id: string;
3442
+ }[] | undefined;
3443
+ refreshService?: {
3444
+ [x: string]: any;
3445
+ type: string;
3446
+ id: string;
3447
+ } | undefined;
3448
+ type: [string, ...string[]];
3449
+ '@context': string[];
3450
+ issuer: string | {
3451
+ [x: string]: any;
3452
+ type?: [string, ...string[]] | undefined;
3453
+ id?: string | undefined;
3454
+ name?: string | undefined;
3455
+ url?: string | undefined;
3456
+ phone?: string | undefined;
3457
+ description?: string | undefined;
3458
+ endorsement?: any[] | undefined;
3459
+ image?: string | {
3460
+ caption?: string | undefined;
3461
+ type: string;
3462
+ id: string;
3463
+ } | undefined;
3464
+ email?: string | undefined;
3465
+ address?: {
3466
+ addressCountry?: string | undefined;
3467
+ addressCountryCode?: string | undefined;
3468
+ addressRegion?: string | undefined;
3469
+ addressLocality?: string | undefined;
3470
+ streetAddress?: string | undefined;
3471
+ postOfficeBoxNumber?: string | undefined;
3472
+ postalCode?: string | undefined;
3473
+ geo?: {
3474
+ type: [string, ...string[]];
3475
+ latitude: number;
3476
+ longitude: number;
3477
+ } | undefined;
3478
+ type: [string, ...string[]];
3479
+ } | undefined;
3480
+ otherIdentifier?: {
3481
+ type: [string, ...string[]];
3482
+ identifier: string;
3483
+ identifierType: string;
3484
+ }[] | undefined;
3485
+ official?: string | undefined;
3486
+ parentOrg?: any;
3487
+ familyName?: string | undefined;
3488
+ givenName?: string | undefined;
3489
+ additionalName?: string | undefined;
3490
+ patronymicName?: string | undefined;
3491
+ honorificPrefix?: string | undefined;
3492
+ honorificSuffix?: string | undefined;
3493
+ familyNamePrefix?: string | undefined;
3494
+ dateOfBirth?: string | undefined;
3495
+ };
3496
+ issuanceDate: string;
3497
+ credentialSubject: {
3498
+ [x: string]: any;
3499
+ id?: string | undefined;
3500
+ } | {
3501
+ [x: string]: any;
3502
+ id?: string | undefined;
3503
+ }[];
3504
+ proof: {
3505
+ [x: string]: any;
3506
+ challenge?: string | undefined;
3507
+ domain?: string | undefined;
3508
+ nonce?: string | undefined;
3509
+ jws?: string | undefined;
3510
+ type: string;
3511
+ created: string;
3512
+ proofPurpose: string;
3513
+ verificationMethod: string;
3514
+ } | {
3515
+ [x: string]: any;
3516
+ challenge?: string | undefined;
3517
+ domain?: string | undefined;
3518
+ nonce?: string | undefined;
3519
+ jws?: string | undefined;
3520
+ type: string;
3521
+ created: string;
3522
+ proofPurpose: string;
3523
+ verificationMethod: string;
3524
+ }[];
3525
+ }, {
3526
+ [x: string]: any;
3527
+ id?: string | undefined;
3528
+ expirationDate?: string | undefined;
3529
+ credentialStatus?: {
3530
+ type: string;
3531
+ id: string;
3532
+ } | undefined;
3533
+ credentialSchema?: {
3534
+ type: string;
3535
+ id: string;
3536
+ }[] | undefined;
3537
+ refreshService?: {
3538
+ [x: string]: any;
3539
+ type: string;
3540
+ id: string;
3541
+ } | undefined;
3542
+ type: [string, ...string[]];
3543
+ '@context': string[];
3544
+ issuer: string | {
3545
+ [x: string]: any;
3546
+ type?: [string, ...string[]] | undefined;
3547
+ id?: string | undefined;
3548
+ name?: string | undefined;
3549
+ url?: string | undefined;
3550
+ phone?: string | undefined;
3551
+ description?: string | undefined;
3552
+ endorsement?: any[] | undefined;
3553
+ image?: string | {
3554
+ caption?: string | undefined;
3555
+ type: string;
3556
+ id: string;
3557
+ } | undefined;
3558
+ email?: string | undefined;
3559
+ address?: {
3560
+ addressCountry?: string | undefined;
3561
+ addressCountryCode?: string | undefined;
3562
+ addressRegion?: string | undefined;
3563
+ addressLocality?: string | undefined;
3564
+ streetAddress?: string | undefined;
3565
+ postOfficeBoxNumber?: string | undefined;
3566
+ postalCode?: string | undefined;
3567
+ geo?: {
3568
+ type: [string, ...string[]];
3569
+ latitude: number;
3570
+ longitude: number;
3571
+ } | undefined;
3572
+ type: [string, ...string[]];
3573
+ } | undefined;
3574
+ otherIdentifier?: {
3575
+ type: [string, ...string[]];
3576
+ identifier: string;
3577
+ identifierType: string;
3578
+ }[] | undefined;
3579
+ official?: string | undefined;
3580
+ parentOrg?: any;
3581
+ familyName?: string | undefined;
3582
+ givenName?: string | undefined;
3583
+ additionalName?: string | undefined;
3584
+ patronymicName?: string | undefined;
3585
+ honorificPrefix?: string | undefined;
3586
+ honorificSuffix?: string | undefined;
3587
+ familyNamePrefix?: string | undefined;
3588
+ dateOfBirth?: string | undefined;
3589
+ };
3590
+ issuanceDate: string;
3591
+ credentialSubject: {
3592
+ [x: string]: any;
3593
+ id?: string | undefined;
3594
+ } | {
3595
+ [x: string]: any;
3596
+ id?: string | undefined;
3597
+ }[];
3598
+ proof: {
3599
+ [x: string]: any;
3600
+ challenge?: string | undefined;
3601
+ domain?: string | undefined;
3602
+ nonce?: string | undefined;
3603
+ jws?: string | undefined;
3604
+ type: string;
3605
+ created: string;
3606
+ proofPurpose: string;
3607
+ verificationMethod: string;
3608
+ } | {
3609
+ [x: string]: any;
3610
+ challenge?: string | undefined;
3611
+ domain?: string | undefined;
3612
+ nonce?: string | undefined;
3613
+ jws?: string | undefined;
3614
+ type: string;
3615
+ created: string;
3616
+ proofPurpose: string;
3617
+ verificationMethod: string;
3618
+ }[];
3619
+ }>, "many">]>;
3620
+ holder: z.ZodOptional<z.ZodString>;
3621
+ }, {
3622
+ proof: z.ZodUnion<[z.ZodObject<{
3623
+ type: z.ZodString;
3624
+ created: z.ZodString;
3625
+ challenge: z.ZodOptional<z.ZodString>;
3626
+ domain: z.ZodOptional<z.ZodString>;
3627
+ nonce: z.ZodOptional<z.ZodString>;
3628
+ proofPurpose: z.ZodString;
3629
+ verificationMethod: z.ZodString;
3630
+ jws: z.ZodOptional<z.ZodString>;
3631
+ }, "strip", z.ZodAny, {
3632
+ [x: string]: any;
3633
+ challenge?: string | undefined;
3634
+ domain?: string | undefined;
3635
+ nonce?: string | undefined;
3636
+ jws?: string | undefined;
3637
+ type: string;
3638
+ created: string;
3639
+ proofPurpose: string;
3640
+ verificationMethod: string;
3641
+ }, {
3642
+ [x: string]: any;
3643
+ challenge?: string | undefined;
2476
3644
  domain?: string | undefined;
2477
3645
  nonce?: string | undefined;
2478
3646
  jws?: string | undefined;
2479
3647
  type: string;
2480
3648
  created: string;
2481
- proofPurpose: "assertionMethod";
3649
+ proofPurpose: string;
2482
3650
  verificationMethod: string;
2483
3651
  }>, z.ZodArray<z.ZodObject<{
2484
3652
  type: z.ZodString;
@@ -2486,7 +3654,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2486
3654
  challenge: z.ZodOptional<z.ZodString>;
2487
3655
  domain: z.ZodOptional<z.ZodString>;
2488
3656
  nonce: z.ZodOptional<z.ZodString>;
2489
- proofPurpose: z.ZodLiteral<"assertionMethod">;
3657
+ proofPurpose: z.ZodString;
2490
3658
  verificationMethod: z.ZodString;
2491
3659
  jws: z.ZodOptional<z.ZodString>;
2492
3660
  }, "strip", z.ZodAny, {
@@ -2497,7 +3665,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2497
3665
  jws?: string | undefined;
2498
3666
  type: string;
2499
3667
  created: string;
2500
- proofPurpose: "assertionMethod";
3668
+ proofPurpose: string;
2501
3669
  verificationMethod: string;
2502
3670
  }, {
2503
3671
  [x: string]: any;
@@ -2507,7 +3675,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2507
3675
  jws?: string | undefined;
2508
3676
  type: string;
2509
3677
  created: string;
2510
- proofPurpose: "assertionMethod";
3678
+ proofPurpose: string;
2511
3679
  verificationMethod: string;
2512
3680
  }>, "many">]>;
2513
3681
  }>, "strip", z.ZodAny, {
@@ -2524,7 +3692,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2524
3692
  jws?: string | undefined;
2525
3693
  type: string;
2526
3694
  created: string;
2527
- proofPurpose: "assertionMethod";
3695
+ proofPurpose: string;
2528
3696
  verificationMethod: string;
2529
3697
  } | {
2530
3698
  [x: string]: any;
@@ -2534,7 +3702,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2534
3702
  jws?: string | undefined;
2535
3703
  type: string;
2536
3704
  created: string;
2537
- proofPurpose: "assertionMethod";
3705
+ proofPurpose: string;
2538
3706
  verificationMethod: string;
2539
3707
  }[];
2540
3708
  verifiableCredential: {
@@ -2558,6 +3726,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2558
3726
  '@context': string[];
2559
3727
  issuer: string | {
2560
3728
  [x: string]: any;
3729
+ type?: [string, ...string[]] | undefined;
2561
3730
  id?: string | undefined;
2562
3731
  name?: string | undefined;
2563
3732
  url?: string | undefined;
@@ -2600,7 +3769,6 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2600
3769
  honorificSuffix?: string | undefined;
2601
3770
  familyNamePrefix?: string | undefined;
2602
3771
  dateOfBirth?: string | undefined;
2603
- type: [string, ...string[]];
2604
3772
  };
2605
3773
  issuanceDate: string;
2606
3774
  credentialSubject: {
@@ -2618,7 +3786,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2618
3786
  jws?: string | undefined;
2619
3787
  type: string;
2620
3788
  created: string;
2621
- proofPurpose: "assertionMethod";
3789
+ proofPurpose: string;
2622
3790
  verificationMethod: string;
2623
3791
  } | {
2624
3792
  [x: string]: any;
@@ -2628,10 +3796,104 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2628
3796
  jws?: string | undefined;
2629
3797
  type: string;
2630
3798
  created: string;
2631
- proofPurpose: "assertionMethod";
3799
+ proofPurpose: string;
2632
3800
  verificationMethod: string;
2633
3801
  }[];
2634
- };
3802
+ } | {
3803
+ [x: string]: any;
3804
+ id?: string | undefined;
3805
+ expirationDate?: string | undefined;
3806
+ credentialStatus?: {
3807
+ type: string;
3808
+ id: string;
3809
+ } | undefined;
3810
+ credentialSchema?: {
3811
+ type: string;
3812
+ id: string;
3813
+ }[] | undefined;
3814
+ refreshService?: {
3815
+ [x: string]: any;
3816
+ type: string;
3817
+ id: string;
3818
+ } | undefined;
3819
+ type: [string, ...string[]];
3820
+ '@context': string[];
3821
+ issuer: string | {
3822
+ [x: string]: any;
3823
+ type?: [string, ...string[]] | undefined;
3824
+ id?: string | undefined;
3825
+ name?: string | undefined;
3826
+ url?: string | undefined;
3827
+ phone?: string | undefined;
3828
+ description?: string | undefined;
3829
+ endorsement?: any[] | undefined;
3830
+ image?: string | {
3831
+ caption?: string | undefined;
3832
+ type: string;
3833
+ id: string;
3834
+ } | undefined;
3835
+ email?: string | undefined;
3836
+ address?: {
3837
+ addressCountry?: string | undefined;
3838
+ addressCountryCode?: string | undefined;
3839
+ addressRegion?: string | undefined;
3840
+ addressLocality?: string | undefined;
3841
+ streetAddress?: string | undefined;
3842
+ postOfficeBoxNumber?: string | undefined;
3843
+ postalCode?: string | undefined;
3844
+ geo?: {
3845
+ type: [string, ...string[]];
3846
+ latitude: number;
3847
+ longitude: number;
3848
+ } | undefined;
3849
+ type: [string, ...string[]];
3850
+ } | undefined;
3851
+ otherIdentifier?: {
3852
+ type: [string, ...string[]];
3853
+ identifier: string;
3854
+ identifierType: string;
3855
+ }[] | undefined;
3856
+ official?: string | undefined;
3857
+ parentOrg?: any;
3858
+ familyName?: string | undefined;
3859
+ givenName?: string | undefined;
3860
+ additionalName?: string | undefined;
3861
+ patronymicName?: string | undefined;
3862
+ honorificPrefix?: string | undefined;
3863
+ honorificSuffix?: string | undefined;
3864
+ familyNamePrefix?: string | undefined;
3865
+ dateOfBirth?: string | undefined;
3866
+ };
3867
+ issuanceDate: string;
3868
+ credentialSubject: {
3869
+ [x: string]: any;
3870
+ id?: string | undefined;
3871
+ } | {
3872
+ [x: string]: any;
3873
+ id?: string | undefined;
3874
+ }[];
3875
+ proof: {
3876
+ [x: string]: any;
3877
+ challenge?: string | undefined;
3878
+ domain?: string | undefined;
3879
+ nonce?: string | undefined;
3880
+ jws?: string | undefined;
3881
+ type: string;
3882
+ created: string;
3883
+ proofPurpose: string;
3884
+ verificationMethod: string;
3885
+ } | {
3886
+ [x: string]: any;
3887
+ challenge?: string | undefined;
3888
+ domain?: string | undefined;
3889
+ nonce?: string | undefined;
3890
+ jws?: string | undefined;
3891
+ type: string;
3892
+ created: string;
3893
+ proofPurpose: string;
3894
+ verificationMethod: string;
3895
+ }[];
3896
+ }[];
2635
3897
  }, {
2636
3898
  [x: string]: any;
2637
3899
  id?: string | undefined;
@@ -2646,7 +3908,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2646
3908
  jws?: string | undefined;
2647
3909
  type: string;
2648
3910
  created: string;
2649
- proofPurpose: "assertionMethod";
3911
+ proofPurpose: string;
2650
3912
  verificationMethod: string;
2651
3913
  } | {
2652
3914
  [x: string]: any;
@@ -2656,7 +3918,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2656
3918
  jws?: string | undefined;
2657
3919
  type: string;
2658
3920
  created: string;
2659
- proofPurpose: "assertionMethod";
3921
+ proofPurpose: string;
2660
3922
  verificationMethod: string;
2661
3923
  }[];
2662
3924
  verifiableCredential: {
@@ -2680,6 +3942,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2680
3942
  '@context': string[];
2681
3943
  issuer: string | {
2682
3944
  [x: string]: any;
3945
+ type?: [string, ...string[]] | undefined;
2683
3946
  id?: string | undefined;
2684
3947
  name?: string | undefined;
2685
3948
  url?: string | undefined;
@@ -2722,7 +3985,6 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2722
3985
  honorificSuffix?: string | undefined;
2723
3986
  familyNamePrefix?: string | undefined;
2724
3987
  dateOfBirth?: string | undefined;
2725
- type: [string, ...string[]];
2726
3988
  };
2727
3989
  issuanceDate: string;
2728
3990
  credentialSubject: {
@@ -2740,7 +4002,7 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2740
4002
  jws?: string | undefined;
2741
4003
  type: string;
2742
4004
  created: string;
2743
- proofPurpose: "assertionMethod";
4005
+ proofPurpose: string;
2744
4006
  verificationMethod: string;
2745
4007
  } | {
2746
4008
  [x: string]: any;
@@ -2750,9 +4012,103 @@ export declare const VPValidator: z.ZodObject<z.extendShape<{
2750
4012
  jws?: string | undefined;
2751
4013
  type: string;
2752
4014
  created: string;
2753
- proofPurpose: "assertionMethod";
4015
+ proofPurpose: string;
2754
4016
  verificationMethod: string;
2755
4017
  }[];
2756
- };
4018
+ } | {
4019
+ [x: string]: any;
4020
+ id?: string | undefined;
4021
+ expirationDate?: string | undefined;
4022
+ credentialStatus?: {
4023
+ type: string;
4024
+ id: string;
4025
+ } | undefined;
4026
+ credentialSchema?: {
4027
+ type: string;
4028
+ id: string;
4029
+ }[] | undefined;
4030
+ refreshService?: {
4031
+ [x: string]: any;
4032
+ type: string;
4033
+ id: string;
4034
+ } | undefined;
4035
+ type: [string, ...string[]];
4036
+ '@context': string[];
4037
+ issuer: string | {
4038
+ [x: string]: any;
4039
+ type?: [string, ...string[]] | undefined;
4040
+ id?: string | undefined;
4041
+ name?: string | undefined;
4042
+ url?: string | undefined;
4043
+ phone?: string | undefined;
4044
+ description?: string | undefined;
4045
+ endorsement?: any[] | undefined;
4046
+ image?: string | {
4047
+ caption?: string | undefined;
4048
+ type: string;
4049
+ id: string;
4050
+ } | undefined;
4051
+ email?: string | undefined;
4052
+ address?: {
4053
+ addressCountry?: string | undefined;
4054
+ addressCountryCode?: string | undefined;
4055
+ addressRegion?: string | undefined;
4056
+ addressLocality?: string | undefined;
4057
+ streetAddress?: string | undefined;
4058
+ postOfficeBoxNumber?: string | undefined;
4059
+ postalCode?: string | undefined;
4060
+ geo?: {
4061
+ type: [string, ...string[]];
4062
+ latitude: number;
4063
+ longitude: number;
4064
+ } | undefined;
4065
+ type: [string, ...string[]];
4066
+ } | undefined;
4067
+ otherIdentifier?: {
4068
+ type: [string, ...string[]];
4069
+ identifier: string;
4070
+ identifierType: string;
4071
+ }[] | undefined;
4072
+ official?: string | undefined;
4073
+ parentOrg?: any;
4074
+ familyName?: string | undefined;
4075
+ givenName?: string | undefined;
4076
+ additionalName?: string | undefined;
4077
+ patronymicName?: string | undefined;
4078
+ honorificPrefix?: string | undefined;
4079
+ honorificSuffix?: string | undefined;
4080
+ familyNamePrefix?: string | undefined;
4081
+ dateOfBirth?: string | undefined;
4082
+ };
4083
+ issuanceDate: string;
4084
+ credentialSubject: {
4085
+ [x: string]: any;
4086
+ id?: string | undefined;
4087
+ } | {
4088
+ [x: string]: any;
4089
+ id?: string | undefined;
4090
+ }[];
4091
+ proof: {
4092
+ [x: string]: any;
4093
+ challenge?: string | undefined;
4094
+ domain?: string | undefined;
4095
+ nonce?: string | undefined;
4096
+ jws?: string | undefined;
4097
+ type: string;
4098
+ created: string;
4099
+ proofPurpose: string;
4100
+ verificationMethod: string;
4101
+ } | {
4102
+ [x: string]: any;
4103
+ challenge?: string | undefined;
4104
+ domain?: string | undefined;
4105
+ nonce?: string | undefined;
4106
+ jws?: string | undefined;
4107
+ type: string;
4108
+ created: string;
4109
+ proofPurpose: string;
4110
+ verificationMethod: string;
4111
+ }[];
4112
+ }[];
2757
4113
  }>;
2758
4114
  export declare type VP = z.infer<typeof VPValidator>;