@triveria/wallet 0.0.120 → 0.0.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.d.ts +52 -32
- package/api.js +104 -60
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -1571,26 +1571,31 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1571
1571
|
/**
|
|
1572
1572
|
*
|
|
1573
1573
|
* @param {string} walletId
|
|
1574
|
-
* @param {string} scope
|
|
1575
1574
|
* @param {string} clientId
|
|
1576
1575
|
* @param {string} redirectUri
|
|
1577
1576
|
* @param {string} responseType
|
|
1578
1577
|
* @param {string} state
|
|
1579
|
-
* @param {string} nonce
|
|
1578
|
+
* @param {string} [nonce]
|
|
1580
1579
|
* @param {*} [options] Override http request option.
|
|
1581
1580
|
* @throws {RequiredError}
|
|
1582
1581
|
*/
|
|
1583
|
-
oauth2Auth: (walletId: string,
|
|
1582
|
+
oauth2Auth: (walletId: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1584
1583
|
/**
|
|
1585
1584
|
*
|
|
1586
|
-
* @param {string} grantType Value MUST be set to
|
|
1587
|
-
* @param {string} code The authorization code received
|
|
1588
|
-
* @param {string}
|
|
1589
|
-
* @param {string}
|
|
1585
|
+
* @param {string} grantType Value MUST be set to \"authorization_code\".
|
|
1586
|
+
* @param {string} code The authorization code received at the /auth endpoint.
|
|
1587
|
+
* @param {string} redirectUri
|
|
1588
|
+
* @param {string} clientId
|
|
1589
|
+
* @param {string} clientSecret
|
|
1590
|
+
* @param {string} grantType2 Value MUST be set to \\\"authorization_code\\\".
|
|
1591
|
+
* @param {string} code2 The authorization code received from the.
|
|
1592
|
+
* @param {string} redirectUri2 REQUIRED, if the \\\"redirect_uri\\\" parameter was included in the authorization request.
|
|
1593
|
+
* @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
1594
|
+
* @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
1590
1595
|
* @param {*} [options] Override http request option.
|
|
1591
1596
|
* @throws {RequiredError}
|
|
1592
1597
|
*/
|
|
1593
|
-
oauth2Token: (grantType: string, code: string, redirectUri
|
|
1598
|
+
oauth2Token: (grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, grantType2: string, code2: string, redirectUri2: string, clientId2: string, clientSecret2: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1594
1599
|
/**
|
|
1595
1600
|
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
1596
1601
|
* @param {string} walletId
|
|
@@ -1876,26 +1881,31 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1876
1881
|
/**
|
|
1877
1882
|
*
|
|
1878
1883
|
* @param {string} walletId
|
|
1879
|
-
* @param {string} scope
|
|
1880
1884
|
* @param {string} clientId
|
|
1881
1885
|
* @param {string} redirectUri
|
|
1882
1886
|
* @param {string} responseType
|
|
1883
1887
|
* @param {string} state
|
|
1884
|
-
* @param {string} nonce
|
|
1888
|
+
* @param {string} [nonce]
|
|
1885
1889
|
* @param {*} [options] Override http request option.
|
|
1886
1890
|
* @throws {RequiredError}
|
|
1887
1891
|
*/
|
|
1888
|
-
oauth2Auth(walletId: string,
|
|
1892
|
+
oauth2Auth(walletId: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2RedirectUriResponse>>;
|
|
1889
1893
|
/**
|
|
1890
1894
|
*
|
|
1891
|
-
* @param {string} grantType Value MUST be set to
|
|
1892
|
-
* @param {string} code The authorization code received
|
|
1893
|
-
* @param {string}
|
|
1894
|
-
* @param {string}
|
|
1895
|
+
* @param {string} grantType Value MUST be set to \"authorization_code\".
|
|
1896
|
+
* @param {string} code The authorization code received at the /auth endpoint.
|
|
1897
|
+
* @param {string} redirectUri
|
|
1898
|
+
* @param {string} clientId
|
|
1899
|
+
* @param {string} clientSecret
|
|
1900
|
+
* @param {string} grantType2 Value MUST be set to \\\"authorization_code\\\".
|
|
1901
|
+
* @param {string} code2 The authorization code received from the.
|
|
1902
|
+
* @param {string} redirectUri2 REQUIRED, if the \\\"redirect_uri\\\" parameter was included in the authorization request.
|
|
1903
|
+
* @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
1904
|
+
* @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
1895
1905
|
* @param {*} [options] Override http request option.
|
|
1896
1906
|
* @throws {RequiredError}
|
|
1897
1907
|
*/
|
|
1898
|
-
oauth2Token(grantType: string, code: string, redirectUri
|
|
1908
|
+
oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, grantType2: string, code2: string, redirectUri2: string, clientId2: string, clientSecret2: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2AccessTokenResponse>>;
|
|
1899
1909
|
/**
|
|
1900
1910
|
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
1901
1911
|
* @param {string} walletId
|
|
@@ -2181,26 +2191,31 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2181
2191
|
/**
|
|
2182
2192
|
*
|
|
2183
2193
|
* @param {string} walletId
|
|
2184
|
-
* @param {string} scope
|
|
2185
2194
|
* @param {string} clientId
|
|
2186
2195
|
* @param {string} redirectUri
|
|
2187
2196
|
* @param {string} responseType
|
|
2188
2197
|
* @param {string} state
|
|
2189
|
-
* @param {string} nonce
|
|
2198
|
+
* @param {string} [nonce]
|
|
2190
2199
|
* @param {*} [options] Override http request option.
|
|
2191
2200
|
* @throws {RequiredError}
|
|
2192
2201
|
*/
|
|
2193
|
-
oauth2Auth(walletId: string,
|
|
2202
|
+
oauth2Auth(walletId: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: any): AxiosPromise<Oauth2RedirectUriResponse>;
|
|
2194
2203
|
/**
|
|
2195
2204
|
*
|
|
2196
|
-
* @param {string} grantType Value MUST be set to
|
|
2197
|
-
* @param {string} code The authorization code received
|
|
2198
|
-
* @param {string}
|
|
2199
|
-
* @param {string}
|
|
2205
|
+
* @param {string} grantType Value MUST be set to \"authorization_code\".
|
|
2206
|
+
* @param {string} code The authorization code received at the /auth endpoint.
|
|
2207
|
+
* @param {string} redirectUri
|
|
2208
|
+
* @param {string} clientId
|
|
2209
|
+
* @param {string} clientSecret
|
|
2210
|
+
* @param {string} grantType2 Value MUST be set to \\\"authorization_code\\\".
|
|
2211
|
+
* @param {string} code2 The authorization code received from the.
|
|
2212
|
+
* @param {string} redirectUri2 REQUIRED, if the \\\"redirect_uri\\\" parameter was included in the authorization request.
|
|
2213
|
+
* @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
2214
|
+
* @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
2200
2215
|
* @param {*} [options] Override http request option.
|
|
2201
2216
|
* @throws {RequiredError}
|
|
2202
2217
|
*/
|
|
2203
|
-
oauth2Token(grantType: string, code: string, redirectUri
|
|
2218
|
+
oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, grantType2: string, code2: string, redirectUri2: string, clientId2: string, clientSecret2: string, options?: any): AxiosPromise<Oauth2AccessTokenResponse>;
|
|
2204
2219
|
/**
|
|
2205
2220
|
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
2206
2221
|
* @param {string} walletId
|
|
@@ -2504,28 +2519,33 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2504
2519
|
/**
|
|
2505
2520
|
*
|
|
2506
2521
|
* @param {string} walletId
|
|
2507
|
-
* @param {string} scope
|
|
2508
2522
|
* @param {string} clientId
|
|
2509
2523
|
* @param {string} redirectUri
|
|
2510
2524
|
* @param {string} responseType
|
|
2511
2525
|
* @param {string} state
|
|
2512
|
-
* @param {string} nonce
|
|
2526
|
+
* @param {string} [nonce]
|
|
2513
2527
|
* @param {*} [options] Override http request option.
|
|
2514
2528
|
* @throws {RequiredError}
|
|
2515
2529
|
* @memberof DefaultApi
|
|
2516
2530
|
*/
|
|
2517
|
-
oauth2Auth(walletId: string,
|
|
2531
|
+
oauth2Auth(walletId: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2RedirectUriResponse, any>>;
|
|
2518
2532
|
/**
|
|
2519
2533
|
*
|
|
2520
|
-
* @param {string} grantType Value MUST be set to
|
|
2521
|
-
* @param {string} code The authorization code received
|
|
2522
|
-
* @param {string}
|
|
2523
|
-
* @param {string}
|
|
2534
|
+
* @param {string} grantType Value MUST be set to \"authorization_code\".
|
|
2535
|
+
* @param {string} code The authorization code received at the /auth endpoint.
|
|
2536
|
+
* @param {string} redirectUri
|
|
2537
|
+
* @param {string} clientId
|
|
2538
|
+
* @param {string} clientSecret
|
|
2539
|
+
* @param {string} grantType2 Value MUST be set to \\\"authorization_code\\\".
|
|
2540
|
+
* @param {string} code2 The authorization code received from the.
|
|
2541
|
+
* @param {string} redirectUri2 REQUIRED, if the \\\"redirect_uri\\\" parameter was included in the authorization request.
|
|
2542
|
+
* @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
2543
|
+
* @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
2524
2544
|
* @param {*} [options] Override http request option.
|
|
2525
2545
|
* @throws {RequiredError}
|
|
2526
2546
|
* @memberof DefaultApi
|
|
2527
2547
|
*/
|
|
2528
|
-
oauth2Token(grantType: string, code: string, redirectUri
|
|
2548
|
+
oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, grantType2: string, code2: string, redirectUri2: string, clientId2: string, clientSecret2: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2AccessTokenResponse, any>>;
|
|
2529
2549
|
/**
|
|
2530
2550
|
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
2531
2551
|
* @param {string} walletId
|
package/api.js
CHANGED
|
@@ -666,20 +666,17 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
666
666
|
/**
|
|
667
667
|
*
|
|
668
668
|
* @param {string} walletId
|
|
669
|
-
* @param {string} scope
|
|
670
669
|
* @param {string} clientId
|
|
671
670
|
* @param {string} redirectUri
|
|
672
671
|
* @param {string} responseType
|
|
673
672
|
* @param {string} state
|
|
674
|
-
* @param {string} nonce
|
|
673
|
+
* @param {string} [nonce]
|
|
675
674
|
* @param {*} [options] Override http request option.
|
|
676
675
|
* @throws {RequiredError}
|
|
677
676
|
*/
|
|
678
|
-
oauth2Auth: (walletId,
|
|
677
|
+
oauth2Auth: (walletId, clientId, redirectUri, responseType, state, nonce, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
679
678
|
// verify required parameter 'walletId' is not null or undefined
|
|
680
679
|
(0, common_1.assertParamExists)('oauth2Auth', 'walletId', walletId);
|
|
681
|
-
// verify required parameter 'scope' is not null or undefined
|
|
682
|
-
(0, common_1.assertParamExists)('oauth2Auth', 'scope', scope);
|
|
683
680
|
// verify required parameter 'clientId' is not null or undefined
|
|
684
681
|
(0, common_1.assertParamExists)('oauth2Auth', 'clientId', clientId);
|
|
685
682
|
// verify required parameter 'redirectUri' is not null or undefined
|
|
@@ -688,8 +685,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
688
685
|
(0, common_1.assertParamExists)('oauth2Auth', 'responseType', responseType);
|
|
689
686
|
// verify required parameter 'state' is not null or undefined
|
|
690
687
|
(0, common_1.assertParamExists)('oauth2Auth', 'state', state);
|
|
691
|
-
// verify required parameter 'nonce' is not null or undefined
|
|
692
|
-
(0, common_1.assertParamExists)('oauth2Auth', 'nonce', nonce);
|
|
693
688
|
const localVarPath = `/oauth2/auth`;
|
|
694
689
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
695
690
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -700,36 +695,30 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
700
695
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
701
696
|
const localVarHeaderParameter = {};
|
|
702
697
|
const localVarQueryParameter = {};
|
|
703
|
-
const localVarFormParams = new URLSearchParams();
|
|
704
698
|
// authentication accessToken required
|
|
705
699
|
// http bearer authentication required
|
|
706
700
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
707
|
-
if (walletId != null) {
|
|
708
|
-
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
709
|
-
}
|
|
710
|
-
if (scope !== undefined) {
|
|
711
|
-
localVarFormParams.set('scope', scope);
|
|
712
|
-
}
|
|
713
701
|
if (clientId !== undefined) {
|
|
714
|
-
|
|
702
|
+
localVarQueryParameter['client_id'] = clientId;
|
|
715
703
|
}
|
|
716
704
|
if (redirectUri !== undefined) {
|
|
717
|
-
|
|
705
|
+
localVarQueryParameter['redirect_uri'] = redirectUri;
|
|
718
706
|
}
|
|
719
707
|
if (responseType !== undefined) {
|
|
720
|
-
|
|
708
|
+
localVarQueryParameter['response_type'] = responseType;
|
|
721
709
|
}
|
|
722
710
|
if (state !== undefined) {
|
|
723
|
-
|
|
711
|
+
localVarQueryParameter['state'] = state;
|
|
724
712
|
}
|
|
725
713
|
if (nonce !== undefined) {
|
|
726
|
-
|
|
714
|
+
localVarQueryParameter['nonce'] = nonce;
|
|
715
|
+
}
|
|
716
|
+
if (walletId != null) {
|
|
717
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
727
718
|
}
|
|
728
|
-
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
729
719
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
730
720
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
731
721
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
732
|
-
localVarRequestOptions.data = localVarFormParams.toString();
|
|
733
722
|
return {
|
|
734
723
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
735
724
|
options: localVarRequestOptions,
|
|
@@ -737,18 +726,40 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
737
726
|
}),
|
|
738
727
|
/**
|
|
739
728
|
*
|
|
740
|
-
* @param {string} grantType Value MUST be set to
|
|
741
|
-
* @param {string} code The authorization code received
|
|
742
|
-
* @param {string}
|
|
743
|
-
* @param {string}
|
|
729
|
+
* @param {string} grantType Value MUST be set to \"authorization_code\".
|
|
730
|
+
* @param {string} code The authorization code received at the /auth endpoint.
|
|
731
|
+
* @param {string} redirectUri
|
|
732
|
+
* @param {string} clientId
|
|
733
|
+
* @param {string} clientSecret
|
|
734
|
+
* @param {string} grantType2 Value MUST be set to \\\"authorization_code\\\".
|
|
735
|
+
* @param {string} code2 The authorization code received from the.
|
|
736
|
+
* @param {string} redirectUri2 REQUIRED, if the \\\"redirect_uri\\\" parameter was included in the authorization request.
|
|
737
|
+
* @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
738
|
+
* @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
744
739
|
* @param {*} [options] Override http request option.
|
|
745
740
|
* @throws {RequiredError}
|
|
746
741
|
*/
|
|
747
|
-
oauth2Token: (grantType, code, redirectUri, clientId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
742
|
+
oauth2Token: (grantType, code, redirectUri, clientId, clientSecret, grantType2, code2, redirectUri2, clientId2, clientSecret2, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
748
743
|
// verify required parameter 'grantType' is not null or undefined
|
|
749
744
|
(0, common_1.assertParamExists)('oauth2Token', 'grantType', grantType);
|
|
750
745
|
// verify required parameter 'code' is not null or undefined
|
|
751
746
|
(0, common_1.assertParamExists)('oauth2Token', 'code', code);
|
|
747
|
+
// verify required parameter 'redirectUri' is not null or undefined
|
|
748
|
+
(0, common_1.assertParamExists)('oauth2Token', 'redirectUri', redirectUri);
|
|
749
|
+
// verify required parameter 'clientId' is not null or undefined
|
|
750
|
+
(0, common_1.assertParamExists)('oauth2Token', 'clientId', clientId);
|
|
751
|
+
// verify required parameter 'clientSecret' is not null or undefined
|
|
752
|
+
(0, common_1.assertParamExists)('oauth2Token', 'clientSecret', clientSecret);
|
|
753
|
+
// verify required parameter 'grantType2' is not null or undefined
|
|
754
|
+
(0, common_1.assertParamExists)('oauth2Token', 'grantType2', grantType2);
|
|
755
|
+
// verify required parameter 'code2' is not null or undefined
|
|
756
|
+
(0, common_1.assertParamExists)('oauth2Token', 'code2', code2);
|
|
757
|
+
// verify required parameter 'redirectUri2' is not null or undefined
|
|
758
|
+
(0, common_1.assertParamExists)('oauth2Token', 'redirectUri2', redirectUri2);
|
|
759
|
+
// verify required parameter 'clientId2' is not null or undefined
|
|
760
|
+
(0, common_1.assertParamExists)('oauth2Token', 'clientId2', clientId2);
|
|
761
|
+
// verify required parameter 'clientSecret2' is not null or undefined
|
|
762
|
+
(0, common_1.assertParamExists)('oauth2Token', 'clientSecret2', clientSecret2);
|
|
752
763
|
const localVarPath = `/oauth2/token`;
|
|
753
764
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
754
765
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -761,16 +772,34 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
761
772
|
const localVarQueryParameter = {};
|
|
762
773
|
const localVarFormParams = new URLSearchParams();
|
|
763
774
|
if (grantType !== undefined) {
|
|
764
|
-
|
|
775
|
+
localVarQueryParameter['grant_type'] = grantType;
|
|
765
776
|
}
|
|
766
777
|
if (code !== undefined) {
|
|
767
|
-
|
|
778
|
+
localVarQueryParameter['code'] = code;
|
|
768
779
|
}
|
|
769
780
|
if (redirectUri !== undefined) {
|
|
770
|
-
|
|
781
|
+
localVarQueryParameter['redirect_uri'] = redirectUri;
|
|
771
782
|
}
|
|
772
783
|
if (clientId !== undefined) {
|
|
773
|
-
|
|
784
|
+
localVarQueryParameter['client_id'] = clientId;
|
|
785
|
+
}
|
|
786
|
+
if (clientSecret !== undefined) {
|
|
787
|
+
localVarQueryParameter['client_secret'] = clientSecret;
|
|
788
|
+
}
|
|
789
|
+
if (grantType2 !== undefined) {
|
|
790
|
+
localVarFormParams.set('grant_type', grantType2);
|
|
791
|
+
}
|
|
792
|
+
if (code2 !== undefined) {
|
|
793
|
+
localVarFormParams.set('code', code2);
|
|
794
|
+
}
|
|
795
|
+
if (redirectUri2 !== undefined) {
|
|
796
|
+
localVarFormParams.set('redirect_uri', redirectUri2);
|
|
797
|
+
}
|
|
798
|
+
if (clientId2 !== undefined) {
|
|
799
|
+
localVarFormParams.set('client_id', clientId2);
|
|
800
|
+
}
|
|
801
|
+
if (clientSecret2 !== undefined) {
|
|
802
|
+
localVarFormParams.set('client_secret', clientSecret2);
|
|
774
803
|
}
|
|
775
804
|
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
776
805
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1706,19 +1735,18 @@ const DefaultApiFp = function (configuration) {
|
|
|
1706
1735
|
/**
|
|
1707
1736
|
*
|
|
1708
1737
|
* @param {string} walletId
|
|
1709
|
-
* @param {string} scope
|
|
1710
1738
|
* @param {string} clientId
|
|
1711
1739
|
* @param {string} redirectUri
|
|
1712
1740
|
* @param {string} responseType
|
|
1713
1741
|
* @param {string} state
|
|
1714
|
-
* @param {string} nonce
|
|
1742
|
+
* @param {string} [nonce]
|
|
1715
1743
|
* @param {*} [options] Override http request option.
|
|
1716
1744
|
* @throws {RequiredError}
|
|
1717
1745
|
*/
|
|
1718
|
-
oauth2Auth(walletId,
|
|
1746
|
+
oauth2Auth(walletId, clientId, redirectUri, responseType, state, nonce, options) {
|
|
1719
1747
|
var _a, _b, _c;
|
|
1720
1748
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1721
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Auth(walletId,
|
|
1749
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Auth(walletId, clientId, redirectUri, responseType, state, nonce, options);
|
|
1722
1750
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1723
1751
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oauth2Auth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1724
1752
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1726,17 +1754,23 @@ const DefaultApiFp = function (configuration) {
|
|
|
1726
1754
|
},
|
|
1727
1755
|
/**
|
|
1728
1756
|
*
|
|
1729
|
-
* @param {string} grantType Value MUST be set to
|
|
1730
|
-
* @param {string} code The authorization code received
|
|
1731
|
-
* @param {string}
|
|
1732
|
-
* @param {string}
|
|
1757
|
+
* @param {string} grantType Value MUST be set to \"authorization_code\".
|
|
1758
|
+
* @param {string} code The authorization code received at the /auth endpoint.
|
|
1759
|
+
* @param {string} redirectUri
|
|
1760
|
+
* @param {string} clientId
|
|
1761
|
+
* @param {string} clientSecret
|
|
1762
|
+
* @param {string} grantType2 Value MUST be set to \\\"authorization_code\\\".
|
|
1763
|
+
* @param {string} code2 The authorization code received from the.
|
|
1764
|
+
* @param {string} redirectUri2 REQUIRED, if the \\\"redirect_uri\\\" parameter was included in the authorization request.
|
|
1765
|
+
* @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
1766
|
+
* @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
1733
1767
|
* @param {*} [options] Override http request option.
|
|
1734
1768
|
* @throws {RequiredError}
|
|
1735
1769
|
*/
|
|
1736
|
-
oauth2Token(grantType, code, redirectUri, clientId, options) {
|
|
1770
|
+
oauth2Token(grantType, code, redirectUri, clientId, clientSecret, grantType2, code2, redirectUri2, clientId2, clientSecret2, options) {
|
|
1737
1771
|
var _a, _b, _c;
|
|
1738
1772
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1739
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Token(grantType, code, redirectUri, clientId, options);
|
|
1773
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Token(grantType, code, redirectUri, clientId, clientSecret, grantType2, code2, redirectUri2, clientId2, clientSecret2, options);
|
|
1740
1774
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1741
1775
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oauth2Token']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1742
1776
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2215,29 +2249,34 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2215
2249
|
/**
|
|
2216
2250
|
*
|
|
2217
2251
|
* @param {string} walletId
|
|
2218
|
-
* @param {string} scope
|
|
2219
2252
|
* @param {string} clientId
|
|
2220
2253
|
* @param {string} redirectUri
|
|
2221
2254
|
* @param {string} responseType
|
|
2222
2255
|
* @param {string} state
|
|
2223
|
-
* @param {string} nonce
|
|
2256
|
+
* @param {string} [nonce]
|
|
2224
2257
|
* @param {*} [options] Override http request option.
|
|
2225
2258
|
* @throws {RequiredError}
|
|
2226
2259
|
*/
|
|
2227
|
-
oauth2Auth(walletId,
|
|
2228
|
-
return localVarFp.oauth2Auth(walletId,
|
|
2260
|
+
oauth2Auth(walletId, clientId, redirectUri, responseType, state, nonce, options) {
|
|
2261
|
+
return localVarFp.oauth2Auth(walletId, clientId, redirectUri, responseType, state, nonce, options).then((request) => request(axios, basePath));
|
|
2229
2262
|
},
|
|
2230
2263
|
/**
|
|
2231
2264
|
*
|
|
2232
|
-
* @param {string} grantType Value MUST be set to
|
|
2233
|
-
* @param {string} code The authorization code received
|
|
2234
|
-
* @param {string}
|
|
2235
|
-
* @param {string}
|
|
2265
|
+
* @param {string} grantType Value MUST be set to \"authorization_code\".
|
|
2266
|
+
* @param {string} code The authorization code received at the /auth endpoint.
|
|
2267
|
+
* @param {string} redirectUri
|
|
2268
|
+
* @param {string} clientId
|
|
2269
|
+
* @param {string} clientSecret
|
|
2270
|
+
* @param {string} grantType2 Value MUST be set to \\\"authorization_code\\\".
|
|
2271
|
+
* @param {string} code2 The authorization code received from the.
|
|
2272
|
+
* @param {string} redirectUri2 REQUIRED, if the \\\"redirect_uri\\\" parameter was included in the authorization request.
|
|
2273
|
+
* @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
2274
|
+
* @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
2236
2275
|
* @param {*} [options] Override http request option.
|
|
2237
2276
|
* @throws {RequiredError}
|
|
2238
2277
|
*/
|
|
2239
|
-
oauth2Token(grantType, code, redirectUri, clientId, options) {
|
|
2240
|
-
return localVarFp.oauth2Token(grantType, code, redirectUri, clientId, options).then((request) => request(axios, basePath));
|
|
2278
|
+
oauth2Token(grantType, code, redirectUri, clientId, clientSecret, grantType2, code2, redirectUri2, clientId2, clientSecret2, options) {
|
|
2279
|
+
return localVarFp.oauth2Token(grantType, code, redirectUri, clientId, clientSecret, grantType2, code2, redirectUri2, clientId2, clientSecret2, options).then((request) => request(axios, basePath));
|
|
2241
2280
|
},
|
|
2242
2281
|
/**
|
|
2243
2282
|
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
@@ -2614,31 +2653,36 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2614
2653
|
/**
|
|
2615
2654
|
*
|
|
2616
2655
|
* @param {string} walletId
|
|
2617
|
-
* @param {string} scope
|
|
2618
2656
|
* @param {string} clientId
|
|
2619
2657
|
* @param {string} redirectUri
|
|
2620
2658
|
* @param {string} responseType
|
|
2621
2659
|
* @param {string} state
|
|
2622
|
-
* @param {string} nonce
|
|
2660
|
+
* @param {string} [nonce]
|
|
2623
2661
|
* @param {*} [options] Override http request option.
|
|
2624
2662
|
* @throws {RequiredError}
|
|
2625
2663
|
* @memberof DefaultApi
|
|
2626
2664
|
*/
|
|
2627
|
-
oauth2Auth(walletId,
|
|
2628
|
-
return (0, exports.DefaultApiFp)(this.configuration).oauth2Auth(walletId,
|
|
2665
|
+
oauth2Auth(walletId, clientId, redirectUri, responseType, state, nonce, options) {
|
|
2666
|
+
return (0, exports.DefaultApiFp)(this.configuration).oauth2Auth(walletId, clientId, redirectUri, responseType, state, nonce, options).then((request) => request(this.axios, this.basePath));
|
|
2629
2667
|
}
|
|
2630
2668
|
/**
|
|
2631
2669
|
*
|
|
2632
|
-
* @param {string} grantType Value MUST be set to
|
|
2633
|
-
* @param {string} code The authorization code received
|
|
2634
|
-
* @param {string}
|
|
2635
|
-
* @param {string}
|
|
2670
|
+
* @param {string} grantType Value MUST be set to \"authorization_code\".
|
|
2671
|
+
* @param {string} code The authorization code received at the /auth endpoint.
|
|
2672
|
+
* @param {string} redirectUri
|
|
2673
|
+
* @param {string} clientId
|
|
2674
|
+
* @param {string} clientSecret
|
|
2675
|
+
* @param {string} grantType2 Value MUST be set to \\\"authorization_code\\\".
|
|
2676
|
+
* @param {string} code2 The authorization code received from the.
|
|
2677
|
+
* @param {string} redirectUri2 REQUIRED, if the \\\"redirect_uri\\\" parameter was included in the authorization request.
|
|
2678
|
+
* @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
2679
|
+
* @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
|
|
2636
2680
|
* @param {*} [options] Override http request option.
|
|
2637
2681
|
* @throws {RequiredError}
|
|
2638
2682
|
* @memberof DefaultApi
|
|
2639
2683
|
*/
|
|
2640
|
-
oauth2Token(grantType, code, redirectUri, clientId, options) {
|
|
2641
|
-
return (0, exports.DefaultApiFp)(this.configuration).oauth2Token(grantType, code, redirectUri, clientId, options).then((request) => request(this.axios, this.basePath));
|
|
2684
|
+
oauth2Token(grantType, code, redirectUri, clientId, clientSecret, grantType2, code2, redirectUri2, clientId2, clientSecret2, options) {
|
|
2685
|
+
return (0, exports.DefaultApiFp)(this.configuration).oauth2Token(grantType, code, redirectUri, clientId, clientSecret, grantType2, code2, redirectUri2, clientId2, clientSecret2, options).then((request) => request(this.axios, this.basePath));
|
|
2642
2686
|
}
|
|
2643
2687
|
/**
|
|
2644
2688
|
* Issue verifiable credential using OIDC4VCI offer acceptance
|