@epilot/message-client 1.17.2 → 1.17.4
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/LICENSE +21 -0
- package/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +11 -0
- package/dist/openapi.d.ts +178 -0
- package/dist/openapi.json +73 -0
- package/package.json +17 -17
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 epilot GmbH
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={914:function(e,s,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0});var t=a(r(240));s.default=t.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"","version":""},"paths":{"/v1/message/messages":{"post":{"operationId":"sendMessage","parameters":[{"in":"query","name":"do_not_create_entities"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"put":{"operationId":"updateMessage","responses":{}}},"/v1/message/messages/{id}":{"get":{"operationId":"getMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"delete":{"operationId":"deleteMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages/{id}/trash":{"post":{"operationId":"trashMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages/{id}/untrash":{"post":{"operationId":"untrashMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages/{id}/read":{"post":{"operationId":"markReadMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v2/message/messages/{id}/read":{"post":{"operationId":"markReadMessageV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/messages/{id}/unread":{"post":{"operationId":"markUnreadMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages/unread/{actor}":{"get":{"operationId":"getUnread","parameters":[{"name":"actor","in":"path","required":true},{"in":"query","name":"email_filter"}],"responses":{}}},"/v2/message/messages/{id}/unread":{"post":{"operationId":"markUnreadMessageV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads:search":{"post":{"operationId":"searchThreads","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/message/threads:search":{"post":{"operationId":"searchThreadsV2","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads:searchIds":{"post":{"operationId":"searchIds","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads":{"put":{"operationId":"updateThread","responses":{}}},"/v1/message/threads/{id}":{"delete":{"operationId":"deleteThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}:markAsDone":{"post":{"operationId":"markThreadAsDone","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}:markAsOpen":{"post":{"operationId":"markThreadAsOpen","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}/timeline":{"get":{"operationId":"getThreadTimeline","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}/trash":{"post":{"operationId":"trashThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}/untrash":{"post":{"operationId":"untrashThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/bulk:read":{"post":{"operationId":"threadBulkActionsRead","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:unread":{"post":{"operationId":"threadBulkActionsUnread","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:favorite":{"post":{"operationId":"threadBulkActionsFavorite","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:unfavorite":{"post":{"operationId":"threadBulkActionsUnfavorite","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:trash":{"post":{"operationId":"threadBulkActionsTrash","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:untrash":{"post":{"operationId":"threadBulkActionsUntrash","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:delete":{"post":{"operationId":"threadBulkActionsDelete","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:done":{"post":{"operationId":"threadBulkActionsDone","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:open":{"post":{"operationId":"threadBulkActionsOpen","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/read":{"post":{"operationId":"markReadThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v2/message/threads/{id}/read":{"post":{"operationId":"markReadThreadV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/unread":{"post":{"operationId":"markUnreadThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v2/message/threads/{id}/unread":{"post":{"operationId":"markUnreadThreadV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/assign":{"post":{"operationId":"assignThread","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/unassign":{"post":{"operationId":"unassignThread","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/assign:users":{"post":{"operationId":"assignUsers","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}:pin":{"post":{"operationId":"pinThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"delete":{"operationId":"unpinThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/drafts":{"post":{"operationId":"createDraft","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/message/drafts:send":{"post":{"operationId":"sendDraft","responses":{}}},"/v2/message/messages/{id}":{"get":{"operationId":"getMessageV2","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}}},"components":{},"servers":[{"url":"https://message.sls.epilot.io"}]}')}},s={},r=function r(a){var t=s[a];if(void 0!==t)return t.exports;var n=s[a]={exports:{}};return e[a].call(n.exports,n,n.exports,r),n.exports}(914),a=exports;for(var t in r)a[t]=r[t];r.__esModule&&Object.defineProperty(a,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={914:function(e,s,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0});var t=a(r(240));s.default=t.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"","version":""},"paths":{"/v1/message/messages":{"post":{"operationId":"sendMessage","parameters":[{"in":"query","name":"do_not_create_entities"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"put":{"operationId":"updateMessage","responses":{}}},"/v1/message/messages/{id}":{"get":{"operationId":"getMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"delete":{"operationId":"deleteMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages:search":{"post":{"operationId":"searchMessages","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/message/messages/{id}/trash":{"post":{"operationId":"trashMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages/{id}/untrash":{"post":{"operationId":"untrashMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages/{id}/read":{"post":{"operationId":"markReadMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v2/message/messages/{id}/read":{"post":{"operationId":"markReadMessageV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/messages/{id}/unread":{"post":{"operationId":"markUnreadMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages/unread/{actor}":{"get":{"operationId":"getUnread","parameters":[{"name":"actor","in":"path","required":true},{"in":"query","name":"email_filter"}],"responses":{}}},"/v2/message/messages/{id}/unread":{"post":{"operationId":"markUnreadMessageV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads:search":{"post":{"operationId":"searchThreads","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/message/threads:search":{"post":{"operationId":"searchThreadsV2","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads:searchIds":{"post":{"operationId":"searchIds","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads":{"put":{"operationId":"updateThread","responses":{}}},"/v1/message/threads/{id}":{"delete":{"operationId":"deleteThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}:markAsDone":{"post":{"operationId":"markThreadAsDone","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}:markAsOpen":{"post":{"operationId":"markThreadAsOpen","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}/timeline":{"get":{"operationId":"getThreadTimeline","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}/trash":{"post":{"operationId":"trashThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}/untrash":{"post":{"operationId":"untrashThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/bulk:read":{"post":{"operationId":"threadBulkActionsRead","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:unread":{"post":{"operationId":"threadBulkActionsUnread","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:favorite":{"post":{"operationId":"threadBulkActionsFavorite","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:unfavorite":{"post":{"operationId":"threadBulkActionsUnfavorite","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:trash":{"post":{"operationId":"threadBulkActionsTrash","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:untrash":{"post":{"operationId":"threadBulkActionsUntrash","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:delete":{"post":{"operationId":"threadBulkActionsDelete","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:done":{"post":{"operationId":"threadBulkActionsDone","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:open":{"post":{"operationId":"threadBulkActionsOpen","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/read":{"post":{"operationId":"markReadThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v2/message/threads/{id}/read":{"post":{"operationId":"markReadThreadV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/unread":{"post":{"operationId":"markUnreadThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v2/message/threads/{id}/unread":{"post":{"operationId":"markUnreadThreadV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/assign":{"post":{"operationId":"assignThread","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/unassign":{"post":{"operationId":"unassignThread","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/assign:users":{"post":{"operationId":"assignUsers","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}:pin":{"post":{"operationId":"pinThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"delete":{"operationId":"unpinThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/drafts":{"post":{"operationId":"createDraft","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/message/drafts:send":{"post":{"operationId":"sendDraft","responses":{}}},"/v2/message/messages/{id}":{"get":{"operationId":"getMessageV2","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}}},"components":{},"servers":[{"url":"https://message.sls.epilot.io"}]}')}},s={},r=function r(a){var t=s[a];if(void 0!==t)return t.exports;var n=s[a]={exports:{}};return e[a].call(n.exports,n,n.exports,r),n.exports}(914),a=exports;for(var t in r)a[t]=r[t];r.__esModule&&Object.defineProperty(a,"__esModule",{value:!0})})();
|
|
@@ -50,6 +50,17 @@
|
|
|
50
50
|
"responses": {}
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
+
"/v1/message/messages:search": {
|
|
54
|
+
"post": {
|
|
55
|
+
"operationId": "searchMessages",
|
|
56
|
+
"requestBody": {
|
|
57
|
+
"content": {
|
|
58
|
+
"application/json": {}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"responses": {}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
53
64
|
"/v1/message/messages/{id}/trash": {
|
|
54
65
|
"post": {
|
|
55
66
|
"operationId": "trashMessage",
|
package/dist/openapi.d.ts
CHANGED
|
@@ -1170,6 +1170,12 @@ declare namespace Paths {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
namespace Responses {
|
|
1172
1172
|
export interface $200 {
|
|
1173
|
+
/**
|
|
1174
|
+
* Total of unread messages
|
|
1175
|
+
* example:
|
|
1176
|
+
* 14
|
|
1177
|
+
*/
|
|
1178
|
+
count: number;
|
|
1173
1179
|
/**
|
|
1174
1180
|
* Total of unread messages
|
|
1175
1181
|
* example:
|
|
@@ -1376,6 +1382,156 @@ declare namespace Paths {
|
|
|
1376
1382
|
}
|
|
1377
1383
|
}
|
|
1378
1384
|
}
|
|
1385
|
+
namespace SearchMessages {
|
|
1386
|
+
export type RequestBody = Components.Schemas.SearchParamsV2;
|
|
1387
|
+
namespace Responses {
|
|
1388
|
+
export interface $200 {
|
|
1389
|
+
/**
|
|
1390
|
+
* Total of matched messages
|
|
1391
|
+
* example:
|
|
1392
|
+
* 14
|
|
1393
|
+
*/
|
|
1394
|
+
hits: number;
|
|
1395
|
+
/**
|
|
1396
|
+
* Matched messages
|
|
1397
|
+
*/
|
|
1398
|
+
results: {
|
|
1399
|
+
/**
|
|
1400
|
+
* Entity ID
|
|
1401
|
+
* example:
|
|
1402
|
+
* 3fa85f64-5717-4562-b3fc-2c963f66afa6
|
|
1403
|
+
*/
|
|
1404
|
+
_id: string;
|
|
1405
|
+
/**
|
|
1406
|
+
* Entity title
|
|
1407
|
+
*/
|
|
1408
|
+
_title: string;
|
|
1409
|
+
/**
|
|
1410
|
+
* Organization ID the entity belongs to
|
|
1411
|
+
* example:
|
|
1412
|
+
* 206801
|
|
1413
|
+
*/
|
|
1414
|
+
_org: string;
|
|
1415
|
+
/**
|
|
1416
|
+
* URL-friendly identifier for the entity schema
|
|
1417
|
+
* example:
|
|
1418
|
+
* message
|
|
1419
|
+
*/
|
|
1420
|
+
_schema: string;
|
|
1421
|
+
/**
|
|
1422
|
+
* Entity tags
|
|
1423
|
+
* example:
|
|
1424
|
+
* [
|
|
1425
|
+
* "pricing",
|
|
1426
|
+
* "INBOX"
|
|
1427
|
+
* ]
|
|
1428
|
+
*/
|
|
1429
|
+
_tags?: string[];
|
|
1430
|
+
/**
|
|
1431
|
+
* Created date
|
|
1432
|
+
* example:
|
|
1433
|
+
* 2021-02-09T12:41:43.662Z
|
|
1434
|
+
*/
|
|
1435
|
+
_created_at: string; // date-time
|
|
1436
|
+
/**
|
|
1437
|
+
* Updated date
|
|
1438
|
+
* example:
|
|
1439
|
+
* 2021-02-10T09:14:31.990Z
|
|
1440
|
+
*/
|
|
1441
|
+
_updated_at: string; // date-time
|
|
1442
|
+
/**
|
|
1443
|
+
* Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.
|
|
1444
|
+
* example:
|
|
1445
|
+
* <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>
|
|
1446
|
+
*/
|
|
1447
|
+
message_id?: string;
|
|
1448
|
+
/**
|
|
1449
|
+
* User ID of user sends the message.
|
|
1450
|
+
* example:
|
|
1451
|
+
* 206801
|
|
1452
|
+
*/
|
|
1453
|
+
sender?: string;
|
|
1454
|
+
/**
|
|
1455
|
+
* Subject
|
|
1456
|
+
* example:
|
|
1457
|
+
* Request for solar panel price
|
|
1458
|
+
*/
|
|
1459
|
+
subject: string;
|
|
1460
|
+
/**
|
|
1461
|
+
* HTML body
|
|
1462
|
+
* example:
|
|
1463
|
+
* <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
|
|
1464
|
+
*/
|
|
1465
|
+
html?: string;
|
|
1466
|
+
/**
|
|
1467
|
+
* Text body
|
|
1468
|
+
* example:
|
|
1469
|
+
* We at ABC GmbH would like to request a price quote for the solar panel.
|
|
1470
|
+
*/
|
|
1471
|
+
text?: string;
|
|
1472
|
+
from: Components.Schemas.Address;
|
|
1473
|
+
reply_to?: Components.Schemas.Address;
|
|
1474
|
+
/**
|
|
1475
|
+
* To email addresses
|
|
1476
|
+
*/
|
|
1477
|
+
to?: Components.Schemas.Address[];
|
|
1478
|
+
/**
|
|
1479
|
+
* Cc email addresses
|
|
1480
|
+
*/
|
|
1481
|
+
cc?: Components.Schemas.Address[];
|
|
1482
|
+
/**
|
|
1483
|
+
* Bcc email addresses
|
|
1484
|
+
*/
|
|
1485
|
+
bcc?: Components.Schemas.Address[];
|
|
1486
|
+
file?: /* Message attachments */ Components.Schemas.AttachmentsRelation;
|
|
1487
|
+
/**
|
|
1488
|
+
* References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent. The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread. The basic idea is that sender should copy `references` from the parent and append the parent's `message_id` when replying.
|
|
1489
|
+
*
|
|
1490
|
+
* example:
|
|
1491
|
+
* <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
|
|
1492
|
+
*/
|
|
1493
|
+
references?: string;
|
|
1494
|
+
/**
|
|
1495
|
+
* In-Reply-To header. Value is the `message_id` of parent message.
|
|
1496
|
+
*
|
|
1497
|
+
* example:
|
|
1498
|
+
* <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
|
|
1499
|
+
*/
|
|
1500
|
+
in_reply_to?: string;
|
|
1501
|
+
/**
|
|
1502
|
+
* User ID of user read the message.
|
|
1503
|
+
*/
|
|
1504
|
+
user_read_message?: string[];
|
|
1505
|
+
/**
|
|
1506
|
+
* Organization ID of organization read the message.
|
|
1507
|
+
*/
|
|
1508
|
+
org_read_message?: string[];
|
|
1509
|
+
/**
|
|
1510
|
+
* Sent message status. The array contains sending message status corresponding to all recipients. For more detail, check `send_status` of each recipient in `to`, `cc`, `bcc` Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
|
|
1511
|
+
*
|
|
1512
|
+
*/
|
|
1513
|
+
send_status?: ("SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR")[];
|
|
1514
|
+
/**
|
|
1515
|
+
* Message type
|
|
1516
|
+
*/
|
|
1517
|
+
type?: "SENT" | "RECEIVED";
|
|
1518
|
+
/**
|
|
1519
|
+
* Template ID used for sending message.
|
|
1520
|
+
* example:
|
|
1521
|
+
* 3f34ce73-089c-4d45-a5ee-c161234e41c3
|
|
1522
|
+
*/
|
|
1523
|
+
template_id?: string;
|
|
1524
|
+
/**
|
|
1525
|
+
* example:
|
|
1526
|
+
* true
|
|
1527
|
+
*/
|
|
1528
|
+
done?: boolean;
|
|
1529
|
+
}[];
|
|
1530
|
+
}
|
|
1531
|
+
export interface $403 {
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1379
1535
|
namespace SearchThreads {
|
|
1380
1536
|
export type RequestBody = Components.Schemas.SearchParams;
|
|
1381
1537
|
namespace Responses {
|
|
@@ -2151,6 +2307,16 @@ export interface OperationMethods {
|
|
|
2151
2307
|
data?: any,
|
|
2152
2308
|
config?: AxiosRequestConfig
|
|
2153
2309
|
): OperationResponse<Paths.DeleteMessage.Responses.$204>
|
|
2310
|
+
/**
|
|
2311
|
+
* searchMessages - searchMessages
|
|
2312
|
+
*
|
|
2313
|
+
* Search Messages
|
|
2314
|
+
*/
|
|
2315
|
+
'searchMessages'(
|
|
2316
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2317
|
+
data?: Paths.SearchMessages.RequestBody,
|
|
2318
|
+
config?: AxiosRequestConfig
|
|
2319
|
+
): OperationResponse<Paths.SearchMessages.Responses.$200>
|
|
2154
2320
|
/**
|
|
2155
2321
|
* trashMessage - trashMessage
|
|
2156
2322
|
*
|
|
@@ -2603,6 +2769,18 @@ export interface PathsDictionary {
|
|
|
2603
2769
|
config?: AxiosRequestConfig
|
|
2604
2770
|
): OperationResponse<Paths.DeleteMessage.Responses.$204>
|
|
2605
2771
|
}
|
|
2772
|
+
['/v1/message/messages:search']: {
|
|
2773
|
+
/**
|
|
2774
|
+
* searchMessages - searchMessages
|
|
2775
|
+
*
|
|
2776
|
+
* Search Messages
|
|
2777
|
+
*/
|
|
2778
|
+
'post'(
|
|
2779
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2780
|
+
data?: Paths.SearchMessages.RequestBody,
|
|
2781
|
+
config?: AxiosRequestConfig
|
|
2782
|
+
): OperationResponse<Paths.SearchMessages.Responses.$200>
|
|
2783
|
+
}
|
|
2606
2784
|
['/v1/message/messages/{id}/trash']: {
|
|
2607
2785
|
/**
|
|
2608
2786
|
* trashMessage - trashMessage
|
package/dist/openapi.json
CHANGED
|
@@ -210,6 +210,74 @@
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
|
+
"/v1/message/messages:search": {
|
|
214
|
+
"post": {
|
|
215
|
+
"operationId": "searchMessages",
|
|
216
|
+
"summary": "searchMessages",
|
|
217
|
+
"description": "Search Messages",
|
|
218
|
+
"tags": [
|
|
219
|
+
"Messages"
|
|
220
|
+
],
|
|
221
|
+
"requestBody": {
|
|
222
|
+
"content": {
|
|
223
|
+
"application/json": {
|
|
224
|
+
"schema": {
|
|
225
|
+
"$ref": "#/components/schemas/SearchParamsV2"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"responses": {
|
|
231
|
+
"200": {
|
|
232
|
+
"description": "Success",
|
|
233
|
+
"content": {
|
|
234
|
+
"application/json": {
|
|
235
|
+
"schema": {
|
|
236
|
+
"type": "object",
|
|
237
|
+
"required": [
|
|
238
|
+
"hits",
|
|
239
|
+
"results"
|
|
240
|
+
],
|
|
241
|
+
"properties": {
|
|
242
|
+
"hits": {
|
|
243
|
+
"type": "number",
|
|
244
|
+
"description": "Total of matched messages",
|
|
245
|
+
"example": 14
|
|
246
|
+
},
|
|
247
|
+
"results": {
|
|
248
|
+
"type": "array",
|
|
249
|
+
"description": "Matched messages",
|
|
250
|
+
"items": {
|
|
251
|
+
"allOf": [
|
|
252
|
+
{
|
|
253
|
+
"$ref": "#/components/schemas/BaseEntity"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"$ref": "#/components/schemas/Message"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"type": "object",
|
|
260
|
+
"properties": {
|
|
261
|
+
"done": {
|
|
262
|
+
"type": "boolean",
|
|
263
|
+
"example": true
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"403": {
|
|
276
|
+
"description": "Forbidden"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
},
|
|
213
281
|
"/v1/message/messages/{id}/trash": {
|
|
214
282
|
"post": {
|
|
215
283
|
"operationId": "trashMessage",
|
|
@@ -408,6 +476,11 @@
|
|
|
408
476
|
"count"
|
|
409
477
|
],
|
|
410
478
|
"properties": {
|
|
479
|
+
"count": {
|
|
480
|
+
"type": "number",
|
|
481
|
+
"description": "Total of unread messages",
|
|
482
|
+
"example": 14
|
|
483
|
+
},
|
|
411
484
|
"unread": {
|
|
412
485
|
"type": "number",
|
|
413
486
|
"description": "Total of unread messages",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/message-client",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.4",
|
|
4
4
|
"description": "API Client for epilot Message API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,18 +18,6 @@
|
|
|
18
18
|
"sdk",
|
|
19
19
|
"message"
|
|
20
20
|
],
|
|
21
|
-
"scripts": {
|
|
22
|
-
"test": "jest",
|
|
23
|
-
"typescript": "tsc",
|
|
24
|
-
"bundle-definition": "webpack",
|
|
25
|
-
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/message.yaml",
|
|
26
|
-
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
27
|
-
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
28
|
-
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|
|
29
|
-
"build:watch": "npm run build && tsc -w",
|
|
30
|
-
"prepublishOnly": "npm run typegen && npm run build",
|
|
31
|
-
"lint": "../../node_modules/eslint/bin/eslint.js src"
|
|
32
|
-
},
|
|
33
21
|
"files": [
|
|
34
22
|
"*.js",
|
|
35
23
|
"*.d.ts",
|
|
@@ -45,6 +33,7 @@
|
|
|
45
33
|
],
|
|
46
34
|
"author": "epilot GmbH",
|
|
47
35
|
"license": "UNLICENSED",
|
|
36
|
+
"private": false,
|
|
48
37
|
"peerDependencies": {
|
|
49
38
|
"axios": "^1.6.2"
|
|
50
39
|
},
|
|
@@ -52,7 +41,7 @@
|
|
|
52
41
|
"@dazn/lambda-powertools-correlation-ids": "^1.28.1",
|
|
53
42
|
"buffer": "^6.0.3",
|
|
54
43
|
"https-browserify": "^1.0.0",
|
|
55
|
-
"openapi-client-axios": "^7.
|
|
44
|
+
"openapi-client-axios": "^7.6.0",
|
|
56
45
|
"stream-http": "^3.1.1",
|
|
57
46
|
"url": "^0.11.0",
|
|
58
47
|
"util": "^0.12.3"
|
|
@@ -63,7 +52,7 @@
|
|
|
63
52
|
"copy-webpack-plugin": "^7.0.0",
|
|
64
53
|
"jest": "^26.6.3",
|
|
65
54
|
"json-loader": "^0.5.7",
|
|
66
|
-
"openapicmd": "^2.
|
|
55
|
+
"openapicmd": "^2.7.0",
|
|
67
56
|
"ts-jest": "^26.5.0",
|
|
68
57
|
"ts-loader": "^8.0.14",
|
|
69
58
|
"ts-node": "^10.9.1",
|
|
@@ -71,5 +60,16 @@
|
|
|
71
60
|
"webpack": "^5.18.0",
|
|
72
61
|
"webpack-cli": "^4.4.0"
|
|
73
62
|
},
|
|
74
|
-
"gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
|
|
75
|
-
|
|
63
|
+
"gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7",
|
|
64
|
+
"scripts": {
|
|
65
|
+
"test": "jest",
|
|
66
|
+
"typescript": "tsc",
|
|
67
|
+
"bundle-definition": "webpack",
|
|
68
|
+
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/message.yaml",
|
|
69
|
+
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
70
|
+
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
71
|
+
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|
|
72
|
+
"build:watch": "npm run build && tsc -w",
|
|
73
|
+
"lint": "pnpm exec eslint src"
|
|
74
|
+
}
|
|
75
|
+
}
|