@triveria/wallet 0.0.190 → 0.0.192
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 +49 -41
- package/api.js +82 -93
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -902,6 +902,12 @@ export interface InitAuthOffer {
|
|
|
902
902
|
* @memberof InitAuthOffer
|
|
903
903
|
*/
|
|
904
904
|
'offerEndpoint'?: string;
|
|
905
|
+
/**
|
|
906
|
+
*
|
|
907
|
+
* @type {boolean}
|
|
908
|
+
* @memberof InitAuthOffer
|
|
909
|
+
*/
|
|
910
|
+
'deferred'?: boolean;
|
|
905
911
|
}
|
|
906
912
|
/**
|
|
907
913
|
* Request for pre-authorized issuance process start. Consists of client id or id token request id, credential offer endpoint(most commonly only schema) and id\'s of credentials to be issued to client. Either clientId or idTokenRequestId MUST be present in the request.
|
|
@@ -939,6 +945,12 @@ export interface InitPreAuthOffer {
|
|
|
939
945
|
* @memberof InitPreAuthOffer
|
|
940
946
|
*/
|
|
941
947
|
'offerEndpoint'?: string;
|
|
948
|
+
/**
|
|
949
|
+
*
|
|
950
|
+
* @type {boolean}
|
|
951
|
+
* @memberof InitPreAuthOffer
|
|
952
|
+
*/
|
|
953
|
+
'deferred'?: boolean;
|
|
942
954
|
}
|
|
943
955
|
/**
|
|
944
956
|
*
|
|
@@ -2037,6 +2049,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2037
2049
|
* @throws {RequiredError}
|
|
2038
2050
|
*/
|
|
2039
2051
|
deferredStatus: (deferredId: string, walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2052
|
+
/**
|
|
2053
|
+
* Gets the DID Document of the wallet.
|
|
2054
|
+
* @param {string} walletId
|
|
2055
|
+
* @param {*} [options] Override http request option.
|
|
2056
|
+
* @throws {RequiredError}
|
|
2057
|
+
*/
|
|
2058
|
+
didDocumentGet: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2040
2059
|
/**
|
|
2041
2060
|
*
|
|
2042
2061
|
* @param {string} walletId
|
|
@@ -2114,14 +2133,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2114
2133
|
* @throws {RequiredError}
|
|
2115
2134
|
*/
|
|
2116
2135
|
issuerCredentialTypesList: (url: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2117
|
-
/**
|
|
2118
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
2119
|
-
* @param {string} walletId
|
|
2120
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
2121
|
-
* @param {*} [options] Override http request option.
|
|
2122
|
-
* @throws {RequiredError}
|
|
2123
|
-
*/
|
|
2124
|
-
issuerInitiateDeferred: (walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2125
2136
|
/**
|
|
2126
2137
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
2127
2138
|
* @param {string} walletId
|
|
@@ -2129,7 +2140,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2129
2140
|
* @param {*} [options] Override http request option.
|
|
2130
2141
|
* @throws {RequiredError}
|
|
2131
2142
|
*/
|
|
2132
|
-
|
|
2143
|
+
issuerInitiateAuthOffer: (walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2133
2144
|
/**
|
|
2134
2145
|
* Initiates issuing of Verifiable Credentials using pre-authorized flow.
|
|
2135
2146
|
* @param {string} walletId
|
|
@@ -2137,7 +2148,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2137
2148
|
* @param {*} [options] Override http request option.
|
|
2138
2149
|
* @throws {RequiredError}
|
|
2139
2150
|
*/
|
|
2140
|
-
|
|
2151
|
+
issuerInitiatePreauthOffer: (walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2141
2152
|
/**
|
|
2142
2153
|
* Accredits a legal entity as RTAO or TAO.
|
|
2143
2154
|
* @param {string} walletId
|
|
@@ -2371,6 +2382,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2371
2382
|
* @throws {RequiredError}
|
|
2372
2383
|
*/
|
|
2373
2384
|
deferredStatus(deferredId: string, walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Deferred>>;
|
|
2385
|
+
/**
|
|
2386
|
+
* Gets the DID Document of the wallet.
|
|
2387
|
+
* @param {string} walletId
|
|
2388
|
+
* @param {*} [options] Override http request option.
|
|
2389
|
+
* @throws {RequiredError}
|
|
2390
|
+
*/
|
|
2391
|
+
didDocumentGet(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
2374
2392
|
/**
|
|
2375
2393
|
*
|
|
2376
2394
|
* @param {string} walletId
|
|
@@ -2448,14 +2466,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2448
2466
|
* @throws {RequiredError}
|
|
2449
2467
|
*/
|
|
2450
2468
|
issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CredentialType>>>;
|
|
2451
|
-
/**
|
|
2452
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
2453
|
-
* @param {string} walletId
|
|
2454
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
2455
|
-
* @param {*} [options] Override http request option.
|
|
2456
|
-
* @throws {RequiredError}
|
|
2457
|
-
*/
|
|
2458
|
-
issuerInitiateDeferred(walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthOffer>>;
|
|
2459
2469
|
/**
|
|
2460
2470
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
2461
2471
|
* @param {string} walletId
|
|
@@ -2463,7 +2473,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2463
2473
|
* @param {*} [options] Override http request option.
|
|
2464
2474
|
* @throws {RequiredError}
|
|
2465
2475
|
*/
|
|
2466
|
-
|
|
2476
|
+
issuerInitiateAuthOffer(walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthOffer>>;
|
|
2467
2477
|
/**
|
|
2468
2478
|
* Initiates issuing of Verifiable Credentials using pre-authorized flow.
|
|
2469
2479
|
* @param {string} walletId
|
|
@@ -2471,7 +2481,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2471
2481
|
* @param {*} [options] Override http request option.
|
|
2472
2482
|
* @throws {RequiredError}
|
|
2473
2483
|
*/
|
|
2474
|
-
|
|
2484
|
+
issuerInitiatePreauthOffer(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreAuthOffer>>;
|
|
2475
2485
|
/**
|
|
2476
2486
|
* Accredits a legal entity as RTAO or TAO.
|
|
2477
2487
|
* @param {string} walletId
|
|
@@ -2705,6 +2715,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2705
2715
|
* @throws {RequiredError}
|
|
2706
2716
|
*/
|
|
2707
2717
|
deferredStatus(deferredId: string, walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<Deferred>;
|
|
2718
|
+
/**
|
|
2719
|
+
* Gets the DID Document of the wallet.
|
|
2720
|
+
* @param {string} walletId
|
|
2721
|
+
* @param {*} [options] Override http request option.
|
|
2722
|
+
* @throws {RequiredError}
|
|
2723
|
+
*/
|
|
2724
|
+
didDocumentGet(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
2708
2725
|
/**
|
|
2709
2726
|
*
|
|
2710
2727
|
* @param {string} walletId
|
|
@@ -2782,14 +2799,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2782
2799
|
* @throws {RequiredError}
|
|
2783
2800
|
*/
|
|
2784
2801
|
issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CredentialType>>;
|
|
2785
|
-
/**
|
|
2786
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
2787
|
-
* @param {string} walletId
|
|
2788
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
2789
|
-
* @param {*} [options] Override http request option.
|
|
2790
|
-
* @throws {RequiredError}
|
|
2791
|
-
*/
|
|
2792
|
-
issuerInitiateDeferred(walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): AxiosPromise<AuthOffer>;
|
|
2793
2802
|
/**
|
|
2794
2803
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
2795
2804
|
* @param {string} walletId
|
|
@@ -2797,7 +2806,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2797
2806
|
* @param {*} [options] Override http request option.
|
|
2798
2807
|
* @throws {RequiredError}
|
|
2799
2808
|
*/
|
|
2800
|
-
|
|
2809
|
+
issuerInitiateAuthOffer(walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): AxiosPromise<AuthOffer>;
|
|
2801
2810
|
/**
|
|
2802
2811
|
* Initiates issuing of Verifiable Credentials using pre-authorized flow.
|
|
2803
2812
|
* @param {string} walletId
|
|
@@ -2805,7 +2814,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2805
2814
|
* @param {*} [options] Override http request option.
|
|
2806
2815
|
* @throws {RequiredError}
|
|
2807
2816
|
*/
|
|
2808
|
-
|
|
2817
|
+
issuerInitiatePreauthOffer(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): AxiosPromise<PreAuthOffer>;
|
|
2809
2818
|
/**
|
|
2810
2819
|
* Accredits a legal entity as RTAO or TAO.
|
|
2811
2820
|
* @param {string} walletId
|
|
@@ -3051,6 +3060,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3051
3060
|
* @memberof DefaultApi
|
|
3052
3061
|
*/
|
|
3053
3062
|
deferredStatus(deferredId: string, walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Deferred, any>>;
|
|
3063
|
+
/**
|
|
3064
|
+
* Gets the DID Document of the wallet.
|
|
3065
|
+
* @param {string} walletId
|
|
3066
|
+
* @param {*} [options] Override http request option.
|
|
3067
|
+
* @throws {RequiredError}
|
|
3068
|
+
* @memberof DefaultApi
|
|
3069
|
+
*/
|
|
3070
|
+
didDocumentGet(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
3054
3071
|
/**
|
|
3055
3072
|
*
|
|
3056
3073
|
* @param {string} walletId
|
|
@@ -3138,15 +3155,6 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3138
3155
|
* @memberof DefaultApi
|
|
3139
3156
|
*/
|
|
3140
3157
|
issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialType[], any>>;
|
|
3141
|
-
/**
|
|
3142
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
3143
|
-
* @param {string} walletId
|
|
3144
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
3145
|
-
* @param {*} [options] Override http request option.
|
|
3146
|
-
* @throws {RequiredError}
|
|
3147
|
-
* @memberof DefaultApi
|
|
3148
|
-
*/
|
|
3149
|
-
issuerInitiateDeferred(walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthOffer, any>>;
|
|
3150
3158
|
/**
|
|
3151
3159
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
3152
3160
|
* @param {string} walletId
|
|
@@ -3155,7 +3163,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3155
3163
|
* @throws {RequiredError}
|
|
3156
3164
|
* @memberof DefaultApi
|
|
3157
3165
|
*/
|
|
3158
|
-
|
|
3166
|
+
issuerInitiateAuthOffer(walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthOffer, any>>;
|
|
3159
3167
|
/**
|
|
3160
3168
|
* Initiates issuing of Verifiable Credentials using pre-authorized flow.
|
|
3161
3169
|
* @param {string} walletId
|
|
@@ -3164,7 +3172,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3164
3172
|
* @throws {RequiredError}
|
|
3165
3173
|
* @memberof DefaultApi
|
|
3166
3174
|
*/
|
|
3167
|
-
|
|
3175
|
+
issuerInitiatePreauthOffer(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PreAuthOffer, any>>;
|
|
3168
3176
|
/**
|
|
3169
3177
|
* Accredits a legal entity as RTAO or TAO.
|
|
3170
3178
|
* @param {string} walletId
|
package/api.js
CHANGED
|
@@ -534,6 +534,34 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
534
534
|
options: localVarRequestOptions,
|
|
535
535
|
};
|
|
536
536
|
}),
|
|
537
|
+
/**
|
|
538
|
+
* Gets the DID Document of the wallet.
|
|
539
|
+
* @param {string} walletId
|
|
540
|
+
* @param {*} [options] Override http request option.
|
|
541
|
+
* @throws {RequiredError}
|
|
542
|
+
*/
|
|
543
|
+
didDocumentGet: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
544
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
545
|
+
(0, common_1.assertParamExists)('didDocumentGet', 'walletId', walletId);
|
|
546
|
+
const localVarPath = `/{wallet_id}/did.json`
|
|
547
|
+
.replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
|
|
548
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
549
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
550
|
+
let baseOptions;
|
|
551
|
+
if (configuration) {
|
|
552
|
+
baseOptions = configuration.baseOptions;
|
|
553
|
+
}
|
|
554
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
555
|
+
const localVarHeaderParameter = {};
|
|
556
|
+
const localVarQueryParameter = {};
|
|
557
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
558
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
559
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
560
|
+
return {
|
|
561
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
562
|
+
options: localVarRequestOptions,
|
|
563
|
+
};
|
|
564
|
+
}),
|
|
537
565
|
/**
|
|
538
566
|
*
|
|
539
567
|
* @param {string} walletId
|
|
@@ -872,42 +900,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
872
900
|
options: localVarRequestOptions,
|
|
873
901
|
};
|
|
874
902
|
}),
|
|
875
|
-
/**
|
|
876
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
877
|
-
* @param {string} walletId
|
|
878
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
879
|
-
* @param {*} [options] Override http request option.
|
|
880
|
-
* @throws {RequiredError}
|
|
881
|
-
*/
|
|
882
|
-
issuerInitiateDeferred: (walletId, initAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
883
|
-
// verify required parameter 'walletId' is not null or undefined
|
|
884
|
-
(0, common_1.assertParamExists)('issuerInitiateDeferred', 'walletId', walletId);
|
|
885
|
-
const localVarPath = `/issuer/initiate/deferred`;
|
|
886
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
887
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
888
|
-
let baseOptions;
|
|
889
|
-
if (configuration) {
|
|
890
|
-
baseOptions = configuration.baseOptions;
|
|
891
|
-
}
|
|
892
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
893
|
-
const localVarHeaderParameter = {};
|
|
894
|
-
const localVarQueryParameter = {};
|
|
895
|
-
// authentication accessToken required
|
|
896
|
-
// http bearer authentication required
|
|
897
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
898
|
-
if (walletId != null) {
|
|
899
|
-
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
900
|
-
}
|
|
901
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
902
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
903
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
904
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
905
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initAuthOffer, localVarRequestOptions, configuration);
|
|
906
|
-
return {
|
|
907
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
908
|
-
options: localVarRequestOptions,
|
|
909
|
-
};
|
|
910
|
-
}),
|
|
911
903
|
/**
|
|
912
904
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
913
905
|
* @param {string} walletId
|
|
@@ -915,10 +907,10 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
915
907
|
* @param {*} [options] Override http request option.
|
|
916
908
|
* @throws {RequiredError}
|
|
917
909
|
*/
|
|
918
|
-
|
|
910
|
+
issuerInitiateAuthOffer: (walletId, initAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
919
911
|
// verify required parameter 'walletId' is not null or undefined
|
|
920
|
-
(0, common_1.assertParamExists)('
|
|
921
|
-
const localVarPath = `/issuer/
|
|
912
|
+
(0, common_1.assertParamExists)('issuerInitiateAuthOffer', 'walletId', walletId);
|
|
913
|
+
const localVarPath = `/issuer/offer/auth`;
|
|
922
914
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
923
915
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
924
916
|
let baseOptions;
|
|
@@ -951,10 +943,10 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
951
943
|
* @param {*} [options] Override http request option.
|
|
952
944
|
* @throws {RequiredError}
|
|
953
945
|
*/
|
|
954
|
-
|
|
946
|
+
issuerInitiatePreauthOffer: (walletId, initPreAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
955
947
|
// verify required parameter 'walletId' is not null or undefined
|
|
956
|
-
(0, common_1.assertParamExists)('
|
|
957
|
-
const localVarPath = `/issuer/
|
|
948
|
+
(0, common_1.assertParamExists)('issuerInitiatePreauthOffer', 'walletId', walletId);
|
|
949
|
+
const localVarPath = `/issuer/offer/preauth`;
|
|
958
950
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
959
951
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
960
952
|
let baseOptions;
|
|
@@ -1758,6 +1750,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
1758
1750
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1759
1751
|
});
|
|
1760
1752
|
},
|
|
1753
|
+
/**
|
|
1754
|
+
* Gets the DID Document of the wallet.
|
|
1755
|
+
* @param {string} walletId
|
|
1756
|
+
* @param {*} [options] Override http request option.
|
|
1757
|
+
* @throws {RequiredError}
|
|
1758
|
+
*/
|
|
1759
|
+
didDocumentGet(walletId, options) {
|
|
1760
|
+
var _a, _b, _c;
|
|
1761
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1762
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didDocumentGet(walletId, options);
|
|
1763
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1764
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.didDocumentGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1765
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1766
|
+
});
|
|
1767
|
+
},
|
|
1761
1768
|
/**
|
|
1762
1769
|
*
|
|
1763
1770
|
* @param {string} walletId
|
|
@@ -1915,22 +1922,6 @@ const DefaultApiFp = function (configuration) {
|
|
|
1915
1922
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1916
1923
|
});
|
|
1917
1924
|
},
|
|
1918
|
-
/**
|
|
1919
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
1920
|
-
* @param {string} walletId
|
|
1921
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
1922
|
-
* @param {*} [options] Override http request option.
|
|
1923
|
-
* @throws {RequiredError}
|
|
1924
|
-
*/
|
|
1925
|
-
issuerInitiateDeferred(walletId, initAuthOffer, options) {
|
|
1926
|
-
var _a, _b, _c;
|
|
1927
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1928
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.issuerInitiateDeferred(walletId, initAuthOffer, options);
|
|
1929
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1930
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.issuerInitiateDeferred']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1931
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1932
|
-
});
|
|
1933
|
-
},
|
|
1934
1925
|
/**
|
|
1935
1926
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
1936
1927
|
* @param {string} walletId
|
|
@@ -1938,12 +1929,12 @@ const DefaultApiFp = function (configuration) {
|
|
|
1938
1929
|
* @param {*} [options] Override http request option.
|
|
1939
1930
|
* @throws {RequiredError}
|
|
1940
1931
|
*/
|
|
1941
|
-
|
|
1932
|
+
issuerInitiateAuthOffer(walletId, initAuthOffer, options) {
|
|
1942
1933
|
var _a, _b, _c;
|
|
1943
1934
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1944
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1935
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.issuerInitiateAuthOffer(walletId, initAuthOffer, options);
|
|
1945
1936
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1946
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
1937
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.issuerInitiateAuthOffer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1947
1938
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1948
1939
|
});
|
|
1949
1940
|
},
|
|
@@ -1954,12 +1945,12 @@ const DefaultApiFp = function (configuration) {
|
|
|
1954
1945
|
* @param {*} [options] Override http request option.
|
|
1955
1946
|
* @throws {RequiredError}
|
|
1956
1947
|
*/
|
|
1957
|
-
|
|
1948
|
+
issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options) {
|
|
1958
1949
|
var _a, _b, _c;
|
|
1959
1950
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1960
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1951
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options);
|
|
1961
1952
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1962
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
1953
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.issuerInitiatePreauthOffer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1963
1954
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1964
1955
|
});
|
|
1965
1956
|
},
|
|
@@ -2364,6 +2355,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2364
2355
|
deferredStatus(deferredId, walletId, options) {
|
|
2365
2356
|
return localVarFp.deferredStatus(deferredId, walletId, options).then((request) => request(axios, basePath));
|
|
2366
2357
|
},
|
|
2358
|
+
/**
|
|
2359
|
+
* Gets the DID Document of the wallet.
|
|
2360
|
+
* @param {string} walletId
|
|
2361
|
+
* @param {*} [options] Override http request option.
|
|
2362
|
+
* @throws {RequiredError}
|
|
2363
|
+
*/
|
|
2364
|
+
didDocumentGet(walletId, options) {
|
|
2365
|
+
return localVarFp.didDocumentGet(walletId, options).then((request) => request(axios, basePath));
|
|
2366
|
+
},
|
|
2367
2367
|
/**
|
|
2368
2368
|
*
|
|
2369
2369
|
* @param {string} walletId
|
|
@@ -2461,16 +2461,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2461
2461
|
issuerCredentialTypesList(url, options) {
|
|
2462
2462
|
return localVarFp.issuerCredentialTypesList(url, options).then((request) => request(axios, basePath));
|
|
2463
2463
|
},
|
|
2464
|
-
/**
|
|
2465
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
2466
|
-
* @param {string} walletId
|
|
2467
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
2468
|
-
* @param {*} [options] Override http request option.
|
|
2469
|
-
* @throws {RequiredError}
|
|
2470
|
-
*/
|
|
2471
|
-
issuerInitiateDeferred(walletId, initAuthOffer, options) {
|
|
2472
|
-
return localVarFp.issuerInitiateDeferred(walletId, initAuthOffer, options).then((request) => request(axios, basePath));
|
|
2473
|
-
},
|
|
2474
2464
|
/**
|
|
2475
2465
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
2476
2466
|
* @param {string} walletId
|
|
@@ -2478,8 +2468,8 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2478
2468
|
* @param {*} [options] Override http request option.
|
|
2479
2469
|
* @throws {RequiredError}
|
|
2480
2470
|
*/
|
|
2481
|
-
|
|
2482
|
-
return localVarFp.
|
|
2471
|
+
issuerInitiateAuthOffer(walletId, initAuthOffer, options) {
|
|
2472
|
+
return localVarFp.issuerInitiateAuthOffer(walletId, initAuthOffer, options).then((request) => request(axios, basePath));
|
|
2483
2473
|
},
|
|
2484
2474
|
/**
|
|
2485
2475
|
* Initiates issuing of Verifiable Credentials using pre-authorized flow.
|
|
@@ -2488,8 +2478,8 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2488
2478
|
* @param {*} [options] Override http request option.
|
|
2489
2479
|
* @throws {RequiredError}
|
|
2490
2480
|
*/
|
|
2491
|
-
|
|
2492
|
-
return localVarFp.
|
|
2481
|
+
issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options) {
|
|
2482
|
+
return localVarFp.issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options).then((request) => request(axios, basePath));
|
|
2493
2483
|
},
|
|
2494
2484
|
/**
|
|
2495
2485
|
* Accredits a legal entity as RTAO or TAO.
|
|
@@ -2794,6 +2784,16 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2794
2784
|
deferredStatus(deferredId, walletId, options) {
|
|
2795
2785
|
return (0, exports.DefaultApiFp)(this.configuration).deferredStatus(deferredId, walletId, options).then((request) => request(this.axios, this.basePath));
|
|
2796
2786
|
}
|
|
2787
|
+
/**
|
|
2788
|
+
* Gets the DID Document of the wallet.
|
|
2789
|
+
* @param {string} walletId
|
|
2790
|
+
* @param {*} [options] Override http request option.
|
|
2791
|
+
* @throws {RequiredError}
|
|
2792
|
+
* @memberof DefaultApi
|
|
2793
|
+
*/
|
|
2794
|
+
didDocumentGet(walletId, options) {
|
|
2795
|
+
return (0, exports.DefaultApiFp)(this.configuration).didDocumentGet(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
2796
|
+
}
|
|
2797
2797
|
/**
|
|
2798
2798
|
*
|
|
2799
2799
|
* @param {string} walletId
|
|
@@ -2901,17 +2901,6 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2901
2901
|
issuerCredentialTypesList(url, options) {
|
|
2902
2902
|
return (0, exports.DefaultApiFp)(this.configuration).issuerCredentialTypesList(url, options).then((request) => request(this.axios, this.basePath));
|
|
2903
2903
|
}
|
|
2904
|
-
/**
|
|
2905
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
2906
|
-
* @param {string} walletId
|
|
2907
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
2908
|
-
* @param {*} [options] Override http request option.
|
|
2909
|
-
* @throws {RequiredError}
|
|
2910
|
-
* @memberof DefaultApi
|
|
2911
|
-
*/
|
|
2912
|
-
issuerInitiateDeferred(walletId, initAuthOffer, options) {
|
|
2913
|
-
return (0, exports.DefaultApiFp)(this.configuration).issuerInitiateDeferred(walletId, initAuthOffer, options).then((request) => request(this.axios, this.basePath));
|
|
2914
|
-
}
|
|
2915
2904
|
/**
|
|
2916
2905
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
2917
2906
|
* @param {string} walletId
|
|
@@ -2920,8 +2909,8 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2920
2909
|
* @throws {RequiredError}
|
|
2921
2910
|
* @memberof DefaultApi
|
|
2922
2911
|
*/
|
|
2923
|
-
|
|
2924
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
2912
|
+
issuerInitiateAuthOffer(walletId, initAuthOffer, options) {
|
|
2913
|
+
return (0, exports.DefaultApiFp)(this.configuration).issuerInitiateAuthOffer(walletId, initAuthOffer, options).then((request) => request(this.axios, this.basePath));
|
|
2925
2914
|
}
|
|
2926
2915
|
/**
|
|
2927
2916
|
* Initiates issuing of Verifiable Credentials using pre-authorized flow.
|
|
@@ -2931,8 +2920,8 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2931
2920
|
* @throws {RequiredError}
|
|
2932
2921
|
* @memberof DefaultApi
|
|
2933
2922
|
*/
|
|
2934
|
-
|
|
2935
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
2923
|
+
issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options) {
|
|
2924
|
+
return (0, exports.DefaultApiFp)(this.configuration).issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options).then((request) => request(this.axios, this.basePath));
|
|
2936
2925
|
}
|
|
2937
2926
|
/**
|
|
2938
2927
|
* Accredits a legal entity as RTAO or TAO.
|