@triveria/wallet 0.0.228 → 0.0.229
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 +62 -10
- package/api.js +86 -13
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -2207,7 +2207,7 @@ export interface WalletConfig {
|
|
|
2207
2207
|
*/
|
|
2208
2208
|
'oidcRevision'?: OidcRevision;
|
|
2209
2209
|
/**
|
|
2210
|
-
* What trust framework should we use with this wallet. This property COULD NOT change later. Supported frameworks: EBSI - the European Blockchain Services Infrastructure,
|
|
2210
|
+
* What trust framework should we use with this wallet. This property COULD NOT change later. Supported frameworks: EBSI - the European Blockchain Services Infrastructure, IDTL - IDUnion Trust List, Noop - did:key based no-op trust framework (mainly for the personal use)
|
|
2211
2211
|
* @type {string}
|
|
2212
2212
|
* @memberof WalletConfig
|
|
2213
2213
|
*/
|
|
@@ -2221,7 +2221,7 @@ export interface WalletConfig {
|
|
|
2221
2221
|
}
|
|
2222
2222
|
export declare const WalletConfigTrustFrameworkEnum: {
|
|
2223
2223
|
readonly Ebsi: "EBSI";
|
|
2224
|
-
readonly
|
|
2224
|
+
readonly Idtl: "IDTL";
|
|
2225
2225
|
readonly Noop: "NOOP";
|
|
2226
2226
|
};
|
|
2227
2227
|
export type WalletConfigTrustFrameworkEnum = typeof WalletConfigTrustFrameworkEnum[keyof typeof WalletConfigTrustFrameworkEnum];
|
|
@@ -2331,6 +2331,25 @@ export interface WalletNotificationHistory {
|
|
|
2331
2331
|
*/
|
|
2332
2332
|
'next': string;
|
|
2333
2333
|
}
|
|
2334
|
+
/**
|
|
2335
|
+
* Payload to update wallet data
|
|
2336
|
+
* @export
|
|
2337
|
+
* @interface WalletPatchPayload
|
|
2338
|
+
*/
|
|
2339
|
+
export interface WalletPatchPayload {
|
|
2340
|
+
/**
|
|
2341
|
+
*
|
|
2342
|
+
* @type {string}
|
|
2343
|
+
* @memberof WalletPatchPayload
|
|
2344
|
+
*/
|
|
2345
|
+
'name'?: string;
|
|
2346
|
+
/**
|
|
2347
|
+
*
|
|
2348
|
+
* @type {WalletConfig}
|
|
2349
|
+
* @memberof WalletPatchPayload
|
|
2350
|
+
*/
|
|
2351
|
+
'config'?: WalletConfig;
|
|
2352
|
+
}
|
|
2334
2353
|
/**
|
|
2335
2354
|
* DefaultApi - axios parameter creator
|
|
2336
2355
|
* @export
|
|
@@ -2440,6 +2459,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2440
2459
|
* @throws {RequiredError}
|
|
2441
2460
|
*/
|
|
2442
2461
|
didGet: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2462
|
+
/**
|
|
2463
|
+
*
|
|
2464
|
+
* @param {string} walletId
|
|
2465
|
+
* @param {Did} [did] The new DID for the Wallet
|
|
2466
|
+
* @param {*} [options] Override http request option.
|
|
2467
|
+
* @throws {RequiredError}
|
|
2468
|
+
*/
|
|
2469
|
+
didUpdate: (walletId: string, did?: Did, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2443
2470
|
/**
|
|
2444
2471
|
*
|
|
2445
2472
|
* @param {*} [options] Override http request option.
|
|
@@ -2690,11 +2717,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2690
2717
|
/**
|
|
2691
2718
|
* Update wallet metadata and configuration.
|
|
2692
2719
|
* @param {string} walletId
|
|
2693
|
-
* @param {
|
|
2720
|
+
* @param {WalletPatchPayload} [walletPatchPayload]
|
|
2694
2721
|
* @param {*} [options] Override http request option.
|
|
2695
2722
|
* @throws {RequiredError}
|
|
2696
2723
|
*/
|
|
2697
|
-
walletPatch: (walletId: string,
|
|
2724
|
+
walletPatch: (walletId: string, walletPatchPayload?: WalletPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2698
2725
|
/**
|
|
2699
2726
|
* Gets a specific verified credentials by state
|
|
2700
2727
|
* @param {string} walletId Wallet ID
|
|
@@ -2821,6 +2848,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2821
2848
|
* @throws {RequiredError}
|
|
2822
2849
|
*/
|
|
2823
2850
|
didGet(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Did>>;
|
|
2851
|
+
/**
|
|
2852
|
+
*
|
|
2853
|
+
* @param {string} walletId
|
|
2854
|
+
* @param {Did} [did] The new DID for the Wallet
|
|
2855
|
+
* @param {*} [options] Override http request option.
|
|
2856
|
+
* @throws {RequiredError}
|
|
2857
|
+
*/
|
|
2858
|
+
didUpdate(walletId: string, did?: Did, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Did>>;
|
|
2824
2859
|
/**
|
|
2825
2860
|
*
|
|
2826
2861
|
* @param {*} [options] Override http request option.
|
|
@@ -3073,11 +3108,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
3073
3108
|
/**
|
|
3074
3109
|
* Update wallet metadata and configuration.
|
|
3075
3110
|
* @param {string} walletId
|
|
3076
|
-
* @param {
|
|
3111
|
+
* @param {WalletPatchPayload} [walletPatchPayload]
|
|
3077
3112
|
* @param {*} [options] Override http request option.
|
|
3078
3113
|
* @throws {RequiredError}
|
|
3079
3114
|
*/
|
|
3080
|
-
walletPatch(walletId: string,
|
|
3115
|
+
walletPatch(walletId: string, walletPatchPayload?: WalletPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdObject>>;
|
|
3081
3116
|
/**
|
|
3082
3117
|
* Gets a specific verified credentials by state
|
|
3083
3118
|
* @param {string} walletId Wallet ID
|
|
@@ -3204,6 +3239,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3204
3239
|
* @throws {RequiredError}
|
|
3205
3240
|
*/
|
|
3206
3241
|
didGet(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<Did>;
|
|
3242
|
+
/**
|
|
3243
|
+
*
|
|
3244
|
+
* @param {string} walletId
|
|
3245
|
+
* @param {Did} [did] The new DID for the Wallet
|
|
3246
|
+
* @param {*} [options] Override http request option.
|
|
3247
|
+
* @throws {RequiredError}
|
|
3248
|
+
*/
|
|
3249
|
+
didUpdate(walletId: string, did?: Did, options?: RawAxiosRequestConfig): AxiosPromise<Did>;
|
|
3207
3250
|
/**
|
|
3208
3251
|
*
|
|
3209
3252
|
* @param {*} [options] Override http request option.
|
|
@@ -3456,11 +3499,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3456
3499
|
/**
|
|
3457
3500
|
* Update wallet metadata and configuration.
|
|
3458
3501
|
* @param {string} walletId
|
|
3459
|
-
* @param {
|
|
3502
|
+
* @param {WalletPatchPayload} [walletPatchPayload]
|
|
3460
3503
|
* @param {*} [options] Override http request option.
|
|
3461
3504
|
* @throws {RequiredError}
|
|
3462
3505
|
*/
|
|
3463
|
-
walletPatch(walletId: string,
|
|
3506
|
+
walletPatch(walletId: string, walletPatchPayload?: WalletPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<WalletIdObject>;
|
|
3464
3507
|
/**
|
|
3465
3508
|
* Gets a specific verified credentials by state
|
|
3466
3509
|
* @param {string} walletId Wallet ID
|
|
@@ -3601,6 +3644,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3601
3644
|
* @memberof DefaultApi
|
|
3602
3645
|
*/
|
|
3603
3646
|
didGet(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Did, any>>;
|
|
3647
|
+
/**
|
|
3648
|
+
*
|
|
3649
|
+
* @param {string} walletId
|
|
3650
|
+
* @param {Did} [did] The new DID for the Wallet
|
|
3651
|
+
* @param {*} [options] Override http request option.
|
|
3652
|
+
* @throws {RequiredError}
|
|
3653
|
+
* @memberof DefaultApi
|
|
3654
|
+
*/
|
|
3655
|
+
didUpdate(walletId: string, did?: Did, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Did, any>>;
|
|
3604
3656
|
/**
|
|
3605
3657
|
*
|
|
3606
3658
|
* @param {*} [options] Override http request option.
|
|
@@ -3885,12 +3937,12 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3885
3937
|
/**
|
|
3886
3938
|
* Update wallet metadata and configuration.
|
|
3887
3939
|
* @param {string} walletId
|
|
3888
|
-
* @param {
|
|
3940
|
+
* @param {WalletPatchPayload} [walletPatchPayload]
|
|
3889
3941
|
* @param {*} [options] Override http request option.
|
|
3890
3942
|
* @throws {RequiredError}
|
|
3891
3943
|
* @memberof DefaultApi
|
|
3892
3944
|
*/
|
|
3893
|
-
walletPatch(walletId: string,
|
|
3945
|
+
walletPatch(walletId: string, walletPatchPayload?: WalletPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdObject, any>>;
|
|
3894
3946
|
/**
|
|
3895
3947
|
* Gets a specific verified credentials by state
|
|
3896
3948
|
* @param {string} walletId Wallet ID
|
package/api.js
CHANGED
|
@@ -125,7 +125,7 @@ exports.WalletCapability = {
|
|
|
125
125
|
};
|
|
126
126
|
exports.WalletConfigTrustFrameworkEnum = {
|
|
127
127
|
Ebsi: 'EBSI',
|
|
128
|
-
|
|
128
|
+
Idtl: 'IDTL',
|
|
129
129
|
Noop: 'NOOP'
|
|
130
130
|
};
|
|
131
131
|
/**
|
|
@@ -611,6 +611,42 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
611
611
|
options: localVarRequestOptions,
|
|
612
612
|
};
|
|
613
613
|
}),
|
|
614
|
+
/**
|
|
615
|
+
*
|
|
616
|
+
* @param {string} walletId
|
|
617
|
+
* @param {Did} [did] The new DID for the Wallet
|
|
618
|
+
* @param {*} [options] Override http request option.
|
|
619
|
+
* @throws {RequiredError}
|
|
620
|
+
*/
|
|
621
|
+
didUpdate: (walletId, did, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
622
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
623
|
+
(0, common_1.assertParamExists)('didUpdate', 'walletId', walletId);
|
|
624
|
+
const localVarPath = `/did`;
|
|
625
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
626
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
627
|
+
let baseOptions;
|
|
628
|
+
if (configuration) {
|
|
629
|
+
baseOptions = configuration.baseOptions;
|
|
630
|
+
}
|
|
631
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
632
|
+
const localVarHeaderParameter = {};
|
|
633
|
+
const localVarQueryParameter = {};
|
|
634
|
+
// authentication accessToken required
|
|
635
|
+
// http bearer authentication required
|
|
636
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
637
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
638
|
+
if (walletId != null) {
|
|
639
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
640
|
+
}
|
|
641
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
642
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
643
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
644
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(did, localVarRequestOptions, configuration);
|
|
645
|
+
return {
|
|
646
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
647
|
+
options: localVarRequestOptions,
|
|
648
|
+
};
|
|
649
|
+
}),
|
|
614
650
|
/**
|
|
615
651
|
*
|
|
616
652
|
* @param {*} [options] Override http request option.
|
|
@@ -1693,11 +1729,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1693
1729
|
/**
|
|
1694
1730
|
* Update wallet metadata and configuration.
|
|
1695
1731
|
* @param {string} walletId
|
|
1696
|
-
* @param {
|
|
1732
|
+
* @param {WalletPatchPayload} [walletPatchPayload]
|
|
1697
1733
|
* @param {*} [options] Override http request option.
|
|
1698
1734
|
* @throws {RequiredError}
|
|
1699
1735
|
*/
|
|
1700
|
-
walletPatch: (walletId,
|
|
1736
|
+
walletPatch: (walletId, walletPatchPayload, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1701
1737
|
// verify required parameter 'walletId' is not null or undefined
|
|
1702
1738
|
(0, common_1.assertParamExists)('walletPatch', 'walletId', walletId);
|
|
1703
1739
|
const localVarPath = `/wallets/{wallet_id}`
|
|
@@ -1718,7 +1754,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1718
1754
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1719
1755
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1720
1756
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1721
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1757
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(walletPatchPayload, localVarRequestOptions, configuration);
|
|
1722
1758
|
return {
|
|
1723
1759
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1724
1760
|
options: localVarRequestOptions,
|
|
@@ -2004,6 +2040,22 @@ const DefaultApiFp = function (configuration) {
|
|
|
2004
2040
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2005
2041
|
});
|
|
2006
2042
|
},
|
|
2043
|
+
/**
|
|
2044
|
+
*
|
|
2045
|
+
* @param {string} walletId
|
|
2046
|
+
* @param {Did} [did] The new DID for the Wallet
|
|
2047
|
+
* @param {*} [options] Override http request option.
|
|
2048
|
+
* @throws {RequiredError}
|
|
2049
|
+
*/
|
|
2050
|
+
didUpdate(walletId, did, options) {
|
|
2051
|
+
var _a, _b, _c;
|
|
2052
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2053
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didUpdate(walletId, did, options);
|
|
2054
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2055
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.didUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2056
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2057
|
+
});
|
|
2058
|
+
},
|
|
2007
2059
|
/**
|
|
2008
2060
|
*
|
|
2009
2061
|
* @param {*} [options] Override http request option.
|
|
@@ -2510,14 +2562,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
2510
2562
|
/**
|
|
2511
2563
|
* Update wallet metadata and configuration.
|
|
2512
2564
|
* @param {string} walletId
|
|
2513
|
-
* @param {
|
|
2565
|
+
* @param {WalletPatchPayload} [walletPatchPayload]
|
|
2514
2566
|
* @param {*} [options] Override http request option.
|
|
2515
2567
|
* @throws {RequiredError}
|
|
2516
2568
|
*/
|
|
2517
|
-
walletPatch(walletId,
|
|
2569
|
+
walletPatch(walletId, walletPatchPayload, options) {
|
|
2518
2570
|
var _a, _b, _c;
|
|
2519
2571
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2520
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletPatch(walletId,
|
|
2572
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletPatch(walletId, walletPatchPayload, options);
|
|
2521
2573
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2522
2574
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2523
2575
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2693,6 +2745,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2693
2745
|
didGet(walletId, options) {
|
|
2694
2746
|
return localVarFp.didGet(walletId, options).then((request) => request(axios, basePath));
|
|
2695
2747
|
},
|
|
2748
|
+
/**
|
|
2749
|
+
*
|
|
2750
|
+
* @param {string} walletId
|
|
2751
|
+
* @param {Did} [did] The new DID for the Wallet
|
|
2752
|
+
* @param {*} [options] Override http request option.
|
|
2753
|
+
* @throws {RequiredError}
|
|
2754
|
+
*/
|
|
2755
|
+
didUpdate(walletId, did, options) {
|
|
2756
|
+
return localVarFp.didUpdate(walletId, did, options).then((request) => request(axios, basePath));
|
|
2757
|
+
},
|
|
2696
2758
|
/**
|
|
2697
2759
|
*
|
|
2698
2760
|
* @param {*} [options] Override http request option.
|
|
@@ -3007,12 +3069,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3007
3069
|
/**
|
|
3008
3070
|
* Update wallet metadata and configuration.
|
|
3009
3071
|
* @param {string} walletId
|
|
3010
|
-
* @param {
|
|
3072
|
+
* @param {WalletPatchPayload} [walletPatchPayload]
|
|
3011
3073
|
* @param {*} [options] Override http request option.
|
|
3012
3074
|
* @throws {RequiredError}
|
|
3013
3075
|
*/
|
|
3014
|
-
walletPatch(walletId,
|
|
3015
|
-
return localVarFp.walletPatch(walletId,
|
|
3076
|
+
walletPatch(walletId, walletPatchPayload, options) {
|
|
3077
|
+
return localVarFp.walletPatch(walletId, walletPatchPayload, options).then((request) => request(axios, basePath));
|
|
3016
3078
|
},
|
|
3017
3079
|
/**
|
|
3018
3080
|
* Gets a specific verified credentials by state
|
|
@@ -3184,6 +3246,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3184
3246
|
didGet(walletId, options) {
|
|
3185
3247
|
return (0, exports.DefaultApiFp)(this.configuration).didGet(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
3186
3248
|
}
|
|
3249
|
+
/**
|
|
3250
|
+
*
|
|
3251
|
+
* @param {string} walletId
|
|
3252
|
+
* @param {Did} [did] The new DID for the Wallet
|
|
3253
|
+
* @param {*} [options] Override http request option.
|
|
3254
|
+
* @throws {RequiredError}
|
|
3255
|
+
* @memberof DefaultApi
|
|
3256
|
+
*/
|
|
3257
|
+
didUpdate(walletId, did, options) {
|
|
3258
|
+
return (0, exports.DefaultApiFp)(this.configuration).didUpdate(walletId, did, options).then((request) => request(this.axios, this.basePath));
|
|
3259
|
+
}
|
|
3187
3260
|
/**
|
|
3188
3261
|
*
|
|
3189
3262
|
* @param {*} [options] Override http request option.
|
|
@@ -3530,13 +3603,13 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3530
3603
|
/**
|
|
3531
3604
|
* Update wallet metadata and configuration.
|
|
3532
3605
|
* @param {string} walletId
|
|
3533
|
-
* @param {
|
|
3606
|
+
* @param {WalletPatchPayload} [walletPatchPayload]
|
|
3534
3607
|
* @param {*} [options] Override http request option.
|
|
3535
3608
|
* @throws {RequiredError}
|
|
3536
3609
|
* @memberof DefaultApi
|
|
3537
3610
|
*/
|
|
3538
|
-
walletPatch(walletId,
|
|
3539
|
-
return (0, exports.DefaultApiFp)(this.configuration).walletPatch(walletId,
|
|
3611
|
+
walletPatch(walletId, walletPatchPayload, options) {
|
|
3612
|
+
return (0, exports.DefaultApiFp)(this.configuration).walletPatch(walletId, walletPatchPayload, options).then((request) => request(this.axios, this.basePath));
|
|
3540
3613
|
}
|
|
3541
3614
|
/**
|
|
3542
3615
|
* Gets a specific verified credentials by state
|