@triveria/wallet 0.0.193 → 0.0.194

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 +27 -4
  2. package/api.js +13 -7
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -1344,6 +1344,25 @@ 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
+ /**
1360
+ * The client ID that will be used during the credential offer interaction. Most likely the DID Key of the legal\'s entity wallet.
1361
+ * @type {string}
1362
+ * @memberof PrepareToOnboardRequest
1363
+ */
1364
+ 'clientId': string;
1365
+ }
1347
1366
  /**
1348
1367
  *
1349
1368
  * @export
@@ -2221,10 +2240,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2221
2240
  /**
2222
2241
  * Prepares another legal entity\'s wallet DID for onboarding.
2223
2242
  * @param {string} walletId
2243
+ * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
2224
2244
  * @param {*} [options] Override http request option.
2225
2245
  * @throws {RequiredError}
2226
2246
  */
2227
- tfPrepareToOnboard: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2247
+ tfPrepareToOnboard: (walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2228
2248
  /**
2229
2249
  * Revokes another legal entity\'s wallet DID accreditation.
2230
2250
  * @param {string} walletId
@@ -2554,10 +2574,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2554
2574
  /**
2555
2575
  * Prepares another legal entity\'s wallet DID for onboarding.
2556
2576
  * @param {string} walletId
2577
+ * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
2557
2578
  * @param {*} [options] Override http request option.
2558
2579
  * @throws {RequiredError}
2559
2580
  */
2560
- tfPrepareToOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2581
+ tfPrepareToOnboard(walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2561
2582
  /**
2562
2583
  * Revokes another legal entity\'s wallet DID accreditation.
2563
2584
  * @param {string} walletId
@@ -2887,10 +2908,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2887
2908
  /**
2888
2909
  * Prepares another legal entity\'s wallet DID for onboarding.
2889
2910
  * @param {string} walletId
2911
+ * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
2890
2912
  * @param {*} [options] Override http request option.
2891
2913
  * @throws {RequiredError}
2892
2914
  */
2893
- tfPrepareToOnboard(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2915
+ tfPrepareToOnboard(walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2894
2916
  /**
2895
2917
  * Revokes another legal entity\'s wallet DID accreditation.
2896
2918
  * @param {string} walletId
@@ -3250,11 +3272,12 @@ export declare class DefaultApi extends BaseAPI {
3250
3272
  /**
3251
3273
  * Prepares another legal entity\'s wallet DID for onboarding.
3252
3274
  * @param {string} walletId
3275
+ * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
3253
3276
  * @param {*} [options] Override http request option.
3254
3277
  * @throws {RequiredError}
3255
3278
  * @memberof DefaultApi
3256
3279
  */
3257
- tfPrepareToOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3280
+ tfPrepareToOnboard(walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3258
3281
  /**
3259
3282
  * Revokes another legal entity\'s wallet DID accreditation.
3260
3283
  * @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.194",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {