@epilot/message-client 1.15.4 → 1.16.0

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.
@@ -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":{}}},"/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":{}}},"/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/{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/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/{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":{}}},"/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/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 o=s[a]={exports:{}};return e[a].call(o.exports,o,o.exports,r),o.exports}(914),a=exports;for(var t in r)a[t]=r[t];r.__esModule&&Object.defineProperty(a,"__esModule",{value:!0})})();
@@ -151,6 +151,17 @@
151
151
  "responses": {}
152
152
  }
153
153
  },
154
+ "/v2/message/threads:search": {
155
+ "post": {
156
+ "operationId": "searchThreadsV2",
157
+ "requestBody": {
158
+ "content": {
159
+ "application/json": {}
160
+ }
161
+ },
162
+ "responses": {}
163
+ }
164
+ },
154
165
  "/v1/message/threads:searchIds": {
155
166
  "post": {
156
167
  "operationId": "searchIds",
@@ -318,6 +329,42 @@
318
329
  "responses": {}
319
330
  }
320
331
  },
332
+ "/v1/message/threads/bulk:delete": {
333
+ "post": {
334
+ "operationId": "threadBulkActionsDelete",
335
+ "requestBody": {
336
+ "required": true,
337
+ "content": {
338
+ "application/json": {}
339
+ }
340
+ },
341
+ "responses": {}
342
+ }
343
+ },
344
+ "/v1/message/threads/bulk:done": {
345
+ "post": {
346
+ "operationId": "threadBulkActionsDone",
347
+ "requestBody": {
348
+ "required": true,
349
+ "content": {
350
+ "application/json": {}
351
+ }
352
+ },
353
+ "responses": {}
354
+ }
355
+ },
356
+ "/v1/message/threads/bulk:open": {
357
+ "post": {
358
+ "operationId": "threadBulkActionsOpen",
359
+ "requestBody": {
360
+ "required": true,
361
+ "content": {
362
+ "application/json": {}
363
+ }
364
+ },
365
+ "responses": {}
366
+ }
367
+ },
321
368
  "/v1/message/threads/{id}/read": {
322
369
  "post": {
323
370
  "operationId": "markReadThread",
package/dist/openapi.d.ts CHANGED
@@ -489,6 +489,20 @@ declare namespace Components {
489
489
  size?: number;
490
490
  hydrate?: boolean;
491
491
  }
492
+ export interface SearchParamsV2 {
493
+ /**
494
+ * Lucene query syntax supported with ElasticSearch
495
+ * example:
496
+ * subject:"Request for solar panel price" AND _tags:INBOX
497
+ */
498
+ q: string;
499
+ from?: number;
500
+ size?: number;
501
+ hydrate?: boolean;
502
+ include_scores?: boolean;
503
+ sort?: string;
504
+ highlight?: any;
505
+ }
492
506
  /**
493
507
  * Thread properties depend on API caller as it's not pre-defined. We do recommend having at least `topic` property for categorizing.
494
508
  */
@@ -1158,7 +1172,7 @@ declare namespace Paths {
1158
1172
  id: Parameters.Id;
1159
1173
  }
1160
1174
  namespace Responses {
1161
- export interface $204 {
1175
+ export interface $200 {
1162
1176
  }
1163
1177
  export interface $403 {
1164
1178
  }
@@ -1173,7 +1187,7 @@ declare namespace Paths {
1173
1187
  }
1174
1188
  export type RequestBody = Components.Schemas.ReadMessagePayload;
1175
1189
  namespace Responses {
1176
- export interface $204 {
1190
+ export interface $200 {
1177
1191
  }
1178
1192
  export interface $403 {
1179
1193
  }
@@ -1244,7 +1258,7 @@ declare namespace Paths {
1244
1258
  id: Parameters.Id;
1245
1259
  }
1246
1260
  namespace Responses {
1247
- export interface $204 {
1261
+ export interface $200 {
1248
1262
  }
1249
1263
  export interface $403 {
1250
1264
  }
@@ -1259,7 +1273,7 @@ declare namespace Paths {
1259
1273
  }
1260
1274
  export type RequestBody = Components.Schemas.ReadMessagePayload;
1261
1275
  namespace Responses {
1262
- export interface $204 {
1276
+ export interface $200 {
1263
1277
  }
1264
1278
  export interface $403 {
1265
1279
  }
@@ -1375,6 +1389,97 @@ declare namespace Paths {
1375
1389
  }
1376
1390
  }
1377
1391
  }
1392
+ namespace SearchThreadsV2 {
1393
+ export type RequestBody = Components.Schemas.SearchParamsV2;
1394
+ namespace Responses {
1395
+ export interface $200 {
1396
+ /**
1397
+ * Total of matched threads
1398
+ * example:
1399
+ * 14
1400
+ */
1401
+ hits: number;
1402
+ /**
1403
+ * Matched threads
1404
+ */
1405
+ results: {
1406
+ /**
1407
+ * Entity ID
1408
+ * example:
1409
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
1410
+ */
1411
+ _id: string;
1412
+ /**
1413
+ * Entity title
1414
+ */
1415
+ _title: string;
1416
+ /**
1417
+ * Organization ID the entity belongs to
1418
+ * example:
1419
+ * 206801
1420
+ */
1421
+ _org: string;
1422
+ /**
1423
+ * URL-friendly identifier for the entity schema
1424
+ * example:
1425
+ * message
1426
+ */
1427
+ _schema: string;
1428
+ /**
1429
+ * Entity tags
1430
+ * example:
1431
+ * [
1432
+ * "pricing",
1433
+ * "INBOX"
1434
+ * ]
1435
+ */
1436
+ _tags?: string[];
1437
+ /**
1438
+ * Created date
1439
+ * example:
1440
+ * 2021-02-09T12:41:43.662Z
1441
+ */
1442
+ _created_at: string; // date-time
1443
+ /**
1444
+ * Updated date
1445
+ * example:
1446
+ * 2021-02-10T09:14:31.990Z
1447
+ */
1448
+ _updated_at: string; // date-time
1449
+ /**
1450
+ * Message topic (e.g. which service sends the message or message category)
1451
+ * example:
1452
+ * CUSTOMER_MESSAGE
1453
+ */
1454
+ topic: string;
1455
+ /**
1456
+ * User ID of who the message is assigned to. Default is the user who sends message.
1457
+ */
1458
+ assigned_to?: string[];
1459
+ /**
1460
+ * Organization ID of organization read the message.
1461
+ */
1462
+ org_read_message?: string[];
1463
+ /**
1464
+ * Whether the thread is marked as Done
1465
+ * example:
1466
+ * false
1467
+ */
1468
+ done?: boolean;
1469
+ latest_message?: Components.Schemas.Message;
1470
+ latest_trash_message?: Components.Schemas.Message;
1471
+ /**
1472
+ * The date of the latest message time in the thread
1473
+ * example:
1474
+ * 2024-02-10T09:14:31.990Z
1475
+ */
1476
+ latest_message_at?: string;
1477
+ }[];
1478
+ }
1479
+ export interface $403 {
1480
+ }
1481
+ }
1482
+ }
1378
1483
  namespace SendDraft {
1379
1484
  namespace Responses {
1380
1485
  export interface $201 {
@@ -1522,10 +1627,37 @@ declare namespace Paths {
1522
1627
  }
1523
1628
  }
1524
1629
  }
1630
+ namespace ThreadBulkActionsDelete {
1631
+ export type RequestBody = Components.Schemas.BulkActionsPayload;
1632
+ namespace Responses {
1633
+ export interface $200 {
1634
+ }
1635
+ export interface $403 {
1636
+ }
1637
+ }
1638
+ }
1639
+ namespace ThreadBulkActionsDone {
1640
+ export type RequestBody = Components.Schemas.BulkActionsPayload;
1641
+ namespace Responses {
1642
+ export interface $200 {
1643
+ }
1644
+ export interface $403 {
1645
+ }
1646
+ }
1647
+ }
1525
1648
  namespace ThreadBulkActionsFavorite {
1526
1649
  export type RequestBody = Components.Schemas.BulkActionsPayload;
1527
1650
  namespace Responses {
1528
- export interface $204 {
1651
+ export interface $200 {
1652
+ }
1653
+ export interface $403 {
1654
+ }
1655
+ }
1656
+ }
1657
+ namespace ThreadBulkActionsOpen {
1658
+ export type RequestBody = Components.Schemas.BulkActionsPayload;
1659
+ namespace Responses {
1660
+ export interface $200 {
1529
1661
  }
1530
1662
  export interface $403 {
1531
1663
  }
@@ -1534,7 +1666,7 @@ declare namespace Paths {
1534
1666
  namespace ThreadBulkActionsRead {
1535
1667
  export type RequestBody = Components.Schemas.BulkActionsPayloadWithScopes;
1536
1668
  namespace Responses {
1537
- export interface $204 {
1669
+ export interface $200 {
1538
1670
  }
1539
1671
  export interface $403 {
1540
1672
  }
@@ -1543,7 +1675,7 @@ declare namespace Paths {
1543
1675
  namespace ThreadBulkActionsTrash {
1544
1676
  export type RequestBody = Components.Schemas.BulkActionsPayload;
1545
1677
  namespace Responses {
1546
- export interface $204 {
1678
+ export interface $200 {
1547
1679
  }
1548
1680
  export interface $403 {
1549
1681
  }
@@ -1552,7 +1684,7 @@ declare namespace Paths {
1552
1684
  namespace ThreadBulkActionsUnfavorite {
1553
1685
  export type RequestBody = Components.Schemas.BulkActionsPayload;
1554
1686
  namespace Responses {
1555
- export interface $204 {
1687
+ export interface $200 {
1556
1688
  }
1557
1689
  export interface $403 {
1558
1690
  }
@@ -1561,7 +1693,7 @@ declare namespace Paths {
1561
1693
  namespace ThreadBulkActionsUnread {
1562
1694
  export type RequestBody = Components.Schemas.BulkActionsPayloadWithScopes;
1563
1695
  namespace Responses {
1564
- export interface $204 {
1696
+ export interface $200 {
1565
1697
  }
1566
1698
  export interface $403 {
1567
1699
  }
@@ -1570,7 +1702,7 @@ declare namespace Paths {
1570
1702
  namespace ThreadBulkActionsUntrash {
1571
1703
  export type RequestBody = Components.Schemas.BulkActionsPayload;
1572
1704
  namespace Responses {
1573
- export interface $204 {
1705
+ export interface $200 {
1574
1706
  }
1575
1707
  export interface $403 {
1576
1708
  }
@@ -1598,7 +1730,7 @@ declare namespace Paths {
1598
1730
  id: Parameters.Id;
1599
1731
  }
1600
1732
  namespace Responses {
1601
- export interface $204 {
1733
+ export interface $200 {
1602
1734
  }
1603
1735
  export interface $403 {
1604
1736
  }
@@ -1657,7 +1789,7 @@ declare namespace Paths {
1657
1789
  id: Parameters.Id;
1658
1790
  }
1659
1791
  namespace Responses {
1660
- export interface $204 {
1792
+ export interface $200 {
1661
1793
  }
1662
1794
  export interface $403 {
1663
1795
  }
@@ -1996,6 +2128,21 @@ export interface OperationMethods {
1996
2128
  data?: Paths.SearchThreads.RequestBody,
1997
2129
  config?: AxiosRequestConfig
1998
2130
  ): OperationResponse<Paths.SearchThreads.Responses.$200>
2131
+ /**
2132
+ * searchThreadsV2 - searchThreadsV2
2133
+ *
2134
+ * Search for threads of email messages.
2135
+ *
2136
+ * Messages with no replies yet are treated as threads with single message.
2137
+ *
2138
+ * Lucene syntax supported.
2139
+ *
2140
+ */
2141
+ 'searchThreadsV2'(
2142
+ parameters?: Parameters<UnknownParamsObject> | null,
2143
+ data?: Paths.SearchThreadsV2.RequestBody,
2144
+ config?: AxiosRequestConfig
2145
+ ): OperationResponse<Paths.SearchThreadsV2.Responses.$200>
1999
2146
  /**
2000
2147
  * searchIds - Search threads and return all id's
2001
2148
  *
@@ -2068,7 +2215,7 @@ export interface OperationMethods {
2068
2215
  parameters?: Parameters<Paths.TrashThread.PathParameters> | null,
2069
2216
  data?: any,
2070
2217
  config?: AxiosRequestConfig
2071
- ): OperationResponse<Paths.TrashThread.Responses.$204>
2218
+ ): OperationResponse<Paths.TrashThread.Responses.$200>
2072
2219
  /**
2073
2220
  * untrashThread - untrashThread
2074
2221
  *
@@ -2078,7 +2225,7 @@ export interface OperationMethods {
2078
2225
  parameters?: Parameters<Paths.UntrashThread.PathParameters> | null,
2079
2226
  data?: any,
2080
2227
  config?: AxiosRequestConfig
2081
- ): OperationResponse<Paths.UntrashThread.Responses.$204>
2228
+ ): OperationResponse<Paths.UntrashThread.Responses.$200>
2082
2229
  /**
2083
2230
  * threadBulkActionsRead - threadBulkActionsRead
2084
2231
  *
@@ -2088,7 +2235,7 @@ export interface OperationMethods {
2088
2235
  parameters?: Parameters<UnknownParamsObject> | null,
2089
2236
  data?: Paths.ThreadBulkActionsRead.RequestBody,
2090
2237
  config?: AxiosRequestConfig
2091
- ): OperationResponse<Paths.ThreadBulkActionsRead.Responses.$204>
2238
+ ): OperationResponse<Paths.ThreadBulkActionsRead.Responses.$200>
2092
2239
  /**
2093
2240
  * threadBulkActionsUnread - threadBulkActionsUnread
2094
2241
  *
@@ -2098,7 +2245,7 @@ export interface OperationMethods {
2098
2245
  parameters?: Parameters<UnknownParamsObject> | null,
2099
2246
  data?: Paths.ThreadBulkActionsUnread.RequestBody,
2100
2247
  config?: AxiosRequestConfig
2101
- ): OperationResponse<Paths.ThreadBulkActionsUnread.Responses.$204>
2248
+ ): OperationResponse<Paths.ThreadBulkActionsUnread.Responses.$200>
2102
2249
  /**
2103
2250
  * threadBulkActionsFavorite - threadBulkActionsFavorite
2104
2251
  *
@@ -2108,7 +2255,7 @@ export interface OperationMethods {
2108
2255
  parameters?: Parameters<UnknownParamsObject> | null,
2109
2256
  data?: Paths.ThreadBulkActionsFavorite.RequestBody,
2110
2257
  config?: AxiosRequestConfig
2111
- ): OperationResponse<Paths.ThreadBulkActionsFavorite.Responses.$204>
2258
+ ): OperationResponse<Paths.ThreadBulkActionsFavorite.Responses.$200>
2112
2259
  /**
2113
2260
  * threadBulkActionsUnfavorite - threadBulkActionsUnfavorite
2114
2261
  *
@@ -2118,7 +2265,7 @@ export interface OperationMethods {
2118
2265
  parameters?: Parameters<UnknownParamsObject> | null,
2119
2266
  data?: Paths.ThreadBulkActionsUnfavorite.RequestBody,
2120
2267
  config?: AxiosRequestConfig
2121
- ): OperationResponse<Paths.ThreadBulkActionsUnfavorite.Responses.$204>
2268
+ ): OperationResponse<Paths.ThreadBulkActionsUnfavorite.Responses.$200>
2122
2269
  /**
2123
2270
  * threadBulkActionsTrash - threadBulkActionsTrash
2124
2271
  *
@@ -2128,7 +2275,7 @@ export interface OperationMethods {
2128
2275
  parameters?: Parameters<UnknownParamsObject> | null,
2129
2276
  data?: Paths.ThreadBulkActionsTrash.RequestBody,
2130
2277
  config?: AxiosRequestConfig
2131
- ): OperationResponse<Paths.ThreadBulkActionsTrash.Responses.$204>
2278
+ ): OperationResponse<Paths.ThreadBulkActionsTrash.Responses.$200>
2132
2279
  /**
2133
2280
  * threadBulkActionsUntrash - threadBulkActionsUntrash
2134
2281
  *
@@ -2138,7 +2285,37 @@ export interface OperationMethods {
2138
2285
  parameters?: Parameters<UnknownParamsObject> | null,
2139
2286
  data?: Paths.ThreadBulkActionsUntrash.RequestBody,
2140
2287
  config?: AxiosRequestConfig
2141
- ): OperationResponse<Paths.ThreadBulkActionsUntrash.Responses.$204>
2288
+ ): OperationResponse<Paths.ThreadBulkActionsUntrash.Responses.$200>
2289
+ /**
2290
+ * threadBulkActionsDelete - threadBulkActionsDelete
2291
+ *
2292
+ * Performs a bulk permanent delete for all threads
2293
+ */
2294
+ 'threadBulkActionsDelete'(
2295
+ parameters?: Parameters<UnknownParamsObject> | null,
2296
+ data?: Paths.ThreadBulkActionsDelete.RequestBody,
2297
+ config?: AxiosRequestConfig
2298
+ ): OperationResponse<Paths.ThreadBulkActionsDelete.Responses.$200>
2299
+ /**
2300
+ * threadBulkActionsDone - threadBulkActionsDone
2301
+ *
2302
+ * Perform a bulk action of marking an array of threads as done
2303
+ */
2304
+ 'threadBulkActionsDone'(
2305
+ parameters?: Parameters<UnknownParamsObject> | null,
2306
+ data?: Paths.ThreadBulkActionsDone.RequestBody,
2307
+ config?: AxiosRequestConfig
2308
+ ): OperationResponse<Paths.ThreadBulkActionsDone.Responses.$200>
2309
+ /**
2310
+ * threadBulkActionsOpen - threadBulkActionsOpen
2311
+ *
2312
+ * Perform a bulk action of marking an array of threads as open
2313
+ */
2314
+ 'threadBulkActionsOpen'(
2315
+ parameters?: Parameters<UnknownParamsObject> | null,
2316
+ data?: Paths.ThreadBulkActionsOpen.RequestBody,
2317
+ config?: AxiosRequestConfig
2318
+ ): OperationResponse<Paths.ThreadBulkActionsOpen.Responses.$200>
2142
2319
  /**
2143
2320
  * markReadThread - markReadThread
2144
2321
  *
@@ -2148,7 +2325,7 @@ export interface OperationMethods {
2148
2325
  parameters?: Parameters<Paths.MarkReadThread.PathParameters> | null,
2149
2326
  data?: any,
2150
2327
  config?: AxiosRequestConfig
2151
- ): OperationResponse<Paths.MarkReadThread.Responses.$204>
2328
+ ): OperationResponse<Paths.MarkReadThread.Responses.$200>
2152
2329
  /**
2153
2330
  * markReadThreadV2 - markReadThreadV2
2154
2331
  *
@@ -2158,7 +2335,7 @@ export interface OperationMethods {
2158
2335
  parameters?: Parameters<Paths.MarkReadThreadV2.PathParameters> | null,
2159
2336
  data?: Paths.MarkReadThreadV2.RequestBody,
2160
2337
  config?: AxiosRequestConfig
2161
- ): OperationResponse<Paths.MarkReadThreadV2.Responses.$204>
2338
+ ): OperationResponse<Paths.MarkReadThreadV2.Responses.$200>
2162
2339
  /**
2163
2340
  * markUnreadThread - markUnreadThread
2164
2341
  *
@@ -2168,7 +2345,7 @@ export interface OperationMethods {
2168
2345
  parameters?: Parameters<Paths.MarkUnreadThread.PathParameters> | null,
2169
2346
  data?: any,
2170
2347
  config?: AxiosRequestConfig
2171
- ): OperationResponse<Paths.MarkUnreadThread.Responses.$204>
2348
+ ): OperationResponse<Paths.MarkUnreadThread.Responses.$200>
2172
2349
  /**
2173
2350
  * markUnreadThreadV2 - markUnreadThreadV2
2174
2351
  *
@@ -2178,7 +2355,7 @@ export interface OperationMethods {
2178
2355
  parameters?: Parameters<Paths.MarkUnreadThreadV2.PathParameters> | null,
2179
2356
  data?: Paths.MarkUnreadThreadV2.RequestBody,
2180
2357
  config?: AxiosRequestConfig
2181
- ): OperationResponse<Paths.MarkUnreadThreadV2.Responses.$204>
2358
+ ): OperationResponse<Paths.MarkUnreadThreadV2.Responses.$200>
2182
2359
  /**
2183
2360
  * assignThread - assignThread
2184
2361
  *
@@ -2387,6 +2564,23 @@ export interface PathsDictionary {
2387
2564
  config?: AxiosRequestConfig
2388
2565
  ): OperationResponse<Paths.SearchThreads.Responses.$200>
2389
2566
  }
2567
+ ['/v2/message/threads:search']: {
2568
+ /**
2569
+ * searchThreadsV2 - searchThreadsV2
2570
+ *
2571
+ * Search for threads of email messages.
2572
+ *
2573
+ * Messages with no replies yet are treated as threads with single message.
2574
+ *
2575
+ * Lucene syntax supported.
2576
+ *
2577
+ */
2578
+ 'post'(
2579
+ parameters?: Parameters<UnknownParamsObject> | null,
2580
+ data?: Paths.SearchThreadsV2.RequestBody,
2581
+ config?: AxiosRequestConfig
2582
+ ): OperationResponse<Paths.SearchThreadsV2.Responses.$200>
2583
+ }
2390
2584
  ['/v1/message/threads:searchIds']: {
2391
2585
  /**
2392
2586
  * searchIds - Search threads and return all id's
@@ -2472,7 +2666,7 @@ export interface PathsDictionary {
2472
2666
  parameters?: Parameters<Paths.TrashThread.PathParameters> | null,
2473
2667
  data?: any,
2474
2668
  config?: AxiosRequestConfig
2475
- ): OperationResponse<Paths.TrashThread.Responses.$204>
2669
+ ): OperationResponse<Paths.TrashThread.Responses.$200>
2476
2670
  }
2477
2671
  ['/v1/message/threads/{id}/untrash']: {
2478
2672
  /**
@@ -2484,7 +2678,7 @@ export interface PathsDictionary {
2484
2678
  parameters?: Parameters<Paths.UntrashThread.PathParameters> | null,
2485
2679
  data?: any,
2486
2680
  config?: AxiosRequestConfig
2487
- ): OperationResponse<Paths.UntrashThread.Responses.$204>
2681
+ ): OperationResponse<Paths.UntrashThread.Responses.$200>
2488
2682
  }
2489
2683
  ['/v1/message/threads/bulk:read']: {
2490
2684
  /**
@@ -2496,7 +2690,7 @@ export interface PathsDictionary {
2496
2690
  parameters?: Parameters<UnknownParamsObject> | null,
2497
2691
  data?: Paths.ThreadBulkActionsRead.RequestBody,
2498
2692
  config?: AxiosRequestConfig
2499
- ): OperationResponse<Paths.ThreadBulkActionsRead.Responses.$204>
2693
+ ): OperationResponse<Paths.ThreadBulkActionsRead.Responses.$200>
2500
2694
  }
2501
2695
  ['/v1/message/threads/bulk:unread']: {
2502
2696
  /**
@@ -2508,7 +2702,7 @@ export interface PathsDictionary {
2508
2702
  parameters?: Parameters<UnknownParamsObject> | null,
2509
2703
  data?: Paths.ThreadBulkActionsUnread.RequestBody,
2510
2704
  config?: AxiosRequestConfig
2511
- ): OperationResponse<Paths.ThreadBulkActionsUnread.Responses.$204>
2705
+ ): OperationResponse<Paths.ThreadBulkActionsUnread.Responses.$200>
2512
2706
  }
2513
2707
  ['/v1/message/threads/bulk:favorite']: {
2514
2708
  /**
@@ -2520,7 +2714,7 @@ export interface PathsDictionary {
2520
2714
  parameters?: Parameters<UnknownParamsObject> | null,
2521
2715
  data?: Paths.ThreadBulkActionsFavorite.RequestBody,
2522
2716
  config?: AxiosRequestConfig
2523
- ): OperationResponse<Paths.ThreadBulkActionsFavorite.Responses.$204>
2717
+ ): OperationResponse<Paths.ThreadBulkActionsFavorite.Responses.$200>
2524
2718
  }
2525
2719
  ['/v1/message/threads/bulk:unfavorite']: {
2526
2720
  /**
@@ -2532,7 +2726,7 @@ export interface PathsDictionary {
2532
2726
  parameters?: Parameters<UnknownParamsObject> | null,
2533
2727
  data?: Paths.ThreadBulkActionsUnfavorite.RequestBody,
2534
2728
  config?: AxiosRequestConfig
2535
- ): OperationResponse<Paths.ThreadBulkActionsUnfavorite.Responses.$204>
2729
+ ): OperationResponse<Paths.ThreadBulkActionsUnfavorite.Responses.$200>
2536
2730
  }
2537
2731
  ['/v1/message/threads/bulk:trash']: {
2538
2732
  /**
@@ -2544,7 +2738,7 @@ export interface PathsDictionary {
2544
2738
  parameters?: Parameters<UnknownParamsObject> | null,
2545
2739
  data?: Paths.ThreadBulkActionsTrash.RequestBody,
2546
2740
  config?: AxiosRequestConfig
2547
- ): OperationResponse<Paths.ThreadBulkActionsTrash.Responses.$204>
2741
+ ): OperationResponse<Paths.ThreadBulkActionsTrash.Responses.$200>
2548
2742
  }
2549
2743
  ['/v1/message/threads/bulk:untrash']: {
2550
2744
  /**
@@ -2556,7 +2750,43 @@ export interface PathsDictionary {
2556
2750
  parameters?: Parameters<UnknownParamsObject> | null,
2557
2751
  data?: Paths.ThreadBulkActionsUntrash.RequestBody,
2558
2752
  config?: AxiosRequestConfig
2559
- ): OperationResponse<Paths.ThreadBulkActionsUntrash.Responses.$204>
2753
+ ): OperationResponse<Paths.ThreadBulkActionsUntrash.Responses.$200>
2754
+ }
2755
+ ['/v1/message/threads/bulk:delete']: {
2756
+ /**
2757
+ * threadBulkActionsDelete - threadBulkActionsDelete
2758
+ *
2759
+ * Performs a bulk permanent delete for all threads
2760
+ */
2761
+ 'post'(
2762
+ parameters?: Parameters<UnknownParamsObject> | null,
2763
+ data?: Paths.ThreadBulkActionsDelete.RequestBody,
2764
+ config?: AxiosRequestConfig
2765
+ ): OperationResponse<Paths.ThreadBulkActionsDelete.Responses.$200>
2766
+ }
2767
+ ['/v1/message/threads/bulk:done']: {
2768
+ /**
2769
+ * threadBulkActionsDone - threadBulkActionsDone
2770
+ *
2771
+ * Perform a bulk action of marking an array of threads as done
2772
+ */
2773
+ 'post'(
2774
+ parameters?: Parameters<UnknownParamsObject> | null,
2775
+ data?: Paths.ThreadBulkActionsDone.RequestBody,
2776
+ config?: AxiosRequestConfig
2777
+ ): OperationResponse<Paths.ThreadBulkActionsDone.Responses.$200>
2778
+ }
2779
+ ['/v1/message/threads/bulk:open']: {
2780
+ /**
2781
+ * threadBulkActionsOpen - threadBulkActionsOpen
2782
+ *
2783
+ * Perform a bulk action of marking an array of threads as open
2784
+ */
2785
+ 'post'(
2786
+ parameters?: Parameters<UnknownParamsObject> | null,
2787
+ data?: Paths.ThreadBulkActionsOpen.RequestBody,
2788
+ config?: AxiosRequestConfig
2789
+ ): OperationResponse<Paths.ThreadBulkActionsOpen.Responses.$200>
2560
2790
  }
2561
2791
  ['/v1/message/threads/{id}/read']: {
2562
2792
  /**
@@ -2568,7 +2798,7 @@ export interface PathsDictionary {
2568
2798
  parameters?: Parameters<Paths.MarkReadThread.PathParameters> | null,
2569
2799
  data?: any,
2570
2800
  config?: AxiosRequestConfig
2571
- ): OperationResponse<Paths.MarkReadThread.Responses.$204>
2801
+ ): OperationResponse<Paths.MarkReadThread.Responses.$200>
2572
2802
  }
2573
2803
  ['/v2/message/threads/{id}/read']: {
2574
2804
  /**
@@ -2580,7 +2810,7 @@ export interface PathsDictionary {
2580
2810
  parameters?: Parameters<Paths.MarkReadThreadV2.PathParameters> | null,
2581
2811
  data?: Paths.MarkReadThreadV2.RequestBody,
2582
2812
  config?: AxiosRequestConfig
2583
- ): OperationResponse<Paths.MarkReadThreadV2.Responses.$204>
2813
+ ): OperationResponse<Paths.MarkReadThreadV2.Responses.$200>
2584
2814
  }
2585
2815
  ['/v1/message/threads/{id}/unread']: {
2586
2816
  /**
@@ -2592,7 +2822,7 @@ export interface PathsDictionary {
2592
2822
  parameters?: Parameters<Paths.MarkUnreadThread.PathParameters> | null,
2593
2823
  data?: any,
2594
2824
  config?: AxiosRequestConfig
2595
- ): OperationResponse<Paths.MarkUnreadThread.Responses.$204>
2825
+ ): OperationResponse<Paths.MarkUnreadThread.Responses.$200>
2596
2826
  }
2597
2827
  ['/v2/message/threads/{id}/unread']: {
2598
2828
  /**
@@ -2604,7 +2834,7 @@ export interface PathsDictionary {
2604
2834
  parameters?: Parameters<Paths.MarkUnreadThreadV2.PathParameters> | null,
2605
2835
  data?: Paths.MarkUnreadThreadV2.RequestBody,
2606
2836
  config?: AxiosRequestConfig
2607
- ): OperationResponse<Paths.MarkUnreadThreadV2.Responses.$204>
2837
+ ): OperationResponse<Paths.MarkUnreadThreadV2.Responses.$200>
2608
2838
  }
2609
2839
  ['/v1/message/threads/{id}/assign']: {
2610
2840
  /**
@@ -2707,6 +2937,7 @@ export type ReadMessagePayload = Components.Schemas.ReadMessagePayload;
2707
2937
  export type ReadingScope = Components.Schemas.ReadingScope;
2708
2938
  export type SearchIDParams = Components.Schemas.SearchIDParams;
2709
2939
  export type SearchParams = Components.Schemas.SearchParams;
2940
+ export type SearchParamsV2 = Components.Schemas.SearchParamsV2;
2710
2941
  export type Thread = Components.Schemas.Thread;
2711
2942
  export type ThreadDoneEvent = Components.Schemas.ThreadDoneEvent;
2712
2943
  export type ThreadOpenEvent = Components.Schemas.ThreadOpenEvent;
package/dist/openapi.json CHANGED
@@ -463,6 +463,65 @@
463
463
  }
464
464
  }
465
465
  },
466
+ "/v2/message/threads:search": {
467
+ "post": {
468
+ "operationId": "searchThreadsV2",
469
+ "summary": "searchThreadsV2",
470
+ "description": "Search for threads of email messages.\n\nMessages with no replies yet are treated as threads with single message.\n\nLucene syntax supported.\n",
471
+ "tags": [
472
+ "Threads"
473
+ ],
474
+ "requestBody": {
475
+ "content": {
476
+ "application/json": {
477
+ "schema": {
478
+ "$ref": "#/components/schemas/SearchParamsV2"
479
+ }
480
+ }
481
+ }
482
+ },
483
+ "responses": {
484
+ "200": {
485
+ "description": "Success",
486
+ "content": {
487
+ "application/json": {
488
+ "schema": {
489
+ "type": "object",
490
+ "required": [
491
+ "hits",
492
+ "results"
493
+ ],
494
+ "properties": {
495
+ "hits": {
496
+ "type": "number",
497
+ "description": "Total of matched threads",
498
+ "example": 14
499
+ },
500
+ "results": {
501
+ "type": "array",
502
+ "description": "Matched threads",
503
+ "items": {
504
+ "allOf": [
505
+ {
506
+ "$ref": "#/components/schemas/BaseEntity"
507
+ },
508
+ {
509
+ "$ref": "#/components/schemas/Thread"
510
+ }
511
+ ]
512
+ }
513
+ }
514
+ }
515
+ }
516
+ }
517
+ }
518
+ },
519
+ "403": {
520
+ "description": "Forbidden"
521
+ }
522
+ }
523
+ }
524
+ },
466
525
  "/v1/message/threads:searchIds": {
467
526
  "post": {
468
527
  "operationId": "searchIds",
@@ -690,7 +749,7 @@
690
749
  }
691
750
  ],
692
751
  "responses": {
693
- "204": {
752
+ "200": {
694
753
  "description": "Success"
695
754
  },
696
755
  "403": {
@@ -719,7 +778,7 @@
719
778
  }
720
779
  ],
721
780
  "responses": {
722
- "204": {
781
+ "200": {
723
782
  "description": "Success"
724
783
  },
725
784
  "403": {
@@ -747,7 +806,7 @@
747
806
  }
748
807
  },
749
808
  "responses": {
750
- "204": {
809
+ "200": {
751
810
  "description": "Success"
752
811
  },
753
812
  "403": {
@@ -775,7 +834,7 @@
775
834
  }
776
835
  },
777
836
  "responses": {
778
- "204": {
837
+ "200": {
779
838
  "description": "Success"
780
839
  },
781
840
  "403": {
@@ -803,7 +862,7 @@
803
862
  }
804
863
  },
805
864
  "responses": {
806
- "204": {
865
+ "200": {
807
866
  "description": "Success"
808
867
  },
809
868
  "403": {
@@ -831,7 +890,7 @@
831
890
  }
832
891
  },
833
892
  "responses": {
834
- "204": {
893
+ "200": {
835
894
  "description": "Success"
836
895
  },
837
896
  "403": {
@@ -859,7 +918,7 @@
859
918
  }
860
919
  },
861
920
  "responses": {
862
- "204": {
921
+ "200": {
863
922
  "description": "Success"
864
923
  },
865
924
  "403": {
@@ -887,7 +946,91 @@
887
946
  }
888
947
  },
889
948
  "responses": {
890
- "204": {
949
+ "200": {
950
+ "description": "Success"
951
+ },
952
+ "403": {
953
+ "description": "Forbidden"
954
+ }
955
+ }
956
+ }
957
+ },
958
+ "/v1/message/threads/bulk:delete": {
959
+ "post": {
960
+ "operationId": "threadBulkActionsDelete",
961
+ "summary": "threadBulkActionsDelete",
962
+ "description": "Performs a bulk permanent delete for all threads",
963
+ "tags": [
964
+ "Threads"
965
+ ],
966
+ "requestBody": {
967
+ "required": true,
968
+ "content": {
969
+ "application/json": {
970
+ "schema": {
971
+ "$ref": "#/components/schemas/BulkActionsPayload"
972
+ }
973
+ }
974
+ }
975
+ },
976
+ "responses": {
977
+ "200": {
978
+ "description": "Success"
979
+ },
980
+ "403": {
981
+ "description": "Forbidden"
982
+ }
983
+ }
984
+ }
985
+ },
986
+ "/v1/message/threads/bulk:done": {
987
+ "post": {
988
+ "operationId": "threadBulkActionsDone",
989
+ "summary": "threadBulkActionsDone",
990
+ "description": "Perform a bulk action of marking an array of threads as done",
991
+ "tags": [
992
+ "Threads"
993
+ ],
994
+ "requestBody": {
995
+ "required": true,
996
+ "content": {
997
+ "application/json": {
998
+ "schema": {
999
+ "$ref": "#/components/schemas/BulkActionsPayload"
1000
+ }
1001
+ }
1002
+ }
1003
+ },
1004
+ "responses": {
1005
+ "200": {
1006
+ "description": "Success"
1007
+ },
1008
+ "403": {
1009
+ "description": "Forbidden"
1010
+ }
1011
+ }
1012
+ }
1013
+ },
1014
+ "/v1/message/threads/bulk:open": {
1015
+ "post": {
1016
+ "operationId": "threadBulkActionsOpen",
1017
+ "summary": "threadBulkActionsOpen",
1018
+ "description": "Perform a bulk action of marking an array of threads as open",
1019
+ "tags": [
1020
+ "Threads"
1021
+ ],
1022
+ "requestBody": {
1023
+ "required": true,
1024
+ "content": {
1025
+ "application/json": {
1026
+ "schema": {
1027
+ "$ref": "#/components/schemas/BulkActionsPayload"
1028
+ }
1029
+ }
1030
+ }
1031
+ },
1032
+ "responses": {
1033
+ "200": {
891
1034
  "description": "Success"
892
1035
  },
893
1036
  "403": {
@@ -916,7 +1059,7 @@
916
1059
  }
917
1060
  ],
918
1061
  "responses": {
919
- "204": {
1062
+ "200": {
920
1063
  "description": "Success"
921
1064
  },
922
1065
  "403": {
@@ -955,7 +1098,7 @@
955
1098
  }
956
1099
  },
957
1100
  "responses": {
958
- "204": {
1101
+ "200": {
959
1102
  "description": "Success"
960
1103
  },
961
1104
  "403": {
@@ -984,7 +1127,7 @@
984
1127
  }
985
1128
  ],
986
1129
  "responses": {
987
- "204": {
1130
+ "200": {
988
1131
  "description": "Success"
989
1132
  },
990
1133
  "403": {
@@ -1023,7 +1166,7 @@
1023
1166
  }
1024
1167
  },
1025
1168
  "responses": {
1026
- "204": {
1169
+ "200": {
1027
1170
  "description": "Success"
1028
1171
  },
1029
1172
  "403": {
@@ -1779,6 +1922,41 @@
1779
1922
  }
1780
1923
  }
1781
1924
  },
1925
+ "SearchParamsV2": {
1926
+ "type": "object",
1927
+ "required": [
1928
+ "q"
1929
+ ],
1930
+ "properties": {
1931
+ "q": {
1932
+ "description": "Lucene query syntax supported with ElasticSearch",
1933
+ "type": "string",
1934
+ "example": "subject:\"Request for solar panel price\" AND _tags:INBOX"
1935
+ },
1936
+ "from": {
1937
+ "type": "integer",
1938
+ "minimum": 0,
1939
+ "default": 0
1940
+ },
1941
+ "size": {
1942
+ "type": "integer",
1943
+ "minimum": 1,
1944
+ "default": 10
1945
+ },
1946
+ "hydrate": {
1947
+ "type": "boolean",
1948
+ "default": false
1949
+ },
1950
+ "include_scores": {
1951
+ "type": "boolean",
1952
+ "default": false
1953
+ },
1954
+ "sort": {
1955
+ "type": "string"
1956
+ },
1957
+ "highlight": {}
1958
+ }
1959
+ },
1782
1960
  "SearchParams": {
1783
1961
  "type": "object",
1784
1962
  "required": [
@@ -1992,9 +2170,6 @@
1992
2170
  }
1993
2171
  },
1994
2172
  "servers": [
1995
- {
1996
- "url": "https://message.sls.epilot.io"
1997
- },
1998
2173
  {
1999
2174
  "url": "https://message.sls.epilot.io"
2000
2175
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/message-client",
3
- "version": "1.15.4",
3
+ "version": "1.16.0",
4
4
  "description": "API Client for epilot Message API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -72,4 +72,4 @@
72
72
  "webpack-cli": "^4.4.0"
73
73
  },
74
74
  "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
75
- }
75
+ }