@triveria/wallet 0.0.152 → 0.0.154

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 +37 -4
  2. package/api.js +76 -4
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -1905,7 +1905,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1905
1905
  */
1906
1906
  walletCreate: (wallet?: Wallet, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1907
1907
  /**
1908
- * Delete wallet.
1908
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
1909
1909
  * @param {string} walletId
1910
1910
  * @param {*} [options] Override http request option.
1911
1911
  * @throws {RequiredError}
@@ -1924,6 +1924,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1924
1924
  * @throws {RequiredError}
1925
1925
  */
1926
1926
  walletList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1927
+ /**
1928
+ * Gets a specific notification by state
1929
+ * @param {string} walletId Wallet ID
1930
+ * @param {string} state Verifier state
1931
+ * @param {*} [options] Override http request option.
1932
+ * @throws {RequiredError}
1933
+ */
1934
+ walletNotificationGetByState: (walletId: string, state: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1927
1935
  /**
1928
1936
  * Provides wallet notifications that can be used to audit the wallet activity.
1929
1937
  * @param {string} walletId Wallet ID
@@ -2242,7 +2250,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2242
2250
  */
2243
2251
  walletCreate(wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdObject>>;
2244
2252
  /**
2245
- * Delete wallet.
2253
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
2246
2254
  * @param {string} walletId
2247
2255
  * @param {*} [options] Override http request option.
2248
2256
  * @throws {RequiredError}
@@ -2261,6 +2269,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2261
2269
  * @throws {RequiredError}
2262
2270
  */
2263
2271
  walletList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Wallet>>>;
2272
+ /**
2273
+ * Gets a specific notification by state
2274
+ * @param {string} walletId Wallet ID
2275
+ * @param {string} state Verifier state
2276
+ * @param {*} [options] Override http request option.
2277
+ * @throws {RequiredError}
2278
+ */
2279
+ walletNotificationGetByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletNotification>>;
2264
2280
  /**
2265
2281
  * Provides wallet notifications that can be used to audit the wallet activity.
2266
2282
  * @param {string} walletId Wallet ID
@@ -2579,7 +2595,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2579
2595
  */
2580
2596
  walletCreate(wallet?: Wallet, options?: any): AxiosPromise<WalletIdObject>;
2581
2597
  /**
2582
- * Delete wallet.
2598
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
2583
2599
  * @param {string} walletId
2584
2600
  * @param {*} [options] Override http request option.
2585
2601
  * @throws {RequiredError}
@@ -2598,6 +2614,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2598
2614
  * @throws {RequiredError}
2599
2615
  */
2600
2616
  walletList(options?: any): AxiosPromise<Array<Wallet>>;
2617
+ /**
2618
+ * Gets a specific notification by state
2619
+ * @param {string} walletId Wallet ID
2620
+ * @param {string} state Verifier state
2621
+ * @param {*} [options] Override http request option.
2622
+ * @throws {RequiredError}
2623
+ */
2624
+ walletNotificationGetByState(walletId: string, state: string, options?: any): AxiosPromise<WalletNotification>;
2601
2625
  /**
2602
2626
  * Provides wallet notifications that can be used to audit the wallet activity.
2603
2627
  * @param {string} walletId Wallet ID
@@ -2953,7 +2977,7 @@ export declare class DefaultApi extends BaseAPI {
2953
2977
  */
2954
2978
  walletCreate(wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdObject, any>>;
2955
2979
  /**
2956
- * Delete wallet.
2980
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
2957
2981
  * @param {string} walletId
2958
2982
  * @param {*} [options] Override http request option.
2959
2983
  * @throws {RequiredError}
@@ -2975,6 +2999,15 @@ export declare class DefaultApi extends BaseAPI {
2975
2999
  * @memberof DefaultApi
2976
3000
  */
2977
3001
  walletList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Wallet[], any>>;
3002
+ /**
3003
+ * Gets a specific notification by state
3004
+ * @param {string} walletId Wallet ID
3005
+ * @param {string} state Verifier state
3006
+ * @param {*} [options] Override http request option.
3007
+ * @throws {RequiredError}
3008
+ * @memberof DefaultApi
3009
+ */
3010
+ walletNotificationGetByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletNotification, any>>;
2978
3011
  /**
2979
3012
  * Provides wallet notifications that can be used to audit the wallet activity.
2980
3013
  * @param {string} walletId Wallet ID
package/api.js CHANGED
@@ -1375,7 +1375,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1375
1375
  };
1376
1376
  }),
1377
1377
  /**
1378
- * Delete wallet.
1378
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
1379
1379
  * @param {string} walletId
1380
1380
  * @param {*} [options] Override http request option.
1381
1381
  * @throws {RequiredError}
@@ -1463,6 +1463,41 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1463
1463
  options: localVarRequestOptions,
1464
1464
  };
1465
1465
  }),
1466
+ /**
1467
+ * Gets a specific notification by state
1468
+ * @param {string} walletId Wallet ID
1469
+ * @param {string} state Verifier state
1470
+ * @param {*} [options] Override http request option.
1471
+ * @throws {RequiredError}
1472
+ */
1473
+ walletNotificationGetByState: (walletId, state, options = {}) => __awaiter(this, void 0, void 0, function* () {
1474
+ // verify required parameter 'walletId' is not null or undefined
1475
+ (0, common_1.assertParamExists)('walletNotificationGetByState', 'walletId', walletId);
1476
+ // verify required parameter 'state' is not null or undefined
1477
+ (0, common_1.assertParamExists)('walletNotificationGetByState', 'state', state);
1478
+ const localVarPath = `/wallets/{wallet_id}/notification_history/{state}`
1479
+ .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)))
1480
+ .replace(`{${"state"}}`, encodeURIComponent(String(state)));
1481
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1482
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1483
+ let baseOptions;
1484
+ if (configuration) {
1485
+ baseOptions = configuration.baseOptions;
1486
+ }
1487
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1488
+ const localVarHeaderParameter = {};
1489
+ const localVarQueryParameter = {};
1490
+ // authentication accessToken required
1491
+ // http bearer authentication required
1492
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1493
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1494
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1495
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1496
+ return {
1497
+ url: (0, common_1.toPathString)(localVarUrlObj),
1498
+ options: localVarRequestOptions,
1499
+ };
1500
+ }),
1466
1501
  /**
1467
1502
  * Provides wallet notifications that can be used to audit the wallet activity.
1468
1503
  * @param {string} walletId Wallet ID
@@ -2151,7 +2186,7 @@ const DefaultApiFp = function (configuration) {
2151
2186
  });
2152
2187
  },
2153
2188
  /**
2154
- * Delete wallet.
2189
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
2155
2190
  * @param {string} walletId
2156
2191
  * @param {*} [options] Override http request option.
2157
2192
  * @throws {RequiredError}
@@ -2194,6 +2229,22 @@ const DefaultApiFp = function (configuration) {
2194
2229
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2195
2230
  });
2196
2231
  },
2232
+ /**
2233
+ * Gets a specific notification by state
2234
+ * @param {string} walletId Wallet ID
2235
+ * @param {string} state Verifier state
2236
+ * @param {*} [options] Override http request option.
2237
+ * @throws {RequiredError}
2238
+ */
2239
+ walletNotificationGetByState(walletId, state, options) {
2240
+ var _a, _b, _c;
2241
+ return __awaiter(this, void 0, void 0, function* () {
2242
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletNotificationGetByState(walletId, state, options);
2243
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2244
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletNotificationGetByState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2245
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2246
+ });
2247
+ },
2197
2248
  /**
2198
2249
  * Provides wallet notifications that can be used to audit the wallet activity.
2199
2250
  * @param {string} walletId Wallet ID
@@ -2610,7 +2661,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2610
2661
  return localVarFp.walletCreate(wallet, options).then((request) => request(axios, basePath));
2611
2662
  },
2612
2663
  /**
2613
- * Delete wallet.
2664
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
2614
2665
  * @param {string} walletId
2615
2666
  * @param {*} [options] Override http request option.
2616
2667
  * @throws {RequiredError}
@@ -2635,6 +2686,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2635
2686
  walletList(options) {
2636
2687
  return localVarFp.walletList(options).then((request) => request(axios, basePath));
2637
2688
  },
2689
+ /**
2690
+ * Gets a specific notification by state
2691
+ * @param {string} walletId Wallet ID
2692
+ * @param {string} state Verifier state
2693
+ * @param {*} [options] Override http request option.
2694
+ * @throws {RequiredError}
2695
+ */
2696
+ walletNotificationGetByState(walletId, state, options) {
2697
+ return localVarFp.walletNotificationGetByState(walletId, state, options).then((request) => request(axios, basePath));
2698
+ },
2638
2699
  /**
2639
2700
  * Provides wallet notifications that can be used to audit the wallet activity.
2640
2701
  * @param {string} walletId Wallet ID
@@ -3068,7 +3129,7 @@ class DefaultApi extends base_1.BaseAPI {
3068
3129
  return (0, exports.DefaultApiFp)(this.configuration).walletCreate(wallet, options).then((request) => request(this.axios, this.basePath));
3069
3130
  }
3070
3131
  /**
3071
- * Delete wallet.
3132
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
3072
3133
  * @param {string} walletId
3073
3134
  * @param {*} [options] Override http request option.
3074
3135
  * @throws {RequiredError}
@@ -3096,6 +3157,17 @@ class DefaultApi extends base_1.BaseAPI {
3096
3157
  walletList(options) {
3097
3158
  return (0, exports.DefaultApiFp)(this.configuration).walletList(options).then((request) => request(this.axios, this.basePath));
3098
3159
  }
3160
+ /**
3161
+ * Gets a specific notification by state
3162
+ * @param {string} walletId Wallet ID
3163
+ * @param {string} state Verifier state
3164
+ * @param {*} [options] Override http request option.
3165
+ * @throws {RequiredError}
3166
+ * @memberof DefaultApi
3167
+ */
3168
+ walletNotificationGetByState(walletId, state, options) {
3169
+ return (0, exports.DefaultApiFp)(this.configuration).walletNotificationGetByState(walletId, state, options).then((request) => request(this.axios, this.basePath));
3170
+ }
3099
3171
  /**
3100
3172
  * Provides wallet notifications that can be used to audit the wallet activity.
3101
3173
  * @param {string} walletId Wallet ID
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.152",
4
+ "version": "0.0.154",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {