@openid4vc/openid4vp 0.3.0-alpha-20250322171044 → 0.3.0-alpha-20250324183425

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 CHANGED
@@ -1056,7 +1056,7 @@ declare const zOpenid4vpAuthorizationRequest: z.ZodObject<{
1056
1056
  client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1057
1057
  state: z.ZodOptional<z.ZodString>;
1058
1058
  transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1059
- trust_chain: z.ZodOptional<z.ZodUnknown>;
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
1061
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1062
1062
  response_type: z.ZodLiteral<"vp_token">;
@@ -2111,7 +2111,7 @@ declare const zOpenid4vpAuthorizationRequest: z.ZodObject<{
2111
2111
  client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2112
2112
  state: z.ZodOptional<z.ZodString>;
2113
2113
  transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2114
- trust_chain: z.ZodOptional<z.ZodUnknown>;
2114
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
2115
2115
  client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
2116
2116
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2117
2117
  response_type: z.ZodLiteral<"vp_token">;
@@ -3166,7 +3166,7 @@ declare const zOpenid4vpAuthorizationRequest: z.ZodObject<{
3166
3166
  client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3167
3167
  state: z.ZodOptional<z.ZodString>;
3168
3168
  transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3169
- trust_chain: z.ZodOptional<z.ZodUnknown>;
3169
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
3170
3170
  client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
3171
3171
  }, z.ZodTypeAny, "passthrough">>;
3172
3172
  type Openid4vpAuthorizationRequest = z.infer<typeof zOpenid4vpAuthorizationRequest>;
@@ -4242,7 +4242,7 @@ declare const zOpenid4vpAuthorizationRequestDcApi: z.ZodObject<z.objectUtil.exte
4242
4242
  client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4243
4243
  state: z.ZodOptional<z.ZodString>;
4244
4244
  transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4245
- trust_chain: z.ZodOptional<z.ZodUnknown>;
4245
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
4246
4246
  client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
4247
4247
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
4248
4248
  client_id: z.ZodOptional<z.ZodString>;
@@ -5303,7 +5303,7 @@ declare const zOpenid4vpAuthorizationRequestDcApi: z.ZodObject<z.objectUtil.exte
5303
5303
  client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5304
5304
  state: z.ZodOptional<z.ZodString>;
5305
5305
  transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5306
- trust_chain: z.ZodOptional<z.ZodUnknown>;
5306
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
5307
5307
  client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
5308
5308
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
5309
5309
  client_id: z.ZodOptional<z.ZodString>;
@@ -6364,7 +6364,7 @@ declare const zOpenid4vpAuthorizationRequestDcApi: z.ZodObject<z.objectUtil.exte
6364
6364
  client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
6365
6365
  state: z.ZodOptional<z.ZodString>;
6366
6366
  transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6367
- trust_chain: z.ZodOptional<z.ZodUnknown>;
6367
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
6368
6368
  client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
6369
6369
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
6370
6370
  client_id: z.ZodOptional<z.ZodString>;
@@ -6754,6 +6754,7 @@ declare const zJarRequestObjectPayload: z.ZodObject<{
6754
6754
  jkt: z.ZodOptional<z.ZodString>;
6755
6755
  }, z.ZodTypeAny, "passthrough">>>;
6756
6756
  status: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6757
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
6757
6758
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6758
6759
  client_id: z.ZodString;
6759
6760
  iss: z.ZodOptional<z.ZodString>;
@@ -7098,6 +7099,7 @@ declare const zJarRequestObjectPayload: z.ZodObject<{
7098
7099
  jkt: z.ZodOptional<z.ZodString>;
7099
7100
  }, z.ZodTypeAny, "passthrough">>>;
7100
7101
  status: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7102
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
7101
7103
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7102
7104
  client_id: z.ZodString;
7103
7105
  iss: z.ZodOptional<z.ZodString>;
@@ -7442,6 +7444,7 @@ declare const zJarRequestObjectPayload: z.ZodObject<{
7442
7444
  jkt: z.ZodOptional<z.ZodString>;
7443
7445
  }, z.ZodTypeAny, "passthrough">>>;
7444
7446
  status: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7447
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
7445
7448
  }, z.ZodTypeAny, "passthrough">>;
7446
7449
  type JarRequestObjectPayload = z.infer<typeof zJarRequestObjectPayload>;
7447
7450
 
@@ -8534,7 +8537,15 @@ type ParsedClientIdentifier = ({
8534
8537
  legacyClientId?: string;
8535
8538
  };
8536
8539
  interface GetOpenid4vpClientIdOptions {
8537
- authorizationRequestPayload: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi;
8540
+ /**
8541
+ * The client_id. Could be undefined in case of DC API
8542
+ */
8543
+ clientId?: string;
8544
+ /**
8545
+ * Legacy client id scheme from the authorization request payload
8546
+ */
8547
+ legacyClientIdScheme?: unknown;
8548
+ responseMode: unknown;
8538
8549
  origin?: string;
8539
8550
  }
8540
8551
  /**
@@ -8545,10 +8556,8 @@ interface GetOpenid4vpClientIdOptions {
8545
8556
  */
8546
8557
  declare function getOpenid4vpClientId(options: GetOpenid4vpClientIdOptions): {
8547
8558
  clientId: string;
8548
- legacyClientId?: undefined;
8549
- } | {
8550
- clientId: string;
8551
- legacyClientId: string;
8559
+ clientIdScheme: ClientIdScheme;
8560
+ legacyClientId?: string;
8552
8561
  };
8553
8562
 
8554
8563
  declare enum JarmMode {
@@ -8918,6 +8927,7 @@ declare function verifyJarmAuthorizationResponse(options: VerifyJarmAuthorizatio
8918
8927
  jkt: zod__default.ZodOptional<zod__default.ZodString>;
8919
8928
  }, zod__default.ZodTypeAny, "passthrough">>>;
8920
8929
  status: zod__default.ZodOptional<zod__default.ZodRecord<zod__default.ZodString, zod__default.ZodAny>>;
8930
+ trust_chain: zod__default.ZodOptional<zod__default.ZodArray<zod__default.ZodString, "atleastone">>;
8921
8931
  }, zod__default.ZodTypeAny, "passthrough"> | zod__default.objectOutputType<{
8922
8932
  state: zod__default.ZodOptional<zod__default.ZodString>;
8923
8933
  iss: zod__default.ZodOptional<zod__default.ZodString>;
@@ -9262,6 +9272,7 @@ declare function verifyJarmAuthorizationResponse(options: VerifyJarmAuthorizatio
9262
9272
  jkt: zod__default.ZodOptional<zod__default.ZodString>;
9263
9273
  }, zod__default.ZodTypeAny, "passthrough">>>;
9264
9274
  status: zod__default.ZodOptional<zod__default.ZodRecord<zod__default.ZodString, zod__default.ZodAny>>;
9275
+ trust_chain: zod__default.ZodOptional<zod__default.ZodArray<zod__default.ZodString, "atleastone">>;
9265
9276
  }, zod__default.ZodTypeAny, "passthrough">;
9266
9277
  type: JarmMode;
9267
9278
  issuer: string | undefined;
@@ -10399,7 +10410,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
10399
10410
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
10400
10411
  state: zod.ZodOptional<zod.ZodString>;
10401
10412
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
10402
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
10413
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
10403
10414
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
10404
10415
  }, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
10405
10416
  response_type: zod.ZodLiteral<"vp_token">;
@@ -11454,7 +11465,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
11454
11465
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
11455
11466
  state: zod.ZodOptional<zod.ZodString>;
11456
11467
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
11457
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
11468
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
11458
11469
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
11459
11470
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
11460
11471
  client_id: zod.ZodOptional<zod.ZodString>;
@@ -12611,7 +12622,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
12611
12622
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
12612
12623
  state: zod.ZodOptional<zod.ZodString>;
12613
12624
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
12614
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
12625
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
12615
12626
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
12616
12627
  }, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
12617
12628
  response_type: zod.ZodLiteral<"vp_token">;
@@ -13666,7 +13677,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
13666
13677
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
13667
13678
  state: zod.ZodOptional<zod.ZodString>;
13668
13679
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
13669
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
13680
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
13670
13681
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
13671
13682
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
13672
13683
  client_id: zod.ZodOptional<zod.ZodString>;
@@ -14728,7 +14739,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
14728
14739
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
14729
14740
  state: zod.ZodOptional<zod.ZodString>;
14730
14741
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
14731
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
14742
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
14732
14743
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
14733
14744
  }, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
14734
14745
  response_type: zod.ZodLiteral<"vp_token">;
@@ -15783,7 +15794,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
15783
15794
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
15784
15795
  state: zod.ZodOptional<zod.ZodString>;
15785
15796
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
15786
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
15797
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
15787
15798
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
15788
15799
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
15789
15800
  client_id: zod.ZodOptional<zod.ZodString>;
@@ -16155,7 +16166,7 @@ declare const zJarmHeader: z.ZodObject<{
16155
16166
  x5u: z.ZodOptional<z.ZodString>;
16156
16167
  }, z.ZodTypeAny, "passthrough">>>;
16157
16168
  x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16158
- trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16169
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
16159
16170
  }, "strip", z.ZodTypeAny, {
16160
16171
  alg: string;
16161
16172
  kid?: string | undefined;
@@ -16197,8 +16208,8 @@ declare const zJarmHeader: z.ZodObject<{
16197
16208
  'x5t#S256': z.ZodOptional<z.ZodString>;
16198
16209
  x5u: z.ZodOptional<z.ZodString>;
16199
16210
  }, z.ZodTypeAny, "passthrough"> | undefined;
16211
+ trust_chain?: [string, ...string[]] | undefined;
16200
16212
  typ?: string | undefined;
16201
- trust_chain?: string[] | undefined;
16202
16213
  apu?: string | undefined;
16203
16214
  apv?: string | undefined;
16204
16215
  }, {
@@ -16242,8 +16253,8 @@ declare const zJarmHeader: z.ZodObject<{
16242
16253
  'x5t#S256': z.ZodOptional<z.ZodString>;
16243
16254
  x5u: z.ZodOptional<z.ZodString>;
16244
16255
  }, z.ZodTypeAny, "passthrough"> | undefined;
16256
+ trust_chain?: [string, ...string[]] | undefined;
16245
16257
  typ?: string | undefined;
16246
- trust_chain?: string[] | undefined;
16247
16258
  apu?: string | undefined;
16248
16259
  apv?: string | undefined;
16249
16260
  }>;
@@ -17370,7 +17381,7 @@ declare class Openid4vpVerifier {
17370
17381
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
17371
17382
  state: zod.ZodOptional<zod.ZodString>;
17372
17383
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
17373
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
17384
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
17374
17385
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
17375
17386
  }, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
17376
17387
  response_type: zod.ZodLiteral<"vp_token">;
@@ -18425,7 +18436,7 @@ declare class Openid4vpVerifier {
18425
18436
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
18426
18437
  state: zod.ZodOptional<zod.ZodString>;
18427
18438
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
18428
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
18439
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
18429
18440
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
18430
18441
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
18431
18442
  client_id: zod.ZodOptional<zod.ZodString>;
@@ -19582,7 +19593,7 @@ declare class Openid4vpVerifier {
19582
19593
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
19583
19594
  state: zod.ZodOptional<zod.ZodString>;
19584
19595
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
19585
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
19596
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
19586
19597
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
19587
19598
  }, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
19588
19599
  response_type: zod.ZodLiteral<"vp_token">;
@@ -20637,7 +20648,7 @@ declare class Openid4vpVerifier {
20637
20648
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
20638
20649
  state: zod.ZodOptional<zod.ZodString>;
20639
20650
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
20640
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
20651
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
20641
20652
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
20642
20653
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
20643
20654
  client_id: zod.ZodOptional<zod.ZodString>;
@@ -21699,7 +21710,7 @@ declare class Openid4vpVerifier {
21699
21710
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
21700
21711
  state: zod.ZodOptional<zod.ZodString>;
21701
21712
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
21702
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
21713
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
21703
21714
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
21704
21715
  }, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
21705
21716
  response_type: zod.ZodLiteral<"vp_token">;
@@ -22754,7 +22765,7 @@ declare class Openid4vpVerifier {
22754
22765
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
22755
22766
  state: zod.ZodOptional<zod.ZodString>;
22756
22767
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
22757
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
22768
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
22758
22769
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
22759
22770
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
22760
22771
  client_id: zod.ZodOptional<zod.ZodString>;
package/dist/index.d.ts CHANGED
@@ -1056,7 +1056,7 @@ declare const zOpenid4vpAuthorizationRequest: z.ZodObject<{
1056
1056
  client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1057
1057
  state: z.ZodOptional<z.ZodString>;
1058
1058
  transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1059
- trust_chain: z.ZodOptional<z.ZodUnknown>;
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
1061
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1062
1062
  response_type: z.ZodLiteral<"vp_token">;
@@ -2111,7 +2111,7 @@ declare const zOpenid4vpAuthorizationRequest: z.ZodObject<{
2111
2111
  client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2112
2112
  state: z.ZodOptional<z.ZodString>;
2113
2113
  transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2114
- trust_chain: z.ZodOptional<z.ZodUnknown>;
2114
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
2115
2115
  client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
2116
2116
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2117
2117
  response_type: z.ZodLiteral<"vp_token">;
@@ -3166,7 +3166,7 @@ declare const zOpenid4vpAuthorizationRequest: z.ZodObject<{
3166
3166
  client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3167
3167
  state: z.ZodOptional<z.ZodString>;
3168
3168
  transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3169
- trust_chain: z.ZodOptional<z.ZodUnknown>;
3169
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
3170
3170
  client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
3171
3171
  }, z.ZodTypeAny, "passthrough">>;
3172
3172
  type Openid4vpAuthorizationRequest = z.infer<typeof zOpenid4vpAuthorizationRequest>;
@@ -4242,7 +4242,7 @@ declare const zOpenid4vpAuthorizationRequestDcApi: z.ZodObject<z.objectUtil.exte
4242
4242
  client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4243
4243
  state: z.ZodOptional<z.ZodString>;
4244
4244
  transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4245
- trust_chain: z.ZodOptional<z.ZodUnknown>;
4245
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
4246
4246
  client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
4247
4247
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
4248
4248
  client_id: z.ZodOptional<z.ZodString>;
@@ -5303,7 +5303,7 @@ declare const zOpenid4vpAuthorizationRequestDcApi: z.ZodObject<z.objectUtil.exte
5303
5303
  client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5304
5304
  state: z.ZodOptional<z.ZodString>;
5305
5305
  transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5306
- trust_chain: z.ZodOptional<z.ZodUnknown>;
5306
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
5307
5307
  client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
5308
5308
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
5309
5309
  client_id: z.ZodOptional<z.ZodString>;
@@ -6364,7 +6364,7 @@ declare const zOpenid4vpAuthorizationRequestDcApi: z.ZodObject<z.objectUtil.exte
6364
6364
  client_metadata_uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
6365
6365
  state: z.ZodOptional<z.ZodString>;
6366
6366
  transaction_data: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6367
- trust_chain: z.ZodOptional<z.ZodUnknown>;
6367
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
6368
6368
  client_id_scheme: z.ZodOptional<z.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
6369
6369
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
6370
6370
  client_id: z.ZodOptional<z.ZodString>;
@@ -6754,6 +6754,7 @@ declare const zJarRequestObjectPayload: z.ZodObject<{
6754
6754
  jkt: z.ZodOptional<z.ZodString>;
6755
6755
  }, z.ZodTypeAny, "passthrough">>>;
6756
6756
  status: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6757
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
6757
6758
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6758
6759
  client_id: z.ZodString;
6759
6760
  iss: z.ZodOptional<z.ZodString>;
@@ -7098,6 +7099,7 @@ declare const zJarRequestObjectPayload: z.ZodObject<{
7098
7099
  jkt: z.ZodOptional<z.ZodString>;
7099
7100
  }, z.ZodTypeAny, "passthrough">>>;
7100
7101
  status: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7102
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
7101
7103
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7102
7104
  client_id: z.ZodString;
7103
7105
  iss: z.ZodOptional<z.ZodString>;
@@ -7442,6 +7444,7 @@ declare const zJarRequestObjectPayload: z.ZodObject<{
7442
7444
  jkt: z.ZodOptional<z.ZodString>;
7443
7445
  }, z.ZodTypeAny, "passthrough">>>;
7444
7446
  status: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7447
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
7445
7448
  }, z.ZodTypeAny, "passthrough">>;
7446
7449
  type JarRequestObjectPayload = z.infer<typeof zJarRequestObjectPayload>;
7447
7450
 
@@ -8534,7 +8537,15 @@ type ParsedClientIdentifier = ({
8534
8537
  legacyClientId?: string;
8535
8538
  };
8536
8539
  interface GetOpenid4vpClientIdOptions {
8537
- authorizationRequestPayload: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi;
8540
+ /**
8541
+ * The client_id. Could be undefined in case of DC API
8542
+ */
8543
+ clientId?: string;
8544
+ /**
8545
+ * Legacy client id scheme from the authorization request payload
8546
+ */
8547
+ legacyClientIdScheme?: unknown;
8548
+ responseMode: unknown;
8538
8549
  origin?: string;
8539
8550
  }
8540
8551
  /**
@@ -8545,10 +8556,8 @@ interface GetOpenid4vpClientIdOptions {
8545
8556
  */
8546
8557
  declare function getOpenid4vpClientId(options: GetOpenid4vpClientIdOptions): {
8547
8558
  clientId: string;
8548
- legacyClientId?: undefined;
8549
- } | {
8550
- clientId: string;
8551
- legacyClientId: string;
8559
+ clientIdScheme: ClientIdScheme;
8560
+ legacyClientId?: string;
8552
8561
  };
8553
8562
 
8554
8563
  declare enum JarmMode {
@@ -8918,6 +8927,7 @@ declare function verifyJarmAuthorizationResponse(options: VerifyJarmAuthorizatio
8918
8927
  jkt: zod__default.ZodOptional<zod__default.ZodString>;
8919
8928
  }, zod__default.ZodTypeAny, "passthrough">>>;
8920
8929
  status: zod__default.ZodOptional<zod__default.ZodRecord<zod__default.ZodString, zod__default.ZodAny>>;
8930
+ trust_chain: zod__default.ZodOptional<zod__default.ZodArray<zod__default.ZodString, "atleastone">>;
8921
8931
  }, zod__default.ZodTypeAny, "passthrough"> | zod__default.objectOutputType<{
8922
8932
  state: zod__default.ZodOptional<zod__default.ZodString>;
8923
8933
  iss: zod__default.ZodOptional<zod__default.ZodString>;
@@ -9262,6 +9272,7 @@ declare function verifyJarmAuthorizationResponse(options: VerifyJarmAuthorizatio
9262
9272
  jkt: zod__default.ZodOptional<zod__default.ZodString>;
9263
9273
  }, zod__default.ZodTypeAny, "passthrough">>>;
9264
9274
  status: zod__default.ZodOptional<zod__default.ZodRecord<zod__default.ZodString, zod__default.ZodAny>>;
9275
+ trust_chain: zod__default.ZodOptional<zod__default.ZodArray<zod__default.ZodString, "atleastone">>;
9265
9276
  }, zod__default.ZodTypeAny, "passthrough">;
9266
9277
  type: JarmMode;
9267
9278
  issuer: string | undefined;
@@ -10399,7 +10410,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
10399
10410
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
10400
10411
  state: zod.ZodOptional<zod.ZodString>;
10401
10412
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
10402
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
10413
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
10403
10414
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
10404
10415
  }, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
10405
10416
  response_type: zod.ZodLiteral<"vp_token">;
@@ -11454,7 +11465,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
11454
11465
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
11455
11466
  state: zod.ZodOptional<zod.ZodString>;
11456
11467
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
11457
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
11468
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
11458
11469
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
11459
11470
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
11460
11471
  client_id: zod.ZodOptional<zod.ZodString>;
@@ -12611,7 +12622,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
12611
12622
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
12612
12623
  state: zod.ZodOptional<zod.ZodString>;
12613
12624
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
12614
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
12625
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
12615
12626
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
12616
12627
  }, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
12617
12628
  response_type: zod.ZodLiteral<"vp_token">;
@@ -13666,7 +13677,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
13666
13677
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
13667
13678
  state: zod.ZodOptional<zod.ZodString>;
13668
13679
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
13669
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
13680
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
13670
13681
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
13671
13682
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
13672
13683
  client_id: zod.ZodOptional<zod.ZodString>;
@@ -14728,7 +14739,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
14728
14739
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
14729
14740
  state: zod.ZodOptional<zod.ZodString>;
14730
14741
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
14731
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
14742
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
14732
14743
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
14733
14744
  }, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
14734
14745
  response_type: zod.ZodLiteral<"vp_token">;
@@ -15783,7 +15794,7 @@ declare function createOpenid4vpAuthorizationRequest(options: CreateOpenid4vpAut
15783
15794
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
15784
15795
  state: zod.ZodOptional<zod.ZodString>;
15785
15796
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
15786
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
15797
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
15787
15798
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
15788
15799
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
15789
15800
  client_id: zod.ZodOptional<zod.ZodString>;
@@ -16155,7 +16166,7 @@ declare const zJarmHeader: z.ZodObject<{
16155
16166
  x5u: z.ZodOptional<z.ZodString>;
16156
16167
  }, z.ZodTypeAny, "passthrough">>>;
16157
16168
  x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16158
- trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16169
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
16159
16170
  }, "strip", z.ZodTypeAny, {
16160
16171
  alg: string;
16161
16172
  kid?: string | undefined;
@@ -16197,8 +16208,8 @@ declare const zJarmHeader: z.ZodObject<{
16197
16208
  'x5t#S256': z.ZodOptional<z.ZodString>;
16198
16209
  x5u: z.ZodOptional<z.ZodString>;
16199
16210
  }, z.ZodTypeAny, "passthrough"> | undefined;
16211
+ trust_chain?: [string, ...string[]] | undefined;
16200
16212
  typ?: string | undefined;
16201
- trust_chain?: string[] | undefined;
16202
16213
  apu?: string | undefined;
16203
16214
  apv?: string | undefined;
16204
16215
  }, {
@@ -16242,8 +16253,8 @@ declare const zJarmHeader: z.ZodObject<{
16242
16253
  'x5t#S256': z.ZodOptional<z.ZodString>;
16243
16254
  x5u: z.ZodOptional<z.ZodString>;
16244
16255
  }, z.ZodTypeAny, "passthrough"> | undefined;
16256
+ trust_chain?: [string, ...string[]] | undefined;
16245
16257
  typ?: string | undefined;
16246
- trust_chain?: string[] | undefined;
16247
16258
  apu?: string | undefined;
16248
16259
  apv?: string | undefined;
16249
16260
  }>;
@@ -17370,7 +17381,7 @@ declare class Openid4vpVerifier {
17370
17381
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
17371
17382
  state: zod.ZodOptional<zod.ZodString>;
17372
17383
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
17373
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
17384
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
17374
17385
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
17375
17386
  }, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
17376
17387
  response_type: zod.ZodLiteral<"vp_token">;
@@ -18425,7 +18436,7 @@ declare class Openid4vpVerifier {
18425
18436
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
18426
18437
  state: zod.ZodOptional<zod.ZodString>;
18427
18438
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
18428
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
18439
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
18429
18440
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
18430
18441
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
18431
18442
  client_id: zod.ZodOptional<zod.ZodString>;
@@ -19582,7 +19593,7 @@ declare class Openid4vpVerifier {
19582
19593
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
19583
19594
  state: zod.ZodOptional<zod.ZodString>;
19584
19595
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
19585
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
19596
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
19586
19597
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
19587
19598
  }, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
19588
19599
  response_type: zod.ZodLiteral<"vp_token">;
@@ -20637,7 +20648,7 @@ declare class Openid4vpVerifier {
20637
20648
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
20638
20649
  state: zod.ZodOptional<zod.ZodString>;
20639
20650
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
20640
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
20651
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
20641
20652
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
20642
20653
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
20643
20654
  client_id: zod.ZodOptional<zod.ZodString>;
@@ -21699,7 +21710,7 @@ declare class Openid4vpVerifier {
21699
21710
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
21700
21711
  state: zod.ZodOptional<zod.ZodString>;
21701
21712
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
21702
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
21713
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
21703
21714
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
21704
21715
  }, zod.ZodTypeAny, "passthrough"> | zod.objectOutputType<zod.objectUtil.extendShape<Pick<{
21705
21716
  response_type: zod.ZodLiteral<"vp_token">;
@@ -22754,7 +22765,7 @@ declare class Openid4vpVerifier {
22754
22765
  client_metadata_uri: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
22755
22766
  state: zod.ZodOptional<zod.ZodString>;
22756
22767
  transaction_data: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
22757
- trust_chain: zod.ZodOptional<zod.ZodUnknown>;
22768
+ trust_chain: zod.ZodOptional<zod.ZodArray<zod.ZodString, "atleastone">>;
22758
22769
  client_id_scheme: zod.ZodOptional<zod.ZodEnum<["pre-registered", "redirect_uri", "entity_id", "did", "verifier_attestation", "x509_san_dns", "x509_san_uri"]>>;
22759
22770
  }, "state" | "nonce" | "trust_chain" | "response_type" | "client_metadata" | "presentation_definition" | "dcql_query" | "transaction_data">, {
22760
22771
  client_id: zod.ZodOptional<zod.ZodString>;