@triveria/wallet 0.0.111 → 0.0.113

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 +22 -14
  2. package/api.js +21 -10
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -1343,10 +1343,10 @@ export interface WalletNotification {
1343
1343
  'subjectDid': string;
1344
1344
  /**
1345
1345
  *
1346
- * @type {string}
1346
+ * @type {WalletNotificationEventType}
1347
1347
  * @memberof WalletNotification
1348
1348
  */
1349
- 'eventType': WalletNotificationEventTypeEnum;
1349
+ 'eventType': WalletNotificationEventType;
1350
1350
  /**
1351
1351
  *
1352
1352
  * @type {WalletNotificationEventDetails}
@@ -1360,19 +1360,24 @@ export interface WalletNotification {
1360
1360
  */
1361
1361
  'time': string;
1362
1362
  }
1363
- export declare const WalletNotificationEventTypeEnum: {
1363
+ /**
1364
+ * @type WalletNotificationEventDetails
1365
+ * @export
1366
+ */
1367
+ export type WalletNotificationEventDetails = IdTokenReceivedNotification | OfferReceivedNotification | VpVerifiedNotification;
1368
+ /**
1369
+ *
1370
+ * @export
1371
+ * @enum {string}
1372
+ */
1373
+ export declare const WalletNotificationEventType: {
1364
1374
  readonly VpVerified: "vp.verified";
1365
1375
  readonly VpInvalid: "vp.invalid";
1366
1376
  readonly IdTokenReceived: "idToken.received";
1367
1377
  readonly OfferProcessed: "offer.processed";
1368
1378
  readonly OfferInitiated: "offer.initiated";
1369
1379
  };
1370
- export type WalletNotificationEventTypeEnum = typeof WalletNotificationEventTypeEnum[keyof typeof WalletNotificationEventTypeEnum];
1371
- /**
1372
- * @type WalletNotificationEventDetails
1373
- * @export
1374
- */
1375
- export type WalletNotificationEventDetails = IdTokenReceivedNotification | OfferReceivedNotification | VpVerifiedNotification;
1380
+ export type WalletNotificationEventType = typeof WalletNotificationEventType[keyof typeof WalletNotificationEventType];
1376
1381
  /**
1377
1382
  *
1378
1383
  * @export
@@ -1652,11 +1657,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1652
1657
  * @param {string} walletId Wallet ID
1653
1658
  * @param {number} [limit] The number of items
1654
1659
  * @param {string} [nextMarker] Marking the next set of items
1660
+ * @param {Array<WalletNotificationEventType>} [type] Notification types
1655
1661
  * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
1656
1662
  * @param {*} [options] Override http request option.
1657
1663
  * @throws {RequiredError}
1658
1664
  */
1659
- walletNotificationHistory: (walletId: string, limit?: number, nextMarker?: string, sort?: WalletNotificationHistorySortEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1665
+ walletNotificationHistory: (walletId: string, limit?: number, nextMarker?: string, type?: Array<WalletNotificationEventType>, sort?: WalletNotificationHistorySortEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1660
1666
  /**
1661
1667
  * Provides first-in-first-out queue of notifications for a specific wallet.
1662
1668
  * @param {string} walletId Wallet ID
@@ -1933,11 +1939,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1933
1939
  * @param {string} walletId Wallet ID
1934
1940
  * @param {number} [limit] The number of items
1935
1941
  * @param {string} [nextMarker] Marking the next set of items
1942
+ * @param {Array<WalletNotificationEventType>} [type] Notification types
1936
1943
  * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
1937
1944
  * @param {*} [options] Override http request option.
1938
1945
  * @throws {RequiredError}
1939
1946
  */
1940
- walletNotificationHistory(walletId: string, limit?: number, nextMarker?: string, sort?: WalletNotificationHistorySortEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletNotificationHistory>>;
1947
+ walletNotificationHistory(walletId: string, limit?: number, nextMarker?: string, type?: Array<WalletNotificationEventType>, sort?: WalletNotificationHistorySortEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletNotificationHistory>>;
1941
1948
  /**
1942
1949
  * Provides first-in-first-out queue of notifications for a specific wallet.
1943
1950
  * @param {string} walletId Wallet ID
@@ -2214,11 +2221,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2214
2221
  * @param {string} walletId Wallet ID
2215
2222
  * @param {number} [limit] The number of items
2216
2223
  * @param {string} [nextMarker] Marking the next set of items
2224
+ * @param {Array<WalletNotificationEventType>} [type] Notification types
2217
2225
  * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
2218
2226
  * @param {*} [options] Override http request option.
2219
2227
  * @throws {RequiredError}
2220
2228
  */
2221
- walletNotificationHistory(walletId: string, limit?: number, nextMarker?: string, sort?: WalletNotificationHistorySortEnum, options?: any): AxiosPromise<WalletNotificationHistory>;
2229
+ walletNotificationHistory(walletId: string, limit?: number, nextMarker?: string, type?: Array<WalletNotificationEventType>, sort?: WalletNotificationHistorySortEnum, options?: any): AxiosPromise<WalletNotificationHistory>;
2222
2230
  /**
2223
2231
  * Provides first-in-first-out queue of notifications for a specific wallet.
2224
2232
  * @param {string} walletId Wallet ID
@@ -2529,12 +2537,13 @@ export declare class DefaultApi extends BaseAPI {
2529
2537
  * @param {string} walletId Wallet ID
2530
2538
  * @param {number} [limit] The number of items
2531
2539
  * @param {string} [nextMarker] Marking the next set of items
2540
+ * @param {Array<WalletNotificationEventType>} [type] Notification types
2532
2541
  * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
2533
2542
  * @param {*} [options] Override http request option.
2534
2543
  * @throws {RequiredError}
2535
2544
  * @memberof DefaultApi
2536
2545
  */
2537
- walletNotificationHistory(walletId: string, limit?: number, nextMarker?: string, sort?: WalletNotificationHistorySortEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletNotificationHistory, any>>;
2546
+ walletNotificationHistory(walletId: string, limit?: number, nextMarker?: string, type?: Array<WalletNotificationEventType>, sort?: WalletNotificationHistorySortEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletNotificationHistory, any>>;
2538
2547
  /**
2539
2548
  * Provides first-in-first-out queue of notifications for a specific wallet.
2540
2549
  * @param {string} walletId Wallet ID
@@ -2558,7 +2567,6 @@ export declare class DefaultApi extends BaseAPI {
2558
2567
  */
2559
2568
  export declare const CredentialListInteractionEnum: {
2560
2569
  readonly Issuance: "issuance";
2561
- readonly Presentation: "presentation";
2562
2570
  readonly Receive: "receive";
2563
2571
  };
2564
2572
  export type CredentialListInteractionEnum = typeof CredentialListInteractionEnum[keyof typeof CredentialListInteractionEnum];
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.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;
28
+ exports.WalletNotificationHistorySortEnum = exports.CredentialListSortEnum = exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventType = 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
@@ -78,7 +78,12 @@ exports.WalletConfigTrustFrameworkEnum = {
78
78
  Tts: 'TTS',
79
79
  Noop: 'NOOP'
80
80
  };
81
- exports.WalletNotificationEventTypeEnum = {
81
+ /**
82
+ *
83
+ * @export
84
+ * @enum {string}
85
+ */
86
+ exports.WalletNotificationEventType = {
82
87
  VpVerified: 'vp.verified',
83
88
  VpInvalid: 'vp.invalid',
84
89
  IdTokenReceived: 'idToken.received',
@@ -1203,11 +1208,12 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1203
1208
  * @param {string} walletId Wallet ID
1204
1209
  * @param {number} [limit] The number of items
1205
1210
  * @param {string} [nextMarker] Marking the next set of items
1211
+ * @param {Array<WalletNotificationEventType>} [type] Notification types
1206
1212
  * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
1207
1213
  * @param {*} [options] Override http request option.
1208
1214
  * @throws {RequiredError}
1209
1215
  */
1210
- walletNotificationHistory: (walletId, limit, nextMarker, sort, options = {}) => __awaiter(this, void 0, void 0, function* () {
1216
+ walletNotificationHistory: (walletId, limit, nextMarker, type, sort, options = {}) => __awaiter(this, void 0, void 0, function* () {
1211
1217
  // verify required parameter 'walletId' is not null or undefined
1212
1218
  (0, common_1.assertParamExists)('walletNotificationHistory', 'walletId', walletId);
1213
1219
  const localVarPath = `/wallets/{wallet_id}/notification_history`
@@ -1230,6 +1236,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1230
1236
  if (nextMarker !== undefined) {
1231
1237
  localVarQueryParameter['nextMarker'] = nextMarker;
1232
1238
  }
1239
+ if (type) {
1240
+ localVarQueryParameter['type'] = type;
1241
+ }
1233
1242
  if (sort !== undefined) {
1234
1243
  localVarQueryParameter['sort'] = sort;
1235
1244
  }
@@ -1827,14 +1836,15 @@ const DefaultApiFp = function (configuration) {
1827
1836
  * @param {string} walletId Wallet ID
1828
1837
  * @param {number} [limit] The number of items
1829
1838
  * @param {string} [nextMarker] Marking the next set of items
1839
+ * @param {Array<WalletNotificationEventType>} [type] Notification types
1830
1840
  * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
1831
1841
  * @param {*} [options] Override http request option.
1832
1842
  * @throws {RequiredError}
1833
1843
  */
1834
- walletNotificationHistory(walletId, limit, nextMarker, sort, options) {
1844
+ walletNotificationHistory(walletId, limit, nextMarker, type, sort, options) {
1835
1845
  var _a, _b, _c;
1836
1846
  return __awaiter(this, void 0, void 0, function* () {
1837
- const localVarAxiosArgs = yield localVarAxiosParamCreator.walletNotificationHistory(walletId, limit, nextMarker, sort, options);
1847
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletNotificationHistory(walletId, limit, nextMarker, type, sort, options);
1838
1848
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1839
1849
  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
1850
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2200,12 +2210,13 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2200
2210
  * @param {string} walletId Wallet ID
2201
2211
  * @param {number} [limit] The number of items
2202
2212
  * @param {string} [nextMarker] Marking the next set of items
2213
+ * @param {Array<WalletNotificationEventType>} [type] Notification types
2203
2214
  * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
2204
2215
  * @param {*} [options] Override http request option.
2205
2216
  * @throws {RequiredError}
2206
2217
  */
2207
- walletNotificationHistory(walletId, limit, nextMarker, sort, options) {
2208
- return localVarFp.walletNotificationHistory(walletId, limit, nextMarker, sort, options).then((request) => request(axios, basePath));
2218
+ walletNotificationHistory(walletId, limit, nextMarker, type, sort, options) {
2219
+ return localVarFp.walletNotificationHistory(walletId, limit, nextMarker, type, sort, options).then((request) => request(axios, basePath));
2209
2220
  },
2210
2221
  /**
2211
2222
  * Provides first-in-first-out queue of notifications for a specific wallet.
@@ -2587,13 +2598,14 @@ class DefaultApi extends base_1.BaseAPI {
2587
2598
  * @param {string} walletId Wallet ID
2588
2599
  * @param {number} [limit] The number of items
2589
2600
  * @param {string} [nextMarker] Marking the next set of items
2601
+ * @param {Array<WalletNotificationEventType>} [type] Notification types
2590
2602
  * @param {WalletNotificationHistorySortEnum} [sort] Sort flag controls the sort direction by the time created
2591
2603
  * @param {*} [options] Override http request option.
2592
2604
  * @throws {RequiredError}
2593
2605
  * @memberof DefaultApi
2594
2606
  */
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));
2607
+ walletNotificationHistory(walletId, limit, nextMarker, type, sort, options) {
2608
+ return (0, exports.DefaultApiFp)(this.configuration).walletNotificationHistory(walletId, limit, nextMarker, type, sort, options).then((request) => request(this.axios, this.basePath));
2597
2609
  }
2598
2610
  /**
2599
2611
  * Provides first-in-first-out queue of notifications for a specific wallet.
@@ -2623,7 +2635,6 @@ exports.DefaultApi = DefaultApi;
2623
2635
  */
2624
2636
  exports.CredentialListInteractionEnum = {
2625
2637
  Issuance: 'issuance',
2626
- Presentation: 'presentation',
2627
2638
  Receive: 'receive'
2628
2639
  };
2629
2640
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.111",
4
+ "version": "0.0.113",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {