@triveria/wallet 0.0.100 → 0.0.102

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 +99 -37
  2. package/api.js +123 -39
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -256,12 +256,6 @@ export interface CredentialList {
256
256
  * @memberof CredentialList
257
257
  */
258
258
  'next': string;
259
- /**
260
- *
261
- * @type {string}
262
- * @memberof CredentialList
263
- */
264
- 'previous': string;
265
259
  }
266
260
  /**
267
261
  * Any Credential related accompanying key, value pairs that are not part of the Issued Credential
@@ -1263,7 +1257,13 @@ export interface Wallet {
1263
1257
  * @type {string}
1264
1258
  * @memberof Wallet
1265
1259
  */
1266
- 'role'?: string;
1260
+ 'role'?: WalletRoleEnum;
1261
+ /**
1262
+ *
1263
+ * @type {string}
1264
+ * @memberof Wallet
1265
+ */
1266
+ 'did'?: string;
1267
1267
  /**
1268
1268
  * Wallet metadata is a key value container for any custom data a client may want
1269
1269
  * @type {{ [key: string]: any; }}
@@ -1279,6 +1279,12 @@ export interface Wallet {
1279
1279
  */
1280
1280
  'config': WalletConfig;
1281
1281
  }
1282
+ export declare const WalletRoleEnum: {
1283
+ readonly Holder: "holder";
1284
+ readonly Verifier: "verifier";
1285
+ readonly Issuer: "issuer";
1286
+ };
1287
+ export type WalletRoleEnum = typeof WalletRoleEnum[keyof typeof WalletRoleEnum];
1282
1288
  /**
1283
1289
  * Wallet specific configuration.
1284
1290
  * @export
@@ -1373,6 +1379,25 @@ export type WalletNotificationEventTypeEnum = typeof WalletNotificationEventType
1373
1379
  * @export
1374
1380
  */
1375
1381
  export type WalletNotificationEventDetails = IdTokenReceivedNotification | OfferReceivedNotification | VpVerifiedNotification;
1382
+ /**
1383
+ *
1384
+ * @export
1385
+ * @interface WalletNotificationHistory
1386
+ */
1387
+ export interface WalletNotificationHistory {
1388
+ /**
1389
+ *
1390
+ * @type {Array<WalletNotification>}
1391
+ * @memberof WalletNotificationHistory
1392
+ */
1393
+ 'list': Array<WalletNotification>;
1394
+ /**
1395
+ *
1396
+ * @type {string}
1397
+ * @memberof WalletNotificationHistory
1398
+ */
1399
+ 'next': string;
1400
+ }
1376
1401
  /**
1377
1402
  * DefaultApi - axios parameter creator
1378
1403
  * @export
@@ -1421,15 +1446,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1421
1446
  * Retrieves a list of credentials.
1422
1447
  * @param {string} walletId
1423
1448
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1424
- * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1449
+ * @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
1425
1450
  * @param {number} [limit] The number of items
1426
- * @param {number} [skip] The number of items skipped from the beginning of the list.
1427
- * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
1428
- * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
1451
+ * @param {string} [nextMarker] Marking the next set of items
1452
+ * @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
1429
1453
  * @param {*} [options] Override http request option.
1430
1454
  * @throws {RequiredError}
1431
1455
  */
1432
- credentialList: (walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, skip?: number, sortDirection?: CredentialListSortDirectionEnum, sortField?: CredentialListSortFieldEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1456
+ credentialList: (walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, nextMarker?: string, sort?: CredentialListSortEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1433
1457
  /**
1434
1458
  * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1435
1459
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1630,7 +1654,17 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1630
1654
  */
1631
1655
  walletList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1632
1656
  /**
1633
- * Provides wallet notifications
1657
+ * Provides wallet notifications that can be used to audit the wallet activity.
1658
+ * @param {string} walletId Wallet ID
1659
+ * @param {number} [limit] The number of items
1660
+ * @param {string} [nextMarker] Marking the next set of items
1661
+ * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
1662
+ * @param {*} [options] Override http request option.
1663
+ * @throws {RequiredError}
1664
+ */
1665
+ walletNotificationHistory: (walletId: string, limit?: number, nextMarker?: string, sort?: WalletNotificationHistorySortEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1666
+ /**
1667
+ * Provides first-in-first-out queue of notifications for a specific wallet.
1634
1668
  * @param {string} walletId Wallet ID
1635
1669
  * @param {*} [options] Override http request option.
1636
1670
  * @throws {RequiredError}
@@ -1693,15 +1727,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1693
1727
  * Retrieves a list of credentials.
1694
1728
  * @param {string} walletId
1695
1729
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1696
- * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1730
+ * @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
1697
1731
  * @param {number} [limit] The number of items
1698
- * @param {number} [skip] The number of items skipped from the beginning of the list.
1699
- * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
1700
- * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
1732
+ * @param {string} [nextMarker] Marking the next set of items
1733
+ * @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
1701
1734
  * @param {*} [options] Override http request option.
1702
1735
  * @throws {RequiredError}
1703
1736
  */
1704
- credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, skip?: number, sortDirection?: CredentialListSortDirectionEnum, sortField?: CredentialListSortFieldEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialList>>;
1737
+ credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, nextMarker?: string, sort?: CredentialListSortEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialList>>;
1705
1738
  /**
1706
1739
  * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1707
1740
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1902,7 +1935,17 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1902
1935
  */
1903
1936
  walletList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Wallet>>>;
1904
1937
  /**
1905
- * Provides wallet notifications
1938
+ * Provides wallet notifications that can be used to audit the wallet activity.
1939
+ * @param {string} walletId Wallet ID
1940
+ * @param {number} [limit] The number of items
1941
+ * @param {string} [nextMarker] Marking the next set of items
1942
+ * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
1943
+ * @param {*} [options] Override http request option.
1944
+ * @throws {RequiredError}
1945
+ */
1946
+ walletNotificationHistory(walletId: string, limit?: number, nextMarker?: string, sort?: WalletNotificationHistorySortEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletNotificationHistory>>;
1947
+ /**
1948
+ * Provides first-in-first-out queue of notifications for a specific wallet.
1906
1949
  * @param {string} walletId Wallet ID
1907
1950
  * @param {*} [options] Override http request option.
1908
1951
  * @throws {RequiredError}
@@ -1965,15 +2008,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1965
2008
  * Retrieves a list of credentials.
1966
2009
  * @param {string} walletId
1967
2010
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1968
- * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
2011
+ * @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
1969
2012
  * @param {number} [limit] The number of items
1970
- * @param {number} [skip] The number of items skipped from the beginning of the list.
1971
- * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
1972
- * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
2013
+ * @param {string} [nextMarker] Marking the next set of items
2014
+ * @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
1973
2015
  * @param {*} [options] Override http request option.
1974
2016
  * @throws {RequiredError}
1975
2017
  */
1976
- credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, skip?: number, sortDirection?: CredentialListSortDirectionEnum, sortField?: CredentialListSortFieldEnum, options?: any): AxiosPromise<CredentialList>;
2018
+ credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, nextMarker?: string, sort?: CredentialListSortEnum, options?: any): AxiosPromise<CredentialList>;
1977
2019
  /**
1978
2020
  * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1979
2021
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2174,7 +2216,17 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2174
2216
  */
2175
2217
  walletList(options?: any): AxiosPromise<Array<Wallet>>;
2176
2218
  /**
2177
- * Provides wallet notifications
2219
+ * Provides wallet notifications that can be used to audit the wallet activity.
2220
+ * @param {string} walletId Wallet ID
2221
+ * @param {number} [limit] The number of items
2222
+ * @param {string} [nextMarker] Marking the next set of items
2223
+ * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
2224
+ * @param {*} [options] Override http request option.
2225
+ * @throws {RequiredError}
2226
+ */
2227
+ walletNotificationHistory(walletId: string, limit?: number, nextMarker?: string, sort?: WalletNotificationHistorySortEnum, options?: any): AxiosPromise<WalletNotificationHistory>;
2228
+ /**
2229
+ * Provides first-in-first-out queue of notifications for a specific wallet.
2178
2230
  * @param {string} walletId Wallet ID
2179
2231
  * @param {*} [options] Override http request option.
2180
2232
  * @throws {RequiredError}
@@ -2244,16 +2296,15 @@ export declare class DefaultApi extends BaseAPI {
2244
2296
  * Retrieves a list of credentials.
2245
2297
  * @param {string} walletId
2246
2298
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
2247
- * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
2299
+ * @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
2248
2300
  * @param {number} [limit] The number of items
2249
- * @param {number} [skip] The number of items skipped from the beginning of the list.
2250
- * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
2251
- * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
2301
+ * @param {string} [nextMarker] Marking the next set of items
2302
+ * @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
2252
2303
  * @param {*} [options] Override http request option.
2253
2304
  * @throws {RequiredError}
2254
2305
  * @memberof DefaultApi
2255
2306
  */
2256
- credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, skip?: number, sortDirection?: CredentialListSortDirectionEnum, sortField?: CredentialListSortFieldEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialList, any>>;
2307
+ credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, nextMarker?: string, sort?: CredentialListSortEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialList, any>>;
2257
2308
  /**
2258
2309
  * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
2259
2310
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2480,7 +2531,18 @@ export declare class DefaultApi extends BaseAPI {
2480
2531
  */
2481
2532
  walletList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Wallet[], any>>;
2482
2533
  /**
2483
- * Provides wallet notifications
2534
+ * Provides wallet notifications that can be used to audit the wallet activity.
2535
+ * @param {string} walletId Wallet ID
2536
+ * @param {number} [limit] The number of items
2537
+ * @param {string} [nextMarker] Marking the next set of items
2538
+ * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
2539
+ * @param {*} [options] Override http request option.
2540
+ * @throws {RequiredError}
2541
+ * @memberof DefaultApi
2542
+ */
2543
+ walletNotificationHistory(walletId: string, limit?: number, nextMarker?: string, sort?: WalletNotificationHistorySortEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletNotificationHistory, any>>;
2544
+ /**
2545
+ * Provides first-in-first-out queue of notifications for a specific wallet.
2484
2546
  * @param {string} walletId Wallet ID
2485
2547
  * @param {*} [options] Override http request option.
2486
2548
  * @throws {RequiredError}
@@ -2509,16 +2571,16 @@ export type CredentialListInteractionEnum = typeof CredentialListInteractionEnum
2509
2571
  /**
2510
2572
  * @export
2511
2573
  */
2512
- export declare const CredentialListSortDirectionEnum: {
2574
+ export declare const CredentialListSortEnum: {
2513
2575
  readonly Asc: "asc";
2514
2576
  readonly Desc: "desc";
2515
2577
  };
2516
- export type CredentialListSortDirectionEnum = typeof CredentialListSortDirectionEnum[keyof typeof CredentialListSortDirectionEnum];
2578
+ export type CredentialListSortEnum = typeof CredentialListSortEnum[keyof typeof CredentialListSortEnum];
2517
2579
  /**
2518
2580
  * @export
2519
2581
  */
2520
- export declare const CredentialListSortFieldEnum: {
2521
- readonly Updated: "updated";
2522
- readonly Created: "created";
2582
+ export declare const WalletNotificationHistorySortEnum: {
2583
+ readonly Asc: "asc";
2584
+ readonly Desc: "desc";
2523
2585
  };
2524
- export type CredentialListSortFieldEnum = typeof CredentialListSortFieldEnum[keyof typeof CredentialListSortFieldEnum];
2586
+ export type WalletNotificationHistorySortEnum = typeof WalletNotificationHistorySortEnum[keyof typeof WalletNotificationHistorySortEnum];
package/api.js CHANGED
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.CredentialListSortFieldEnum = exports.CredentialListSortDirectionEnum = exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventTypeEnum = exports.WalletConfigTrustFrameworkEnum = exports.SystemImpactStatusEnum = exports.PrepareToAccreditRequestTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialIssuerDefinitionCredentialFormatEnum = exports.AccreditationRequestTypeEnum = void 0;
28
+ exports.WalletNotificationHistorySortEnum = exports.CredentialListSortEnum = exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventTypeEnum = exports.WalletConfigTrustFrameworkEnum = exports.WalletRoleEnum = exports.SystemImpactStatusEnum = exports.PrepareToAccreditRequestTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialIssuerDefinitionCredentialFormatEnum = exports.AccreditationRequestTypeEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -68,6 +68,11 @@ exports.SystemImpactStatusEnum = {
68
68
  Limited: 'limited',
69
69
  Critical: 'critical'
70
70
  };
71
+ exports.WalletRoleEnum = {
72
+ Holder: 'holder',
73
+ Verifier: 'verifier',
74
+ Issuer: 'issuer'
75
+ };
71
76
  exports.WalletConfigTrustFrameworkEnum = {
72
77
  Ebsi: 'EBSI',
73
78
  Tts: 'TTS',
@@ -264,15 +269,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
264
269
  * Retrieves a list of credentials.
265
270
  * @param {string} walletId
266
271
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
267
- * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
272
+ * @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
268
273
  * @param {number} [limit] The number of items
269
- * @param {number} [skip] The number of items skipped from the beginning of the list.
270
- * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
271
- * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
274
+ * @param {string} [nextMarker] Marking the next set of items
275
+ * @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
272
276
  * @param {*} [options] Override http request option.
273
277
  * @throws {RequiredError}
274
278
  */
275
- credentialList: (walletId, interaction, type, limit, skip, sortDirection, sortField, options = {}) => __awaiter(this, void 0, void 0, function* () {
279
+ credentialList: (walletId, interaction, type, limit, nextMarker, sort, options = {}) => __awaiter(this, void 0, void 0, function* () {
276
280
  // verify required parameter 'walletId' is not null or undefined
277
281
  (0, common_1.assertParamExists)('credentialList', 'walletId', walletId);
278
282
  // verify required parameter 'interaction' is not null or undefined
@@ -299,14 +303,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
299
303
  if (limit !== undefined) {
300
304
  localVarQueryParameter['limit'] = limit;
301
305
  }
302
- if (skip !== undefined) {
303
- localVarQueryParameter['skip'] = skip;
304
- }
305
- if (sortDirection !== undefined) {
306
- localVarQueryParameter['sortDirection'] = sortDirection;
306
+ if (nextMarker !== undefined) {
307
+ localVarQueryParameter['nextMarker'] = nextMarker;
307
308
  }
308
- if (sortField !== undefined) {
309
- localVarQueryParameter['sortField'] = sortField;
309
+ if (sort !== undefined) {
310
+ localVarQueryParameter['sort'] = sort;
310
311
  }
311
312
  if (walletId != null) {
312
313
  localVarHeaderParameter['wallet-id'] = String(walletId);
@@ -1198,7 +1199,50 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1198
1199
  };
1199
1200
  }),
1200
1201
  /**
1201
- * Provides wallet notifications
1202
+ * Provides wallet notifications that can be used to audit the wallet activity.
1203
+ * @param {string} walletId Wallet ID
1204
+ * @param {number} [limit] The number of items
1205
+ * @param {string} [nextMarker] Marking the next set of items
1206
+ * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
1207
+ * @param {*} [options] Override http request option.
1208
+ * @throws {RequiredError}
1209
+ */
1210
+ walletNotificationHistory: (walletId, limit, nextMarker, sort, options = {}) => __awaiter(this, void 0, void 0, function* () {
1211
+ // verify required parameter 'walletId' is not null or undefined
1212
+ (0, common_1.assertParamExists)('walletNotificationHistory', 'walletId', walletId);
1213
+ const localVarPath = `/wallets/{wallet_id}/notification_history`
1214
+ .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1215
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1216
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1217
+ let baseOptions;
1218
+ if (configuration) {
1219
+ baseOptions = configuration.baseOptions;
1220
+ }
1221
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1222
+ const localVarHeaderParameter = {};
1223
+ const localVarQueryParameter = {};
1224
+ // authentication accessToken required
1225
+ // http bearer authentication required
1226
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1227
+ if (limit !== undefined) {
1228
+ localVarQueryParameter['limit'] = limit;
1229
+ }
1230
+ if (nextMarker !== undefined) {
1231
+ localVarQueryParameter['nextMarker'] = nextMarker;
1232
+ }
1233
+ if (sort !== undefined) {
1234
+ localVarQueryParameter['sort'] = sort;
1235
+ }
1236
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1237
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1238
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1239
+ return {
1240
+ url: (0, common_1.toPathString)(localVarUrlObj),
1241
+ options: localVarRequestOptions,
1242
+ };
1243
+ }),
1244
+ /**
1245
+ * Provides first-in-first-out queue of notifications for a specific wallet.
1202
1246
  * @param {string} walletId Wallet ID
1203
1247
  * @param {*} [options] Override http request option.
1204
1248
  * @throws {RequiredError}
@@ -1355,18 +1399,17 @@ const DefaultApiFp = function (configuration) {
1355
1399
  * Retrieves a list of credentials.
1356
1400
  * @param {string} walletId
1357
1401
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1358
- * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1402
+ * @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
1359
1403
  * @param {number} [limit] The number of items
1360
- * @param {number} [skip] The number of items skipped from the beginning of the list.
1361
- * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
1362
- * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
1404
+ * @param {string} [nextMarker] Marking the next set of items
1405
+ * @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
1363
1406
  * @param {*} [options] Override http request option.
1364
1407
  * @throws {RequiredError}
1365
1408
  */
1366
- credentialList(walletId, interaction, type, limit, skip, sortDirection, sortField, options) {
1409
+ credentialList(walletId, interaction, type, limit, nextMarker, sort, options) {
1367
1410
  var _a, _b, _c;
1368
1411
  return __awaiter(this, void 0, void 0, function* () {
1369
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(walletId, interaction, type, limit, skip, sortDirection, sortField, options);
1412
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(walletId, interaction, type, limit, nextMarker, sort, options);
1370
1413
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1371
1414
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1372
1415
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1780,7 +1823,25 @@ const DefaultApiFp = function (configuration) {
1780
1823
  });
1781
1824
  },
1782
1825
  /**
1783
- * Provides wallet notifications
1826
+ * Provides wallet notifications that can be used to audit the wallet activity.
1827
+ * @param {string} walletId Wallet ID
1828
+ * @param {number} [limit] The number of items
1829
+ * @param {string} [nextMarker] Marking the next set of items
1830
+ * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
1831
+ * @param {*} [options] Override http request option.
1832
+ * @throws {RequiredError}
1833
+ */
1834
+ walletNotificationHistory(walletId, limit, nextMarker, sort, options) {
1835
+ var _a, _b, _c;
1836
+ return __awaiter(this, void 0, void 0, function* () {
1837
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletNotificationHistory(walletId, limit, nextMarker, sort, options);
1838
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1839
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletNotificationHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1840
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1841
+ });
1842
+ },
1843
+ /**
1844
+ * Provides first-in-first-out queue of notifications for a specific wallet.
1784
1845
  * @param {string} walletId Wallet ID
1785
1846
  * @param {*} [options] Override http request option.
1786
1847
  * @throws {RequiredError}
@@ -1873,16 +1934,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1873
1934
  * Retrieves a list of credentials.
1874
1935
  * @param {string} walletId
1875
1936
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1876
- * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1937
+ * @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
1877
1938
  * @param {number} [limit] The number of items
1878
- * @param {number} [skip] The number of items skipped from the beginning of the list.
1879
- * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
1880
- * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
1939
+ * @param {string} [nextMarker] Marking the next set of items
1940
+ * @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
1881
1941
  * @param {*} [options] Override http request option.
1882
1942
  * @throws {RequiredError}
1883
1943
  */
1884
- credentialList(walletId, interaction, type, limit, skip, sortDirection, sortField, options) {
1885
- return localVarFp.credentialList(walletId, interaction, type, limit, skip, sortDirection, sortField, options).then((request) => request(axios, basePath));
1944
+ credentialList(walletId, interaction, type, limit, nextMarker, sort, options) {
1945
+ return localVarFp.credentialList(walletId, interaction, type, limit, nextMarker, sort, options).then((request) => request(axios, basePath));
1886
1946
  },
1887
1947
  /**
1888
1948
  * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
@@ -2136,7 +2196,19 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2136
2196
  return localVarFp.walletList(options).then((request) => request(axios, basePath));
2137
2197
  },
2138
2198
  /**
2139
- * Provides wallet notifications
2199
+ * Provides wallet notifications that can be used to audit the wallet activity.
2200
+ * @param {string} walletId Wallet ID
2201
+ * @param {number} [limit] The number of items
2202
+ * @param {string} [nextMarker] Marking the next set of items
2203
+ * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
2204
+ * @param {*} [options] Override http request option.
2205
+ * @throws {RequiredError}
2206
+ */
2207
+ walletNotificationHistory(walletId, limit, nextMarker, sort, options) {
2208
+ return localVarFp.walletNotificationHistory(walletId, limit, nextMarker, sort, options).then((request) => request(axios, basePath));
2209
+ },
2210
+ /**
2211
+ * Provides first-in-first-out queue of notifications for a specific wallet.
2140
2212
  * @param {string} walletId Wallet ID
2141
2213
  * @param {*} [options] Override http request option.
2142
2214
  * @throws {RequiredError}
@@ -2222,17 +2294,16 @@ class DefaultApi extends base_1.BaseAPI {
2222
2294
  * Retrieves a list of credentials.
2223
2295
  * @param {string} walletId
2224
2296
  * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
2225
- * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
2297
+ * @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
2226
2298
  * @param {number} [limit] The number of items
2227
- * @param {number} [skip] The number of items skipped from the beginning of the list.
2228
- * @param {CredentialListSortDirectionEnum} [sortDirection] The sorting direction.
2229
- * @param {CredentialListSortFieldEnum} [sortField] The sorting field.
2299
+ * @param {string} [nextMarker] Marking the next set of items
2300
+ * @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
2230
2301
  * @param {*} [options] Override http request option.
2231
2302
  * @throws {RequiredError}
2232
2303
  * @memberof DefaultApi
2233
2304
  */
2234
- credentialList(walletId, interaction, type, limit, skip, sortDirection, sortField, options) {
2235
- return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, interaction, type, limit, skip, sortDirection, sortField, options).then((request) => request(this.axios, this.basePath));
2305
+ credentialList(walletId, interaction, type, limit, nextMarker, sort, options) {
2306
+ return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, interaction, type, limit, nextMarker, sort, options).then((request) => request(this.axios, this.basePath));
2236
2307
  }
2237
2308
  /**
2238
2309
  * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
@@ -2512,7 +2583,20 @@ class DefaultApi extends base_1.BaseAPI {
2512
2583
  return (0, exports.DefaultApiFp)(this.configuration).walletList(options).then((request) => request(this.axios, this.basePath));
2513
2584
  }
2514
2585
  /**
2515
- * Provides wallet notifications
2586
+ * Provides wallet notifications that can be used to audit the wallet activity.
2587
+ * @param {string} walletId Wallet ID
2588
+ * @param {number} [limit] The number of items
2589
+ * @param {string} [nextMarker] Marking the next set of items
2590
+ * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
2591
+ * @param {*} [options] Override http request option.
2592
+ * @throws {RequiredError}
2593
+ * @memberof DefaultApi
2594
+ */
2595
+ walletNotificationHistory(walletId, limit, nextMarker, sort, options) {
2596
+ return (0, exports.DefaultApiFp)(this.configuration).walletNotificationHistory(walletId, limit, nextMarker, sort, options).then((request) => request(this.axios, this.basePath));
2597
+ }
2598
+ /**
2599
+ * Provides first-in-first-out queue of notifications for a specific wallet.
2516
2600
  * @param {string} walletId Wallet ID
2517
2601
  * @param {*} [options] Override http request option.
2518
2602
  * @throws {RequiredError}
@@ -2545,14 +2629,14 @@ exports.CredentialListInteractionEnum = {
2545
2629
  /**
2546
2630
  * @export
2547
2631
  */
2548
- exports.CredentialListSortDirectionEnum = {
2632
+ exports.CredentialListSortEnum = {
2549
2633
  Asc: 'asc',
2550
2634
  Desc: 'desc'
2551
2635
  };
2552
2636
  /**
2553
2637
  * @export
2554
2638
  */
2555
- exports.CredentialListSortFieldEnum = {
2556
- Updated: 'updated',
2557
- Created: 'created'
2639
+ exports.WalletNotificationHistorySortEnum = {
2640
+ Asc: 'asc',
2641
+ Desc: 'desc'
2558
2642
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.100",
4
+ "version": "0.0.102",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {