@triveria/wallet 0.0.193 → 0.0.195

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 +21 -4
  2. package/api.js +13 -7
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -1344,6 +1344,19 @@ export declare const PrepareToAccreditRequestTypeEnum: {
1344
1344
  readonly TrustedAccreditationOrganisation: "TrustedAccreditationOrganisation";
1345
1345
  };
1346
1346
  export type PrepareToAccreditRequestTypeEnum = typeof PrepareToAccreditRequestTypeEnum[keyof typeof PrepareToAccreditRequestTypeEnum];
1347
+ /**
1348
+ * Prepares to onboard legal entity\'s DID
1349
+ * @export
1350
+ * @interface PrepareToOnboardRequest
1351
+ */
1352
+ export interface PrepareToOnboardRequest {
1353
+ /**
1354
+ * DID which will be onboarded
1355
+ * @type {string}
1356
+ * @memberof PrepareToOnboardRequest
1357
+ */
1358
+ 'did': string;
1359
+ }
1347
1360
  /**
1348
1361
  *
1349
1362
  * @export
@@ -2221,10 +2234,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2221
2234
  /**
2222
2235
  * Prepares another legal entity\'s wallet DID for onboarding.
2223
2236
  * @param {string} walletId
2237
+ * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
2224
2238
  * @param {*} [options] Override http request option.
2225
2239
  * @throws {RequiredError}
2226
2240
  */
2227
- tfPrepareToOnboard: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2241
+ tfPrepareToOnboard: (walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2228
2242
  /**
2229
2243
  * Revokes another legal entity\'s wallet DID accreditation.
2230
2244
  * @param {string} walletId
@@ -2554,10 +2568,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2554
2568
  /**
2555
2569
  * Prepares another legal entity\'s wallet DID for onboarding.
2556
2570
  * @param {string} walletId
2571
+ * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
2557
2572
  * @param {*} [options] Override http request option.
2558
2573
  * @throws {RequiredError}
2559
2574
  */
2560
- tfPrepareToOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2575
+ tfPrepareToOnboard(walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2561
2576
  /**
2562
2577
  * Revokes another legal entity\'s wallet DID accreditation.
2563
2578
  * @param {string} walletId
@@ -2887,10 +2902,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2887
2902
  /**
2888
2903
  * Prepares another legal entity\'s wallet DID for onboarding.
2889
2904
  * @param {string} walletId
2905
+ * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
2890
2906
  * @param {*} [options] Override http request option.
2891
2907
  * @throws {RequiredError}
2892
2908
  */
2893
- tfPrepareToOnboard(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2909
+ tfPrepareToOnboard(walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2894
2910
  /**
2895
2911
  * Revokes another legal entity\'s wallet DID accreditation.
2896
2912
  * @param {string} walletId
@@ -3250,11 +3266,12 @@ export declare class DefaultApi extends BaseAPI {
3250
3266
  /**
3251
3267
  * Prepares another legal entity\'s wallet DID for onboarding.
3252
3268
  * @param {string} walletId
3269
+ * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
3253
3270
  * @param {*} [options] Override http request option.
3254
3271
  * @throws {RequiredError}
3255
3272
  * @memberof DefaultApi
3256
3273
  */
3257
- tfPrepareToOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3274
+ tfPrepareToOnboard(walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3258
3275
  /**
3259
3276
  * Revokes another legal entity\'s wallet DID accreditation.
3260
3277
  * @param {string} walletId
package/api.js CHANGED
@@ -1137,10 +1137,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1137
1137
  /**
1138
1138
  * Prepares another legal entity\'s wallet DID for onboarding.
1139
1139
  * @param {string} walletId
1140
+ * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
1140
1141
  * @param {*} [options] Override http request option.
1141
1142
  * @throws {RequiredError}
1142
1143
  */
1143
- tfPrepareToOnboard: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1144
+ tfPrepareToOnboard: (walletId, prepareToOnboardRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1144
1145
  // verify required parameter 'walletId' is not null or undefined
1145
1146
  (0, common_1.assertParamExists)('tfPrepareToOnboard', 'walletId', walletId);
1146
1147
  const localVarPath = `/tf/{wallet_id}/prepare-to-onboard`
@@ -1157,9 +1158,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1157
1158
  // authentication accessToken required
1158
1159
  // http bearer authentication required
1159
1160
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1161
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1160
1162
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1161
1163
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1162
1164
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1165
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(prepareToOnboardRequest, localVarRequestOptions, configuration);
1163
1166
  return {
1164
1167
  url: (0, common_1.toPathString)(localVarUrlObj),
1165
1168
  options: localVarRequestOptions,
@@ -2035,13 +2038,14 @@ const DefaultApiFp = function (configuration) {
2035
2038
  /**
2036
2039
  * Prepares another legal entity\'s wallet DID for onboarding.
2037
2040
  * @param {string} walletId
2041
+ * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
2038
2042
  * @param {*} [options] Override http request option.
2039
2043
  * @throws {RequiredError}
2040
2044
  */
2041
- tfPrepareToOnboard(walletId, options) {
2045
+ tfPrepareToOnboard(walletId, prepareToOnboardRequest, options) {
2042
2046
  var _a, _b, _c;
2043
2047
  return __awaiter(this, void 0, void 0, function* () {
2044
- const localVarAxiosArgs = yield localVarAxiosParamCreator.tfPrepareToOnboard(walletId, options);
2048
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tfPrepareToOnboard(walletId, prepareToOnboardRequest, options);
2045
2049
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2046
2050
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tfPrepareToOnboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2047
2051
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2532,11 +2536,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2532
2536
  /**
2533
2537
  * Prepares another legal entity\'s wallet DID for onboarding.
2534
2538
  * @param {string} walletId
2539
+ * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
2535
2540
  * @param {*} [options] Override http request option.
2536
2541
  * @throws {RequiredError}
2537
2542
  */
2538
- tfPrepareToOnboard(walletId, options) {
2539
- return localVarFp.tfPrepareToOnboard(walletId, options).then((request) => request(axios, basePath));
2543
+ tfPrepareToOnboard(walletId, prepareToOnboardRequest, options) {
2544
+ return localVarFp.tfPrepareToOnboard(walletId, prepareToOnboardRequest, options).then((request) => request(axios, basePath));
2540
2545
  },
2541
2546
  /**
2542
2547
  * Revokes another legal entity\'s wallet DID accreditation.
@@ -2979,12 +2984,13 @@ class DefaultApi extends base_1.BaseAPI {
2979
2984
  /**
2980
2985
  * Prepares another legal entity\'s wallet DID for onboarding.
2981
2986
  * @param {string} walletId
2987
+ * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
2982
2988
  * @param {*} [options] Override http request option.
2983
2989
  * @throws {RequiredError}
2984
2990
  * @memberof DefaultApi
2985
2991
  */
2986
- tfPrepareToOnboard(walletId, options) {
2987
- return (0, exports.DefaultApiFp)(this.configuration).tfPrepareToOnboard(walletId, options).then((request) => request(this.axios, this.basePath));
2992
+ tfPrepareToOnboard(walletId, prepareToOnboardRequest, options) {
2993
+ return (0, exports.DefaultApiFp)(this.configuration).tfPrepareToOnboard(walletId, prepareToOnboardRequest, options).then((request) => request(this.axios, this.basePath));
2988
2994
  }
2989
2995
  /**
2990
2996
  * Revokes another legal entity\'s wallet DID accreditation.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.193",
4
+ "version": "0.0.195",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {