@openid4vc/openid4vci 0.3.0-alpha-20251120111517 → 0.3.0-alpha-20251120112059
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 +184 -176
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -281
- package/dist/index.d.mts +13 -281
- package/dist/index.mjs +184 -176
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1143,7 +1143,7 @@ declare const zCredentialIssuerMetadataDraft14Draft15V1: z.ZodObject<{
|
|
|
1143
1143
|
alt_text: z.ZodOptional<z.ZodString>;
|
|
1144
1144
|
}, z.core.$loose>>;
|
|
1145
1145
|
}, z.core.$loose>>>;
|
|
1146
|
-
credential_configurations_supported: z.ZodRecord<z.ZodString, z.
|
|
1146
|
+
credential_configurations_supported: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1147
1147
|
format: z.ZodString;
|
|
1148
1148
|
scope: z.ZodOptional<z.ZodString>;
|
|
1149
1149
|
cryptographic_binding_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1181,144 +1181,7 @@ declare const zCredentialIssuerMetadataDraft14Draft15V1: z.ZodObject<{
|
|
|
1181
1181
|
text_color: z.ZodOptional<z.ZodString>;
|
|
1182
1182
|
}, z.core.$loose>>>;
|
|
1183
1183
|
}, z.core.$loose>>;
|
|
1184
|
-
}, z.core.$loose
|
|
1185
|
-
format: z.ZodString;
|
|
1186
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
1187
|
-
cryptographic_binding_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1188
|
-
credential_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1189
|
-
proof_types_supported: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"jwt">, z.ZodLiteral<"attestation">, z.ZodString]>, z.ZodObject<{
|
|
1190
|
-
proof_signing_alg_values_supported: z.ZodArray<z.ZodString>;
|
|
1191
|
-
key_attestations_required: z.ZodOptional<z.ZodObject<{
|
|
1192
|
-
key_storage: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1193
|
-
iso_18045_high: "iso_18045_high";
|
|
1194
|
-
iso_18045_moderate: "iso_18045_moderate";
|
|
1195
|
-
"iso_18045_enhanced-basic": "iso_18045_enhanced-basic";
|
|
1196
|
-
iso_18045_basic: "iso_18045_basic";
|
|
1197
|
-
}>, z.ZodString]>>>;
|
|
1198
|
-
user_authentication: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1199
|
-
iso_18045_high: "iso_18045_high";
|
|
1200
|
-
iso_18045_moderate: "iso_18045_moderate";
|
|
1201
|
-
"iso_18045_enhanced-basic": "iso_18045_enhanced-basic";
|
|
1202
|
-
iso_18045_basic: "iso_18045_basic";
|
|
1203
|
-
}>, z.ZodString]>>>;
|
|
1204
|
-
}, z.core.$loose>>;
|
|
1205
|
-
}, z.core.$strip>>>;
|
|
1206
|
-
display: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1207
|
-
name: z.ZodString;
|
|
1208
|
-
locale: z.ZodOptional<z.ZodString>;
|
|
1209
|
-
logo: z.ZodOptional<z.ZodObject<{
|
|
1210
|
-
uri: z.ZodOptional<z.ZodString>;
|
|
1211
|
-
alt_text: z.ZodOptional<z.ZodString>;
|
|
1212
|
-
}, z.core.$loose>>;
|
|
1213
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1214
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1215
|
-
background_image: z.ZodOptional<z.ZodObject<{
|
|
1216
|
-
uri: z.ZodOptional<z.ZodString>;
|
|
1217
|
-
}, z.core.$loose>>;
|
|
1218
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1219
|
-
}, z.core.$loose>>>;
|
|
1220
|
-
credential_metadata: z.ZodOptional<z.ZodNever>;
|
|
1221
|
-
}, z.core.$loose>]>, z.ZodTransform<{
|
|
1222
|
-
[x: string]: unknown;
|
|
1223
|
-
format: string;
|
|
1224
|
-
scope?: string | undefined;
|
|
1225
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1226
|
-
credential_signing_alg_values_supported?: string[] | number[] | undefined;
|
|
1227
|
-
proof_types_supported?: Record<string, {
|
|
1228
|
-
proof_signing_alg_values_supported: string[];
|
|
1229
|
-
key_attestations_required?: {
|
|
1230
|
-
[x: string]: unknown;
|
|
1231
|
-
key_storage?: string[] | undefined;
|
|
1232
|
-
user_authentication?: string[] | undefined;
|
|
1233
|
-
} | undefined;
|
|
1234
|
-
}> | undefined;
|
|
1235
|
-
credential_metadata?: {
|
|
1236
|
-
[x: string]: unknown;
|
|
1237
|
-
display?: {
|
|
1238
|
-
[x: string]: unknown;
|
|
1239
|
-
name: string;
|
|
1240
|
-
locale?: string | undefined;
|
|
1241
|
-
logo?: {
|
|
1242
|
-
[x: string]: unknown;
|
|
1243
|
-
uri?: string | undefined;
|
|
1244
|
-
alt_text?: string | undefined;
|
|
1245
|
-
} | undefined;
|
|
1246
|
-
description?: string | undefined;
|
|
1247
|
-
background_color?: string | undefined;
|
|
1248
|
-
background_image?: {
|
|
1249
|
-
[x: string]: unknown;
|
|
1250
|
-
uri?: string | undefined;
|
|
1251
|
-
} | undefined;
|
|
1252
|
-
text_color?: string | undefined;
|
|
1253
|
-
}[] | undefined;
|
|
1254
|
-
} | undefined;
|
|
1255
|
-
}, {
|
|
1256
|
-
[x: string]: unknown;
|
|
1257
|
-
format: string;
|
|
1258
|
-
scope?: string | undefined;
|
|
1259
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1260
|
-
credential_signing_alg_values_supported?: string[] | number[] | undefined;
|
|
1261
|
-
proof_types_supported?: Record<string, {
|
|
1262
|
-
proof_signing_alg_values_supported: string[];
|
|
1263
|
-
key_attestations_required?: {
|
|
1264
|
-
[x: string]: unknown;
|
|
1265
|
-
key_storage?: string[] | undefined;
|
|
1266
|
-
user_authentication?: string[] | undefined;
|
|
1267
|
-
} | undefined;
|
|
1268
|
-
}> | undefined;
|
|
1269
|
-
credential_metadata?: {
|
|
1270
|
-
[x: string]: unknown;
|
|
1271
|
-
display?: {
|
|
1272
|
-
[x: string]: unknown;
|
|
1273
|
-
name: string;
|
|
1274
|
-
locale?: string | undefined;
|
|
1275
|
-
logo?: {
|
|
1276
|
-
[x: string]: unknown;
|
|
1277
|
-
uri?: string | undefined;
|
|
1278
|
-
alt_text?: string | undefined;
|
|
1279
|
-
} | undefined;
|
|
1280
|
-
description?: string | undefined;
|
|
1281
|
-
background_color?: string | undefined;
|
|
1282
|
-
background_image?: {
|
|
1283
|
-
[x: string]: unknown;
|
|
1284
|
-
uri?: string | undefined;
|
|
1285
|
-
} | undefined;
|
|
1286
|
-
text_color?: string | undefined;
|
|
1287
|
-
}[] | undefined;
|
|
1288
|
-
} | undefined;
|
|
1289
|
-
} | {
|
|
1290
|
-
[x: string]: unknown;
|
|
1291
|
-
format: string;
|
|
1292
|
-
scope?: string | undefined;
|
|
1293
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1294
|
-
credential_signing_alg_values_supported?: string[] | undefined;
|
|
1295
|
-
proof_types_supported?: Record<string, {
|
|
1296
|
-
proof_signing_alg_values_supported: string[];
|
|
1297
|
-
key_attestations_required?: {
|
|
1298
|
-
[x: string]: unknown;
|
|
1299
|
-
key_storage?: string[] | undefined;
|
|
1300
|
-
user_authentication?: string[] | undefined;
|
|
1301
|
-
} | undefined;
|
|
1302
|
-
}> | undefined;
|
|
1303
|
-
display?: {
|
|
1304
|
-
[x: string]: unknown;
|
|
1305
|
-
name: string;
|
|
1306
|
-
locale?: string | undefined;
|
|
1307
|
-
logo?: {
|
|
1308
|
-
[x: string]: unknown;
|
|
1309
|
-
uri?: string | undefined;
|
|
1310
|
-
alt_text?: string | undefined;
|
|
1311
|
-
} | undefined;
|
|
1312
|
-
description?: string | undefined;
|
|
1313
|
-
background_color?: string | undefined;
|
|
1314
|
-
background_image?: {
|
|
1315
|
-
[x: string]: unknown;
|
|
1316
|
-
uri?: string | undefined;
|
|
1317
|
-
} | undefined;
|
|
1318
|
-
text_color?: string | undefined;
|
|
1319
|
-
}[] | undefined;
|
|
1320
|
-
credential_metadata?: undefined;
|
|
1321
|
-
}>>>;
|
|
1184
|
+
}, z.core.$loose>>;
|
|
1322
1185
|
}, z.core.$loose>;
|
|
1323
1186
|
declare const zCredentialConfigurationSupportedDraft11ToV1: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodObject<{
|
|
1324
1187
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1615,7 +1478,7 @@ declare const zSignedCredentialIssuerMetadataPayload: z.ZodObject<{
|
|
|
1615
1478
|
alt_text: z.ZodOptional<z.ZodString>;
|
|
1616
1479
|
}, z.core.$loose>>;
|
|
1617
1480
|
}, z.core.$loose>>>;
|
|
1618
|
-
credential_configurations_supported: z.ZodRecord<z.ZodString, z.
|
|
1481
|
+
credential_configurations_supported: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1619
1482
|
format: z.ZodString;
|
|
1620
1483
|
scope: z.ZodOptional<z.ZodString>;
|
|
1621
1484
|
cryptographic_binding_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1653,144 +1516,7 @@ declare const zSignedCredentialIssuerMetadataPayload: z.ZodObject<{
|
|
|
1653
1516
|
text_color: z.ZodOptional<z.ZodString>;
|
|
1654
1517
|
}, z.core.$loose>>>;
|
|
1655
1518
|
}, z.core.$loose>>;
|
|
1656
|
-
}, z.core.$loose
|
|
1657
|
-
format: z.ZodString;
|
|
1658
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
1659
|
-
cryptographic_binding_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1660
|
-
credential_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1661
|
-
proof_types_supported: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"jwt">, z.ZodLiteral<"attestation">, z.ZodString]>, z.ZodObject<{
|
|
1662
|
-
proof_signing_alg_values_supported: z.ZodArray<z.ZodString>;
|
|
1663
|
-
key_attestations_required: z.ZodOptional<z.ZodObject<{
|
|
1664
|
-
key_storage: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1665
|
-
iso_18045_high: "iso_18045_high";
|
|
1666
|
-
iso_18045_moderate: "iso_18045_moderate";
|
|
1667
|
-
"iso_18045_enhanced-basic": "iso_18045_enhanced-basic";
|
|
1668
|
-
iso_18045_basic: "iso_18045_basic";
|
|
1669
|
-
}>, z.ZodString]>>>;
|
|
1670
|
-
user_authentication: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1671
|
-
iso_18045_high: "iso_18045_high";
|
|
1672
|
-
iso_18045_moderate: "iso_18045_moderate";
|
|
1673
|
-
"iso_18045_enhanced-basic": "iso_18045_enhanced-basic";
|
|
1674
|
-
iso_18045_basic: "iso_18045_basic";
|
|
1675
|
-
}>, z.ZodString]>>>;
|
|
1676
|
-
}, z.core.$loose>>;
|
|
1677
|
-
}, z.core.$strip>>>;
|
|
1678
|
-
display: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1679
|
-
name: z.ZodString;
|
|
1680
|
-
locale: z.ZodOptional<z.ZodString>;
|
|
1681
|
-
logo: z.ZodOptional<z.ZodObject<{
|
|
1682
|
-
uri: z.ZodOptional<z.ZodString>;
|
|
1683
|
-
alt_text: z.ZodOptional<z.ZodString>;
|
|
1684
|
-
}, z.core.$loose>>;
|
|
1685
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1686
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1687
|
-
background_image: z.ZodOptional<z.ZodObject<{
|
|
1688
|
-
uri: z.ZodOptional<z.ZodString>;
|
|
1689
|
-
}, z.core.$loose>>;
|
|
1690
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1691
|
-
}, z.core.$loose>>>;
|
|
1692
|
-
credential_metadata: z.ZodOptional<z.ZodNever>;
|
|
1693
|
-
}, z.core.$loose>]>, z.ZodTransform<{
|
|
1694
|
-
[x: string]: unknown;
|
|
1695
|
-
format: string;
|
|
1696
|
-
scope?: string | undefined;
|
|
1697
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1698
|
-
credential_signing_alg_values_supported?: string[] | number[] | undefined;
|
|
1699
|
-
proof_types_supported?: Record<string, {
|
|
1700
|
-
proof_signing_alg_values_supported: string[];
|
|
1701
|
-
key_attestations_required?: {
|
|
1702
|
-
[x: string]: unknown;
|
|
1703
|
-
key_storage?: string[] | undefined;
|
|
1704
|
-
user_authentication?: string[] | undefined;
|
|
1705
|
-
} | undefined;
|
|
1706
|
-
}> | undefined;
|
|
1707
|
-
credential_metadata?: {
|
|
1708
|
-
[x: string]: unknown;
|
|
1709
|
-
display?: {
|
|
1710
|
-
[x: string]: unknown;
|
|
1711
|
-
name: string;
|
|
1712
|
-
locale?: string | undefined;
|
|
1713
|
-
logo?: {
|
|
1714
|
-
[x: string]: unknown;
|
|
1715
|
-
uri?: string | undefined;
|
|
1716
|
-
alt_text?: string | undefined;
|
|
1717
|
-
} | undefined;
|
|
1718
|
-
description?: string | undefined;
|
|
1719
|
-
background_color?: string | undefined;
|
|
1720
|
-
background_image?: {
|
|
1721
|
-
[x: string]: unknown;
|
|
1722
|
-
uri?: string | undefined;
|
|
1723
|
-
} | undefined;
|
|
1724
|
-
text_color?: string | undefined;
|
|
1725
|
-
}[] | undefined;
|
|
1726
|
-
} | undefined;
|
|
1727
|
-
}, {
|
|
1728
|
-
[x: string]: unknown;
|
|
1729
|
-
format: string;
|
|
1730
|
-
scope?: string | undefined;
|
|
1731
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1732
|
-
credential_signing_alg_values_supported?: string[] | number[] | undefined;
|
|
1733
|
-
proof_types_supported?: Record<string, {
|
|
1734
|
-
proof_signing_alg_values_supported: string[];
|
|
1735
|
-
key_attestations_required?: {
|
|
1736
|
-
[x: string]: unknown;
|
|
1737
|
-
key_storage?: string[] | undefined;
|
|
1738
|
-
user_authentication?: string[] | undefined;
|
|
1739
|
-
} | undefined;
|
|
1740
|
-
}> | undefined;
|
|
1741
|
-
credential_metadata?: {
|
|
1742
|
-
[x: string]: unknown;
|
|
1743
|
-
display?: {
|
|
1744
|
-
[x: string]: unknown;
|
|
1745
|
-
name: string;
|
|
1746
|
-
locale?: string | undefined;
|
|
1747
|
-
logo?: {
|
|
1748
|
-
[x: string]: unknown;
|
|
1749
|
-
uri?: string | undefined;
|
|
1750
|
-
alt_text?: string | undefined;
|
|
1751
|
-
} | undefined;
|
|
1752
|
-
description?: string | undefined;
|
|
1753
|
-
background_color?: string | undefined;
|
|
1754
|
-
background_image?: {
|
|
1755
|
-
[x: string]: unknown;
|
|
1756
|
-
uri?: string | undefined;
|
|
1757
|
-
} | undefined;
|
|
1758
|
-
text_color?: string | undefined;
|
|
1759
|
-
}[] | undefined;
|
|
1760
|
-
} | undefined;
|
|
1761
|
-
} | {
|
|
1762
|
-
[x: string]: unknown;
|
|
1763
|
-
format: string;
|
|
1764
|
-
scope?: string | undefined;
|
|
1765
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1766
|
-
credential_signing_alg_values_supported?: string[] | undefined;
|
|
1767
|
-
proof_types_supported?: Record<string, {
|
|
1768
|
-
proof_signing_alg_values_supported: string[];
|
|
1769
|
-
key_attestations_required?: {
|
|
1770
|
-
[x: string]: unknown;
|
|
1771
|
-
key_storage?: string[] | undefined;
|
|
1772
|
-
user_authentication?: string[] | undefined;
|
|
1773
|
-
} | undefined;
|
|
1774
|
-
}> | undefined;
|
|
1775
|
-
display?: {
|
|
1776
|
-
[x: string]: unknown;
|
|
1777
|
-
name: string;
|
|
1778
|
-
locale?: string | undefined;
|
|
1779
|
-
logo?: {
|
|
1780
|
-
[x: string]: unknown;
|
|
1781
|
-
uri?: string | undefined;
|
|
1782
|
-
alt_text?: string | undefined;
|
|
1783
|
-
} | undefined;
|
|
1784
|
-
description?: string | undefined;
|
|
1785
|
-
background_color?: string | undefined;
|
|
1786
|
-
background_image?: {
|
|
1787
|
-
[x: string]: unknown;
|
|
1788
|
-
uri?: string | undefined;
|
|
1789
|
-
} | undefined;
|
|
1790
|
-
text_color?: string | undefined;
|
|
1791
|
-
}[] | undefined;
|
|
1792
|
-
credential_metadata?: undefined;
|
|
1793
|
-
}>>>;
|
|
1519
|
+
}, z.core.$loose>>;
|
|
1794
1520
|
iat: z.ZodNumber;
|
|
1795
1521
|
sub: z.ZodString;
|
|
1796
1522
|
iss: z.ZodOptional<z.ZodString>;
|
|
@@ -1851,6 +1577,13 @@ interface IssuerMetadataResult {
|
|
|
1851
1577
|
*/
|
|
1852
1578
|
signedCredentialIssuer?: CredentialIssuerMetadataSigned;
|
|
1853
1579
|
authorizationServers: AuthorizationServerMetadata[];
|
|
1580
|
+
/**
|
|
1581
|
+
* Known credential configurations includes all the credential configurations with a known credential format
|
|
1582
|
+
* that pass the validation requirements from the OpenID4VCI specification. Recognized formats that do not
|
|
1583
|
+
* adhere to the format specific metadata requirements are not included, but also won't result in an error, to
|
|
1584
|
+
* to still allow interacting with issuers using invalid metadata for specific configurations.
|
|
1585
|
+
*/
|
|
1586
|
+
knownCredentialConfigurations: CredentialConfigurationsSupportedWithFormats;
|
|
1854
1587
|
}
|
|
1855
1588
|
//#endregion
|
|
1856
1589
|
//#region src/credential-offer/z-credential-offer.d.ts
|
|
@@ -2417,11 +2150,11 @@ type DeferredCredentialRequest = z.infer<typeof zDeferredCredentialRequest>;
|
|
|
2417
2150
|
//#region src/credential-request/credential-request-configurations.d.ts
|
|
2418
2151
|
interface GetCredentialConfigurationsMatchingRequestFormatOptions {
|
|
2419
2152
|
requestFormat: CredentialRequestFormatSpecific;
|
|
2420
|
-
|
|
2153
|
+
issuerMetadata: IssuerMetadataResult;
|
|
2421
2154
|
}
|
|
2422
2155
|
declare function getCredentialConfigurationsMatchingRequestFormat({
|
|
2423
2156
|
requestFormat,
|
|
2424
|
-
|
|
2157
|
+
issuerMetadata
|
|
2425
2158
|
}: GetCredentialConfigurationsMatchingRequestFormatOptions): CredentialConfigurationsSupportedWithFormats;
|
|
2426
2159
|
//#endregion
|
|
2427
2160
|
//#region src/credential-request/parse-credential-request.d.ts
|
|
@@ -3315,7 +3048,6 @@ declare class Openid4vciClient {
|
|
|
3315
3048
|
private options;
|
|
3316
3049
|
private oauth2Client;
|
|
3317
3050
|
constructor(options: Openid4vciClientOptions);
|
|
3318
|
-
getKnownCredentialConfigurationsSupported(credentialIssuerMetadata: CredentialIssuerMetadata): CredentialConfigurationsSupportedWithFormats;
|
|
3319
3051
|
/**
|
|
3320
3052
|
* Resolve a credential offer into a credential offer object, handling both
|
|
3321
3053
|
* 'credential_offer' and 'credential_offer_uri' params.
|
package/dist/index.d.mts
CHANGED
|
@@ -1143,7 +1143,7 @@ declare const zCredentialIssuerMetadataDraft14Draft15V1: z.ZodObject<{
|
|
|
1143
1143
|
alt_text: z.ZodOptional<z.ZodString>;
|
|
1144
1144
|
}, z.core.$loose>>;
|
|
1145
1145
|
}, z.core.$loose>>>;
|
|
1146
|
-
credential_configurations_supported: z.ZodRecord<z.ZodString, z.
|
|
1146
|
+
credential_configurations_supported: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1147
1147
|
format: z.ZodString;
|
|
1148
1148
|
scope: z.ZodOptional<z.ZodString>;
|
|
1149
1149
|
cryptographic_binding_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1181,144 +1181,7 @@ declare const zCredentialIssuerMetadataDraft14Draft15V1: z.ZodObject<{
|
|
|
1181
1181
|
text_color: z.ZodOptional<z.ZodString>;
|
|
1182
1182
|
}, z.core.$loose>>>;
|
|
1183
1183
|
}, z.core.$loose>>;
|
|
1184
|
-
}, z.core.$loose
|
|
1185
|
-
format: z.ZodString;
|
|
1186
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
1187
|
-
cryptographic_binding_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1188
|
-
credential_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1189
|
-
proof_types_supported: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"jwt">, z.ZodLiteral<"attestation">, z.ZodString]>, z.ZodObject<{
|
|
1190
|
-
proof_signing_alg_values_supported: z.ZodArray<z.ZodString>;
|
|
1191
|
-
key_attestations_required: z.ZodOptional<z.ZodObject<{
|
|
1192
|
-
key_storage: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1193
|
-
iso_18045_high: "iso_18045_high";
|
|
1194
|
-
iso_18045_moderate: "iso_18045_moderate";
|
|
1195
|
-
"iso_18045_enhanced-basic": "iso_18045_enhanced-basic";
|
|
1196
|
-
iso_18045_basic: "iso_18045_basic";
|
|
1197
|
-
}>, z.ZodString]>>>;
|
|
1198
|
-
user_authentication: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1199
|
-
iso_18045_high: "iso_18045_high";
|
|
1200
|
-
iso_18045_moderate: "iso_18045_moderate";
|
|
1201
|
-
"iso_18045_enhanced-basic": "iso_18045_enhanced-basic";
|
|
1202
|
-
iso_18045_basic: "iso_18045_basic";
|
|
1203
|
-
}>, z.ZodString]>>>;
|
|
1204
|
-
}, z.core.$loose>>;
|
|
1205
|
-
}, z.core.$strip>>>;
|
|
1206
|
-
display: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1207
|
-
name: z.ZodString;
|
|
1208
|
-
locale: z.ZodOptional<z.ZodString>;
|
|
1209
|
-
logo: z.ZodOptional<z.ZodObject<{
|
|
1210
|
-
uri: z.ZodOptional<z.ZodString>;
|
|
1211
|
-
alt_text: z.ZodOptional<z.ZodString>;
|
|
1212
|
-
}, z.core.$loose>>;
|
|
1213
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1214
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1215
|
-
background_image: z.ZodOptional<z.ZodObject<{
|
|
1216
|
-
uri: z.ZodOptional<z.ZodString>;
|
|
1217
|
-
}, z.core.$loose>>;
|
|
1218
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1219
|
-
}, z.core.$loose>>>;
|
|
1220
|
-
credential_metadata: z.ZodOptional<z.ZodNever>;
|
|
1221
|
-
}, z.core.$loose>]>, z.ZodTransform<{
|
|
1222
|
-
[x: string]: unknown;
|
|
1223
|
-
format: string;
|
|
1224
|
-
scope?: string | undefined;
|
|
1225
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1226
|
-
credential_signing_alg_values_supported?: string[] | number[] | undefined;
|
|
1227
|
-
proof_types_supported?: Record<string, {
|
|
1228
|
-
proof_signing_alg_values_supported: string[];
|
|
1229
|
-
key_attestations_required?: {
|
|
1230
|
-
[x: string]: unknown;
|
|
1231
|
-
key_storage?: string[] | undefined;
|
|
1232
|
-
user_authentication?: string[] | undefined;
|
|
1233
|
-
} | undefined;
|
|
1234
|
-
}> | undefined;
|
|
1235
|
-
credential_metadata?: {
|
|
1236
|
-
[x: string]: unknown;
|
|
1237
|
-
display?: {
|
|
1238
|
-
[x: string]: unknown;
|
|
1239
|
-
name: string;
|
|
1240
|
-
locale?: string | undefined;
|
|
1241
|
-
logo?: {
|
|
1242
|
-
[x: string]: unknown;
|
|
1243
|
-
uri?: string | undefined;
|
|
1244
|
-
alt_text?: string | undefined;
|
|
1245
|
-
} | undefined;
|
|
1246
|
-
description?: string | undefined;
|
|
1247
|
-
background_color?: string | undefined;
|
|
1248
|
-
background_image?: {
|
|
1249
|
-
[x: string]: unknown;
|
|
1250
|
-
uri?: string | undefined;
|
|
1251
|
-
} | undefined;
|
|
1252
|
-
text_color?: string | undefined;
|
|
1253
|
-
}[] | undefined;
|
|
1254
|
-
} | undefined;
|
|
1255
|
-
}, {
|
|
1256
|
-
[x: string]: unknown;
|
|
1257
|
-
format: string;
|
|
1258
|
-
scope?: string | undefined;
|
|
1259
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1260
|
-
credential_signing_alg_values_supported?: string[] | number[] | undefined;
|
|
1261
|
-
proof_types_supported?: Record<string, {
|
|
1262
|
-
proof_signing_alg_values_supported: string[];
|
|
1263
|
-
key_attestations_required?: {
|
|
1264
|
-
[x: string]: unknown;
|
|
1265
|
-
key_storage?: string[] | undefined;
|
|
1266
|
-
user_authentication?: string[] | undefined;
|
|
1267
|
-
} | undefined;
|
|
1268
|
-
}> | undefined;
|
|
1269
|
-
credential_metadata?: {
|
|
1270
|
-
[x: string]: unknown;
|
|
1271
|
-
display?: {
|
|
1272
|
-
[x: string]: unknown;
|
|
1273
|
-
name: string;
|
|
1274
|
-
locale?: string | undefined;
|
|
1275
|
-
logo?: {
|
|
1276
|
-
[x: string]: unknown;
|
|
1277
|
-
uri?: string | undefined;
|
|
1278
|
-
alt_text?: string | undefined;
|
|
1279
|
-
} | undefined;
|
|
1280
|
-
description?: string | undefined;
|
|
1281
|
-
background_color?: string | undefined;
|
|
1282
|
-
background_image?: {
|
|
1283
|
-
[x: string]: unknown;
|
|
1284
|
-
uri?: string | undefined;
|
|
1285
|
-
} | undefined;
|
|
1286
|
-
text_color?: string | undefined;
|
|
1287
|
-
}[] | undefined;
|
|
1288
|
-
} | undefined;
|
|
1289
|
-
} | {
|
|
1290
|
-
[x: string]: unknown;
|
|
1291
|
-
format: string;
|
|
1292
|
-
scope?: string | undefined;
|
|
1293
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1294
|
-
credential_signing_alg_values_supported?: string[] | undefined;
|
|
1295
|
-
proof_types_supported?: Record<string, {
|
|
1296
|
-
proof_signing_alg_values_supported: string[];
|
|
1297
|
-
key_attestations_required?: {
|
|
1298
|
-
[x: string]: unknown;
|
|
1299
|
-
key_storage?: string[] | undefined;
|
|
1300
|
-
user_authentication?: string[] | undefined;
|
|
1301
|
-
} | undefined;
|
|
1302
|
-
}> | undefined;
|
|
1303
|
-
display?: {
|
|
1304
|
-
[x: string]: unknown;
|
|
1305
|
-
name: string;
|
|
1306
|
-
locale?: string | undefined;
|
|
1307
|
-
logo?: {
|
|
1308
|
-
[x: string]: unknown;
|
|
1309
|
-
uri?: string | undefined;
|
|
1310
|
-
alt_text?: string | undefined;
|
|
1311
|
-
} | undefined;
|
|
1312
|
-
description?: string | undefined;
|
|
1313
|
-
background_color?: string | undefined;
|
|
1314
|
-
background_image?: {
|
|
1315
|
-
[x: string]: unknown;
|
|
1316
|
-
uri?: string | undefined;
|
|
1317
|
-
} | undefined;
|
|
1318
|
-
text_color?: string | undefined;
|
|
1319
|
-
}[] | undefined;
|
|
1320
|
-
credential_metadata?: undefined;
|
|
1321
|
-
}>>>;
|
|
1184
|
+
}, z.core.$loose>>;
|
|
1322
1185
|
}, z.core.$loose>;
|
|
1323
1186
|
declare const zCredentialConfigurationSupportedDraft11ToV1: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodObject<{
|
|
1324
1187
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1615,7 +1478,7 @@ declare const zSignedCredentialIssuerMetadataPayload: z.ZodObject<{
|
|
|
1615
1478
|
alt_text: z.ZodOptional<z.ZodString>;
|
|
1616
1479
|
}, z.core.$loose>>;
|
|
1617
1480
|
}, z.core.$loose>>>;
|
|
1618
|
-
credential_configurations_supported: z.ZodRecord<z.ZodString, z.
|
|
1481
|
+
credential_configurations_supported: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1619
1482
|
format: z.ZodString;
|
|
1620
1483
|
scope: z.ZodOptional<z.ZodString>;
|
|
1621
1484
|
cryptographic_binding_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1653,144 +1516,7 @@ declare const zSignedCredentialIssuerMetadataPayload: z.ZodObject<{
|
|
|
1653
1516
|
text_color: z.ZodOptional<z.ZodString>;
|
|
1654
1517
|
}, z.core.$loose>>>;
|
|
1655
1518
|
}, z.core.$loose>>;
|
|
1656
|
-
}, z.core.$loose
|
|
1657
|
-
format: z.ZodString;
|
|
1658
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
1659
|
-
cryptographic_binding_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1660
|
-
credential_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1661
|
-
proof_types_supported: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"jwt">, z.ZodLiteral<"attestation">, z.ZodString]>, z.ZodObject<{
|
|
1662
|
-
proof_signing_alg_values_supported: z.ZodArray<z.ZodString>;
|
|
1663
|
-
key_attestations_required: z.ZodOptional<z.ZodObject<{
|
|
1664
|
-
key_storage: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1665
|
-
iso_18045_high: "iso_18045_high";
|
|
1666
|
-
iso_18045_moderate: "iso_18045_moderate";
|
|
1667
|
-
"iso_18045_enhanced-basic": "iso_18045_enhanced-basic";
|
|
1668
|
-
iso_18045_basic: "iso_18045_basic";
|
|
1669
|
-
}>, z.ZodString]>>>;
|
|
1670
|
-
user_authentication: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1671
|
-
iso_18045_high: "iso_18045_high";
|
|
1672
|
-
iso_18045_moderate: "iso_18045_moderate";
|
|
1673
|
-
"iso_18045_enhanced-basic": "iso_18045_enhanced-basic";
|
|
1674
|
-
iso_18045_basic: "iso_18045_basic";
|
|
1675
|
-
}>, z.ZodString]>>>;
|
|
1676
|
-
}, z.core.$loose>>;
|
|
1677
|
-
}, z.core.$strip>>>;
|
|
1678
|
-
display: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1679
|
-
name: z.ZodString;
|
|
1680
|
-
locale: z.ZodOptional<z.ZodString>;
|
|
1681
|
-
logo: z.ZodOptional<z.ZodObject<{
|
|
1682
|
-
uri: z.ZodOptional<z.ZodString>;
|
|
1683
|
-
alt_text: z.ZodOptional<z.ZodString>;
|
|
1684
|
-
}, z.core.$loose>>;
|
|
1685
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1686
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1687
|
-
background_image: z.ZodOptional<z.ZodObject<{
|
|
1688
|
-
uri: z.ZodOptional<z.ZodString>;
|
|
1689
|
-
}, z.core.$loose>>;
|
|
1690
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1691
|
-
}, z.core.$loose>>>;
|
|
1692
|
-
credential_metadata: z.ZodOptional<z.ZodNever>;
|
|
1693
|
-
}, z.core.$loose>]>, z.ZodTransform<{
|
|
1694
|
-
[x: string]: unknown;
|
|
1695
|
-
format: string;
|
|
1696
|
-
scope?: string | undefined;
|
|
1697
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1698
|
-
credential_signing_alg_values_supported?: string[] | number[] | undefined;
|
|
1699
|
-
proof_types_supported?: Record<string, {
|
|
1700
|
-
proof_signing_alg_values_supported: string[];
|
|
1701
|
-
key_attestations_required?: {
|
|
1702
|
-
[x: string]: unknown;
|
|
1703
|
-
key_storage?: string[] | undefined;
|
|
1704
|
-
user_authentication?: string[] | undefined;
|
|
1705
|
-
} | undefined;
|
|
1706
|
-
}> | undefined;
|
|
1707
|
-
credential_metadata?: {
|
|
1708
|
-
[x: string]: unknown;
|
|
1709
|
-
display?: {
|
|
1710
|
-
[x: string]: unknown;
|
|
1711
|
-
name: string;
|
|
1712
|
-
locale?: string | undefined;
|
|
1713
|
-
logo?: {
|
|
1714
|
-
[x: string]: unknown;
|
|
1715
|
-
uri?: string | undefined;
|
|
1716
|
-
alt_text?: string | undefined;
|
|
1717
|
-
} | undefined;
|
|
1718
|
-
description?: string | undefined;
|
|
1719
|
-
background_color?: string | undefined;
|
|
1720
|
-
background_image?: {
|
|
1721
|
-
[x: string]: unknown;
|
|
1722
|
-
uri?: string | undefined;
|
|
1723
|
-
} | undefined;
|
|
1724
|
-
text_color?: string | undefined;
|
|
1725
|
-
}[] | undefined;
|
|
1726
|
-
} | undefined;
|
|
1727
|
-
}, {
|
|
1728
|
-
[x: string]: unknown;
|
|
1729
|
-
format: string;
|
|
1730
|
-
scope?: string | undefined;
|
|
1731
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1732
|
-
credential_signing_alg_values_supported?: string[] | number[] | undefined;
|
|
1733
|
-
proof_types_supported?: Record<string, {
|
|
1734
|
-
proof_signing_alg_values_supported: string[];
|
|
1735
|
-
key_attestations_required?: {
|
|
1736
|
-
[x: string]: unknown;
|
|
1737
|
-
key_storage?: string[] | undefined;
|
|
1738
|
-
user_authentication?: string[] | undefined;
|
|
1739
|
-
} | undefined;
|
|
1740
|
-
}> | undefined;
|
|
1741
|
-
credential_metadata?: {
|
|
1742
|
-
[x: string]: unknown;
|
|
1743
|
-
display?: {
|
|
1744
|
-
[x: string]: unknown;
|
|
1745
|
-
name: string;
|
|
1746
|
-
locale?: string | undefined;
|
|
1747
|
-
logo?: {
|
|
1748
|
-
[x: string]: unknown;
|
|
1749
|
-
uri?: string | undefined;
|
|
1750
|
-
alt_text?: string | undefined;
|
|
1751
|
-
} | undefined;
|
|
1752
|
-
description?: string | undefined;
|
|
1753
|
-
background_color?: string | undefined;
|
|
1754
|
-
background_image?: {
|
|
1755
|
-
[x: string]: unknown;
|
|
1756
|
-
uri?: string | undefined;
|
|
1757
|
-
} | undefined;
|
|
1758
|
-
text_color?: string | undefined;
|
|
1759
|
-
}[] | undefined;
|
|
1760
|
-
} | undefined;
|
|
1761
|
-
} | {
|
|
1762
|
-
[x: string]: unknown;
|
|
1763
|
-
format: string;
|
|
1764
|
-
scope?: string | undefined;
|
|
1765
|
-
cryptographic_binding_methods_supported?: string[] | undefined;
|
|
1766
|
-
credential_signing_alg_values_supported?: string[] | undefined;
|
|
1767
|
-
proof_types_supported?: Record<string, {
|
|
1768
|
-
proof_signing_alg_values_supported: string[];
|
|
1769
|
-
key_attestations_required?: {
|
|
1770
|
-
[x: string]: unknown;
|
|
1771
|
-
key_storage?: string[] | undefined;
|
|
1772
|
-
user_authentication?: string[] | undefined;
|
|
1773
|
-
} | undefined;
|
|
1774
|
-
}> | undefined;
|
|
1775
|
-
display?: {
|
|
1776
|
-
[x: string]: unknown;
|
|
1777
|
-
name: string;
|
|
1778
|
-
locale?: string | undefined;
|
|
1779
|
-
logo?: {
|
|
1780
|
-
[x: string]: unknown;
|
|
1781
|
-
uri?: string | undefined;
|
|
1782
|
-
alt_text?: string | undefined;
|
|
1783
|
-
} | undefined;
|
|
1784
|
-
description?: string | undefined;
|
|
1785
|
-
background_color?: string | undefined;
|
|
1786
|
-
background_image?: {
|
|
1787
|
-
[x: string]: unknown;
|
|
1788
|
-
uri?: string | undefined;
|
|
1789
|
-
} | undefined;
|
|
1790
|
-
text_color?: string | undefined;
|
|
1791
|
-
}[] | undefined;
|
|
1792
|
-
credential_metadata?: undefined;
|
|
1793
|
-
}>>>;
|
|
1519
|
+
}, z.core.$loose>>;
|
|
1794
1520
|
iat: z.ZodNumber;
|
|
1795
1521
|
sub: z.ZodString;
|
|
1796
1522
|
iss: z.ZodOptional<z.ZodString>;
|
|
@@ -1851,6 +1577,13 @@ interface IssuerMetadataResult {
|
|
|
1851
1577
|
*/
|
|
1852
1578
|
signedCredentialIssuer?: CredentialIssuerMetadataSigned;
|
|
1853
1579
|
authorizationServers: AuthorizationServerMetadata[];
|
|
1580
|
+
/**
|
|
1581
|
+
* Known credential configurations includes all the credential configurations with a known credential format
|
|
1582
|
+
* that pass the validation requirements from the OpenID4VCI specification. Recognized formats that do not
|
|
1583
|
+
* adhere to the format specific metadata requirements are not included, but also won't result in an error, to
|
|
1584
|
+
* to still allow interacting with issuers using invalid metadata for specific configurations.
|
|
1585
|
+
*/
|
|
1586
|
+
knownCredentialConfigurations: CredentialConfigurationsSupportedWithFormats;
|
|
1854
1587
|
}
|
|
1855
1588
|
//#endregion
|
|
1856
1589
|
//#region src/credential-offer/z-credential-offer.d.ts
|
|
@@ -2417,11 +2150,11 @@ type DeferredCredentialRequest = z.infer<typeof zDeferredCredentialRequest>;
|
|
|
2417
2150
|
//#region src/credential-request/credential-request-configurations.d.ts
|
|
2418
2151
|
interface GetCredentialConfigurationsMatchingRequestFormatOptions {
|
|
2419
2152
|
requestFormat: CredentialRequestFormatSpecific;
|
|
2420
|
-
|
|
2153
|
+
issuerMetadata: IssuerMetadataResult;
|
|
2421
2154
|
}
|
|
2422
2155
|
declare function getCredentialConfigurationsMatchingRequestFormat({
|
|
2423
2156
|
requestFormat,
|
|
2424
|
-
|
|
2157
|
+
issuerMetadata
|
|
2425
2158
|
}: GetCredentialConfigurationsMatchingRequestFormatOptions): CredentialConfigurationsSupportedWithFormats;
|
|
2426
2159
|
//#endregion
|
|
2427
2160
|
//#region src/credential-request/parse-credential-request.d.ts
|
|
@@ -3315,7 +3048,6 @@ declare class Openid4vciClient {
|
|
|
3315
3048
|
private options;
|
|
3316
3049
|
private oauth2Client;
|
|
3317
3050
|
constructor(options: Openid4vciClientOptions);
|
|
3318
|
-
getKnownCredentialConfigurationsSupported(credentialIssuerMetadata: CredentialIssuerMetadata): CredentialConfigurationsSupportedWithFormats;
|
|
3319
3051
|
/**
|
|
3320
3052
|
* Resolve a credential offer into a credential offer object, handling both
|
|
3321
3053
|
* 'credential_offer' and 'credential_offer_uri' params.
|