@triveria/wallet 0.0.270 → 0.0.272

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 +20 -8
  2. package/api.js +14 -7
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -1069,6 +1069,12 @@ export interface WmpCreateInvitationResponse {
1069
1069
  export interface WmpEntityConnectionStatus {
1070
1070
  'connected': boolean;
1071
1071
  }
1072
+ export interface WmpEntityIdObject {
1073
+ /**
1074
+ * WMP Entity ID
1075
+ */
1076
+ 'id': string;
1077
+ }
1072
1078
  /**
1073
1079
  * WMP Entity key identifier
1074
1080
  */
@@ -1095,7 +1101,9 @@ export interface WmpEntityRecord {
1095
1101
  'identifiers': Array<WmpEntityKeyIdentifier>;
1096
1102
  }
1097
1103
  export interface WmpNotification {
1098
- 'server': WmpEntityRecord;
1104
+ 'server'?: WmpEntityRecord;
1105
+ 'client'?: WmpEntityRecord;
1106
+ 'invitationUrl'?: string;
1099
1107
  'id': string;
1100
1108
  'error'?: string;
1101
1109
  }
@@ -1508,10 +1516,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1508
1516
  * @param {string} [nextMarker] Marking the next set of items
1509
1517
  * @param {Array<WalletNotificationEventType>} [type] Notification types
1510
1518
  * @param {ListSort} [sort] Sort flag controls the sort direction by the time created
1519
+ * @param {number} [newerThan] List notifications that are newer than the provided timestamp
1511
1520
  * @param {*} [options] Override http request option.
1512
1521
  * @throws {RequiredError}
1513
1522
  */
1514
- walletNotificationHistory: (walletId: string, limit?: number, nextMarker?: string, type?: Array<WalletNotificationEventType>, sort?: ListSort, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1523
+ walletNotificationHistory: (walletId: string, limit?: number, nextMarker?: string, type?: Array<WalletNotificationEventType>, sort?: ListSort, newerThan?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1515
1524
  /**
1516
1525
  * Provides first-in-first-out queue of notifications for a specific wallet.
1517
1526
  * @param {string} walletId Wallet ID
@@ -2035,10 +2044,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2035
2044
  * @param {string} [nextMarker] Marking the next set of items
2036
2045
  * @param {Array<WalletNotificationEventType>} [type] Notification types
2037
2046
  * @param {ListSort} [sort] Sort flag controls the sort direction by the time created
2047
+ * @param {number} [newerThan] List notifications that are newer than the provided timestamp
2038
2048
  * @param {*} [options] Override http request option.
2039
2049
  * @throws {RequiredError}
2040
2050
  */
2041
- walletNotificationHistory(walletId: string, limit?: number, nextMarker?: string, type?: Array<WalletNotificationEventType>, sort?: ListSort, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletNotificationHistory>>;
2051
+ walletNotificationHistory(walletId: string, limit?: number, nextMarker?: string, type?: Array<WalletNotificationEventType>, sort?: ListSort, newerThan?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletNotificationHistory>>;
2042
2052
  /**
2043
2053
  * Provides first-in-first-out queue of notifications for a specific wallet.
2044
2054
  * @param {string} walletId Wallet ID
@@ -2100,7 +2110,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2100
2110
  * @param {*} [options] Override http request option.
2101
2111
  * @throws {RequiredError}
2102
2112
  */
2103
- wmpAcceptInvitation(walletId: string, wmpAcceptInvitationPayload?: WmpAcceptInvitationPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WmpEntityRecord>>;
2113
+ wmpAcceptInvitation(walletId: string, wmpAcceptInvitationPayload?: WmpAcceptInvitationPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WmpEntityIdObject>>;
2104
2114
  /**
2105
2115
  * Get pending WMP requests (credential offers or credential verification requests)
2106
2116
  * @param {string} walletId
@@ -2562,10 +2572,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2562
2572
  * @param {string} [nextMarker] Marking the next set of items
2563
2573
  * @param {Array<WalletNotificationEventType>} [type] Notification types
2564
2574
  * @param {ListSort} [sort] Sort flag controls the sort direction by the time created
2575
+ * @param {number} [newerThan] List notifications that are newer than the provided timestamp
2565
2576
  * @param {*} [options] Override http request option.
2566
2577
  * @throws {RequiredError}
2567
2578
  */
2568
- walletNotificationHistory(walletId: string, limit?: number, nextMarker?: string, type?: Array<WalletNotificationEventType>, sort?: ListSort, options?: RawAxiosRequestConfig): AxiosPromise<WalletNotificationHistory>;
2579
+ walletNotificationHistory(walletId: string, limit?: number, nextMarker?: string, type?: Array<WalletNotificationEventType>, sort?: ListSort, newerThan?: number, options?: RawAxiosRequestConfig): AxiosPromise<WalletNotificationHistory>;
2569
2580
  /**
2570
2581
  * Provides first-in-first-out queue of notifications for a specific wallet.
2571
2582
  * @param {string} walletId Wallet ID
@@ -2627,7 +2638,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2627
2638
  * @param {*} [options] Override http request option.
2628
2639
  * @throws {RequiredError}
2629
2640
  */
2630
- wmpAcceptInvitation(walletId: string, wmpAcceptInvitationPayload?: WmpAcceptInvitationPayload, options?: RawAxiosRequestConfig): AxiosPromise<WmpEntityRecord>;
2641
+ wmpAcceptInvitation(walletId: string, wmpAcceptInvitationPayload?: WmpAcceptInvitationPayload, options?: RawAxiosRequestConfig): AxiosPromise<WmpEntityIdObject>;
2631
2642
  /**
2632
2643
  * Get pending WMP requests (credential offers or credential verification requests)
2633
2644
  * @param {string} walletId
@@ -3089,10 +3100,11 @@ export declare class DefaultApi extends BaseAPI {
3089
3100
  * @param {string} [nextMarker] Marking the next set of items
3090
3101
  * @param {Array<WalletNotificationEventType>} [type] Notification types
3091
3102
  * @param {ListSort} [sort] Sort flag controls the sort direction by the time created
3103
+ * @param {number} [newerThan] List notifications that are newer than the provided timestamp
3092
3104
  * @param {*} [options] Override http request option.
3093
3105
  * @throws {RequiredError}
3094
3106
  */
3095
- walletNotificationHistory(walletId: string, limit?: number, nextMarker?: string, type?: Array<WalletNotificationEventType>, sort?: ListSort, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletNotificationHistory, any>>;
3107
+ walletNotificationHistory(walletId: string, limit?: number, nextMarker?: string, type?: Array<WalletNotificationEventType>, sort?: ListSort, newerThan?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletNotificationHistory, any>>;
3096
3108
  /**
3097
3109
  * Provides first-in-first-out queue of notifications for a specific wallet.
3098
3110
  * @param {string} walletId Wallet ID
@@ -3154,7 +3166,7 @@ export declare class DefaultApi extends BaseAPI {
3154
3166
  * @param {*} [options] Override http request option.
3155
3167
  * @throws {RequiredError}
3156
3168
  */
3157
- wmpAcceptInvitation(walletId: string, wmpAcceptInvitationPayload?: WmpAcceptInvitationPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpEntityRecord, any>>;
3169
+ wmpAcceptInvitation(walletId: string, wmpAcceptInvitationPayload?: WmpAcceptInvitationPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpEntityIdObject, any>>;
3158
3170
  /**
3159
3171
  * Get pending WMP requests (credential offers or credential verification requests)
3160
3172
  * @param {string} walletId
package/api.js CHANGED
@@ -1971,10 +1971,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1971
1971
  * @param {string} [nextMarker] Marking the next set of items
1972
1972
  * @param {Array<WalletNotificationEventType>} [type] Notification types
1973
1973
  * @param {ListSort} [sort] Sort flag controls the sort direction by the time created
1974
+ * @param {number} [newerThan] List notifications that are newer than the provided timestamp
1974
1975
  * @param {*} [options] Override http request option.
1975
1976
  * @throws {RequiredError}
1976
1977
  */
1977
- walletNotificationHistory: (walletId, limit, nextMarker, type, sort, options = {}) => __awaiter(this, void 0, void 0, function* () {
1978
+ walletNotificationHistory: (walletId, limit, nextMarker, type, sort, newerThan, options = {}) => __awaiter(this, void 0, void 0, function* () {
1978
1979
  // verify required parameter 'walletId' is not null or undefined
1979
1980
  (0, common_1.assertParamExists)('walletNotificationHistory', 'walletId', walletId);
1980
1981
  const localVarPath = `/wallets/{wallet_id}/notification_history`
@@ -2003,6 +2004,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2003
2004
  if (sort !== undefined) {
2004
2005
  localVarQueryParameter['sort'] = sort;
2005
2006
  }
2007
+ if (newerThan !== undefined) {
2008
+ localVarQueryParameter['newerThan'] = newerThan;
2009
+ }
2006
2010
  localVarHeaderParameter['Accept'] = 'application/json';
2007
2011
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2008
2012
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -3362,13 +3366,14 @@ const DefaultApiFp = function (configuration) {
3362
3366
  * @param {string} [nextMarker] Marking the next set of items
3363
3367
  * @param {Array<WalletNotificationEventType>} [type] Notification types
3364
3368
  * @param {ListSort} [sort] Sort flag controls the sort direction by the time created
3369
+ * @param {number} [newerThan] List notifications that are newer than the provided timestamp
3365
3370
  * @param {*} [options] Override http request option.
3366
3371
  * @throws {RequiredError}
3367
3372
  */
3368
- walletNotificationHistory(walletId, limit, nextMarker, type, sort, options) {
3373
+ walletNotificationHistory(walletId, limit, nextMarker, type, sort, newerThan, options) {
3369
3374
  var _a, _b, _c;
3370
3375
  return __awaiter(this, void 0, void 0, function* () {
3371
- const localVarAxiosArgs = yield localVarAxiosParamCreator.walletNotificationHistory(walletId, limit, nextMarker, type, sort, options);
3376
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletNotificationHistory(walletId, limit, nextMarker, type, sort, newerThan, options);
3372
3377
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3373
3378
  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;
3374
3379
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4121,11 +4126,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4121
4126
  * @param {string} [nextMarker] Marking the next set of items
4122
4127
  * @param {Array<WalletNotificationEventType>} [type] Notification types
4123
4128
  * @param {ListSort} [sort] Sort flag controls the sort direction by the time created
4129
+ * @param {number} [newerThan] List notifications that are newer than the provided timestamp
4124
4130
  * @param {*} [options] Override http request option.
4125
4131
  * @throws {RequiredError}
4126
4132
  */
4127
- walletNotificationHistory(walletId, limit, nextMarker, type, sort, options) {
4128
- return localVarFp.walletNotificationHistory(walletId, limit, nextMarker, type, sort, options).then((request) => request(axios, basePath));
4133
+ walletNotificationHistory(walletId, limit, nextMarker, type, sort, newerThan, options) {
4134
+ return localVarFp.walletNotificationHistory(walletId, limit, nextMarker, type, sort, newerThan, options).then((request) => request(axios, basePath));
4129
4135
  },
4130
4136
  /**
4131
4137
  * Provides first-in-first-out queue of notifications for a specific wallet.
@@ -4776,11 +4782,12 @@ class DefaultApi extends base_1.BaseAPI {
4776
4782
  * @param {string} [nextMarker] Marking the next set of items
4777
4783
  * @param {Array<WalletNotificationEventType>} [type] Notification types
4778
4784
  * @param {ListSort} [sort] Sort flag controls the sort direction by the time created
4785
+ * @param {number} [newerThan] List notifications that are newer than the provided timestamp
4779
4786
  * @param {*} [options] Override http request option.
4780
4787
  * @throws {RequiredError}
4781
4788
  */
4782
- walletNotificationHistory(walletId, limit, nextMarker, type, sort, options) {
4783
- return (0, exports.DefaultApiFp)(this.configuration).walletNotificationHistory(walletId, limit, nextMarker, type, sort, options).then((request) => request(this.axios, this.basePath));
4789
+ walletNotificationHistory(walletId, limit, nextMarker, type, sort, newerThan, options) {
4790
+ return (0, exports.DefaultApiFp)(this.configuration).walletNotificationHistory(walletId, limit, nextMarker, type, sort, newerThan, options).then((request) => request(this.axios, this.basePath));
4784
4791
  }
4785
4792
  /**
4786
4793
  * Provides first-in-first-out queue of notifications for a specific wallet.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.270",
4
+ "version": "0.0.272",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {