@triveria/wallet 0.0.197 → 0.0.198

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/api.d.ts +35 -0
  2. package/api.js +65 -0
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -2308,6 +2308,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2308
2308
  * @throws {RequiredError}
2309
2309
  */
2310
2310
  walletGet: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2311
+ /**
2312
+ * Provides wallet keys used for signing.
2313
+ * @param {string} walletId Wallet ID
2314
+ * @param {*} [options] Override http request option.
2315
+ * @throws {RequiredError}
2316
+ */
2317
+ walletKeys: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2311
2318
  /**
2312
2319
  * Provides list of wallets owned by the authenticated client.
2313
2320
  * @param {*} [options] Override http request option.
@@ -2642,6 +2649,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2642
2649
  * @throws {RequiredError}
2643
2650
  */
2644
2651
  walletGet(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Wallet>>;
2652
+ /**
2653
+ * Provides wallet keys used for signing.
2654
+ * @param {string} walletId Wallet ID
2655
+ * @param {*} [options] Override http request option.
2656
+ * @throws {RequiredError}
2657
+ */
2658
+ walletKeys(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
2659
+ [key: string]: any;
2660
+ }>>;
2645
2661
  /**
2646
2662
  * Provides list of wallets owned by the authenticated client.
2647
2663
  * @param {*} [options] Override http request option.
@@ -2976,6 +2992,15 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2976
2992
  * @throws {RequiredError}
2977
2993
  */
2978
2994
  walletGet(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<Wallet>;
2995
+ /**
2996
+ * Provides wallet keys used for signing.
2997
+ * @param {string} walletId Wallet ID
2998
+ * @param {*} [options] Override http request option.
2999
+ * @throws {RequiredError}
3000
+ */
3001
+ walletKeys(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<{
3002
+ [key: string]: any;
3003
+ }>;
2979
3004
  /**
2980
3005
  * Provides list of wallets owned by the authenticated client.
2981
3006
  * @param {*} [options] Override http request option.
@@ -3346,6 +3371,16 @@ export declare class DefaultApi extends BaseAPI {
3346
3371
  * @memberof DefaultApi
3347
3372
  */
3348
3373
  walletGet(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Wallet, any>>;
3374
+ /**
3375
+ * Provides wallet keys used for signing.
3376
+ * @param {string} walletId Wallet ID
3377
+ * @param {*} [options] Override http request option.
3378
+ * @throws {RequiredError}
3379
+ * @memberof DefaultApi
3380
+ */
3381
+ walletKeys(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
3382
+ [key: string]: any;
3383
+ }, any>>;
3349
3384
  /**
3350
3385
  * Provides list of wallets owned by the authenticated client.
3351
3386
  * @param {*} [options] Override http request option.
package/api.js CHANGED
@@ -1330,6 +1330,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1330
1330
  options: localVarRequestOptions,
1331
1331
  };
1332
1332
  }),
1333
+ /**
1334
+ * Provides wallet keys used for signing.
1335
+ * @param {string} walletId Wallet ID
1336
+ * @param {*} [options] Override http request option.
1337
+ * @throws {RequiredError}
1338
+ */
1339
+ walletKeys: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1340
+ // verify required parameter 'walletId' is not null or undefined
1341
+ (0, common_1.assertParamExists)('walletKeys', 'walletId', walletId);
1342
+ const localVarPath = `/wallets/{wallet_id}/keys`
1343
+ .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1344
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1345
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1346
+ let baseOptions;
1347
+ if (configuration) {
1348
+ baseOptions = configuration.baseOptions;
1349
+ }
1350
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1351
+ const localVarHeaderParameter = {};
1352
+ const localVarQueryParameter = {};
1353
+ // authentication accessToken required
1354
+ // http bearer authentication required
1355
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1356
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1357
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1358
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1359
+ return {
1360
+ url: (0, common_1.toPathString)(localVarUrlObj),
1361
+ options: localVarRequestOptions,
1362
+ };
1363
+ }),
1333
1364
  /**
1334
1365
  * Provides list of wallets owned by the authenticated client.
1335
1366
  * @param {*} [options] Override http request option.
@@ -2128,6 +2159,21 @@ const DefaultApiFp = function (configuration) {
2128
2159
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2129
2160
  });
2130
2161
  },
2162
+ /**
2163
+ * Provides wallet keys used for signing.
2164
+ * @param {string} walletId Wallet ID
2165
+ * @param {*} [options] Override http request option.
2166
+ * @throws {RequiredError}
2167
+ */
2168
+ walletKeys(walletId, options) {
2169
+ var _a, _b, _c;
2170
+ return __awaiter(this, void 0, void 0, function* () {
2171
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletKeys(walletId, options);
2172
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2173
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2174
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2175
+ });
2176
+ },
2131
2177
  /**
2132
2178
  * Provides list of wallets owned by the authenticated client.
2133
2179
  * @param {*} [options] Override http request option.
@@ -2590,6 +2636,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2590
2636
  walletGet(walletId, options) {
2591
2637
  return localVarFp.walletGet(walletId, options).then((request) => request(axios, basePath));
2592
2638
  },
2639
+ /**
2640
+ * Provides wallet keys used for signing.
2641
+ * @param {string} walletId Wallet ID
2642
+ * @param {*} [options] Override http request option.
2643
+ * @throws {RequiredError}
2644
+ */
2645
+ walletKeys(walletId, options) {
2646
+ return localVarFp.walletKeys(walletId, options).then((request) => request(axios, basePath));
2647
+ },
2593
2648
  /**
2594
2649
  * Provides list of wallets owned by the authenticated client.
2595
2650
  * @param {*} [options] Override http request option.
@@ -3044,6 +3099,16 @@ class DefaultApi extends base_1.BaseAPI {
3044
3099
  walletGet(walletId, options) {
3045
3100
  return (0, exports.DefaultApiFp)(this.configuration).walletGet(walletId, options).then((request) => request(this.axios, this.basePath));
3046
3101
  }
3102
+ /**
3103
+ * Provides wallet keys used for signing.
3104
+ * @param {string} walletId Wallet ID
3105
+ * @param {*} [options] Override http request option.
3106
+ * @throws {RequiredError}
3107
+ * @memberof DefaultApi
3108
+ */
3109
+ walletKeys(walletId, options) {
3110
+ return (0, exports.DefaultApiFp)(this.configuration).walletKeys(walletId, options).then((request) => request(this.axios, this.basePath));
3111
+ }
3047
3112
  /**
3048
3113
  * Provides list of wallets owned by the authenticated client.
3049
3114
  * @param {*} [options] Override http request option.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.197",
4
+ "version": "0.0.198",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {