@openid4vc/openid4vci 0.3.0-alpha-20251107125344 → 0.3.0-alpha-20251107125937
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/index.cjs +3 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -195
- package/dist/index.d.mts +23 -195
- package/dist/index.mjs +3 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -64,8 +64,7 @@ declare const zCredentialConfigurationSupportedCommon: z.ZodObject<{
|
|
|
64
64
|
}, z.core.$loose>>;
|
|
65
65
|
text_color: z.ZodOptional<z.ZodString>;
|
|
66
66
|
}, z.core.$loose>>>;
|
|
67
|
-
}, z.core.$
|
|
68
|
-
claims: z.ZodOptional<z.ZodNever>;
|
|
67
|
+
}, z.core.$loose>>;
|
|
69
68
|
}, z.core.$loose>;
|
|
70
69
|
//#endregion
|
|
71
70
|
//#region src/metadata/credential-issuer/z-credential-issuer-metadata.d.ts
|
|
@@ -90,7 +89,6 @@ declare const allCredentialIssuerMetadataFormats: readonly [z.ZodObject<{
|
|
|
90
89
|
}>, z.ZodString]>>>;
|
|
91
90
|
}, z.core.$loose>>;
|
|
92
91
|
}, z.core.$strip>>>;
|
|
93
|
-
claims: z.ZodOptional<z.ZodNever>;
|
|
94
92
|
vct: z.ZodString;
|
|
95
93
|
format: z.ZodLiteral<"dc+sd-jwt">;
|
|
96
94
|
credential_metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -116,7 +114,7 @@ declare const allCredentialIssuerMetadataFormats: readonly [z.ZodObject<{
|
|
|
116
114
|
locale: z.ZodOptional<z.ZodString>;
|
|
117
115
|
}, z.core.$loose>>>;
|
|
118
116
|
}, z.core.$loose>>>;
|
|
119
|
-
}, z.core.$
|
|
117
|
+
}, z.core.$loose>>;
|
|
120
118
|
}, z.core.$loose>, z.ZodObject<{
|
|
121
119
|
scope: z.ZodOptional<z.ZodString>;
|
|
122
120
|
cryptographic_binding_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -138,7 +136,6 @@ declare const allCredentialIssuerMetadataFormats: readonly [z.ZodObject<{
|
|
|
138
136
|
}>, z.ZodString]>>>;
|
|
139
137
|
}, z.core.$loose>>;
|
|
140
138
|
}, z.core.$strip>>>;
|
|
141
|
-
claims: z.ZodOptional<z.ZodNever>;
|
|
142
139
|
format: z.ZodLiteral<"mso_mdoc">;
|
|
143
140
|
doctype: z.ZodString;
|
|
144
141
|
credential_metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -162,9 +159,9 @@ declare const allCredentialIssuerMetadataFormats: readonly [z.ZodObject<{
|
|
|
162
159
|
name: z.ZodOptional<z.ZodString>;
|
|
163
160
|
locale: z.ZodOptional<z.ZodString>;
|
|
164
161
|
}, z.core.$loose>>>;
|
|
165
|
-
path: z.ZodTuple<[z.ZodString, z.ZodString],
|
|
162
|
+
path: z.ZodTuple<[z.ZodString, z.ZodString], z.ZodString>;
|
|
166
163
|
}, z.core.$loose>>>;
|
|
167
|
-
}, z.core.$
|
|
164
|
+
}, z.core.$loose>>;
|
|
168
165
|
}, z.core.$loose>, z.ZodObject<{
|
|
169
166
|
scope: z.ZodOptional<z.ZodString>;
|
|
170
167
|
cryptographic_binding_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -186,7 +183,6 @@ declare const allCredentialIssuerMetadataFormats: readonly [z.ZodObject<{
|
|
|
186
183
|
}>, z.ZodString]>>>;
|
|
187
184
|
}, z.core.$loose>>;
|
|
188
185
|
}, z.core.$strip>>>;
|
|
189
|
-
claims: z.ZodOptional<z.ZodNever>;
|
|
190
186
|
format: z.ZodLiteral<"jwt_vc_json-ld">;
|
|
191
187
|
credential_definition: z.ZodObject<{
|
|
192
188
|
'@context': z.ZodArray<z.ZodString>;
|
|
@@ -215,7 +211,7 @@ declare const allCredentialIssuerMetadataFormats: readonly [z.ZodObject<{
|
|
|
215
211
|
locale: z.ZodOptional<z.ZodString>;
|
|
216
212
|
}, z.core.$loose>>>;
|
|
217
213
|
}, z.core.$loose>>>;
|
|
218
|
-
}, z.core.$
|
|
214
|
+
}, z.core.$loose>>;
|
|
219
215
|
}, z.core.$loose>, z.ZodObject<{
|
|
220
216
|
scope: z.ZodOptional<z.ZodString>;
|
|
221
217
|
cryptographic_binding_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -237,7 +233,6 @@ declare const allCredentialIssuerMetadataFormats: readonly [z.ZodObject<{
|
|
|
237
233
|
}>, z.ZodString]>>>;
|
|
238
234
|
}, z.core.$loose>>;
|
|
239
235
|
}, z.core.$strip>>>;
|
|
240
|
-
claims: z.ZodOptional<z.ZodNever>;
|
|
241
236
|
format: z.ZodLiteral<"ldp_vc">;
|
|
242
237
|
credential_definition: z.ZodObject<{
|
|
243
238
|
'@context': z.ZodArray<z.ZodString>;
|
|
@@ -266,7 +261,7 @@ declare const allCredentialIssuerMetadataFormats: readonly [z.ZodObject<{
|
|
|
266
261
|
locale: z.ZodOptional<z.ZodString>;
|
|
267
262
|
}, z.core.$loose>>>;
|
|
268
263
|
}, z.core.$loose>>>;
|
|
269
|
-
}, z.core.$
|
|
264
|
+
}, z.core.$loose>>;
|
|
270
265
|
}, z.core.$loose>, z.ZodObject<{
|
|
271
266
|
scope: z.ZodOptional<z.ZodString>;
|
|
272
267
|
cryptographic_binding_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -288,7 +283,6 @@ declare const allCredentialIssuerMetadataFormats: readonly [z.ZodObject<{
|
|
|
288
283
|
}>, z.ZodString]>>>;
|
|
289
284
|
}, z.core.$loose>>;
|
|
290
285
|
}, z.core.$strip>>>;
|
|
291
|
-
claims: z.ZodOptional<z.ZodNever>;
|
|
292
286
|
format: z.ZodLiteral<"jwt_vc_json">;
|
|
293
287
|
credential_definition: z.ZodObject<{
|
|
294
288
|
type: z.ZodTuple<[z.ZodString], z.ZodString>;
|
|
@@ -316,7 +310,7 @@ declare const allCredentialIssuerMetadataFormats: readonly [z.ZodObject<{
|
|
|
316
310
|
locale: z.ZodOptional<z.ZodString>;
|
|
317
311
|
}, z.core.$loose>>>;
|
|
318
312
|
}, z.core.$loose>>>;
|
|
319
|
-
}, z.core.$
|
|
313
|
+
}, z.core.$loose>>;
|
|
320
314
|
}, z.core.$loose>, z.ZodObject<{
|
|
321
315
|
scope: z.ZodOptional<z.ZodString>;
|
|
322
316
|
cryptographic_binding_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -338,7 +332,6 @@ declare const allCredentialIssuerMetadataFormats: readonly [z.ZodObject<{
|
|
|
338
332
|
}>, z.ZodString]>>>;
|
|
339
333
|
}, z.core.$loose>>;
|
|
340
334
|
}, z.core.$strip>>>;
|
|
341
|
-
claims: z.ZodOptional<z.ZodNever>;
|
|
342
335
|
format: z.ZodLiteral<"vc+sd-jwt">;
|
|
343
336
|
credential_definition: z.ZodObject<{
|
|
344
337
|
type: z.ZodTuple<[z.ZodString], z.ZodString>;
|
|
@@ -366,7 +359,7 @@ declare const allCredentialIssuerMetadataFormats: readonly [z.ZodObject<{
|
|
|
366
359
|
locale: z.ZodOptional<z.ZodString>;
|
|
367
360
|
}, z.core.$loose>>>;
|
|
368
361
|
}, z.core.$loose>>>;
|
|
369
|
-
}, z.core.$
|
|
362
|
+
}, z.core.$loose>>;
|
|
370
363
|
vct: z.ZodOptional<z.ZodNever>;
|
|
371
364
|
}, z.core.$loose>, z.ZodObject<{
|
|
372
365
|
scope: z.ZodOptional<z.ZodString>;
|
|
@@ -438,7 +431,6 @@ declare const allCredentialIssuerMetadataFormats: readonly [z.ZodObject<{
|
|
|
438
431
|
}>, z.ZodString]>>>;
|
|
439
432
|
}, z.core.$loose>>;
|
|
440
433
|
}, z.core.$strip>>>;
|
|
441
|
-
claims: z.ZodOptional<z.ZodNever>;
|
|
442
434
|
vct: z.ZodString;
|
|
443
435
|
format: z.ZodLiteral<"vc+sd-jwt">;
|
|
444
436
|
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -465,7 +457,7 @@ declare const allCredentialIssuerMetadataFormats: readonly [z.ZodObject<{
|
|
|
465
457
|
locale: z.ZodOptional<z.ZodString>;
|
|
466
458
|
}, z.core.$loose>>>;
|
|
467
459
|
}, z.core.$loose>>>;
|
|
468
|
-
}, z.core.$
|
|
460
|
+
}, z.core.$loose>>;
|
|
469
461
|
credential_definition: z.ZodOptional<z.ZodNever>;
|
|
470
462
|
}, z.core.$loose>, z.ZodObject<{
|
|
471
463
|
scope: z.ZodOptional<z.ZodString>;
|
|
@@ -557,7 +549,7 @@ declare const allCredentialIssuerMetadataFormats: readonly [z.ZodObject<{
|
|
|
557
549
|
name: z.ZodOptional<z.ZodString>;
|
|
558
550
|
locale: z.ZodOptional<z.ZodString>;
|
|
559
551
|
}, z.core.$loose>>>;
|
|
560
|
-
path: z.ZodTuple<[z.ZodString, z.ZodString],
|
|
552
|
+
path: z.ZodTuple<[z.ZodString, z.ZodString], z.ZodString>;
|
|
561
553
|
}, z.core.$loose>>>;
|
|
562
554
|
}, z.core.$loose>, z.ZodObject<{
|
|
563
555
|
scope: z.ZodOptional<z.ZodString>;
|
|
@@ -973,8 +965,7 @@ declare const zCredentialConfigurationSupportedWithFormats: z.ZodPipe<z.ZodUnion
|
|
|
973
965
|
}, z.core.$loose>>;
|
|
974
966
|
text_color: z.ZodOptional<z.ZodString>;
|
|
975
967
|
}, z.core.$loose>>>;
|
|
976
|
-
}, z.core.$
|
|
977
|
-
claims: z.ZodOptional<z.ZodNever>;
|
|
968
|
+
}, z.core.$loose>>;
|
|
978
969
|
}, z.core.$loose>, z.ZodObject<{
|
|
979
970
|
format: z.ZodString;
|
|
980
971
|
scope: z.ZodOptional<z.ZodString>;
|
|
@@ -1027,6 +1018,7 @@ declare const zCredentialConfigurationSupportedWithFormats: z.ZodPipe<z.ZodUnion
|
|
|
1027
1018
|
} | undefined;
|
|
1028
1019
|
}> | undefined;
|
|
1029
1020
|
credential_metadata?: {
|
|
1021
|
+
[x: string]: unknown;
|
|
1030
1022
|
display?: {
|
|
1031
1023
|
[x: string]: unknown;
|
|
1032
1024
|
name: string;
|
|
@@ -1045,39 +1037,6 @@ declare const zCredentialConfigurationSupportedWithFormats: z.ZodPipe<z.ZodUnion
|
|
|
1045
1037
|
text_color?: string | undefined;
|
|
1046
1038
|
}[] | undefined;
|
|
1047
1039
|
} | undefined;
|
|
1048
|
-
claims?: undefined;
|
|
1049
|
-
} | {
|
|
1050
|
-
[x: string]: unknown;
|
|
1051
|
-
format: string;
|
|
1052
|
-
scope?: string | undefined;
|
|
1053
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1054
|
-
credential_signing_alg_values_supported?: string[] | number[] | undefined;
|
|
1055
|
-
proof_types_supported?: Record<string, {
|
|
1056
|
-
proof_signing_alg_values_supported: string[];
|
|
1057
|
-
key_attestations_required?: {
|
|
1058
|
-
[x: string]: unknown;
|
|
1059
|
-
key_storage?: string[] | undefined;
|
|
1060
|
-
user_authentication?: string[] | undefined;
|
|
1061
|
-
} | undefined;
|
|
1062
|
-
}> | undefined;
|
|
1063
|
-
display?: {
|
|
1064
|
-
[x: string]: unknown;
|
|
1065
|
-
name: string;
|
|
1066
|
-
locale?: string | undefined;
|
|
1067
|
-
logo?: {
|
|
1068
|
-
[x: string]: unknown;
|
|
1069
|
-
uri?: string | undefined;
|
|
1070
|
-
alt_text?: string | undefined;
|
|
1071
|
-
} | undefined;
|
|
1072
|
-
description?: string | undefined;
|
|
1073
|
-
background_color?: string | undefined;
|
|
1074
|
-
background_image?: {
|
|
1075
|
-
[x: string]: unknown;
|
|
1076
|
-
uri?: string | undefined;
|
|
1077
|
-
} | undefined;
|
|
1078
|
-
text_color?: string | undefined;
|
|
1079
|
-
}[] | undefined;
|
|
1080
|
-
credential_metadata?: undefined;
|
|
1081
1040
|
}, {
|
|
1082
1041
|
[x: string]: unknown;
|
|
1083
1042
|
format: string;
|
|
@@ -1093,6 +1052,7 @@ declare const zCredentialConfigurationSupportedWithFormats: z.ZodPipe<z.ZodUnion
|
|
|
1093
1052
|
} | undefined;
|
|
1094
1053
|
}> | undefined;
|
|
1095
1054
|
credential_metadata?: {
|
|
1055
|
+
[x: string]: unknown;
|
|
1096
1056
|
display?: {
|
|
1097
1057
|
[x: string]: unknown;
|
|
1098
1058
|
name: string;
|
|
@@ -1111,7 +1071,6 @@ declare const zCredentialConfigurationSupportedWithFormats: z.ZodPipe<z.ZodUnion
|
|
|
1111
1071
|
text_color?: string | undefined;
|
|
1112
1072
|
}[] | undefined;
|
|
1113
1073
|
} | undefined;
|
|
1114
|
-
claims?: undefined;
|
|
1115
1074
|
} | {
|
|
1116
1075
|
[x: string]: unknown;
|
|
1117
1076
|
format: string;
|
|
@@ -1221,8 +1180,7 @@ declare const zCredentialIssuerMetadataDraft14Draft15V1: z.ZodObject<{
|
|
|
1221
1180
|
}, z.core.$loose>>;
|
|
1222
1181
|
text_color: z.ZodOptional<z.ZodString>;
|
|
1223
1182
|
}, z.core.$loose>>>;
|
|
1224
|
-
}, z.core.$
|
|
1225
|
-
claims: z.ZodOptional<z.ZodNever>;
|
|
1183
|
+
}, z.core.$loose>>;
|
|
1226
1184
|
}, z.core.$loose>, z.ZodObject<{
|
|
1227
1185
|
format: z.ZodString;
|
|
1228
1186
|
scope: z.ZodOptional<z.ZodString>;
|
|
@@ -1275,6 +1233,7 @@ declare const zCredentialIssuerMetadataDraft14Draft15V1: z.ZodObject<{
|
|
|
1275
1233
|
} | undefined;
|
|
1276
1234
|
}> | undefined;
|
|
1277
1235
|
credential_metadata?: {
|
|
1236
|
+
[x: string]: unknown;
|
|
1278
1237
|
display?: {
|
|
1279
1238
|
[x: string]: unknown;
|
|
1280
1239
|
name: string;
|
|
@@ -1293,39 +1252,6 @@ declare const zCredentialIssuerMetadataDraft14Draft15V1: z.ZodObject<{
|
|
|
1293
1252
|
text_color?: string | undefined;
|
|
1294
1253
|
}[] | undefined;
|
|
1295
1254
|
} | undefined;
|
|
1296
|
-
claims?: undefined;
|
|
1297
|
-
} | {
|
|
1298
|
-
[x: string]: unknown;
|
|
1299
|
-
format: string;
|
|
1300
|
-
scope?: string | undefined;
|
|
1301
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1302
|
-
credential_signing_alg_values_supported?: string[] | number[] | undefined;
|
|
1303
|
-
proof_types_supported?: Record<string, {
|
|
1304
|
-
proof_signing_alg_values_supported: string[];
|
|
1305
|
-
key_attestations_required?: {
|
|
1306
|
-
[x: string]: unknown;
|
|
1307
|
-
key_storage?: string[] | undefined;
|
|
1308
|
-
user_authentication?: string[] | undefined;
|
|
1309
|
-
} | undefined;
|
|
1310
|
-
}> | undefined;
|
|
1311
|
-
display?: {
|
|
1312
|
-
[x: string]: unknown;
|
|
1313
|
-
name: string;
|
|
1314
|
-
locale?: string | undefined;
|
|
1315
|
-
logo?: {
|
|
1316
|
-
[x: string]: unknown;
|
|
1317
|
-
uri?: string | undefined;
|
|
1318
|
-
alt_text?: string | undefined;
|
|
1319
|
-
} | undefined;
|
|
1320
|
-
description?: string | undefined;
|
|
1321
|
-
background_color?: string | undefined;
|
|
1322
|
-
background_image?: {
|
|
1323
|
-
[x: string]: unknown;
|
|
1324
|
-
uri?: string | undefined;
|
|
1325
|
-
} | undefined;
|
|
1326
|
-
text_color?: string | undefined;
|
|
1327
|
-
}[] | undefined;
|
|
1328
|
-
credential_metadata?: undefined;
|
|
1329
1255
|
}, {
|
|
1330
1256
|
[x: string]: unknown;
|
|
1331
1257
|
format: string;
|
|
@@ -1341,6 +1267,7 @@ declare const zCredentialIssuerMetadataDraft14Draft15V1: z.ZodObject<{
|
|
|
1341
1267
|
} | undefined;
|
|
1342
1268
|
}> | undefined;
|
|
1343
1269
|
credential_metadata?: {
|
|
1270
|
+
[x: string]: unknown;
|
|
1344
1271
|
display?: {
|
|
1345
1272
|
[x: string]: unknown;
|
|
1346
1273
|
name: string;
|
|
@@ -1359,7 +1286,6 @@ declare const zCredentialIssuerMetadataDraft14Draft15V1: z.ZodObject<{
|
|
|
1359
1286
|
text_color?: string | undefined;
|
|
1360
1287
|
}[] | undefined;
|
|
1361
1288
|
} | undefined;
|
|
1362
|
-
claims?: undefined;
|
|
1363
1289
|
} | {
|
|
1364
1290
|
[x: string]: unknown;
|
|
1365
1291
|
format: string;
|
|
@@ -1489,8 +1415,7 @@ declare const zCredentialConfigurationSupportedDraft11To16: z.ZodPipe<z.ZodPipe<
|
|
|
1489
1415
|
}, z.core.$loose>>;
|
|
1490
1416
|
text_color: z.ZodOptional<z.ZodString>;
|
|
1491
1417
|
}, z.core.$loose>>>;
|
|
1492
|
-
}, z.core.$
|
|
1493
|
-
claims: z.ZodOptional<z.ZodNever>;
|
|
1418
|
+
}, z.core.$loose>>;
|
|
1494
1419
|
}, z.core.$loose>, z.ZodObject<{
|
|
1495
1420
|
format: z.ZodString;
|
|
1496
1421
|
scope: z.ZodOptional<z.ZodString>;
|
|
@@ -1543,6 +1468,7 @@ declare const zCredentialConfigurationSupportedDraft11To16: z.ZodPipe<z.ZodPipe<
|
|
|
1543
1468
|
} | undefined;
|
|
1544
1469
|
}> | undefined;
|
|
1545
1470
|
credential_metadata?: {
|
|
1471
|
+
[x: string]: unknown;
|
|
1546
1472
|
display?: {
|
|
1547
1473
|
[x: string]: unknown;
|
|
1548
1474
|
name: string;
|
|
@@ -1561,39 +1487,6 @@ declare const zCredentialConfigurationSupportedDraft11To16: z.ZodPipe<z.ZodPipe<
|
|
|
1561
1487
|
text_color?: string | undefined;
|
|
1562
1488
|
}[] | undefined;
|
|
1563
1489
|
} | undefined;
|
|
1564
|
-
claims?: undefined;
|
|
1565
|
-
} | {
|
|
1566
|
-
[x: string]: unknown;
|
|
1567
|
-
format: string;
|
|
1568
|
-
scope?: string | undefined;
|
|
1569
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1570
|
-
credential_signing_alg_values_supported?: string[] | number[] | undefined;
|
|
1571
|
-
proof_types_supported?: Record<string, {
|
|
1572
|
-
proof_signing_alg_values_supported: string[];
|
|
1573
|
-
key_attestations_required?: {
|
|
1574
|
-
[x: string]: unknown;
|
|
1575
|
-
key_storage?: string[] | undefined;
|
|
1576
|
-
user_authentication?: string[] | undefined;
|
|
1577
|
-
} | undefined;
|
|
1578
|
-
}> | undefined;
|
|
1579
|
-
display?: {
|
|
1580
|
-
[x: string]: unknown;
|
|
1581
|
-
name: string;
|
|
1582
|
-
locale?: string | undefined;
|
|
1583
|
-
logo?: {
|
|
1584
|
-
[x: string]: unknown;
|
|
1585
|
-
uri?: string | undefined;
|
|
1586
|
-
alt_text?: string | undefined;
|
|
1587
|
-
} | undefined;
|
|
1588
|
-
description?: string | undefined;
|
|
1589
|
-
background_color?: string | undefined;
|
|
1590
|
-
background_image?: {
|
|
1591
|
-
[x: string]: unknown;
|
|
1592
|
-
uri?: string | undefined;
|
|
1593
|
-
} | undefined;
|
|
1594
|
-
text_color?: string | undefined;
|
|
1595
|
-
}[] | undefined;
|
|
1596
|
-
credential_metadata?: undefined;
|
|
1597
1490
|
}, {
|
|
1598
1491
|
[x: string]: unknown;
|
|
1599
1492
|
format: string;
|
|
@@ -1609,6 +1502,7 @@ declare const zCredentialConfigurationSupportedDraft11To16: z.ZodPipe<z.ZodPipe<
|
|
|
1609
1502
|
} | undefined;
|
|
1610
1503
|
}> | undefined;
|
|
1611
1504
|
credential_metadata?: {
|
|
1505
|
+
[x: string]: unknown;
|
|
1612
1506
|
display?: {
|
|
1613
1507
|
[x: string]: unknown;
|
|
1614
1508
|
name: string;
|
|
@@ -1627,7 +1521,6 @@ declare const zCredentialConfigurationSupportedDraft11To16: z.ZodPipe<z.ZodPipe<
|
|
|
1627
1521
|
text_color?: string | undefined;
|
|
1628
1522
|
}[] | undefined;
|
|
1629
1523
|
} | undefined;
|
|
1630
|
-
claims?: undefined;
|
|
1631
1524
|
} | {
|
|
1632
1525
|
[x: string]: unknown;
|
|
1633
1526
|
format: string;
|
|
@@ -1759,8 +1652,7 @@ declare const zSignedCredentialIssuerMetadataPayload: z.ZodObject<{
|
|
|
1759
1652
|
}, z.core.$loose>>;
|
|
1760
1653
|
text_color: z.ZodOptional<z.ZodString>;
|
|
1761
1654
|
}, z.core.$loose>>>;
|
|
1762
|
-
}, z.core.$
|
|
1763
|
-
claims: z.ZodOptional<z.ZodNever>;
|
|
1655
|
+
}, z.core.$loose>>;
|
|
1764
1656
|
}, z.core.$loose>, z.ZodObject<{
|
|
1765
1657
|
format: z.ZodString;
|
|
1766
1658
|
scope: z.ZodOptional<z.ZodString>;
|
|
@@ -1813,6 +1705,7 @@ declare const zSignedCredentialIssuerMetadataPayload: z.ZodObject<{
|
|
|
1813
1705
|
} | undefined;
|
|
1814
1706
|
}> | undefined;
|
|
1815
1707
|
credential_metadata?: {
|
|
1708
|
+
[x: string]: unknown;
|
|
1816
1709
|
display?: {
|
|
1817
1710
|
[x: string]: unknown;
|
|
1818
1711
|
name: string;
|
|
@@ -1831,39 +1724,6 @@ declare const zSignedCredentialIssuerMetadataPayload: z.ZodObject<{
|
|
|
1831
1724
|
text_color?: string | undefined;
|
|
1832
1725
|
}[] | undefined;
|
|
1833
1726
|
} | undefined;
|
|
1834
|
-
claims?: undefined;
|
|
1835
|
-
} | {
|
|
1836
|
-
[x: string]: unknown;
|
|
1837
|
-
format: string;
|
|
1838
|
-
scope?: string | undefined;
|
|
1839
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1840
|
-
credential_signing_alg_values_supported?: string[] | number[] | undefined;
|
|
1841
|
-
proof_types_supported?: Record<string, {
|
|
1842
|
-
proof_signing_alg_values_supported: string[];
|
|
1843
|
-
key_attestations_required?: {
|
|
1844
|
-
[x: string]: unknown;
|
|
1845
|
-
key_storage?: string[] | undefined;
|
|
1846
|
-
user_authentication?: string[] | undefined;
|
|
1847
|
-
} | undefined;
|
|
1848
|
-
}> | undefined;
|
|
1849
|
-
display?: {
|
|
1850
|
-
[x: string]: unknown;
|
|
1851
|
-
name: string;
|
|
1852
|
-
locale?: string | undefined;
|
|
1853
|
-
logo?: {
|
|
1854
|
-
[x: string]: unknown;
|
|
1855
|
-
uri?: string | undefined;
|
|
1856
|
-
alt_text?: string | undefined;
|
|
1857
|
-
} | undefined;
|
|
1858
|
-
description?: string | undefined;
|
|
1859
|
-
background_color?: string | undefined;
|
|
1860
|
-
background_image?: {
|
|
1861
|
-
[x: string]: unknown;
|
|
1862
|
-
uri?: string | undefined;
|
|
1863
|
-
} | undefined;
|
|
1864
|
-
text_color?: string | undefined;
|
|
1865
|
-
}[] | undefined;
|
|
1866
|
-
credential_metadata?: undefined;
|
|
1867
1727
|
}, {
|
|
1868
1728
|
[x: string]: unknown;
|
|
1869
1729
|
format: string;
|
|
@@ -1879,6 +1739,7 @@ declare const zSignedCredentialIssuerMetadataPayload: z.ZodObject<{
|
|
|
1879
1739
|
} | undefined;
|
|
1880
1740
|
}> | undefined;
|
|
1881
1741
|
credential_metadata?: {
|
|
1742
|
+
[x: string]: unknown;
|
|
1882
1743
|
display?: {
|
|
1883
1744
|
[x: string]: unknown;
|
|
1884
1745
|
name: string;
|
|
@@ -1897,7 +1758,6 @@ declare const zSignedCredentialIssuerMetadataPayload: z.ZodObject<{
|
|
|
1897
1758
|
text_color?: string | undefined;
|
|
1898
1759
|
}[] | undefined;
|
|
1899
1760
|
} | undefined;
|
|
1900
|
-
claims?: undefined;
|
|
1901
1761
|
} | {
|
|
1902
1762
|
[x: string]: unknown;
|
|
1903
1763
|
format: string;
|
|
@@ -4105,6 +3965,7 @@ declare class Openid4vciIssuer {
|
|
|
4105
3965
|
} | undefined;
|
|
4106
3966
|
}> | undefined;
|
|
4107
3967
|
credential_metadata?: {
|
|
3968
|
+
[x: string]: unknown;
|
|
4108
3969
|
display?: {
|
|
4109
3970
|
[x: string]: unknown;
|
|
4110
3971
|
name: string;
|
|
@@ -4123,39 +3984,6 @@ declare class Openid4vciIssuer {
|
|
|
4123
3984
|
text_color?: string | undefined;
|
|
4124
3985
|
}[] | undefined;
|
|
4125
3986
|
} | undefined;
|
|
4126
|
-
claims?: undefined;
|
|
4127
|
-
} | {
|
|
4128
|
-
[x: string]: unknown;
|
|
4129
|
-
format: string;
|
|
4130
|
-
scope?: string | undefined;
|
|
4131
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
4132
|
-
credential_signing_alg_values_supported?: string[] | number[] | undefined;
|
|
4133
|
-
proof_types_supported?: Record<string, {
|
|
4134
|
-
proof_signing_alg_values_supported: string[];
|
|
4135
|
-
key_attestations_required?: {
|
|
4136
|
-
[x: string]: unknown;
|
|
4137
|
-
key_storage?: string[] | undefined;
|
|
4138
|
-
user_authentication?: string[] | undefined;
|
|
4139
|
-
} | undefined;
|
|
4140
|
-
}> | undefined;
|
|
4141
|
-
display?: {
|
|
4142
|
-
[x: string]: unknown;
|
|
4143
|
-
name: string;
|
|
4144
|
-
locale?: string | undefined;
|
|
4145
|
-
logo?: {
|
|
4146
|
-
[x: string]: unknown;
|
|
4147
|
-
uri?: string | undefined;
|
|
4148
|
-
alt_text?: string | undefined;
|
|
4149
|
-
} | undefined;
|
|
4150
|
-
description?: string | undefined;
|
|
4151
|
-
background_color?: string | undefined;
|
|
4152
|
-
background_image?: {
|
|
4153
|
-
[x: string]: unknown;
|
|
4154
|
-
uri?: string | undefined;
|
|
4155
|
-
} | undefined;
|
|
4156
|
-
text_color?: string | undefined;
|
|
4157
|
-
}[] | undefined;
|
|
4158
|
-
credential_metadata?: undefined;
|
|
4159
3987
|
}>;
|
|
4160
3988
|
credentials_supported: ({
|
|
4161
3989
|
[x: string]: unknown;
|
package/dist/index.mjs
CHANGED
|
@@ -160,7 +160,7 @@ const zClaimDescriptionPathValue = z.union([
|
|
|
160
160
|
z.null()
|
|
161
161
|
]);
|
|
162
162
|
const zClaimsDescriptionPath = z.tuple([zClaimDescriptionPathValue], zClaimDescriptionPathValue);
|
|
163
|
-
const zMsoMdocClaimsDescriptionPath = z.tuple([z.string(), z.string()], { message: "mso_mdoc claims description path MUST be an array with
|
|
163
|
+
const zMsoMdocClaimsDescriptionPath = z.tuple([z.string(), z.string()], z.string(), { message: "mso_mdoc claims description path MUST be an array with at least two string elements, pointing to the namespace and element identifier within an mdoc credential" });
|
|
164
164
|
const zIssuerMetadataClaimsDescription = z.object({
|
|
165
165
|
path: zClaimsDescriptionPath,
|
|
166
166
|
mandatory: z.boolean().optional(),
|
|
@@ -212,7 +212,7 @@ const zCredentialConfigurationSupportedDisplayEntry = z.object({
|
|
|
212
212
|
background_image: z.object({ uri: z.string().optional() }).loose().optional(),
|
|
213
213
|
text_color: z.string().optional()
|
|
214
214
|
}).loose();
|
|
215
|
-
const zCredentialConfigurationSupportedCommonCredentialMetadata = z.object({ display: z.array(zCredentialConfigurationSupportedDisplayEntry).optional() });
|
|
215
|
+
const zCredentialConfigurationSupportedCommonCredentialMetadata = z.object({ display: z.array(zCredentialConfigurationSupportedDisplayEntry).optional() }).loose();
|
|
216
216
|
const zCredentialConfigurationSupportedCommon = z.object({
|
|
217
217
|
format: z.string(),
|
|
218
218
|
scope: z.string().optional(),
|
|
@@ -229,8 +229,7 @@ const zCredentialConfigurationSupportedCommon = z.object({
|
|
|
229
229
|
user_authentication: zIso18045OrStringArray.optional()
|
|
230
230
|
}).loose().optional()
|
|
231
231
|
})).optional(),
|
|
232
|
-
credential_metadata: zCredentialConfigurationSupportedCommonCredentialMetadata.optional()
|
|
233
|
-
claims: z.optional(z.never())
|
|
232
|
+
credential_metadata: zCredentialConfigurationSupportedCommonCredentialMetadata.optional()
|
|
234
233
|
}).loose();
|
|
235
234
|
const zCredentialConfigurationSupportedCommonDraft15 = z.object({
|
|
236
235
|
format: z.string(),
|