@openid4vc/openid4vp 0.3.0-alpha-20250513122832 → 0.3.0-alpha-20250527111829
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 +234 -0
- package/dist/index.d.ts +234 -0
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1058,6 +1058,19 @@ declare const zOpenid4vpAuthorizationRequest: z.ZodObject<{
|
|
|
1058
1058
|
transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1059
1059
|
trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
1060
1060
|
client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
1061
|
+
verifier_attestations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1062
|
+
format: z.ZodString;
|
|
1063
|
+
data: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>;
|
|
1064
|
+
credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1065
|
+
}, "strip", z.ZodTypeAny, {
|
|
1066
|
+
format: string;
|
|
1067
|
+
data: string | Record<string, any>;
|
|
1068
|
+
credential_ids?: string[] | undefined;
|
|
1069
|
+
}, {
|
|
1070
|
+
format: string;
|
|
1071
|
+
data: string | Record<string, any>;
|
|
1072
|
+
credential_ids?: string[] | undefined;
|
|
1073
|
+
}>, "many">>;
|
|
1061
1074
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1062
1075
|
response_type: z.ZodLiteral<"vp_token">;
|
|
1063
1076
|
client_id: z.ZodString;
|
|
@@ -2113,6 +2126,19 @@ declare const zOpenid4vpAuthorizationRequest: z.ZodObject<{
|
|
|
2113
2126
|
transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2114
2127
|
trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
2115
2128
|
client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
2129
|
+
verifier_attestations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2130
|
+
format: z.ZodString;
|
|
2131
|
+
data: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>;
|
|
2132
|
+
credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2133
|
+
}, "strip", z.ZodTypeAny, {
|
|
2134
|
+
format: string;
|
|
2135
|
+
data: string | Record<string, any>;
|
|
2136
|
+
credential_ids?: string[] | undefined;
|
|
2137
|
+
}, {
|
|
2138
|
+
format: string;
|
|
2139
|
+
data: string | Record<string, any>;
|
|
2140
|
+
credential_ids?: string[] | undefined;
|
|
2141
|
+
}>, "many">>;
|
|
2116
2142
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2117
2143
|
response_type: z.ZodLiteral<"vp_token">;
|
|
2118
2144
|
client_id: z.ZodString;
|
|
@@ -3168,6 +3194,19 @@ declare const zOpenid4vpAuthorizationRequest: z.ZodObject<{
|
|
|
3168
3194
|
transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3169
3195
|
trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
3170
3196
|
client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
3197
|
+
verifier_attestations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3198
|
+
format: z.ZodString;
|
|
3199
|
+
data: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>;
|
|
3200
|
+
credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3201
|
+
}, "strip", z.ZodTypeAny, {
|
|
3202
|
+
format: string;
|
|
3203
|
+
data: string | Record<string, any>;
|
|
3204
|
+
credential_ids?: string[] | undefined;
|
|
3205
|
+
}, {
|
|
3206
|
+
format: string;
|
|
3207
|
+
data: string | Record<string, any>;
|
|
3208
|
+
credential_ids?: string[] | undefined;
|
|
3209
|
+
}>, "many">>;
|
|
3171
3210
|
}, z.ZodTypeAny, "passthrough">>;
|
|
3172
3211
|
type Openid4vpAuthorizationRequest = z.infer<typeof zOpenid4vpAuthorizationRequest>;
|
|
3173
3212
|
|
|
@@ -4244,6 +4283,19 @@ declare const zOpenid4vpAuthorizationRequestDcApi: z.ZodObject<z.objectUtil.exte
|
|
|
4244
4283
|
transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4245
4284
|
trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
4246
4285
|
client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
4286
|
+
verifier_attestations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4287
|
+
format: z.ZodString;
|
|
4288
|
+
data: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>;
|
|
4289
|
+
credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4290
|
+
}, "strip", z.ZodTypeAny, {
|
|
4291
|
+
format: string;
|
|
4292
|
+
data: string | Record<string, any>;
|
|
4293
|
+
credential_ids?: string[] | undefined;
|
|
4294
|
+
}, {
|
|
4295
|
+
format: string;
|
|
4296
|
+
data: string | Record<string, any>;
|
|
4297
|
+
credential_ids?: string[] | undefined;
|
|
4298
|
+
}>, "many">>;
|
|
4247
4299
|
}, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
|
|
4248
4300
|
client_id: z.ZodOptional<z.ZodString>;
|
|
4249
4301
|
expected_origins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -5305,6 +5357,19 @@ declare const zOpenid4vpAuthorizationRequestDcApi: z.ZodObject<z.objectUtil.exte
|
|
|
5305
5357
|
transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5306
5358
|
trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
5307
5359
|
client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
5360
|
+
verifier_attestations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5361
|
+
format: z.ZodString;
|
|
5362
|
+
data: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>;
|
|
5363
|
+
credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5364
|
+
}, "strip", z.ZodTypeAny, {
|
|
5365
|
+
format: string;
|
|
5366
|
+
data: string | Record<string, any>;
|
|
5367
|
+
credential_ids?: string[] | undefined;
|
|
5368
|
+
}, {
|
|
5369
|
+
format: string;
|
|
5370
|
+
data: string | Record<string, any>;
|
|
5371
|
+
credential_ids?: string[] | undefined;
|
|
5372
|
+
}>, "many">>;
|
|
5308
5373
|
}, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
|
|
5309
5374
|
client_id: z.ZodOptional<z.ZodString>;
|
|
5310
5375
|
expected_origins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -6366,6 +6431,19 @@ declare const zOpenid4vpAuthorizationRequestDcApi: z.ZodObject<z.objectUtil.exte
|
|
|
6366
6431
|
transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6367
6432
|
trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
6368
6433
|
client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
6434
|
+
verifier_attestations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6435
|
+
format: z.ZodString;
|
|
6436
|
+
data: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>;
|
|
6437
|
+
credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6438
|
+
}, "strip", z.ZodTypeAny, {
|
|
6439
|
+
format: string;
|
|
6440
|
+
data: string | Record<string, any>;
|
|
6441
|
+
credential_ids?: string[] | undefined;
|
|
6442
|
+
}, {
|
|
6443
|
+
format: string;
|
|
6444
|
+
data: string | Record<string, any>;
|
|
6445
|
+
credential_ids?: string[] | undefined;
|
|
6446
|
+
}>, "many">>;
|
|
6369
6447
|
}, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
|
|
6370
6448
|
client_id: z.ZodOptional<z.ZodString>;
|
|
6371
6449
|
expected_origins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -10412,6 +10490,19 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
|
|
|
10412
10490
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
10413
10491
|
trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
|
|
10414
10492
|
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
10493
|
+
verifier_attestations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
10494
|
+
format: zod.ZodString;
|
|
10495
|
+
data: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodAny>, zod.ZodString]>;
|
|
10496
|
+
credential_ids: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
10497
|
+
}, "strip", zod.ZodTypeAny, {
|
|
10498
|
+
format: string;
|
|
10499
|
+
data: string | Record<string, any>;
|
|
10500
|
+
credential_ids?: string[] | undefined;
|
|
10501
|
+
}, {
|
|
10502
|
+
format: string;
|
|
10503
|
+
data: string | Record<string, any>;
|
|
10504
|
+
credential_ids?: string[] | undefined;
|
|
10505
|
+
}>, "many">>;
|
|
10415
10506
|
}, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
|
|
10416
10507
|
response_type: zod.ZodLiteral<"vp_token">;
|
|
10417
10508
|
client_id: zod.ZodString;
|
|
@@ -11467,6 +11558,19 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
|
|
|
11467
11558
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
11468
11559
|
trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
|
|
11469
11560
|
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
11561
|
+
verifier_attestations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
11562
|
+
format: zod.ZodString;
|
|
11563
|
+
data: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodAny>, zod.ZodString]>;
|
|
11564
|
+
credential_ids: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
11565
|
+
}, "strip", zod.ZodTypeAny, {
|
|
11566
|
+
format: string;
|
|
11567
|
+
data: string | Record<string, any>;
|
|
11568
|
+
credential_ids?: string[] | undefined;
|
|
11569
|
+
}, {
|
|
11570
|
+
format: string;
|
|
11571
|
+
data: string | Record<string, any>;
|
|
11572
|
+
credential_ids?: string[] | undefined;
|
|
11573
|
+
}>, "many">>;
|
|
11470
11574
|
}, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
|
|
11471
11575
|
client_id: zod.ZodOptional<zod.ZodString>;
|
|
11472
11576
|
expected_origins: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
@@ -12624,6 +12728,19 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
|
|
|
12624
12728
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
12625
12729
|
trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
|
|
12626
12730
|
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
12731
|
+
verifier_attestations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
12732
|
+
format: zod.ZodString;
|
|
12733
|
+
data: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodAny>, zod.ZodString]>;
|
|
12734
|
+
credential_ids: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
12735
|
+
}, "strip", zod.ZodTypeAny, {
|
|
12736
|
+
format: string;
|
|
12737
|
+
data: string | Record<string, any>;
|
|
12738
|
+
credential_ids?: string[] | undefined;
|
|
12739
|
+
}, {
|
|
12740
|
+
format: string;
|
|
12741
|
+
data: string | Record<string, any>;
|
|
12742
|
+
credential_ids?: string[] | undefined;
|
|
12743
|
+
}>, "many">>;
|
|
12627
12744
|
}, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
|
|
12628
12745
|
response_type: zod.ZodLiteral<"vp_token">;
|
|
12629
12746
|
client_id: zod.ZodString;
|
|
@@ -13679,6 +13796,19 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
|
|
|
13679
13796
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
13680
13797
|
trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
|
|
13681
13798
|
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
13799
|
+
verifier_attestations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
13800
|
+
format: zod.ZodString;
|
|
13801
|
+
data: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodAny>, zod.ZodString]>;
|
|
13802
|
+
credential_ids: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
13803
|
+
}, "strip", zod.ZodTypeAny, {
|
|
13804
|
+
format: string;
|
|
13805
|
+
data: string | Record<string, any>;
|
|
13806
|
+
credential_ids?: string[] | undefined;
|
|
13807
|
+
}, {
|
|
13808
|
+
format: string;
|
|
13809
|
+
data: string | Record<string, any>;
|
|
13810
|
+
credential_ids?: string[] | undefined;
|
|
13811
|
+
}>, "many">>;
|
|
13682
13812
|
}, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
|
|
13683
13813
|
client_id: zod.ZodOptional<zod.ZodString>;
|
|
13684
13814
|
expected_origins: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
@@ -14741,6 +14871,19 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
|
|
|
14741
14871
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
14742
14872
|
trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
|
|
14743
14873
|
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
14874
|
+
verifier_attestations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
14875
|
+
format: zod.ZodString;
|
|
14876
|
+
data: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodAny>, zod.ZodString]>;
|
|
14877
|
+
credential_ids: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
14878
|
+
}, "strip", zod.ZodTypeAny, {
|
|
14879
|
+
format: string;
|
|
14880
|
+
data: string | Record<string, any>;
|
|
14881
|
+
credential_ids?: string[] | undefined;
|
|
14882
|
+
}, {
|
|
14883
|
+
format: string;
|
|
14884
|
+
data: string | Record<string, any>;
|
|
14885
|
+
credential_ids?: string[] | undefined;
|
|
14886
|
+
}>, "many">>;
|
|
14744
14887
|
}, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
|
|
14745
14888
|
response_type: zod.ZodLiteral<"vp_token">;
|
|
14746
14889
|
client_id: zod.ZodString;
|
|
@@ -15796,6 +15939,19 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
|
|
|
15796
15939
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
15797
15940
|
trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
|
|
15798
15941
|
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
15942
|
+
verifier_attestations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
15943
|
+
format: zod.ZodString;
|
|
15944
|
+
data: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodAny>, zod.ZodString]>;
|
|
15945
|
+
credential_ids: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
15946
|
+
}, "strip", zod.ZodTypeAny, {
|
|
15947
|
+
format: string;
|
|
15948
|
+
data: string | Record<string, any>;
|
|
15949
|
+
credential_ids?: string[] | undefined;
|
|
15950
|
+
}, {
|
|
15951
|
+
format: string;
|
|
15952
|
+
data: string | Record<string, any>;
|
|
15953
|
+
credential_ids?: string[] | undefined;
|
|
15954
|
+
}>, "many">>;
|
|
15799
15955
|
}, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
|
|
15800
15956
|
client_id: zod.ZodOptional<zod.ZodString>;
|
|
15801
15957
|
expected_origins: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
@@ -17392,6 +17548,19 @@ declare class Openid4vpVerifier {
|
|
|
17392
17548
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
17393
17549
|
trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
|
|
17394
17550
|
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
17551
|
+
verifier_attestations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
17552
|
+
format: zod.ZodString;
|
|
17553
|
+
data: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodAny>, zod.ZodString]>;
|
|
17554
|
+
credential_ids: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
17555
|
+
}, "strip", zod.ZodTypeAny, {
|
|
17556
|
+
format: string;
|
|
17557
|
+
data: string | Record<string, any>;
|
|
17558
|
+
credential_ids?: string[] | undefined;
|
|
17559
|
+
}, {
|
|
17560
|
+
format: string;
|
|
17561
|
+
data: string | Record<string, any>;
|
|
17562
|
+
credential_ids?: string[] | undefined;
|
|
17563
|
+
}>, "many">>;
|
|
17395
17564
|
}, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
|
|
17396
17565
|
response_type: zod.ZodLiteral<"vp_token">;
|
|
17397
17566
|
client_id: zod.ZodString;
|
|
@@ -18447,6 +18616,19 @@ declare class Openid4vpVerifier {
|
|
|
18447
18616
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
18448
18617
|
trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
|
|
18449
18618
|
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
18619
|
+
verifier_attestations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
18620
|
+
format: zod.ZodString;
|
|
18621
|
+
data: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodAny>, zod.ZodString]>;
|
|
18622
|
+
credential_ids: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
18623
|
+
}, "strip", zod.ZodTypeAny, {
|
|
18624
|
+
format: string;
|
|
18625
|
+
data: string | Record<string, any>;
|
|
18626
|
+
credential_ids?: string[] | undefined;
|
|
18627
|
+
}, {
|
|
18628
|
+
format: string;
|
|
18629
|
+
data: string | Record<string, any>;
|
|
18630
|
+
credential_ids?: string[] | undefined;
|
|
18631
|
+
}>, "many">>;
|
|
18450
18632
|
}, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
|
|
18451
18633
|
client_id: zod.ZodOptional<zod.ZodString>;
|
|
18452
18634
|
expected_origins: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
@@ -19604,6 +19786,19 @@ declare class Openid4vpVerifier {
|
|
|
19604
19786
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
19605
19787
|
trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
|
|
19606
19788
|
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
19789
|
+
verifier_attestations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
19790
|
+
format: zod.ZodString;
|
|
19791
|
+
data: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodAny>, zod.ZodString]>;
|
|
19792
|
+
credential_ids: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
19793
|
+
}, "strip", zod.ZodTypeAny, {
|
|
19794
|
+
format: string;
|
|
19795
|
+
data: string | Record<string, any>;
|
|
19796
|
+
credential_ids?: string[] | undefined;
|
|
19797
|
+
}, {
|
|
19798
|
+
format: string;
|
|
19799
|
+
data: string | Record<string, any>;
|
|
19800
|
+
credential_ids?: string[] | undefined;
|
|
19801
|
+
}>, "many">>;
|
|
19607
19802
|
}, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
|
|
19608
19803
|
response_type: zod.ZodLiteral<"vp_token">;
|
|
19609
19804
|
client_id: zod.ZodString;
|
|
@@ -20659,6 +20854,19 @@ declare class Openid4vpVerifier {
|
|
|
20659
20854
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
20660
20855
|
trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
|
|
20661
20856
|
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
20857
|
+
verifier_attestations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
20858
|
+
format: zod.ZodString;
|
|
20859
|
+
data: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodAny>, zod.ZodString]>;
|
|
20860
|
+
credential_ids: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
20861
|
+
}, "strip", zod.ZodTypeAny, {
|
|
20862
|
+
format: string;
|
|
20863
|
+
data: string | Record<string, any>;
|
|
20864
|
+
credential_ids?: string[] | undefined;
|
|
20865
|
+
}, {
|
|
20866
|
+
format: string;
|
|
20867
|
+
data: string | Record<string, any>;
|
|
20868
|
+
credential_ids?: string[] | undefined;
|
|
20869
|
+
}>, "many">>;
|
|
20662
20870
|
}, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
|
|
20663
20871
|
client_id: zod.ZodOptional<zod.ZodString>;
|
|
20664
20872
|
expected_origins: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
@@ -21721,6 +21929,19 @@ declare class Openid4vpVerifier {
|
|
|
21721
21929
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
21722
21930
|
trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
|
|
21723
21931
|
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
21932
|
+
verifier_attestations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
21933
|
+
format: zod.ZodString;
|
|
21934
|
+
data: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodAny>, zod.ZodString]>;
|
|
21935
|
+
credential_ids: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
21936
|
+
}, "strip", zod.ZodTypeAny, {
|
|
21937
|
+
format: string;
|
|
21938
|
+
data: string | Record<string, any>;
|
|
21939
|
+
credential_ids?: string[] | undefined;
|
|
21940
|
+
}, {
|
|
21941
|
+
format: string;
|
|
21942
|
+
data: string | Record<string, any>;
|
|
21943
|
+
credential_ids?: string[] | undefined;
|
|
21944
|
+
}>, "many">>;
|
|
21724
21945
|
}, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
|
|
21725
21946
|
response_type: zod.ZodLiteral<"vp_token">;
|
|
21726
21947
|
client_id: zod.ZodString;
|
|
@@ -22776,6 +22997,19 @@ declare class Openid4vpVerifier {
|
|
|
22776
22997
|
transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
22777
22998
|
trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
|
|
22778
22999
|
client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
|
|
23000
|
+
verifier_attestations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
23001
|
+
format: zod.ZodString;
|
|
23002
|
+
data: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodAny>, zod.ZodString]>;
|
|
23003
|
+
credential_ids: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
23004
|
+
}, "strip", zod.ZodTypeAny, {
|
|
23005
|
+
format: string;
|
|
23006
|
+
data: string | Record<string, any>;
|
|
23007
|
+
credential_ids?: string[] | undefined;
|
|
23008
|
+
}, {
|
|
23009
|
+
format: string;
|
|
23010
|
+
data: string | Record<string, any>;
|
|
23011
|
+
credential_ids?: string[] | undefined;
|
|
23012
|
+
}>, "many">>;
|
|
22779
23013
|
}, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
|
|
22780
23014
|
client_id: zod.ZodOptional<zod.ZodString>;
|
|
22781
23015
|
expected_origins: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
package/dist/index.js
CHANGED
|
@@ -191,14 +191,22 @@ var zOpenid4vpAuthorizationRequest = import_zod4.z.object({
|
|
|
191
191
|
"verifier_attestation",
|
|
192
192
|
"x509_san_dns",
|
|
193
193
|
"x509_san_uri"
|
|
194
|
-
]).optional()
|
|
194
|
+
]).optional(),
|
|
195
|
+
verifier_attestations: import_zod4.z.array(
|
|
196
|
+
import_zod4.z.object({
|
|
197
|
+
format: import_zod4.z.string(),
|
|
198
|
+
data: import_zod4.z.record(import_zod4.z.any()).or(import_zod4.z.string()),
|
|
199
|
+
credential_ids: import_zod4.z.array(import_zod4.z.string()).optional()
|
|
200
|
+
})
|
|
201
|
+
).optional()
|
|
195
202
|
}).passthrough();
|
|
196
203
|
var zOpenid4vpAuthorizationRequestFromUriParams = import_zod4.z.string().url().transform((url) => Object.fromEntries(new import_utils3.URL(url).searchParams)).pipe(
|
|
197
204
|
import_zod4.z.object({
|
|
198
205
|
presentation_definition: import_utils3.zStringToJson.optional(),
|
|
199
206
|
client_metadata: import_utils3.zStringToJson.optional(),
|
|
200
207
|
dcql_query: import_utils3.zStringToJson.optional(),
|
|
201
|
-
transaction_data: import_utils3.zStringToJson.optional()
|
|
208
|
+
transaction_data: import_utils3.zStringToJson.optional(),
|
|
209
|
+
verifier_attestations: import_utils3.zStringToJson.optional()
|
|
202
210
|
}).passthrough()
|
|
203
211
|
);
|
|
204
212
|
|