@triveria/wallet 0.0.156 → 0.0.157
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 +148 -4
- package/api.js +326 -11
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -1753,16 +1753,35 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1753
1753
|
issuerCredentialTypesList: (url: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1754
1754
|
/**
|
|
1755
1755
|
*
|
|
1756
|
+
* @param {string} clientId
|
|
1757
|
+
* @param {string} redirectUri
|
|
1758
|
+
* @param {string} responseType
|
|
1759
|
+
* @param {string} state
|
|
1756
1760
|
* @param {string} verifierState
|
|
1761
|
+
* @param {string} [nonce]
|
|
1762
|
+
* @param {*} [options] Override http request option.
|
|
1763
|
+
* @throws {RequiredError}
|
|
1764
|
+
*/
|
|
1765
|
+
oauth2Auth: (clientId: string, redirectUri: string, responseType: string, state: string, verifierState: string, nonce?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1766
|
+
/**
|
|
1767
|
+
*
|
|
1757
1768
|
* @param {string} clientId
|
|
1758
1769
|
* @param {string} redirectUri
|
|
1759
1770
|
* @param {string} responseType
|
|
1760
1771
|
* @param {string} state
|
|
1772
|
+
* @param {string} scope
|
|
1761
1773
|
* @param {string} [nonce]
|
|
1762
1774
|
* @param {*} [options] Override http request option.
|
|
1763
1775
|
* @throws {RequiredError}
|
|
1764
1776
|
*/
|
|
1765
|
-
|
|
1777
|
+
oauth2AuthGet: (clientId: string, redirectUri: string, responseType: string, state: string, scope: string, nonce?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1778
|
+
/**
|
|
1779
|
+
*
|
|
1780
|
+
* @param {string} code
|
|
1781
|
+
* @param {*} [options] Override http request option.
|
|
1782
|
+
* @throws {RequiredError}
|
|
1783
|
+
*/
|
|
1784
|
+
oauth2Callback: (code: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1766
1785
|
/**
|
|
1767
1786
|
*
|
|
1768
1787
|
* @param {*} [options] Override http request option.
|
|
@@ -1968,6 +1987,22 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1968
1987
|
* @throws {RequiredError}
|
|
1969
1988
|
*/
|
|
1970
1989
|
walletPatch: (walletId: string, wallet?: Wallet, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1990
|
+
/**
|
|
1991
|
+
* Gets a specific verified profile (claims) by state
|
|
1992
|
+
* @param {string} walletId Wallet ID
|
|
1993
|
+
* @param {string} state Verifier state
|
|
1994
|
+
* @param {*} [options] Override http request option.
|
|
1995
|
+
* @throws {RequiredError}
|
|
1996
|
+
*/
|
|
1997
|
+
walletVerifiedProfileByState: (walletId: string, state: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1998
|
+
/**
|
|
1999
|
+
* Deletes a specific verified profile (claims) by state
|
|
2000
|
+
* @param {string} walletId Wallet ID
|
|
2001
|
+
* @param {string} state Verifier state
|
|
2002
|
+
* @param {*} [options] Override http request option.
|
|
2003
|
+
* @throws {RequiredError}
|
|
2004
|
+
*/
|
|
2005
|
+
walletVerifiedProfileDeleteByState: (walletId: string, state: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1971
2006
|
};
|
|
1972
2007
|
/**
|
|
1973
2008
|
* DefaultApi - functional programming interface
|
|
@@ -2098,16 +2133,35 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2098
2133
|
issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CredentialType>>>;
|
|
2099
2134
|
/**
|
|
2100
2135
|
*
|
|
2136
|
+
* @param {string} clientId
|
|
2137
|
+
* @param {string} redirectUri
|
|
2138
|
+
* @param {string} responseType
|
|
2139
|
+
* @param {string} state
|
|
2101
2140
|
* @param {string} verifierState
|
|
2141
|
+
* @param {string} [nonce]
|
|
2142
|
+
* @param {*} [options] Override http request option.
|
|
2143
|
+
* @throws {RequiredError}
|
|
2144
|
+
*/
|
|
2145
|
+
oauth2Auth(clientId: string, redirectUri: string, responseType: string, state: string, verifierState: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2RedirectUri>>;
|
|
2146
|
+
/**
|
|
2147
|
+
*
|
|
2102
2148
|
* @param {string} clientId
|
|
2103
2149
|
* @param {string} redirectUri
|
|
2104
2150
|
* @param {string} responseType
|
|
2105
2151
|
* @param {string} state
|
|
2152
|
+
* @param {string} scope
|
|
2106
2153
|
* @param {string} [nonce]
|
|
2107
2154
|
* @param {*} [options] Override http request option.
|
|
2108
2155
|
* @throws {RequiredError}
|
|
2109
2156
|
*/
|
|
2110
|
-
|
|
2157
|
+
oauth2AuthGet(clientId: string, redirectUri: string, responseType: string, state: string, scope: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2158
|
+
/**
|
|
2159
|
+
*
|
|
2160
|
+
* @param {string} code
|
|
2161
|
+
* @param {*} [options] Override http request option.
|
|
2162
|
+
* @throws {RequiredError}
|
|
2163
|
+
*/
|
|
2164
|
+
oauth2Callback(code: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2111
2165
|
/**
|
|
2112
2166
|
*
|
|
2113
2167
|
* @param {*} [options] Override http request option.
|
|
@@ -2313,6 +2367,22 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2313
2367
|
* @throws {RequiredError}
|
|
2314
2368
|
*/
|
|
2315
2369
|
walletPatch(walletId: string, wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdObject>>;
|
|
2370
|
+
/**
|
|
2371
|
+
* Gets a specific verified profile (claims) by state
|
|
2372
|
+
* @param {string} walletId Wallet ID
|
|
2373
|
+
* @param {string} state Verifier state
|
|
2374
|
+
* @param {*} [options] Override http request option.
|
|
2375
|
+
* @throws {RequiredError}
|
|
2376
|
+
*/
|
|
2377
|
+
walletVerifiedProfileByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Credential>>>;
|
|
2378
|
+
/**
|
|
2379
|
+
* Deletes a specific verified profile (claims) by state
|
|
2380
|
+
* @param {string} walletId Wallet ID
|
|
2381
|
+
* @param {string} state Verifier state
|
|
2382
|
+
* @param {*} [options] Override http request option.
|
|
2383
|
+
* @throws {RequiredError}
|
|
2384
|
+
*/
|
|
2385
|
+
walletVerifiedProfileDeleteByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2316
2386
|
};
|
|
2317
2387
|
/**
|
|
2318
2388
|
* DefaultApi - factory interface
|
|
@@ -2443,16 +2513,35 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2443
2513
|
issuerCredentialTypesList(url: string, options?: any): AxiosPromise<Array<CredentialType>>;
|
|
2444
2514
|
/**
|
|
2445
2515
|
*
|
|
2516
|
+
* @param {string} clientId
|
|
2517
|
+
* @param {string} redirectUri
|
|
2518
|
+
* @param {string} responseType
|
|
2519
|
+
* @param {string} state
|
|
2446
2520
|
* @param {string} verifierState
|
|
2521
|
+
* @param {string} [nonce]
|
|
2522
|
+
* @param {*} [options] Override http request option.
|
|
2523
|
+
* @throws {RequiredError}
|
|
2524
|
+
*/
|
|
2525
|
+
oauth2Auth(clientId: string, redirectUri: string, responseType: string, state: string, verifierState: string, nonce?: string, options?: any): AxiosPromise<Oauth2RedirectUri>;
|
|
2526
|
+
/**
|
|
2527
|
+
*
|
|
2447
2528
|
* @param {string} clientId
|
|
2448
2529
|
* @param {string} redirectUri
|
|
2449
2530
|
* @param {string} responseType
|
|
2450
2531
|
* @param {string} state
|
|
2532
|
+
* @param {string} scope
|
|
2451
2533
|
* @param {string} [nonce]
|
|
2452
2534
|
* @param {*} [options] Override http request option.
|
|
2453
2535
|
* @throws {RequiredError}
|
|
2454
2536
|
*/
|
|
2455
|
-
|
|
2537
|
+
oauth2AuthGet(clientId: string, redirectUri: string, responseType: string, state: string, scope: string, nonce?: string, options?: any): AxiosPromise<void>;
|
|
2538
|
+
/**
|
|
2539
|
+
*
|
|
2540
|
+
* @param {string} code
|
|
2541
|
+
* @param {*} [options] Override http request option.
|
|
2542
|
+
* @throws {RequiredError}
|
|
2543
|
+
*/
|
|
2544
|
+
oauth2Callback(code: string, options?: any): AxiosPromise<void>;
|
|
2456
2545
|
/**
|
|
2457
2546
|
*
|
|
2458
2547
|
* @param {*} [options] Override http request option.
|
|
@@ -2658,6 +2747,22 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2658
2747
|
* @throws {RequiredError}
|
|
2659
2748
|
*/
|
|
2660
2749
|
walletPatch(walletId: string, wallet?: Wallet, options?: any): AxiosPromise<WalletIdObject>;
|
|
2750
|
+
/**
|
|
2751
|
+
* Gets a specific verified profile (claims) by state
|
|
2752
|
+
* @param {string} walletId Wallet ID
|
|
2753
|
+
* @param {string} state Verifier state
|
|
2754
|
+
* @param {*} [options] Override http request option.
|
|
2755
|
+
* @throws {RequiredError}
|
|
2756
|
+
*/
|
|
2757
|
+
walletVerifiedProfileByState(walletId: string, state: string, options?: any): AxiosPromise<Array<Credential>>;
|
|
2758
|
+
/**
|
|
2759
|
+
* Deletes a specific verified profile (claims) by state
|
|
2760
|
+
* @param {string} walletId Wallet ID
|
|
2761
|
+
* @param {string} state Verifier state
|
|
2762
|
+
* @param {*} [options] Override http request option.
|
|
2763
|
+
* @throws {RequiredError}
|
|
2764
|
+
*/
|
|
2765
|
+
walletVerifiedProfileDeleteByState(walletId: string, state: string, options?: any): AxiosPromise<void>;
|
|
2661
2766
|
};
|
|
2662
2767
|
/**
|
|
2663
2768
|
* DefaultApi - object-oriented interface
|
|
@@ -2805,17 +2910,38 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2805
2910
|
issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialType[], any>>;
|
|
2806
2911
|
/**
|
|
2807
2912
|
*
|
|
2913
|
+
* @param {string} clientId
|
|
2914
|
+
* @param {string} redirectUri
|
|
2915
|
+
* @param {string} responseType
|
|
2916
|
+
* @param {string} state
|
|
2808
2917
|
* @param {string} verifierState
|
|
2918
|
+
* @param {string} [nonce]
|
|
2919
|
+
* @param {*} [options] Override http request option.
|
|
2920
|
+
* @throws {RequiredError}
|
|
2921
|
+
* @memberof DefaultApi
|
|
2922
|
+
*/
|
|
2923
|
+
oauth2Auth(clientId: string, redirectUri: string, responseType: string, state: string, verifierState: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2RedirectUri, any>>;
|
|
2924
|
+
/**
|
|
2925
|
+
*
|
|
2809
2926
|
* @param {string} clientId
|
|
2810
2927
|
* @param {string} redirectUri
|
|
2811
2928
|
* @param {string} responseType
|
|
2812
2929
|
* @param {string} state
|
|
2930
|
+
* @param {string} scope
|
|
2813
2931
|
* @param {string} [nonce]
|
|
2814
2932
|
* @param {*} [options] Override http request option.
|
|
2815
2933
|
* @throws {RequiredError}
|
|
2816
2934
|
* @memberof DefaultApi
|
|
2817
2935
|
*/
|
|
2818
|
-
|
|
2936
|
+
oauth2AuthGet(clientId: string, redirectUri: string, responseType: string, state: string, scope: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2937
|
+
/**
|
|
2938
|
+
*
|
|
2939
|
+
* @param {string} code
|
|
2940
|
+
* @param {*} [options] Override http request option.
|
|
2941
|
+
* @throws {RequiredError}
|
|
2942
|
+
* @memberof DefaultApi
|
|
2943
|
+
*/
|
|
2944
|
+
oauth2Callback(code: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2819
2945
|
/**
|
|
2820
2946
|
*
|
|
2821
2947
|
* @param {*} [options] Override http request option.
|
|
@@ -3047,6 +3173,24 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3047
3173
|
* @memberof DefaultApi
|
|
3048
3174
|
*/
|
|
3049
3175
|
walletPatch(walletId: string, wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdObject, any>>;
|
|
3176
|
+
/**
|
|
3177
|
+
* Gets a specific verified profile (claims) by state
|
|
3178
|
+
* @param {string} walletId Wallet ID
|
|
3179
|
+
* @param {string} state Verifier state
|
|
3180
|
+
* @param {*} [options] Override http request option.
|
|
3181
|
+
* @throws {RequiredError}
|
|
3182
|
+
* @memberof DefaultApi
|
|
3183
|
+
*/
|
|
3184
|
+
walletVerifiedProfileByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Credential[], any>>;
|
|
3185
|
+
/**
|
|
3186
|
+
* Deletes a specific verified profile (claims) by state
|
|
3187
|
+
* @param {string} walletId Wallet ID
|
|
3188
|
+
* @param {string} state Verifier state
|
|
3189
|
+
* @param {*} [options] Override http request option.
|
|
3190
|
+
* @throws {RequiredError}
|
|
3191
|
+
* @memberof DefaultApi
|
|
3192
|
+
*/
|
|
3193
|
+
walletVerifiedProfileDeleteByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3050
3194
|
}
|
|
3051
3195
|
/**
|
|
3052
3196
|
* @export
|
package/api.js
CHANGED
|
@@ -655,18 +655,16 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
655
655
|
}),
|
|
656
656
|
/**
|
|
657
657
|
*
|
|
658
|
-
* @param {string} verifierState
|
|
659
658
|
* @param {string} clientId
|
|
660
659
|
* @param {string} redirectUri
|
|
661
660
|
* @param {string} responseType
|
|
662
661
|
* @param {string} state
|
|
662
|
+
* @param {string} verifierState
|
|
663
663
|
* @param {string} [nonce]
|
|
664
664
|
* @param {*} [options] Override http request option.
|
|
665
665
|
* @throws {RequiredError}
|
|
666
666
|
*/
|
|
667
|
-
oauth2Auth: (
|
|
668
|
-
// verify required parameter 'verifierState' is not null or undefined
|
|
669
|
-
(0, common_1.assertParamExists)('oauth2Auth', 'verifierState', verifierState);
|
|
667
|
+
oauth2Auth: (clientId, redirectUri, responseType, state, verifierState, nonce, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
670
668
|
// verify required parameter 'clientId' is not null or undefined
|
|
671
669
|
(0, common_1.assertParamExists)('oauth2Auth', 'clientId', clientId);
|
|
672
670
|
// verify required parameter 'redirectUri' is not null or undefined
|
|
@@ -675,6 +673,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
675
673
|
(0, common_1.assertParamExists)('oauth2Auth', 'responseType', responseType);
|
|
676
674
|
// verify required parameter 'state' is not null or undefined
|
|
677
675
|
(0, common_1.assertParamExists)('oauth2Auth', 'state', state);
|
|
676
|
+
// verify required parameter 'verifierState' is not null or undefined
|
|
677
|
+
(0, common_1.assertParamExists)('oauth2Auth', 'verifierState', verifierState);
|
|
678
678
|
const localVarPath = `/oauth2/auth`;
|
|
679
679
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
680
680
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -711,6 +711,94 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
711
711
|
options: localVarRequestOptions,
|
|
712
712
|
};
|
|
713
713
|
}),
|
|
714
|
+
/**
|
|
715
|
+
*
|
|
716
|
+
* @param {string} clientId
|
|
717
|
+
* @param {string} redirectUri
|
|
718
|
+
* @param {string} responseType
|
|
719
|
+
* @param {string} state
|
|
720
|
+
* @param {string} scope
|
|
721
|
+
* @param {string} [nonce]
|
|
722
|
+
* @param {*} [options] Override http request option.
|
|
723
|
+
* @throws {RequiredError}
|
|
724
|
+
*/
|
|
725
|
+
oauth2AuthGet: (clientId, redirectUri, responseType, state, scope, nonce, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
726
|
+
// verify required parameter 'clientId' is not null or undefined
|
|
727
|
+
(0, common_1.assertParamExists)('oauth2AuthGet', 'clientId', clientId);
|
|
728
|
+
// verify required parameter 'redirectUri' is not null or undefined
|
|
729
|
+
(0, common_1.assertParamExists)('oauth2AuthGet', 'redirectUri', redirectUri);
|
|
730
|
+
// verify required parameter 'responseType' is not null or undefined
|
|
731
|
+
(0, common_1.assertParamExists)('oauth2AuthGet', 'responseType', responseType);
|
|
732
|
+
// verify required parameter 'state' is not null or undefined
|
|
733
|
+
(0, common_1.assertParamExists)('oauth2AuthGet', 'state', state);
|
|
734
|
+
// verify required parameter 'scope' is not null or undefined
|
|
735
|
+
(0, common_1.assertParamExists)('oauth2AuthGet', 'scope', scope);
|
|
736
|
+
const localVarPath = `/oauth2/auth`;
|
|
737
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
738
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
739
|
+
let baseOptions;
|
|
740
|
+
if (configuration) {
|
|
741
|
+
baseOptions = configuration.baseOptions;
|
|
742
|
+
}
|
|
743
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
744
|
+
const localVarHeaderParameter = {};
|
|
745
|
+
const localVarQueryParameter = {};
|
|
746
|
+
if (clientId !== undefined) {
|
|
747
|
+
localVarQueryParameter['client_id'] = clientId;
|
|
748
|
+
}
|
|
749
|
+
if (redirectUri !== undefined) {
|
|
750
|
+
localVarQueryParameter['redirect_uri'] = redirectUri;
|
|
751
|
+
}
|
|
752
|
+
if (responseType !== undefined) {
|
|
753
|
+
localVarQueryParameter['response_type'] = responseType;
|
|
754
|
+
}
|
|
755
|
+
if (state !== undefined) {
|
|
756
|
+
localVarQueryParameter['state'] = state;
|
|
757
|
+
}
|
|
758
|
+
if (nonce !== undefined) {
|
|
759
|
+
localVarQueryParameter['nonce'] = nonce;
|
|
760
|
+
}
|
|
761
|
+
if (scope !== undefined) {
|
|
762
|
+
localVarQueryParameter['scope'] = scope;
|
|
763
|
+
}
|
|
764
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
765
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
766
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
767
|
+
return {
|
|
768
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
769
|
+
options: localVarRequestOptions,
|
|
770
|
+
};
|
|
771
|
+
}),
|
|
772
|
+
/**
|
|
773
|
+
*
|
|
774
|
+
* @param {string} code
|
|
775
|
+
* @param {*} [options] Override http request option.
|
|
776
|
+
* @throws {RequiredError}
|
|
777
|
+
*/
|
|
778
|
+
oauth2Callback: (code, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
779
|
+
// verify required parameter 'code' is not null or undefined
|
|
780
|
+
(0, common_1.assertParamExists)('oauth2Callback', 'code', code);
|
|
781
|
+
const localVarPath = `/oauth2/callback`;
|
|
782
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
783
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
784
|
+
let baseOptions;
|
|
785
|
+
if (configuration) {
|
|
786
|
+
baseOptions = configuration.baseOptions;
|
|
787
|
+
}
|
|
788
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
789
|
+
const localVarHeaderParameter = {};
|
|
790
|
+
const localVarQueryParameter = {};
|
|
791
|
+
if (code !== undefined) {
|
|
792
|
+
localVarQueryParameter['code'] = code;
|
|
793
|
+
}
|
|
794
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
795
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
796
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
797
|
+
return {
|
|
798
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
799
|
+
options: localVarRequestOptions,
|
|
800
|
+
};
|
|
801
|
+
}),
|
|
714
802
|
/**
|
|
715
803
|
*
|
|
716
804
|
* @param {*} [options] Override http request option.
|
|
@@ -1619,6 +1707,76 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1619
1707
|
options: localVarRequestOptions,
|
|
1620
1708
|
};
|
|
1621
1709
|
}),
|
|
1710
|
+
/**
|
|
1711
|
+
* Gets a specific verified profile (claims) by state
|
|
1712
|
+
* @param {string} walletId Wallet ID
|
|
1713
|
+
* @param {string} state Verifier state
|
|
1714
|
+
* @param {*} [options] Override http request option.
|
|
1715
|
+
* @throws {RequiredError}
|
|
1716
|
+
*/
|
|
1717
|
+
walletVerifiedProfileByState: (walletId, state, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1718
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
1719
|
+
(0, common_1.assertParamExists)('walletVerifiedProfileByState', 'walletId', walletId);
|
|
1720
|
+
// verify required parameter 'state' is not null or undefined
|
|
1721
|
+
(0, common_1.assertParamExists)('walletVerifiedProfileByState', 'state', state);
|
|
1722
|
+
const localVarPath = `/wallets/{wallet_id}/profile/{state}`
|
|
1723
|
+
.replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)))
|
|
1724
|
+
.replace(`{${"state"}}`, encodeURIComponent(String(state)));
|
|
1725
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1726
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1727
|
+
let baseOptions;
|
|
1728
|
+
if (configuration) {
|
|
1729
|
+
baseOptions = configuration.baseOptions;
|
|
1730
|
+
}
|
|
1731
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1732
|
+
const localVarHeaderParameter = {};
|
|
1733
|
+
const localVarQueryParameter = {};
|
|
1734
|
+
// authentication accessToken required
|
|
1735
|
+
// http bearer authentication required
|
|
1736
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1737
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1738
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1739
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1740
|
+
return {
|
|
1741
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1742
|
+
options: localVarRequestOptions,
|
|
1743
|
+
};
|
|
1744
|
+
}),
|
|
1745
|
+
/**
|
|
1746
|
+
* Deletes a specific verified profile (claims) by state
|
|
1747
|
+
* @param {string} walletId Wallet ID
|
|
1748
|
+
* @param {string} state Verifier state
|
|
1749
|
+
* @param {*} [options] Override http request option.
|
|
1750
|
+
* @throws {RequiredError}
|
|
1751
|
+
*/
|
|
1752
|
+
walletVerifiedProfileDeleteByState: (walletId, state, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1753
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
1754
|
+
(0, common_1.assertParamExists)('walletVerifiedProfileDeleteByState', 'walletId', walletId);
|
|
1755
|
+
// verify required parameter 'state' is not null or undefined
|
|
1756
|
+
(0, common_1.assertParamExists)('walletVerifiedProfileDeleteByState', 'state', state);
|
|
1757
|
+
const localVarPath = `/wallets/{wallet_id}/profile/{state}`
|
|
1758
|
+
.replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)))
|
|
1759
|
+
.replace(`{${"state"}}`, encodeURIComponent(String(state)));
|
|
1760
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1761
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1762
|
+
let baseOptions;
|
|
1763
|
+
if (configuration) {
|
|
1764
|
+
baseOptions = configuration.baseOptions;
|
|
1765
|
+
}
|
|
1766
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1767
|
+
const localVarHeaderParameter = {};
|
|
1768
|
+
const localVarQueryParameter = {};
|
|
1769
|
+
// authentication accessToken required
|
|
1770
|
+
// http bearer authentication required
|
|
1771
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1772
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1773
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1774
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1775
|
+
return {
|
|
1776
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1777
|
+
options: localVarRequestOptions,
|
|
1778
|
+
};
|
|
1779
|
+
}),
|
|
1622
1780
|
};
|
|
1623
1781
|
};
|
|
1624
1782
|
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
@@ -1873,24 +2031,59 @@ const DefaultApiFp = function (configuration) {
|
|
|
1873
2031
|
},
|
|
1874
2032
|
/**
|
|
1875
2033
|
*
|
|
1876
|
-
* @param {string} verifierState
|
|
1877
2034
|
* @param {string} clientId
|
|
1878
2035
|
* @param {string} redirectUri
|
|
1879
2036
|
* @param {string} responseType
|
|
1880
2037
|
* @param {string} state
|
|
2038
|
+
* @param {string} verifierState
|
|
1881
2039
|
* @param {string} [nonce]
|
|
1882
2040
|
* @param {*} [options] Override http request option.
|
|
1883
2041
|
* @throws {RequiredError}
|
|
1884
2042
|
*/
|
|
1885
|
-
oauth2Auth(
|
|
2043
|
+
oauth2Auth(clientId, redirectUri, responseType, state, verifierState, nonce, options) {
|
|
1886
2044
|
var _a, _b, _c;
|
|
1887
2045
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1888
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Auth(
|
|
2046
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Auth(clientId, redirectUri, responseType, state, verifierState, nonce, options);
|
|
1889
2047
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1890
2048
|
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;
|
|
1891
2049
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1892
2050
|
});
|
|
1893
2051
|
},
|
|
2052
|
+
/**
|
|
2053
|
+
*
|
|
2054
|
+
* @param {string} clientId
|
|
2055
|
+
* @param {string} redirectUri
|
|
2056
|
+
* @param {string} responseType
|
|
2057
|
+
* @param {string} state
|
|
2058
|
+
* @param {string} scope
|
|
2059
|
+
* @param {string} [nonce]
|
|
2060
|
+
* @param {*} [options] Override http request option.
|
|
2061
|
+
* @throws {RequiredError}
|
|
2062
|
+
*/
|
|
2063
|
+
oauth2AuthGet(clientId, redirectUri, responseType, state, scope, nonce, options) {
|
|
2064
|
+
var _a, _b, _c;
|
|
2065
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2066
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2AuthGet(clientId, redirectUri, responseType, state, scope, nonce, options);
|
|
2067
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2068
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oauth2AuthGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2069
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2070
|
+
});
|
|
2071
|
+
},
|
|
2072
|
+
/**
|
|
2073
|
+
*
|
|
2074
|
+
* @param {string} code
|
|
2075
|
+
* @param {*} [options] Override http request option.
|
|
2076
|
+
* @throws {RequiredError}
|
|
2077
|
+
*/
|
|
2078
|
+
oauth2Callback(code, options) {
|
|
2079
|
+
var _a, _b, _c;
|
|
2080
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2081
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Callback(code, options);
|
|
2082
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2083
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oauth2Callback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2084
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2085
|
+
});
|
|
2086
|
+
},
|
|
1894
2087
|
/**
|
|
1895
2088
|
*
|
|
1896
2089
|
* @param {*} [options] Override http request option.
|
|
@@ -2304,6 +2497,38 @@ const DefaultApiFp = function (configuration) {
|
|
|
2304
2497
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2305
2498
|
});
|
|
2306
2499
|
},
|
|
2500
|
+
/**
|
|
2501
|
+
* Gets a specific verified profile (claims) by state
|
|
2502
|
+
* @param {string} walletId Wallet ID
|
|
2503
|
+
* @param {string} state Verifier state
|
|
2504
|
+
* @param {*} [options] Override http request option.
|
|
2505
|
+
* @throws {RequiredError}
|
|
2506
|
+
*/
|
|
2507
|
+
walletVerifiedProfileByState(walletId, state, options) {
|
|
2508
|
+
var _a, _b, _c;
|
|
2509
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2510
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletVerifiedProfileByState(walletId, state, options);
|
|
2511
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2512
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletVerifiedProfileByState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2513
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2514
|
+
});
|
|
2515
|
+
},
|
|
2516
|
+
/**
|
|
2517
|
+
* Deletes a specific verified profile (claims) by state
|
|
2518
|
+
* @param {string} walletId Wallet ID
|
|
2519
|
+
* @param {string} state Verifier state
|
|
2520
|
+
* @param {*} [options] Override http request option.
|
|
2521
|
+
* @throws {RequiredError}
|
|
2522
|
+
*/
|
|
2523
|
+
walletVerifiedProfileDeleteByState(walletId, state, options) {
|
|
2524
|
+
var _a, _b, _c;
|
|
2525
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2526
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletVerifiedProfileDeleteByState(walletId, state, options);
|
|
2527
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2528
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletVerifiedProfileDeleteByState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2529
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2530
|
+
});
|
|
2531
|
+
},
|
|
2307
2532
|
};
|
|
2308
2533
|
};
|
|
2309
2534
|
exports.DefaultApiFp = DefaultApiFp;
|
|
@@ -2468,17 +2693,40 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2468
2693
|
},
|
|
2469
2694
|
/**
|
|
2470
2695
|
*
|
|
2696
|
+
* @param {string} clientId
|
|
2697
|
+
* @param {string} redirectUri
|
|
2698
|
+
* @param {string} responseType
|
|
2699
|
+
* @param {string} state
|
|
2471
2700
|
* @param {string} verifierState
|
|
2701
|
+
* @param {string} [nonce]
|
|
2702
|
+
* @param {*} [options] Override http request option.
|
|
2703
|
+
* @throws {RequiredError}
|
|
2704
|
+
*/
|
|
2705
|
+
oauth2Auth(clientId, redirectUri, responseType, state, verifierState, nonce, options) {
|
|
2706
|
+
return localVarFp.oauth2Auth(clientId, redirectUri, responseType, state, verifierState, nonce, options).then((request) => request(axios, basePath));
|
|
2707
|
+
},
|
|
2708
|
+
/**
|
|
2709
|
+
*
|
|
2472
2710
|
* @param {string} clientId
|
|
2473
2711
|
* @param {string} redirectUri
|
|
2474
2712
|
* @param {string} responseType
|
|
2475
2713
|
* @param {string} state
|
|
2714
|
+
* @param {string} scope
|
|
2476
2715
|
* @param {string} [nonce]
|
|
2477
2716
|
* @param {*} [options] Override http request option.
|
|
2478
2717
|
* @throws {RequiredError}
|
|
2479
2718
|
*/
|
|
2480
|
-
|
|
2481
|
-
return localVarFp.
|
|
2719
|
+
oauth2AuthGet(clientId, redirectUri, responseType, state, scope, nonce, options) {
|
|
2720
|
+
return localVarFp.oauth2AuthGet(clientId, redirectUri, responseType, state, scope, nonce, options).then((request) => request(axios, basePath));
|
|
2721
|
+
},
|
|
2722
|
+
/**
|
|
2723
|
+
*
|
|
2724
|
+
* @param {string} code
|
|
2725
|
+
* @param {*} [options] Override http request option.
|
|
2726
|
+
* @throws {RequiredError}
|
|
2727
|
+
*/
|
|
2728
|
+
oauth2Callback(code, options) {
|
|
2729
|
+
return localVarFp.oauth2Callback(code, options).then((request) => request(axios, basePath));
|
|
2482
2730
|
},
|
|
2483
2731
|
/**
|
|
2484
2732
|
*
|
|
@@ -2737,6 +2985,26 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2737
2985
|
walletPatch(walletId, wallet, options) {
|
|
2738
2986
|
return localVarFp.walletPatch(walletId, wallet, options).then((request) => request(axios, basePath));
|
|
2739
2987
|
},
|
|
2988
|
+
/**
|
|
2989
|
+
* Gets a specific verified profile (claims) by state
|
|
2990
|
+
* @param {string} walletId Wallet ID
|
|
2991
|
+
* @param {string} state Verifier state
|
|
2992
|
+
* @param {*} [options] Override http request option.
|
|
2993
|
+
* @throws {RequiredError}
|
|
2994
|
+
*/
|
|
2995
|
+
walletVerifiedProfileByState(walletId, state, options) {
|
|
2996
|
+
return localVarFp.walletVerifiedProfileByState(walletId, state, options).then((request) => request(axios, basePath));
|
|
2997
|
+
},
|
|
2998
|
+
/**
|
|
2999
|
+
* Deletes a specific verified profile (claims) by state
|
|
3000
|
+
* @param {string} walletId Wallet ID
|
|
3001
|
+
* @param {string} state Verifier state
|
|
3002
|
+
* @param {*} [options] Override http request option.
|
|
3003
|
+
* @throws {RequiredError}
|
|
3004
|
+
*/
|
|
3005
|
+
walletVerifiedProfileDeleteByState(walletId, state, options) {
|
|
3006
|
+
return localVarFp.walletVerifiedProfileDeleteByState(walletId, state, options).then((request) => request(axios, basePath));
|
|
3007
|
+
},
|
|
2740
3008
|
};
|
|
2741
3009
|
};
|
|
2742
3010
|
exports.DefaultApiFactory = DefaultApiFactory;
|
|
@@ -2916,18 +3184,43 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2916
3184
|
}
|
|
2917
3185
|
/**
|
|
2918
3186
|
*
|
|
3187
|
+
* @param {string} clientId
|
|
3188
|
+
* @param {string} redirectUri
|
|
3189
|
+
* @param {string} responseType
|
|
3190
|
+
* @param {string} state
|
|
2919
3191
|
* @param {string} verifierState
|
|
3192
|
+
* @param {string} [nonce]
|
|
3193
|
+
* @param {*} [options] Override http request option.
|
|
3194
|
+
* @throws {RequiredError}
|
|
3195
|
+
* @memberof DefaultApi
|
|
3196
|
+
*/
|
|
3197
|
+
oauth2Auth(clientId, redirectUri, responseType, state, verifierState, nonce, options) {
|
|
3198
|
+
return (0, exports.DefaultApiFp)(this.configuration).oauth2Auth(clientId, redirectUri, responseType, state, verifierState, nonce, options).then((request) => request(this.axios, this.basePath));
|
|
3199
|
+
}
|
|
3200
|
+
/**
|
|
3201
|
+
*
|
|
2920
3202
|
* @param {string} clientId
|
|
2921
3203
|
* @param {string} redirectUri
|
|
2922
3204
|
* @param {string} responseType
|
|
2923
3205
|
* @param {string} state
|
|
3206
|
+
* @param {string} scope
|
|
2924
3207
|
* @param {string} [nonce]
|
|
2925
3208
|
* @param {*} [options] Override http request option.
|
|
2926
3209
|
* @throws {RequiredError}
|
|
2927
3210
|
* @memberof DefaultApi
|
|
2928
3211
|
*/
|
|
2929
|
-
|
|
2930
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
3212
|
+
oauth2AuthGet(clientId, redirectUri, responseType, state, scope, nonce, options) {
|
|
3213
|
+
return (0, exports.DefaultApiFp)(this.configuration).oauth2AuthGet(clientId, redirectUri, responseType, state, scope, nonce, options).then((request) => request(this.axios, this.basePath));
|
|
3214
|
+
}
|
|
3215
|
+
/**
|
|
3216
|
+
*
|
|
3217
|
+
* @param {string} code
|
|
3218
|
+
* @param {*} [options] Override http request option.
|
|
3219
|
+
* @throws {RequiredError}
|
|
3220
|
+
* @memberof DefaultApi
|
|
3221
|
+
*/
|
|
3222
|
+
oauth2Callback(code, options) {
|
|
3223
|
+
return (0, exports.DefaultApiFp)(this.configuration).oauth2Callback(code, options).then((request) => request(this.axios, this.basePath));
|
|
2931
3224
|
}
|
|
2932
3225
|
/**
|
|
2933
3226
|
*
|
|
@@ -3212,6 +3505,28 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3212
3505
|
walletPatch(walletId, wallet, options) {
|
|
3213
3506
|
return (0, exports.DefaultApiFp)(this.configuration).walletPatch(walletId, wallet, options).then((request) => request(this.axios, this.basePath));
|
|
3214
3507
|
}
|
|
3508
|
+
/**
|
|
3509
|
+
* Gets a specific verified profile (claims) by state
|
|
3510
|
+
* @param {string} walletId Wallet ID
|
|
3511
|
+
* @param {string} state Verifier state
|
|
3512
|
+
* @param {*} [options] Override http request option.
|
|
3513
|
+
* @throws {RequiredError}
|
|
3514
|
+
* @memberof DefaultApi
|
|
3515
|
+
*/
|
|
3516
|
+
walletVerifiedProfileByState(walletId, state, options) {
|
|
3517
|
+
return (0, exports.DefaultApiFp)(this.configuration).walletVerifiedProfileByState(walletId, state, options).then((request) => request(this.axios, this.basePath));
|
|
3518
|
+
}
|
|
3519
|
+
/**
|
|
3520
|
+
* Deletes a specific verified profile (claims) by state
|
|
3521
|
+
* @param {string} walletId Wallet ID
|
|
3522
|
+
* @param {string} state Verifier state
|
|
3523
|
+
* @param {*} [options] Override http request option.
|
|
3524
|
+
* @throws {RequiredError}
|
|
3525
|
+
* @memberof DefaultApi
|
|
3526
|
+
*/
|
|
3527
|
+
walletVerifiedProfileDeleteByState(walletId, state, options) {
|
|
3528
|
+
return (0, exports.DefaultApiFp)(this.configuration).walletVerifiedProfileDeleteByState(walletId, state, options).then((request) => request(this.axios, this.basePath));
|
|
3529
|
+
}
|
|
3215
3530
|
}
|
|
3216
3531
|
exports.DefaultApi = DefaultApi;
|
|
3217
3532
|
/**
|