@learncard/core 1.1.2 → 1.1.5

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/core.d.ts CHANGED
@@ -13,7 +13,7 @@ declare const UnsignedVCValidator: z.ZodObject<{
13
13
  z.ZodString,
14
14
  z.ZodObject<{
15
15
  id: z.ZodOptional<z.ZodString>;
16
- type: z.ZodArray<z.ZodString, "atleastone">;
16
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
17
17
  name: z.ZodOptional<z.ZodString>;
18
18
  url: z.ZodOptional<z.ZodString>;
19
19
  phone: z.ZodOptional<z.ZodString>;
@@ -158,6 +158,10 @@ declare const UnsignedVCValidator: z.ZodObject<{
158
158
  dateOfBirth: z.ZodOptional<z.ZodString>;
159
159
  }, "strip", z.ZodAny, {
160
160
  [x: string]: any;
161
+ type?: [
162
+ string,
163
+ ...string[]
164
+ ] | undefined;
161
165
  id?: string | undefined;
162
166
  name?: string | undefined;
163
167
  url?: string | undefined;
@@ -209,12 +213,12 @@ declare const UnsignedVCValidator: z.ZodObject<{
209
213
  honorificSuffix?: string | undefined;
210
214
  familyNamePrefix?: string | undefined;
211
215
  dateOfBirth?: string | undefined;
212
- type: [
213
- string,
214
- ...string[]
215
- ];
216
216
  }, {
217
217
  [x: string]: any;
218
+ type?: [
219
+ string,
220
+ ...string[]
221
+ ] | undefined;
218
222
  id?: string | undefined;
219
223
  name?: string | undefined;
220
224
  url?: string | undefined;
@@ -266,10 +270,6 @@ declare const UnsignedVCValidator: z.ZodObject<{
266
270
  honorificSuffix?: string | undefined;
267
271
  familyNamePrefix?: string | undefined;
268
272
  dateOfBirth?: string | undefined;
269
- type: [
270
- string,
271
- ...string[]
272
- ];
273
273
  }>
274
274
  ]>;
275
275
  issuanceDate: z.ZodString;
@@ -350,6 +350,10 @@ declare const UnsignedVCValidator: z.ZodObject<{
350
350
  "@context": string[];
351
351
  issuer: string | {
352
352
  [x: string]: any;
353
+ type?: [
354
+ string,
355
+ ...string[]
356
+ ] | undefined;
353
357
  id?: string | undefined;
354
358
  name?: string | undefined;
355
359
  url?: string | undefined;
@@ -401,10 +405,6 @@ declare const UnsignedVCValidator: z.ZodObject<{
401
405
  honorificSuffix?: string | undefined;
402
406
  familyNamePrefix?: string | undefined;
403
407
  dateOfBirth?: string | undefined;
404
- type: [
405
- string,
406
- ...string[]
407
- ];
408
408
  };
409
409
  issuanceDate: string;
410
410
  credentialSubject: {
@@ -438,6 +438,10 @@ declare const UnsignedVCValidator: z.ZodObject<{
438
438
  "@context": string[];
439
439
  issuer: string | {
440
440
  [x: string]: any;
441
+ type?: [
442
+ string,
443
+ ...string[]
444
+ ] | undefined;
441
445
  id?: string | undefined;
442
446
  name?: string | undefined;
443
447
  url?: string | undefined;
@@ -489,10 +493,6 @@ declare const UnsignedVCValidator: z.ZodObject<{
489
493
  honorificSuffix?: string | undefined;
490
494
  familyNamePrefix?: string | undefined;
491
495
  dateOfBirth?: string | undefined;
492
- type: [
493
- string,
494
- ...string[]
495
- ];
496
496
  };
497
497
  issuanceDate: string;
498
498
  credentialSubject: {
@@ -512,7 +512,7 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
512
512
  z.ZodString,
513
513
  z.ZodObject<{
514
514
  id: z.ZodOptional<z.ZodString>;
515
- type: z.ZodArray<z.ZodString, "atleastone">;
515
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
516
516
  name: z.ZodOptional<z.ZodString>;
517
517
  url: z.ZodOptional<z.ZodString>;
518
518
  phone: z.ZodOptional<z.ZodString>;
@@ -657,6 +657,10 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
657
657
  dateOfBirth: z.ZodOptional<z.ZodString>;
658
658
  }, "strip", z.ZodAny, {
659
659
  [x: string]: any;
660
+ type?: [
661
+ string,
662
+ ...string[]
663
+ ] | undefined;
660
664
  id?: string | undefined;
661
665
  name?: string | undefined;
662
666
  url?: string | undefined;
@@ -708,12 +712,12 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
708
712
  honorificSuffix?: string | undefined;
709
713
  familyNamePrefix?: string | undefined;
710
714
  dateOfBirth?: string | undefined;
711
- type: [
712
- string,
713
- ...string[]
714
- ];
715
715
  }, {
716
716
  [x: string]: any;
717
+ type?: [
718
+ string,
719
+ ...string[]
720
+ ] | undefined;
717
721
  id?: string | undefined;
718
722
  name?: string | undefined;
719
723
  url?: string | undefined;
@@ -765,10 +769,6 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
765
769
  honorificSuffix?: string | undefined;
766
770
  familyNamePrefix?: string | undefined;
767
771
  dateOfBirth?: string | undefined;
768
- type: [
769
- string,
770
- ...string[]
771
- ];
772
772
  }>
773
773
  ]>;
774
774
  issuanceDate: z.ZodString;
@@ -833,7 +833,7 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
833
833
  challenge: z.ZodOptional<z.ZodString>;
834
834
  domain: z.ZodOptional<z.ZodString>;
835
835
  nonce: z.ZodOptional<z.ZodString>;
836
- proofPurpose: z.ZodLiteral<"assertionMethod">;
836
+ proofPurpose: z.ZodString;
837
837
  verificationMethod: z.ZodString;
838
838
  jws: z.ZodOptional<z.ZodString>;
839
839
  }, "strip", z.ZodAny, {
@@ -844,7 +844,7 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
844
844
  jws?: string | undefined;
845
845
  type: string;
846
846
  created: string;
847
- proofPurpose: "assertionMethod";
847
+ proofPurpose: string;
848
848
  verificationMethod: string;
849
849
  }, {
850
850
  [x: string]: any;
@@ -854,7 +854,7 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
854
854
  jws?: string | undefined;
855
855
  type: string;
856
856
  created: string;
857
- proofPurpose: "assertionMethod";
857
+ proofPurpose: string;
858
858
  verificationMethod: string;
859
859
  }>,
860
860
  z.ZodArray<z.ZodObject<{
@@ -863,7 +863,7 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
863
863
  challenge: z.ZodOptional<z.ZodString>;
864
864
  domain: z.ZodOptional<z.ZodString>;
865
865
  nonce: z.ZodOptional<z.ZodString>;
866
- proofPurpose: z.ZodLiteral<"assertionMethod">;
866
+ proofPurpose: z.ZodString;
867
867
  verificationMethod: z.ZodString;
868
868
  jws: z.ZodOptional<z.ZodString>;
869
869
  }, "strip", z.ZodAny, {
@@ -874,7 +874,7 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
874
874
  jws?: string | undefined;
875
875
  type: string;
876
876
  created: string;
877
- proofPurpose: "assertionMethod";
877
+ proofPurpose: string;
878
878
  verificationMethod: string;
879
879
  }, {
880
880
  [x: string]: any;
@@ -884,7 +884,7 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
884
884
  jws?: string | undefined;
885
885
  type: string;
886
886
  created: string;
887
- proofPurpose: "assertionMethod";
887
+ proofPurpose: string;
888
888
  verificationMethod: string;
889
889
  }>, "many">
890
890
  ]>;
@@ -912,6 +912,10 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
912
912
  "@context": string[];
913
913
  issuer: string | {
914
914
  [x: string]: any;
915
+ type?: [
916
+ string,
917
+ ...string[]
918
+ ] | undefined;
915
919
  id?: string | undefined;
916
920
  name?: string | undefined;
917
921
  url?: string | undefined;
@@ -963,10 +967,6 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
963
967
  honorificSuffix?: string | undefined;
964
968
  familyNamePrefix?: string | undefined;
965
969
  dateOfBirth?: string | undefined;
966
- type: [
967
- string,
968
- ...string[]
969
- ];
970
970
  };
971
971
  issuanceDate: string;
972
972
  credentialSubject: {
@@ -984,7 +984,7 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
984
984
  jws?: string | undefined;
985
985
  type: string;
986
986
  created: string;
987
- proofPurpose: "assertionMethod";
987
+ proofPurpose: string;
988
988
  verificationMethod: string;
989
989
  } | {
990
990
  [x: string]: any;
@@ -994,7 +994,7 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
994
994
  jws?: string | undefined;
995
995
  type: string;
996
996
  created: string;
997
- proofPurpose: "assertionMethod";
997
+ proofPurpose: string;
998
998
  verificationMethod: string;
999
999
  }[];
1000
1000
  }, {
@@ -1021,6 +1021,10 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
1021
1021
  "@context": string[];
1022
1022
  issuer: string | {
1023
1023
  [x: string]: any;
1024
+ type?: [
1025
+ string,
1026
+ ...string[]
1027
+ ] | undefined;
1024
1028
  id?: string | undefined;
1025
1029
  name?: string | undefined;
1026
1030
  url?: string | undefined;
@@ -1072,10 +1076,6 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
1072
1076
  honorificSuffix?: string | undefined;
1073
1077
  familyNamePrefix?: string | undefined;
1074
1078
  dateOfBirth?: string | undefined;
1075
- type: [
1076
- string,
1077
- ...string[]
1078
- ];
1079
1079
  };
1080
1080
  issuanceDate: string;
1081
1081
  credentialSubject: {
@@ -1093,7 +1093,7 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
1093
1093
  jws?: string | undefined;
1094
1094
  type: string;
1095
1095
  created: string;
1096
- proofPurpose: "assertionMethod";
1096
+ proofPurpose: string;
1097
1097
  verificationMethod: string;
1098
1098
  } | {
1099
1099
  [x: string]: any;
@@ -1103,7 +1103,7 @@ declare const VCValidator: z.ZodObject<z.extendShape<{
1103
1103
  jws?: string | undefined;
1104
1104
  type: string;
1105
1105
  created: string;
1106
- proofPurpose: "assertionMethod";
1106
+ proofPurpose: string;
1107
1107
  verificationMethod: string;
1108
1108
  }[];
1109
1109
  }>;
@@ -1112,159 +1112,419 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1112
1112
  "@context": z.ZodArray<z.ZodString, "many">;
1113
1113
  id: z.ZodOptional<z.ZodString>;
1114
1114
  type: z.ZodArray<z.ZodString, "atleastone">;
1115
- verifiableCredential: z.ZodObject<z.extendShape<{
1116
- "@context": z.ZodArray<z.ZodString, "many">;
1117
- id: z.ZodOptional<z.ZodString>;
1118
- type: z.ZodArray<z.ZodString, "atleastone">;
1119
- issuer: z.ZodUnion<[
1120
- z.ZodString,
1121
- z.ZodObject<{
1122
- id: z.ZodOptional<z.ZodString>;
1123
- type: z.ZodArray<z.ZodString, "atleastone">;
1124
- name: z.ZodOptional<z.ZodString>;
1125
- url: z.ZodOptional<z.ZodString>;
1126
- phone: z.ZodOptional<z.ZodString>;
1127
- description: z.ZodOptional<z.ZodString>;
1128
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1129
- image: z.ZodOptional<z.ZodUnion<[
1130
- z.ZodString,
1131
- z.ZodObject<{
1132
- id: z.ZodString;
1133
- type: z.ZodString;
1134
- caption: z.ZodOptional<z.ZodString>;
1135
- }, "strip", z.ZodTypeAny, {
1136
- caption?: string | undefined;
1137
- type: string;
1138
- id: string;
1139
- }, {
1140
- caption?: string | undefined;
1141
- type: string;
1142
- id: string;
1143
- }>
1144
- ]>>;
1145
- email: z.ZodOptional<z.ZodString>;
1146
- address: z.ZodOptional<z.ZodObject<{
1147
- type: z.ZodArray<z.ZodString, "atleastone">;
1148
- addressCountry: z.ZodOptional<z.ZodString>;
1149
- addressCountryCode: z.ZodOptional<z.ZodString>;
1150
- addressRegion: z.ZodOptional<z.ZodString>;
1151
- addressLocality: z.ZodOptional<z.ZodString>;
1152
- streetAddress: z.ZodOptional<z.ZodString>;
1153
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
1154
- postalCode: z.ZodOptional<z.ZodString>;
1155
- geo: z.ZodOptional<z.ZodObject<{
1115
+ verifiableCredential: z.ZodUnion<[
1116
+ z.ZodObject<z.extendShape<{
1117
+ "@context": z.ZodArray<z.ZodString, "many">;
1118
+ id: z.ZodOptional<z.ZodString>;
1119
+ type: z.ZodArray<z.ZodString, "atleastone">;
1120
+ issuer: z.ZodUnion<[
1121
+ z.ZodString,
1122
+ z.ZodObject<{
1123
+ id: z.ZodOptional<z.ZodString>;
1124
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
1125
+ name: z.ZodOptional<z.ZodString>;
1126
+ url: z.ZodOptional<z.ZodString>;
1127
+ phone: z.ZodOptional<z.ZodString>;
1128
+ description: z.ZodOptional<z.ZodString>;
1129
+ endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1130
+ image: z.ZodOptional<z.ZodUnion<[
1131
+ z.ZodString,
1132
+ z.ZodObject<{
1133
+ id: z.ZodString;
1134
+ type: z.ZodString;
1135
+ caption: z.ZodOptional<z.ZodString>;
1136
+ }, "strip", z.ZodTypeAny, {
1137
+ caption?: string | undefined;
1138
+ type: string;
1139
+ id: string;
1140
+ }, {
1141
+ caption?: string | undefined;
1142
+ type: string;
1143
+ id: string;
1144
+ }>
1145
+ ]>>;
1146
+ email: z.ZodOptional<z.ZodString>;
1147
+ address: z.ZodOptional<z.ZodObject<{
1156
1148
  type: z.ZodArray<z.ZodString, "atleastone">;
1157
- latitude: z.ZodNumber;
1158
- longitude: z.ZodNumber;
1149
+ addressCountry: z.ZodOptional<z.ZodString>;
1150
+ addressCountryCode: z.ZodOptional<z.ZodString>;
1151
+ addressRegion: z.ZodOptional<z.ZodString>;
1152
+ addressLocality: z.ZodOptional<z.ZodString>;
1153
+ streetAddress: z.ZodOptional<z.ZodString>;
1154
+ postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
1155
+ postalCode: z.ZodOptional<z.ZodString>;
1156
+ geo: z.ZodOptional<z.ZodObject<{
1157
+ type: z.ZodArray<z.ZodString, "atleastone">;
1158
+ latitude: z.ZodNumber;
1159
+ longitude: z.ZodNumber;
1160
+ }, "strip", z.ZodTypeAny, {
1161
+ type: [
1162
+ string,
1163
+ ...string[]
1164
+ ];
1165
+ latitude: number;
1166
+ longitude: number;
1167
+ }, {
1168
+ type: [
1169
+ string,
1170
+ ...string[]
1171
+ ];
1172
+ latitude: number;
1173
+ longitude: number;
1174
+ }>>;
1159
1175
  }, "strip", z.ZodTypeAny, {
1176
+ addressCountry?: string | undefined;
1177
+ addressCountryCode?: string | undefined;
1178
+ addressRegion?: string | undefined;
1179
+ addressLocality?: string | undefined;
1180
+ streetAddress?: string | undefined;
1181
+ postOfficeBoxNumber?: string | undefined;
1182
+ postalCode?: string | undefined;
1183
+ geo?: {
1184
+ type: [
1185
+ string,
1186
+ ...string[]
1187
+ ];
1188
+ latitude: number;
1189
+ longitude: number;
1190
+ } | undefined;
1160
1191
  type: [
1161
1192
  string,
1162
1193
  ...string[]
1163
1194
  ];
1164
- latitude: number;
1165
- longitude: number;
1166
1195
  }, {
1196
+ addressCountry?: string | undefined;
1197
+ addressCountryCode?: string | undefined;
1198
+ addressRegion?: string | undefined;
1199
+ addressLocality?: string | undefined;
1200
+ streetAddress?: string | undefined;
1201
+ postOfficeBoxNumber?: string | undefined;
1202
+ postalCode?: string | undefined;
1203
+ geo?: {
1204
+ type: [
1205
+ string,
1206
+ ...string[]
1207
+ ];
1208
+ latitude: number;
1209
+ longitude: number;
1210
+ } | undefined;
1167
1211
  type: [
1168
1212
  string,
1169
1213
  ...string[]
1170
1214
  ];
1171
- latitude: number;
1172
- longitude: number;
1173
1215
  }>>;
1174
- }, "strip", z.ZodTypeAny, {
1175
- addressCountry?: string | undefined;
1176
- addressCountryCode?: string | undefined;
1177
- addressRegion?: string | undefined;
1178
- addressLocality?: string | undefined;
1179
- streetAddress?: string | undefined;
1180
- postOfficeBoxNumber?: string | undefined;
1181
- postalCode?: string | undefined;
1182
- geo?: {
1216
+ otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
1217
+ type: z.ZodArray<z.ZodString, "atleastone">;
1218
+ identifier: z.ZodString;
1219
+ identifierType: z.ZodUnion<[
1220
+ z.ZodEnum<[
1221
+ "sourcedId",
1222
+ "systemId",
1223
+ "productId",
1224
+ "userName",
1225
+ "accountId",
1226
+ "emailAddress",
1227
+ "nationalIdentityNumber",
1228
+ "isbn",
1229
+ "issn",
1230
+ "lisSourcedId",
1231
+ "oneRosterSourcedId",
1232
+ "sisSourcedId",
1233
+ "ltiContextId",
1234
+ "ltiDeploymentId",
1235
+ "ltiToolId",
1236
+ "ltiPlatformId",
1237
+ "ltiUserId",
1238
+ "identifier"
1239
+ ]>,
1240
+ z.ZodString
1241
+ ]>;
1242
+ }, "strip", z.ZodTypeAny, {
1183
1243
  type: [
1184
1244
  string,
1185
1245
  ...string[]
1186
1246
  ];
1187
- latitude: number;
1188
- longitude: number;
1189
- } | undefined;
1190
- type: [
1247
+ identifier: string;
1248
+ identifierType: string;
1249
+ }, {
1250
+ type: [
1251
+ string,
1252
+ ...string[]
1253
+ ];
1254
+ identifier: string;
1255
+ identifierType: string;
1256
+ }>, "many">>;
1257
+ official: z.ZodOptional<z.ZodString>;
1258
+ parentOrg: z.ZodOptional<z.ZodAny>;
1259
+ familyName: z.ZodOptional<z.ZodString>;
1260
+ givenName: z.ZodOptional<z.ZodString>;
1261
+ additionalName: z.ZodOptional<z.ZodString>;
1262
+ patronymicName: z.ZodOptional<z.ZodString>;
1263
+ honorificPrefix: z.ZodOptional<z.ZodString>;
1264
+ honorificSuffix: z.ZodOptional<z.ZodString>;
1265
+ familyNamePrefix: z.ZodOptional<z.ZodString>;
1266
+ dateOfBirth: z.ZodOptional<z.ZodString>;
1267
+ }, "strip", z.ZodAny, {
1268
+ [x: string]: any;
1269
+ type?: [
1191
1270
  string,
1192
1271
  ...string[]
1193
- ];
1194
- }, {
1195
- addressCountry?: string | undefined;
1196
- addressCountryCode?: string | undefined;
1197
- addressRegion?: string | undefined;
1198
- addressLocality?: string | undefined;
1199
- streetAddress?: string | undefined;
1200
- postOfficeBoxNumber?: string | undefined;
1201
- postalCode?: string | undefined;
1202
- geo?: {
1272
+ ] | undefined;
1273
+ id?: string | undefined;
1274
+ name?: string | undefined;
1275
+ url?: string | undefined;
1276
+ phone?: string | undefined;
1277
+ description?: string | undefined;
1278
+ endorsement?: any[] | undefined;
1279
+ image?: string | {
1280
+ caption?: string | undefined;
1281
+ type: string;
1282
+ id: string;
1283
+ } | undefined;
1284
+ email?: string | undefined;
1285
+ address?: {
1286
+ addressCountry?: string | undefined;
1287
+ addressCountryCode?: string | undefined;
1288
+ addressRegion?: string | undefined;
1289
+ addressLocality?: string | undefined;
1290
+ streetAddress?: string | undefined;
1291
+ postOfficeBoxNumber?: string | undefined;
1292
+ postalCode?: string | undefined;
1293
+ geo?: {
1294
+ type: [
1295
+ string,
1296
+ ...string[]
1297
+ ];
1298
+ latitude: number;
1299
+ longitude: number;
1300
+ } | undefined;
1203
1301
  type: [
1204
1302
  string,
1205
1303
  ...string[]
1206
1304
  ];
1207
- latitude: number;
1208
- longitude: number;
1209
1305
  } | undefined;
1210
- type: [
1211
- string,
1212
- ...string[]
1213
- ];
1214
- }>>;
1215
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
1216
- type: z.ZodArray<z.ZodString, "atleastone">;
1217
- identifier: z.ZodString;
1218
- identifierType: z.ZodUnion<[
1219
- z.ZodEnum<[
1220
- "sourcedId",
1221
- "systemId",
1222
- "productId",
1223
- "userName",
1224
- "accountId",
1225
- "emailAddress",
1226
- "nationalIdentityNumber",
1227
- "isbn",
1228
- "issn",
1229
- "lisSourcedId",
1230
- "oneRosterSourcedId",
1231
- "sisSourcedId",
1232
- "ltiContextId",
1233
- "ltiDeploymentId",
1234
- "ltiToolId",
1235
- "ltiPlatformId",
1236
- "ltiUserId",
1237
- "identifier"
1238
- ]>,
1239
- z.ZodString
1240
- ]>;
1241
- }, "strip", z.ZodTypeAny, {
1242
- type: [
1243
- string,
1244
- ...string[]
1245
- ];
1246
- identifier: string;
1247
- identifierType: string;
1306
+ otherIdentifier?: {
1307
+ type: [
1308
+ string,
1309
+ ...string[]
1310
+ ];
1311
+ identifier: string;
1312
+ identifierType: string;
1313
+ }[] | undefined;
1314
+ official?: string | undefined;
1315
+ parentOrg?: any;
1316
+ familyName?: string | undefined;
1317
+ givenName?: string | undefined;
1318
+ additionalName?: string | undefined;
1319
+ patronymicName?: string | undefined;
1320
+ honorificPrefix?: string | undefined;
1321
+ honorificSuffix?: string | undefined;
1322
+ familyNamePrefix?: string | undefined;
1323
+ dateOfBirth?: string | undefined;
1248
1324
  }, {
1249
- type: [
1325
+ [x: string]: any;
1326
+ type?: [
1250
1327
  string,
1251
1328
  ...string[]
1252
- ];
1253
- identifier: string;
1254
- identifierType: string;
1255
- }>, "many">>;
1256
- official: z.ZodOptional<z.ZodString>;
1257
- parentOrg: z.ZodOptional<z.ZodAny>;
1258
- familyName: z.ZodOptional<z.ZodString>;
1259
- givenName: z.ZodOptional<z.ZodString>;
1260
- additionalName: z.ZodOptional<z.ZodString>;
1261
- patronymicName: z.ZodOptional<z.ZodString>;
1262
- honorificPrefix: z.ZodOptional<z.ZodString>;
1263
- honorificSuffix: z.ZodOptional<z.ZodString>;
1264
- familyNamePrefix: z.ZodOptional<z.ZodString>;
1265
- dateOfBirth: z.ZodOptional<z.ZodString>;
1329
+ ] | undefined;
1330
+ id?: string | undefined;
1331
+ name?: string | undefined;
1332
+ url?: string | undefined;
1333
+ phone?: string | undefined;
1334
+ description?: string | undefined;
1335
+ endorsement?: any[] | undefined;
1336
+ image?: string | {
1337
+ caption?: string | undefined;
1338
+ type: string;
1339
+ id: string;
1340
+ } | undefined;
1341
+ email?: string | undefined;
1342
+ address?: {
1343
+ addressCountry?: string | undefined;
1344
+ addressCountryCode?: string | undefined;
1345
+ addressRegion?: string | undefined;
1346
+ addressLocality?: string | undefined;
1347
+ streetAddress?: string | undefined;
1348
+ postOfficeBoxNumber?: string | undefined;
1349
+ postalCode?: string | undefined;
1350
+ geo?: {
1351
+ type: [
1352
+ string,
1353
+ ...string[]
1354
+ ];
1355
+ latitude: number;
1356
+ longitude: number;
1357
+ } | undefined;
1358
+ type: [
1359
+ string,
1360
+ ...string[]
1361
+ ];
1362
+ } | undefined;
1363
+ otherIdentifier?: {
1364
+ type: [
1365
+ string,
1366
+ ...string[]
1367
+ ];
1368
+ identifier: string;
1369
+ identifierType: string;
1370
+ }[] | undefined;
1371
+ official?: string | undefined;
1372
+ parentOrg?: any;
1373
+ familyName?: string | undefined;
1374
+ givenName?: string | undefined;
1375
+ additionalName?: string | undefined;
1376
+ patronymicName?: string | undefined;
1377
+ honorificPrefix?: string | undefined;
1378
+ honorificSuffix?: string | undefined;
1379
+ familyNamePrefix?: string | undefined;
1380
+ dateOfBirth?: string | undefined;
1381
+ }>
1382
+ ]>;
1383
+ issuanceDate: z.ZodString;
1384
+ expirationDate: z.ZodOptional<z.ZodString>;
1385
+ credentialSubject: z.ZodUnion<[
1386
+ z.ZodObject<{
1387
+ id: z.ZodOptional<z.ZodString>;
1388
+ }, "strip", z.ZodAny, {
1389
+ [x: string]: any;
1390
+ id?: string | undefined;
1391
+ }, {
1392
+ [x: string]: any;
1393
+ id?: string | undefined;
1394
+ }>,
1395
+ z.ZodArray<z.ZodObject<{
1396
+ id: z.ZodOptional<z.ZodString>;
1397
+ }, "strip", z.ZodAny, {
1398
+ [x: string]: any;
1399
+ id?: string | undefined;
1400
+ }, {
1401
+ [x: string]: any;
1402
+ id?: string | undefined;
1403
+ }>, "many">
1404
+ ]>;
1405
+ credentialStatus: z.ZodOptional<z.ZodObject<{
1406
+ type: z.ZodString;
1407
+ id: z.ZodString;
1408
+ }, "strip", z.ZodTypeAny, {
1409
+ type: string;
1410
+ id: string;
1411
+ }, {
1412
+ type: string;
1413
+ id: string;
1414
+ }>>;
1415
+ credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
1416
+ id: z.ZodString;
1417
+ type: z.ZodString;
1418
+ }, "strip", z.ZodTypeAny, {
1419
+ type: string;
1420
+ id: string;
1421
+ }, {
1422
+ type: string;
1423
+ id: string;
1424
+ }>, "many">>;
1425
+ refreshService: z.ZodOptional<z.ZodObject<{
1426
+ id: z.ZodString;
1427
+ type: z.ZodString;
1266
1428
  }, "strip", z.ZodAny, {
1267
1429
  [x: string]: any;
1430
+ type: string;
1431
+ id: string;
1432
+ }, {
1433
+ [x: string]: any;
1434
+ type: string;
1435
+ id: string;
1436
+ }>>;
1437
+ }, {
1438
+ proof: z.ZodUnion<[
1439
+ z.ZodObject<{
1440
+ type: z.ZodString;
1441
+ created: z.ZodString;
1442
+ challenge: z.ZodOptional<z.ZodString>;
1443
+ domain: z.ZodOptional<z.ZodString>;
1444
+ nonce: z.ZodOptional<z.ZodString>;
1445
+ proofPurpose: z.ZodString;
1446
+ verificationMethod: z.ZodString;
1447
+ jws: z.ZodOptional<z.ZodString>;
1448
+ }, "strip", z.ZodAny, {
1449
+ [x: string]: any;
1450
+ challenge?: string | undefined;
1451
+ domain?: string | undefined;
1452
+ nonce?: string | undefined;
1453
+ jws?: string | undefined;
1454
+ type: string;
1455
+ created: string;
1456
+ proofPurpose: string;
1457
+ verificationMethod: string;
1458
+ }, {
1459
+ [x: string]: any;
1460
+ challenge?: string | undefined;
1461
+ domain?: string | undefined;
1462
+ nonce?: string | undefined;
1463
+ jws?: string | undefined;
1464
+ type: string;
1465
+ created: string;
1466
+ proofPurpose: string;
1467
+ verificationMethod: string;
1468
+ }>,
1469
+ z.ZodArray<z.ZodObject<{
1470
+ type: z.ZodString;
1471
+ created: z.ZodString;
1472
+ challenge: z.ZodOptional<z.ZodString>;
1473
+ domain: z.ZodOptional<z.ZodString>;
1474
+ nonce: z.ZodOptional<z.ZodString>;
1475
+ proofPurpose: z.ZodString;
1476
+ verificationMethod: z.ZodString;
1477
+ jws: z.ZodOptional<z.ZodString>;
1478
+ }, "strip", z.ZodAny, {
1479
+ [x: string]: any;
1480
+ challenge?: string | undefined;
1481
+ domain?: string | undefined;
1482
+ nonce?: string | undefined;
1483
+ jws?: string | undefined;
1484
+ type: string;
1485
+ created: string;
1486
+ proofPurpose: string;
1487
+ verificationMethod: string;
1488
+ }, {
1489
+ [x: string]: any;
1490
+ challenge?: string | undefined;
1491
+ domain?: string | undefined;
1492
+ nonce?: string | undefined;
1493
+ jws?: string | undefined;
1494
+ type: string;
1495
+ created: string;
1496
+ proofPurpose: string;
1497
+ verificationMethod: string;
1498
+ }>, "many">
1499
+ ]>;
1500
+ }>, "strip", z.ZodAny, {
1501
+ [x: string]: any;
1502
+ id?: string | undefined;
1503
+ expirationDate?: string | undefined;
1504
+ credentialStatus?: {
1505
+ type: string;
1506
+ id: string;
1507
+ } | undefined;
1508
+ credentialSchema?: {
1509
+ type: string;
1510
+ id: string;
1511
+ }[] | undefined;
1512
+ refreshService?: {
1513
+ [x: string]: any;
1514
+ type: string;
1515
+ id: string;
1516
+ } | undefined;
1517
+ type: [
1518
+ string,
1519
+ ...string[]
1520
+ ];
1521
+ "@context": string[];
1522
+ issuer: string | {
1523
+ [x: string]: any;
1524
+ type?: [
1525
+ string,
1526
+ ...string[]
1527
+ ] | undefined;
1268
1528
  id?: string | undefined;
1269
1529
  name?: string | undefined;
1270
1530
  url?: string | undefined;
@@ -1316,12 +1576,64 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1316
1576
  honorificSuffix?: string | undefined;
1317
1577
  familyNamePrefix?: string | undefined;
1318
1578
  dateOfBirth?: string | undefined;
1319
- type: [
1579
+ };
1580
+ issuanceDate: string;
1581
+ credentialSubject: {
1582
+ [x: string]: any;
1583
+ id?: string | undefined;
1584
+ } | {
1585
+ [x: string]: any;
1586
+ id?: string | undefined;
1587
+ }[];
1588
+ proof: {
1589
+ [x: string]: any;
1590
+ challenge?: string | undefined;
1591
+ domain?: string | undefined;
1592
+ nonce?: string | undefined;
1593
+ jws?: string | undefined;
1594
+ type: string;
1595
+ created: string;
1596
+ proofPurpose: string;
1597
+ verificationMethod: string;
1598
+ } | {
1599
+ [x: string]: any;
1600
+ challenge?: string | undefined;
1601
+ domain?: string | undefined;
1602
+ nonce?: string | undefined;
1603
+ jws?: string | undefined;
1604
+ type: string;
1605
+ created: string;
1606
+ proofPurpose: string;
1607
+ verificationMethod: string;
1608
+ }[];
1609
+ }, {
1610
+ [x: string]: any;
1611
+ id?: string | undefined;
1612
+ expirationDate?: string | undefined;
1613
+ credentialStatus?: {
1614
+ type: string;
1615
+ id: string;
1616
+ } | undefined;
1617
+ credentialSchema?: {
1618
+ type: string;
1619
+ id: string;
1620
+ }[] | undefined;
1621
+ refreshService?: {
1622
+ [x: string]: any;
1623
+ type: string;
1624
+ id: string;
1625
+ } | undefined;
1626
+ type: [
1627
+ string,
1628
+ ...string[]
1629
+ ];
1630
+ "@context": string[];
1631
+ issuer: string | {
1632
+ [x: string]: any;
1633
+ type?: [
1320
1634
  string,
1321
1635
  ...string[]
1322
- ];
1323
- }, {
1324
- [x: string]: any;
1636
+ ] | undefined;
1325
1637
  id?: string | undefined;
1326
1638
  name?: string | undefined;
1327
1639
  url?: string | undefined;
@@ -1373,78 +1685,510 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1373
1685
  honorificSuffix?: string | undefined;
1374
1686
  familyNamePrefix?: string | undefined;
1375
1687
  dateOfBirth?: string | undefined;
1376
- type: [
1377
- string,
1378
- ...string[]
1379
- ];
1380
- }>
1381
- ]>;
1382
- issuanceDate: z.ZodString;
1383
- expirationDate: z.ZodOptional<z.ZodString>;
1384
- credentialSubject: z.ZodUnion<[
1385
- z.ZodObject<{
1386
- id: z.ZodOptional<z.ZodString>;
1387
- }, "strip", z.ZodAny, {
1688
+ };
1689
+ issuanceDate: string;
1690
+ credentialSubject: {
1388
1691
  [x: string]: any;
1389
1692
  id?: string | undefined;
1390
- }, {
1693
+ } | {
1391
1694
  [x: string]: any;
1392
1695
  id?: string | undefined;
1393
- }>,
1394
- z.ZodArray<z.ZodObject<{
1395
- id: z.ZodOptional<z.ZodString>;
1396
- }, "strip", z.ZodAny, {
1696
+ }[];
1697
+ proof: {
1397
1698
  [x: string]: any;
1398
- id?: string | undefined;
1399
- }, {
1699
+ challenge?: string | undefined;
1700
+ domain?: string | undefined;
1701
+ nonce?: string | undefined;
1702
+ jws?: string | undefined;
1703
+ type: string;
1704
+ created: string;
1705
+ proofPurpose: string;
1706
+ verificationMethod: string;
1707
+ } | {
1400
1708
  [x: string]: any;
1401
- id?: string | undefined;
1402
- }>, "many">
1403
- ]>;
1404
- credentialStatus: z.ZodOptional<z.ZodObject<{
1405
- type: z.ZodString;
1406
- id: z.ZodString;
1407
- }, "strip", z.ZodTypeAny, {
1408
- type: string;
1409
- id: string;
1410
- }, {
1411
- type: string;
1412
- id: string;
1413
- }>>;
1414
- credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
1415
- id: z.ZodString;
1416
- type: z.ZodString;
1417
- }, "strip", z.ZodTypeAny, {
1418
- type: string;
1419
- id: string;
1420
- }, {
1421
- type: string;
1422
- id: string;
1423
- }>, "many">>;
1424
- refreshService: z.ZodOptional<z.ZodObject<{
1425
- id: z.ZodString;
1426
- type: z.ZodString;
1427
- }, "strip", z.ZodAny, {
1428
- [x: string]: any;
1429
- type: string;
1430
- id: string;
1431
- }, {
1432
- [x: string]: any;
1433
- type: string;
1434
- id: string;
1435
- }>>;
1436
- }, {
1437
- proof: z.ZodUnion<[
1438
- z.ZodObject<{
1709
+ challenge?: string | undefined;
1710
+ domain?: string | undefined;
1711
+ nonce?: string | undefined;
1712
+ jws?: string | undefined;
1713
+ type: string;
1714
+ created: string;
1715
+ proofPurpose: string;
1716
+ verificationMethod: string;
1717
+ }[];
1718
+ }>,
1719
+ z.ZodArray<z.ZodObject<z.extendShape<{
1720
+ "@context": z.ZodArray<z.ZodString, "many">;
1721
+ id: z.ZodOptional<z.ZodString>;
1722
+ type: z.ZodArray<z.ZodString, "atleastone">;
1723
+ issuer: z.ZodUnion<[
1724
+ z.ZodString,
1725
+ z.ZodObject<{
1726
+ id: z.ZodOptional<z.ZodString>;
1727
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
1728
+ name: z.ZodOptional<z.ZodString>;
1729
+ url: z.ZodOptional<z.ZodString>;
1730
+ phone: z.ZodOptional<z.ZodString>;
1731
+ description: z.ZodOptional<z.ZodString>;
1732
+ endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1733
+ image: z.ZodOptional<z.ZodUnion<[
1734
+ z.ZodString,
1735
+ z.ZodObject<{
1736
+ id: z.ZodString;
1737
+ type: z.ZodString;
1738
+ caption: z.ZodOptional<z.ZodString>;
1739
+ }, "strip", z.ZodTypeAny, {
1740
+ caption?: string | undefined;
1741
+ type: string;
1742
+ id: string;
1743
+ }, {
1744
+ caption?: string | undefined;
1745
+ type: string;
1746
+ id: string;
1747
+ }>
1748
+ ]>>;
1749
+ email: z.ZodOptional<z.ZodString>;
1750
+ address: z.ZodOptional<z.ZodObject<{
1751
+ type: z.ZodArray<z.ZodString, "atleastone">;
1752
+ addressCountry: z.ZodOptional<z.ZodString>;
1753
+ addressCountryCode: z.ZodOptional<z.ZodString>;
1754
+ addressRegion: z.ZodOptional<z.ZodString>;
1755
+ addressLocality: z.ZodOptional<z.ZodString>;
1756
+ streetAddress: z.ZodOptional<z.ZodString>;
1757
+ postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
1758
+ postalCode: z.ZodOptional<z.ZodString>;
1759
+ geo: z.ZodOptional<z.ZodObject<{
1760
+ type: z.ZodArray<z.ZodString, "atleastone">;
1761
+ latitude: z.ZodNumber;
1762
+ longitude: z.ZodNumber;
1763
+ }, "strip", z.ZodTypeAny, {
1764
+ type: [
1765
+ string,
1766
+ ...string[]
1767
+ ];
1768
+ latitude: number;
1769
+ longitude: number;
1770
+ }, {
1771
+ type: [
1772
+ string,
1773
+ ...string[]
1774
+ ];
1775
+ latitude: number;
1776
+ longitude: number;
1777
+ }>>;
1778
+ }, "strip", z.ZodTypeAny, {
1779
+ addressCountry?: string | undefined;
1780
+ addressCountryCode?: string | undefined;
1781
+ addressRegion?: string | undefined;
1782
+ addressLocality?: string | undefined;
1783
+ streetAddress?: string | undefined;
1784
+ postOfficeBoxNumber?: string | undefined;
1785
+ postalCode?: string | undefined;
1786
+ geo?: {
1787
+ type: [
1788
+ string,
1789
+ ...string[]
1790
+ ];
1791
+ latitude: number;
1792
+ longitude: number;
1793
+ } | undefined;
1794
+ type: [
1795
+ string,
1796
+ ...string[]
1797
+ ];
1798
+ }, {
1799
+ addressCountry?: string | undefined;
1800
+ addressCountryCode?: string | undefined;
1801
+ addressRegion?: string | undefined;
1802
+ addressLocality?: string | undefined;
1803
+ streetAddress?: string | undefined;
1804
+ postOfficeBoxNumber?: string | undefined;
1805
+ postalCode?: string | undefined;
1806
+ geo?: {
1807
+ type: [
1808
+ string,
1809
+ ...string[]
1810
+ ];
1811
+ latitude: number;
1812
+ longitude: number;
1813
+ } | undefined;
1814
+ type: [
1815
+ string,
1816
+ ...string[]
1817
+ ];
1818
+ }>>;
1819
+ otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
1820
+ type: z.ZodArray<z.ZodString, "atleastone">;
1821
+ identifier: z.ZodString;
1822
+ identifierType: z.ZodUnion<[
1823
+ z.ZodEnum<[
1824
+ "sourcedId",
1825
+ "systemId",
1826
+ "productId",
1827
+ "userName",
1828
+ "accountId",
1829
+ "emailAddress",
1830
+ "nationalIdentityNumber",
1831
+ "isbn",
1832
+ "issn",
1833
+ "lisSourcedId",
1834
+ "oneRosterSourcedId",
1835
+ "sisSourcedId",
1836
+ "ltiContextId",
1837
+ "ltiDeploymentId",
1838
+ "ltiToolId",
1839
+ "ltiPlatformId",
1840
+ "ltiUserId",
1841
+ "identifier"
1842
+ ]>,
1843
+ z.ZodString
1844
+ ]>;
1845
+ }, "strip", z.ZodTypeAny, {
1846
+ type: [
1847
+ string,
1848
+ ...string[]
1849
+ ];
1850
+ identifier: string;
1851
+ identifierType: string;
1852
+ }, {
1853
+ type: [
1854
+ string,
1855
+ ...string[]
1856
+ ];
1857
+ identifier: string;
1858
+ identifierType: string;
1859
+ }>, "many">>;
1860
+ official: z.ZodOptional<z.ZodString>;
1861
+ parentOrg: z.ZodOptional<z.ZodAny>;
1862
+ familyName: z.ZodOptional<z.ZodString>;
1863
+ givenName: z.ZodOptional<z.ZodString>;
1864
+ additionalName: z.ZodOptional<z.ZodString>;
1865
+ patronymicName: z.ZodOptional<z.ZodString>;
1866
+ honorificPrefix: z.ZodOptional<z.ZodString>;
1867
+ honorificSuffix: z.ZodOptional<z.ZodString>;
1868
+ familyNamePrefix: z.ZodOptional<z.ZodString>;
1869
+ dateOfBirth: z.ZodOptional<z.ZodString>;
1870
+ }, "strip", z.ZodAny, {
1871
+ [x: string]: any;
1872
+ type?: [
1873
+ string,
1874
+ ...string[]
1875
+ ] | undefined;
1876
+ id?: string | undefined;
1877
+ name?: string | undefined;
1878
+ url?: string | undefined;
1879
+ phone?: string | undefined;
1880
+ description?: string | undefined;
1881
+ endorsement?: any[] | undefined;
1882
+ image?: string | {
1883
+ caption?: string | undefined;
1884
+ type: string;
1885
+ id: string;
1886
+ } | undefined;
1887
+ email?: string | undefined;
1888
+ address?: {
1889
+ addressCountry?: string | undefined;
1890
+ addressCountryCode?: string | undefined;
1891
+ addressRegion?: string | undefined;
1892
+ addressLocality?: string | undefined;
1893
+ streetAddress?: string | undefined;
1894
+ postOfficeBoxNumber?: string | undefined;
1895
+ postalCode?: string | undefined;
1896
+ geo?: {
1897
+ type: [
1898
+ string,
1899
+ ...string[]
1900
+ ];
1901
+ latitude: number;
1902
+ longitude: number;
1903
+ } | undefined;
1904
+ type: [
1905
+ string,
1906
+ ...string[]
1907
+ ];
1908
+ } | undefined;
1909
+ otherIdentifier?: {
1910
+ type: [
1911
+ string,
1912
+ ...string[]
1913
+ ];
1914
+ identifier: string;
1915
+ identifierType: string;
1916
+ }[] | undefined;
1917
+ official?: string | undefined;
1918
+ parentOrg?: any;
1919
+ familyName?: string | undefined;
1920
+ givenName?: string | undefined;
1921
+ additionalName?: string | undefined;
1922
+ patronymicName?: string | undefined;
1923
+ honorificPrefix?: string | undefined;
1924
+ honorificSuffix?: string | undefined;
1925
+ familyNamePrefix?: string | undefined;
1926
+ dateOfBirth?: string | undefined;
1927
+ }, {
1928
+ [x: string]: any;
1929
+ type?: [
1930
+ string,
1931
+ ...string[]
1932
+ ] | undefined;
1933
+ id?: string | undefined;
1934
+ name?: string | undefined;
1935
+ url?: string | undefined;
1936
+ phone?: string | undefined;
1937
+ description?: string | undefined;
1938
+ endorsement?: any[] | undefined;
1939
+ image?: string | {
1940
+ caption?: string | undefined;
1941
+ type: string;
1942
+ id: string;
1943
+ } | undefined;
1944
+ email?: string | undefined;
1945
+ address?: {
1946
+ addressCountry?: string | undefined;
1947
+ addressCountryCode?: string | undefined;
1948
+ addressRegion?: string | undefined;
1949
+ addressLocality?: string | undefined;
1950
+ streetAddress?: string | undefined;
1951
+ postOfficeBoxNumber?: string | undefined;
1952
+ postalCode?: string | undefined;
1953
+ geo?: {
1954
+ type: [
1955
+ string,
1956
+ ...string[]
1957
+ ];
1958
+ latitude: number;
1959
+ longitude: number;
1960
+ } | undefined;
1961
+ type: [
1962
+ string,
1963
+ ...string[]
1964
+ ];
1965
+ } | undefined;
1966
+ otherIdentifier?: {
1967
+ type: [
1968
+ string,
1969
+ ...string[]
1970
+ ];
1971
+ identifier: string;
1972
+ identifierType: string;
1973
+ }[] | undefined;
1974
+ official?: string | undefined;
1975
+ parentOrg?: any;
1976
+ familyName?: string | undefined;
1977
+ givenName?: string | undefined;
1978
+ additionalName?: string | undefined;
1979
+ patronymicName?: string | undefined;
1980
+ honorificPrefix?: string | undefined;
1981
+ honorificSuffix?: string | undefined;
1982
+ familyNamePrefix?: string | undefined;
1983
+ dateOfBirth?: string | undefined;
1984
+ }>
1985
+ ]>;
1986
+ issuanceDate: z.ZodString;
1987
+ expirationDate: z.ZodOptional<z.ZodString>;
1988
+ credentialSubject: z.ZodUnion<[
1989
+ z.ZodObject<{
1990
+ id: z.ZodOptional<z.ZodString>;
1991
+ }, "strip", z.ZodAny, {
1992
+ [x: string]: any;
1993
+ id?: string | undefined;
1994
+ }, {
1995
+ [x: string]: any;
1996
+ id?: string | undefined;
1997
+ }>,
1998
+ z.ZodArray<z.ZodObject<{
1999
+ id: z.ZodOptional<z.ZodString>;
2000
+ }, "strip", z.ZodAny, {
2001
+ [x: string]: any;
2002
+ id?: string | undefined;
2003
+ }, {
2004
+ [x: string]: any;
2005
+ id?: string | undefined;
2006
+ }>, "many">
2007
+ ]>;
2008
+ credentialStatus: z.ZodOptional<z.ZodObject<{
2009
+ type: z.ZodString;
2010
+ id: z.ZodString;
2011
+ }, "strip", z.ZodTypeAny, {
2012
+ type: string;
2013
+ id: string;
2014
+ }, {
2015
+ type: string;
2016
+ id: string;
2017
+ }>>;
2018
+ credentialSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
2019
+ id: z.ZodString;
2020
+ type: z.ZodString;
2021
+ }, "strip", z.ZodTypeAny, {
2022
+ type: string;
2023
+ id: string;
2024
+ }, {
2025
+ type: string;
2026
+ id: string;
2027
+ }>, "many">>;
2028
+ refreshService: z.ZodOptional<z.ZodObject<{
2029
+ id: z.ZodString;
1439
2030
  type: z.ZodString;
1440
- created: z.ZodString;
1441
- challenge: z.ZodOptional<z.ZodString>;
1442
- domain: z.ZodOptional<z.ZodString>;
1443
- nonce: z.ZodOptional<z.ZodString>;
1444
- proofPurpose: z.ZodLiteral<"assertionMethod">;
1445
- verificationMethod: z.ZodString;
1446
- jws: z.ZodOptional<z.ZodString>;
1447
2031
  }, "strip", z.ZodAny, {
2032
+ [x: string]: any;
2033
+ type: string;
2034
+ id: string;
2035
+ }, {
2036
+ [x: string]: any;
2037
+ type: string;
2038
+ id: string;
2039
+ }>>;
2040
+ }, {
2041
+ proof: z.ZodUnion<[
2042
+ z.ZodObject<{
2043
+ type: z.ZodString;
2044
+ created: z.ZodString;
2045
+ challenge: z.ZodOptional<z.ZodString>;
2046
+ domain: z.ZodOptional<z.ZodString>;
2047
+ nonce: z.ZodOptional<z.ZodString>;
2048
+ proofPurpose: z.ZodString;
2049
+ verificationMethod: z.ZodString;
2050
+ jws: z.ZodOptional<z.ZodString>;
2051
+ }, "strip", z.ZodAny, {
2052
+ [x: string]: any;
2053
+ challenge?: string | undefined;
2054
+ domain?: string | undefined;
2055
+ nonce?: string | undefined;
2056
+ jws?: string | undefined;
2057
+ type: string;
2058
+ created: string;
2059
+ proofPurpose: string;
2060
+ verificationMethod: string;
2061
+ }, {
2062
+ [x: string]: any;
2063
+ challenge?: string | undefined;
2064
+ domain?: string | undefined;
2065
+ nonce?: string | undefined;
2066
+ jws?: string | undefined;
2067
+ type: string;
2068
+ created: string;
2069
+ proofPurpose: string;
2070
+ verificationMethod: string;
2071
+ }>,
2072
+ z.ZodArray<z.ZodObject<{
2073
+ type: z.ZodString;
2074
+ created: z.ZodString;
2075
+ challenge: z.ZodOptional<z.ZodString>;
2076
+ domain: z.ZodOptional<z.ZodString>;
2077
+ nonce: z.ZodOptional<z.ZodString>;
2078
+ proofPurpose: z.ZodString;
2079
+ verificationMethod: z.ZodString;
2080
+ jws: z.ZodOptional<z.ZodString>;
2081
+ }, "strip", z.ZodAny, {
2082
+ [x: string]: any;
2083
+ challenge?: string | undefined;
2084
+ domain?: string | undefined;
2085
+ nonce?: string | undefined;
2086
+ jws?: string | undefined;
2087
+ type: string;
2088
+ created: string;
2089
+ proofPurpose: string;
2090
+ verificationMethod: string;
2091
+ }, {
2092
+ [x: string]: any;
2093
+ challenge?: string | undefined;
2094
+ domain?: string | undefined;
2095
+ nonce?: string | undefined;
2096
+ jws?: string | undefined;
2097
+ type: string;
2098
+ created: string;
2099
+ proofPurpose: string;
2100
+ verificationMethod: string;
2101
+ }>, "many">
2102
+ ]>;
2103
+ }>, "strip", z.ZodAny, {
2104
+ [x: string]: any;
2105
+ id?: string | undefined;
2106
+ expirationDate?: string | undefined;
2107
+ credentialStatus?: {
2108
+ type: string;
2109
+ id: string;
2110
+ } | undefined;
2111
+ credentialSchema?: {
2112
+ type: string;
2113
+ id: string;
2114
+ }[] | undefined;
2115
+ refreshService?: {
2116
+ [x: string]: any;
2117
+ type: string;
2118
+ id: string;
2119
+ } | undefined;
2120
+ type: [
2121
+ string,
2122
+ ...string[]
2123
+ ];
2124
+ "@context": string[];
2125
+ issuer: string | {
2126
+ [x: string]: any;
2127
+ type?: [
2128
+ string,
2129
+ ...string[]
2130
+ ] | undefined;
2131
+ id?: string | undefined;
2132
+ name?: string | undefined;
2133
+ url?: string | undefined;
2134
+ phone?: string | undefined;
2135
+ description?: string | undefined;
2136
+ endorsement?: any[] | undefined;
2137
+ image?: string | {
2138
+ caption?: string | undefined;
2139
+ type: string;
2140
+ id: string;
2141
+ } | undefined;
2142
+ email?: string | undefined;
2143
+ address?: {
2144
+ addressCountry?: string | undefined;
2145
+ addressCountryCode?: string | undefined;
2146
+ addressRegion?: string | undefined;
2147
+ addressLocality?: string | undefined;
2148
+ streetAddress?: string | undefined;
2149
+ postOfficeBoxNumber?: string | undefined;
2150
+ postalCode?: string | undefined;
2151
+ geo?: {
2152
+ type: [
2153
+ string,
2154
+ ...string[]
2155
+ ];
2156
+ latitude: number;
2157
+ longitude: number;
2158
+ } | undefined;
2159
+ type: [
2160
+ string,
2161
+ ...string[]
2162
+ ];
2163
+ } | undefined;
2164
+ otherIdentifier?: {
2165
+ type: [
2166
+ string,
2167
+ ...string[]
2168
+ ];
2169
+ identifier: string;
2170
+ identifierType: string;
2171
+ }[] | undefined;
2172
+ official?: string | undefined;
2173
+ parentOrg?: any;
2174
+ familyName?: string | undefined;
2175
+ givenName?: string | undefined;
2176
+ additionalName?: string | undefined;
2177
+ patronymicName?: string | undefined;
2178
+ honorificPrefix?: string | undefined;
2179
+ honorificSuffix?: string | undefined;
2180
+ familyNamePrefix?: string | undefined;
2181
+ dateOfBirth?: string | undefined;
2182
+ };
2183
+ issuanceDate: string;
2184
+ credentialSubject: {
2185
+ [x: string]: any;
2186
+ id?: string | undefined;
2187
+ } | {
2188
+ [x: string]: any;
2189
+ id?: string | undefined;
2190
+ }[];
2191
+ proof: {
1448
2192
  [x: string]: any;
1449
2193
  challenge?: string | undefined;
1450
2194
  domain?: string | undefined;
@@ -1452,9 +2196,9 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1452
2196
  jws?: string | undefined;
1453
2197
  type: string;
1454
2198
  created: string;
1455
- proofPurpose: "assertionMethod";
2199
+ proofPurpose: string;
1456
2200
  verificationMethod: string;
1457
- }, {
2201
+ } | {
1458
2202
  [x: string]: any;
1459
2203
  challenge?: string | undefined;
1460
2204
  domain?: string | undefined;
@@ -1462,19 +2206,98 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1462
2206
  jws?: string | undefined;
1463
2207
  type: string;
1464
2208
  created: string;
1465
- proofPurpose: "assertionMethod";
2209
+ proofPurpose: string;
1466
2210
  verificationMethod: string;
1467
- }>,
1468
- z.ZodArray<z.ZodObject<{
1469
- type: z.ZodString;
1470
- created: z.ZodString;
1471
- challenge: z.ZodOptional<z.ZodString>;
1472
- domain: z.ZodOptional<z.ZodString>;
1473
- nonce: z.ZodOptional<z.ZodString>;
1474
- proofPurpose: z.ZodLiteral<"assertionMethod">;
1475
- verificationMethod: z.ZodString;
1476
- jws: z.ZodOptional<z.ZodString>;
1477
- }, "strip", z.ZodAny, {
2211
+ }[];
2212
+ }, {
2213
+ [x: string]: any;
2214
+ id?: string | undefined;
2215
+ expirationDate?: string | undefined;
2216
+ credentialStatus?: {
2217
+ type: string;
2218
+ id: string;
2219
+ } | undefined;
2220
+ credentialSchema?: {
2221
+ type: string;
2222
+ id: string;
2223
+ }[] | undefined;
2224
+ refreshService?: {
2225
+ [x: string]: any;
2226
+ type: string;
2227
+ id: string;
2228
+ } | undefined;
2229
+ type: [
2230
+ string,
2231
+ ...string[]
2232
+ ];
2233
+ "@context": string[];
2234
+ issuer: string | {
2235
+ [x: string]: any;
2236
+ type?: [
2237
+ string,
2238
+ ...string[]
2239
+ ] | undefined;
2240
+ id?: string | undefined;
2241
+ name?: string | undefined;
2242
+ url?: string | undefined;
2243
+ phone?: string | undefined;
2244
+ description?: string | undefined;
2245
+ endorsement?: any[] | undefined;
2246
+ image?: string | {
2247
+ caption?: string | undefined;
2248
+ type: string;
2249
+ id: string;
2250
+ } | undefined;
2251
+ email?: string | undefined;
2252
+ address?: {
2253
+ addressCountry?: string | undefined;
2254
+ addressCountryCode?: string | undefined;
2255
+ addressRegion?: string | undefined;
2256
+ addressLocality?: string | undefined;
2257
+ streetAddress?: string | undefined;
2258
+ postOfficeBoxNumber?: string | undefined;
2259
+ postalCode?: string | undefined;
2260
+ geo?: {
2261
+ type: [
2262
+ string,
2263
+ ...string[]
2264
+ ];
2265
+ latitude: number;
2266
+ longitude: number;
2267
+ } | undefined;
2268
+ type: [
2269
+ string,
2270
+ ...string[]
2271
+ ];
2272
+ } | undefined;
2273
+ otherIdentifier?: {
2274
+ type: [
2275
+ string,
2276
+ ...string[]
2277
+ ];
2278
+ identifier: string;
2279
+ identifierType: string;
2280
+ }[] | undefined;
2281
+ official?: string | undefined;
2282
+ parentOrg?: any;
2283
+ familyName?: string | undefined;
2284
+ givenName?: string | undefined;
2285
+ additionalName?: string | undefined;
2286
+ patronymicName?: string | undefined;
2287
+ honorificPrefix?: string | undefined;
2288
+ honorificSuffix?: string | undefined;
2289
+ familyNamePrefix?: string | undefined;
2290
+ dateOfBirth?: string | undefined;
2291
+ };
2292
+ issuanceDate: string;
2293
+ credentialSubject: {
2294
+ [x: string]: any;
2295
+ id?: string | undefined;
2296
+ } | {
2297
+ [x: string]: any;
2298
+ id?: string | undefined;
2299
+ }[];
2300
+ proof: {
1478
2301
  [x: string]: any;
1479
2302
  challenge?: string | undefined;
1480
2303
  domain?: string | undefined;
@@ -1482,9 +2305,9 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1482
2305
  jws?: string | undefined;
1483
2306
  type: string;
1484
2307
  created: string;
1485
- proofPurpose: "assertionMethod";
2308
+ proofPurpose: string;
1486
2309
  verificationMethod: string;
1487
- }, {
2310
+ } | {
1488
2311
  [x: string]: any;
1489
2312
  challenge?: string | undefined;
1490
2313
  domain?: string | undefined;
@@ -1492,11 +2315,106 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1492
2315
  jws?: string | undefined;
1493
2316
  type: string;
1494
2317
  created: string;
1495
- proofPurpose: "assertionMethod";
2318
+ proofPurpose: string;
1496
2319
  verificationMethod: string;
1497
- }>, "many">
1498
- ]>;
1499
- }>, "strip", z.ZodAny, {
2320
+ }[];
2321
+ }>, "many">
2322
+ ]>;
2323
+ holder: z.ZodOptional<z.ZodString>;
2324
+ }, {
2325
+ proof: z.ZodUnion<[
2326
+ z.ZodObject<{
2327
+ type: z.ZodString;
2328
+ created: z.ZodString;
2329
+ challenge: z.ZodOptional<z.ZodString>;
2330
+ domain: z.ZodOptional<z.ZodString>;
2331
+ nonce: z.ZodOptional<z.ZodString>;
2332
+ proofPurpose: z.ZodString;
2333
+ verificationMethod: z.ZodString;
2334
+ jws: z.ZodOptional<z.ZodString>;
2335
+ }, "strip", z.ZodAny, {
2336
+ [x: string]: any;
2337
+ challenge?: string | undefined;
2338
+ domain?: string | undefined;
2339
+ nonce?: string | undefined;
2340
+ jws?: string | undefined;
2341
+ type: string;
2342
+ created: string;
2343
+ proofPurpose: string;
2344
+ verificationMethod: string;
2345
+ }, {
2346
+ [x: string]: any;
2347
+ challenge?: string | undefined;
2348
+ domain?: string | undefined;
2349
+ nonce?: string | undefined;
2350
+ jws?: string | undefined;
2351
+ type: string;
2352
+ created: string;
2353
+ proofPurpose: string;
2354
+ verificationMethod: string;
2355
+ }>,
2356
+ z.ZodArray<z.ZodObject<{
2357
+ type: z.ZodString;
2358
+ created: z.ZodString;
2359
+ challenge: z.ZodOptional<z.ZodString>;
2360
+ domain: z.ZodOptional<z.ZodString>;
2361
+ nonce: z.ZodOptional<z.ZodString>;
2362
+ proofPurpose: z.ZodString;
2363
+ verificationMethod: z.ZodString;
2364
+ jws: z.ZodOptional<z.ZodString>;
2365
+ }, "strip", z.ZodAny, {
2366
+ [x: string]: any;
2367
+ challenge?: string | undefined;
2368
+ domain?: string | undefined;
2369
+ nonce?: string | undefined;
2370
+ jws?: string | undefined;
2371
+ type: string;
2372
+ created: string;
2373
+ proofPurpose: string;
2374
+ verificationMethod: string;
2375
+ }, {
2376
+ [x: string]: any;
2377
+ challenge?: string | undefined;
2378
+ domain?: string | undefined;
2379
+ nonce?: string | undefined;
2380
+ jws?: string | undefined;
2381
+ type: string;
2382
+ created: string;
2383
+ proofPurpose: string;
2384
+ verificationMethod: string;
2385
+ }>, "many">
2386
+ ]>;
2387
+ }>, "strip", z.ZodAny, {
2388
+ [x: string]: any;
2389
+ id?: string | undefined;
2390
+ holder?: string | undefined;
2391
+ type: [
2392
+ string,
2393
+ ...string[]
2394
+ ];
2395
+ "@context": string[];
2396
+ proof: {
2397
+ [x: string]: any;
2398
+ challenge?: string | undefined;
2399
+ domain?: string | undefined;
2400
+ nonce?: string | undefined;
2401
+ jws?: string | undefined;
2402
+ type: string;
2403
+ created: string;
2404
+ proofPurpose: string;
2405
+ verificationMethod: string;
2406
+ } | {
2407
+ [x: string]: any;
2408
+ challenge?: string | undefined;
2409
+ domain?: string | undefined;
2410
+ nonce?: string | undefined;
2411
+ jws?: string | undefined;
2412
+ type: string;
2413
+ created: string;
2414
+ proofPurpose: string;
2415
+ verificationMethod: string;
2416
+ }[];
2417
+ verifiableCredential: {
1500
2418
  [x: string]: any;
1501
2419
  id?: string | undefined;
1502
2420
  expirationDate?: string | undefined;
@@ -1520,6 +2438,10 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1520
2438
  "@context": string[];
1521
2439
  issuer: string | {
1522
2440
  [x: string]: any;
2441
+ type?: [
2442
+ string,
2443
+ ...string[]
2444
+ ] | undefined;
1523
2445
  id?: string | undefined;
1524
2446
  name?: string | undefined;
1525
2447
  url?: string | undefined;
@@ -1571,10 +2493,6 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1571
2493
  honorificSuffix?: string | undefined;
1572
2494
  familyNamePrefix?: string | undefined;
1573
2495
  dateOfBirth?: string | undefined;
1574
- type: [
1575
- string,
1576
- ...string[]
1577
- ];
1578
2496
  };
1579
2497
  issuanceDate: string;
1580
2498
  credentialSubject: {
@@ -1592,7 +2510,7 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1592
2510
  jws?: string | undefined;
1593
2511
  type: string;
1594
2512
  created: string;
1595
- proofPurpose: "assertionMethod";
2513
+ proofPurpose: string;
1596
2514
  verificationMethod: string;
1597
2515
  } | {
1598
2516
  [x: string]: any;
@@ -1602,10 +2520,10 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1602
2520
  jws?: string | undefined;
1603
2521
  type: string;
1604
2522
  created: string;
1605
- proofPurpose: "assertionMethod";
2523
+ proofPurpose: string;
1606
2524
  verificationMethod: string;
1607
2525
  }[];
1608
- }, {
2526
+ } | {
1609
2527
  [x: string]: any;
1610
2528
  id?: string | undefined;
1611
2529
  expirationDate?: string | undefined;
@@ -1629,6 +2547,10 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1629
2547
  "@context": string[];
1630
2548
  issuer: string | {
1631
2549
  [x: string]: any;
2550
+ type?: [
2551
+ string,
2552
+ ...string[]
2553
+ ] | undefined;
1632
2554
  id?: string | undefined;
1633
2555
  name?: string | undefined;
1634
2556
  url?: string | undefined;
@@ -1680,10 +2602,6 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1680
2602
  honorificSuffix?: string | undefined;
1681
2603
  familyNamePrefix?: string | undefined;
1682
2604
  dateOfBirth?: string | undefined;
1683
- type: [
1684
- string,
1685
- ...string[]
1686
- ];
1687
2605
  };
1688
2606
  issuanceDate: string;
1689
2607
  credentialSubject: {
@@ -1701,7 +2619,7 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1701
2619
  jws?: string | undefined;
1702
2620
  type: string;
1703
2621
  created: string;
1704
- proofPurpose: "assertionMethod";
2622
+ proofPurpose: string;
1705
2623
  verificationMethod: string;
1706
2624
  } | {
1707
2625
  [x: string]: any;
@@ -1711,75 +2629,11 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1711
2629
  jws?: string | undefined;
1712
2630
  type: string;
1713
2631
  created: string;
1714
- proofPurpose: "assertionMethod";
2632
+ proofPurpose: string;
1715
2633
  verificationMethod: string;
1716
2634
  }[];
1717
- }>;
1718
- holder: z.ZodOptional<z.ZodString>;
2635
+ }[];
1719
2636
  }, {
1720
- proof: z.ZodUnion<[
1721
- z.ZodObject<{
1722
- type: z.ZodString;
1723
- created: z.ZodString;
1724
- challenge: z.ZodOptional<z.ZodString>;
1725
- domain: z.ZodOptional<z.ZodString>;
1726
- nonce: z.ZodOptional<z.ZodString>;
1727
- proofPurpose: z.ZodLiteral<"assertionMethod">;
1728
- verificationMethod: z.ZodString;
1729
- jws: z.ZodOptional<z.ZodString>;
1730
- }, "strip", z.ZodAny, {
1731
- [x: string]: any;
1732
- challenge?: string | undefined;
1733
- domain?: string | undefined;
1734
- nonce?: string | undefined;
1735
- jws?: string | undefined;
1736
- type: string;
1737
- created: string;
1738
- proofPurpose: "assertionMethod";
1739
- verificationMethod: string;
1740
- }, {
1741
- [x: string]: any;
1742
- challenge?: string | undefined;
1743
- domain?: string | undefined;
1744
- nonce?: string | undefined;
1745
- jws?: string | undefined;
1746
- type: string;
1747
- created: string;
1748
- proofPurpose: "assertionMethod";
1749
- verificationMethod: string;
1750
- }>,
1751
- z.ZodArray<z.ZodObject<{
1752
- type: z.ZodString;
1753
- created: z.ZodString;
1754
- challenge: z.ZodOptional<z.ZodString>;
1755
- domain: z.ZodOptional<z.ZodString>;
1756
- nonce: z.ZodOptional<z.ZodString>;
1757
- proofPurpose: z.ZodLiteral<"assertionMethod">;
1758
- verificationMethod: z.ZodString;
1759
- jws: z.ZodOptional<z.ZodString>;
1760
- }, "strip", z.ZodAny, {
1761
- [x: string]: any;
1762
- challenge?: string | undefined;
1763
- domain?: string | undefined;
1764
- nonce?: string | undefined;
1765
- jws?: string | undefined;
1766
- type: string;
1767
- created: string;
1768
- proofPurpose: "assertionMethod";
1769
- verificationMethod: string;
1770
- }, {
1771
- [x: string]: any;
1772
- challenge?: string | undefined;
1773
- domain?: string | undefined;
1774
- nonce?: string | undefined;
1775
- jws?: string | undefined;
1776
- type: string;
1777
- created: string;
1778
- proofPurpose: "assertionMethod";
1779
- verificationMethod: string;
1780
- }>, "many">
1781
- ]>;
1782
- }>, "strip", z.ZodAny, {
1783
2637
  [x: string]: any;
1784
2638
  id?: string | undefined;
1785
2639
  holder?: string | undefined;
@@ -1796,7 +2650,7 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1796
2650
  jws?: string | undefined;
1797
2651
  type: string;
1798
2652
  created: string;
1799
- proofPurpose: "assertionMethod";
2653
+ proofPurpose: string;
1800
2654
  verificationMethod: string;
1801
2655
  } | {
1802
2656
  [x: string]: any;
@@ -1806,7 +2660,7 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1806
2660
  jws?: string | undefined;
1807
2661
  type: string;
1808
2662
  created: string;
1809
- proofPurpose: "assertionMethod";
2663
+ proofPurpose: string;
1810
2664
  verificationMethod: string;
1811
2665
  }[];
1812
2666
  verifiableCredential: {
@@ -1833,6 +2687,10 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1833
2687
  "@context": string[];
1834
2688
  issuer: string | {
1835
2689
  [x: string]: any;
2690
+ type?: [
2691
+ string,
2692
+ ...string[]
2693
+ ] | undefined;
1836
2694
  id?: string | undefined;
1837
2695
  name?: string | undefined;
1838
2696
  url?: string | undefined;
@@ -1884,10 +2742,6 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1884
2742
  honorificSuffix?: string | undefined;
1885
2743
  familyNamePrefix?: string | undefined;
1886
2744
  dateOfBirth?: string | undefined;
1887
- type: [
1888
- string,
1889
- ...string[]
1890
- ];
1891
2745
  };
1892
2746
  issuanceDate: string;
1893
2747
  credentialSubject: {
@@ -1905,7 +2759,7 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1905
2759
  jws?: string | undefined;
1906
2760
  type: string;
1907
2761
  created: string;
1908
- proofPurpose: "assertionMethod";
2762
+ proofPurpose: string;
1909
2763
  verificationMethod: string;
1910
2764
  } | {
1911
2765
  [x: string]: any;
@@ -1915,41 +2769,10 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1915
2769
  jws?: string | undefined;
1916
2770
  type: string;
1917
2771
  created: string;
1918
- proofPurpose: "assertionMethod";
2772
+ proofPurpose: string;
1919
2773
  verificationMethod: string;
1920
2774
  }[];
1921
- };
1922
- }, {
1923
- [x: string]: any;
1924
- id?: string | undefined;
1925
- holder?: string | undefined;
1926
- type: [
1927
- string,
1928
- ...string[]
1929
- ];
1930
- "@context": string[];
1931
- proof: {
1932
- [x: string]: any;
1933
- challenge?: string | undefined;
1934
- domain?: string | undefined;
1935
- nonce?: string | undefined;
1936
- jws?: string | undefined;
1937
- type: string;
1938
- created: string;
1939
- proofPurpose: "assertionMethod";
1940
- verificationMethod: string;
1941
2775
  } | {
1942
- [x: string]: any;
1943
- challenge?: string | undefined;
1944
- domain?: string | undefined;
1945
- nonce?: string | undefined;
1946
- jws?: string | undefined;
1947
- type: string;
1948
- created: string;
1949
- proofPurpose: "assertionMethod";
1950
- verificationMethod: string;
1951
- }[];
1952
- verifiableCredential: {
1953
2776
  [x: string]: any;
1954
2777
  id?: string | undefined;
1955
2778
  expirationDate?: string | undefined;
@@ -1973,6 +2796,10 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
1973
2796
  "@context": string[];
1974
2797
  issuer: string | {
1975
2798
  [x: string]: any;
2799
+ type?: [
2800
+ string,
2801
+ ...string[]
2802
+ ] | undefined;
1976
2803
  id?: string | undefined;
1977
2804
  name?: string | undefined;
1978
2805
  url?: string | undefined;
@@ -2024,10 +2851,6 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
2024
2851
  honorificSuffix?: string | undefined;
2025
2852
  familyNamePrefix?: string | undefined;
2026
2853
  dateOfBirth?: string | undefined;
2027
- type: [
2028
- string,
2029
- ...string[]
2030
- ];
2031
2854
  };
2032
2855
  issuanceDate: string;
2033
2856
  credentialSubject: {
@@ -2045,7 +2868,7 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
2045
2868
  jws?: string | undefined;
2046
2869
  type: string;
2047
2870
  created: string;
2048
- proofPurpose: "assertionMethod";
2871
+ proofPurpose: string;
2049
2872
  verificationMethod: string;
2050
2873
  } | {
2051
2874
  [x: string]: any;
@@ -2055,10 +2878,10 @@ declare const VPValidator: z.ZodObject<z.extendShape<{
2055
2878
  jws?: string | undefined;
2056
2879
  type: string;
2057
2880
  created: string;
2058
- proofPurpose: "assertionMethod";
2881
+ proofPurpose: string;
2059
2882
  verificationMethod: string;
2060
2883
  }[];
2061
- };
2884
+ }[];
2062
2885
  }>;
2063
2886
  export declare type VP = z.infer<typeof VPValidator>;
2064
2887
  declare const VerificationItemValidator: z.ZodObject<{
@@ -2084,7 +2907,12 @@ declare const VerificationItemValidator: z.ZodObject<{
2084
2907
  export declare type VerificationItem = z.infer<typeof VerificationItemValidator>;
2085
2908
  export declare type DidKeyPluginMethods = {
2086
2909
  getSubjectDid: () => string;
2087
- getSubjectKeypair: () => Record<string, string>;
2910
+ getSubjectKeypair: () => {
2911
+ kty: string;
2912
+ crv: string;
2913
+ x: string;
2914
+ d: string;
2915
+ };
2088
2916
  getKey: () => string;
2089
2917
  };
2090
2918
  export declare type IDXPluginMethods = {
@@ -2155,7 +2983,12 @@ export declare type LearnCardWallet = {
2155
2983
  /** Wallet holder's did */
2156
2984
  did: string;
2157
2985
  /** Wallet holder's ed25519 key pair */
2158
- keypair: Record<string, string>;
2986
+ keypair: {
2987
+ kty: string;
2988
+ crv: string;
2989
+ x: string;
2990
+ d: string;
2991
+ };
2159
2992
  /** Signs an unsigned Verifiable Credential, returning the signed VC */
2160
2993
  issueCredential: (credential: UnsignedVC) => Promise<VC>;
2161
2994
  /**