@triveria/wallet 0.0.227 → 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.
Files changed (3) hide show
  1. package/api.d.ts +75 -11
  2. package/api.js +86 -13
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -277,11 +277,17 @@ export interface CredentialIssuanceInitResult {
277
277
  */
278
278
  export interface CredentialIssuerDefinition {
279
279
  /**
280
- * Human readable template name
280
+ * Human readable issuer name
281
281
  * @type {string}
282
282
  * @memberof CredentialIssuerDefinition
283
283
  */
284
284
  'name': string;
285
+ /**
286
+ * Human readable issuer description
287
+ * @type {string}
288
+ * @memberof CredentialIssuerDefinition
289
+ */
290
+ 'description'?: string;
285
291
  /**
286
292
  * Unique identifier of the issuer
287
293
  * @type {string}
@@ -742,6 +748,12 @@ export interface CredentialVerifierDefinition {
742
748
  * @memberof CredentialVerifierDefinition
743
749
  */
744
750
  'name': string;
751
+ /**
752
+ *
753
+ * @type {string}
754
+ * @memberof CredentialVerifierDefinition
755
+ */
756
+ 'description'?: string;
745
757
  /**
746
758
  * Unique ID of the definition
747
759
  * @type {string}
@@ -2195,7 +2207,7 @@ export interface WalletConfig {
2195
2207
  */
2196
2208
  'oidcRevision'?: OidcRevision;
2197
2209
  /**
2198
- * What trust framework should we use with this wallet. This property COULD NOT change later. Supported frameworks: EBSI - the European Blockchain Services Infrastructure, TTS - Triveria Trust Service, Noop - did:key based no-op trust framework (mainly for the personal use)
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)
2199
2211
  * @type {string}
2200
2212
  * @memberof WalletConfig
2201
2213
  */
@@ -2209,7 +2221,7 @@ export interface WalletConfig {
2209
2221
  }
2210
2222
  export declare const WalletConfigTrustFrameworkEnum: {
2211
2223
  readonly Ebsi: "EBSI";
2212
- readonly Tts: "TTS";
2224
+ readonly Idtl: "IDTL";
2213
2225
  readonly Noop: "NOOP";
2214
2226
  };
2215
2227
  export type WalletConfigTrustFrameworkEnum = typeof WalletConfigTrustFrameworkEnum[keyof typeof WalletConfigTrustFrameworkEnum];
@@ -2319,6 +2331,25 @@ export interface WalletNotificationHistory {
2319
2331
  */
2320
2332
  'next': string;
2321
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
+ }
2322
2353
  /**
2323
2354
  * DefaultApi - axios parameter creator
2324
2355
  * @export
@@ -2428,6 +2459,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2428
2459
  * @throws {RequiredError}
2429
2460
  */
2430
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>;
2431
2470
  /**
2432
2471
  *
2433
2472
  * @param {*} [options] Override http request option.
@@ -2678,11 +2717,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2678
2717
  /**
2679
2718
  * Update wallet metadata and configuration.
2680
2719
  * @param {string} walletId
2681
- * @param {Wallet} [wallet]
2720
+ * @param {WalletPatchPayload} [walletPatchPayload]
2682
2721
  * @param {*} [options] Override http request option.
2683
2722
  * @throws {RequiredError}
2684
2723
  */
2685
- walletPatch: (walletId: string, wallet?: Wallet, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2724
+ walletPatch: (walletId: string, walletPatchPayload?: WalletPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2686
2725
  /**
2687
2726
  * Gets a specific verified credentials by state
2688
2727
  * @param {string} walletId Wallet ID
@@ -2809,6 +2848,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2809
2848
  * @throws {RequiredError}
2810
2849
  */
2811
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>>;
2812
2859
  /**
2813
2860
  *
2814
2861
  * @param {*} [options] Override http request option.
@@ -3061,11 +3108,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3061
3108
  /**
3062
3109
  * Update wallet metadata and configuration.
3063
3110
  * @param {string} walletId
3064
- * @param {Wallet} [wallet]
3111
+ * @param {WalletPatchPayload} [walletPatchPayload]
3065
3112
  * @param {*} [options] Override http request option.
3066
3113
  * @throws {RequiredError}
3067
3114
  */
3068
- walletPatch(walletId: string, wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdObject>>;
3115
+ walletPatch(walletId: string, walletPatchPayload?: WalletPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdObject>>;
3069
3116
  /**
3070
3117
  * Gets a specific verified credentials by state
3071
3118
  * @param {string} walletId Wallet ID
@@ -3192,6 +3239,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3192
3239
  * @throws {RequiredError}
3193
3240
  */
3194
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>;
3195
3250
  /**
3196
3251
  *
3197
3252
  * @param {*} [options] Override http request option.
@@ -3444,11 +3499,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3444
3499
  /**
3445
3500
  * Update wallet metadata and configuration.
3446
3501
  * @param {string} walletId
3447
- * @param {Wallet} [wallet]
3502
+ * @param {WalletPatchPayload} [walletPatchPayload]
3448
3503
  * @param {*} [options] Override http request option.
3449
3504
  * @throws {RequiredError}
3450
3505
  */
3451
- walletPatch(walletId: string, wallet?: Wallet, options?: RawAxiosRequestConfig): AxiosPromise<WalletIdObject>;
3506
+ walletPatch(walletId: string, walletPatchPayload?: WalletPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<WalletIdObject>;
3452
3507
  /**
3453
3508
  * Gets a specific verified credentials by state
3454
3509
  * @param {string} walletId Wallet ID
@@ -3589,6 +3644,15 @@ export declare class DefaultApi extends BaseAPI {
3589
3644
  * @memberof DefaultApi
3590
3645
  */
3591
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>>;
3592
3656
  /**
3593
3657
  *
3594
3658
  * @param {*} [options] Override http request option.
@@ -3873,12 +3937,12 @@ export declare class DefaultApi extends BaseAPI {
3873
3937
  /**
3874
3938
  * Update wallet metadata and configuration.
3875
3939
  * @param {string} walletId
3876
- * @param {Wallet} [wallet]
3940
+ * @param {WalletPatchPayload} [walletPatchPayload]
3877
3941
  * @param {*} [options] Override http request option.
3878
3942
  * @throws {RequiredError}
3879
3943
  * @memberof DefaultApi
3880
3944
  */
3881
- walletPatch(walletId: string, wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdObject, any>>;
3945
+ walletPatch(walletId: string, walletPatchPayload?: WalletPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdObject, any>>;
3882
3946
  /**
3883
3947
  * Gets a specific verified credentials by state
3884
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
- Tts: 'TTS',
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 {Wallet} [wallet]
1732
+ * @param {WalletPatchPayload} [walletPatchPayload]
1697
1733
  * @param {*} [options] Override http request option.
1698
1734
  * @throws {RequiredError}
1699
1735
  */
1700
- walletPatch: (walletId, wallet, options = {}) => __awaiter(this, void 0, void 0, function* () {
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)(wallet, localVarRequestOptions, configuration);
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 {Wallet} [wallet]
2565
+ * @param {WalletPatchPayload} [walletPatchPayload]
2514
2566
  * @param {*} [options] Override http request option.
2515
2567
  * @throws {RequiredError}
2516
2568
  */
2517
- walletPatch(walletId, wallet, options) {
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, wallet, options);
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 {Wallet} [wallet]
3072
+ * @param {WalletPatchPayload} [walletPatchPayload]
3011
3073
  * @param {*} [options] Override http request option.
3012
3074
  * @throws {RequiredError}
3013
3075
  */
3014
- walletPatch(walletId, wallet, options) {
3015
- return localVarFp.walletPatch(walletId, wallet, options).then((request) => request(axios, basePath));
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 {Wallet} [wallet]
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, wallet, options) {
3539
- return (0, exports.DefaultApiFp)(this.configuration).walletPatch(walletId, wallet, options).then((request) => request(this.axios, this.basePath));
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.227",
4
+ "version": "0.0.229",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {