@triveria/wallet 0.0.258 → 0.0.259

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 +65 -65
  2. package/api.js +58 -58
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -415,6 +415,39 @@ export interface EbsiSpecificWalletData {
415
415
  'proxyUrl'?: string;
416
416
  'configuration': EbsiConfiguration;
417
417
  }
418
+ /**
419
+ * Prepares to accredit legal entity\'s DID
420
+ */
421
+ export interface EntityAccreditationRequest {
422
+ 'did': string;
423
+ 'type': EntityAccreditationRequestTypeEnum;
424
+ /**
425
+ * Base64 encoded json to be used for the `accreditedFor` property of the credential
426
+ */
427
+ 'accreditedFor': string;
428
+ /**
429
+ * Specifies when will the accreditation credential expire
430
+ */
431
+ 'validUntil': string;
432
+ }
433
+ export declare const EntityAccreditationRequestTypeEnum: {
434
+ readonly TrustedIssuer: "TrustedIssuer";
435
+ readonly TrustedAccreditationOrganisation: "TrustedAccreditationOrganisation";
436
+ };
437
+ export type EntityAccreditationRequestTypeEnum = typeof EntityAccreditationRequestTypeEnum[keyof typeof EntityAccreditationRequestTypeEnum];
438
+ /**
439
+ * Prepares to onboard legal entity\'s DID
440
+ */
441
+ export interface EntityOnboardingRequest {
442
+ /**
443
+ * DID which will be onboarded
444
+ */
445
+ 'did': string;
446
+ /**
447
+ * Specifies when the authorization to onboard credential will expire
448
+ */
449
+ 'validUntil': string;
450
+ }
418
451
  /**
419
452
  * Configuration for EUDI trust framework. The field didTrustFramework marks which DID TF is used when the wallet uses did as its identifier.
420
453
  */
@@ -701,39 +734,6 @@ export interface PreAuthOffer {
701
734
  'validUntil': string;
702
735
  'offerId': string;
703
736
  }
704
- /**
705
- * Prepares to accredit legal entity\'s DID
706
- */
707
- export interface PrepareToAccreditRequest {
708
- 'did': string;
709
- 'type': PrepareToAccreditRequestTypeEnum;
710
- /**
711
- * Base64 encoded json to be used for the `accreditedFor` property of the credential
712
- */
713
- 'accreditedFor': string;
714
- /**
715
- * Specifies when will the accreditation credential expire
716
- */
717
- 'validUntil': string;
718
- }
719
- export declare const PrepareToAccreditRequestTypeEnum: {
720
- readonly TrustedIssuer: "TrustedIssuer";
721
- readonly TrustedAccreditationOrganisation: "TrustedAccreditationOrganisation";
722
- };
723
- export type PrepareToAccreditRequestTypeEnum = typeof PrepareToAccreditRequestTypeEnum[keyof typeof PrepareToAccreditRequestTypeEnum];
724
- /**
725
- * Prepares to onboard legal entity\'s DID
726
- */
727
- export interface PrepareToOnboardRequest {
728
- /**
729
- * DID which will be onboarded
730
- */
731
- 'did': string;
732
- /**
733
- * Specifies when the authorization to onboard credential will expire
734
- */
735
- 'validUntil': string;
736
- }
737
737
  export interface PresentationDefinition {
738
738
  'id': string;
739
739
  'format': PresentationDefinitionFormat;
@@ -1294,28 +1294,28 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1294
1294
  */
1295
1295
  tfAccreditAs: (walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1296
1296
  /**
1297
- * Onboards legal entity to the trust framework based on the wallet configuration.
1297
+ * Processes a request to accredit another legal entity.
1298
1298
  * @param {string} walletId
1299
+ * @param {EntityAccreditationRequest} [entityAccreditationRequest]
1299
1300
  * @param {*} [options] Override http request option.
1300
1301
  * @throws {RequiredError}
1301
1302
  */
1302
- tfOnboard: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1303
+ tfAccreditRequest: (walletId: string, entityAccreditationRequest?: EntityAccreditationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1303
1304
  /**
1304
- * Prepares another legal entity\'s wallet DID for accreditation.
1305
+ * Onboards legal entity to the trust framework based on the wallet configuration.
1305
1306
  * @param {string} walletId
1306
- * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
1307
1307
  * @param {*} [options] Override http request option.
1308
1308
  * @throws {RequiredError}
1309
1309
  */
1310
- tfPrepareToAccredit: (walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1310
+ tfOnboard: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1311
1311
  /**
1312
- * Prepares another legal entity\'s wallet DID for onboarding.
1312
+ * Processes a request to onboard another legal entity.
1313
1313
  * @param {string} walletId
1314
- * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
1314
+ * @param {EntityOnboardingRequest} [entityOnboardingRequest]
1315
1315
  * @param {*} [options] Override http request option.
1316
1316
  * @throws {RequiredError}
1317
1317
  */
1318
- tfPrepareToOnboard: (walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1318
+ tfOnboardRequest: (walletId: string, entityOnboardingRequest?: EntityOnboardingRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1319
1319
  /**
1320
1320
  * Revokes another legal entity\'s wallet DID accreditation.
1321
1321
  * @param {string} walletId
@@ -1756,28 +1756,28 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1756
1756
  */
1757
1757
  tfAccreditAs(walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1758
1758
  /**
1759
- * Onboards legal entity to the trust framework based on the wallet configuration.
1759
+ * Processes a request to accredit another legal entity.
1760
1760
  * @param {string} walletId
1761
+ * @param {EntityAccreditationRequest} [entityAccreditationRequest]
1761
1762
  * @param {*} [options] Override http request option.
1762
1763
  * @throws {RequiredError}
1763
1764
  */
1764
- tfOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnboardResult>>;
1765
+ tfAccreditRequest(walletId: string, entityAccreditationRequest?: EntityAccreditationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1765
1766
  /**
1766
- * Prepares another legal entity\'s wallet DID for accreditation.
1767
+ * Onboards legal entity to the trust framework based on the wallet configuration.
1767
1768
  * @param {string} walletId
1768
- * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
1769
1769
  * @param {*} [options] Override http request option.
1770
1770
  * @throws {RequiredError}
1771
1771
  */
1772
- tfPrepareToAccredit(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1772
+ tfOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnboardResult>>;
1773
1773
  /**
1774
- * Prepares another legal entity\'s wallet DID for onboarding.
1774
+ * Processes a request to onboard another legal entity.
1775
1775
  * @param {string} walletId
1776
- * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
1776
+ * @param {EntityOnboardingRequest} [entityOnboardingRequest]
1777
1777
  * @param {*} [options] Override http request option.
1778
1778
  * @throws {RequiredError}
1779
1779
  */
1780
- tfPrepareToOnboard(walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1780
+ tfOnboardRequest(walletId: string, entityOnboardingRequest?: EntityOnboardingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1781
1781
  /**
1782
1782
  * Revokes another legal entity\'s wallet DID accreditation.
1783
1783
  * @param {string} walletId
@@ -2220,28 +2220,28 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2220
2220
  */
2221
2221
  tfAccreditAs(walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2222
2222
  /**
2223
- * Onboards legal entity to the trust framework based on the wallet configuration.
2223
+ * Processes a request to accredit another legal entity.
2224
2224
  * @param {string} walletId
2225
+ * @param {EntityAccreditationRequest} [entityAccreditationRequest]
2225
2226
  * @param {*} [options] Override http request option.
2226
2227
  * @throws {RequiredError}
2227
2228
  */
2228
- tfOnboard(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<OnboardResult>;
2229
+ tfAccreditRequest(walletId: string, entityAccreditationRequest?: EntityAccreditationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2229
2230
  /**
2230
- * Prepares another legal entity\'s wallet DID for accreditation.
2231
+ * Onboards legal entity to the trust framework based on the wallet configuration.
2231
2232
  * @param {string} walletId
2232
- * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2233
2233
  * @param {*} [options] Override http request option.
2234
2234
  * @throws {RequiredError}
2235
2235
  */
2236
- tfPrepareToAccredit(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2236
+ tfOnboard(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<OnboardResult>;
2237
2237
  /**
2238
- * Prepares another legal entity\'s wallet DID for onboarding.
2238
+ * Processes a request to onboard another legal entity.
2239
2239
  * @param {string} walletId
2240
- * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
2240
+ * @param {EntityOnboardingRequest} [entityOnboardingRequest]
2241
2241
  * @param {*} [options] Override http request option.
2242
2242
  * @throws {RequiredError}
2243
2243
  */
2244
- tfPrepareToOnboard(walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2244
+ tfOnboardRequest(walletId: string, entityOnboardingRequest?: EntityOnboardingRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2245
2245
  /**
2246
2246
  * Revokes another legal entity\'s wallet DID accreditation.
2247
2247
  * @param {string} walletId
@@ -2684,28 +2684,28 @@ export declare class DefaultApi extends BaseAPI {
2684
2684
  */
2685
2685
  tfAccreditAs(walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2686
2686
  /**
2687
- * Onboards legal entity to the trust framework based on the wallet configuration.
2687
+ * Processes a request to accredit another legal entity.
2688
2688
  * @param {string} walletId
2689
+ * @param {EntityAccreditationRequest} [entityAccreditationRequest]
2689
2690
  * @param {*} [options] Override http request option.
2690
2691
  * @throws {RequiredError}
2691
2692
  */
2692
- tfOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OnboardResult, any>>;
2693
+ tfAccreditRequest(walletId: string, entityAccreditationRequest?: EntityAccreditationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2693
2694
  /**
2694
- * Prepares another legal entity\'s wallet DID for accreditation.
2695
+ * Onboards legal entity to the trust framework based on the wallet configuration.
2695
2696
  * @param {string} walletId
2696
- * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2697
2697
  * @param {*} [options] Override http request option.
2698
2698
  * @throws {RequiredError}
2699
2699
  */
2700
- tfPrepareToAccredit(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2700
+ tfOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OnboardResult, any>>;
2701
2701
  /**
2702
- * Prepares another legal entity\'s wallet DID for onboarding.
2702
+ * Processes a request to onboard another legal entity.
2703
2703
  * @param {string} walletId
2704
- * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
2704
+ * @param {EntityOnboardingRequest} [entityOnboardingRequest]
2705
2705
  * @param {*} [options] Override http request option.
2706
2706
  * @throws {RequiredError}
2707
2707
  */
2708
- tfPrepareToOnboard(walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2708
+ tfOnboardRequest(walletId: string, entityOnboardingRequest?: EntityOnboardingRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2709
2709
  /**
2710
2710
  * Revokes another legal entity\'s wallet DID accreditation.
2711
2711
  * @param {string} walletId
package/api.js CHANGED
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.XadesSignatureType = exports.WalletNotificationEventType = exports.WalletCapability = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ObjectVerticalAlignment = exports.ObjectHorizontalAlignment = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DocumentSignatureValidityVerificationResultEnum = exports.DeferredStatusEnum = exports.CredentialNotificationEventTypeEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.AccreditationRequestTypeEnum = void 0;
28
+ exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.XadesSignatureType = exports.WalletNotificationEventType = exports.WalletCapability = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ObjectVerticalAlignment = exports.ObjectHorizontalAlignment = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.EntityAccreditationRequestTypeEnum = exports.DocumentSignatureValidityVerificationResultEnum = exports.DeferredStatusEnum = exports.CredentialNotificationEventTypeEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.AccreditationRequestTypeEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -80,6 +80,10 @@ exports.DocumentSignatureValidityVerificationResultEnum = {
80
80
  Expired: 'expired',
81
81
  UntrustedCertificate: 'untrusted_certificate'
82
82
  };
83
+ exports.EntityAccreditationRequestTypeEnum = {
84
+ TrustedIssuer: 'TrustedIssuer',
85
+ TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation'
86
+ };
83
87
  exports.HealthStatusStatusEnum = {
84
88
  Ok: 'ok',
85
89
  Limited: 'limited',
@@ -116,10 +120,6 @@ exports.OidcRevisionOidc4vpEnum = {
116
120
  Draft16: 'Draft16',
117
121
  Draft23: 'Draft23'
118
122
  };
119
- exports.PrepareToAccreditRequestTypeEnum = {
120
- TrustedIssuer: 'TrustedIssuer',
121
- TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation'
122
- };
123
123
  exports.PresentationDefinitionSubmissionRequirementsRuleEnum = {
124
124
  All: 'all',
125
125
  Pick: 'pick'
@@ -1377,15 +1377,16 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1377
1377
  };
1378
1378
  }),
1379
1379
  /**
1380
- * Onboards legal entity to the trust framework based on the wallet configuration.
1380
+ * Processes a request to accredit another legal entity.
1381
1381
  * @param {string} walletId
1382
+ * @param {EntityAccreditationRequest} [entityAccreditationRequest]
1382
1383
  * @param {*} [options] Override http request option.
1383
1384
  * @throws {RequiredError}
1384
1385
  */
1385
- tfOnboard: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1386
+ tfAccreditRequest: (walletId, entityAccreditationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1386
1387
  // verify required parameter 'walletId' is not null or undefined
1387
- (0, common_1.assertParamExists)('tfOnboard', 'walletId', walletId);
1388
- const localVarPath = `/tf/{wallet_id}/onboard`
1388
+ (0, common_1.assertParamExists)('tfAccreditRequest', 'walletId', walletId);
1389
+ const localVarPath = `/tf/{wallet_id}/accreditation_request`
1389
1390
  .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1390
1391
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1391
1392
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1399,25 +1400,26 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1399
1400
  // authentication accessToken required
1400
1401
  // http bearer authentication required
1401
1402
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1403
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1402
1404
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1403
1405
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1404
1406
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1407
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(entityAccreditationRequest, localVarRequestOptions, configuration);
1405
1408
  return {
1406
1409
  url: (0, common_1.toPathString)(localVarUrlObj),
1407
1410
  options: localVarRequestOptions,
1408
1411
  };
1409
1412
  }),
1410
1413
  /**
1411
- * Prepares another legal entity\'s wallet DID for accreditation.
1414
+ * Onboards legal entity to the trust framework based on the wallet configuration.
1412
1415
  * @param {string} walletId
1413
- * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
1414
1416
  * @param {*} [options] Override http request option.
1415
1417
  * @throws {RequiredError}
1416
1418
  */
1417
- tfPrepareToAccredit: (walletId, prepareToAccreditRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1419
+ tfOnboard: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1418
1420
  // verify required parameter 'walletId' is not null or undefined
1419
- (0, common_1.assertParamExists)('tfPrepareToAccredit', 'walletId', walletId);
1420
- const localVarPath = `/tf/{wallet_id}/prepare-to-accredit`
1421
+ (0, common_1.assertParamExists)('tfOnboard', 'walletId', walletId);
1422
+ const localVarPath = `/tf/{wallet_id}/onboard`
1421
1423
  .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1422
1424
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1423
1425
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1431,27 +1433,25 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1431
1433
  // authentication accessToken required
1432
1434
  // http bearer authentication required
1433
1435
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1434
- localVarHeaderParameter['Content-Type'] = 'application/json';
1435
1436
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1436
1437
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1437
1438
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1438
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(prepareToAccreditRequest, localVarRequestOptions, configuration);
1439
1439
  return {
1440
1440
  url: (0, common_1.toPathString)(localVarUrlObj),
1441
1441
  options: localVarRequestOptions,
1442
1442
  };
1443
1443
  }),
1444
1444
  /**
1445
- * Prepares another legal entity\'s wallet DID for onboarding.
1445
+ * Processes a request to onboard another legal entity.
1446
1446
  * @param {string} walletId
1447
- * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
1447
+ * @param {EntityOnboardingRequest} [entityOnboardingRequest]
1448
1448
  * @param {*} [options] Override http request option.
1449
1449
  * @throws {RequiredError}
1450
1450
  */
1451
- tfPrepareToOnboard: (walletId, prepareToOnboardRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1451
+ tfOnboardRequest: (walletId, entityOnboardingRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1452
1452
  // verify required parameter 'walletId' is not null or undefined
1453
- (0, common_1.assertParamExists)('tfPrepareToOnboard', 'walletId', walletId);
1454
- const localVarPath = `/tf/{wallet_id}/prepare-to-onboard`
1453
+ (0, common_1.assertParamExists)('tfOnboardRequest', 'walletId', walletId);
1454
+ const localVarPath = `/tf/{wallet_id}/onboard_request`
1455
1455
  .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1456
1456
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1457
1457
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1469,7 +1469,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1469
1469
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1470
1470
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1471
1471
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1472
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(prepareToOnboardRequest, localVarRequestOptions, configuration);
1472
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(entityOnboardingRequest, localVarRequestOptions, configuration);
1473
1473
  return {
1474
1474
  url: (0, common_1.toPathString)(localVarUrlObj),
1475
1475
  options: localVarRequestOptions,
@@ -2751,49 +2751,49 @@ const DefaultApiFp = function (configuration) {
2751
2751
  });
2752
2752
  },
2753
2753
  /**
2754
- * Onboards legal entity to the trust framework based on the wallet configuration.
2754
+ * Processes a request to accredit another legal entity.
2755
2755
  * @param {string} walletId
2756
+ * @param {EntityAccreditationRequest} [entityAccreditationRequest]
2756
2757
  * @param {*} [options] Override http request option.
2757
2758
  * @throws {RequiredError}
2758
2759
  */
2759
- tfOnboard(walletId, options) {
2760
+ tfAccreditRequest(walletId, entityAccreditationRequest, options) {
2760
2761
  var _a, _b, _c;
2761
2762
  return __awaiter(this, void 0, void 0, function* () {
2762
- const localVarAxiosArgs = yield localVarAxiosParamCreator.tfOnboard(walletId, options);
2763
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tfAccreditRequest(walletId, entityAccreditationRequest, options);
2763
2764
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2764
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tfOnboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2765
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tfAccreditRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2765
2766
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2766
2767
  });
2767
2768
  },
2768
2769
  /**
2769
- * Prepares another legal entity\'s wallet DID for accreditation.
2770
+ * Onboards legal entity to the trust framework based on the wallet configuration.
2770
2771
  * @param {string} walletId
2771
- * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2772
2772
  * @param {*} [options] Override http request option.
2773
2773
  * @throws {RequiredError}
2774
2774
  */
2775
- tfPrepareToAccredit(walletId, prepareToAccreditRequest, options) {
2775
+ tfOnboard(walletId, options) {
2776
2776
  var _a, _b, _c;
2777
2777
  return __awaiter(this, void 0, void 0, function* () {
2778
- const localVarAxiosArgs = yield localVarAxiosParamCreator.tfPrepareToAccredit(walletId, prepareToAccreditRequest, options);
2778
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tfOnboard(walletId, options);
2779
2779
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2780
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tfPrepareToAccredit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2780
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tfOnboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2781
2781
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2782
2782
  });
2783
2783
  },
2784
2784
  /**
2785
- * Prepares another legal entity\'s wallet DID for onboarding.
2785
+ * Processes a request to onboard another legal entity.
2786
2786
  * @param {string} walletId
2787
- * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
2787
+ * @param {EntityOnboardingRequest} [entityOnboardingRequest]
2788
2788
  * @param {*} [options] Override http request option.
2789
2789
  * @throws {RequiredError}
2790
2790
  */
2791
- tfPrepareToOnboard(walletId, prepareToOnboardRequest, options) {
2791
+ tfOnboardRequest(walletId, entityOnboardingRequest, options) {
2792
2792
  var _a, _b, _c;
2793
2793
  return __awaiter(this, void 0, void 0, function* () {
2794
- const localVarAxiosArgs = yield localVarAxiosParamCreator.tfPrepareToOnboard(walletId, prepareToOnboardRequest, options);
2794
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tfOnboardRequest(walletId, entityOnboardingRequest, options);
2795
2795
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2796
- 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;
2796
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tfOnboardRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2797
2797
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2798
2798
  });
2799
2799
  },
@@ -3473,33 +3473,33 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
3473
3473
  return localVarFp.tfAccreditAs(walletId, accreditationRequest, options).then((request) => request(axios, basePath));
3474
3474
  },
3475
3475
  /**
3476
- * Onboards legal entity to the trust framework based on the wallet configuration.
3476
+ * Processes a request to accredit another legal entity.
3477
3477
  * @param {string} walletId
3478
+ * @param {EntityAccreditationRequest} [entityAccreditationRequest]
3478
3479
  * @param {*} [options] Override http request option.
3479
3480
  * @throws {RequiredError}
3480
3481
  */
3481
- tfOnboard(walletId, options) {
3482
- return localVarFp.tfOnboard(walletId, options).then((request) => request(axios, basePath));
3482
+ tfAccreditRequest(walletId, entityAccreditationRequest, options) {
3483
+ return localVarFp.tfAccreditRequest(walletId, entityAccreditationRequest, options).then((request) => request(axios, basePath));
3483
3484
  },
3484
3485
  /**
3485
- * Prepares another legal entity\'s wallet DID for accreditation.
3486
+ * Onboards legal entity to the trust framework based on the wallet configuration.
3486
3487
  * @param {string} walletId
3487
- * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
3488
3488
  * @param {*} [options] Override http request option.
3489
3489
  * @throws {RequiredError}
3490
3490
  */
3491
- tfPrepareToAccredit(walletId, prepareToAccreditRequest, options) {
3492
- return localVarFp.tfPrepareToAccredit(walletId, prepareToAccreditRequest, options).then((request) => request(axios, basePath));
3491
+ tfOnboard(walletId, options) {
3492
+ return localVarFp.tfOnboard(walletId, options).then((request) => request(axios, basePath));
3493
3493
  },
3494
3494
  /**
3495
- * Prepares another legal entity\'s wallet DID for onboarding.
3495
+ * Processes a request to onboard another legal entity.
3496
3496
  * @param {string} walletId
3497
- * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
3497
+ * @param {EntityOnboardingRequest} [entityOnboardingRequest]
3498
3498
  * @param {*} [options] Override http request option.
3499
3499
  * @throws {RequiredError}
3500
3500
  */
3501
- tfPrepareToOnboard(walletId, prepareToOnboardRequest, options) {
3502
- return localVarFp.tfPrepareToOnboard(walletId, prepareToOnboardRequest, options).then((request) => request(axios, basePath));
3501
+ tfOnboardRequest(walletId, entityOnboardingRequest, options) {
3502
+ return localVarFp.tfOnboardRequest(walletId, entityOnboardingRequest, options).then((request) => request(axios, basePath));
3503
3503
  },
3504
3504
  /**
3505
3505
  * Revokes another legal entity\'s wallet DID accreditation.
@@ -4049,33 +4049,33 @@ class DefaultApi extends base_1.BaseAPI {
4049
4049
  return (0, exports.DefaultApiFp)(this.configuration).tfAccreditAs(walletId, accreditationRequest, options).then((request) => request(this.axios, this.basePath));
4050
4050
  }
4051
4051
  /**
4052
- * Onboards legal entity to the trust framework based on the wallet configuration.
4052
+ * Processes a request to accredit another legal entity.
4053
4053
  * @param {string} walletId
4054
+ * @param {EntityAccreditationRequest} [entityAccreditationRequest]
4054
4055
  * @param {*} [options] Override http request option.
4055
4056
  * @throws {RequiredError}
4056
4057
  */
4057
- tfOnboard(walletId, options) {
4058
- return (0, exports.DefaultApiFp)(this.configuration).tfOnboard(walletId, options).then((request) => request(this.axios, this.basePath));
4058
+ tfAccreditRequest(walletId, entityAccreditationRequest, options) {
4059
+ return (0, exports.DefaultApiFp)(this.configuration).tfAccreditRequest(walletId, entityAccreditationRequest, options).then((request) => request(this.axios, this.basePath));
4059
4060
  }
4060
4061
  /**
4061
- * Prepares another legal entity\'s wallet DID for accreditation.
4062
+ * Onboards legal entity to the trust framework based on the wallet configuration.
4062
4063
  * @param {string} walletId
4063
- * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
4064
4064
  * @param {*} [options] Override http request option.
4065
4065
  * @throws {RequiredError}
4066
4066
  */
4067
- tfPrepareToAccredit(walletId, prepareToAccreditRequest, options) {
4068
- return (0, exports.DefaultApiFp)(this.configuration).tfPrepareToAccredit(walletId, prepareToAccreditRequest, options).then((request) => request(this.axios, this.basePath));
4067
+ tfOnboard(walletId, options) {
4068
+ return (0, exports.DefaultApiFp)(this.configuration).tfOnboard(walletId, options).then((request) => request(this.axios, this.basePath));
4069
4069
  }
4070
4070
  /**
4071
- * Prepares another legal entity\'s wallet DID for onboarding.
4071
+ * Processes a request to onboard another legal entity.
4072
4072
  * @param {string} walletId
4073
- * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
4073
+ * @param {EntityOnboardingRequest} [entityOnboardingRequest]
4074
4074
  * @param {*} [options] Override http request option.
4075
4075
  * @throws {RequiredError}
4076
4076
  */
4077
- tfPrepareToOnboard(walletId, prepareToOnboardRequest, options) {
4078
- return (0, exports.DefaultApiFp)(this.configuration).tfPrepareToOnboard(walletId, prepareToOnboardRequest, options).then((request) => request(this.axios, this.basePath));
4077
+ tfOnboardRequest(walletId, entityOnboardingRequest, options) {
4078
+ return (0, exports.DefaultApiFp)(this.configuration).tfOnboardRequest(walletId, entityOnboardingRequest, options).then((request) => request(this.axios, this.basePath));
4079
4079
  }
4080
4080
  /**
4081
4081
  * 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.258",
4
+ "version": "0.0.259",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {