@triveria/wallet 0.0.232 → 0.0.234

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 -8
  2. package/api.js +12 -12
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -2234,6 +2234,33 @@ export declare const WalletConfigTrustFrameworkEnum: {
2234
2234
  readonly Noop: "NOOP";
2235
2235
  };
2236
2236
  export type WalletConfigTrustFrameworkEnum = typeof WalletConfigTrustFrameworkEnum[keyof typeof WalletConfigTrustFrameworkEnum];
2237
+ /**
2238
+ * Payload to create a wallet
2239
+ * @export
2240
+ * @interface WalletCreatePayload
2241
+ */
2242
+ export interface WalletCreatePayload {
2243
+ /**
2244
+ *
2245
+ * @type {string}
2246
+ * @memberof WalletCreatePayload
2247
+ */
2248
+ 'name': string;
2249
+ /**
2250
+ *
2251
+ * @type {WalletConfig}
2252
+ * @memberof WalletCreatePayload
2253
+ */
2254
+ 'config': WalletConfig;
2255
+ /**
2256
+ * Custom key value pairs associated with the wallet. The key must not exceed 64 characters and the value must not exceed 256 characters.
2257
+ * @type {{ [key: string]: any; }}
2258
+ * @memberof WalletCreatePayload
2259
+ */
2260
+ 'metadata'?: {
2261
+ [key: string]: any;
2262
+ };
2263
+ }
2237
2264
  /**
2238
2265
  *
2239
2266
  * @export
@@ -2658,11 +2685,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2658
2685
  verifierLinkedVpVerify: (walletId: string, did: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2659
2686
  /**
2660
2687
  * Creates a new wallet for the authenticated client.
2661
- * @param {Wallet} [wallet]
2688
+ * @param {WalletCreatePayload} [walletCreatePayload]
2662
2689
  * @param {*} [options] Override http request option.
2663
2690
  * @throws {RequiredError}
2664
2691
  */
2665
- walletCreate: (wallet?: Wallet, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2692
+ walletCreate: (walletCreatePayload?: WalletCreatePayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2666
2693
  /**
2667
2694
  * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
2668
2695
  * @param {string} walletId
@@ -3034,11 +3061,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3034
3061
  verifierLinkedVpVerify(walletId: string, did: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VerifiedLinkedVp>>>;
3035
3062
  /**
3036
3063
  * Creates a new wallet for the authenticated client.
3037
- * @param {Wallet} [wallet]
3064
+ * @param {WalletCreatePayload} [walletCreatePayload]
3038
3065
  * @param {*} [options] Override http request option.
3039
3066
  * @throws {RequiredError}
3040
3067
  */
3041
- walletCreate(wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdObject>>;
3068
+ walletCreate(walletCreatePayload?: WalletCreatePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdObject>>;
3042
3069
  /**
3043
3070
  * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
3044
3071
  * @param {string} walletId
@@ -3412,11 +3439,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3412
3439
  verifierLinkedVpVerify(walletId: string, did: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<VerifiedLinkedVp>>;
3413
3440
  /**
3414
3441
  * Creates a new wallet for the authenticated client.
3415
- * @param {Wallet} [wallet]
3442
+ * @param {WalletCreatePayload} [walletCreatePayload]
3416
3443
  * @param {*} [options] Override http request option.
3417
3444
  * @throws {RequiredError}
3418
3445
  */
3419
- walletCreate(wallet?: Wallet, options?: RawAxiosRequestConfig): AxiosPromise<WalletIdObject>;
3446
+ walletCreate(walletCreatePayload?: WalletCreatePayload, options?: RawAxiosRequestConfig): AxiosPromise<WalletIdObject>;
3420
3447
  /**
3421
3448
  * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
3422
3449
  * @param {string} walletId
@@ -3827,12 +3854,12 @@ export declare class DefaultApi extends BaseAPI {
3827
3854
  verifierLinkedVpVerify(walletId: string, did: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifiedLinkedVp[], any>>;
3828
3855
  /**
3829
3856
  * Creates a new wallet for the authenticated client.
3830
- * @param {Wallet} [wallet]
3857
+ * @param {WalletCreatePayload} [walletCreatePayload]
3831
3858
  * @param {*} [options] Override http request option.
3832
3859
  * @throws {RequiredError}
3833
3860
  * @memberof DefaultApi
3834
3861
  */
3835
- walletCreate(wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdObject, any>>;
3862
+ walletCreate(walletCreatePayload?: WalletCreatePayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdObject, any>>;
3836
3863
  /**
3837
3864
  * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
3838
3865
  * @param {string} walletId
package/api.js CHANGED
@@ -1421,11 +1421,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1421
1421
  }),
1422
1422
  /**
1423
1423
  * Creates a new wallet for the authenticated client.
1424
- * @param {Wallet} [wallet]
1424
+ * @param {WalletCreatePayload} [walletCreatePayload]
1425
1425
  * @param {*} [options] Override http request option.
1426
1426
  * @throws {RequiredError}
1427
1427
  */
1428
- walletCreate: (wallet, options = {}) => __awaiter(this, void 0, void 0, function* () {
1428
+ walletCreate: (walletCreatePayload, options = {}) => __awaiter(this, void 0, void 0, function* () {
1429
1429
  const localVarPath = `/wallets`;
1430
1430
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1431
1431
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1443,7 +1443,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1443
1443
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1444
1444
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1445
1445
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1446
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wallet, localVarRequestOptions, configuration);
1446
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(walletCreatePayload, localVarRequestOptions, configuration);
1447
1447
  return {
1448
1448
  url: (0, common_1.toPathString)(localVarUrlObj),
1449
1449
  options: localVarRequestOptions,
@@ -2370,14 +2370,14 @@ const DefaultApiFp = function (configuration) {
2370
2370
  },
2371
2371
  /**
2372
2372
  * Creates a new wallet for the authenticated client.
2373
- * @param {Wallet} [wallet]
2373
+ * @param {WalletCreatePayload} [walletCreatePayload]
2374
2374
  * @param {*} [options] Override http request option.
2375
2375
  * @throws {RequiredError}
2376
2376
  */
2377
- walletCreate(wallet, options) {
2377
+ walletCreate(walletCreatePayload, options) {
2378
2378
  var _a, _b, _c;
2379
2379
  return __awaiter(this, void 0, void 0, function* () {
2380
- const localVarAxiosArgs = yield localVarAxiosParamCreator.walletCreate(wallet, options);
2380
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletCreate(walletCreatePayload, options);
2381
2381
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2382
2382
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2383
2383
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2908,12 +2908,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2908
2908
  },
2909
2909
  /**
2910
2910
  * Creates a new wallet for the authenticated client.
2911
- * @param {Wallet} [wallet]
2911
+ * @param {WalletCreatePayload} [walletCreatePayload]
2912
2912
  * @param {*} [options] Override http request option.
2913
2913
  * @throws {RequiredError}
2914
2914
  */
2915
- walletCreate(wallet, options) {
2916
- return localVarFp.walletCreate(wallet, options).then((request) => request(axios, basePath));
2915
+ walletCreate(walletCreatePayload, options) {
2916
+ return localVarFp.walletCreate(walletCreatePayload, options).then((request) => request(axios, basePath));
2917
2917
  },
2918
2918
  /**
2919
2919
  * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
@@ -3415,13 +3415,13 @@ class DefaultApi extends base_1.BaseAPI {
3415
3415
  }
3416
3416
  /**
3417
3417
  * Creates a new wallet for the authenticated client.
3418
- * @param {Wallet} [wallet]
3418
+ * @param {WalletCreatePayload} [walletCreatePayload]
3419
3419
  * @param {*} [options] Override http request option.
3420
3420
  * @throws {RequiredError}
3421
3421
  * @memberof DefaultApi
3422
3422
  */
3423
- walletCreate(wallet, options) {
3424
- return (0, exports.DefaultApiFp)(this.configuration).walletCreate(wallet, options).then((request) => request(this.axios, this.basePath));
3423
+ walletCreate(walletCreatePayload, options) {
3424
+ return (0, exports.DefaultApiFp)(this.configuration).walletCreate(walletCreatePayload, options).then((request) => request(this.axios, this.basePath));
3425
3425
  }
3426
3426
  /**
3427
3427
  * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.232",
4
+ "version": "0.0.234",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {