@triveria/wallet 0.0.317 → 0.0.319
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.
- package/api.d.ts +52 -4
- package/api.js +99 -4
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -1400,6 +1400,10 @@ export interface WmpMessage {
|
|
|
1400
1400
|
*/
|
|
1401
1401
|
'replyTo'?: string;
|
|
1402
1402
|
}
|
|
1403
|
+
export interface WmpMessageHistoryList {
|
|
1404
|
+
'list': Array<WmpMessageHistoryRecord>;
|
|
1405
|
+
'next': string;
|
|
1406
|
+
}
|
|
1403
1407
|
/**
|
|
1404
1408
|
* 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
1409
|
*/
|
|
@@ -2126,6 +2130,17 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2126
2130
|
* @throws {RequiredError}
|
|
2127
2131
|
*/
|
|
2128
2132
|
wmpEntityList: (walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2133
|
+
/**
|
|
2134
|
+
* 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.
|
|
2135
|
+
* @param {string} walletId
|
|
2136
|
+
* @param {string} entityId
|
|
2137
|
+
* @param {number} [limit] The number of items
|
|
2138
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
2139
|
+
* @param {ListSort} [sort] Sort flag controls the sort direction by sentAt
|
|
2140
|
+
* @param {*} [options] Override http request option.
|
|
2141
|
+
* @throws {RequiredError}
|
|
2142
|
+
*/
|
|
2143
|
+
wmpEntityListMessageHistory: (walletId: string, entityId: string, limit?: number, nextMarker?: string, sort?: ListSort, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2129
2144
|
/**
|
|
2130
2145
|
* 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
2146
|
* @param {string} walletId
|
|
@@ -2139,7 +2154,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2139
2154
|
*/
|
|
2140
2155
|
wmpEntitySendMessage: (walletId: string, entityId: string, body?: File, expiresAt?: string, messageType?: string, inReplyTo?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2141
2156
|
/**
|
|
2142
|
-
* Re-establishes or confirms the
|
|
2157
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
2143
2158
|
* @param {string} walletId
|
|
2144
2159
|
* @param {string} entityId
|
|
2145
2160
|
* @param {*} [options] Override http request option.
|
|
@@ -2751,6 +2766,17 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2751
2766
|
* @throws {RequiredError}
|
|
2752
2767
|
*/
|
|
2753
2768
|
wmpEntityList(walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WmpEntityRecord>>>;
|
|
2769
|
+
/**
|
|
2770
|
+
* 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.
|
|
2771
|
+
* @param {string} walletId
|
|
2772
|
+
* @param {string} entityId
|
|
2773
|
+
* @param {number} [limit] The number of items
|
|
2774
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
2775
|
+
* @param {ListSort} [sort] Sort flag controls the sort direction by sentAt
|
|
2776
|
+
* @param {*} [options] Override http request option.
|
|
2777
|
+
* @throws {RequiredError}
|
|
2778
|
+
*/
|
|
2779
|
+
wmpEntityListMessageHistory(walletId: string, entityId: string, limit?: number, nextMarker?: string, sort?: ListSort, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WmpMessageHistoryList>>;
|
|
2754
2780
|
/**
|
|
2755
2781
|
* 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
2782
|
* @param {string} walletId
|
|
@@ -2764,7 +2790,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2764
2790
|
*/
|
|
2765
2791
|
wmpEntitySendMessage(walletId: string, entityId: string, body?: File, expiresAt?: string, messageType?: string, inReplyTo?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WmpMessageSendResult>>;
|
|
2766
2792
|
/**
|
|
2767
|
-
* Re-establishes or confirms the
|
|
2793
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
2768
2794
|
* @param {string} walletId
|
|
2769
2795
|
* @param {string} entityId
|
|
2770
2796
|
* @param {*} [options] Override http request option.
|
|
@@ -3376,6 +3402,17 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3376
3402
|
* @throws {RequiredError}
|
|
3377
3403
|
*/
|
|
3378
3404
|
wmpEntityList(walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<WmpEntityRecord>>;
|
|
3405
|
+
/**
|
|
3406
|
+
* 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.
|
|
3407
|
+
* @param {string} walletId
|
|
3408
|
+
* @param {string} entityId
|
|
3409
|
+
* @param {number} [limit] The number of items
|
|
3410
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
3411
|
+
* @param {ListSort} [sort] Sort flag controls the sort direction by sentAt
|
|
3412
|
+
* @param {*} [options] Override http request option.
|
|
3413
|
+
* @throws {RequiredError}
|
|
3414
|
+
*/
|
|
3415
|
+
wmpEntityListMessageHistory(walletId: string, entityId: string, limit?: number, nextMarker?: string, sort?: ListSort, options?: RawAxiosRequestConfig): AxiosPromise<WmpMessageHistoryList>;
|
|
3379
3416
|
/**
|
|
3380
3417
|
* 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
3418
|
* @param {string} walletId
|
|
@@ -3389,7 +3426,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3389
3426
|
*/
|
|
3390
3427
|
wmpEntitySendMessage(walletId: string, entityId: string, body?: File, expiresAt?: string, messageType?: string, inReplyTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<WmpMessageSendResult>;
|
|
3391
3428
|
/**
|
|
3392
|
-
* Re-establishes or confirms the
|
|
3429
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
3393
3430
|
* @param {string} walletId
|
|
3394
3431
|
* @param {string} entityId
|
|
3395
3432
|
* @param {*} [options] Override http request option.
|
|
@@ -4001,6 +4038,17 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
4001
4038
|
* @throws {RequiredError}
|
|
4002
4039
|
*/
|
|
4003
4040
|
wmpEntityList(walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpEntityRecord[], any, {}>>;
|
|
4041
|
+
/**
|
|
4042
|
+
* 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.
|
|
4043
|
+
* @param {string} walletId
|
|
4044
|
+
* @param {string} entityId
|
|
4045
|
+
* @param {number} [limit] The number of items
|
|
4046
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
4047
|
+
* @param {ListSort} [sort] Sort flag controls the sort direction by sentAt
|
|
4048
|
+
* @param {*} [options] Override http request option.
|
|
4049
|
+
* @throws {RequiredError}
|
|
4050
|
+
*/
|
|
4051
|
+
wmpEntityListMessageHistory(walletId: string, entityId: string, limit?: number, nextMarker?: string, sort?: ListSort, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpMessageHistoryList, any, {}>>;
|
|
4004
4052
|
/**
|
|
4005
4053
|
* 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
4054
|
* @param {string} walletId
|
|
@@ -4014,7 +4062,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
4014
4062
|
*/
|
|
4015
4063
|
wmpEntitySendMessage(walletId: string, entityId: string, body?: File, expiresAt?: string, messageType?: string, inReplyTo?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpMessageSendResult, any, {}>>;
|
|
4016
4064
|
/**
|
|
4017
|
-
* Re-establishes or confirms the
|
|
4065
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
4018
4066
|
* @param {string} walletId
|
|
4019
4067
|
* @param {string} entityId
|
|
4020
4068
|
* @param {*} [options] Override http request option.
|
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
|
|
@@ -3091,7 +3141,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
3091
3141
|
};
|
|
3092
3142
|
}),
|
|
3093
3143
|
/**
|
|
3094
|
-
* Re-establishes or confirms the
|
|
3144
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
3095
3145
|
* @param {string} walletId
|
|
3096
3146
|
* @param {string} entityId
|
|
3097
3147
|
* @param {*} [options] Override http request option.
|
|
@@ -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
|
|
@@ -4348,7 +4417,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
4348
4417
|
});
|
|
4349
4418
|
},
|
|
4350
4419
|
/**
|
|
4351
|
-
* Re-establishes or confirms the
|
|
4420
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
4352
4421
|
* @param {string} walletId
|
|
4353
4422
|
* @param {string} entityId
|
|
4354
4423
|
* @param {*} [options] Override http request option.
|
|
@@ -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
|
|
@@ -5133,7 +5215,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5133
5215
|
return localVarFp.wmpEntitySendMessage(walletId, entityId, body, expiresAt, messageType, inReplyTo, options).then((request) => request(axios, basePath));
|
|
5134
5216
|
},
|
|
5135
5217
|
/**
|
|
5136
|
-
* Re-establishes or confirms the
|
|
5218
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
5137
5219
|
* @param {string} walletId
|
|
5138
5220
|
* @param {string} entityId
|
|
5139
5221
|
* @param {*} [options] Override http request option.
|
|
@@ -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
|
|
@@ -5910,7 +6005,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5910
6005
|
return (0, exports.DefaultApiFp)(this.configuration).wmpEntitySendMessage(walletId, entityId, body, expiresAt, messageType, inReplyTo, options).then((request) => request(this.axios, this.basePath));
|
|
5911
6006
|
}
|
|
5912
6007
|
/**
|
|
5913
|
-
* Re-establishes or confirms the
|
|
6008
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
5914
6009
|
* @param {string} walletId
|
|
5915
6010
|
* @param {string} entityId
|
|
5916
6011
|
* @param {*} [options] Override http request option.
|