@triveria/wallet 0.0.318 → 0.0.320

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 +55 -0
  2. package/api.js +95 -0
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -737,6 +737,10 @@ export interface LinkedVpCreateRequest {
737
737
  export interface LinkedVpMetadata {
738
738
  'linkedVpId': string;
739
739
  'linkedVpUrl': string;
740
+ /**
741
+ * IDs of the credentials presented in the linked VP.
742
+ */
743
+ 'presentedCredentials': Array<string>;
740
744
  }
741
745
  /**
742
746
  * Sort flag controls the sort direction by the time created
@@ -1037,6 +1041,9 @@ export interface VcOffer {
1037
1041
  }
1038
1042
  export interface VerifiedLinkedVp {
1039
1043
  'linkedVpId': string;
1044
+ /**
1045
+ * List of verified credentials. Raw signed credentials (`signedVc`) are not available for this endpoint due to response size.
1046
+ */
1040
1047
  'credentials': Array<CredentialWrapper>;
1041
1048
  }
1042
1049
  /**
@@ -1400,6 +1407,10 @@ export interface WmpMessage {
1400
1407
  */
1401
1408
  'replyTo'?: string;
1402
1409
  }
1410
+ export interface WmpMessageHistoryList {
1411
+ 'list': Array<WmpMessageHistoryRecord>;
1412
+ 'next': string;
1413
+ }
1403
1414
  /**
1404
1415
  * The sender-side record of one message this wallet sent: what it was sent as, and where it currently stands in the delivery lifecycle (core §5.3.1/§5.3).
1405
1416
  */
@@ -2126,6 +2137,17 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2126
2137
  * @throws {RequiredError}
2127
2138
  */
2128
2139
  wmpEntityList: (walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2140
+ /**
2141
+ * Lists this wallet\'s own delivery-lifecycle records (core §5.3.1/§5.3) for every message it has sent to entityId, across every session, ordered by sentAt.
2142
+ * @param {string} walletId
2143
+ * @param {string} entityId
2144
+ * @param {number} [limit] The number of items
2145
+ * @param {string} [nextMarker] Marking the next set of items
2146
+ * @param {ListSort} [sort] Sort flag controls the sort direction by sentAt
2147
+ * @param {*} [options] Override http request option.
2148
+ * @throws {RequiredError}
2149
+ */
2150
+ wmpEntityListMessageHistory: (walletId: string, entityId: string, limit?: number, nextMarker?: string, sort?: ListSort, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2129
2151
  /**
2130
2152
  * Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
2131
2153
  * @param {string} walletId
@@ -2751,6 +2773,17 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2751
2773
  * @throws {RequiredError}
2752
2774
  */
2753
2775
  wmpEntityList(walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WmpEntityRecord>>>;
2776
+ /**
2777
+ * Lists this wallet\'s own delivery-lifecycle records (core §5.3.1/§5.3) for every message it has sent to entityId, across every session, ordered by sentAt.
2778
+ * @param {string} walletId
2779
+ * @param {string} entityId
2780
+ * @param {number} [limit] The number of items
2781
+ * @param {string} [nextMarker] Marking the next set of items
2782
+ * @param {ListSort} [sort] Sort flag controls the sort direction by sentAt
2783
+ * @param {*} [options] Override http request option.
2784
+ * @throws {RequiredError}
2785
+ */
2786
+ wmpEntityListMessageHistory(walletId: string, entityId: string, limit?: number, nextMarker?: string, sort?: ListSort, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WmpMessageHistoryList>>;
2754
2787
  /**
2755
2788
  * Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
2756
2789
  * @param {string} walletId
@@ -3376,6 +3409,17 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3376
3409
  * @throws {RequiredError}
3377
3410
  */
3378
3411
  wmpEntityList(walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<WmpEntityRecord>>;
3412
+ /**
3413
+ * Lists this wallet\'s own delivery-lifecycle records (core §5.3.1/§5.3) for every message it has sent to entityId, across every session, ordered by sentAt.
3414
+ * @param {string} walletId
3415
+ * @param {string} entityId
3416
+ * @param {number} [limit] The number of items
3417
+ * @param {string} [nextMarker] Marking the next set of items
3418
+ * @param {ListSort} [sort] Sort flag controls the sort direction by sentAt
3419
+ * @param {*} [options] Override http request option.
3420
+ * @throws {RequiredError}
3421
+ */
3422
+ wmpEntityListMessageHistory(walletId: string, entityId: string, limit?: number, nextMarker?: string, sort?: ListSort, options?: RawAxiosRequestConfig): AxiosPromise<WmpMessageHistoryList>;
3379
3423
  /**
3380
3424
  * Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
3381
3425
  * @param {string} walletId
@@ -4001,6 +4045,17 @@ export declare class DefaultApi extends BaseAPI {
4001
4045
  * @throws {RequiredError}
4002
4046
  */
4003
4047
  wmpEntityList(walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpEntityRecord[], any, {}>>;
4048
+ /**
4049
+ * Lists this wallet\'s own delivery-lifecycle records (core §5.3.1/§5.3) for every message it has sent to entityId, across every session, ordered by sentAt.
4050
+ * @param {string} walletId
4051
+ * @param {string} entityId
4052
+ * @param {number} [limit] The number of items
4053
+ * @param {string} [nextMarker] Marking the next set of items
4054
+ * @param {ListSort} [sort] Sort flag controls the sort direction by sentAt
4055
+ * @param {*} [options] Override http request option.
4056
+ * @throws {RequiredError}
4057
+ */
4058
+ wmpEntityListMessageHistory(walletId: string, entityId: string, limit?: number, nextMarker?: string, sort?: ListSort, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpMessageHistoryList, any, {}>>;
4004
4059
  /**
4005
4060
  * Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
4006
4061
  * @param {string} walletId
package/api.js CHANGED
@@ -3033,6 +3033,56 @@ const DefaultApiAxiosParamCreator = function (configuration) {
3033
3033
  options: localVarRequestOptions,
3034
3034
  };
3035
3035
  }),
3036
+ /**
3037
+ * Lists this wallet\'s own delivery-lifecycle records (core §5.3.1/§5.3) for every message it has sent to entityId, across every session, ordered by sentAt.
3038
+ * @param {string} walletId
3039
+ * @param {string} entityId
3040
+ * @param {number} [limit] The number of items
3041
+ * @param {string} [nextMarker] Marking the next set of items
3042
+ * @param {ListSort} [sort] Sort flag controls the sort direction by sentAt
3043
+ * @param {*} [options] Override http request option.
3044
+ * @throws {RequiredError}
3045
+ */
3046
+ wmpEntityListMessageHistory: (walletId_1, entityId_1, limit_1, nextMarker_1, sort_1, ...args_1) => __awaiter(this, [walletId_1, entityId_1, limit_1, nextMarker_1, sort_1, ...args_1], void 0, function* (walletId, entityId, limit, nextMarker, sort, options = {}) {
3047
+ // verify required parameter 'walletId' is not null or undefined
3048
+ (0, common_1.assertParamExists)('wmpEntityListMessageHistory', 'walletId', walletId);
3049
+ // verify required parameter 'entityId' is not null or undefined
3050
+ (0, common_1.assertParamExists)('wmpEntityListMessageHistory', 'entityId', entityId);
3051
+ const localVarPath = `/wmp/entities/{entity_id}/messages/history`
3052
+ .replace('{entity_id}', encodeURIComponent(String(entityId)));
3053
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3054
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3055
+ let baseOptions;
3056
+ if (configuration) {
3057
+ baseOptions = configuration.baseOptions;
3058
+ }
3059
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3060
+ const localVarHeaderParameter = {};
3061
+ const localVarQueryParameter = {};
3062
+ // authentication accessToken required
3063
+ // http bearer authentication required
3064
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3065
+ if (limit !== undefined) {
3066
+ localVarQueryParameter['limit'] = limit;
3067
+ }
3068
+ if (nextMarker !== undefined) {
3069
+ localVarQueryParameter['nextMarker'] = nextMarker;
3070
+ }
3071
+ if (sort !== undefined) {
3072
+ localVarQueryParameter['sort'] = sort;
3073
+ }
3074
+ localVarHeaderParameter['Accept'] = 'application/json';
3075
+ if (walletId != null) {
3076
+ localVarHeaderParameter['wallet-id'] = String(walletId);
3077
+ }
3078
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3079
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3080
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3081
+ return {
3082
+ url: (0, common_1.toPathString)(localVarUrlObj),
3083
+ options: localVarRequestOptions,
3084
+ };
3085
+ }),
3036
3086
  /**
3037
3087
  * Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
3038
3088
  * @param {string} walletId
@@ -4327,6 +4377,25 @@ const DefaultApiFp = function (configuration) {
4327
4377
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4328
4378
  });
4329
4379
  },
4380
+ /**
4381
+ * Lists this wallet\'s own delivery-lifecycle records (core §5.3.1/§5.3) for every message it has sent to entityId, across every session, ordered by sentAt.
4382
+ * @param {string} walletId
4383
+ * @param {string} entityId
4384
+ * @param {number} [limit] The number of items
4385
+ * @param {string} [nextMarker] Marking the next set of items
4386
+ * @param {ListSort} [sort] Sort flag controls the sort direction by sentAt
4387
+ * @param {*} [options] Override http request option.
4388
+ * @throws {RequiredError}
4389
+ */
4390
+ wmpEntityListMessageHistory(walletId, entityId, limit, nextMarker, sort, options) {
4391
+ return __awaiter(this, void 0, void 0, function* () {
4392
+ var _a, _b, _c;
4393
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpEntityListMessageHistory(walletId, entityId, limit, nextMarker, sort, options);
4394
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4395
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.wmpEntityListMessageHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4396
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4397
+ });
4398
+ },
4330
4399
  /**
4331
4400
  * Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
4332
4401
  * @param {string} walletId
@@ -5118,6 +5187,19 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
5118
5187
  wmpEntityList(walletId, entityType, options) {
5119
5188
  return localVarFp.wmpEntityList(walletId, entityType, options).then((request) => request(axios, basePath));
5120
5189
  },
5190
+ /**
5191
+ * Lists this wallet\'s own delivery-lifecycle records (core §5.3.1/§5.3) for every message it has sent to entityId, across every session, ordered by sentAt.
5192
+ * @param {string} walletId
5193
+ * @param {string} entityId
5194
+ * @param {number} [limit] The number of items
5195
+ * @param {string} [nextMarker] Marking the next set of items
5196
+ * @param {ListSort} [sort] Sort flag controls the sort direction by sentAt
5197
+ * @param {*} [options] Override http request option.
5198
+ * @throws {RequiredError}
5199
+ */
5200
+ wmpEntityListMessageHistory(walletId, entityId, limit, nextMarker, sort, options) {
5201
+ return localVarFp.wmpEntityListMessageHistory(walletId, entityId, limit, nextMarker, sort, options).then((request) => request(axios, basePath));
5202
+ },
5121
5203
  /**
5122
5204
  * Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
5123
5205
  * @param {string} walletId
@@ -5895,6 +5977,19 @@ class DefaultApi extends base_1.BaseAPI {
5895
5977
  wmpEntityList(walletId, entityType, options) {
5896
5978
  return (0, exports.DefaultApiFp)(this.configuration).wmpEntityList(walletId, entityType, options).then((request) => request(this.axios, this.basePath));
5897
5979
  }
5980
+ /**
5981
+ * Lists this wallet\'s own delivery-lifecycle records (core §5.3.1/§5.3) for every message it has sent to entityId, across every session, ordered by sentAt.
5982
+ * @param {string} walletId
5983
+ * @param {string} entityId
5984
+ * @param {number} [limit] The number of items
5985
+ * @param {string} [nextMarker] Marking the next set of items
5986
+ * @param {ListSort} [sort] Sort flag controls the sort direction by sentAt
5987
+ * @param {*} [options] Override http request option.
5988
+ * @throws {RequiredError}
5989
+ */
5990
+ wmpEntityListMessageHistory(walletId, entityId, limit, nextMarker, sort, options) {
5991
+ return (0, exports.DefaultApiFp)(this.configuration).wmpEntityListMessageHistory(walletId, entityId, limit, nextMarker, sort, options).then((request) => request(this.axios, this.basePath));
5992
+ }
5898
5993
  /**
5899
5994
  * Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
5900
5995
  * @param {string} walletId
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.318",
4
+ "version": "0.0.320",
5
5
  "description": "",
6
6
  "repository": {
7
7
  "type": "git",