@triveria/wallet 0.0.229 → 0.0.231

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 +33 -70
  2. package/api.js +50 -151
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -27,6 +27,7 @@ export interface AccreditationRequest {
27
27
  'type': AccreditationRequestTypeEnum;
28
28
  }
29
29
  export declare const AccreditationRequestTypeEnum: {
30
+ readonly TrustedIssuer: "TrustedIssuer";
30
31
  readonly TrustedAccreditationOrganisation: "TrustedAccreditationOrganisation";
31
32
  readonly RootTrustedAccreditationOrganisation: "RootTrustedAccreditationOrganisation";
32
33
  };
@@ -2170,6 +2171,14 @@ export interface Wallet {
2170
2171
  * @memberof Wallet
2171
2172
  */
2172
2173
  'config': WalletConfig;
2174
+ /**
2175
+ * Custom key value pairs associated with the wallet. The key must not exceed 64 characters and the value must not exceed 256 characters.
2176
+ * @type {{ [key: string]: any; }}
2177
+ * @memberof Wallet
2178
+ */
2179
+ 'metadata'?: {
2180
+ [key: string]: any;
2181
+ };
2173
2182
  }
2174
2183
  /**
2175
2184
  * Defines the capabilities which the wallet has. It may be any of \"holder\", \"issuer\" and \"verifier\".
@@ -2349,6 +2358,14 @@ export interface WalletPatchPayload {
2349
2358
  * @memberof WalletPatchPayload
2350
2359
  */
2351
2360
  'config'?: WalletConfig;
2361
+ /**
2362
+ * Custom key value pairs associated with the wallet. The key must not exceed 64 characters and the value must not exceed 256 characters.
2363
+ * @type {{ [key: string]: any; }}
2364
+ * @memberof WalletPatchPayload
2365
+ */
2366
+ 'metadata'?: {
2367
+ [key: string]: any;
2368
+ };
2352
2369
  }
2353
2370
  /**
2354
2371
  * DefaultApi - axios parameter creator
@@ -2585,34 +2602,20 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2585
2602
  */
2586
2603
  issuerInitiatePreauthOffer: (walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2587
2604
  /**
2588
- * Accredits a legal entity as RTAO or TAO.
2605
+ * Accredits a legal entity as RTAO, TAO or TI.
2589
2606
  * @param {string} walletId
2590
2607
  * @param {AccreditationRequest} [accreditationRequest]
2591
2608
  * @param {*} [options] Override http request option.
2592
2609
  * @throws {RequiredError}
2593
2610
  */
2594
2611
  tfAccreditAs: (walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2595
- /**
2596
- * Accredits the wallet as a trusted issuer.
2597
- * @param {string} walletId
2598
- * @param {*} [options] Override http request option.
2599
- * @throws {RequiredError}
2600
- */
2601
- tfAccreditAsTrustedIssuer: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2602
- /**
2603
- * Registers an issuer proxy used by EBSI for the credential status retrieval through EBSI network.
2604
- * @param {string} walletId
2605
- * @param {*} [options] Override http request option.
2606
- * @throws {RequiredError}
2607
- */
2608
- tfInsertIssuerProxy: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2609
2612
  /**
2610
2613
  * Onboards legal entity to the trust framework based on the wallet configuration.
2611
2614
  * @param {string} walletId
2612
2615
  * @param {*} [options] Override http request option.
2613
2616
  * @throws {RequiredError}
2614
2617
  */
2615
- tfOnboardLegalEntity: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2618
+ tfOnboard: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2616
2619
  /**
2617
2620
  * Prepares another legal entity\'s wallet DID for accreditation.
2618
2621
  * @param {string} walletId
@@ -2684,10 +2687,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2684
2687
  /**
2685
2688
  * Provides list of wallets owned by the authenticated client.
2686
2689
  * @param {string} [ownerId]
2690
+ * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
2687
2691
  * @param {*} [options] Override http request option.
2688
2692
  * @throws {RequiredError}
2689
2693
  */
2690
- walletList: (ownerId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2694
+ walletList: (ownerId?: string, searchName?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2691
2695
  /**
2692
2696
  * Gets a specific notification by state
2693
2697
  * @param {string} walletId Wallet ID
@@ -2974,34 +2978,20 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2974
2978
  */
2975
2979
  issuerInitiatePreauthOffer(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreAuthOffer>>;
2976
2980
  /**
2977
- * Accredits a legal entity as RTAO or TAO.
2981
+ * Accredits a legal entity as RTAO, TAO or TI.
2978
2982
  * @param {string} walletId
2979
2983
  * @param {AccreditationRequest} [accreditationRequest]
2980
2984
  * @param {*} [options] Override http request option.
2981
2985
  * @throws {RequiredError}
2982
2986
  */
2983
2987
  tfAccreditAs(walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2984
- /**
2985
- * Accredits the wallet as a trusted issuer.
2986
- * @param {string} walletId
2987
- * @param {*} [options] Override http request option.
2988
- * @throws {RequiredError}
2989
- */
2990
- tfAccreditAsTrustedIssuer(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2991
- /**
2992
- * Registers an issuer proxy used by EBSI for the credential status retrieval through EBSI network.
2993
- * @param {string} walletId
2994
- * @param {*} [options] Override http request option.
2995
- * @throws {RequiredError}
2996
- */
2997
- tfInsertIssuerProxy(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2998
2988
  /**
2999
2989
  * Onboards legal entity to the trust framework based on the wallet configuration.
3000
2990
  * @param {string} walletId
3001
2991
  * @param {*} [options] Override http request option.
3002
2992
  * @throws {RequiredError}
3003
2993
  */
3004
- tfOnboardLegalEntity(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnboardResult>>;
2994
+ tfOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnboardResult>>;
3005
2995
  /**
3006
2996
  * Prepares another legal entity\'s wallet DID for accreditation.
3007
2997
  * @param {string} walletId
@@ -3075,10 +3065,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3075
3065
  /**
3076
3066
  * Provides list of wallets owned by the authenticated client.
3077
3067
  * @param {string} [ownerId]
3068
+ * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
3078
3069
  * @param {*} [options] Override http request option.
3079
3070
  * @throws {RequiredError}
3080
3071
  */
3081
- walletList(ownerId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WalletListItem>>>;
3072
+ walletList(ownerId?: string, searchName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WalletListItem>>>;
3082
3073
  /**
3083
3074
  * Gets a specific notification by state
3084
3075
  * @param {string} walletId Wallet ID
@@ -3365,34 +3356,20 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3365
3356
  */
3366
3357
  issuerInitiatePreauthOffer(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): AxiosPromise<PreAuthOffer>;
3367
3358
  /**
3368
- * Accredits a legal entity as RTAO or TAO.
3359
+ * Accredits a legal entity as RTAO, TAO or TI.
3369
3360
  * @param {string} walletId
3370
3361
  * @param {AccreditationRequest} [accreditationRequest]
3371
3362
  * @param {*} [options] Override http request option.
3372
3363
  * @throws {RequiredError}
3373
3364
  */
3374
3365
  tfAccreditAs(walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3375
- /**
3376
- * Accredits the wallet as a trusted issuer.
3377
- * @param {string} walletId
3378
- * @param {*} [options] Override http request option.
3379
- * @throws {RequiredError}
3380
- */
3381
- tfAccreditAsTrustedIssuer(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3382
- /**
3383
- * Registers an issuer proxy used by EBSI for the credential status retrieval through EBSI network.
3384
- * @param {string} walletId
3385
- * @param {*} [options] Override http request option.
3386
- * @throws {RequiredError}
3387
- */
3388
- tfInsertIssuerProxy(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3389
3366
  /**
3390
3367
  * Onboards legal entity to the trust framework based on the wallet configuration.
3391
3368
  * @param {string} walletId
3392
3369
  * @param {*} [options] Override http request option.
3393
3370
  * @throws {RequiredError}
3394
3371
  */
3395
- tfOnboardLegalEntity(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<OnboardResult>;
3372
+ tfOnboard(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<OnboardResult>;
3396
3373
  /**
3397
3374
  * Prepares another legal entity\'s wallet DID for accreditation.
3398
3375
  * @param {string} walletId
@@ -3466,10 +3443,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3466
3443
  /**
3467
3444
  * Provides list of wallets owned by the authenticated client.
3468
3445
  * @param {string} [ownerId]
3446
+ * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
3469
3447
  * @param {*} [options] Override http request option.
3470
3448
  * @throws {RequiredError}
3471
3449
  */
3472
- walletList(ownerId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<WalletListItem>>;
3450
+ walletList(ownerId?: string, searchName?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<WalletListItem>>;
3473
3451
  /**
3474
3452
  * Gets a specific notification by state
3475
3453
  * @param {string} walletId Wallet ID
@@ -3786,7 +3764,7 @@ export declare class DefaultApi extends BaseAPI {
3786
3764
  */
3787
3765
  issuerInitiatePreauthOffer(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PreAuthOffer, any>>;
3788
3766
  /**
3789
- * Accredits a legal entity as RTAO or TAO.
3767
+ * Accredits a legal entity as RTAO, TAO or TI.
3790
3768
  * @param {string} walletId
3791
3769
  * @param {AccreditationRequest} [accreditationRequest]
3792
3770
  * @param {*} [options] Override http request option.
@@ -3794,22 +3772,6 @@ export declare class DefaultApi extends BaseAPI {
3794
3772
  * @memberof DefaultApi
3795
3773
  */
3796
3774
  tfAccreditAs(walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3797
- /**
3798
- * Accredits the wallet as a trusted issuer.
3799
- * @param {string} walletId
3800
- * @param {*} [options] Override http request option.
3801
- * @throws {RequiredError}
3802
- * @memberof DefaultApi
3803
- */
3804
- tfAccreditAsTrustedIssuer(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3805
- /**
3806
- * Registers an issuer proxy used by EBSI for the credential status retrieval through EBSI network.
3807
- * @param {string} walletId
3808
- * @param {*} [options] Override http request option.
3809
- * @throws {RequiredError}
3810
- * @memberof DefaultApi
3811
- */
3812
- tfInsertIssuerProxy(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3813
3775
  /**
3814
3776
  * Onboards legal entity to the trust framework based on the wallet configuration.
3815
3777
  * @param {string} walletId
@@ -3817,7 +3779,7 @@ export declare class DefaultApi extends BaseAPI {
3817
3779
  * @throws {RequiredError}
3818
3780
  * @memberof DefaultApi
3819
3781
  */
3820
- tfOnboardLegalEntity(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OnboardResult, any>>;
3782
+ tfOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OnboardResult, any>>;
3821
3783
  /**
3822
3784
  * Prepares another legal entity\'s wallet DID for accreditation.
3823
3785
  * @param {string} walletId
@@ -3900,11 +3862,12 @@ export declare class DefaultApi extends BaseAPI {
3900
3862
  /**
3901
3863
  * Provides list of wallets owned by the authenticated client.
3902
3864
  * @param {string} [ownerId]
3865
+ * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
3903
3866
  * @param {*} [options] Override http request option.
3904
3867
  * @throws {RequiredError}
3905
3868
  * @memberof DefaultApi
3906
3869
  */
3907
- walletList(ownerId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletListItem[], any>>;
3870
+ walletList(ownerId?: string, searchName?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletListItem[], any>>;
3908
3871
  /**
3909
3872
  * Gets a specific notification by state
3910
3873
  * @param {string} walletId Wallet ID
package/api.js CHANGED
@@ -33,6 +33,7 @@ const common_1 = require("./common");
33
33
  // @ts-ignore
34
34
  const base_1 = require("./base");
35
35
  exports.AccreditationRequestTypeEnum = {
36
+ TrustedIssuer: 'TrustedIssuer',
36
37
  TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation',
37
38
  RootTrustedAccreditationOrganisation: 'RootTrustedAccreditationOrganisation'
38
39
  };
@@ -731,6 +732,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
731
732
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
732
733
  const localVarHeaderParameter = {};
733
734
  const localVarQueryParameter = {};
735
+ // authentication accessToken required
736
+ // http bearer authentication required
737
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
734
738
  localVarHeaderParameter['Content-Type'] = 'application/json';
735
739
  if (walletId != null) {
736
740
  localVarHeaderParameter['wallet-id'] = String(walletId);
@@ -800,6 +804,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
800
804
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
801
805
  const localVarHeaderParameter = {};
802
806
  const localVarQueryParameter = {};
807
+ // authentication accessToken required
808
+ // http bearer authentication required
809
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
803
810
  localVarHeaderParameter['Content-Type'] = 'application/json';
804
811
  if (walletId != null) {
805
812
  localVarHeaderParameter['wallet-id'] = String(walletId);
@@ -836,6 +843,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
836
843
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
837
844
  const localVarHeaderParameter = {};
838
845
  const localVarQueryParameter = {};
846
+ // authentication accessToken required
847
+ // http bearer authentication required
848
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
839
849
  if (walletId != null) {
840
850
  localVarHeaderParameter['wallet-id'] = String(walletId);
841
851
  }
@@ -870,6 +880,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
870
880
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
871
881
  const localVarHeaderParameter = {};
872
882
  const localVarQueryParameter = {};
883
+ // authentication accessToken required
884
+ // http bearer authentication required
885
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
873
886
  if (walletId != null) {
874
887
  localVarHeaderParameter['wallet-id'] = String(walletId);
875
888
  }
@@ -900,6 +913,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
900
913
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
901
914
  const localVarHeaderParameter = {};
902
915
  const localVarQueryParameter = {};
916
+ // authentication accessToken required
917
+ // http bearer authentication required
918
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
903
919
  if (walletId != null) {
904
920
  localVarHeaderParameter['wallet-id'] = String(walletId);
905
921
  }
@@ -971,6 +987,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
971
987
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
972
988
  const localVarHeaderParameter = {};
973
989
  const localVarQueryParameter = {};
990
+ // authentication accessToken required
991
+ // http bearer authentication required
992
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
974
993
  localVarHeaderParameter['Content-Type'] = 'application/json';
975
994
  if (walletId != null) {
976
995
  localVarHeaderParameter['wallet-id'] = String(walletId);
@@ -1072,6 +1091,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1072
1091
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1073
1092
  const localVarHeaderParameter = {};
1074
1093
  const localVarQueryParameter = {};
1094
+ // authentication accessToken required
1095
+ // http bearer authentication required
1096
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1075
1097
  if (url !== undefined) {
1076
1098
  localVarQueryParameter['url'] = url;
1077
1099
  }
@@ -1156,7 +1178,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1156
1178
  };
1157
1179
  }),
1158
1180
  /**
1159
- * Accredits a legal entity as RTAO or TAO.
1181
+ * Accredits a legal entity as RTAO, TAO or TI.
1160
1182
  * @param {string} walletId
1161
1183
  * @param {AccreditationRequest} [accreditationRequest]
1162
1184
  * @param {*} [options] Override http request option.
@@ -1189,78 +1211,16 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1189
1211
  options: localVarRequestOptions,
1190
1212
  };
1191
1213
  }),
1192
- /**
1193
- * Accredits the wallet as a trusted issuer.
1194
- * @param {string} walletId
1195
- * @param {*} [options] Override http request option.
1196
- * @throws {RequiredError}
1197
- */
1198
- tfAccreditAsTrustedIssuer: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1199
- // verify required parameter 'walletId' is not null or undefined
1200
- (0, common_1.assertParamExists)('tfAccreditAsTrustedIssuer', 'walletId', walletId);
1201
- const localVarPath = `/tf/{wallet_id}/accredit-as-trusted-issuer`
1202
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1203
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1204
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1205
- let baseOptions;
1206
- if (configuration) {
1207
- baseOptions = configuration.baseOptions;
1208
- }
1209
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1210
- const localVarHeaderParameter = {};
1211
- const localVarQueryParameter = {};
1212
- // authentication accessToken required
1213
- // http bearer authentication required
1214
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1215
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1216
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1217
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1218
- return {
1219
- url: (0, common_1.toPathString)(localVarUrlObj),
1220
- options: localVarRequestOptions,
1221
- };
1222
- }),
1223
- /**
1224
- * Registers an issuer proxy used by EBSI for the credential status retrieval through EBSI network.
1225
- * @param {string} walletId
1226
- * @param {*} [options] Override http request option.
1227
- * @throws {RequiredError}
1228
- */
1229
- tfInsertIssuerProxy: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1230
- // verify required parameter 'walletId' is not null or undefined
1231
- (0, common_1.assertParamExists)('tfInsertIssuerProxy', 'walletId', walletId);
1232
- const localVarPath = `/tf/{wallet_id}/insert-issuer-proxy`
1233
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1234
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1235
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1236
- let baseOptions;
1237
- if (configuration) {
1238
- baseOptions = configuration.baseOptions;
1239
- }
1240
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1241
- const localVarHeaderParameter = {};
1242
- const localVarQueryParameter = {};
1243
- // authentication accessToken required
1244
- // http bearer authentication required
1245
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1246
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1247
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1248
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1249
- return {
1250
- url: (0, common_1.toPathString)(localVarUrlObj),
1251
- options: localVarRequestOptions,
1252
- };
1253
- }),
1254
1214
  /**
1255
1215
  * Onboards legal entity to the trust framework based on the wallet configuration.
1256
1216
  * @param {string} walletId
1257
1217
  * @param {*} [options] Override http request option.
1258
1218
  * @throws {RequiredError}
1259
1219
  */
1260
- tfOnboardLegalEntity: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1220
+ tfOnboard: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1261
1221
  // verify required parameter 'walletId' is not null or undefined
1262
- (0, common_1.assertParamExists)('tfOnboardLegalEntity', 'walletId', walletId);
1263
- const localVarPath = `/tf/{wallet_id}/onboard-legal-entity`
1222
+ (0, common_1.assertParamExists)('tfOnboard', 'walletId', walletId);
1223
+ const localVarPath = `/tf/{wallet_id}/onboard`
1264
1224
  .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1265
1225
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1266
1226
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1585,10 +1545,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1585
1545
  /**
1586
1546
  * Provides list of wallets owned by the authenticated client.
1587
1547
  * @param {string} [ownerId]
1548
+ * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
1588
1549
  * @param {*} [options] Override http request option.
1589
1550
  * @throws {RequiredError}
1590
1551
  */
1591
- walletList: (ownerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1552
+ walletList: (ownerId, searchName, options = {}) => __awaiter(this, void 0, void 0, function* () {
1592
1553
  const localVarPath = `/wallets`;
1593
1554
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1594
1555
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1605,6 +1566,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1605
1566
  if (ownerId !== undefined) {
1606
1567
  localVarQueryParameter['ownerId'] = ownerId;
1607
1568
  }
1569
+ if (searchName !== undefined) {
1570
+ localVarQueryParameter['searchName'] = searchName;
1571
+ }
1608
1572
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1609
1573
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1610
1574
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2294,7 +2258,7 @@ const DefaultApiFp = function (configuration) {
2294
2258
  });
2295
2259
  },
2296
2260
  /**
2297
- * Accredits a legal entity as RTAO or TAO.
2261
+ * Accredits a legal entity as RTAO, TAO or TI.
2298
2262
  * @param {string} walletId
2299
2263
  * @param {AccreditationRequest} [accreditationRequest]
2300
2264
  * @param {*} [options] Override http request option.
@@ -2309,48 +2273,18 @@ const DefaultApiFp = function (configuration) {
2309
2273
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2310
2274
  });
2311
2275
  },
2312
- /**
2313
- * Accredits the wallet as a trusted issuer.
2314
- * @param {string} walletId
2315
- * @param {*} [options] Override http request option.
2316
- * @throws {RequiredError}
2317
- */
2318
- tfAccreditAsTrustedIssuer(walletId, options) {
2319
- var _a, _b, _c;
2320
- return __awaiter(this, void 0, void 0, function* () {
2321
- const localVarAxiosArgs = yield localVarAxiosParamCreator.tfAccreditAsTrustedIssuer(walletId, options);
2322
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2323
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tfAccreditAsTrustedIssuer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2324
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2325
- });
2326
- },
2327
- /**
2328
- * Registers an issuer proxy used by EBSI for the credential status retrieval through EBSI network.
2329
- * @param {string} walletId
2330
- * @param {*} [options] Override http request option.
2331
- * @throws {RequiredError}
2332
- */
2333
- tfInsertIssuerProxy(walletId, options) {
2334
- var _a, _b, _c;
2335
- return __awaiter(this, void 0, void 0, function* () {
2336
- const localVarAxiosArgs = yield localVarAxiosParamCreator.tfInsertIssuerProxy(walletId, options);
2337
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2338
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tfInsertIssuerProxy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2339
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2340
- });
2341
- },
2342
2276
  /**
2343
2277
  * Onboards legal entity to the trust framework based on the wallet configuration.
2344
2278
  * @param {string} walletId
2345
2279
  * @param {*} [options] Override http request option.
2346
2280
  * @throws {RequiredError}
2347
2281
  */
2348
- tfOnboardLegalEntity(walletId, options) {
2282
+ tfOnboard(walletId, options) {
2349
2283
  var _a, _b, _c;
2350
2284
  return __awaiter(this, void 0, void 0, function* () {
2351
- const localVarAxiosArgs = yield localVarAxiosParamCreator.tfOnboardLegalEntity(walletId, options);
2285
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tfOnboard(walletId, options);
2352
2286
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2353
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tfOnboardLegalEntity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2287
+ 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;
2354
2288
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2355
2289
  });
2356
2290
  },
@@ -2497,13 +2431,14 @@ const DefaultApiFp = function (configuration) {
2497
2431
  /**
2498
2432
  * Provides list of wallets owned by the authenticated client.
2499
2433
  * @param {string} [ownerId]
2434
+ * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
2500
2435
  * @param {*} [options] Override http request option.
2501
2436
  * @throws {RequiredError}
2502
2437
  */
2503
- walletList(ownerId, options) {
2438
+ walletList(ownerId, searchName, options) {
2504
2439
  var _a, _b, _c;
2505
2440
  return __awaiter(this, void 0, void 0, function* () {
2506
- const localVarAxiosArgs = yield localVarAxiosParamCreator.walletList(ownerId, options);
2441
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletList(ownerId, searchName, options);
2507
2442
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2508
2443
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2509
2444
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2903,7 +2838,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2903
2838
  return localVarFp.issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options).then((request) => request(axios, basePath));
2904
2839
  },
2905
2840
  /**
2906
- * Accredits a legal entity as RTAO or TAO.
2841
+ * Accredits a legal entity as RTAO, TAO or TI.
2907
2842
  * @param {string} walletId
2908
2843
  * @param {AccreditationRequest} [accreditationRequest]
2909
2844
  * @param {*} [options] Override http request option.
@@ -2912,32 +2847,14 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2912
2847
  tfAccreditAs(walletId, accreditationRequest, options) {
2913
2848
  return localVarFp.tfAccreditAs(walletId, accreditationRequest, options).then((request) => request(axios, basePath));
2914
2849
  },
2915
- /**
2916
- * Accredits the wallet as a trusted issuer.
2917
- * @param {string} walletId
2918
- * @param {*} [options] Override http request option.
2919
- * @throws {RequiredError}
2920
- */
2921
- tfAccreditAsTrustedIssuer(walletId, options) {
2922
- return localVarFp.tfAccreditAsTrustedIssuer(walletId, options).then((request) => request(axios, basePath));
2923
- },
2924
- /**
2925
- * Registers an issuer proxy used by EBSI for the credential status retrieval through EBSI network.
2926
- * @param {string} walletId
2927
- * @param {*} [options] Override http request option.
2928
- * @throws {RequiredError}
2929
- */
2930
- tfInsertIssuerProxy(walletId, options) {
2931
- return localVarFp.tfInsertIssuerProxy(walletId, options).then((request) => request(axios, basePath));
2932
- },
2933
2850
  /**
2934
2851
  * Onboards legal entity to the trust framework based on the wallet configuration.
2935
2852
  * @param {string} walletId
2936
2853
  * @param {*} [options] Override http request option.
2937
2854
  * @throws {RequiredError}
2938
2855
  */
2939
- tfOnboardLegalEntity(walletId, options) {
2940
- return localVarFp.tfOnboardLegalEntity(walletId, options).then((request) => request(axios, basePath));
2856
+ tfOnboard(walletId, options) {
2857
+ return localVarFp.tfOnboard(walletId, options).then((request) => request(axios, basePath));
2941
2858
  },
2942
2859
  /**
2943
2860
  * Prepares another legal entity\'s wallet DID for accreditation.
@@ -3028,11 +2945,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
3028
2945
  /**
3029
2946
  * Provides list of wallets owned by the authenticated client.
3030
2947
  * @param {string} [ownerId]
2948
+ * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
3031
2949
  * @param {*} [options] Override http request option.
3032
2950
  * @throws {RequiredError}
3033
2951
  */
3034
- walletList(ownerId, options) {
3035
- return localVarFp.walletList(ownerId, options).then((request) => request(axios, basePath));
2952
+ walletList(ownerId, searchName, options) {
2953
+ return localVarFp.walletList(ownerId, searchName, options).then((request) => request(axios, basePath));
3036
2954
  },
3037
2955
  /**
3038
2956
  * Gets a specific notification by state
@@ -3420,7 +3338,7 @@ class DefaultApi extends base_1.BaseAPI {
3420
3338
  return (0, exports.DefaultApiFp)(this.configuration).issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options).then((request) => request(this.axios, this.basePath));
3421
3339
  }
3422
3340
  /**
3423
- * Accredits a legal entity as RTAO or TAO.
3341
+ * Accredits a legal entity as RTAO, TAO or TI.
3424
3342
  * @param {string} walletId
3425
3343
  * @param {AccreditationRequest} [accreditationRequest]
3426
3344
  * @param {*} [options] Override http request option.
@@ -3430,26 +3348,6 @@ class DefaultApi extends base_1.BaseAPI {
3430
3348
  tfAccreditAs(walletId, accreditationRequest, options) {
3431
3349
  return (0, exports.DefaultApiFp)(this.configuration).tfAccreditAs(walletId, accreditationRequest, options).then((request) => request(this.axios, this.basePath));
3432
3350
  }
3433
- /**
3434
- * Accredits the wallet as a trusted issuer.
3435
- * @param {string} walletId
3436
- * @param {*} [options] Override http request option.
3437
- * @throws {RequiredError}
3438
- * @memberof DefaultApi
3439
- */
3440
- tfAccreditAsTrustedIssuer(walletId, options) {
3441
- return (0, exports.DefaultApiFp)(this.configuration).tfAccreditAsTrustedIssuer(walletId, options).then((request) => request(this.axios, this.basePath));
3442
- }
3443
- /**
3444
- * Registers an issuer proxy used by EBSI for the credential status retrieval through EBSI network.
3445
- * @param {string} walletId
3446
- * @param {*} [options] Override http request option.
3447
- * @throws {RequiredError}
3448
- * @memberof DefaultApi
3449
- */
3450
- tfInsertIssuerProxy(walletId, options) {
3451
- return (0, exports.DefaultApiFp)(this.configuration).tfInsertIssuerProxy(walletId, options).then((request) => request(this.axios, this.basePath));
3452
- }
3453
3351
  /**
3454
3352
  * Onboards legal entity to the trust framework based on the wallet configuration.
3455
3353
  * @param {string} walletId
@@ -3457,8 +3355,8 @@ class DefaultApi extends base_1.BaseAPI {
3457
3355
  * @throws {RequiredError}
3458
3356
  * @memberof DefaultApi
3459
3357
  */
3460
- tfOnboardLegalEntity(walletId, options) {
3461
- return (0, exports.DefaultApiFp)(this.configuration).tfOnboardLegalEntity(walletId, options).then((request) => request(this.axios, this.basePath));
3358
+ tfOnboard(walletId, options) {
3359
+ return (0, exports.DefaultApiFp)(this.configuration).tfOnboard(walletId, options).then((request) => request(this.axios, this.basePath));
3462
3360
  }
3463
3361
  /**
3464
3362
  * Prepares another legal entity\'s wallet DID for accreditation.
@@ -3558,12 +3456,13 @@ class DefaultApi extends base_1.BaseAPI {
3558
3456
  /**
3559
3457
  * Provides list of wallets owned by the authenticated client.
3560
3458
  * @param {string} [ownerId]
3459
+ * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
3561
3460
  * @param {*} [options] Override http request option.
3562
3461
  * @throws {RequiredError}
3563
3462
  * @memberof DefaultApi
3564
3463
  */
3565
- walletList(ownerId, options) {
3566
- return (0, exports.DefaultApiFp)(this.configuration).walletList(ownerId, options).then((request) => request(this.axios, this.basePath));
3464
+ walletList(ownerId, searchName, options) {
3465
+ return (0, exports.DefaultApiFp)(this.configuration).walletList(ownerId, searchName, options).then((request) => request(this.axios, this.basePath));
3567
3466
  }
3568
3467
  /**
3569
3468
  * Gets a specific notification 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.229",
4
+ "version": "0.0.231",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {