@openid4vc/openid4vp 0.3.0-alpha-20250225204254 → 0.3.0-alpha-20250227094616
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.d.mts +74 -27
- package/dist/index.d.ts +74 -27
- package/dist/index.js +432 -265
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +366 -199
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -3896,9 +3896,11 @@ declare const zOpenid4vpAuthorizationRequest: z.ZodObject<{
|
|
|
3896
3896
|
alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3897
3897
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
3898
3898
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
3899
|
+
client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
3899
3900
|
state: z.ZodOptional<z.ZodString>;
|
|
3900
3901
|
transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3901
3902
|
trust_chain: z.ZodOptional<z.ZodUnknown>;
|
|
3903
|
+
client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
3902
3904
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3903
3905
|
response_type: z.ZodLiteral<"vp_token">;
|
|
3904
3906
|
client_id: z.ZodString;
|
|
@@ -4946,9 +4948,11 @@ declare const zOpenid4vpAuthorizationRequest: z.ZodObject<{
|
|
|
4946
4948
|
alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4947
4949
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
4948
4950
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
4951
|
+
client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4949
4952
|
state: z.ZodOptional<z.ZodString>;
|
|
4950
4953
|
transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4951
4954
|
trust_chain: z.ZodOptional<z.ZodUnknown>;
|
|
4955
|
+
client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
4952
4956
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4953
4957
|
response_type: z.ZodLiteral<"vp_token">;
|
|
4954
4958
|
client_id: z.ZodString;
|
|
@@ -5996,9 +6000,11 @@ declare const zOpenid4vpAuthorizationRequest: z.ZodObject<{
|
|
|
5996
6000
|
alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5997
6001
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
5998
6002
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
6003
|
+
client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
5999
6004
|
state: z.ZodOptional<z.ZodString>;
|
|
6000
6005
|
transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6001
6006
|
trust_chain: z.ZodOptional<z.ZodUnknown>;
|
|
6007
|
+
client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
6002
6008
|
}, z.ZodTypeAny, "passthrough">>;
|
|
6003
6009
|
type Openid4vpAuthorizationRequest = z.infer<typeof zOpenid4vpAuthorizationRequest>;
|
|
6004
6010
|
|
|
@@ -7080,17 +7086,20 @@ declare const zOpenid4vpAuthorizationRequestDcApi: z.ZodObject<z.objectUtil.exte
|
|
|
7080
7086
|
alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7081
7087
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
7082
7088
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
7089
|
+
client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
7083
7090
|
state: z.ZodOptional<z.ZodString>;
|
|
7084
7091
|
transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7085
7092
|
trust_chain: z.ZodOptional<z.ZodUnknown>;
|
|
7093
|
+
client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
7086
7094
|
}, "client_id" | "nonce" | "response_type" | "client_metadata" | "response_mode" | "presentation_definition" | "dcql_query" | "transaction_data">, {
|
|
7087
7095
|
client_id: z.ZodOptional<z.ZodString>;
|
|
7088
7096
|
expected_origins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7089
|
-
response_mode: z.ZodEnum<["dc_api", "dc_api.jwt"]>;
|
|
7097
|
+
response_mode: z.ZodEnum<["dc_api", "dc_api.jwt", "w3c_dc_api.jwt", "w3c_dc_api"]>;
|
|
7098
|
+
client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
7090
7099
|
}>, "strip", z.ZodTypeAny, {
|
|
7091
7100
|
nonce: string;
|
|
7092
7101
|
response_type: "vp_token";
|
|
7093
|
-
response_mode: "dc_api" | "dc_api.jwt";
|
|
7102
|
+
response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
|
|
7094
7103
|
client_id?: string | undefined;
|
|
7095
7104
|
client_metadata?: z.objectOutputType<{
|
|
7096
7105
|
logo_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -7440,11 +7449,12 @@ declare const zOpenid4vpAuthorizationRequestDcApi: z.ZodObject<z.objectUtil.exte
|
|
|
7440
7449
|
presentation_definition?: Record<string, any> | undefined;
|
|
7441
7450
|
dcql_query?: Record<string, any> | undefined;
|
|
7442
7451
|
transaction_data?: string[] | undefined;
|
|
7452
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_dns" | "x509_san_uri" | "entity_id" | undefined;
|
|
7443
7453
|
expected_origins?: string[] | undefined;
|
|
7444
7454
|
}, {
|
|
7445
7455
|
nonce: string;
|
|
7446
7456
|
response_type: "vp_token";
|
|
7447
|
-
response_mode: "dc_api" | "dc_api.jwt";
|
|
7457
|
+
response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
|
|
7448
7458
|
client_id?: string | undefined;
|
|
7449
7459
|
client_metadata?: z.objectInputType<{
|
|
7450
7460
|
logo_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -7794,6 +7804,7 @@ declare const zOpenid4vpAuthorizationRequestDcApi: z.ZodObject<z.objectUtil.exte
|
|
|
7794
7804
|
presentation_definition?: Record<string, any> | undefined;
|
|
7795
7805
|
dcql_query?: Record<string, any> | undefined;
|
|
7796
7806
|
transaction_data?: string[] | undefined;
|
|
7807
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_dns" | "x509_san_uri" | "entity_id" | undefined;
|
|
7797
7808
|
expected_origins?: string[] | undefined;
|
|
7798
7809
|
}>;
|
|
7799
7810
|
type Openid4vpAuthorizationRequestDcApi = z.infer<typeof zOpenid4vpAuthorizationRequestDcApi>;
|
|
@@ -7801,7 +7812,7 @@ declare function isOpenid4vpAuthorizationRequestDcApi(request: Openid4vpAuthoriz
|
|
|
7801
7812
|
|
|
7802
7813
|
interface CreateOpenid4vpAuthorizationRequestOptions {
|
|
7803
7814
|
scheme?: string;
|
|
7804
|
-
|
|
7815
|
+
requestPayload: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi;
|
|
7805
7816
|
jar?: {
|
|
7806
7817
|
requestUri?: string;
|
|
7807
7818
|
jwtSigner: JwtSigner;
|
|
@@ -8969,13 +8980,15 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
|
|
|
8969
8980
|
alg_values_supported: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
8970
8981
|
}, zod.ZodTypeAny, "passthrough">>>>;
|
|
8971
8982
|
}, zod.ZodTypeAny, "passthrough">>>;
|
|
8983
|
+
client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
8972
8984
|
state: zod.ZodOptional<zod.ZodString>;
|
|
8973
8985
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
8974
8986
|
trust_chain: zod.ZodOptional<zod.ZodUnknown>;
|
|
8987
|
+
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
8975
8988
|
}, zod.ZodTypeAny, "passthrough"> | {
|
|
8976
8989
|
nonce: string;
|
|
8977
8990
|
response_type: "vp_token";
|
|
8978
|
-
response_mode: "dc_api" | "dc_api.jwt";
|
|
8991
|
+
response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
|
|
8979
8992
|
client_id?: string | undefined;
|
|
8980
8993
|
client_metadata?: zod.objectOutputType<{
|
|
8981
8994
|
logo_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
@@ -9325,6 +9338,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
|
|
|
9325
9338
|
presentation_definition?: Record<string, any> | undefined;
|
|
9326
9339
|
dcql_query?: Record<string, any> | undefined;
|
|
9327
9340
|
transaction_data?: string[] | undefined;
|
|
9341
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_dns" | "x509_san_uri" | "entity_id" | undefined;
|
|
9328
9342
|
expected_origins?: string[] | undefined;
|
|
9329
9343
|
};
|
|
9330
9344
|
authRequest: any;
|
|
@@ -11492,7 +11506,7 @@ declare const zTransactionData: z.ZodArray<z.ZodObject<{
|
|
|
11492
11506
|
type TransactionData = z.infer<typeof zTransactionData>;
|
|
11493
11507
|
|
|
11494
11508
|
interface ResolveOpenid4vpAuthorizationRequestOptions {
|
|
11495
|
-
|
|
11509
|
+
requestPayload: Openid4vpAuthorizationRequest | JarAuthRequest;
|
|
11496
11510
|
wallet?: WalletVerificationOptions;
|
|
11497
11511
|
origin?: string;
|
|
11498
11512
|
omitOriginValidation?: boolean;
|
|
@@ -11500,7 +11514,7 @@ interface ResolveOpenid4vpAuthorizationRequestOptions {
|
|
|
11500
11514
|
}
|
|
11501
11515
|
type ResolvedOpenid4vpAuthRequest = {
|
|
11502
11516
|
transactionData?: TransactionData;
|
|
11503
|
-
|
|
11517
|
+
requestPayload: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi;
|
|
11504
11518
|
jar: VerifiedJarRequest | undefined;
|
|
11505
11519
|
client: ParsedClientIdentifier;
|
|
11506
11520
|
pex?: {
|
|
@@ -11559,8 +11573,8 @@ declare const zOpenid4vpAuthorizationResponse: z.ZodObject<{
|
|
|
11559
11573
|
type Openid4vpAuthorizationResponse = z.infer<typeof zOpenid4vpAuthorizationResponse>;
|
|
11560
11574
|
|
|
11561
11575
|
interface CreateOpenid4vpAuthorizationResponseOptions {
|
|
11562
|
-
|
|
11563
|
-
|
|
11576
|
+
requestPayload: Pick<Openid4vpAuthorizationRequest, 'state' | 'client_metadata' | 'nonce' | 'response_mode'> | Pick<Openid4vpAuthorizationRequestDcApi, 'client_metadata' | 'response_mode' | 'nonce'>;
|
|
11577
|
+
responsePayload: Openid4vpAuthorizationResponse & {
|
|
11564
11578
|
state?: never;
|
|
11565
11579
|
};
|
|
11566
11580
|
jarm?: {
|
|
@@ -11576,7 +11590,7 @@ interface CreateOpenid4vpAuthorizationResponseOptions {
|
|
|
11576
11590
|
callbacks: Pick<CallbackContext, 'signJwt' | 'encryptJwe'>;
|
|
11577
11591
|
}
|
|
11578
11592
|
interface CreateOpenid4vpAuthorizationResponseResult {
|
|
11579
|
-
|
|
11593
|
+
responsePayload: Openid4vpAuthorizationResponse;
|
|
11580
11594
|
jarm?: {
|
|
11581
11595
|
responseJwt: string;
|
|
11582
11596
|
};
|
|
@@ -11584,8 +11598,8 @@ interface CreateOpenid4vpAuthorizationResponseResult {
|
|
|
11584
11598
|
declare function createOpenid4vpAuthorizationResponse(options: CreateOpenid4vpAuthorizationResponseOptions): Promise<CreateOpenid4vpAuthorizationResponseResult>;
|
|
11585
11599
|
|
|
11586
11600
|
interface SubmitOpenid4vpAuthorizationResponseOptions {
|
|
11587
|
-
|
|
11588
|
-
|
|
11601
|
+
requestPayload: Pick<Openid4vpAuthorizationRequest, 'response_uri'>;
|
|
11602
|
+
responsePayload: Openid4vpAuthorizationResponse;
|
|
11589
11603
|
jarm?: {
|
|
11590
11604
|
responseJwt: string;
|
|
11591
11605
|
};
|
|
@@ -11646,8 +11660,8 @@ interface ValidateOpenid4VpDcqlAuthorizationResponseResult {
|
|
|
11646
11660
|
type ValidateOpenid4VpAuthorizationResponseResult = ValidateOpenid4VpPexAuthorizationResponseResult | ValidateOpenid4VpDcqlAuthorizationResponseResult;
|
|
11647
11661
|
|
|
11648
11662
|
interface ValidateOpenid4vpAuthorizationResponseOptions {
|
|
11649
|
-
|
|
11650
|
-
|
|
11663
|
+
requestPayload: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi;
|
|
11664
|
+
responsePayload: Openid4vpAuthorizationResponse;
|
|
11651
11665
|
}
|
|
11652
11666
|
/**
|
|
11653
11667
|
* The following steps need to be performed outside of this library
|
|
@@ -13472,13 +13486,15 @@ declare function parseOpenid4vpAuthorizationResponse(options: ParseOpenid4vpAuth
|
|
|
13472
13486
|
alg_values_supported: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
13473
13487
|
}, zod.ZodTypeAny, "passthrough">>>>;
|
|
13474
13488
|
}, zod.ZodTypeAny, "passthrough">>>;
|
|
13489
|
+
client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
13475
13490
|
state: zod.ZodOptional<zod.ZodString>;
|
|
13476
13491
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
13477
13492
|
trust_chain: zod.ZodOptional<zod.ZodUnknown>;
|
|
13493
|
+
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
13478
13494
|
}, zod.ZodTypeAny, "passthrough"> | {
|
|
13479
13495
|
nonce: string;
|
|
13480
13496
|
response_type: "vp_token";
|
|
13481
|
-
response_mode: "dc_api" | "dc_api.jwt";
|
|
13497
|
+
response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
|
|
13482
13498
|
client_id?: string | undefined;
|
|
13483
13499
|
client_metadata?: zod.objectOutputType<{
|
|
13484
13500
|
logo_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
@@ -13828,6 +13844,7 @@ declare function parseOpenid4vpAuthorizationResponse(options: ParseOpenid4vpAuth
|
|
|
13828
13844
|
presentation_definition?: Record<string, any> | undefined;
|
|
13829
13845
|
dcql_query?: Record<string, any> | undefined;
|
|
13830
13846
|
transaction_data?: string[] | undefined;
|
|
13847
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_dns" | "x509_san_uri" | "entity_id" | undefined;
|
|
13831
13848
|
expected_origins?: string[] | undefined;
|
|
13832
13849
|
};
|
|
13833
13850
|
type: "pex";
|
|
@@ -15644,13 +15661,15 @@ declare function parseOpenid4vpAuthorizationResponse(options: ParseOpenid4vpAuth
|
|
|
15644
15661
|
alg_values_supported: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
15645
15662
|
}, zod.ZodTypeAny, "passthrough">>>>;
|
|
15646
15663
|
}, zod.ZodTypeAny, "passthrough">>>;
|
|
15664
|
+
client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
15647
15665
|
state: zod.ZodOptional<zod.ZodString>;
|
|
15648
15666
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
15649
15667
|
trust_chain: zod.ZodOptional<zod.ZodUnknown>;
|
|
15668
|
+
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
15650
15669
|
}, zod.ZodTypeAny, "passthrough"> | {
|
|
15651
15670
|
nonce: string;
|
|
15652
15671
|
response_type: "vp_token";
|
|
15653
|
-
response_mode: "dc_api" | "dc_api.jwt";
|
|
15672
|
+
response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
|
|
15654
15673
|
client_id?: string | undefined;
|
|
15655
15674
|
client_metadata?: zod.objectOutputType<{
|
|
15656
15675
|
logo_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
@@ -16000,6 +16019,7 @@ declare function parseOpenid4vpAuthorizationResponse(options: ParseOpenid4vpAuth
|
|
|
16000
16019
|
presentation_definition?: Record<string, any> | undefined;
|
|
16001
16020
|
dcql_query?: Record<string, any> | undefined;
|
|
16002
16021
|
transaction_data?: string[] | undefined;
|
|
16022
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_dns" | "x509_san_uri" | "entity_id" | undefined;
|
|
16003
16023
|
expected_origins?: string[] | undefined;
|
|
16004
16024
|
};
|
|
16005
16025
|
type: "dcql";
|
|
@@ -17070,13 +17090,15 @@ declare function parseOpenid4vpAuthorizationResponse(options: ParseOpenid4vpAuth
|
|
|
17070
17090
|
alg_values_supported: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
17071
17091
|
}, zod.ZodTypeAny, "passthrough">>>>;
|
|
17072
17092
|
}, zod.ZodTypeAny, "passthrough">>>;
|
|
17093
|
+
client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
17073
17094
|
state: zod.ZodOptional<zod.ZodString>;
|
|
17074
17095
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
17075
17096
|
trust_chain: zod.ZodOptional<zod.ZodUnknown>;
|
|
17097
|
+
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
17076
17098
|
}, zod.ZodTypeAny, "passthrough"> | {
|
|
17077
17099
|
nonce: string;
|
|
17078
17100
|
response_type: "vp_token";
|
|
17079
|
-
response_mode: "dc_api" | "dc_api.jwt";
|
|
17101
|
+
response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
|
|
17080
17102
|
client_id?: string | undefined;
|
|
17081
17103
|
client_metadata?: zod.objectOutputType<{
|
|
17082
17104
|
logo_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
@@ -17426,6 +17448,7 @@ declare function parseOpenid4vpAuthorizationResponse(options: ParseOpenid4vpAuth
|
|
|
17426
17448
|
presentation_definition?: Record<string, any> | undefined;
|
|
17427
17449
|
dcql_query?: Record<string, any> | undefined;
|
|
17428
17450
|
transaction_data?: string[] | undefined;
|
|
17451
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_dns" | "x509_san_uri" | "entity_id" | undefined;
|
|
17429
17452
|
expected_origins?: string[] | undefined;
|
|
17430
17453
|
};
|
|
17431
17454
|
jarm: undefined;
|
|
@@ -18498,13 +18521,15 @@ declare function parseOpenid4vpAuthorizationResponse(options: ParseOpenid4vpAuth
|
|
|
18498
18521
|
alg_values_supported: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
18499
18522
|
}, zod.ZodTypeAny, "passthrough">>>>;
|
|
18500
18523
|
}, zod.ZodTypeAny, "passthrough">>>;
|
|
18524
|
+
client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
18501
18525
|
state: zod.ZodOptional<zod.ZodString>;
|
|
18502
18526
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
18503
18527
|
trust_chain: zod.ZodOptional<zod.ZodUnknown>;
|
|
18528
|
+
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
18504
18529
|
}, zod.ZodTypeAny, "passthrough"> | {
|
|
18505
18530
|
nonce: string;
|
|
18506
18531
|
response_type: "vp_token";
|
|
18507
|
-
response_mode: "dc_api" | "dc_api.jwt";
|
|
18532
|
+
response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
|
|
18508
18533
|
client_id?: string | undefined;
|
|
18509
18534
|
client_metadata?: zod.objectOutputType<{
|
|
18510
18535
|
logo_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
@@ -18854,6 +18879,7 @@ declare function parseOpenid4vpAuthorizationResponse(options: ParseOpenid4vpAuth
|
|
|
18854
18879
|
presentation_definition?: Record<string, any> | undefined;
|
|
18855
18880
|
dcql_query?: Record<string, any> | undefined;
|
|
18856
18881
|
transaction_data?: string[] | undefined;
|
|
18882
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_dns" | "x509_san_uri" | "entity_id" | undefined;
|
|
18857
18883
|
expected_origins?: string[] | undefined;
|
|
18858
18884
|
};
|
|
18859
18885
|
jarm: undefined;
|
|
@@ -20679,13 +20705,15 @@ declare function parseJarmAuthorizationResponse(options: ParseJarmAuthorizationR
|
|
|
20679
20705
|
alg_values_supported: zod__default.ZodOptional<zod__default.ZodArray<zod__default.ZodString, "many">>;
|
|
20680
20706
|
}, zod__default.ZodTypeAny, "passthrough">>>>;
|
|
20681
20707
|
}, zod__default.ZodTypeAny, "passthrough">>>;
|
|
20708
|
+
client_metadata_uri: zod__default.ZodOptional<zod__default.ZodEffects<zod__default.ZodString, string, string>>;
|
|
20682
20709
|
state: zod__default.ZodOptional<zod__default.ZodString>;
|
|
20683
20710
|
transaction_data: zod__default.ZodOptional<zod__default.ZodArray<zod__default.ZodString, "many">>;
|
|
20684
20711
|
trust_chain: zod__default.ZodOptional<zod__default.ZodUnknown>;
|
|
20712
|
+
client_id_scheme: zod__default.ZodOptional<zod__default.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
20685
20713
|
}, zod__default.ZodTypeAny, "passthrough"> | {
|
|
20686
20714
|
nonce: string;
|
|
20687
20715
|
response_type: "vp_token";
|
|
20688
|
-
response_mode: "dc_api" | "dc_api.jwt";
|
|
20716
|
+
response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
|
|
20689
20717
|
client_id?: string | undefined;
|
|
20690
20718
|
client_metadata?: zod__default.objectOutputType<{
|
|
20691
20719
|
logo_uri: zod__default.ZodOptional<zod__default.ZodEffects<zod__default.ZodString, string, string>>;
|
|
@@ -21035,6 +21063,7 @@ declare function parseJarmAuthorizationResponse(options: ParseJarmAuthorizationR
|
|
|
21035
21063
|
presentation_definition?: Record<string, any> | undefined;
|
|
21036
21064
|
dcql_query?: Record<string, any> | undefined;
|
|
21037
21065
|
transaction_data?: string[] | undefined;
|
|
21066
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_dns" | "x509_san_uri" | "entity_id" | undefined;
|
|
21038
21067
|
expected_origins?: string[] | undefined;
|
|
21039
21068
|
};
|
|
21040
21069
|
type: "pex";
|
|
@@ -22851,13 +22880,15 @@ declare function parseJarmAuthorizationResponse(options: ParseJarmAuthorizationR
|
|
|
22851
22880
|
alg_values_supported: zod__default.ZodOptional<zod__default.ZodArray<zod__default.ZodString, "many">>;
|
|
22852
22881
|
}, zod__default.ZodTypeAny, "passthrough">>>>;
|
|
22853
22882
|
}, zod__default.ZodTypeAny, "passthrough">>>;
|
|
22883
|
+
client_metadata_uri: zod__default.ZodOptional<zod__default.ZodEffects<zod__default.ZodString, string, string>>;
|
|
22854
22884
|
state: zod__default.ZodOptional<zod__default.ZodString>;
|
|
22855
22885
|
transaction_data: zod__default.ZodOptional<zod__default.ZodArray<zod__default.ZodString, "many">>;
|
|
22856
22886
|
trust_chain: zod__default.ZodOptional<zod__default.ZodUnknown>;
|
|
22887
|
+
client_id_scheme: zod__default.ZodOptional<zod__default.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
22857
22888
|
}, zod__default.ZodTypeAny, "passthrough"> | {
|
|
22858
22889
|
nonce: string;
|
|
22859
22890
|
response_type: "vp_token";
|
|
22860
|
-
response_mode: "dc_api" | "dc_api.jwt";
|
|
22891
|
+
response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
|
|
22861
22892
|
client_id?: string | undefined;
|
|
22862
22893
|
client_metadata?: zod__default.objectOutputType<{
|
|
22863
22894
|
logo_uri: zod__default.ZodOptional<zod__default.ZodEffects<zod__default.ZodString, string, string>>;
|
|
@@ -23207,6 +23238,7 @@ declare function parseJarmAuthorizationResponse(options: ParseJarmAuthorizationR
|
|
|
23207
23238
|
presentation_definition?: Record<string, any> | undefined;
|
|
23208
23239
|
dcql_query?: Record<string, any> | undefined;
|
|
23209
23240
|
transaction_data?: string[] | undefined;
|
|
23241
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_dns" | "x509_san_uri" | "entity_id" | undefined;
|
|
23210
23242
|
expected_origins?: string[] | undefined;
|
|
23211
23243
|
};
|
|
23212
23244
|
type: "dcql";
|
|
@@ -24393,13 +24425,15 @@ declare class Openid4vpVerifier {
|
|
|
24393
24425
|
alg_values_supported: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
24394
24426
|
}, zod.ZodTypeAny, "passthrough">>>>;
|
|
24395
24427
|
}, zod.ZodTypeAny, "passthrough">>>;
|
|
24428
|
+
client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
24396
24429
|
state: zod.ZodOptional<zod.ZodString>;
|
|
24397
24430
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
24398
24431
|
trust_chain: zod.ZodOptional<zod.ZodUnknown>;
|
|
24432
|
+
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
24399
24433
|
}, zod.ZodTypeAny, "passthrough"> | {
|
|
24400
24434
|
nonce: string;
|
|
24401
24435
|
response_type: "vp_token";
|
|
24402
|
-
response_mode: "dc_api" | "dc_api.jwt";
|
|
24436
|
+
response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
|
|
24403
24437
|
client_id?: string | undefined;
|
|
24404
24438
|
client_metadata?: zod.objectOutputType<{
|
|
24405
24439
|
logo_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
@@ -24749,6 +24783,7 @@ declare class Openid4vpVerifier {
|
|
|
24749
24783
|
presentation_definition?: Record<string, any> | undefined;
|
|
24750
24784
|
dcql_query?: Record<string, any> | undefined;
|
|
24751
24785
|
transaction_data?: string[] | undefined;
|
|
24786
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_dns" | "x509_san_uri" | "entity_id" | undefined;
|
|
24752
24787
|
expected_origins?: string[] | undefined;
|
|
24753
24788
|
};
|
|
24754
24789
|
authRequest: any;
|
|
@@ -26558,13 +26593,15 @@ declare class Openid4vpVerifier {
|
|
|
26558
26593
|
alg_values_supported: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
26559
26594
|
}, zod.ZodTypeAny, "passthrough">>>>;
|
|
26560
26595
|
}, zod.ZodTypeAny, "passthrough">>>;
|
|
26596
|
+
client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
26561
26597
|
state: zod.ZodOptional<zod.ZodString>;
|
|
26562
26598
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
26563
26599
|
trust_chain: zod.ZodOptional<zod.ZodUnknown>;
|
|
26600
|
+
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
26564
26601
|
}, zod.ZodTypeAny, "passthrough"> | {
|
|
26565
26602
|
nonce: string;
|
|
26566
26603
|
response_type: "vp_token";
|
|
26567
|
-
response_mode: "dc_api" | "dc_api.jwt";
|
|
26604
|
+
response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
|
|
26568
26605
|
client_id?: string | undefined;
|
|
26569
26606
|
client_metadata?: zod.objectOutputType<{
|
|
26570
26607
|
logo_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
@@ -26914,6 +26951,7 @@ declare class Openid4vpVerifier {
|
|
|
26914
26951
|
presentation_definition?: Record<string, any> | undefined;
|
|
26915
26952
|
dcql_query?: Record<string, any> | undefined;
|
|
26916
26953
|
transaction_data?: string[] | undefined;
|
|
26954
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_dns" | "x509_san_uri" | "entity_id" | undefined;
|
|
26917
26955
|
expected_origins?: string[] | undefined;
|
|
26918
26956
|
};
|
|
26919
26957
|
type: "pex";
|
|
@@ -28730,13 +28768,15 @@ declare class Openid4vpVerifier {
|
|
|
28730
28768
|
alg_values_supported: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
28731
28769
|
}, zod.ZodTypeAny, "passthrough">>>>;
|
|
28732
28770
|
}, zod.ZodTypeAny, "passthrough">>>;
|
|
28771
|
+
client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
28733
28772
|
state: zod.ZodOptional<zod.ZodString>;
|
|
28734
28773
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
28735
28774
|
trust_chain: zod.ZodOptional<zod.ZodUnknown>;
|
|
28775
|
+
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
28736
28776
|
}, zod.ZodTypeAny, "passthrough"> | {
|
|
28737
28777
|
nonce: string;
|
|
28738
28778
|
response_type: "vp_token";
|
|
28739
|
-
response_mode: "dc_api" | "dc_api.jwt";
|
|
28779
|
+
response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
|
|
28740
28780
|
client_id?: string | undefined;
|
|
28741
28781
|
client_metadata?: zod.objectOutputType<{
|
|
28742
28782
|
logo_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
@@ -29086,6 +29126,7 @@ declare class Openid4vpVerifier {
|
|
|
29086
29126
|
presentation_definition?: Record<string, any> | undefined;
|
|
29087
29127
|
dcql_query?: Record<string, any> | undefined;
|
|
29088
29128
|
transaction_data?: string[] | undefined;
|
|
29129
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_dns" | "x509_san_uri" | "entity_id" | undefined;
|
|
29089
29130
|
expected_origins?: string[] | undefined;
|
|
29090
29131
|
};
|
|
29091
29132
|
type: "dcql";
|
|
@@ -30156,13 +30197,15 @@ declare class Openid4vpVerifier {
|
|
|
30156
30197
|
alg_values_supported: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
30157
30198
|
}, zod.ZodTypeAny, "passthrough">>>>;
|
|
30158
30199
|
}, zod.ZodTypeAny, "passthrough">>>;
|
|
30200
|
+
client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
30159
30201
|
state: zod.ZodOptional<zod.ZodString>;
|
|
30160
30202
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
30161
30203
|
trust_chain: zod.ZodOptional<zod.ZodUnknown>;
|
|
30204
|
+
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
30162
30205
|
}, zod.ZodTypeAny, "passthrough"> | {
|
|
30163
30206
|
nonce: string;
|
|
30164
30207
|
response_type: "vp_token";
|
|
30165
|
-
response_mode: "dc_api" | "dc_api.jwt";
|
|
30208
|
+
response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
|
|
30166
30209
|
client_id?: string | undefined;
|
|
30167
30210
|
client_metadata?: zod.objectOutputType<{
|
|
30168
30211
|
logo_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
@@ -30512,6 +30555,7 @@ declare class Openid4vpVerifier {
|
|
|
30512
30555
|
presentation_definition?: Record<string, any> | undefined;
|
|
30513
30556
|
dcql_query?: Record<string, any> | undefined;
|
|
30514
30557
|
transaction_data?: string[] | undefined;
|
|
30558
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_dns" | "x509_san_uri" | "entity_id" | undefined;
|
|
30515
30559
|
expected_origins?: string[] | undefined;
|
|
30516
30560
|
};
|
|
30517
30561
|
jarm: undefined;
|
|
@@ -31584,13 +31628,15 @@ declare class Openid4vpVerifier {
|
|
|
31584
31628
|
alg_values_supported: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
31585
31629
|
}, zod.ZodTypeAny, "passthrough">>>>;
|
|
31586
31630
|
}, zod.ZodTypeAny, "passthrough">>>;
|
|
31631
|
+
client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
31587
31632
|
state: zod.ZodOptional<zod.ZodString>;
|
|
31588
31633
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
31589
31634
|
trust_chain: zod.ZodOptional<zod.ZodUnknown>;
|
|
31635
|
+
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
31590
31636
|
}, zod.ZodTypeAny, "passthrough"> | {
|
|
31591
31637
|
nonce: string;
|
|
31592
31638
|
response_type: "vp_token";
|
|
31593
|
-
response_mode: "dc_api" | "dc_api.jwt";
|
|
31639
|
+
response_mode: "dc_api" | "dc_api.jwt" | "w3c_dc_api.jwt" | "w3c_dc_api";
|
|
31594
31640
|
client_id?: string | undefined;
|
|
31595
31641
|
client_metadata?: zod.objectOutputType<{
|
|
31596
31642
|
logo_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
@@ -31940,6 +31986,7 @@ declare class Openid4vpVerifier {
|
|
|
31940
31986
|
presentation_definition?: Record<string, any> | undefined;
|
|
31941
31987
|
dcql_query?: Record<string, any> | undefined;
|
|
31942
31988
|
transaction_data?: string[] | undefined;
|
|
31989
|
+
client_id_scheme?: "pre-registered" | "redirect_uri" | "verifier_attestation" | "did" | "x509_san_dns" | "x509_san_uri" | "entity_id" | undefined;
|
|
31943
31990
|
expected_origins?: string[] | undefined;
|
|
31944
31991
|
};
|
|
31945
31992
|
jarm: undefined;
|
|
@@ -31967,10 +32014,10 @@ declare const jarmResponseMode: readonly ["jwt", "query.jwt", "fragment.jwt", "f
|
|
|
31967
32014
|
type JarmResponseMode = (typeof jarmResponseMode)[number];
|
|
31968
32015
|
declare const isJarmResponseMode: (responseMode: string) => responseMode is JarmResponseMode;
|
|
31969
32016
|
|
|
31970
|
-
declare const zCredentialFormat: z.ZodEnum<["jwt_vc_json", "ldp_vc", "ac_vc", "mso_mdoc", "dc+sd-jwt"]>;
|
|
32017
|
+
declare const zCredentialFormat: z.ZodEnum<["jwt_vc_json", "ldp_vc", "ac_vc", "mso_mdoc", "dc+sd-jwt", "vc+sd-jwt"]>;
|
|
31971
32018
|
type CredentialFormat = z.infer<typeof zCredentialFormat>;
|
|
31972
32019
|
|
|
31973
|
-
declare const zProofFormat: z.ZodEnum<["jwt_vp_json", "ldc_vp", "ac_vp", "dc+sd-jwt", "mso_mdoc"]>;
|
|
32020
|
+
declare const zProofFormat: z.ZodEnum<["jwt_vp_json", "ldc_vp", "ac_vp", "dc+sd-jwt", "vc+sd-jwt", "mso_mdoc"]>;
|
|
31974
32021
|
type ProofFormat = z.infer<typeof zProofFormat>;
|
|
31975
32022
|
|
|
31976
32023
|
export { type ClientIdScheme, type ClientMetadata, type CreateOpenid4vpAuthorizationRequestOptions, type CreateOpenid4vpAuthorizationResponseOptions, type CreateOpenid4vpAuthorizationResponseResult, type CredentialFormat, type JarmClientMetadata, JarmMode, type Openid4vpAuthorizationRequest, type Openid4vpAuthorizationRequestDcApi, type Openid4vpAuthorizationResponse, Openid4vpClient, Openid4vpVerifier, type ParseJarmAuthorizationResponseOptions, type ParseOpenid4vpAuthRequestPayloadOptions, type ParseOpenid4vpAuthorizationResponseOptions, type ParsePresentationsFromVpTokenOptions, type ParseTransactionDataOptions, type ParsedOpenid4vpAuthorizationResponse, type ProofFormat, type ResolveOpenid4vpAuthorizationRequestOptions, type ResolvedOpenid4vpAuthRequest, type SubmitOpenid4vpAuthorizationResponseOptions, type TransactionDataEntry, type ValidateOpenid4VpAuthorizationResponseResult, type ValidateOpenid4VpDcqlAuthorizationResponseResult, type ValidateOpenid4VpPexAuthorizationResponseResult, type ValidateOpenid4vpAuthorizationRequestPayloadOptions, type ValidateOpenid4vpAuthorizationResponseOptions, type VerifyJarmAuthorizationResponseOptions, type VpTokenPresentationParseResult, type WalletMetadata, type WalletVerificationOptions, createOpenid4vpAuthorizationRequest, createOpenid4vpAuthorizationResponse, isJarmResponseMode, isOpenid4vpAuthorizationRequestDcApi, parseJarmAuthorizationResponse, parseOpenid4vpAuthorizationRequestPayload, parseOpenid4vpAuthorizationResponse, parsePresentationsFromVpToken, parseTransactionData, resolveOpenid4vpAuthorizationRequest, submitOpenid4vpAuthorizationResponse, validateOpenid4vpAuthorizationRequestPayload, validateOpenid4vpAuthorizationResponse, verifyJarmAuthorizationResponse, zClientIdScheme, zClientMetadata, zCredentialFormat, zJarmClientMetadata, zOpenid4vpAuthorizationResponse, zProofFormat, zWalletMetadata };
|