@triveria/wallet 0.0.257 → 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.
- package/api.d.ts +65 -69
- package/api.js +58 -58
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -171,10 +171,6 @@ export interface CredentialMetadata {
|
|
|
171
171
|
'interaction': CredentialMetadataInteractionEnum;
|
|
172
172
|
'message'?: string;
|
|
173
173
|
'type': string;
|
|
174
|
-
/**
|
|
175
|
-
* In case of issued credential this is the DID of the holder wallet
|
|
176
|
-
*/
|
|
177
|
-
'offeredToClientId'?: string;
|
|
178
174
|
'created': string;
|
|
179
175
|
'updated': string;
|
|
180
176
|
'issuanceDate': string;
|
|
@@ -419,6 +415,39 @@ export interface EbsiSpecificWalletData {
|
|
|
419
415
|
'proxyUrl'?: string;
|
|
420
416
|
'configuration': EbsiConfiguration;
|
|
421
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
|
+
}
|
|
422
451
|
/**
|
|
423
452
|
* Configuration for EUDI trust framework. The field didTrustFramework marks which DID TF is used when the wallet uses did as its identifier.
|
|
424
453
|
*/
|
|
@@ -705,39 +734,6 @@ export interface PreAuthOffer {
|
|
|
705
734
|
'validUntil': string;
|
|
706
735
|
'offerId': string;
|
|
707
736
|
}
|
|
708
|
-
/**
|
|
709
|
-
* Prepares to accredit legal entity\'s DID
|
|
710
|
-
*/
|
|
711
|
-
export interface PrepareToAccreditRequest {
|
|
712
|
-
'did': string;
|
|
713
|
-
'type': PrepareToAccreditRequestTypeEnum;
|
|
714
|
-
/**
|
|
715
|
-
* Base64 encoded json to be used for the `accreditedFor` property of the credential
|
|
716
|
-
*/
|
|
717
|
-
'accreditedFor': string;
|
|
718
|
-
/**
|
|
719
|
-
* Specifies when will the accreditation credential expire
|
|
720
|
-
*/
|
|
721
|
-
'validUntil': string;
|
|
722
|
-
}
|
|
723
|
-
export declare const PrepareToAccreditRequestTypeEnum: {
|
|
724
|
-
readonly TrustedIssuer: "TrustedIssuer";
|
|
725
|
-
readonly TrustedAccreditationOrganisation: "TrustedAccreditationOrganisation";
|
|
726
|
-
};
|
|
727
|
-
export type PrepareToAccreditRequestTypeEnum = typeof PrepareToAccreditRequestTypeEnum[keyof typeof PrepareToAccreditRequestTypeEnum];
|
|
728
|
-
/**
|
|
729
|
-
* Prepares to onboard legal entity\'s DID
|
|
730
|
-
*/
|
|
731
|
-
export interface PrepareToOnboardRequest {
|
|
732
|
-
/**
|
|
733
|
-
* DID which will be onboarded
|
|
734
|
-
*/
|
|
735
|
-
'did': string;
|
|
736
|
-
/**
|
|
737
|
-
* Specifies when the authorization to onboard credential will expire
|
|
738
|
-
*/
|
|
739
|
-
'validUntil': string;
|
|
740
|
-
}
|
|
741
737
|
export interface PresentationDefinition {
|
|
742
738
|
'id': string;
|
|
743
739
|
'format': PresentationDefinitionFormat;
|
|
@@ -1298,28 +1294,28 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1298
1294
|
*/
|
|
1299
1295
|
tfAccreditAs: (walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1300
1296
|
/**
|
|
1301
|
-
*
|
|
1297
|
+
* Processes a request to accredit another legal entity.
|
|
1302
1298
|
* @param {string} walletId
|
|
1299
|
+
* @param {EntityAccreditationRequest} [entityAccreditationRequest]
|
|
1303
1300
|
* @param {*} [options] Override http request option.
|
|
1304
1301
|
* @throws {RequiredError}
|
|
1305
1302
|
*/
|
|
1306
|
-
|
|
1303
|
+
tfAccreditRequest: (walletId: string, entityAccreditationRequest?: EntityAccreditationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1307
1304
|
/**
|
|
1308
|
-
*
|
|
1305
|
+
* Onboards legal entity to the trust framework based on the wallet configuration.
|
|
1309
1306
|
* @param {string} walletId
|
|
1310
|
-
* @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
|
|
1311
1307
|
* @param {*} [options] Override http request option.
|
|
1312
1308
|
* @throws {RequiredError}
|
|
1313
1309
|
*/
|
|
1314
|
-
|
|
1310
|
+
tfOnboard: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1315
1311
|
/**
|
|
1316
|
-
*
|
|
1312
|
+
* Processes a request to onboard another legal entity.
|
|
1317
1313
|
* @param {string} walletId
|
|
1318
|
-
* @param {
|
|
1314
|
+
* @param {EntityOnboardingRequest} [entityOnboardingRequest]
|
|
1319
1315
|
* @param {*} [options] Override http request option.
|
|
1320
1316
|
* @throws {RequiredError}
|
|
1321
1317
|
*/
|
|
1322
|
-
|
|
1318
|
+
tfOnboardRequest: (walletId: string, entityOnboardingRequest?: EntityOnboardingRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1323
1319
|
/**
|
|
1324
1320
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
1325
1321
|
* @param {string} walletId
|
|
@@ -1760,28 +1756,28 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1760
1756
|
*/
|
|
1761
1757
|
tfAccreditAs(walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1762
1758
|
/**
|
|
1763
|
-
*
|
|
1759
|
+
* Processes a request to accredit another legal entity.
|
|
1764
1760
|
* @param {string} walletId
|
|
1761
|
+
* @param {EntityAccreditationRequest} [entityAccreditationRequest]
|
|
1765
1762
|
* @param {*} [options] Override http request option.
|
|
1766
1763
|
* @throws {RequiredError}
|
|
1767
1764
|
*/
|
|
1768
|
-
|
|
1765
|
+
tfAccreditRequest(walletId: string, entityAccreditationRequest?: EntityAccreditationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1769
1766
|
/**
|
|
1770
|
-
*
|
|
1767
|
+
* Onboards legal entity to the trust framework based on the wallet configuration.
|
|
1771
1768
|
* @param {string} walletId
|
|
1772
|
-
* @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
|
|
1773
1769
|
* @param {*} [options] Override http request option.
|
|
1774
1770
|
* @throws {RequiredError}
|
|
1775
1771
|
*/
|
|
1776
|
-
|
|
1772
|
+
tfOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnboardResult>>;
|
|
1777
1773
|
/**
|
|
1778
|
-
*
|
|
1774
|
+
* Processes a request to onboard another legal entity.
|
|
1779
1775
|
* @param {string} walletId
|
|
1780
|
-
* @param {
|
|
1776
|
+
* @param {EntityOnboardingRequest} [entityOnboardingRequest]
|
|
1781
1777
|
* @param {*} [options] Override http request option.
|
|
1782
1778
|
* @throws {RequiredError}
|
|
1783
1779
|
*/
|
|
1784
|
-
|
|
1780
|
+
tfOnboardRequest(walletId: string, entityOnboardingRequest?: EntityOnboardingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1785
1781
|
/**
|
|
1786
1782
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
1787
1783
|
* @param {string} walletId
|
|
@@ -2224,28 +2220,28 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2224
2220
|
*/
|
|
2225
2221
|
tfAccreditAs(walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2226
2222
|
/**
|
|
2227
|
-
*
|
|
2223
|
+
* Processes a request to accredit another legal entity.
|
|
2228
2224
|
* @param {string} walletId
|
|
2225
|
+
* @param {EntityAccreditationRequest} [entityAccreditationRequest]
|
|
2229
2226
|
* @param {*} [options] Override http request option.
|
|
2230
2227
|
* @throws {RequiredError}
|
|
2231
2228
|
*/
|
|
2232
|
-
|
|
2229
|
+
tfAccreditRequest(walletId: string, entityAccreditationRequest?: EntityAccreditationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2233
2230
|
/**
|
|
2234
|
-
*
|
|
2231
|
+
* Onboards legal entity to the trust framework based on the wallet configuration.
|
|
2235
2232
|
* @param {string} walletId
|
|
2236
|
-
* @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
|
|
2237
2233
|
* @param {*} [options] Override http request option.
|
|
2238
2234
|
* @throws {RequiredError}
|
|
2239
2235
|
*/
|
|
2240
|
-
|
|
2236
|
+
tfOnboard(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<OnboardResult>;
|
|
2241
2237
|
/**
|
|
2242
|
-
*
|
|
2238
|
+
* Processes a request to onboard another legal entity.
|
|
2243
2239
|
* @param {string} walletId
|
|
2244
|
-
* @param {
|
|
2240
|
+
* @param {EntityOnboardingRequest} [entityOnboardingRequest]
|
|
2245
2241
|
* @param {*} [options] Override http request option.
|
|
2246
2242
|
* @throws {RequiredError}
|
|
2247
2243
|
*/
|
|
2248
|
-
|
|
2244
|
+
tfOnboardRequest(walletId: string, entityOnboardingRequest?: EntityOnboardingRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2249
2245
|
/**
|
|
2250
2246
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2251
2247
|
* @param {string} walletId
|
|
@@ -2688,28 +2684,28 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2688
2684
|
*/
|
|
2689
2685
|
tfAccreditAs(walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2690
2686
|
/**
|
|
2691
|
-
*
|
|
2687
|
+
* Processes a request to accredit another legal entity.
|
|
2692
2688
|
* @param {string} walletId
|
|
2689
|
+
* @param {EntityAccreditationRequest} [entityAccreditationRequest]
|
|
2693
2690
|
* @param {*} [options] Override http request option.
|
|
2694
2691
|
* @throws {RequiredError}
|
|
2695
2692
|
*/
|
|
2696
|
-
|
|
2693
|
+
tfAccreditRequest(walletId: string, entityAccreditationRequest?: EntityAccreditationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2697
2694
|
/**
|
|
2698
|
-
*
|
|
2695
|
+
* Onboards legal entity to the trust framework based on the wallet configuration.
|
|
2699
2696
|
* @param {string} walletId
|
|
2700
|
-
* @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
|
|
2701
2697
|
* @param {*} [options] Override http request option.
|
|
2702
2698
|
* @throws {RequiredError}
|
|
2703
2699
|
*/
|
|
2704
|
-
|
|
2700
|
+
tfOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OnboardResult, any>>;
|
|
2705
2701
|
/**
|
|
2706
|
-
*
|
|
2702
|
+
* Processes a request to onboard another legal entity.
|
|
2707
2703
|
* @param {string} walletId
|
|
2708
|
-
* @param {
|
|
2704
|
+
* @param {EntityOnboardingRequest} [entityOnboardingRequest]
|
|
2709
2705
|
* @param {*} [options] Override http request option.
|
|
2710
2706
|
* @throws {RequiredError}
|
|
2711
2707
|
*/
|
|
2712
|
-
|
|
2708
|
+
tfOnboardRequest(walletId: string, entityOnboardingRequest?: EntityOnboardingRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2713
2709
|
/**
|
|
2714
2710
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2715
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.
|
|
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
|
-
*
|
|
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
|
-
|
|
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)('
|
|
1388
|
-
const localVarPath = `/tf/{wallet_id}/
|
|
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
|
-
*
|
|
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
|
-
|
|
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)('
|
|
1420
|
-
const localVarPath = `/tf/{wallet_id}/
|
|
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
|
-
*
|
|
1445
|
+
* Processes a request to onboard another legal entity.
|
|
1446
1446
|
* @param {string} walletId
|
|
1447
|
-
* @param {
|
|
1447
|
+
* @param {EntityOnboardingRequest} [entityOnboardingRequest]
|
|
1448
1448
|
* @param {*} [options] Override http request option.
|
|
1449
1449
|
* @throws {RequiredError}
|
|
1450
1450
|
*/
|
|
1451
|
-
|
|
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)('
|
|
1454
|
-
const localVarPath = `/tf/{wallet_id}/
|
|
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)(
|
|
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
|
-
*
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
|
-
*
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
|
-
*
|
|
2785
|
+
* Processes a request to onboard another legal entity.
|
|
2786
2786
|
* @param {string} walletId
|
|
2787
|
-
* @param {
|
|
2787
|
+
* @param {EntityOnboardingRequest} [entityOnboardingRequest]
|
|
2788
2788
|
* @param {*} [options] Override http request option.
|
|
2789
2789
|
* @throws {RequiredError}
|
|
2790
2790
|
*/
|
|
2791
|
-
|
|
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.
|
|
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.
|
|
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
|
-
*
|
|
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
|
-
|
|
3482
|
-
return localVarFp.
|
|
3482
|
+
tfAccreditRequest(walletId, entityAccreditationRequest, options) {
|
|
3483
|
+
return localVarFp.tfAccreditRequest(walletId, entityAccreditationRequest, options).then((request) => request(axios, basePath));
|
|
3483
3484
|
},
|
|
3484
3485
|
/**
|
|
3485
|
-
*
|
|
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
|
-
|
|
3492
|
-
return localVarFp.
|
|
3491
|
+
tfOnboard(walletId, options) {
|
|
3492
|
+
return localVarFp.tfOnboard(walletId, options).then((request) => request(axios, basePath));
|
|
3493
3493
|
},
|
|
3494
3494
|
/**
|
|
3495
|
-
*
|
|
3495
|
+
* Processes a request to onboard another legal entity.
|
|
3496
3496
|
* @param {string} walletId
|
|
3497
|
-
* @param {
|
|
3497
|
+
* @param {EntityOnboardingRequest} [entityOnboardingRequest]
|
|
3498
3498
|
* @param {*} [options] Override http request option.
|
|
3499
3499
|
* @throws {RequiredError}
|
|
3500
3500
|
*/
|
|
3501
|
-
|
|
3502
|
-
return localVarFp.
|
|
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
|
-
*
|
|
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
|
-
|
|
4058
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
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
|
-
*
|
|
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
|
-
|
|
4068
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
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
|
-
*
|
|
4071
|
+
* Processes a request to onboard another legal entity.
|
|
4072
4072
|
* @param {string} walletId
|
|
4073
|
-
* @param {
|
|
4073
|
+
* @param {EntityOnboardingRequest} [entityOnboardingRequest]
|
|
4074
4074
|
* @param {*} [options] Override http request option.
|
|
4075
4075
|
* @throws {RequiredError}
|
|
4076
4076
|
*/
|
|
4077
|
-
|
|
4078
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
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.
|