@epilot/message-client 1.16.0 → 1.17.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":{}}},"/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})})();
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/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})})();
@@ -486,6 +486,30 @@
486
486
  "responses": {}
487
487
  }
488
488
  },
489
+ "/v1/message/threads/{id}:pin": {
490
+ "post": {
491
+ "operationId": "pinThread",
492
+ "parameters": [
493
+ {
494
+ "name": "id",
495
+ "in": "path",
496
+ "required": true
497
+ }
498
+ ],
499
+ "responses": {}
500
+ },
501
+ "delete": {
502
+ "operationId": "unpinThread",
503
+ "parameters": [
504
+ {
505
+ "name": "id",
506
+ "in": "path",
507
+ "required": true
508
+ }
509
+ ],
510
+ "responses": {}
511
+ }
512
+ },
489
513
  "/v1/message/drafts": {
490
514
  "post": {
491
515
  "operationId": "createDraft",
package/dist/openapi.d.ts CHANGED
@@ -1279,6 +1279,26 @@ declare namespace Paths {
1279
1279
  }
1280
1280
  }
1281
1281
  }
1282
+ namespace PinThread {
1283
+ namespace Parameters {
1284
+ export type Id = string;
1285
+ }
1286
+ export interface PathParameters {
1287
+ id: Parameters.Id;
1288
+ }
1289
+ namespace Responses {
1290
+ export interface $204 {
1291
+ }
1292
+ export interface $400 {
1293
+ }
1294
+ export interface $404 {
1295
+ }
1296
+ export interface $409 {
1297
+ }
1298
+ export interface $500 {
1299
+ }
1300
+ }
1301
+ }
1282
1302
  namespace SearchIds {
1283
1303
  export type RequestBody = Components.Schemas.SearchIDParams;
1284
1304
  namespace Responses {
@@ -1767,6 +1787,26 @@ declare namespace Paths {
1767
1787
  }
1768
1788
  }
1769
1789
  }
1790
+ namespace UnpinThread {
1791
+ namespace Parameters {
1792
+ export type Id = string;
1793
+ }
1794
+ export interface PathParameters {
1795
+ id: Parameters.Id;
1796
+ }
1797
+ namespace Responses {
1798
+ export interface $204 {
1799
+ }
1800
+ export interface $400 {
1801
+ }
1802
+ export interface $404 {
1803
+ }
1804
+ export interface $409 {
1805
+ }
1806
+ export interface $500 {
1807
+ }
1808
+ }
1809
+ }
1770
1810
  namespace UntrashMessage {
1771
1811
  namespace Parameters {
1772
1812
  export type Id = string;
@@ -2388,6 +2428,26 @@ export interface OperationMethods {
2388
2428
  data?: Paths.AssignUsers.RequestBody,
2389
2429
  config?: AxiosRequestConfig
2390
2430
  ): OperationResponse<Paths.AssignUsers.Responses.$204>
2431
+ /**
2432
+ * pinThread - Pin a single thread
2433
+ *
2434
+ * Pin a single thread
2435
+ */
2436
+ 'pinThread'(
2437
+ parameters?: Parameters<Paths.PinThread.PathParameters> | null,
2438
+ data?: any,
2439
+ config?: AxiosRequestConfig
2440
+ ): OperationResponse<Paths.PinThread.Responses.$204>
2441
+ /**
2442
+ * unpinThread - Unpin a single thread
2443
+ *
2444
+ * Unpin a single thread
2445
+ */
2446
+ 'unpinThread'(
2447
+ parameters?: Parameters<Paths.UnpinThread.PathParameters> | null,
2448
+ data?: any,
2449
+ config?: AxiosRequestConfig
2450
+ ): OperationResponse<Paths.UnpinThread.Responses.$204>
2391
2451
  /**
2392
2452
  * createDraft - createDraft
2393
2453
  *
@@ -2874,6 +2934,28 @@ export interface PathsDictionary {
2874
2934
  config?: AxiosRequestConfig
2875
2935
  ): OperationResponse<Paths.AssignUsers.Responses.$204>
2876
2936
  }
2937
+ ['/v1/message/threads/{id}:pin']: {
2938
+ /**
2939
+ * pinThread - Pin a single thread
2940
+ *
2941
+ * Pin a single thread
2942
+ */
2943
+ 'post'(
2944
+ parameters?: Parameters<Paths.PinThread.PathParameters> | null,
2945
+ data?: any,
2946
+ config?: AxiosRequestConfig
2947
+ ): OperationResponse<Paths.PinThread.Responses.$204>
2948
+ /**
2949
+ * unpinThread - Unpin a single thread
2950
+ *
2951
+ * Unpin a single thread
2952
+ */
2953
+ 'delete'(
2954
+ parameters?: Parameters<Paths.UnpinThread.PathParameters> | null,
2955
+ data?: any,
2956
+ config?: AxiosRequestConfig
2957
+ ): OperationResponse<Paths.UnpinThread.Responses.$204>
2958
+ }
2877
2959
  ['/v1/message/drafts']: {
2878
2960
  /**
2879
2961
  * createDraft - createDraft
package/dist/openapi.json CHANGED
@@ -1345,6 +1345,80 @@
1345
1345
  }
1346
1346
  }
1347
1347
  },
1348
+ "/v1/message/threads/{id}:pin": {
1349
+ "post": {
1350
+ "operationId": "pinThread",
1351
+ "summary": "Pin a single thread",
1352
+ "description": "Pin a single thread",
1353
+ "tags": [
1354
+ "Threads"
1355
+ ],
1356
+ "parameters": [
1357
+ {
1358
+ "name": "id",
1359
+ "description": "Thread ID",
1360
+ "in": "path",
1361
+ "required": true,
1362
+ "schema": {
1363
+ "type": "string"
1364
+ }
1365
+ }
1366
+ ],
1367
+ "responses": {
1368
+ "204": {
1369
+ "description": "Success"
1370
+ },
1371
+ "400": {
1372
+ "description": "Bad request"
1373
+ },
1374
+ "404": {
1375
+ "description": "Thread not found"
1376
+ },
1377
+ "409": {
1378
+ "description": "Concurrent update error"
1379
+ },
1380
+ "500": {
1381
+ "description": "Internal server error"
1382
+ }
1383
+ }
1384
+ },
1385
+ "delete": {
1386
+ "operationId": "unpinThread",
1387
+ "summary": "Unpin a single thread",
1388
+ "description": "Unpin a single thread",
1389
+ "tags": [
1390
+ "Threads"
1391
+ ],
1392
+ "parameters": [
1393
+ {
1394
+ "name": "id",
1395
+ "description": "Thread ID",
1396
+ "in": "path",
1397
+ "required": true,
1398
+ "schema": {
1399
+ "type": "string"
1400
+ }
1401
+ }
1402
+ ],
1403
+ "responses": {
1404
+ "204": {
1405
+ "description": "Success"
1406
+ },
1407
+ "400": {
1408
+ "description": "Bad request"
1409
+ },
1410
+ "404": {
1411
+ "description": "Thread not found"
1412
+ },
1413
+ "409": {
1414
+ "description": "Concurrent update error"
1415
+ },
1416
+ "500": {
1417
+ "description": "Internal server error"
1418
+ }
1419
+ }
1420
+ }
1421
+ },
1348
1422
  "/v1/message/drafts": {
1349
1423
  "post": {
1350
1424
  "operationId": "createDraft",
@@ -2170,6 +2244,9 @@
2170
2244
  }
2171
2245
  },
2172
2246
  "servers": [
2247
+ {
2248
+ "url": "https://message.sls.epilot.io"
2249
+ },
2173
2250
  {
2174
2251
  "url": "https://message.sls.epilot.io"
2175
2252
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/message-client",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
4
4
  "description": "API Client for epilot Message API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",