@triveria/wallet 0.0.269 → 0.0.270
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 +17 -36
- package/api.js +13 -80
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -729,6 +729,15 @@ export type OidcRevisionOidc4vpEnum = typeof OidcRevisionOidc4vpEnum[keyof typeo
|
|
|
729
729
|
export interface OnboardResult {
|
|
730
730
|
'did': string;
|
|
731
731
|
}
|
|
732
|
+
/**
|
|
733
|
+
* Onboarding request of own wallet.
|
|
734
|
+
*/
|
|
735
|
+
export interface OnboardingRequest {
|
|
736
|
+
/**
|
|
737
|
+
* Id of the onboarding credential that should be used for the onboarding process. Used when onboarding to IDTL
|
|
738
|
+
*/
|
|
739
|
+
'onboardingCredentialId'?: string;
|
|
740
|
+
}
|
|
732
741
|
export interface PdfVerificationResponse {
|
|
733
742
|
'vpValid'?: boolean;
|
|
734
743
|
'verifiedCredentials'?: VerifiedWrapper;
|
|
@@ -1383,10 +1392,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1383
1392
|
/**
|
|
1384
1393
|
* Onboards legal entity to the trust framework based on the wallet configuration.
|
|
1385
1394
|
* @param {string} walletId
|
|
1395
|
+
* @param {OnboardingRequest} [onboardingRequest]
|
|
1386
1396
|
* @param {*} [options] Override http request option.
|
|
1387
1397
|
* @throws {RequiredError}
|
|
1388
1398
|
*/
|
|
1389
|
-
tfOnboard: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1399
|
+
tfOnboard: (walletId: string, onboardingRequest?: OnboardingRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1390
1400
|
/**
|
|
1391
1401
|
* Processes a request to onboard another legal entity.
|
|
1392
1402
|
* @param {string} walletId
|
|
@@ -1467,14 +1477,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1467
1477
|
* @throws {RequiredError}
|
|
1468
1478
|
*/
|
|
1469
1479
|
walletIdentifierGet: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1470
|
-
/**
|
|
1471
|
-
*
|
|
1472
|
-
* @param {string} walletId
|
|
1473
|
-
* @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
|
|
1474
|
-
* @param {*} [options] Override http request option.
|
|
1475
|
-
* @throws {RequiredError}
|
|
1476
|
-
*/
|
|
1477
|
-
walletIdentifierUpdate: (walletId: string, walletIdentifier?: WalletIdentifier, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1478
1480
|
/**
|
|
1479
1481
|
* Provides wallet keys used for signing.
|
|
1480
1482
|
* @param {string} walletId Wallet ID
|
|
@@ -1915,10 +1917,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1915
1917
|
/**
|
|
1916
1918
|
* Onboards legal entity to the trust framework based on the wallet configuration.
|
|
1917
1919
|
* @param {string} walletId
|
|
1920
|
+
* @param {OnboardingRequest} [onboardingRequest]
|
|
1918
1921
|
* @param {*} [options] Override http request option.
|
|
1919
1922
|
* @throws {RequiredError}
|
|
1920
1923
|
*/
|
|
1921
|
-
tfOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnboardResult>>;
|
|
1924
|
+
tfOnboard(walletId: string, onboardingRequest?: OnboardingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnboardResult>>;
|
|
1922
1925
|
/**
|
|
1923
1926
|
* Processes a request to onboard another legal entity.
|
|
1924
1927
|
* @param {string} walletId
|
|
@@ -1999,14 +2002,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1999
2002
|
* @throws {RequiredError}
|
|
2000
2003
|
*/
|
|
2001
2004
|
walletIdentifierGet(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdentifier>>;
|
|
2002
|
-
/**
|
|
2003
|
-
*
|
|
2004
|
-
* @param {string} walletId
|
|
2005
|
-
* @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
|
|
2006
|
-
* @param {*} [options] Override http request option.
|
|
2007
|
-
* @throws {RequiredError}
|
|
2008
|
-
*/
|
|
2009
|
-
walletIdentifierUpdate(walletId: string, walletIdentifier?: WalletIdentifier, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdentifier>>;
|
|
2010
2005
|
/**
|
|
2011
2006
|
* Provides wallet keys used for signing.
|
|
2012
2007
|
* @param {string} walletId Wallet ID
|
|
@@ -2449,10 +2444,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2449
2444
|
/**
|
|
2450
2445
|
* Onboards legal entity to the trust framework based on the wallet configuration.
|
|
2451
2446
|
* @param {string} walletId
|
|
2447
|
+
* @param {OnboardingRequest} [onboardingRequest]
|
|
2452
2448
|
* @param {*} [options] Override http request option.
|
|
2453
2449
|
* @throws {RequiredError}
|
|
2454
2450
|
*/
|
|
2455
|
-
tfOnboard(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<OnboardResult>;
|
|
2451
|
+
tfOnboard(walletId: string, onboardingRequest?: OnboardingRequest, options?: RawAxiosRequestConfig): AxiosPromise<OnboardResult>;
|
|
2456
2452
|
/**
|
|
2457
2453
|
* Processes a request to onboard another legal entity.
|
|
2458
2454
|
* @param {string} walletId
|
|
@@ -2533,14 +2529,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2533
2529
|
* @throws {RequiredError}
|
|
2534
2530
|
*/
|
|
2535
2531
|
walletIdentifierGet(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<WalletIdentifier>;
|
|
2536
|
-
/**
|
|
2537
|
-
*
|
|
2538
|
-
* @param {string} walletId
|
|
2539
|
-
* @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
|
|
2540
|
-
* @param {*} [options] Override http request option.
|
|
2541
|
-
* @throws {RequiredError}
|
|
2542
|
-
*/
|
|
2543
|
-
walletIdentifierUpdate(walletId: string, walletIdentifier?: WalletIdentifier, options?: RawAxiosRequestConfig): AxiosPromise<WalletIdentifier>;
|
|
2544
2532
|
/**
|
|
2545
2533
|
* Provides wallet keys used for signing.
|
|
2546
2534
|
* @param {string} walletId Wallet ID
|
|
@@ -2983,10 +2971,11 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2983
2971
|
/**
|
|
2984
2972
|
* Onboards legal entity to the trust framework based on the wallet configuration.
|
|
2985
2973
|
* @param {string} walletId
|
|
2974
|
+
* @param {OnboardingRequest} [onboardingRequest]
|
|
2986
2975
|
* @param {*} [options] Override http request option.
|
|
2987
2976
|
* @throws {RequiredError}
|
|
2988
2977
|
*/
|
|
2989
|
-
tfOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OnboardResult, any>>;
|
|
2978
|
+
tfOnboard(walletId: string, onboardingRequest?: OnboardingRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OnboardResult, any>>;
|
|
2990
2979
|
/**
|
|
2991
2980
|
* Processes a request to onboard another legal entity.
|
|
2992
2981
|
* @param {string} walletId
|
|
@@ -3067,14 +3056,6 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3067
3056
|
* @throws {RequiredError}
|
|
3068
3057
|
*/
|
|
3069
3058
|
walletIdentifierGet(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdentifier, any>>;
|
|
3070
|
-
/**
|
|
3071
|
-
*
|
|
3072
|
-
* @param {string} walletId
|
|
3073
|
-
* @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
|
|
3074
|
-
* @param {*} [options] Override http request option.
|
|
3075
|
-
* @throws {RequiredError}
|
|
3076
|
-
*/
|
|
3077
|
-
walletIdentifierUpdate(walletId: string, walletIdentifier?: WalletIdentifier, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdentifier, any>>;
|
|
3078
3059
|
/**
|
|
3079
3060
|
* Provides wallet keys used for signing.
|
|
3080
3061
|
* @param {string} walletId Wallet ID
|
package/api.js
CHANGED
|
@@ -1454,10 +1454,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1454
1454
|
/**
|
|
1455
1455
|
* Onboards legal entity to the trust framework based on the wallet configuration.
|
|
1456
1456
|
* @param {string} walletId
|
|
1457
|
+
* @param {OnboardingRequest} [onboardingRequest]
|
|
1457
1458
|
* @param {*} [options] Override http request option.
|
|
1458
1459
|
* @throws {RequiredError}
|
|
1459
1460
|
*/
|
|
1460
|
-
tfOnboard: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1461
|
+
tfOnboard: (walletId, onboardingRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1461
1462
|
// verify required parameter 'walletId' is not null or undefined
|
|
1462
1463
|
(0, common_1.assertParamExists)('tfOnboard', 'walletId', walletId);
|
|
1463
1464
|
const localVarPath = `/tf/{wallet_id}/onboard`
|
|
@@ -1474,10 +1475,12 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1474
1475
|
// authentication accessToken required
|
|
1475
1476
|
// http bearer authentication required
|
|
1476
1477
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1478
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1477
1479
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1478
1480
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1479
1481
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1480
1482
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1483
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(onboardingRequest, localVarRequestOptions, configuration);
|
|
1481
1484
|
return {
|
|
1482
1485
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1483
1486
|
options: localVarRequestOptions,
|
|
@@ -1853,43 +1856,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1853
1856
|
options: localVarRequestOptions,
|
|
1854
1857
|
};
|
|
1855
1858
|
}),
|
|
1856
|
-
/**
|
|
1857
|
-
*
|
|
1858
|
-
* @param {string} walletId
|
|
1859
|
-
* @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
|
|
1860
|
-
* @param {*} [options] Override http request option.
|
|
1861
|
-
* @throws {RequiredError}
|
|
1862
|
-
*/
|
|
1863
|
-
walletIdentifierUpdate: (walletId, walletIdentifier, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1864
|
-
// verify required parameter 'walletId' is not null or undefined
|
|
1865
|
-
(0, common_1.assertParamExists)('walletIdentifierUpdate', 'walletId', walletId);
|
|
1866
|
-
const localVarPath = `/identifier`;
|
|
1867
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1868
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1869
|
-
let baseOptions;
|
|
1870
|
-
if (configuration) {
|
|
1871
|
-
baseOptions = configuration.baseOptions;
|
|
1872
|
-
}
|
|
1873
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1874
|
-
const localVarHeaderParameter = {};
|
|
1875
|
-
const localVarQueryParameter = {};
|
|
1876
|
-
// authentication accessToken required
|
|
1877
|
-
// http bearer authentication required
|
|
1878
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1879
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1880
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1881
|
-
if (walletId != null) {
|
|
1882
|
-
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
1883
|
-
}
|
|
1884
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1885
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1886
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1887
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(walletIdentifier, localVarRequestOptions, configuration);
|
|
1888
|
-
return {
|
|
1889
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1890
|
-
options: localVarRequestOptions,
|
|
1891
|
-
};
|
|
1892
|
-
}),
|
|
1893
1859
|
/**
|
|
1894
1860
|
* Provides wallet keys used for signing.
|
|
1895
1861
|
* @param {string} walletId Wallet ID
|
|
@@ -3168,13 +3134,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
3168
3134
|
/**
|
|
3169
3135
|
* Onboards legal entity to the trust framework based on the wallet configuration.
|
|
3170
3136
|
* @param {string} walletId
|
|
3137
|
+
* @param {OnboardingRequest} [onboardingRequest]
|
|
3171
3138
|
* @param {*} [options] Override http request option.
|
|
3172
3139
|
* @throws {RequiredError}
|
|
3173
3140
|
*/
|
|
3174
|
-
tfOnboard(walletId, options) {
|
|
3141
|
+
tfOnboard(walletId, onboardingRequest, options) {
|
|
3175
3142
|
var _a, _b, _c;
|
|
3176
3143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3177
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.tfOnboard(walletId, options);
|
|
3144
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tfOnboard(walletId, onboardingRequest, options);
|
|
3178
3145
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3179
3146
|
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;
|
|
3180
3147
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3340,22 +3307,6 @@ const DefaultApiFp = function (configuration) {
|
|
|
3340
3307
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3341
3308
|
});
|
|
3342
3309
|
},
|
|
3343
|
-
/**
|
|
3344
|
-
*
|
|
3345
|
-
* @param {string} walletId
|
|
3346
|
-
* @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
|
|
3347
|
-
* @param {*} [options] Override http request option.
|
|
3348
|
-
* @throws {RequiredError}
|
|
3349
|
-
*/
|
|
3350
|
-
walletIdentifierUpdate(walletId, walletIdentifier, options) {
|
|
3351
|
-
var _a, _b, _c;
|
|
3352
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3353
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletIdentifierUpdate(walletId, walletIdentifier, options);
|
|
3354
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3355
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletIdentifierUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3356
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3357
|
-
});
|
|
3358
|
-
},
|
|
3359
3310
|
/**
|
|
3360
3311
|
* Provides wallet keys used for signing.
|
|
3361
3312
|
* @param {string} walletId Wallet ID
|
|
@@ -4026,11 +3977,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4026
3977
|
/**
|
|
4027
3978
|
* Onboards legal entity to the trust framework based on the wallet configuration.
|
|
4028
3979
|
* @param {string} walletId
|
|
3980
|
+
* @param {OnboardingRequest} [onboardingRequest]
|
|
4029
3981
|
* @param {*} [options] Override http request option.
|
|
4030
3982
|
* @throws {RequiredError}
|
|
4031
3983
|
*/
|
|
4032
|
-
tfOnboard(walletId, options) {
|
|
4033
|
-
return localVarFp.tfOnboard(walletId, options).then((request) => request(axios, basePath));
|
|
3984
|
+
tfOnboard(walletId, onboardingRequest, options) {
|
|
3985
|
+
return localVarFp.tfOnboard(walletId, onboardingRequest, options).then((request) => request(axios, basePath));
|
|
4034
3986
|
},
|
|
4035
3987
|
/**
|
|
4036
3988
|
* Processes a request to onboard another legal entity.
|
|
@@ -4132,16 +4084,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4132
4084
|
walletIdentifierGet(walletId, options) {
|
|
4133
4085
|
return localVarFp.walletIdentifierGet(walletId, options).then((request) => request(axios, basePath));
|
|
4134
4086
|
},
|
|
4135
|
-
/**
|
|
4136
|
-
*
|
|
4137
|
-
* @param {string} walletId
|
|
4138
|
-
* @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
|
|
4139
|
-
* @param {*} [options] Override http request option.
|
|
4140
|
-
* @throws {RequiredError}
|
|
4141
|
-
*/
|
|
4142
|
-
walletIdentifierUpdate(walletId, walletIdentifier, options) {
|
|
4143
|
-
return localVarFp.walletIdentifierUpdate(walletId, walletIdentifier, options).then((request) => request(axios, basePath));
|
|
4144
|
-
},
|
|
4145
4087
|
/**
|
|
4146
4088
|
* Provides wallet keys used for signing.
|
|
4147
4089
|
* @param {string} walletId Wallet ID
|
|
@@ -4690,11 +4632,12 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4690
4632
|
/**
|
|
4691
4633
|
* Onboards legal entity to the trust framework based on the wallet configuration.
|
|
4692
4634
|
* @param {string} walletId
|
|
4635
|
+
* @param {OnboardingRequest} [onboardingRequest]
|
|
4693
4636
|
* @param {*} [options] Override http request option.
|
|
4694
4637
|
* @throws {RequiredError}
|
|
4695
4638
|
*/
|
|
4696
|
-
tfOnboard(walletId, options) {
|
|
4697
|
-
return (0, exports.DefaultApiFp)(this.configuration).tfOnboard(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
4639
|
+
tfOnboard(walletId, onboardingRequest, options) {
|
|
4640
|
+
return (0, exports.DefaultApiFp)(this.configuration).tfOnboard(walletId, onboardingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4698
4641
|
}
|
|
4699
4642
|
/**
|
|
4700
4643
|
* Processes a request to onboard another legal entity.
|
|
@@ -4796,16 +4739,6 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4796
4739
|
walletIdentifierGet(walletId, options) {
|
|
4797
4740
|
return (0, exports.DefaultApiFp)(this.configuration).walletIdentifierGet(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
4798
4741
|
}
|
|
4799
|
-
/**
|
|
4800
|
-
*
|
|
4801
|
-
* @param {string} walletId
|
|
4802
|
-
* @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
|
|
4803
|
-
* @param {*} [options] Override http request option.
|
|
4804
|
-
* @throws {RequiredError}
|
|
4805
|
-
*/
|
|
4806
|
-
walletIdentifierUpdate(walletId, walletIdentifier, options) {
|
|
4807
|
-
return (0, exports.DefaultApiFp)(this.configuration).walletIdentifierUpdate(walletId, walletIdentifier, options).then((request) => request(this.axios, this.basePath));
|
|
4808
|
-
}
|
|
4809
4742
|
/**
|
|
4810
4743
|
* Provides wallet keys used for signing.
|
|
4811
4744
|
* @param {string} walletId Wallet ID
|