@triveria/wallet 0.0.321 → 0.0.322

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.
Files changed (3) hide show
  1. package/api.d.ts +132 -14
  2. package/api.js +14 -7
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -182,6 +182,10 @@ export interface CredentialIssuerDefinition {
182
182
  * When true, credential issuance for this issuer requires the wallet to present a valid EUDI Wallet Instance Attestation (WIA, TS3). The issuer verifies the WIA signature, expiry, status and key binding before issuing. Defaults to false (no WIA check).
183
183
  */
184
184
  'requiresWalletInstanceAttestation'?: boolean;
185
+ /**
186
+ * When true, the credential request proof must carry a key attestation of the holder key, either as the `key_attestation` header of a `jwt` proof or as an `attestation` proof (OID4VCI 1.0 Appendix D). Defaults to false.
187
+ */
188
+ 'requiresKeyAttestation'?: boolean;
185
189
  }
186
190
  export declare const CredentialIssuerDefinitionCredentialIssuerEnum: {
187
191
  readonly CtWalletSame: "CtWalletSame";
@@ -375,6 +379,9 @@ export interface CredentialVerifierDefinition {
375
379
  * A custom authorization scope that can be used for this verifier with authorization request
376
380
  */
377
381
  'scope'?: string;
382
+ /**
383
+ * Legacy DIF Presentation Exchange query. Removed in OpenID4VP 1.0; prefer `dcqlQuery`.
384
+ */
378
385
  'presentationDefinition'?: PresentationDefinition;
379
386
  'dcqlQuery'?: DCQLQuery;
380
387
  'keyIdentifier'?: SigningKeyIdentifier;
@@ -382,6 +389,14 @@ export interface CredentialVerifierDefinition {
382
389
  * List of credential properties that should be verified.
383
390
  */
384
391
  'toVerify'?: Set<CredentialPropertyToVerify>;
392
+ /**
393
+ * Request an encrypted `vp_token` response (OpenID4VP 1.0 `direct_post.jwt`). Disable it only for wallets that cannot encrypt responses.
394
+ */
395
+ 'responseEncryption'?: boolean;
396
+ /**
397
+ * URI the holder\'s user agent is redirected to after presenting (OpenID4VP 1.0 §8.2), with a `response_code` query parameter. Overridden by `redirectUri` of the verification request. When neither is set, the holder is redirected to a wallet page showing the verification result.
398
+ */
399
+ 'redirectUri'?: string;
385
400
  }
386
401
  /**
387
402
  * The wrapper contains Verifiable Credential in both, the Credential and as Base64 signed format alongside with metadata.
@@ -405,15 +420,42 @@ export interface CtWalletSameIssuerConfig {
405
420
  'defaultCredentialSubject'?: object;
406
421
  }
407
422
  /**
408
- * JSON-based query language used to request credential presentations by verifiers.
423
+ * Credential Set Query (OpenID4VP 1.0 §6.2).
424
+ */
425
+ export interface DCQLCredentialSetQuery {
426
+ /**
427
+ * Each option is a list of credential query ids that together satisfy the set.
428
+ */
429
+ 'options': Array<Array<string>>;
430
+ /**
431
+ * Whether the set must be satisfied. Defaults to `true`.
432
+ */
433
+ 'required'?: boolean;
434
+ }
435
+ /**
436
+ * Digital Credentials Query Language query (OpenID4VP 1.0 §6). Unknown properties are ignored.
409
437
  */
410
438
  export interface DCQLQuery {
411
439
  'credentials': Array<DCQLQueryCredentials>;
440
+ /**
441
+ * Constraints on which combinations of the requested credentials to return.
442
+ */
443
+ 'credential_sets'?: Array<DCQLCredentialSetQuery>;
412
444
  }
413
445
  export interface DCQLQueryClaim {
414
- 'id': string;
446
+ /**
447
+ * Claim identifier, required when the credential query has `claim_sets`.
448
+ */
449
+ 'id'?: string;
450
+ /**
451
+ * Claims path pointer (OpenID4VP 1.0 §7); `null` selects all array elements.
452
+ */
415
453
  'path': Array<DCQLQueryClaimPathInner>;
416
454
  'values'?: Array<DCQLQueryClaimValuesInner>;
455
+ /**
456
+ * mdoc only, the ISO 18013-5 IntentToRetain flag.
457
+ */
458
+ 'intent_to_retain'?: boolean;
417
459
  }
418
460
  /**
419
461
  * @type DCQLQueryClaimPathInner
@@ -424,16 +466,35 @@ export type DCQLQueryClaimPathInner = number | string;
424
466
  */
425
467
  export type DCQLQueryClaimValuesInner = boolean | number | string;
426
468
  /**
427
- *
469
+ * Credential Query (OpenID4VP 1.0 §6.1).
428
470
  */
429
471
  export interface DCQLQueryCredentials {
430
472
  /**
431
473
  * A string identifying the Credential in the response.
432
474
  */
433
475
  'id': string;
476
+ /**
477
+ * Credential format identifier, `dc+sd-jwt`, `mso_mdoc` or `jwt_vc_json`.
478
+ */
434
479
  'format': string;
480
+ /**
481
+ * Whether multiple credentials may be returned for this query. Defaults to `false`.
482
+ */
483
+ 'multiple'?: boolean;
435
484
  'meta'?: DCQLQueryMeta;
485
+ /**
486
+ * Authorities or trust frameworks certifying the issuers the verifier accepts.
487
+ */
488
+ 'trusted_authorities'?: Array<DCQLTrustedAuthority>;
489
+ /**
490
+ * Whether a holder binding proof is required. Defaults to `true`.
491
+ */
492
+ 'require_cryptographic_holder_binding'?: boolean;
436
493
  'claims'?: Array<DCQLQueryClaim>;
494
+ /**
495
+ * Acceptable combinations of claim ids, most preferred first.
496
+ */
497
+ 'claim_sets'?: Array<Array<string>>;
437
498
  }
438
499
  export interface DCQLQueryMeta {
439
500
  /**
@@ -444,6 +505,20 @@ export interface DCQLQueryMeta {
444
505
  * Value for mDOC type
445
506
  */
446
507
  'doctype_value'?: string;
508
+ /**
509
+ * Alternative sets of W3C credential types; a credential must contain every type of one set.
510
+ */
511
+ 'type_values'?: Array<Array<string>>;
512
+ }
513
+ /**
514
+ * Trusted Authorities Query (OpenID4VP 1.0 §6.1.1).
515
+ */
516
+ export interface DCQLTrustedAuthority {
517
+ /**
518
+ * Type of the authority information, e.g. `aki`, `etsi_tl` or `openid_federation`.
519
+ */
520
+ 'type': string;
521
+ 'values': Array<string>;
447
522
  }
448
523
  /**
449
524
  * The deferred process status. Can be either in progress, or completed, or error. When the status is completed, the Id property will be set to the value of the resulting object ID.
@@ -691,6 +766,9 @@ export interface InteractionAuthorizationRequirements {
691
766
  * URL where custom user authentication for issuance shall be performed. Present when `requirementType` is `custom`.
692
767
  */
693
768
  'authnUrl'?: string;
769
+ /**
770
+ * Legacy DIF Presentation Exchange query, set only when the verifier sent no `dcql_query`.
771
+ */
694
772
  'presentationDefinition'?: PresentationDefinition;
695
773
  'dcqlQuery'?: DCQLQuery;
696
774
  /**
@@ -708,6 +786,10 @@ export interface InteractionAuthorizationRequirements {
708
786
  * True when the requested presentation was already auto-accepted and sent using credentials with their auto-accept flag enabled. `interactionId` does not refer to a pending interaction in this case, and no further consent call is needed or possible for it.
709
787
  */
710
788
  'autoAccepted'?: boolean;
789
+ /**
790
+ * Transaction data the holder authorizes by presenting (OpenID4VP 1.0 §5.1).
791
+ */
792
+ 'transactionData'?: Array<TransactionData>;
711
793
  }
712
794
  export declare const InteractionAuthorizationRequirementsRequirementTypeEnum: {
713
795
  readonly None: "none";
@@ -809,7 +891,7 @@ export interface OfferReceivedNotification {
809
891
  'credentialId'?: string;
810
892
  }
811
893
  /**
812
- * Specifies the revision of OIDC4VCI and OIDC4VP specifications for issuer and verifier wallets. EBSI uses OIDC4VCI Draft11, OIDC4VP Draft16, EUDI uses OIDC4VCI Draft15, OIDC4VP Draft23. OIDC4VCI Draft11 and OIDC4VP Draft 16 are used by default for EBSI compatibility.
894
+ * Deprecated, the value is ignored. Only OIDC4VCI 1.0 and OIDC4VP 1.0 are supported; the wallet always reports Draft15 (OIDC4VCI 1.0) and Draft23 (OIDC4VP 1.0). Draft11 and Draft16 are accepted for backward compatibility only.
813
895
  */
814
896
  export interface OidcRevision {
815
897
  'oidc4vci': OidcRevisionOidc4vciEnum;
@@ -924,6 +1006,15 @@ export interface PresentationRequest {
924
1006
  */
925
1007
  'verifierScope'?: string;
926
1008
  }
1009
+ /**
1010
+ * Result of an authorization response sent to a verifier.
1011
+ */
1012
+ export interface PresentationResponse {
1013
+ /**
1014
+ * URI the verifier asked the holder\'s user agent to be redirected to (OpenID4VP 1.0 §8.2). When present, the caller MUST redirect the user agent to it.
1015
+ */
1016
+ 'redirectUri'?: string;
1017
+ }
927
1018
  /**
928
1019
  * Info needed to revoke legal entity\'s DID
929
1020
  */
@@ -956,6 +1047,14 @@ export declare const SystemImpactStatusEnum: {
956
1047
  readonly Critical: "critical";
957
1048
  };
958
1049
  export type SystemImpactStatusEnum = typeof SystemImpactStatusEnum[keyof typeof SystemImpactStatusEnum];
1050
+ /**
1051
+ * A transaction_data object (OpenID4VP 1.0 §5.1). Type-specific fields are kept as given.
1052
+ */
1053
+ export interface TransactionData {
1054
+ [key: string]: any;
1055
+ 'type': string;
1056
+ 'credential_ids': Array<string>;
1057
+ }
959
1058
  /**
960
1059
  * What trust framework should we use with this wallet. This property COULD NOT change later. Supported frameworks: EBSI - the European Blockchain Services Infrastructure, IDTL - IDUnion Trust List, EUDI - European Digital Identity wallet, Noop - personal key based no-op trust framework (mainly for the personal use)
961
1060
  */
@@ -1081,6 +1180,14 @@ export interface VerifyInitRequest {
1081
1180
  * List of custom presentation definition/DCQL query fragments to be applied to the presentation definition/DCQL query in the verifier\'s configuration
1082
1181
  */
1083
1182
  'customQueries'?: Array<VerifyQueryFragment>;
1183
+ /**
1184
+ * Transaction data the holder authorizes with the presentation (OpenID4VP 1.0 §5.1). Requires a verifier with a DCQL query; each entry\'s `credential_ids` must reference its credential query ids.
1185
+ */
1186
+ 'transactionData'?: Array<TransactionData>;
1187
+ /**
1188
+ * URI the holder\'s user agent is redirected to after presenting (OpenID4VP 1.0 §8.2), with a `response_code` query parameter to pass to `WalletVerifiedCredentialsByState`. Overrides the verifier\'s `redirectUri`. Used only when `createUrl` is true.
1189
+ */
1190
+ 'redirectUri'?: string;
1084
1191
  }
1085
1192
  export interface VerifyInitResponse {
1086
1193
  /**
@@ -1112,6 +1219,10 @@ export interface VpPresentedNotification {
1112
1219
  * True when the presentation was submitted automatically, without user consent, because every requested credential was configured for auto-presentation.
1113
1220
  */
1114
1221
  'autoAccepted'?: boolean;
1222
+ /**
1223
+ * URI the verifier asked the holder\'s user agent to be redirected to after the presentation (OpenID4VP 1.0 §8.2).
1224
+ */
1225
+ 'redirectUri'?: string;
1115
1226
  }
1116
1227
  export interface VpVerifiedNotification {
1117
1228
  'verifierId': string;
@@ -1155,6 +1266,9 @@ export interface WalletConfig {
1155
1266
  * List of verification definitions that the wallet will be able to use for verification process.
1156
1267
  */
1157
1268
  'credentialVerifiers'?: Array<CredentialVerifierDefinition>;
1269
+ /**
1270
+ * @deprecated
1271
+ */
1158
1272
  'oidcRevision'?: OidcRevision;
1159
1273
  'trustFramework': TrustFrameworkType;
1160
1274
  /**
@@ -2022,10 +2136,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2022
2136
  * Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
2023
2137
  * @param {string} walletId Wallet ID
2024
2138
  * @param {string} state Verifier state
2139
+ * @param {string} [responseCode] The &#x60;response_code&#x60; the holder\&#39;s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
2025
2140
  * @param {*} [options] Override http request option.
2026
2141
  * @throws {RequiredError}
2027
2142
  */
2028
- walletVerifiedCredentialsByState: (walletId: string, state: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2143
+ walletVerifiedCredentialsByState: (walletId: string, state: string, responseCode?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2029
2144
  /**
2030
2145
  * Deletes a specific verified credentials by state
2031
2146
  * @param {string} walletId Wallet ID
@@ -2292,7 +2407,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2292
2407
  * @param {*} [options] Override http request option.
2293
2408
  * @throws {RequiredError}
2294
2409
  */
2295
- holderCredentialsPresentAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2410
+ holderCredentialsPresentAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PresentationResponse>>;
2296
2411
  /**
2297
2412
  * Responds to an ID token request
2298
2413
  * @param {string} walletId
@@ -2300,7 +2415,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2300
2415
  * @param {*} [options] Override http request option.
2301
2416
  * @throws {RequiredError}
2302
2417
  */
2303
- holderIdTokenSend(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2418
+ holderIdTokenSend(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PresentationResponse>>;
2304
2419
  /**
2305
2420
  * Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
2306
2421
  * @param {string} walletId
@@ -2658,10 +2773,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2658
2773
  * Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
2659
2774
  * @param {string} walletId Wallet ID
2660
2775
  * @param {string} state Verifier state
2776
+ * @param {string} [responseCode] The &#x60;response_code&#x60; the holder\&#39;s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
2661
2777
  * @param {*} [options] Override http request option.
2662
2778
  * @throws {RequiredError}
2663
2779
  */
2664
- walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifiedWrapper>>;
2780
+ walletVerifiedCredentialsByState(walletId: string, state: string, responseCode?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifiedWrapper>>;
2665
2781
  /**
2666
2782
  * Deletes a specific verified credentials by state
2667
2783
  * @param {string} walletId Wallet ID
@@ -2928,7 +3044,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2928
3044
  * @param {*} [options] Override http request option.
2929
3045
  * @throws {RequiredError}
2930
3046
  */
2931
- holderCredentialsPresentAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3047
+ holderCredentialsPresentAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): AxiosPromise<PresentationResponse>;
2932
3048
  /**
2933
3049
  * Responds to an ID token request
2934
3050
  * @param {string} walletId
@@ -2936,7 +3052,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2936
3052
  * @param {*} [options] Override http request option.
2937
3053
  * @throws {RequiredError}
2938
3054
  */
2939
- holderIdTokenSend(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3055
+ holderIdTokenSend(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): AxiosPromise<PresentationResponse>;
2940
3056
  /**
2941
3057
  * Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
2942
3058
  * @param {string} walletId
@@ -3294,10 +3410,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3294
3410
  * Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
3295
3411
  * @param {string} walletId Wallet ID
3296
3412
  * @param {string} state Verifier state
3413
+ * @param {string} [responseCode] The &#x60;response_code&#x60; the holder\&#39;s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
3297
3414
  * @param {*} [options] Override http request option.
3298
3415
  * @throws {RequiredError}
3299
3416
  */
3300
- walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): AxiosPromise<VerifiedWrapper>;
3417
+ walletVerifiedCredentialsByState(walletId: string, state: string, responseCode?: string, options?: RawAxiosRequestConfig): AxiosPromise<VerifiedWrapper>;
3301
3418
  /**
3302
3419
  * Deletes a specific verified credentials by state
3303
3420
  * @param {string} walletId Wallet ID
@@ -3564,7 +3681,7 @@ export declare class DefaultApi extends BaseAPI {
3564
3681
  * @param {*} [options] Override http request option.
3565
3682
  * @throws {RequiredError}
3566
3683
  */
3567
- holderCredentialsPresentAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
3684
+ holderCredentialsPresentAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PresentationResponse, any, {}>>;
3568
3685
  /**
3569
3686
  * Responds to an ID token request
3570
3687
  * @param {string} walletId
@@ -3572,7 +3689,7 @@ export declare class DefaultApi extends BaseAPI {
3572
3689
  * @param {*} [options] Override http request option.
3573
3690
  * @throws {RequiredError}
3574
3691
  */
3575
- holderIdTokenSend(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
3692
+ holderIdTokenSend(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PresentationResponse, any, {}>>;
3576
3693
  /**
3577
3694
  * Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
3578
3695
  * @param {string} walletId
@@ -3930,10 +4047,11 @@ export declare class DefaultApi extends BaseAPI {
3930
4047
  * Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
3931
4048
  * @param {string} walletId Wallet ID
3932
4049
  * @param {string} state Verifier state
4050
+ * @param {string} [responseCode] The &#x60;response_code&#x60; the holder\&#39;s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
3933
4051
  * @param {*} [options] Override http request option.
3934
4052
  * @throws {RequiredError}
3935
4053
  */
3936
- walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifiedWrapper, any, {}>>;
4054
+ walletVerifiedCredentialsByState(walletId: string, state: string, responseCode?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifiedWrapper, any, {}>>;
3937
4055
  /**
3938
4056
  * Deletes a specific verified credentials by state
3939
4057
  * @param {string} walletId Wallet ID
package/api.js CHANGED
@@ -2484,10 +2484,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2484
2484
  * Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
2485
2485
  * @param {string} walletId Wallet ID
2486
2486
  * @param {string} state Verifier state
2487
+ * @param {string} [responseCode] The &#x60;response_code&#x60; the holder\&#39;s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
2487
2488
  * @param {*} [options] Override http request option.
2488
2489
  * @throws {RequiredError}
2489
2490
  */
2490
- walletVerifiedCredentialsByState: (walletId_1, state_1, ...args_1) => __awaiter(this, [walletId_1, state_1, ...args_1], void 0, function* (walletId, state, options = {}) {
2491
+ walletVerifiedCredentialsByState: (walletId_1, state_1, responseCode_1, ...args_1) => __awaiter(this, [walletId_1, state_1, responseCode_1, ...args_1], void 0, function* (walletId, state, responseCode, options = {}) {
2491
2492
  // verify required parameter 'walletId' is not null or undefined
2492
2493
  (0, common_1.assertParamExists)('walletVerifiedCredentialsByState', 'walletId', walletId);
2493
2494
  // verify required parameter 'state' is not null or undefined
@@ -2507,6 +2508,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2507
2508
  // authentication accessToken required
2508
2509
  // http bearer authentication required
2509
2510
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2511
+ if (responseCode !== undefined) {
2512
+ localVarQueryParameter['response_code'] = responseCode;
2513
+ }
2510
2514
  localVarHeaderParameter['Accept'] = 'application/json';
2511
2515
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2512
2516
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -4142,13 +4146,14 @@ const DefaultApiFp = function (configuration) {
4142
4146
  * Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
4143
4147
  * @param {string} walletId Wallet ID
4144
4148
  * @param {string} state Verifier state
4149
+ * @param {string} [responseCode] The &#x60;response_code&#x60; the holder\&#39;s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
4145
4150
  * @param {*} [options] Override http request option.
4146
4151
  * @throws {RequiredError}
4147
4152
  */
4148
- walletVerifiedCredentialsByState(walletId, state, options) {
4153
+ walletVerifiedCredentialsByState(walletId, state, responseCode, options) {
4149
4154
  return __awaiter(this, void 0, void 0, function* () {
4150
4155
  var _a, _b, _c;
4151
- const localVarAxiosArgs = yield localVarAxiosParamCreator.walletVerifiedCredentialsByState(walletId, state, options);
4156
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletVerifiedCredentialsByState(walletId, state, responseCode, options);
4152
4157
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4153
4158
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletVerifiedCredentialsByState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4154
4159
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5042,11 +5047,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
5042
5047
  * Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
5043
5048
  * @param {string} walletId Wallet ID
5044
5049
  * @param {string} state Verifier state
5050
+ * @param {string} [responseCode] The &#x60;response_code&#x60; the holder\&#39;s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
5045
5051
  * @param {*} [options] Override http request option.
5046
5052
  * @throws {RequiredError}
5047
5053
  */
5048
- walletVerifiedCredentialsByState(walletId, state, options) {
5049
- return localVarFp.walletVerifiedCredentialsByState(walletId, state, options).then((request) => request(axios, basePath));
5054
+ walletVerifiedCredentialsByState(walletId, state, responseCode, options) {
5055
+ return localVarFp.walletVerifiedCredentialsByState(walletId, state, responseCode, options).then((request) => request(axios, basePath));
5050
5056
  },
5051
5057
  /**
5052
5058
  * Deletes a specific verified credentials by state
@@ -5832,11 +5838,12 @@ class DefaultApi extends base_1.BaseAPI {
5832
5838
  * Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
5833
5839
  * @param {string} walletId Wallet ID
5834
5840
  * @param {string} state Verifier state
5841
+ * @param {string} [responseCode] The &#x60;response_code&#x60; the holder\&#39;s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
5835
5842
  * @param {*} [options] Override http request option.
5836
5843
  * @throws {RequiredError}
5837
5844
  */
5838
- walletVerifiedCredentialsByState(walletId, state, options) {
5839
- return (0, exports.DefaultApiFp)(this.configuration).walletVerifiedCredentialsByState(walletId, state, options).then((request) => request(this.axios, this.basePath));
5845
+ walletVerifiedCredentialsByState(walletId, state, responseCode, options) {
5846
+ return (0, exports.DefaultApiFp)(this.configuration).walletVerifiedCredentialsByState(walletId, state, responseCode, options).then((request) => request(this.axios, this.basePath));
5840
5847
  }
5841
5848
  /**
5842
5849
  * Deletes a specific verified credentials by state
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.321",
4
+ "version": "0.0.322",
5
5
  "description": "",
6
6
  "repository": {
7
7
  "type": "git",