@triveria/wallet 0.0.258 → 0.0.260

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 +77 -67
  2. package/api.js +58 -58
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -296,6 +296,10 @@ export interface CredentialVerifierDefinition {
296
296
  * Unique ID of the definition
297
297
  */
298
298
  'id': string;
299
+ /**
300
+ * A custom authorization scope that can be used for this verifier with authorization request
301
+ */
302
+ 'scope'?: string;
299
303
  'presentationDefinition'?: PresentationDefinition;
300
304
  'dcqlQuery'?: DCQLQuery;
301
305
  }
@@ -415,6 +419,39 @@ export interface EbsiSpecificWalletData {
415
419
  'proxyUrl'?: string;
416
420
  'configuration': EbsiConfiguration;
417
421
  }
422
+ /**
423
+ * Prepares to accredit legal entity\'s DID
424
+ */
425
+ export interface EntityAccreditationRequest {
426
+ 'did': string;
427
+ 'type': EntityAccreditationRequestTypeEnum;
428
+ /**
429
+ * Base64 encoded json to be used for the `accreditedFor` property of the credential
430
+ */
431
+ 'accreditedFor': string;
432
+ /**
433
+ * Specifies when will the accreditation credential expire
434
+ */
435
+ 'validUntil': string;
436
+ }
437
+ export declare const EntityAccreditationRequestTypeEnum: {
438
+ readonly TrustedIssuer: "TrustedIssuer";
439
+ readonly TrustedAccreditationOrganisation: "TrustedAccreditationOrganisation";
440
+ };
441
+ export type EntityAccreditationRequestTypeEnum = typeof EntityAccreditationRequestTypeEnum[keyof typeof EntityAccreditationRequestTypeEnum];
442
+ /**
443
+ * Prepares to onboard legal entity\'s DID
444
+ */
445
+ export interface EntityOnboardingRequest {
446
+ /**
447
+ * DID which will be onboarded
448
+ */
449
+ 'did': string;
450
+ /**
451
+ * Specifies when the authorization to onboard credential will expire
452
+ */
453
+ 'validUntil': string;
454
+ }
418
455
  /**
419
456
  * Configuration for EUDI trust framework. The field didTrustFramework marks which DID TF is used when the wallet uses did as its identifier.
420
457
  */
