@openid4vc/openid4vp 0.3.0-alpha-20250707121837 → 0.3.0-alpha-20250711140312

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
@@ -12536,6 +12536,14 @@ declare const zJarmClientMetadata: z.ZodObject<{
12536
12536
  }>;
12537
12537
  type JarmClientMetadata = z.infer<typeof zJarmClientMetadata>;
12538
12538
 
12539
+ /**
12540
+ * The Openid4vpVersionNumber
12541
+ *
12542
+ * 100 means 1.0 final, all others are draft versions
12543
+ */
12544
+ type Openid4vpVersionNumber = 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 100;
12545
+ declare function parseAuthorizationRequestVersion(request: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi): Openid4vpVersionNumber;
12546
+
12539
12547
  interface CreateJarAuthorizationRequestOptions {
12540
12548
  authorizationRequestPayload: JwtPayload & {
12541
12549
  client_id?: string;
@@ -21665,8 +21673,6 @@ interface ParsedTransactionDataEntry {
21665
21673
  }
21666
21674
  declare function parseTransactionData(options: ParseTransactionDataOptions): ParsedTransactionDataEntry[];
21667
21675
 
21668
- type Openid4vpDraftVersionNumber = 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29;
21669
-
21670
21676
  interface ResolveOpenid4vpAuthorizationRequestOptions {
21671
21677
  authorizationRequestPayload: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi | JarAuthorizationRequest;
21672
21678
  wallet?: WalletVerificationOptions;
@@ -21687,9 +21693,11 @@ type ResolvedOpenid4vpAuthorizationRequest = {
21687
21693
  query: unknown;
21688
21694
  } | undefined;
21689
21695
  /**
21690
- * The highest possible draft version number based on draft-specific version checks done on the request.
21696
+ * The highest possible version number based on (draft)-version checks done on the request.
21697
+ *
21698
+ * 100 means 1.0 final, all other numbers are draft versions.
21691
21699
  */
21692
- version: Openid4vpDraftVersionNumber;
21700
+ version: Openid4vpVersionNumber;
21693
21701
  };
21694
21702
  declare function resolveOpenid4vpAuthorizationRequest(options: ResolveOpenid4vpAuthorizationRequestOptions): Promise<ResolvedOpenid4vpAuthorizationRequest>;
21695
21703
 
@@ -21711,7 +21719,7 @@ type JarmServerMetadata = z.infer<typeof zJarmServerMetadata>;
21711
21719
  declare const zOpenid4vpAuthorizationResponse: z.ZodObject<{
21712
21720
  state: z.ZodOptional<z.ZodString>;
21713
21721
  id_token: z.ZodOptional<z.ZodString>;
21714
- vp_token: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21722
+ vp_token: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21715
21723
  presentation_submission: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, any, string>]>>;
21716
21724
  refresh_token: z.ZodOptional<z.ZodString>;
21717
21725
  token_type: z.ZodOptional<z.ZodString>;
@@ -21720,7 +21728,7 @@ declare const zOpenid4vpAuthorizationResponse: z.ZodObject<{
21720
21728
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
21721
21729
  state: z.ZodOptional<z.ZodString>;
21722
21730
  id_token: z.ZodOptional<z.ZodString>;
21723
- vp_token: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21731
+ vp_token: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21724
21732
  presentation_submission: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, any, string>]>>;
21725
21733
  refresh_token: z.ZodOptional<z.ZodString>;
21726
21734
  token_type: z.ZodOptional<z.ZodString>;
@@ -21729,7 +21737,7 @@ declare const zOpenid4vpAuthorizationResponse: z.ZodObject<{
21729
21737
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
21730
21738
  state: z.ZodOptional<z.ZodString>;
21731
21739
  id_token: z.ZodOptional<z.ZodString>;
21732
- vp_token: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21740
+ vp_token: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21733
21741
  presentation_submission: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, any, string>]>>;
21734
21742
  refresh_token: z.ZodOptional<z.ZodString>;
21735
21743
  token_type: z.ZodOptional<z.ZodString>;
@@ -21788,20 +21796,20 @@ declare function submitOpenid4vpAuthorizationResponse(options: SubmitOpenid4vpAu
21788
21796
  response: Response;
21789
21797
  }>;
21790
21798
 
21791
- declare const zVpTokenPexEntry: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>;
21799
+ declare const zVpTokenPresentationEntry: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>;
21800
+ type VpTokenPresentationEntry = z.infer<typeof zVpTokenPresentationEntry>;
21792
21801
  declare const zVpTokenPex: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>;
21793
21802
  type VpTokenPex = z.infer<typeof zVpTokenPex>;
21794
- type VpTokenPexEntry = z.infer<typeof zVpTokenPexEntry>;
21795
- declare const zVpTokenDcql: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
21803
+ declare const zVpTokenDcql: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>]>>;
21796
21804
  type VpTokenDcql = z.infer<typeof zVpTokenDcql>;
21797
- declare const zVpToken: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21805
+ declare const zVpToken: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21798
21806
  type VpToken = z.infer<typeof zVpToken>;
21799
21807
 
21800
21808
  interface ValidateOpenid4VpPexAuthorizationResponseResult {
21801
21809
  type: 'pex';
21802
21810
  pex: {
21803
21811
  presentationSubmission: PexPresentationSubmission;
21804
- presentations: [VpTokenPexEntry, ...VpTokenPexEntry[]];
21812
+ presentations: [VpTokenPresentationEntry, ...VpTokenPresentationEntry[]];
21805
21813
  } & ({
21806
21814
  scope: string;
21807
21815
  presentationDefinition?: never;
@@ -21813,7 +21821,7 @@ interface ValidateOpenid4VpPexAuthorizationResponseResult {
21813
21821
  interface ValidateOpenid4VpDcqlAuthorizationResponseResult {
21814
21822
  type: 'dcql';
21815
21823
  dcql: {
21816
- presentations: VpTokenDcql;
21824
+ presentations: Record<string, [VpTokenPresentationEntry, ...VpTokenPresentationEntry[]]>;
21817
21825
  } & ({
21818
21826
  scope: string;
21819
21827
  query?: never;
@@ -21870,8 +21878,8 @@ interface VerifiedTransactionDataEntry {
21870
21878
  credentialHashIndex: number;
21871
21879
  }
21872
21880
 
21873
- declare function parsePexVpToken(vpToken: unknown): [VpTokenPexEntry, ...VpTokenPexEntry[]];
21874
- declare function parseDcqlVpToken(vpToken: unknown): VpTokenDcql;
21881
+ declare function parsePexVpToken(vpToken: unknown): [VpTokenPresentationEntry, ...VpTokenPresentationEntry[]];
21882
+ declare function parseDcqlVpToken(vpToken: unknown): Record<string, [VpTokenPresentationEntry, ...VpTokenPresentationEntry[]]>;
21875
21883
 
21876
21884
  declare const zJarmHeader: z.ZodObject<{
21877
21885
  apu: z.ZodOptional<z.ZodString>;
@@ -22104,7 +22112,7 @@ declare function parseOpenid4vpAuthorizationResponse(options: ParseOpenid4vpAuth
22104
22112
  declare function parseOpenid4VpAuthorizationResponsePayload(payload: Record<string, unknown>): zod.objectOutputType<{
22105
22113
  state: zod.ZodOptional<zod.ZodString>;
22106
22114
  id_token: zod.ZodOptional<zod.ZodString>;
22107
- vp_token: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>, zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>, "atleastone">]>]>;
22115
+ vp_token: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>, "atleastone">, zod.ZodUnion<[zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>]>>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>, zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>, "atleastone">]>]>;
22108
22116
  presentation_submission: zod.ZodOptional<zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodAny>, zod.ZodEffects<zod.ZodString, any, string>]>>;
22109
22117
  refresh_token: zod.ZodOptional<zod.ZodString>;
22110
22118
  token_type: zod.ZodOptional<zod.ZodString>;
@@ -31172,7 +31180,7 @@ declare class Openid4vpVerifier {
31172
31180
  parseOpenid4vpAuthorizationResponse(options: ParseOpenid4vpAuthorizationResponseOptions): Promise<ParsedOpenid4vpAuthorizationResponse>;
31173
31181
  validateOpenid4vpAuthorizationResponsePayload(options: ValidateOpenid4vpAuthorizationResponseOptions): ValidateOpenid4VpAuthorizationResponseResult;
31174
31182
  parsePexVpToken(vpToken: unknown): [string | Record<string, any>, ...(string | Record<string, any>)[]];
31175
- parseDcqlVpToken(vpToken: unknown): Record<string, string | Record<string, any>>;
31183
+ parseDcqlVpToken(vpToken: unknown): Record<string, [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
31176
31184
  parseTransactionData(options: ParseTransactionDataOptions): ParsedTransactionDataEntry[];
31177
31185
  verifyTransactionData(options: Omit<VerifyTransactionDataOptions, 'callbacks'>): Promise<VerifiedTransactionDataEntry[]>;
31178
31186
  }
@@ -31216,4 +31224,4 @@ declare const zVerifierAttestations: zod__default.ZodArray<zod__default.ZodObjec
31216
31224
  type VerifierAttestation = zod__default.infer<typeof zVerifierAttestation>;
31217
31225
  type VerifierAttestations = zod__default.infer<typeof zVerifierAttestations>;
31218
31226
 
31219
- export { type ClientIdPrefix, type ClientMetadata, type CreateOpenid4vpAuthorizationRequestOptions, type CreateOpenid4vpAuthorizationResponseOptions, type CreateOpenid4vpAuthorizationResponseResult, type CredentialFormat, type GetOpenid4vpClientIdOptions, type JarmClientMetadata, JarmMode, type Openid4vpAuthorizationRequest, type Openid4vpAuthorizationRequestDcApi, type Openid4vpAuthorizationResponse, Openid4vpClient, Openid4vpVerifier, type ParseJarmAuthorizationResponseOptions, type ParseOpenid4vpAuthorizationRequestOptions, type ParseOpenid4vpAuthorizationResponseOptions, type ParseTransactionDataOptions, type ParsedOpenid4vpAuthorizationResponse, type ProofFormat, type ResolveOpenid4vpAuthorizationRequestOptions, type ResolvedOpenid4vpAuthorizationRequest, type SubmitOpenid4vpAuthorizationResponseOptions, type TransactionDataEntry, type TransactionDataHashesCredentials, type ValidateOpenid4VpAuthorizationResponseResult, type ValidateOpenid4VpDcqlAuthorizationResponseResult, type ValidateOpenid4VpPexAuthorizationResponseResult, type ValidateOpenid4vpAuthorizationRequestPayloadOptions, type ValidateOpenid4vpAuthorizationResponseOptions, type VerifiedTransactionDataEntry, type VerifierAttestation, type VerifierAttestations, type VerifyJarmAuthorizationResponseOptions, type VerifyTransactionDataOptions, type VpToken, type VpTokenDcql, type VpTokenPex, type VpTokenPexEntry, type WalletMetadata, type WalletVerificationOptions, createOpenid4vpAuthorizationRequest, createOpenid4vpAuthorizationResponse, getOpenid4vpClientId, isJarmResponseMode, isOpenid4vpAuthorizationRequestDcApi, parseDcqlVpToken, parseJarmAuthorizationResponse, parseOpenid4VpAuthorizationResponsePayload, parseOpenid4vpAuthorizationRequest, parseOpenid4vpAuthorizationResponse, parsePexVpToken, parseTransactionData, resolveOpenid4vpAuthorizationRequest, submitOpenid4vpAuthorizationResponse, validateOpenid4vpAuthorizationRequestPayload, validateOpenid4vpAuthorizationResponsePayload, verifyJarmAuthorizationResponse, zClientIdPrefix, zClientMetadata, zCredentialFormat, zJarmClientMetadata, zOpenid4vpAuthorizationResponse, zProofFormat, zVerifierAttestations, zWalletMetadata };
31227
+ export { type ClientIdPrefix, type ClientMetadata, type CreateOpenid4vpAuthorizationRequestOptions, type CreateOpenid4vpAuthorizationResponseOptions, type CreateOpenid4vpAuthorizationResponseResult, type CredentialFormat, type GetOpenid4vpClientIdOptions, type JarmClientMetadata, JarmMode, type Openid4vpAuthorizationRequest, type Openid4vpAuthorizationRequestDcApi, type Openid4vpAuthorizationResponse, Openid4vpClient, Openid4vpVerifier, type Openid4vpVersionNumber, type ParseJarmAuthorizationResponseOptions, type ParseOpenid4vpAuthorizationRequestOptions, type ParseOpenid4vpAuthorizationResponseOptions, type ParseTransactionDataOptions, type ParsedOpenid4vpAuthorizationResponse, type ProofFormat, type ResolveOpenid4vpAuthorizationRequestOptions, type ResolvedOpenid4vpAuthorizationRequest, type SubmitOpenid4vpAuthorizationResponseOptions, type TransactionDataEntry, type TransactionDataHashesCredentials, type ValidateOpenid4VpAuthorizationResponseResult, type ValidateOpenid4VpDcqlAuthorizationResponseResult, type ValidateOpenid4VpPexAuthorizationResponseResult, type ValidateOpenid4vpAuthorizationRequestPayloadOptions, type ValidateOpenid4vpAuthorizationResponseOptions, type VerifiedTransactionDataEntry, type VerifierAttestation, type VerifierAttestations, type VerifyJarmAuthorizationResponseOptions, type VerifyTransactionDataOptions, type VpToken, type VpTokenDcql, type VpTokenPex, type VpTokenPresentationEntry, type WalletMetadata, type WalletVerificationOptions, createOpenid4vpAuthorizationRequest, createOpenid4vpAuthorizationResponse, getOpenid4vpClientId, isJarmResponseMode, isOpenid4vpAuthorizationRequestDcApi, parseAuthorizationRequestVersion, parseDcqlVpToken, parseJarmAuthorizationResponse, parseOpenid4VpAuthorizationResponsePayload, parseOpenid4vpAuthorizationRequest, parseOpenid4vpAuthorizationResponse, parsePexVpToken, parseTransactionData, resolveOpenid4vpAuthorizationRequest, submitOpenid4vpAuthorizationResponse, validateOpenid4vpAuthorizationRequestPayload, validateOpenid4vpAuthorizationResponsePayload, verifyJarmAuthorizationResponse, zClientIdPrefix, zClientMetadata, zCredentialFormat, zJarmClientMetadata, zOpenid4vpAuthorizationResponse, zProofFormat, zVerifierAttestations, zWalletMetadata };
package/dist/index.d.ts CHANGED
@@ -12536,6 +12536,14 @@ declare const zJarmClientMetadata: z.ZodObject<{
12536
12536
  }>;
12537
12537
  type JarmClientMetadata = z.infer<typeof zJarmClientMetadata>;
12538
12538
 
12539
+ /**
12540
+ * The Openid4vpVersionNumber
12541
+ *
12542
+ * 100 means 1.0 final, all others are draft versions
12543
+ */
12544
+ type Openid4vpVersionNumber = 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 100;
12545
+ declare function parseAuthorizationRequestVersion(request: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi): Openid4vpVersionNumber;
12546
+
12539
12547
  interface CreateJarAuthorizationRequestOptions {
12540
12548
  authorizationRequestPayload: JwtPayload & {
12541
12549
  client_id?: string;
@@ -21665,8 +21673,6 @@ interface ParsedTransactionDataEntry {
21665
21673
  }
21666
21674
  declare function parseTransactionData(options: ParseTransactionDataOptions): ParsedTransactionDataEntry[];
21667
21675
 
21668
- type Openid4vpDraftVersionNumber = 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29;
21669
-
21670
21676
  interface ResolveOpenid4vpAuthorizationRequestOptions {
21671
21677
  authorizationRequestPayload: Openid4vpAuthorizationRequest | Openid4vpAuthorizationRequestDcApi | JarAuthorizationRequest;
21672
21678
  wallet?: WalletVerificationOptions;
@@ -21687,9 +21693,11 @@ type ResolvedOpenid4vpAuthorizationRequest = {
21687
21693
  query: unknown;
21688
21694
  } | undefined;
21689
21695
  /**
21690
- * The highest possible draft version number based on draft-specific version checks done on the request.
21696
+ * The highest possible version number based on (draft)-version checks done on the request.
21697
+ *
21698
+ * 100 means 1.0 final, all other numbers are draft versions.
21691
21699
  */
21692
- version: Openid4vpDraftVersionNumber;
21700
+ version: Openid4vpVersionNumber;
21693
21701
  };
21694
21702
  declare function resolveOpenid4vpAuthorizationRequest(options: ResolveOpenid4vpAuthorizationRequestOptions): Promise<ResolvedOpenid4vpAuthorizationRequest>;
21695
21703
 
@@ -21711,7 +21719,7 @@ type JarmServerMetadata = z.infer<typeof zJarmServerMetadata>;
21711
21719
  declare const zOpenid4vpAuthorizationResponse: z.ZodObject<{
21712
21720
  state: z.ZodOptional<z.ZodString>;
21713
21721
  id_token: z.ZodOptional<z.ZodString>;
21714
- vp_token: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21722
+ vp_token: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21715
21723
  presentation_submission: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, any, string>]>>;
21716
21724
  refresh_token: z.ZodOptional<z.ZodString>;
21717
21725
  token_type: z.ZodOptional<z.ZodString>;
@@ -21720,7 +21728,7 @@ declare const zOpenid4vpAuthorizationResponse: z.ZodObject<{
21720
21728
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
21721
21729
  state: z.ZodOptional<z.ZodString>;
21722
21730
  id_token: z.ZodOptional<z.ZodString>;
21723
- vp_token: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21731
+ vp_token: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21724
21732
  presentation_submission: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, any, string>]>>;
21725
21733
  refresh_token: z.ZodOptional<z.ZodString>;
21726
21734
  token_type: z.ZodOptional<z.ZodString>;
@@ -21729,7 +21737,7 @@ declare const zOpenid4vpAuthorizationResponse: z.ZodObject<{
21729
21737
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
21730
21738
  state: z.ZodOptional<z.ZodString>;
21731
21739
  id_token: z.ZodOptional<z.ZodString>;
21732
- vp_token: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21740
+ vp_token: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21733
21741
  presentation_submission: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, any, string>]>>;
21734
21742
  refresh_token: z.ZodOptional<z.ZodString>;
21735
21743
  token_type: z.ZodOptional<z.ZodString>;
@@ -21788,20 +21796,20 @@ declare function submitOpenid4vpAuthorizationResponse(options: SubmitOpenid4vpAu
21788
21796
  response: Response;
21789
21797
  }>;
21790
21798
 
21791
- declare const zVpTokenPexEntry: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>;
21799
+ declare const zVpTokenPresentationEntry: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>;
21800
+ type VpTokenPresentationEntry = z.infer<typeof zVpTokenPresentationEntry>;
21792
21801
  declare const zVpTokenPex: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>;
21793
21802
  type VpTokenPex = z.infer<typeof zVpTokenPex>;
21794
- type VpTokenPexEntry = z.infer<typeof zVpTokenPexEntry>;
21795
- declare const zVpTokenDcql: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
21803
+ declare const zVpTokenDcql: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>]>>;
21796
21804
  type VpTokenDcql = z.infer<typeof zVpTokenDcql>;
21797
- declare const zVpToken: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21805
+ declare const zVpToken: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">]>]>;
21798
21806
  type VpToken = z.infer<typeof zVpToken>;
21799
21807
 
21800
21808
  interface ValidateOpenid4VpPexAuthorizationResponseResult {
21801
21809
  type: 'pex';
21802
21810
  pex: {
21803
21811
  presentationSubmission: PexPresentationSubmission;
21804
- presentations: [VpTokenPexEntry, ...VpTokenPexEntry[]];
21812
+ presentations: [VpTokenPresentationEntry, ...VpTokenPresentationEntry[]];
21805
21813
  } & ({
21806
21814
  scope: string;
21807
21815
  presentationDefinition?: never;
@@ -21813,7 +21821,7 @@ interface ValidateOpenid4VpPexAuthorizationResponseResult {
21813
21821
  interface ValidateOpenid4VpDcqlAuthorizationResponseResult {
21814
21822
  type: 'dcql';
21815
21823
  dcql: {
21816
- presentations: VpTokenDcql;
21824
+ presentations: Record<string, [VpTokenPresentationEntry, ...VpTokenPresentationEntry[]]>;
21817
21825
  } & ({
21818
21826
  scope: string;
21819
21827
  query?: never;
@@ -21870,8 +21878,8 @@ interface VerifiedTransactionDataEntry {
21870
21878
  credentialHashIndex: number;
21871
21879
  }
21872
21880
 
21873
- declare function parsePexVpToken(vpToken: unknown): [VpTokenPexEntry, ...VpTokenPexEntry[]];
21874
- declare function parseDcqlVpToken(vpToken: unknown): VpTokenDcql;
21881
+ declare function parsePexVpToken(vpToken: unknown): [VpTokenPresentationEntry, ...VpTokenPresentationEntry[]];
21882
+ declare function parseDcqlVpToken(vpToken: unknown): Record<string, [VpTokenPresentationEntry, ...VpTokenPresentationEntry[]]>;
21875
21883
 
21876
21884
  declare const zJarmHeader: z.ZodObject<{
21877
21885
  apu: z.ZodOptional<z.ZodString>;
@@ -22104,7 +22112,7 @@ declare function parseOpenid4vpAuthorizationResponse(options: ParseOpenid4vpAuth
22104
22112
  declare function parseOpenid4VpAuthorizationResponsePayload(payload: Record<string, unknown>): zod.objectOutputType<{
22105
22113
  state: zod.ZodOptional<zod.ZodString>;
22106
22114
  id_token: zod.ZodOptional<zod.ZodString>;
22107
- vp_token: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>, zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>, "atleastone">]>]>;
22115
+ vp_token: zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>, "atleastone">, zod.ZodUnion<[zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>]>>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>, zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>, "atleastone">]>]>;
22108
22116
  presentation_submission: zod.ZodOptional<zod.ZodUnion<[zod.ZodRecord<zod.ZodString, zod.ZodAny>, zod.ZodEffects<zod.ZodString, any, string>]>>;
22109
22117
  refresh_token: zod.ZodOptional<zod.ZodString>;
22110
22118
  token_type: zod.ZodOptional<zod.ZodString>;
@@ -31172,7 +31180,7 @@ declare class Openid4vpVerifier {
31172
31180
  parseOpenid4vpAuthorizationResponse(options: ParseOpenid4vpAuthorizationResponseOptions): Promise<ParsedOpenid4vpAuthorizationResponse>;
31173
31181
  validateOpenid4vpAuthorizationResponsePayload(options: ValidateOpenid4vpAuthorizationResponseOptions): ValidateOpenid4VpAuthorizationResponseResult;
31174
31182
  parsePexVpToken(vpToken: unknown): [string | Record<string, any>, ...(string | Record<string, any>)[]];
31175
- parseDcqlVpToken(vpToken: unknown): Record<string, string | Record<string, any>>;
31183
+ parseDcqlVpToken(vpToken: unknown): Record<string, [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
31176
31184
  parseTransactionData(options: ParseTransactionDataOptions): ParsedTransactionDataEntry[];
31177
31185
  verifyTransactionData(options: Omit<VerifyTransactionDataOptions, 'callbacks'>): Promise<VerifiedTransactionDataEntry[]>;
31178
31186
  }
@@ -31216,4 +31224,4 @@ declare const zVerifierAttestations: zod__default.ZodArray<zod__default.ZodObjec
31216
31224
  type VerifierAttestation = zod__default.infer<typeof zVerifierAttestation>;
31217
31225
  type VerifierAttestations = zod__default.infer<typeof zVerifierAttestations>;
31218
31226
 
31219
- export { type ClientIdPrefix, type ClientMetadata, type CreateOpenid4vpAuthorizationRequestOptions, type CreateOpenid4vpAuthorizationResponseOptions, type CreateOpenid4vpAuthorizationResponseResult, type CredentialFormat, type GetOpenid4vpClientIdOptions, type JarmClientMetadata, JarmMode, type Openid4vpAuthorizationRequest, type Openid4vpAuthorizationRequestDcApi, type Openid4vpAuthorizationResponse, Openid4vpClient, Openid4vpVerifier, type ParseJarmAuthorizationResponseOptions, type ParseOpenid4vpAuthorizationRequestOptions, type ParseOpenid4vpAuthorizationResponseOptions, type ParseTransactionDataOptions, type ParsedOpenid4vpAuthorizationResponse, type ProofFormat, type ResolveOpenid4vpAuthorizationRequestOptions, type ResolvedOpenid4vpAuthorizationRequest, type SubmitOpenid4vpAuthorizationResponseOptions, type TransactionDataEntry, type TransactionDataHashesCredentials, type ValidateOpenid4VpAuthorizationResponseResult, type ValidateOpenid4VpDcqlAuthorizationResponseResult, type ValidateOpenid4VpPexAuthorizationResponseResult, type ValidateOpenid4vpAuthorizationRequestPayloadOptions, type ValidateOpenid4vpAuthorizationResponseOptions, type VerifiedTransactionDataEntry, type VerifierAttestation, type VerifierAttestations, type VerifyJarmAuthorizationResponseOptions, type VerifyTransactionDataOptions, type VpToken, type VpTokenDcql, type VpTokenPex, type VpTokenPexEntry, type WalletMetadata, type WalletVerificationOptions, createOpenid4vpAuthorizationRequest, createOpenid4vpAuthorizationResponse, getOpenid4vpClientId, isJarmResponseMode, isOpenid4vpAuthorizationRequestDcApi, parseDcqlVpToken, parseJarmAuthorizationResponse, parseOpenid4VpAuthorizationResponsePayload, parseOpenid4vpAuthorizationRequest, parseOpenid4vpAuthorizationResponse, parsePexVpToken, parseTransactionData, resolveOpenid4vpAuthorizationRequest, submitOpenid4vpAuthorizationResponse, validateOpenid4vpAuthorizationRequestPayload, validateOpenid4vpAuthorizationResponsePayload, verifyJarmAuthorizationResponse, zClientIdPrefix, zClientMetadata, zCredentialFormat, zJarmClientMetadata, zOpenid4vpAuthorizationResponse, zProofFormat, zVerifierAttestations, zWalletMetadata };
31227
+ export { type ClientIdPrefix, type ClientMetadata, type CreateOpenid4vpAuthorizationRequestOptions, type CreateOpenid4vpAuthorizationResponseOptions, type CreateOpenid4vpAuthorizationResponseResult, type CredentialFormat, type GetOpenid4vpClientIdOptions, type JarmClientMetadata, JarmMode, type Openid4vpAuthorizationRequest, type Openid4vpAuthorizationRequestDcApi, type Openid4vpAuthorizationResponse, Openid4vpClient, Openid4vpVerifier, type Openid4vpVersionNumber, type ParseJarmAuthorizationResponseOptions, type ParseOpenid4vpAuthorizationRequestOptions, type ParseOpenid4vpAuthorizationResponseOptions, type ParseTransactionDataOptions, type ParsedOpenid4vpAuthorizationResponse, type ProofFormat, type ResolveOpenid4vpAuthorizationRequestOptions, type ResolvedOpenid4vpAuthorizationRequest, type SubmitOpenid4vpAuthorizationResponseOptions, type TransactionDataEntry, type TransactionDataHashesCredentials, type ValidateOpenid4VpAuthorizationResponseResult, type ValidateOpenid4VpDcqlAuthorizationResponseResult, type ValidateOpenid4VpPexAuthorizationResponseResult, type ValidateOpenid4vpAuthorizationRequestPayloadOptions, type ValidateOpenid4vpAuthorizationResponseOptions, type VerifiedTransactionDataEntry, type VerifierAttestation, type VerifierAttestations, type VerifyJarmAuthorizationResponseOptions, type VerifyTransactionDataOptions, type VpToken, type VpTokenDcql, type VpTokenPex, type VpTokenPresentationEntry, type WalletMetadata, type WalletVerificationOptions, createOpenid4vpAuthorizationRequest, createOpenid4vpAuthorizationResponse, getOpenid4vpClientId, isJarmResponseMode, isOpenid4vpAuthorizationRequestDcApi, parseAuthorizationRequestVersion, parseDcqlVpToken, parseJarmAuthorizationResponse, parseOpenid4VpAuthorizationResponsePayload, parseOpenid4vpAuthorizationRequest, parseOpenid4vpAuthorizationResponse, parsePexVpToken, parseTransactionData, resolveOpenid4vpAuthorizationRequest, submitOpenid4vpAuthorizationResponse, validateOpenid4vpAuthorizationRequestPayload, validateOpenid4vpAuthorizationResponsePayload, verifyJarmAuthorizationResponse, zClientIdPrefix, zClientMetadata, zCredentialFormat, zJarmClientMetadata, zOpenid4vpAuthorizationResponse, zProofFormat, zVerifierAttestations, zWalletMetadata };