@triveria/wallet 0.0.191 → 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 +29 -0
- package/api.js +62 -0
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -2049,6 +2049,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2049
2049
|
* @throws {RequiredError}
|
|
2050
2050
|
*/
|
|
2051
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>;
|
|
2052
2059
|
/**
|
|
2053
2060
|
*
|
|
2054
2061
|
* @param {string} walletId
|
|
@@ -2375,6 +2382,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2375
2382
|
* @throws {RequiredError}
|
|
2376
2383
|
*/
|
|
2377
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>>;
|
|
2378
2392
|
/**
|
|
2379
2393
|
*
|
|
2380
2394
|
* @param {string} walletId
|
|
@@ -2701,6 +2715,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2701
2715
|
* @throws {RequiredError}
|
|
2702
2716
|
*/
|
|
2703
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>;
|
|
2704
2725
|
/**
|
|
2705
2726
|
*
|
|
2706
2727
|
* @param {string} walletId
|
|
@@ -3039,6 +3060,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3039
3060
|
* @memberof DefaultApi
|
|
3040
3061
|
*/
|
|
3041
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>>;
|
|
3042
3071
|
/**
|
|
3043
3072
|
*
|
|
3044
3073
|
* @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
|
|
@@ -1722,6 +1750,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
1722
1750
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1723
1751
|
});
|
|
1724
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
|
+
},
|
|
1725
1768
|
/**
|
|
1726
1769
|
*
|
|
1727
1770
|
* @param {string} walletId
|
|
@@ -2312,6 +2355,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2312
2355
|
deferredStatus(deferredId, walletId, options) {
|
|
2313
2356
|
return localVarFp.deferredStatus(deferredId, walletId, options).then((request) => request(axios, basePath));
|
|
2314
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
|
+
},
|
|
2315
2367
|
/**
|
|
2316
2368
|
*
|
|
2317
2369
|
* @param {string} walletId
|
|
@@ -2732,6 +2784,16 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2732
2784
|
deferredStatus(deferredId, walletId, options) {
|
|
2733
2785
|
return (0, exports.DefaultApiFp)(this.configuration).deferredStatus(deferredId, walletId, options).then((request) => request(this.axios, this.basePath));
|
|
2734
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
|
+
}
|
|
2735
2797
|
/**
|
|
2736
2798
|
*
|
|
2737
2799
|
* @param {string} walletId
|