@@ -701,39 +738,6 @@ export interface PreAuthOffer {
701
738
  'validUntil': string;
702
739
  'offerId': string;
703
740
  }
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
741
  export interface PresentationDefinition {
738
742
  'id': string;
739
743
  'format': PresentationDefinitionFormat;
@@ -794,9 +798,13 @@ export interface PresentationMetadata {
794
798
  }
795
799
  export interface PresentationRequest {
796
800
  /**
797
- * URL of verifier authorization server. MUST contain the verifier scope as a query parameter(`scope`).
801
+ * URL of verifier or vp_token request url
798
802
  */
799
803
  'verifierUrl': string;
804
+ /**
805
+ * Custom authorization scope, used when `verifierUrl` is the URL of verifier
806
+ */
807
+ 'verifierScope'?: string;
800
808
  }
801
809
  /**
802
810
  * Info needed to revoke legal entity\'s DID
@@ -878,10 +886,12 @@ export interface VerifiedWrapper {
878
886
  'holder': string;
879
887
  }
880
888
  /**
881
- * Request for the creation of URL used by holder to present credentials to a verifier.
889
+ * Registers a new verification request. When `createUrl` is true, URL used by holder to present credentials to a verifier is created. Otherwise, the holder can use the verifier authorization endpoint with a custom scope to request credentials. In this case `holderEntityId` must be provided.
882
890
  */
883
891
  export interface VerifyInitRequest {
884
892
  'verifierId': string;
893
+ 'createUrl'?: boolean;
894
+ 'holderEntityId'?: string;
885
895
  }
886
896
  export interface VerifyInitResponse {
887
897
  /**
@@ -1294,28 +1304,28 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1294
1304
  */
1295
1305
  tfAccreditAs: (walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1296
1306
  /**
1297
- * Onboards legal entity to the trust framework based on the wallet configuration.
1307
+ * Processes a request to accredit another legal entity.
1298
1308
  * @param {string} walletId
1309
+ * @param {EntityAccreditationRequest} [entityAccreditationRequest]
1299
1310
  * @param {*} [options] Override http request option.
1300
1311
  * @throws {RequiredError}
1301
1312
  */
1302
- tfOnboard: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1313
+ tfAccreditRequest: (walletId: string, entityAccreditationRequest?: EntityAccreditationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1303
1314
  /**
1304
- * Prepares another legal entity\'s wallet DID for accreditation.
1315
+ * Onboards legal entity to the trust framework based on the wallet configuration.
1305
1316
  * @param {string} walletId
1306
- * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
1307
1317
  * @param {*} [options] Override http request option.
1308
1318
  * @throws {RequiredError}
1309
1319
  */
1310
- tfPrepareToAccredit: (walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1320
+ tfOnboard: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1311
1321
  /**
1312
- * Prepares another legal entity\'s wallet DID for onboarding.
1322
+ * Processes a request to onboard another legal entity.
1313
1323
  * @param {string} walletId
1314
- * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
1324
+ * @param {EntityOnboardingRequest} [entityOnboardingRequest]
1315
1325
  * @param {*} [options] Override http request option.
1316
1326
  * @throws {RequiredError}
1317
1327
  */
1318
- tfPrepareToOnboard: (walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1328
+ tfOnboardRequest: (walletId: string, entityOnboardingRequest?: EntityOnboardingRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1319
1329
  /**
1320
1330
  * Revokes another legal entity\'s wallet DID accreditation.
1321
1331
  * @param {string} walletId
@@ -1756,28 +1766,28 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1756
1766
  */
1757
1767
  tfAccreditAs(walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1758
1768
  /**
1759
- * Onboards legal entity to the trust framework based on the wallet configuration.
1769
+ * Processes a request to accredit another legal entity.
1760
1770
  * @param {string} walletId
1771
+ * @param {EntityAccreditationRequest} [entityAccreditationRequest]
1761
1772
  * @param {*} [options] Override http request option.
1762
1773
  * @throws {RequiredError}
1763
1774
  */
1764
- tfOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnboardResult>>;
1775
+ tfAccreditRequest(walletId: string, entityAccreditationRequest?: EntityAccreditationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1765
1776
  /**
1766
- * Prepares another legal entity\'s wallet DID for accreditation.
1777
+ * Onboards legal entity to the trust framework based on the wallet configuration.
1767
1778
  * @param {string} walletId
1768
- * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
1769
1779
  * @param {*} [options] Override http request option.
1770
1780
  * @throws {RequiredError}
1771
1781
  */
1772
- tfPrepareToAccredit(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1782
+ tfOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnboardResult>>;
1773
1783
  /**
1774
- * Prepares another legal entity\'s wallet DID for onboarding.
1784
+ * Processes a request to onboard another legal entity.
1775
1785
  * @param {string} walletId
1776
- * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
1786
+ * @param {EntityOnboardingRequest} [entityOnboardingRequest]
1777
1787
  * @param {*} [options] Override http request option.
1778
1788
  * @throws {RequiredError}
1779
1789
  */
1780
- tfPrepareToOnboard(walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1790
+ tfOnboardRequest(walletId: string, entityOnboardingRequest?: EntityOnboardingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1781
1791
  /**
1782
1792
  * Revokes another legal entity\'s wallet DID accreditation.
1783
1793
  * @param {string} walletId
@@ -2220,28 +2230,28 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2220
2230
  */
2221
2231
  tfAccreditAs(walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2222
2232
  /**
2223
- * Onboards legal entity to the trust framework based on the wallet configuration.
2233
+ * Processes a request to accredit another legal entity.
2224
2234
  * @param {string} walletId
2235
+ * @param {EntityAccreditationRequest} [entityAccreditationRequest]
2225
2236
  * @param {*} [options] Override http request option.
2226
2237
  * @throws {RequiredError}
2227
2238
  */
2228
- tfOnboard(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<OnboardResult>;
2239
+ tfAccreditRequest(walletId: string, entityAccreditationRequest?: EntityAccreditationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2229
2240
  /**
2230
- * Prepares another legal entity\'s wallet DID for accreditation.
2241
+ * Onboards legal entity to the trust framework based on the wallet configuration.
2231
2242
  * @param {string} walletId
2232
- * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2233
2243
  * @param {*} [options] Override http request option.
2234
2244
  * @throws {RequiredError}
2235
2245
  */
2236
- tfPrepareToAccredit(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2246
+ tfOnboard(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<OnboardResult>;
2237
2247
  /**
2238
- * Prepares another legal entity\'s wallet DID for onboarding.
2248
+ * Processes a request to onboard another legal entity.
2239
2249
  * @param {string} walletId
2240
- * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
2250
+ * @param {EntityOnboardingRequest} [entityOnboardingRequest]
2241
2251
  * @param {*} [options] Override http request option.
2242
2252
  * @throws {RequiredError}
2243
2253
  */
2244
- tfPrepareToOnboard(walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2254
+ tfOnboardRequest(walletId: string, entityOnboardingRequest?: EntityOnboardingRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2245
2255
  /**
2246
2256
  * Revokes another legal entity\'s wallet DID accreditation.
2247
2257
  * @param {string} walletId
@@ -2684,28 +2694,28 @@ export declare class DefaultApi extends BaseAPI {
2684
2694
  */
2685
2695
  tfAccreditAs(walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2686
2696
  /**
2687
- * Onboards legal entity to the trust framework based on the wallet configuration.
2697
+ * Processes a request to accredit another legal entity.
2688
2698
  * @param {string} walletId
2699
+ * @param {EntityAccreditationRequest} [entityAccreditationRequest]
2689
2700
  * @param {*} [options] Override http request option.
2690
2701
  * @throws {RequiredError}
2691
2702
  */
2692
- tfOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OnboardResult, any>>;
2703
+ tfAccreditRequest(walletId: string, entityAccreditationRequest?: EntityAccreditationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2693
2704
  /**
2694
- * Prepares another legal entity\'s wallet DID for accreditation.
2705
+ * Onboards legal entity to the trust framework based on the wallet configuration.
2695
2706
  * @param {string} walletId
2696
- * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2697
2707
  * @param {*} [options] Override http request option.
2698
2708
  * @throws {RequiredError}
2699
2709
  */
2700
- tfPrepareToAccredit(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2710
+ tfOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OnboardResult, any>>;
2701
2711
  /**
2702
- * Prepares another legal entity\'s wallet DID for onboarding.
2712
+ * Processes a request to onboard another legal entity.
2703
2713
  * @param {string} walletId
2704
- * @param {PrepareToOnboardRequest} [prepareToOnboardRequest]
2714
+ * @param {EntityOnboardingRequest} [entityOnboardingRequest]
2705
2715
  * @param {*} [options] Override http request option.
2706
2716
  * @throws {RequiredError}
2707
2717
  */
2708
- tfPrepareToOnboard(walletId: string, prepareToOnboardRequest?: PrepareToOnboardRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2718
+ tfOnboardRequest(walletId: string, entityOnboardingRequest?: EntityOnboardingRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2709
2719
  /**
2710
2720
  * Revokes another legal entity\'s wallet DID accreditation.
2711
2721
  * @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.260",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {