@triveria/wallet 0.0.134 → 0.0.135

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 +286 -77
  2. package/api.js +304 -141
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -799,6 +799,81 @@ export interface InitPreAuthOffer {
799
799
  */
800
800
  'offerEndpoint'?: string;
801
801
  }
802
+ /**
803
+ *
804
+ * @export
805
+ * @interface InputDescriptorSuitableCredentials
806
+ */
807
+ export interface InputDescriptorSuitableCredentials {
808
+ /**
809
+ * ID of presentation definition input descriptor for which the credential list is suitable.
810
+ * @type {string}
811
+ * @memberof InputDescriptorSuitableCredentials
812
+ */
813
+ 'descriptorId': string;
814
+ /**
815
+ * Credential ID list of credentials suitable for presentation according to the specified input descriptor.
816
+ * @type {Array<CredentialMetadata>}
817
+ * @memberof InputDescriptorSuitableCredentials
818
+ */
819
+ 'credentials': Array<CredentialMetadata>;
820
+ }
821
+ /**
822
+ *
823
+ * @export
824
+ * @interface InteractionAuthorizationConsent
825
+ */
826
+ export interface InteractionAuthorizationConsent {
827
+ /**
828
+ * Pin code needed for pre-authorized credential offers. Required when authorization requirement type is `pin`
829
+ * @type {string}
830
+ * @memberof InteractionAuthorizationConsent
831
+ */
832
+ 'pin'?: string;
833
+ /**
834
+ * Array of IDs of credentials that will be presented in the interaction. Must be a subset of authorization requirements presentation candidates. Required when authorization requirement type is `vp_token`.
835
+ * @type {Array<InputDescriptorSuitableCredentials>}
836
+ * @memberof InteractionAuthorizationConsent
837
+ */
838
+ 'credentialsToPresent'?: Array<InputDescriptorSuitableCredentials>;
839
+ }
840
+ /**
841
+ *
842
+ * @export
843
+ * @interface InteractionAuthorizationRequirements
844
+ */
845
+ export interface InteractionAuthorizationRequirements {
846
+ /**
847
+ *
848
+ * @type {string}
849
+ * @memberof InteractionAuthorizationRequirements
850
+ */
851
+ 'requirementType': InteractionAuthorizationRequirementsRequirementTypeEnum;
852
+ /**
853
+ *
854
+ * @type {PresentationDefinition}
855
+ * @memberof InteractionAuthorizationRequirements
856
+ */
857
+ 'presentationDefinition'?: PresentationDefinition;
858
+ /**
859
+ * List of credentials suitable for presentation.
860
+ * @type {Array<InputDescriptorSuitableCredentials>}
861
+ * @memberof InteractionAuthorizationRequirements
862
+ */
863
+ 'presentationCandidates'?: Array<InputDescriptorSuitableCredentials>;
864
+ /**
865
+ *
866
+ * @type {string}
867
+ * @memberof InteractionAuthorizationRequirements
868
+ */
869
+ 'interactionId': string;
870
+ }
871
+ export declare const InteractionAuthorizationRequirementsRequirementTypeEnum: {
872
+ readonly IdToken: "id_token";
873
+ readonly VpToken: "vp_token";
874
+ readonly Pin: "pin";
875
+ };
876
+ export type InteractionAuthorizationRequirementsRequirementTypeEnum = typeof InteractionAuthorizationRequirementsRequirementTypeEnum[keyof typeof InteractionAuthorizationRequirementsRequirementTypeEnum];
802
877
  /**
803
878
  * Request for addition of already created VC to issuance queue for a client specified either by client_id or idTokenRequestId. Either clientId or idTokenRequestId MUST be present.
804
879
  * @export
@@ -1012,6 +1087,12 @@ export interface PresentationDefinition {
1012
1087
  * @memberof PresentationDefinition
1013
1088
  */
1014
1089
  'input_descriptors': Array<PresentationDefinitionInputDescriptor>;
1090
+ /**
1091
+ *
1092
+ * @type {Array<PresentationDefinitionSubmissionRequirements>}
1093
+ * @memberof PresentationDefinition
1094
+ */
1095
+ 'submission_requirements'?: Array<PresentationDefinitionSubmissionRequirements>;
1015
1096
  }
1016
1097
  /**
1017
1098
  *
@@ -1101,7 +1182,67 @@ export interface PresentationDefinitionInputDescriptor {
1101
1182
  * @memberof PresentationDefinitionInputDescriptor
1102
1183
  */
1103
1184
  'constraints': PresentationDefinitionInputConstraint;
1185
+ /**
1186
+ *
1187
+ * @type {Array<string>}
1188
+ * @memberof PresentationDefinitionInputDescriptor
1189
+ */
1190
+ 'group'?: Array<string>;
1191
+ }
1192
+ /**
1193
+ *
1194
+ * @export
1195
+ * @interface PresentationDefinitionSubmissionRequirements
1196
+ */
1197
+ export interface PresentationDefinitionSubmissionRequirements {
1198
+ /**
1199
+ *
1200
+ * @type {string}
1201
+ * @memberof PresentationDefinitionSubmissionRequirements
1202
+ */
1203
+ 'rule': PresentationDefinitionSubmissionRequirementsRuleEnum;
1204
+ /**
1205
+ *
1206
+ * @type {number}
1207
+ * @memberof PresentationDefinitionSubmissionRequirements
1208
+ */
1209
+ 'count'?: number;
1210
+ /**
1211
+ *
1212
+ * @type {number}
1213
+ * @memberof PresentationDefinitionSubmissionRequirements
1214
+ */
1215
+ 'min'?: number;
1216
+ /**
1217
+ *
1218
+ * @type {number}
1219
+ * @memberof PresentationDefinitionSubmissionRequirements
1220
+ */
1221
+ 'max'?: number;
1222
+ /**
1223
+ *
1224
+ * @type {string}
1225
+ * @memberof PresentationDefinitionSubmissionRequirements
1226
+ */
1227
+ 'from'?: string;
1228
+ /**
1229
+ *
1230
+ * @type {Array<PresentationDefinitionSubmissionRequirements>}
1231
+ * @memberof PresentationDefinitionSubmissionRequirements
1232
+ */
1233
+ 'from_nested'?: Array<PresentationDefinitionSubmissionRequirements>;
1234
+ /**
1235
+ *
1236
+ * @type {string}
1237
+ * @memberof PresentationDefinitionSubmissionRequirements
1238
+ */
1239
+ 'name'?: string;
1104
1240
  }
1241
+ export declare const PresentationDefinitionSubmissionRequirementsRuleEnum: {
1242
+ readonly All: "all";
1243
+ readonly Pick: "pick";
1244
+ };
1245
+ export type PresentationDefinitionSubmissionRequirementsRuleEnum = typeof PresentationDefinitionSubmissionRequirementsRuleEnum[keyof typeof PresentationDefinitionSubmissionRequirementsRuleEnum];
1105
1246
  /**
1106
1247
  *
1107
1248
  * @export
@@ -1229,7 +1370,7 @@ export interface TermsOfUse {
1229
1370
  'type': string;
1230
1371
  }
1231
1372
  /**
1232
- * The offer to be accepted. The offer URL is mandatory and the pin is required only in case of the pre-authorized flow.
1373
+ * The offer to be accepted. The offer URL is mandatory.
1233
1374
  * @export
1234
1375
  * @interface VcOffer
1235
1376
  */
@@ -1240,12 +1381,6 @@ export interface VcOffer {
1240
1381
  * @memberof VcOffer
1241
1382
  */
1242
1383
  'Url': string;
1243
- /**
1244
- *
1245
- * @type {string}
1246
- * @memberof VcOffer
1247
- */
1248
- 'Pin'?: string;
1249
1384
  /**
1250
1385
  *
1251
1386
  * @type {boolean}
@@ -1547,14 +1682,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1547
1682
  * @throws {RequiredError}
1548
1683
  */
1549
1684
  credentialPatch: (credentialId: string, walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1550
- /**
1551
- * TBD
1552
- * @param {string} walletId
1553
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1554
- * @param {*} [options] Override http request option.
1555
- * @throws {RequiredError}
1556
- */
1557
- credentialRequest: (walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1558
1685
  /**
1559
1686
  *
1560
1687
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1641,14 +1768,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1641
1768
  * @throws {RequiredError}
1642
1769
  */
1643
1770
  oauth2Token: (grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1644
- /**
1645
- * Issue verifiable credential using OIDC4VCI offer acceptance
1646
- * @param {string} walletId
1647
- * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
1648
- * @param {*} [options] Override http request option.
1649
- * @throws {RequiredError}
1650
- */
1651
- oidcAcceptOffer: (walletId: string, vcOffer?: VcOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1652
1771
  /**
1653
1772
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
1654
1773
  * @param {string} credentialId
@@ -1665,6 +1784,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1665
1784
  * @throws {RequiredError}
1666
1785
  */
1667
1786
  oidcCreateIdTokenRequest: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1787
+ /**
1788
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
1789
+ * @param {string} walletId
1790
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1791
+ * @param {*} [options] Override http request option.
1792
+ * @throws {RequiredError}
1793
+ */
1794
+ oidcCredentialRequestInit: (walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1668
1795
  /**
1669
1796
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
1670
1797
  * @param {string} walletId
@@ -1689,6 +1816,23 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1689
1816
  * @throws {RequiredError}
1690
1817
  */
1691
1818
  oidcInitiatePreauth: (walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1819
+ /**
1820
+ * Issue verifiable credential using OIDC4VCI offer acceptance
1821
+ * @param {string} walletId
1822
+ * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
1823
+ * @param {*} [options] Override http request option.
1824
+ * @throws {RequiredError}
1825
+ */
1826
+ oidcPassOfferAuthInfo: (walletId: string, vcOffer?: VcOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1827
+ /**
1828
+ *
1829
+ * @param {string} walletId
1830
+ * @param {string} interactionId
1831
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
1832
+ * @param {*} [options] Override http request option.
1833
+ * @throws {RequiredError}
1834
+ */
1835
+ oidcPresentCredentialsAfterConsent: (walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1692
1836
  /**
1693
1837
  * Initiates a presentation of credentials to a verifier.
1694
1838
  * @param {string} walletId
@@ -1696,7 +1840,16 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1696
1840
  * @param {*} [options] Override http request option.
1697
1841
  * @throws {RequiredError}
1698
1842
  */
1699
- oidcPresentCredentials: (walletId: string, presentationRequest?: PresentationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1843
+ oidcPresentPassAuthInfo: (walletId: string, presentationRequest?: PresentationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1844
+ /**
1845
+ * Gives consent to process credential offer specified by `interaction_id`
1846
+ * @param {string} walletId
1847
+ * @param {string} interactionId
1848
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
1849
+ * @param {*} [options] Override http request option.
1850
+ * @throws {RequiredError}
1851
+ */
1852
+ oidcProcessOfferAfterConsent: (walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1700
1853
  /**
1701
1854
  * Responds to an ID token request
1702
1855
  * @param {string} walletId
@@ -1864,14 +2017,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1864
2017
  * @throws {RequiredError}
1865
2018
  */
1866
2019
  credentialPatch(credentialId: string, walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
1867
- /**
1868
- * TBD
1869
- * @param {string} walletId
1870
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1871
- * @param {*} [options] Override http request option.
1872
- * @throws {RequiredError}
1873
- */
1874
- credentialRequest(walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
1875
2020
  /**
1876
2021
  *
1877
2022
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1958,14 +2103,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1958
2103
  * @throws {RequiredError}
1959
2104
  */
1960
2105
  oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2AccessToken>>;
1961
- /**
1962
- * Issue verifiable credential using OIDC4VCI offer acceptance
1963
- * @param {string} walletId
1964
- * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
1965
- * @param {*} [options] Override http request option.
1966
- * @throws {RequiredError}
1967
- */
1968
- oidcAcceptOffer(walletId: string, vcOffer?: VcOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
1969
2106
  /**
1970
2107
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
1971
2108
  * @param {string} credentialId
@@ -1982,6 +2119,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1982
2119
  * @throws {RequiredError}
1983
2120
  */
1984
2121
  oidcCreateIdTokenRequest(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IdTokenRequest>>;
2122
+ /**
2123
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2124
+ * @param {string} walletId
2125
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2126
+ * @param {*} [options] Override http request option.
2127
+ * @throws {RequiredError}
2128
+ */
2129
+ oidcCredentialRequestInit(walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InteractionAuthorizationRequirements>>>;
1985
2130
  /**
1986
2131
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
1987
2132
  * @param {string} walletId
@@ -2006,6 +2151,23 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2006
2151
  * @throws {RequiredError}
2007
2152
  */
2008
2153
  oidcInitiatePreauth(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreAuthOffer>>;
2154
+ /**
2155
+ * Issue verifiable credential using OIDC4VCI offer acceptance
2156
+ * @param {string} walletId
2157
+ * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
2158
+ * @param {*} [options] Override http request option.
2159
+ * @throws {RequiredError}
2160
+ */
2161
+ oidcPassOfferAuthInfo(walletId: string, vcOffer?: VcOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InteractionAuthorizationRequirements>>;
2162
+ /**
2163
+ *
2164
+ * @param {string} walletId
2165
+ * @param {string} interactionId
2166
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2167
+ * @param {*} [options] Override http request option.
2168
+ * @throws {RequiredError}
2169
+ */
2170
+ oidcPresentCredentialsAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2009
2171
  /**
2010
2172
  * Initiates a presentation of credentials to a verifier.
2011
2173
  * @param {string} walletId
@@ -2013,7 +2175,16 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2013
2175
  * @param {*} [options] Override http request option.
2014
2176
  * @throws {RequiredError}
2015
2177
  */
2016
- oidcPresentCredentials(walletId: string, presentationRequest?: PresentationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2178
+ oidcPresentPassAuthInfo(walletId: string, presentationRequest?: PresentationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InteractionAuthorizationRequirements>>;
2179
+ /**
2180
+ * Gives consent to process credential offer specified by `interaction_id`
2181
+ * @param {string} walletId
2182
+ * @param {string} interactionId
2183
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2184
+ * @param {*} [options] Override http request option.
2185
+ * @throws {RequiredError}
2186
+ */
2187
+ oidcProcessOfferAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
2017
2188
  /**
2018
2189
  * Responds to an ID token request
2019
2190
  * @param {string} walletId
@@ -2181,14 +2352,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2181
2352
  * @throws {RequiredError}
2182
2353
  */
2183
2354
  credentialPatch(credentialId: string, walletId: string, credentialPayload?: CredentialPayload, options?: any): AxiosPromise<CredentialIdObject>;
2184
- /**
2185
- * TBD
2186
- * @param {string} walletId
2187
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2188
- * @param {*} [options] Override http request option.
2189
- * @throws {RequiredError}
2190
- */
2191
- credentialRequest(walletId: string, credentialRequest?: CredentialRequest, options?: any): AxiosPromise<Array<string>>;
2192
2355
  /**
2193
2356
  *
2194
2357
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2275,14 +2438,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2275
2438
  * @throws {RequiredError}
2276
2439
  */
2277
2440
  oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: any): AxiosPromise<Oauth2AccessToken>;
2278
- /**
2279
- * Issue verifiable credential using OIDC4VCI offer acceptance
2280
- * @param {string} walletId
2281
- * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
2282
- * @param {*} [options] Override http request option.
2283
- * @throws {RequiredError}
2284
- */
2285
- oidcAcceptOffer(walletId: string, vcOffer?: VcOffer, options?: any): AxiosPromise<Array<string>>;
2286
2441
  /**
2287
2442
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
2288
2443
  * @param {string} credentialId
@@ -2299,6 +2454,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2299
2454
  * @throws {RequiredError}
2300
2455
  */
2301
2456
  oidcCreateIdTokenRequest(walletId: string, options?: any): AxiosPromise<IdTokenRequest>;
2457
+ /**
2458
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2459
+ * @param {string} walletId
2460
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2461
+ * @param {*} [options] Override http request option.
2462
+ * @throws {RequiredError}
2463
+ */
2464
+ oidcCredentialRequestInit(walletId: string, credentialRequest?: CredentialRequest, options?: any): AxiosPromise<Array<InteractionAuthorizationRequirements>>;
2302
2465
  /**
2303
2466
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
2304
2467
  * @param {string} walletId
@@ -2323,6 +2486,23 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2323
2486
  * @throws {RequiredError}
2324
2487
  */
2325
2488
  oidcInitiatePreauth(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: any): AxiosPromise<PreAuthOffer>;
2489
+ /**
2490
+ * Issue verifiable credential using OIDC4VCI offer acceptance
2491
+ * @param {string} walletId
2492
+ * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
2493
+ * @param {*} [options] Override http request option.
2494
+ * @throws {RequiredError}
2495
+ */
2496
+ oidcPassOfferAuthInfo(walletId: string, vcOffer?: VcOffer, options?: any): AxiosPromise<InteractionAuthorizationRequirements>;
2497
+ /**
2498
+ *
2499
+ * @param {string} walletId
2500
+ * @param {string} interactionId
2501
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2502
+ * @param {*} [options] Override http request option.
2503
+ * @throws {RequiredError}
2504
+ */
2505
+ oidcPresentCredentialsAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: any): AxiosPromise<void>;
2326
2506
  /**
2327
2507
  * Initiates a presentation of credentials to a verifier.
2328
2508
  * @param {string} walletId
@@ -2330,7 +2510,16 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2330
2510
  * @param {*} [options] Override http request option.
2331
2511
  * @throws {RequiredError}
2332
2512
  */
2333
- oidcPresentCredentials(walletId: string, presentationRequest?: PresentationRequest, options?: any): AxiosPromise<void>;
2513
+ oidcPresentPassAuthInfo(walletId: string, presentationRequest?: PresentationRequest, options?: any): AxiosPromise<InteractionAuthorizationRequirements>;
2514
+ /**
2515
+ * Gives consent to process credential offer specified by `interaction_id`
2516
+ * @param {string} walletId
2517
+ * @param {string} interactionId
2518
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2519
+ * @param {*} [options] Override http request option.
2520
+ * @throws {RequiredError}
2521
+ */
2522
+ oidcProcessOfferAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: any): AxiosPromise<Array<string>>;
2334
2523
  /**
2335
2524
  * Responds to an ID token request
2336
2525
  * @param {string} walletId
@@ -2508,15 +2697,6 @@ export declare class DefaultApi extends BaseAPI {
2508
2697
  * @memberof DefaultApi
2509
2698
  */
2510
2699
  credentialPatch(credentialId: string, walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any>>;
2511
- /**
2512
- * TBD
2513
- * @param {string} walletId
2514
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2515
- * @param {*} [options] Override http request option.
2516
- * @throws {RequiredError}
2517
- * @memberof DefaultApi
2518
- */
2519
- credentialRequest(walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
2520
2700
  /**
2521
2701
  *
2522
2702
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2614,15 +2794,6 @@ export declare class DefaultApi extends BaseAPI {
2614
2794
  * @memberof DefaultApi
2615
2795
  */
2616
2796
  oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2AccessToken, any>>;
2617
- /**
2618
- * Issue verifiable credential using OIDC4VCI offer acceptance
2619
- * @param {string} walletId
2620
- * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
2621
- * @param {*} [options] Override http request option.
2622
- * @throws {RequiredError}
2623
- * @memberof DefaultApi
2624
- */
2625
- oidcAcceptOffer(walletId: string, vcOffer?: VcOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
2626
2797
  /**
2627
2798
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
2628
2799
  * @param {string} credentialId
@@ -2641,6 +2812,15 @@ export declare class DefaultApi extends BaseAPI {
2641
2812
  * @memberof DefaultApi
2642
2813
  */
2643
2814
  oidcCreateIdTokenRequest(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IdTokenRequest, any>>;
2815
+ /**
2816
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2817
+ * @param {string} walletId
2818
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2819
+ * @param {*} [options] Override http request option.
2820
+ * @throws {RequiredError}
2821
+ * @memberof DefaultApi
2822
+ */
2823
+ oidcCredentialRequestInit(walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InteractionAuthorizationRequirements[], any>>;
2644
2824
  /**
2645
2825
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
2646
2826
  * @param {string} walletId
@@ -2668,6 +2848,25 @@ export declare class DefaultApi extends BaseAPI {
2668
2848
  * @memberof DefaultApi
2669
2849
  */
2670
2850
  oidcInitiatePreauth(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PreAuthOffer, any>>;
2851
+ /**
2852
+ * Issue verifiable credential using OIDC4VCI offer acceptance
2853
+ * @param {string} walletId
2854
+ * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
2855
+ * @param {*} [options] Override http request option.
2856
+ * @throws {RequiredError}
2857
+ * @memberof DefaultApi
2858
+ */
2859
+ oidcPassOfferAuthInfo(walletId: string, vcOffer?: VcOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InteractionAuthorizationRequirements, any>>;
2860
+ /**
2861
+ *
2862
+ * @param {string} walletId
2863
+ * @param {string} interactionId
2864
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2865
+ * @param {*} [options] Override http request option.
2866
+ * @throws {RequiredError}
2867
+ * @memberof DefaultApi
2868
+ */
2869
+ oidcPresentCredentialsAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2671
2870
  /**
2672
2871
  * Initiates a presentation of credentials to a verifier.
2673
2872
  * @param {string} walletId
@@ -2676,7 +2875,17 @@ export declare class DefaultApi extends BaseAPI {
2676
2875
  * @throws {RequiredError}
2677
2876
  * @memberof DefaultApi
2678
2877
  */
2679
- oidcPresentCredentials(walletId: string, presentationRequest?: PresentationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2878
+ oidcPresentPassAuthInfo(walletId: string, presentationRequest?: PresentationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InteractionAuthorizationRequirements, any>>;
2879
+ /**
2880
+ * Gives consent to process credential offer specified by `interaction_id`
2881
+ * @param {string} walletId
2882
+ * @param {string} interactionId
2883
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2884
+ * @param {*} [options] Override http request option.
2885
+ * @throws {RequiredError}
2886
+ * @memberof DefaultApi
2887
+ */
2888
+ oidcProcessOfferAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
2680
2889
  /**
2681
2890
  * Responds to an ID token request
2682
2891
  * @param {string} walletId
package/api.js CHANGED
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.WalletNotificationHistorySortEnum = exports.CredentialListSortEnum = exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventType = exports.WalletConfigTrustFrameworkEnum = exports.WalletRoleEnum = exports.SystemImpactStatusEnum = exports.PrepareToAccreditRequestTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialIssuerDefinitionCredentialFormatEnum = exports.AccreditationRequestTypeEnum = void 0;
28
+ exports.WalletNotificationHistorySortEnum = exports.CredentialListSortEnum = exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventType = exports.WalletConfigTrustFrameworkEnum = exports.WalletRoleEnum = exports.SystemImpactStatusEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialIssuerDefinitionCredentialFormatEnum = exports.AccreditationRequestTypeEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -59,10 +59,19 @@ exports.HealthStatusStatusEnum = {
59
59
  Limited: 'limited',
60
60
  Critical: 'critical'
61
61
  };
62
+ exports.InteractionAuthorizationRequirementsRequirementTypeEnum = {
63
+ IdToken: 'id_token',
64
+ VpToken: 'vp_token',
65
+ Pin: 'pin'
66
+ };
62
67
  exports.PrepareToAccreditRequestTypeEnum = {
63
68
  TrustedIssuer: 'TrustedIssuer',
64
69
  TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation'
65
70
  };
71
+ exports.PresentationDefinitionSubmissionRequirementsRuleEnum = {
72
+ All: 'all',
73
+ Pick: 'pick'
74
+ };
66
75
  exports.SystemImpactStatusEnum = {
67
76
  Ok: 'ok',
68
77
  Limited: 'limited',
@@ -399,42 +408,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
399
408
  options: localVarRequestOptions,
400
409
  };
401
410
  }),
402
- /**
403
- * TBD
404
- * @param {string} walletId
405
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
406
- * @param {*} [options] Override http request option.
407
- * @throws {RequiredError}
408
- */
409
- credentialRequest: (walletId, credentialRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
410
- // verify required parameter 'walletId' is not null or undefined
411
- (0, common_1.assertParamExists)('credentialRequest', 'walletId', walletId);
412
- const localVarPath = `/credentials/request`;
413
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
414
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
415
- let baseOptions;
416
- if (configuration) {
417
- baseOptions = configuration.baseOptions;
418
- }
419
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
420
- const localVarHeaderParameter = {};
421
- const localVarQueryParameter = {};
422
- // authentication accessToken required
423
- // http bearer authentication required
424
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
425
- if (walletId != null) {
426
- localVarHeaderParameter['wallet-id'] = String(walletId);
427
- }
428
- localVarHeaderParameter['Content-Type'] = 'application/json';
429
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
430
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
431
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
432
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialRequest, localVarRequestOptions, configuration);
433
- return {
434
- url: (0, common_1.toPathString)(localVarUrlObj),
435
- options: localVarRequestOptions,
436
- };
437
- }),
438
411
  /**
439
412
  *
440
413
  * @param {string} credentialId Verifiable Credential Identifier
@@ -830,16 +803,20 @@ const DefaultApiAxiosParamCreator = function (configuration) {
830
803
  };
831
804
  }),
832
805
  /**
833
- * Issue verifiable credential using OIDC4VCI offer acceptance
806
+ * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
807
+ * @param {string} credentialId
834
808
  * @param {string} walletId
835
- * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
809
+ * @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
836
810
  * @param {*} [options] Override http request option.
837
811
  * @throws {RequiredError}
838
812
  */
839
- oidcAcceptOffer: (walletId, vcOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
813
+ oidcAddCredToIssuanceQueue: (credentialId, walletId, issuanceQueueCredentialAdd, options = {}) => __awaiter(this, void 0, void 0, function* () {
814
+ // verify required parameter 'credentialId' is not null or undefined
815
+ (0, common_1.assertParamExists)('oidcAddCredToIssuanceQueue', 'credentialId', credentialId);
840
816
  // verify required parameter 'walletId' is not null or undefined
841
- (0, common_1.assertParamExists)('oidcAcceptOffer', 'walletId', walletId);
842
- const localVarPath = `/holder/offer/accept`;
817
+ (0, common_1.assertParamExists)('oidcAddCredToIssuanceQueue', 'walletId', walletId);
818
+ const localVarPath = `/credentials/{credential_id}/add`
819
+ .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
843
820
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
844
821
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
845
822
  let baseOptions;
@@ -859,27 +836,22 @@ const DefaultApiAxiosParamCreator = function (configuration) {
859
836
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
860
837
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
861
838
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
862
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(vcOffer, localVarRequestOptions, configuration);
839
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(issuanceQueueCredentialAdd, localVarRequestOptions, configuration);
863
840
  return {
864
841
  url: (0, common_1.toPathString)(localVarUrlObj),
865
842
  options: localVarRequestOptions,
866
843
  };
867
844
  }),
868
845
  /**
869
- * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
870
- * @param {string} credentialId
846
+ * Creates an ID token request.
871
847
  * @param {string} walletId
872
- * @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
873
848
  * @param {*} [options] Override http request option.
874
849
  * @throws {RequiredError}
875
850
  */
876
- oidcAddCredToIssuanceQueue: (credentialId, walletId, issuanceQueueCredentialAdd, options = {}) => __awaiter(this, void 0, void 0, function* () {
877
- // verify required parameter 'credentialId' is not null or undefined
878
- (0, common_1.assertParamExists)('oidcAddCredToIssuanceQueue', 'credentialId', credentialId);
851
+ oidcCreateIdTokenRequest: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
879
852
  // verify required parameter 'walletId' is not null or undefined
880
- (0, common_1.assertParamExists)('oidcAddCredToIssuanceQueue', 'walletId', walletId);
881
- const localVarPath = `/credentials/{credential_id}/add`
882
- .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
853
+ (0, common_1.assertParamExists)('oidcCreateIdTokenRequest', 'walletId', walletId);
854
+ const localVarPath = `/id-token/request`;
883
855
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
884
856
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
885
857
  let baseOptions;
@@ -895,26 +867,25 @@ const DefaultApiAxiosParamCreator = function (configuration) {
895
867
  if (walletId != null) {
896
868
  localVarHeaderParameter['wallet-id'] = String(walletId);
897
869
  }
898
- localVarHeaderParameter['Content-Type'] = 'application/json';
899
870
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
900
871
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
901
872
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
902
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(issuanceQueueCredentialAdd, localVarRequestOptions, configuration);
903
873
  return {
904
874
  url: (0, common_1.toPathString)(localVarUrlObj),
905
875
  options: localVarRequestOptions,
906
876
  };
907
877
  }),
908
878
  /**
909
- * Creates an ID token request.
879
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
910
880
  * @param {string} walletId
881
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
911
882
  * @param {*} [options] Override http request option.
912
883
  * @throws {RequiredError}
913
884
  */
914
- oidcCreateIdTokenRequest: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
885
+ oidcCredentialRequestInit: (walletId, credentialRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
915
886
  // verify required parameter 'walletId' is not null or undefined
916
- (0, common_1.assertParamExists)('oidcCreateIdTokenRequest', 'walletId', walletId);
917
- const localVarPath = `/id-token/request`;
887
+ (0, common_1.assertParamExists)('oidcCredentialRequestInit', 'walletId', walletId);
888
+ const localVarPath = `/credentials/request/init`;
918
889
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
919
890
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
920
891
  let baseOptions;
@@ -930,9 +901,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
930
901
  if (walletId != null) {
931
902
  localVarHeaderParameter['wallet-id'] = String(walletId);
932
903
  }
904
+ localVarHeaderParameter['Content-Type'] = 'application/json';
933
905
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
934
906
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
935
907
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
908
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialRequest, localVarRequestOptions, configuration);
936
909
  return {
937
910
  url: (0, common_1.toPathString)(localVarUrlObj),
938
911
  options: localVarRequestOptions,
@@ -1046,6 +1019,79 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1046
1019
  options: localVarRequestOptions,
1047
1020
  };
1048
1021
  }),
1022
+ /**
1023
+ * Issue verifiable credential using OIDC4VCI offer acceptance
1024
+ * @param {string} walletId
1025
+ * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ oidcPassOfferAuthInfo: (walletId, vcOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
1030
+ // verify required parameter 'walletId' is not null or undefined
1031
+ (0, common_1.assertParamExists)('oidcPassOfferAuthInfo', 'walletId', walletId);
1032
+ const localVarPath = `/holder/offer/pass-auth-info`;
1033
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1034
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1035
+ let baseOptions;
1036
+ if (configuration) {
1037
+ baseOptions = configuration.baseOptions;
1038
+ }
1039
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1040
+ const localVarHeaderParameter = {};
1041
+ const localVarQueryParameter = {};
1042
+ // authentication accessToken required
1043
+ // http bearer authentication required
1044
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1045
+ if (walletId != null) {
1046
+ localVarHeaderParameter['wallet-id'] = String(walletId);
1047
+ }
1048
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1049
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1050
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1051
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1052
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(vcOffer, localVarRequestOptions, configuration);
1053
+ return {
1054
+ url: (0, common_1.toPathString)(localVarUrlObj),
1055
+ options: localVarRequestOptions,
1056
+ };
1057
+ }),
1058
+ /**
1059
+ *
1060
+ * @param {string} walletId
1061
+ * @param {string} interactionId
1062
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
1063
+ * @param {*} [options] Override http request option.
1064
+ * @throws {RequiredError}
1065
+ */
1066
+ oidcPresentCredentialsAfterConsent: (walletId, interactionId, interactionAuthorizationConsent, options = {}) => __awaiter(this, void 0, void 0, function* () {
1067
+ // verify required parameter 'walletId' is not null or undefined
1068
+ (0, common_1.assertParamExists)('oidcPresentCredentialsAfterConsent', 'walletId', walletId);
1069
+ // verify required parameter 'interactionId' is not null or undefined
1070
+ (0, common_1.assertParamExists)('oidcPresentCredentialsAfterConsent', 'interactionId', interactionId);
1071
+ const localVarPath = `/holder/present/{interaction_id}`
1072
+ .replace(`{${"interaction_id"}}`, encodeURIComponent(String(interactionId)));
1073
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1074
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1075
+ let baseOptions;
1076
+ if (configuration) {
1077
+ baseOptions = configuration.baseOptions;
1078
+ }
1079
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1080
+ const localVarHeaderParameter = {};
1081
+ const localVarQueryParameter = {};
1082
+ if (walletId != null) {
1083
+ localVarHeaderParameter['wallet-id'] = String(walletId);
1084
+ }
1085
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1086
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1087
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1088
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1089
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(interactionAuthorizationConsent, localVarRequestOptions, configuration);
1090
+ return {
1091
+ url: (0, common_1.toPathString)(localVarUrlObj),
1092
+ options: localVarRequestOptions,
1093
+ };
1094
+ }),
1049
1095
  /**
1050
1096
  * Initiates a presentation of credentials to a verifier.
1051
1097
  * @param {string} walletId
@@ -1053,10 +1099,10 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1053
1099
  * @param {*} [options] Override http request option.
1054
1100
  * @throws {RequiredError}
1055
1101
  */
1056
- oidcPresentCredentials: (walletId, presentationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1102
+ oidcPresentPassAuthInfo: (walletId, presentationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1057
1103
  // verify required parameter 'walletId' is not null or undefined
1058
- (0, common_1.assertParamExists)('oidcPresentCredentials', 'walletId', walletId);
1059
- const localVarPath = `/present`;
1104
+ (0, common_1.assertParamExists)('oidcPresentPassAuthInfo', 'walletId', walletId);
1105
+ const localVarPath = `/holder/present/pass-auth-info`;
1060
1106
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1061
1107
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1062
1108
  let baseOptions;
@@ -1082,6 +1128,43 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1082
1128
  options: localVarRequestOptions,
1083
1129
  };
1084
1130
  }),
1131
+ /**
1132
+ * Gives consent to process credential offer specified by `interaction_id`
1133
+ * @param {string} walletId
1134
+ * @param {string} interactionId
1135
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
1136
+ * @param {*} [options] Override http request option.
1137
+ * @throws {RequiredError}
1138
+ */
1139
+ oidcProcessOfferAfterConsent: (walletId, interactionId, interactionAuthorizationConsent, options = {}) => __awaiter(this, void 0, void 0, function* () {
1140
+ // verify required parameter 'walletId' is not null or undefined
1141
+ (0, common_1.assertParamExists)('oidcProcessOfferAfterConsent', 'walletId', walletId);
1142
+ // verify required parameter 'interactionId' is not null or undefined
1143
+ (0, common_1.assertParamExists)('oidcProcessOfferAfterConsent', 'interactionId', interactionId);
1144
+ const localVarPath = `/holder/offer/{interaction_id}/process`
1145
+ .replace(`{${"interaction_id"}}`, encodeURIComponent(String(interactionId)));
1146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1147
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1148
+ let baseOptions;
1149
+ if (configuration) {
1150
+ baseOptions = configuration.baseOptions;
1151
+ }
1152
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1153
+ const localVarHeaderParameter = {};
1154
+ const localVarQueryParameter = {};
1155
+ if (walletId != null) {
1156
+ localVarHeaderParameter['wallet-id'] = String(walletId);
1157
+ }
1158
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1159
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1160
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1161
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1162
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(interactionAuthorizationConsent, localVarRequestOptions, configuration);
1163
+ return {
1164
+ url: (0, common_1.toPathString)(localVarUrlObj),
1165
+ options: localVarRequestOptions,
1166
+ };
1167
+ }),
1085
1168
  /**
1086
1169
  * Responds to an ID token request
1087
1170
  * @param {string} walletId
@@ -1627,22 +1710,6 @@ const DefaultApiFp = function (configuration) {
1627
1710
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1628
1711
  });
1629
1712
  },
1630
- /**
1631
- * TBD
1632
- * @param {string} walletId
1633
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1634
- * @param {*} [options] Override http request option.
1635
- * @throws {RequiredError}
1636
- */
1637
- credentialRequest(walletId, credentialRequest, options) {
1638
- var _a, _b, _c;
1639
- return __awaiter(this, void 0, void 0, function* () {
1640
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialRequest(walletId, credentialRequest, options);
1641
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1642
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1643
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1644
- });
1645
- },
1646
1713
  /**
1647
1714
  *
1648
1715
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1818,50 +1885,50 @@ const DefaultApiFp = function (configuration) {
1818
1885
  });
1819
1886
  },
1820
1887
  /**
1821
- * Issue verifiable credential using OIDC4VCI offer acceptance
1888
+ * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
1889
+ * @param {string} credentialId
1822
1890
  * @param {string} walletId
1823
- * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
1891
+ * @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
1824
1892
  * @param {*} [options] Override http request option.
1825
1893
  * @throws {RequiredError}
1826
1894
  */
1827
- oidcAcceptOffer(walletId, vcOffer, options) {
1895
+ oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredentialAdd, options) {
1828
1896
  var _a, _b, _c;
1829
1897
  return __awaiter(this, void 0, void 0, function* () {
1830
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAcceptOffer(walletId, vcOffer, options);
1898
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredentialAdd, options);
1831
1899
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1832
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcAcceptOffer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1900
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcAddCredToIssuanceQueue']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1833
1901
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1834
1902
  });
1835
1903
  },
1836
1904
  /**
1837
- * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
1838
- * @param {string} credentialId
1905
+ * Creates an ID token request.
1839
1906
  * @param {string} walletId
1840
- * @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
1841
1907
  * @param {*} [options] Override http request option.
1842
1908
  * @throws {RequiredError}
1843
1909
  */
1844
- oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredentialAdd, options) {
1910
+ oidcCreateIdTokenRequest(walletId, options) {
1845
1911
  var _a, _b, _c;
1846
1912
  return __awaiter(this, void 0, void 0, function* () {
1847
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredentialAdd, options);
1913
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcCreateIdTokenRequest(walletId, options);
1848
1914
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1849
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcAddCredToIssuanceQueue']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1915
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcCreateIdTokenRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1850
1916
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1851
1917
  });
1852
1918
  },
1853
1919
  /**
1854
- * Creates an ID token request.
1920
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
1855
1921
  * @param {string} walletId
1922
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1856
1923
  * @param {*} [options] Override http request option.
1857
1924
  * @throws {RequiredError}
1858
1925
  */
1859
- oidcCreateIdTokenRequest(walletId, options) {
1926
+ oidcCredentialRequestInit(walletId, credentialRequest, options) {
1860
1927
  var _a, _b, _c;
1861
1928
  return __awaiter(this, void 0, void 0, function* () {
1862
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcCreateIdTokenRequest(walletId, options);
1929
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcCredentialRequestInit(walletId, credentialRequest, options);
1863
1930
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1864
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcCreateIdTokenRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1931
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcCredentialRequestInit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1865
1932
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1866
1933
  });
1867
1934
  },
@@ -1913,6 +1980,39 @@ const DefaultApiFp = function (configuration) {
1913
1980
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1914
1981
  });
1915
1982
  },
1983
+ /**
1984
+ * Issue verifiable credential using OIDC4VCI offer acceptance
1985
+ * @param {string} walletId
1986
+ * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
1987
+ * @param {*} [options] Override http request option.
1988
+ * @throws {RequiredError}
1989
+ */
1990
+ oidcPassOfferAuthInfo(walletId, vcOffer, options) {
1991
+ var _a, _b, _c;
1992
+ return __awaiter(this, void 0, void 0, function* () {
1993
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcPassOfferAuthInfo(walletId, vcOffer, options);
1994
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1995
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcPassOfferAuthInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1996
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1997
+ });
1998
+ },
1999
+ /**
2000
+ *
2001
+ * @param {string} walletId
2002
+ * @param {string} interactionId
2003
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2004
+ * @param {*} [options] Override http request option.
2005
+ * @throws {RequiredError}
2006
+ */
2007
+ oidcPresentCredentialsAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options) {
2008
+ var _a, _b, _c;
2009
+ return __awaiter(this, void 0, void 0, function* () {
2010
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcPresentCredentialsAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options);
2011
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2012
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcPresentCredentialsAfterConsent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2013
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2014
+ });
2015
+ },
1916
2016
  /**
1917
2017
  * Initiates a presentation of credentials to a verifier.
1918
2018
  * @param {string} walletId
@@ -1920,12 +2020,29 @@ const DefaultApiFp = function (configuration) {
1920
2020
  * @param {*} [options] Override http request option.
1921
2021
  * @throws {RequiredError}
1922
2022
  */
1923
- oidcPresentCredentials(walletId, presentationRequest, options) {
2023
+ oidcPresentPassAuthInfo(walletId, presentationRequest, options) {
2024
+ var _a, _b, _c;
2025
+ return __awaiter(this, void 0, void 0, function* () {
2026
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcPresentPassAuthInfo(walletId, presentationRequest, options);
2027
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2028
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcPresentPassAuthInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2029
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2030
+ });
2031
+ },
2032
+ /**
2033
+ * Gives consent to process credential offer specified by `interaction_id`
2034
+ * @param {string} walletId
2035
+ * @param {string} interactionId
2036
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2037
+ * @param {*} [options] Override http request option.
2038
+ * @throws {RequiredError}
2039
+ */
2040
+ oidcProcessOfferAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options) {
1924
2041
  var _a, _b, _c;
1925
2042
  return __awaiter(this, void 0, void 0, function* () {
1926
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcPresentCredentials(walletId, presentationRequest, options);
2043
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcProcessOfferAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options);
1927
2044
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1928
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcPresentCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2045
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcProcessOfferAfterConsent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1929
2046
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1930
2047
  });
1931
2048
  },
@@ -2212,16 +2329,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2212
2329
  credentialPatch(credentialId, walletId, credentialPayload, options) {
2213
2330
  return localVarFp.credentialPatch(credentialId, walletId, credentialPayload, options).then((request) => request(axios, basePath));
2214
2331
  },
2215
- /**
2216
- * TBD
2217
- * @param {string} walletId
2218
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2219
- * @param {*} [options] Override http request option.
2220
- * @throws {RequiredError}
2221
- */
2222
- credentialRequest(walletId, credentialRequest, options) {
2223
- return localVarFp.credentialRequest(walletId, credentialRequest, options).then((request) => request(axios, basePath));
2224
- },
2225
2332
  /**
2226
2333
  *
2227
2334
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2330,16 +2437,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2330
2437
  oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options) {
2331
2438
  return localVarFp.oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options).then((request) => request(axios, basePath));
2332
2439
  },
2333
- /**
2334
- * Issue verifiable credential using OIDC4VCI offer acceptance
2335
- * @param {string} walletId
2336
- * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
2337
- * @param {*} [options] Override http request option.
2338
- * @throws {RequiredError}
2339
- */
2340
- oidcAcceptOffer(walletId, vcOffer, options) {
2341
- return localVarFp.oidcAcceptOffer(walletId, vcOffer, options).then((request) => request(axios, basePath));
2342
- },
2343
2440
  /**
2344
2441
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
2345
2442
  * @param {string} credentialId
@@ -2360,6 +2457,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2360
2457
  oidcCreateIdTokenRequest(walletId, options) {
2361
2458
  return localVarFp.oidcCreateIdTokenRequest(walletId, options).then((request) => request(axios, basePath));
2362
2459
  },
2460
+ /**
2461
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2462
+ * @param {string} walletId
2463
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2464
+ * @param {*} [options] Override http request option.
2465
+ * @throws {RequiredError}
2466
+ */
2467
+ oidcCredentialRequestInit(walletId, credentialRequest, options) {
2468
+ return localVarFp.oidcCredentialRequestInit(walletId, credentialRequest, options).then((request) => request(axios, basePath));
2469
+ },
2363
2470
  /**
2364
2471
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
2365
2472
  * @param {string} walletId
@@ -2390,6 +2497,27 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2390
2497
  oidcInitiatePreauth(walletId, initPreAuthOffer, options) {
2391
2498
  return localVarFp.oidcInitiatePreauth(walletId, initPreAuthOffer, options).then((request) => request(axios, basePath));
2392
2499
  },
2500
+ /**
2501
+ * Issue verifiable credential using OIDC4VCI offer acceptance
2502
+ * @param {string} walletId
2503
+ * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
2504
+ * @param {*} [options] Override http request option.
2505
+ * @throws {RequiredError}
2506
+ */
2507
+ oidcPassOfferAuthInfo(walletId, vcOffer, options) {
2508
+ return localVarFp.oidcPassOfferAuthInfo(walletId, vcOffer, options).then((request) => request(axios, basePath));
2509
+ },
2510
+ /**
2511
+ *
2512
+ * @param {string} walletId
2513
+ * @param {string} interactionId
2514
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2515
+ * @param {*} [options] Override http request option.
2516
+ * @throws {RequiredError}
2517
+ */
2518
+ oidcPresentCredentialsAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options) {
2519
+ return localVarFp.oidcPresentCredentialsAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options).then((request) => request(axios, basePath));
2520
+ },
2393
2521
  /**
2394
2522
  * Initiates a presentation of credentials to a verifier.
2395
2523
  * @param {string} walletId
@@ -2397,8 +2525,19 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2397
2525
  * @param {*} [options] Override http request option.
2398
2526
  * @throws {RequiredError}
2399
2527
  */
2400
- oidcPresentCredentials(walletId, presentationRequest, options) {
2401
- return localVarFp.oidcPresentCredentials(walletId, presentationRequest, options).then((request) => request(axios, basePath));
2528
+ oidcPresentPassAuthInfo(walletId, presentationRequest, options) {
2529
+ return localVarFp.oidcPresentPassAuthInfo(walletId, presentationRequest, options).then((request) => request(axios, basePath));
2530
+ },
2531
+ /**
2532
+ * Gives consent to process credential offer specified by `interaction_id`
2533
+ * @param {string} walletId
2534
+ * @param {string} interactionId
2535
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2536
+ * @param {*} [options] Override http request option.
2537
+ * @throws {RequiredError}
2538
+ */
2539
+ oidcProcessOfferAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options) {
2540
+ return localVarFp.oidcProcessOfferAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options).then((request) => request(axios, basePath));
2402
2541
  },
2403
2542
  /**
2404
2543
  * Responds to an ID token request
@@ -2619,17 +2758,6 @@ class DefaultApi extends base_1.BaseAPI {
2619
2758
  credentialPatch(credentialId, walletId, credentialPayload, options) {
2620
2759
  return (0, exports.DefaultApiFp)(this.configuration).credentialPatch(credentialId, walletId, credentialPayload, options).then((request) => request(this.axios, this.basePath));
2621
2760
  }
2622
- /**
2623
- * TBD
2624
- * @param {string} walletId
2625
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2626
- * @param {*} [options] Override http request option.
2627
- * @throws {RequiredError}
2628
- * @memberof DefaultApi
2629
- */
2630
- credentialRequest(walletId, credentialRequest, options) {
2631
- return (0, exports.DefaultApiFp)(this.configuration).credentialRequest(walletId, credentialRequest, options).then((request) => request(this.axios, this.basePath));
2632
- }
2633
2761
  /**
2634
2762
  *
2635
2763
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2749,17 +2877,6 @@ class DefaultApi extends base_1.BaseAPI {
2749
2877
  oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options) {
2750
2878
  return (0, exports.DefaultApiFp)(this.configuration).oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options).then((request) => request(this.axios, this.basePath));
2751
2879
  }
2752
- /**
2753
- * Issue verifiable credential using OIDC4VCI offer acceptance
2754
- * @param {string} walletId
2755
- * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
2756
- * @param {*} [options] Override http request option.
2757
- * @throws {RequiredError}
2758
- * @memberof DefaultApi
2759
- */
2760
- oidcAcceptOffer(walletId, vcOffer, options) {
2761
- return (0, exports.DefaultApiFp)(this.configuration).oidcAcceptOffer(walletId, vcOffer, options).then((request) => request(this.axios, this.basePath));
2762
- }
2763
2880
  /**
2764
2881
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
2765
2882
  * @param {string} credentialId
@@ -2782,6 +2899,17 @@ class DefaultApi extends base_1.BaseAPI {
2782
2899
  oidcCreateIdTokenRequest(walletId, options) {
2783
2900
  return (0, exports.DefaultApiFp)(this.configuration).oidcCreateIdTokenRequest(walletId, options).then((request) => request(this.axios, this.basePath));
2784
2901
  }
2902
+ /**
2903
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2904
+ * @param {string} walletId
2905
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2906
+ * @param {*} [options] Override http request option.
2907
+ * @throws {RequiredError}
2908
+ * @memberof DefaultApi
2909
+ */
2910
+ oidcCredentialRequestInit(walletId, credentialRequest, options) {
2911
+ return (0, exports.DefaultApiFp)(this.configuration).oidcCredentialRequestInit(walletId, credentialRequest, options).then((request) => request(this.axios, this.basePath));
2912
+ }
2785
2913
  /**
2786
2914
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
2787
2915
  * @param {string} walletId
@@ -2815,6 +2943,29 @@ class DefaultApi extends base_1.BaseAPI {
2815
2943
  oidcInitiatePreauth(walletId, initPreAuthOffer, options) {
2816
2944
  return (0, exports.DefaultApiFp)(this.configuration).oidcInitiatePreauth(walletId, initPreAuthOffer, options).then((request) => request(this.axios, this.basePath));
2817
2945
  }
2946
+ /**
2947
+ * Issue verifiable credential using OIDC4VCI offer acceptance
2948
+ * @param {string} walletId
2949
+ * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
2950
+ * @param {*} [options] Override http request option.
2951
+ * @throws {RequiredError}
2952
+ * @memberof DefaultApi
2953
+ */
2954
+ oidcPassOfferAuthInfo(walletId, vcOffer, options) {
2955
+ return (0, exports.DefaultApiFp)(this.configuration).oidcPassOfferAuthInfo(walletId, vcOffer, options).then((request) => request(this.axios, this.basePath));
2956
+ }
2957
+ /**
2958
+ *
2959
+ * @param {string} walletId
2960
+ * @param {string} interactionId
2961
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2962
+ * @param {*} [options] Override http request option.
2963
+ * @throws {RequiredError}
2964
+ * @memberof DefaultApi
2965
+ */
2966
+ oidcPresentCredentialsAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options) {
2967
+ return (0, exports.DefaultApiFp)(this.configuration).oidcPresentCredentialsAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options).then((request) => request(this.axios, this.basePath));
2968
+ }
2818
2969
  /**
2819
2970
  * Initiates a presentation of credentials to a verifier.
2820
2971
  * @param {string} walletId
@@ -2823,8 +2974,20 @@ class DefaultApi extends base_1.BaseAPI {
2823
2974
  * @throws {RequiredError}
2824
2975
  * @memberof DefaultApi
2825
2976
  */
2826
- oidcPresentCredentials(walletId, presentationRequest, options) {
2827
- return (0, exports.DefaultApiFp)(this.configuration).oidcPresentCredentials(walletId, presentationRequest, options).then((request) => request(this.axios, this.basePath));
2977
+ oidcPresentPassAuthInfo(walletId, presentationRequest, options) {
2978
+ return (0, exports.DefaultApiFp)(this.configuration).oidcPresentPassAuthInfo(walletId, presentationRequest, options).then((request) => request(this.axios, this.basePath));
2979
+ }
2980
+ /**
2981
+ * Gives consent to process credential offer specified by `interaction_id`
2982
+ * @param {string} walletId
2983
+ * @param {string} interactionId
2984
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2985
+ * @param {*} [options] Override http request option.
2986
+ * @throws {RequiredError}
2987
+ * @memberof DefaultApi
2988
+ */
2989
+ oidcProcessOfferAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options) {
2990
+ return (0, exports.DefaultApiFp)(this.configuration).oidcProcessOfferAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options).then((request) => request(this.axios, this.basePath));
2828
2991
  }
2829
2992
  /**
2830
2993
  * Responds to an ID token request
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.134",
4
+ "version": "0.0.135",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {