@triveria/wallet 0.0.134 → 0.0.136

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 +292 -77
  2. package/api.js +304 -141
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -603,6 +603,12 @@ export interface EbsiConfiguration {
603
603
  * @interface EbsiSpecificWalletData
604
604
  */
605
605
  export interface EbsiSpecificWalletData {
606
+ /**
607
+ *
608
+ * @type {string}
609
+ * @memberof EbsiSpecificWalletData
610
+ */
611
+ 'requiredDid'?: string;
606
612
  /**
607
613
  *
608
614
  * @type {boolean}
@@ -799,6 +805,81 @@ export interface InitPreAuthOffer {
799
805
  */
800
806
  'offerEndpoint'?: string;
801
807
  }
808
+ /**
809
+ *
810
+ * @export
811
+ * @interface InputDescriptorSuitableCredentials
812
+ */
813
+ export interface InputDescriptorSuitableCredentials {
814
+ /**
815
+ * ID of presentation definition input descriptor for which the credential list is suitable.
816
+ * @type {string}
817
+ * @memberof InputDescriptorSuitableCredentials
818
+ */
819
+ 'descriptorId': string;
820
+ /**
821
+ * Credential ID list of credentials suitable for presentation according to the specified input descriptor.
822
+ * @type {Array<CredentialMetadata>}
823
+ * @memberof InputDescriptorSuitableCredentials
824
+ */
825
+ 'credentials': Array<CredentialMetadata>;
826
+ }
827
+ /**
828
+ *
829
+ * @export
830
+ * @interface InteractionAuthorizationConsent
831
+ */
832
+ export interface InteractionAuthorizationConsent {
833
+ /**
834
+ * Pin code needed for pre-authorized credential offers. Required when authorization requirement type is `pin`
835
+ * @type {string}
836
+ * @memberof InteractionAuthorizationConsent
837
+ */
838
+ 'pin'?: string;
839
+ /**
840
+ * 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`.
841
+ * @type {Array<InputDescriptorSuitableCredentials>}
842
+ * @memberof InteractionAuthorizationConsent
843
+ */
844
+ 'credentialsToPresent'?: Array<InputDescriptorSuitableCredentials>;
845
+ }
846
+ /**
847
+ *
848
+ * @export
849
+ * @interface InteractionAuthorizationRequirements
850
+ */
851
+ export interface InteractionAuthorizationRequirements {
852
+ /**
853
+ *
854
+ * @type {string}
855
+ * @memberof InteractionAuthorizationRequirements
856
+ */
857
+ 'requirementType': InteractionAuthorizationRequirementsRequirementTypeEnum;
858
+ /**
859
+ *
860
+ * @type {PresentationDefinition}
861
+ * @memberof InteractionAuthorizationRequirements
862
+ */
863
+ 'presentationDefinition'?: PresentationDefinition;
864
+ /**
865
+ * List of credentials suitable for presentation.
866
+ * @type {Array<InputDescriptorSuitableCredentials>}
867
+ * @memberof InteractionAuthorizationRequirements
868
+ */
869
+ 'presentationCandidates'?: Array<InputDescriptorSuitableCredentials>;
870
+ /**
871
+ *
872
+ * @type {string}
873
+ * @memberof InteractionAuthorizationRequirements
874
+ */
875
+ 'interactionId': string;
876
+ }
877
+ export declare const InteractionAuthorizationRequirementsRequirementTypeEnum: {
878
+ readonly IdToken: "id_token";
879
+ readonly VpToken: "vp_token";
880
+ readonly Pin: "pin";
881
+ };
882
+ export type InteractionAuthorizationRequirementsRequirementTypeEnum = typeof InteractionAuthorizationRequirementsRequirementTypeEnum[keyof typeof InteractionAuthorizationRequirementsRequirementTypeEnum];
802
883
  /**
803
884
  * 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
885
  * @export
@@ -1012,6 +1093,12 @@ export interface PresentationDefinition {
1012
1093
  * @memberof PresentationDefinition
1013
1094
  */
1014
1095
  'input_descriptors': Array<PresentationDefinitionInputDescriptor>;
1096
+ /**
1097
+ *
1098
+ * @type {Array<PresentationDefinitionSubmissionRequirements>}
1099
+ * @memberof PresentationDefinition
1100
+ */
1101
+ 'submission_requirements'?: Array<PresentationDefinitionSubmissionRequirements>;
1015
1102
  }
1016
1103
  /**
1017
1104
  *
@@ -1101,7 +1188,67 @@ export interface PresentationDefinitionInputDescriptor {
1101
1188
  * @memberof PresentationDefinitionInputDescriptor
1102
1189
  */
1103
1190
  'constraints': PresentationDefinitionInputConstraint;
1191
+ /**
1192
+ *
1193
+ * @type {Array<string>}
1194
+ * @memberof PresentationDefinitionInputDescriptor
1195
+ */
1196
+ 'group'?: Array<string>;
1104
1197
  }
1198
+ /**
1199
+ *
1200
+ * @export
1201
+ * @interface PresentationDefinitionSubmissionRequirements
1202
+ */
1203
+ export interface PresentationDefinitionSubmissionRequirements {
1204
+ /**
1205
+ *
1206
+ * @type {string}
1207
+ * @memberof PresentationDefinitionSubmissionRequirements
1208
+ */
1209
+ 'rule': PresentationDefinitionSubmissionRequirementsRuleEnum;
1210
+ /**
1211
+ *
1212
+ * @type {number}
1213
+ * @memberof PresentationDefinitionSubmissionRequirements
1214
+ */
1215
+ 'count'?: number;
1216
+ /**
1217
+ *
1218
+ * @type {number}
1219
+ * @memberof PresentationDefinitionSubmissionRequirements
1220
+ */
1221
+ 'min'?: number;
1222
+ /**
1223
+ *
1224
+ * @type {number}
1225
+ * @memberof PresentationDefinitionSubmissionRequirements
1226
+ */
1227
+ 'max'?: number;
1228
+ /**
1229
+ *
1230
+ * @type {string}
1231
+ * @memberof PresentationDefinitionSubmissionRequirements
1232
+ */
1233
+ 'from'?: string;
1234
+ /**
1235
+ *
1236
+ * @type {Array<PresentationDefinitionSubmissionRequirements>}
1237
+ * @memberof PresentationDefinitionSubmissionRequirements
1238
+ */
1239
+ 'from_nested'?: Array<PresentationDefinitionSubmissionRequirements>;
1240
+ /**
1241
+ *
1242
+ * @type {string}
1243
+ * @memberof PresentationDefinitionSubmissionRequirements
1244
+ */
1245
+ 'name'?: string;
1246
+ }
1247
+ export declare const PresentationDefinitionSubmissionRequirementsRuleEnum: {
1248
+ readonly All: "all";
1249
+ readonly Pick: "pick";
1250
+ };
1251
+ export type PresentationDefinitionSubmissionRequirementsRuleEnum = typeof PresentationDefinitionSubmissionRequirementsRuleEnum[keyof typeof PresentationDefinitionSubmissionRequirementsRuleEnum];
1105
1252
  /**
1106
1253
  *
1107
1254
  * @export
@@ -1229,7 +1376,7 @@ export interface TermsOfUse {
1229
1376
  'type': string;
1230
1377
  }
1231
1378
  /**
1232
- * The offer to be accepted. The offer URL is mandatory and the pin is required only in case of the pre-authorized flow.
1379
+ * The offer to be accepted. The offer URL is mandatory.
1233
1380
  * @export
1234
1381
  * @interface VcOffer
1235
1382
  */
