@epilot/message-client 1.24.1 → 1.25.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.
- package/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +19 -0
- package/dist/openapi.d.ts +49 -1
- package/dist/openapi.json +63 -2
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={330
|
|
1
|
+
(()=>{"use strict";var e={330(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(466));s.default=t.default},466(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}:move":{"post":{"operationId":"moveThread","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"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":{}}},"/v2/message/threads/{id}/assign:users":{"post":{"operationId":"assignUsersV2","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":{"responses":{"NotFound":{"content":{"application/json":{}}},"Conflict":{"content":{"application/json":{}}},"InternalServerError":{"content":{"application/json":{}}},"BadRequest":{"content":{"application/json":{}}},"Forbidden":{"content":{"application/json":{}}}}},"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}(330),a=exports;for(var t in r)a[t]=r[t];r.__esModule&&Object.defineProperty(a,"__esModule",{value:!0})})();
|
|
@@ -533,6 +533,25 @@
|
|
|
533
533
|
"responses": {}
|
|
534
534
|
}
|
|
535
535
|
},
|
|
536
|
+
"/v2/message/threads/{id}/assign:users": {
|
|
537
|
+
"post": {
|
|
538
|
+
"operationId": "assignUsersV2",
|
|
539
|
+
"parameters": [
|
|
540
|
+
{
|
|
541
|
+
"name": "id",
|
|
542
|
+
"in": "path",
|
|
543
|
+
"required": true
|
|
544
|
+
}
|
|
545
|
+
],
|
|
546
|
+
"requestBody": {
|
|
547
|
+
"required": true,
|
|
548
|
+
"content": {
|
|
549
|
+
"application/json": {}
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
"responses": {}
|
|
553
|
+
}
|
|
554
|
+
},
|
|
536
555
|
"/v1/message/threads/{id}:pin": {
|
|
537
556
|
"post": {
|
|
538
557
|
"operationId": "pinThread",
|
package/dist/openapi.d.ts
CHANGED
|
@@ -664,7 +664,7 @@ declare namespace Components {
|
|
|
664
664
|
/**
|
|
665
665
|
* Timestamp of the event
|
|
666
666
|
* example:
|
|
667
|
-
* 2024-01-01T00:00:
|
|
667
|
+
* 2024-01-01T00:00:00.000Z
|
|
668
668
|
*/
|
|
669
669
|
timestamp: string;
|
|
670
670
|
}
|
|
@@ -738,6 +738,30 @@ declare namespace Paths {
|
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
|
+
namespace AssignUsersV2 {
|
|
742
|
+
namespace Parameters {
|
|
743
|
+
export type Id = string;
|
|
744
|
+
}
|
|
745
|
+
export interface PathParameters {
|
|
746
|
+
id: Parameters.Id;
|
|
747
|
+
}
|
|
748
|
+
export interface RequestBody {
|
|
749
|
+
/**
|
|
750
|
+
* User IDs of users to add to thread
|
|
751
|
+
*/
|
|
752
|
+
add: string[];
|
|
753
|
+
/**
|
|
754
|
+
* User IDs of users to remove from thread
|
|
755
|
+
*/
|
|
756
|
+
remove: string[];
|
|
757
|
+
}
|
|
758
|
+
namespace Responses {
|
|
759
|
+
export interface $204 {
|
|
760
|
+
}
|
|
761
|
+
export interface $403 {
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
}
|
|
741
765
|
namespace CreateDraft {
|
|
742
766
|
export type RequestBody = Components.Schemas.MessageRequestParams;
|
|
743
767
|
namespace Responses {
|
|
@@ -2838,6 +2862,17 @@ export interface OperationMethods {
|
|
|
2838
2862
|
data?: Paths.AssignUsers.RequestBody,
|
|
2839
2863
|
config?: AxiosRequestConfig
|
|
2840
2864
|
): OperationResponse<Paths.AssignUsers.Responses.$204>
|
|
2865
|
+
/**
|
|
2866
|
+
* assignUsersV2 - assignUsersV2
|
|
2867
|
+
*
|
|
2868
|
+
* Assign users to thread.
|
|
2869
|
+
*
|
|
2870
|
+
*/
|
|
2871
|
+
'assignUsersV2'(
|
|
2872
|
+
parameters?: Parameters<Paths.AssignUsersV2.PathParameters> | null,
|
|
2873
|
+
data?: Paths.AssignUsersV2.RequestBody,
|
|
2874
|
+
config?: AxiosRequestConfig
|
|
2875
|
+
): OperationResponse<Paths.AssignUsersV2.Responses.$204>
|
|
2841
2876
|
/**
|
|
2842
2877
|
* pinThread - Pin a single thread
|
|
2843
2878
|
*
|
|
@@ -3380,6 +3415,19 @@ export interface PathsDictionary {
|
|
|
3380
3415
|
config?: AxiosRequestConfig
|
|
3381
3416
|
): OperationResponse<Paths.AssignUsers.Responses.$204>
|
|
3382
3417
|
}
|
|
3418
|
+
['/v2/message/threads/{id}/assign:users']: {
|
|
3419
|
+
/**
|
|
3420
|
+
* assignUsersV2 - assignUsersV2
|
|
3421
|
+
*
|
|
3422
|
+
* Assign users to thread.
|
|
3423
|
+
*
|
|
3424
|
+
*/
|
|
3425
|
+
'post'(
|
|
3426
|
+
parameters?: Parameters<Paths.AssignUsersV2.PathParameters> | null,
|
|
3427
|
+
data?: Paths.AssignUsersV2.RequestBody,
|
|
3428
|
+
config?: AxiosRequestConfig
|
|
3429
|
+
): OperationResponse<Paths.AssignUsersV2.Responses.$204>
|
|
3430
|
+
}
|
|
3383
3431
|
['/v1/message/threads/{id}:pin']: {
|
|
3384
3432
|
/**
|
|
3385
3433
|
* pinThread - Pin a single thread
|
package/dist/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.2",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Message API",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.4.0",
|
|
6
6
|
"description": "Send and receive email messages via your epilot organization\n"
|
|
7
7
|
},
|
|
8
8
|
"security": [
|
|
@@ -1538,6 +1538,67 @@
|
|
|
1538
1538
|
}
|
|
1539
1539
|
}
|
|
1540
1540
|
},
|
|
1541
|
+
"/v2/message/threads/{id}/assign:users": {
|
|
1542
|
+
"post": {
|
|
1543
|
+
"operationId": "assignUsersV2",
|
|
1544
|
+
"summary": "assignUsersV2",
|
|
1545
|
+
"description": "Assign users to thread.\n",
|
|
1546
|
+
"tags": [
|
|
1547
|
+
"Threads"
|
|
1548
|
+
],
|
|
1549
|
+
"parameters": [
|
|
1550
|
+
{
|
|
1551
|
+
"name": "id",
|
|
1552
|
+
"description": "Thread ID",
|
|
1553
|
+
"in": "path",
|
|
1554
|
+
"required": true,
|
|
1555
|
+
"schema": {
|
|
1556
|
+
"type": "string"
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
],
|
|
1560
|
+
"requestBody": {
|
|
1561
|
+
"required": true,
|
|
1562
|
+
"content": {
|
|
1563
|
+
"application/json": {
|
|
1564
|
+
"schema": {
|
|
1565
|
+
"type": "object",
|
|
1566
|
+
"required": [
|
|
1567
|
+
"add",
|
|
1568
|
+
"remove"
|
|
1569
|
+
],
|
|
1570
|
+
"properties": {
|
|
1571
|
+
"add": {
|
|
1572
|
+
"type": "array",
|
|
1573
|
+
"description": "User IDs of users to add to thread",
|
|
1574
|
+
"items": {
|
|
1575
|
+
"type": "string",
|
|
1576
|
+
"example": "206801"
|
|
1577
|
+
}
|
|
1578
|
+
},
|
|
1579
|
+
"remove": {
|
|
1580
|
+
"type": "array",
|
|
1581
|
+
"description": "User IDs of users to remove from thread",
|
|
1582
|
+
"items": {
|
|
1583
|
+
"type": "string",
|
|
1584
|
+
"example": "206801"
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
},
|
|
1592
|
+
"responses": {
|
|
1593
|
+
"204": {
|
|
1594
|
+
"description": "Success"
|
|
1595
|
+
},
|
|
1596
|
+
"403": {
|
|
1597
|
+
"description": "Forbidden"
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
},
|
|
1541
1602
|
"/v1/message/threads/{id}:pin": {
|
|
1542
1603
|
"post": {
|
|
1543
1604
|
"operationId": "pinThread",
|
|
@@ -2479,7 +2540,7 @@
|
|
|
2479
2540
|
"timestamp": {
|
|
2480
2541
|
"type": "string",
|
|
2481
2542
|
"description": "Timestamp of the event",
|
|
2482
|
-
"example": "2024-01-01T00:00:
|
|
2543
|
+
"example": "2024-01-01T00:00:00.000Z"
|
|
2483
2544
|
}
|
|
2484
2545
|
}
|
|
2485
2546
|
},
|