@@ -1240,12 +1387,6 @@ export interface VcOffer {
1240
1387
  * @memberof VcOffer
1241
1388
  */
1242
1389
  'Url': string;
1243
- /**
1244
- *
1245
- * @type {string}
1246
- * @memberof VcOffer
1247
- */
1248
- 'Pin'?: string;
1249
1390
  /**
1250
1391
  *
1251
1392
  * @type {boolean}
@@ -1547,14 +1688,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1547
1688
  * @throws {RequiredError}
1548
1689
  */
1549
1690
  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
1691
  /**
1559
1692
  *
1560
1693
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1641,14 +1774,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1641
1774
  * @throws {RequiredError}
1642
1775
  */
1643
1776
  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
1777
  /**
1653
1778
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
1654
1779
  * @param {string} credentialId
@@ -1665,6 +1790,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1665
1790
  * @throws {RequiredError}
1666
1791
  */
1667
1792
  oidcCreateIdTokenRequest: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1793
+ /**
1794
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
1795
+ * @param {string} walletId
1796
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1797
+ * @param {*} [options] Override http request option.
1798
+ * @throws {RequiredError}
1799
+ */
1800
+ oidcCredentialRequestInit: (walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1668
1801
  /**
1669
1802
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
1670
1803
  * @param {string} walletId
@@ -1689,6 +1822,23 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1689
1822
  * @throws {RequiredError}
1690
1823
  */
1691
1824
  oidcInitiatePreauth: (walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1825
+ /**
1826
+ * Issue verifiable credential using OIDC4VCI offer acceptance
1827
+ * @param {string} walletId
1828
+ * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
1829
+ * @param {*} [options] Override http request option.
1830
+ * @throws {RequiredError}
1831
+ */
1832
+ oidcPassOfferAuthInfo: (walletId: string, vcOffer?: VcOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1833
+ /**
1834
+ *
1835
+ * @param {string} walletId
1836
+ * @param {string} interactionId
1837
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
1838
+ * @param {*} [options] Override http request option.
1839
+ * @throws {RequiredError}
1840
+ */
1841
+ oidcPresentCredentialsAfterConsent: (walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1692
1842
  /**
1693
1843
  * Initiates a presentation of credentials to a verifier.
1694
1844
  * @param {string} walletId
@@ -1696,7 +1846,16 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1696
1846
  * @param {*} [options] Override http request option.
1697
1847
  * @throws {RequiredError}
1698
1848
  */
1699
- oidcPresentCredentials: (walletId: string, presentationRequest?: PresentationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1849
+ oidcPresentPassAuthInfo: (walletId: string, presentationRequest?: PresentationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1850
+ /**
1851
+ * Gives consent to process credential offer specified by `interaction_id`
1852
+ * @param {string} walletId
1853
+ * @param {string} interactionId
1854
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
1855
+ * @param {*} [options] Override http request option.
1856
+ * @throws {RequiredError}
1857
+ */
1858
+ oidcProcessOfferAfterConsent: (walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1700
1859
  /**
1701
1860
  * Responds to an ID token request
1702
1861
  * @param {string} walletId
@@ -1864,14 +2023,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1864
2023
  * @throws {RequiredError}
1865
2024
  */
1866
2025
  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
2026
  /**
1876
2027
  *
1877
2028
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1958,14 +2109,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1958
2109
  * @throws {RequiredError}
1959
2110
  */
1960
2111
  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
2112
  /**
1970
2113
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
1971
2114
  * @param {string} credentialId
@@ -1982,6 +2125,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1982
2125
  * @throws {RequiredError}
1983
2126
  */
1984
2127
  oidcCreateIdTokenRequest(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IdTokenRequest>>;
2128
+ /**
2129
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2130
+ * @param {string} walletId
2131
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2132
+ * @param {*} [options] Override http request option.
2133
+ * @throws {RequiredError}
2134
+ */
2135
+ oidcCredentialRequestInit(walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InteractionAuthorizationRequirements>>>;
1985
2136
  /**
1986
2137
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
1987
2138
  * @param {string} walletId
@@ -2006,6 +2157,23 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2006
2157
  * @throws {RequiredError}
2007
2158
  */
2008
2159
  oidcInitiatePreauth(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreAuthOffer>>;
2160
+ /**
2161
+ * Issue verifiable credential using OIDC4VCI offer acceptance
2162
+ * @param {string} walletId
2163
+ * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
2164
+ * @param {*} [options] Override http request option.
2165
+ * @throws {RequiredError}
2166
+ */
2167
+ oidcPassOfferAuthInfo(walletId: string, vcOffer?: VcOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InteractionAuthorizationRequirements>>;
2168
+ /**
2169
+ *
2170
+ * @param {string} walletId
2171
+ * @param {string} interactionId
2172
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2173
+ * @param {*} [options] Override http request option.
2174
+ * @throws {RequiredError}
2175
+ */
2176
+ oidcPresentCredentialsAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2009
2177
  /**
2010
2178
  * Initiates a presentation of credentials to a verifier.
2011
2179
  * @param {string} walletId
@@ -2013,7 +2181,16 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2013
2181
  * @param {*} [options] Override http request option.
2014
2182
  * @throws {RequiredError}
2015
2183
  */
2016
- oidcPresentCredentials(walletId: string, presentationRequest?: PresentationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2184
+ oidcPresentPassAuthInfo(walletId: string, presentationRequest?: PresentationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InteractionAuthorizationRequirements>>;
2185
+ /**
2186
+ * Gives consent to process credential offer specified by `interaction_id`
2187
+ * @param {string} walletId
2188
+ * @param {string} interactionId
2189
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2190
+ * @param {*} [options] Override http request option.
2191
+ * @throws {RequiredError}
2192
+ */
2193
+ oidcProcessOfferAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
2017
2194
  /**
2018
2195
  * Responds to an ID token request
2019
2196
  * @param {string} walletId
@@ -2181,14 +2358,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2181
2358
  * @throws {RequiredError}
2182
2359
  */
2183
2360
  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
2361
  /**
2193
2362
  *
2194
2363
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2275,14 +2444,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2275
2444
  * @throws {RequiredError}
2276
2445
  */
2277
2446
  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
2447
  /**
2287
2448
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
2288
2449
  * @param {string} credentialId
@@ -2299,6 +2460,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2299
2460
  * @throws {RequiredError}
2300
2461
  */
2301
2462
  oidcCreateIdTokenRequest(walletId: string, options?: any): AxiosPromise<IdTokenRequest>;
2463
+ /**
2464
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2465
+ * @param {string} walletId
2466
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2467
+ * @param {*} [options] Override http request option.
2468
+ * @throws {RequiredError}
2469
+ */
2470
+ oidcCredentialRequestInit(walletId: string, credentialRequest?: CredentialRequest, options?: any): AxiosPromise<Array<InteractionAuthorizationRequirements>>;
2302
2471
  /**
2303
2472
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
2304
2473
  * @param {string} walletId
@@ -2323,6 +2492,23 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2323
2492
  * @throws {RequiredError}
2324
2493
  */
2325
2494
  oidcInitiatePreauth(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: any): AxiosPromise<PreAuthOffer>;
2495
+ /**
2496
+ * Issue verifiable credential using OIDC4VCI offer acceptance
2497
+ * @param {string} walletId
2498
+ * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
2499
+ * @param {*} [options] Override http request option.
2500
+ * @throws {RequiredError}
2501
+ */
2502
+ oidcPassOfferAuthInfo(walletId: string, vcOffer?: VcOffer, options?: any): AxiosPromise<InteractionAuthorizationRequirements>;
2503
+ /**
2504
+ *
2505
+ * @param {string} walletId
2506
+ * @param {string} interactionId
2507
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2508
+ * @param {*} [options] Override http request option.
2509
+ * @throws {RequiredError}
2510
+ */
2511
+ oidcPresentCredentialsAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: any): AxiosPromise<void>;
2326
2512
  /**
2327
2513
  * Initiates a presentation of credentials to a verifier.
2328
2514
  * @param {string} walletId
@@ -2330,7 +2516,16 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2330
2516
  * @param {*} [options] Override http request option.
2331
2517
  * @throws {RequiredError}
2332
2518
  */
2333
- oidcPresentCredentials(walletId: string, presentationRequest?: PresentationRequest, options?: any): AxiosPromise<void>;
2519
+ oidcPresentPassAuthInfo(walletId: string, presentationRequest?: PresentationRequest, options?: any): AxiosPromise<InteractionAuthorizationRequirements>;
2520
+ /**
2521
+ * Gives consent to process credential offer specified by `interaction_id`
2522
+ * @param {string} walletId
2523
+ * @param {string} interactionId
2524
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2525
+ * @param {*} [options] Override http request option.
2526
+ * @throws {RequiredError}
2527
+ */
2528
+ oidcProcessOfferAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: any): AxiosPromise<Array<string>>;
2334
2529
  /**
2335
2530
  * Responds to an ID token request
2336
2531
  * @param {string} walletId
@@ -2508,15 +2703,6 @@ export declare class DefaultApi extends BaseAPI {
2508
2703
  * @memberof DefaultApi
2509
2704
  */
2510
2705
  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
2706
  /**
2521
2707
  *
2522
2708
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2614,15 +2800,6 @@ export declare class DefaultApi extends BaseAPI {
2614
2800
  * @memberof DefaultApi
2615
2801
  */
2616
2802
  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
2803
  /**
2627
2804
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
2628
2805
  * @param {string} credentialId
@@ -2641,6 +2818,15 @@ export declare class DefaultApi extends BaseAPI {
2641
2818
  * @memberof DefaultApi
2642
2819
  */
2643
2820
  oidcCreateIdTokenRequest(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IdTokenRequest, any>>;
2821
+ /**
2822
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2823
+ * @param {string} walletId
2824
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2825
+ * @param {*} [options] Override http request option.
2826
+ * @throws {RequiredError}
2827
+ * @memberof DefaultApi
2828
+ */
2829
+ oidcCredentialRequestInit(walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InteractionAuthorizationRequirements[], any>>;
2644
2830
  /**
2645
2831
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
2646
2832
  * @param {string} walletId
@@ -2668,6 +2854,25 @@ export declare class DefaultApi extends BaseAPI {
2668
2854
  * @memberof DefaultApi
2669
2855
  */
2670
2856
  oidcInitiatePreauth(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PreAuthOffer, any>>;
2857
+ /**
2858
+ * Issue verifiable credential using OIDC4VCI offer acceptance
2859
+ * @param {string} walletId
2860
+ * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
2861
+ * @param {*} [options] Override http request option.
2862
+ * @throws {RequiredError}
2863
+ * @memberof DefaultApi
2864
+ */
2865
+ oidcPassOfferAuthInfo(walletId: string, vcOffer?: VcOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InteractionAuthorizationRequirements, any>>;
2866
+ /**
2867
+ *
2868
+ * @param {string} walletId
2869
+ * @param {string} interactionId
2870
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2871
+ * @param {*} [options] Override http request option.
2872
+ * @throws {RequiredError}
2873
+ * @memberof DefaultApi
2874
+ */
2875
+ oidcPresentCredentialsAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2671
2876
  /**
2672
2877
  * Initiates a presentation of credentials to a verifier.
2673
2878
  * @param {string} walletId
@@ -2676,7 +2881,17 @@ export declare class DefaultApi extends BaseAPI {
2676
2881
  * @throws {RequiredError}
2677
2882
  * @memberof DefaultApi
2678
2883
  */
2679
- oidcPresentCredentials(walletId: string, presentationRequest?: PresentationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2884
+ oidcPresentPassAuthInfo(walletId: string, presentationRequest?: PresentationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InteractionAuthorizationRequirements, any>>;
2885
+ /**
2886
+ * Gives consent to process credential offer specified by `interaction_id`
2887
+ * @param {string} walletId
2888
+ * @param {string} interactionId
2889
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
2890
+ * @param {*} [options] Override http request option.
2891
+ * @throws {RequiredError}
2892
+ * @memberof DefaultApi
2893
+ */
2894
+ oidcProcessOfferAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
2680
2895
  /**
2681
2896
  * Responds to an ID token request
2682
2897
  * @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.136",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {