@epilot/message-client 1.15.1 → 1.15.3
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/README.md +2 -2
- package/dist/client.d.ts +0 -0
- package/dist/client.js +0 -0
- package/dist/definition.d.ts +0 -0
- package/dist/definition.js +1 -1
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/openapi-runtime.json +102 -0
- package/dist/openapi.d.ts +303 -37
- package/dist/openapi.json +300 -7
- package/package.json +4 -4
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
API Client for epilot [Message API](https://docs.epilot.io/api/message).
|
|
9
9
|
|
|
10
|
-
Uses [`openapi-client-axios`](https://github.com/
|
|
10
|
+
Uses [`openapi-client-axios`](https://github.com/openapistack/openapi-client-axios)
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
@@ -86,4 +86,4 @@ const sendResponse = await messageClient.sendMessage(null, {
|
|
|
86
86
|
|
|
87
87
|
## Documentation
|
|
88
88
|
|
|
89
|
-
https://docs.epilot.io/docs/messaging/message-api
|
|
89
|
+
https://docs.epilot.io/docs/messaging/message-api
|
package/dist/client.d.ts
CHANGED
|
File without changes
|
package/dist/client.js
CHANGED
|
File without changes
|
package/dist/definition.d.ts
CHANGED
|
File without changes
|
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":{}}},"/v1/message/messages/{id}/unread":{"post":{"operationId":"markUnreadMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads:search":{"post":{"operationId":"searchThreads","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}/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/{id}/read":{"post":{"operationId":"markReadThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}/unread":{"post":{"operationId":"markUnreadThread","parameters":[{"name":"id","in":"path","required":true}],"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":{}}},"/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}/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/{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})})();
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
|
@@ -89,6 +89,25 @@
|
|
|
89
89
|
"responses": {}
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
|
+
"/v2/message/messages/{id}/read": {
|
|
93
|
+
"post": {
|
|
94
|
+
"operationId": "markReadMessageV2",
|
|
95
|
+
"parameters": [
|
|
96
|
+
{
|
|
97
|
+
"name": "id",
|
|
98
|
+
"in": "path",
|
|
99
|
+
"required": true
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"requestBody": {
|
|
103
|
+
"required": true,
|
|
104
|
+
"content": {
|
|
105
|
+
"application/json": {}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"responses": {}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
92
111
|
"/v1/message/messages/{id}/unread": {
|
|
93
112
|
"post": {
|
|
94
113
|
"operationId": "markUnreadMessage",
|
|
@@ -102,6 +121,25 @@
|
|
|
102
121
|
"responses": {}
|
|
103
122
|
}
|
|
104
123
|
},
|
|
124
|
+
"/v2/message/messages/{id}/unread": {
|
|
125
|
+
"post": {
|
|
126
|
+
"operationId": "markUnreadMessageV2",
|
|
127
|
+
"parameters": [
|
|
128
|
+
{
|
|
129
|
+
"name": "id",
|
|
130
|
+
"in": "path",
|
|
131
|
+
"required": true
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"requestBody": {
|
|
135
|
+
"required": true,
|
|
136
|
+
"content": {
|
|
137
|
+
"application/json": {}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"responses": {}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
105
143
|
"/v1/message/threads:search": {
|
|
106
144
|
"post": {
|
|
107
145
|
"operationId": "searchThreads",
|
|
@@ -132,6 +170,32 @@
|
|
|
132
170
|
"responses": {}
|
|
133
171
|
}
|
|
134
172
|
},
|
|
173
|
+
"/v1/message/threads/{id}:markAsDone": {
|
|
174
|
+
"post": {
|
|
175
|
+
"operationId": "markThreadAsDone",
|
|
176
|
+
"parameters": [
|
|
177
|
+
{
|
|
178
|
+
"name": "id",
|
|
179
|
+
"in": "path",
|
|
180
|
+
"required": true
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"responses": {}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"/v1/message/threads/{id}:markAsOpen": {
|
|
187
|
+
"post": {
|
|
188
|
+
"operationId": "markThreadAsOpen",
|
|
189
|
+
"parameters": [
|
|
190
|
+
{
|
|
191
|
+
"name": "id",
|
|
192
|
+
"in": "path",
|
|
193
|
+
"required": true
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"responses": {}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
135
199
|
"/v1/message/threads/{id}/trash": {
|
|
136
200
|
"post": {
|
|
137
201
|
"operationId": "trashThread",
|
|
@@ -171,6 +235,25 @@
|
|
|
171
235
|
"responses": {}
|
|
172
236
|
}
|
|
173
237
|
},
|
|
238
|
+
"/v2/message/threads/{id}/read": {
|
|
239
|
+
"post": {
|
|
240
|
+
"operationId": "markReadThreadV2",
|
|
241
|
+
"parameters": [
|
|
242
|
+
{
|
|
243
|
+
"name": "id",
|
|
244
|
+
"in": "path",
|
|
245
|
+
"required": true
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"requestBody": {
|
|
249
|
+
"required": true,
|
|
250
|
+
"content": {
|
|
251
|
+
"application/json": {}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"responses": {}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
174
257
|
"/v1/message/threads/{id}/unread": {
|
|
175
258
|
"post": {
|
|
176
259
|
"operationId": "markUnreadThread",
|
|
@@ -184,6 +267,25 @@
|
|
|
184
267
|
"responses": {}
|
|
185
268
|
}
|
|
186
269
|
},
|
|
270
|
+
"/v2/message/threads/{id}/unread": {
|
|
271
|
+
"post": {
|
|
272
|
+
"operationId": "markUnreadThreadV2",
|
|
273
|
+
"parameters": [
|
|
274
|
+
{
|
|
275
|
+
"name": "id",
|
|
276
|
+
"in": "path",
|
|
277
|
+
"required": true
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"requestBody": {
|
|
281
|
+
"required": true,
|
|
282
|
+
"content": {
|
|
283
|
+
"application/json": {}
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"responses": {}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
187
289
|
"/v1/message/threads/{id}/assign": {
|
|
188
290
|
"post": {
|
|
189
291
|
"operationId": "assignThread",
|
package/dist/openapi.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ declare namespace Components {
|
|
|
62
62
|
*/
|
|
63
63
|
_title: string;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Organization ID the entity belongs to
|
|
66
66
|
* example:
|
|
67
67
|
* 206801
|
|
68
68
|
*/
|
|
@@ -112,6 +112,10 @@ declare namespace Components {
|
|
|
112
112
|
* To indicate this file relation is message attachment. If false then this file will not be sent and simply kept as a file relation.
|
|
113
113
|
*/
|
|
114
114
|
is_message_attachment?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* To indicate this file relation may be signature attachment. If true then this file will be sent as signature attachment and not related to any entity.
|
|
117
|
+
*/
|
|
118
|
+
may_be_signature_attachment?: boolean;
|
|
115
119
|
/**
|
|
116
120
|
* Content ID (for inline)
|
|
117
121
|
* example:
|
|
@@ -137,7 +141,7 @@ declare namespace Components {
|
|
|
137
141
|
*/
|
|
138
142
|
message_id?: string;
|
|
139
143
|
/**
|
|
140
|
-
*
|
|
144
|
+
* User ID of user sends the message.
|
|
141
145
|
* example:
|
|
142
146
|
* 206801
|
|
143
147
|
*/
|
|
@@ -190,11 +194,11 @@ declare namespace Components {
|
|
|
190
194
|
*/
|
|
191
195
|
in_reply_to?: string;
|
|
192
196
|
/**
|
|
193
|
-
*
|
|
197
|
+
* User ID of user read the message.
|
|
194
198
|
*/
|
|
195
199
|
user_read_message?: string[];
|
|
196
200
|
/**
|
|
197
|
-
*
|
|
201
|
+
* Organization ID of organization read the message.
|
|
198
202
|
*/
|
|
199
203
|
org_read_message?: string[];
|
|
200
204
|
/**
|
|
@@ -234,7 +238,7 @@ declare namespace Components {
|
|
|
234
238
|
*/
|
|
235
239
|
topic: string;
|
|
236
240
|
/**
|
|
237
|
-
*
|
|
241
|
+
* User ID of who the message is assigned to. Default is the user who sends message.
|
|
238
242
|
*/
|
|
239
243
|
assigned_to?: string[];
|
|
240
244
|
};
|
|
@@ -297,7 +301,7 @@ declare namespace Components {
|
|
|
297
301
|
*/
|
|
298
302
|
_title: string;
|
|
299
303
|
/**
|
|
300
|
-
*
|
|
304
|
+
* Organization ID the entity belongs to
|
|
301
305
|
* example:
|
|
302
306
|
* 206801
|
|
303
307
|
*/
|
|
@@ -336,7 +340,7 @@ declare namespace Components {
|
|
|
336
340
|
*/
|
|
337
341
|
message_id?: string;
|
|
338
342
|
/**
|
|
339
|
-
*
|
|
343
|
+
* User ID of user sends the message.
|
|
340
344
|
* example:
|
|
341
345
|
* 206801
|
|
342
346
|
*/
|
|
@@ -389,11 +393,11 @@ declare namespace Components {
|
|
|
389
393
|
*/
|
|
390
394
|
in_reply_to?: string;
|
|
391
395
|
/**
|
|
392
|
-
*
|
|
396
|
+
* User ID of user read the message.
|
|
393
397
|
*/
|
|
394
398
|
user_read_message?: string[];
|
|
395
399
|
/**
|
|
396
|
-
*
|
|
400
|
+
* Organization ID of organization read the message.
|
|
397
401
|
*/
|
|
398
402
|
org_read_message?: string[];
|
|
399
403
|
/**
|
|
@@ -422,6 +426,21 @@ declare namespace Components {
|
|
|
422
426
|
*/
|
|
423
427
|
html_download_url?: string;
|
|
424
428
|
}
|
|
429
|
+
export interface ReadMessagePayload {
|
|
430
|
+
/**
|
|
431
|
+
* The scopes to be used when marking an item as read or unread. The read status will be synced for all provided scopes.
|
|
432
|
+
* example:
|
|
433
|
+
* [
|
|
434
|
+
* "organization",
|
|
435
|
+
* "user"
|
|
436
|
+
* ]
|
|
437
|
+
*/
|
|
438
|
+
scopes: /* Who is marking an item as read or unread. */ ReadingScope[];
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Who is marking an item as read or unread.
|
|
442
|
+
*/
|
|
443
|
+
export type ReadingScope = "organization" | "user";
|
|
425
444
|
export interface SearchParams {
|
|
426
445
|
/**
|
|
427
446
|
* Lucene query syntax supported with ElasticSearch
|
|
@@ -431,6 +450,7 @@ declare namespace Components {
|
|
|
431
450
|
q: string;
|
|
432
451
|
from?: number;
|
|
433
452
|
size?: number;
|
|
453
|
+
hydrate?: boolean;
|
|
434
454
|
}
|
|
435
455
|
/**
|
|
436
456
|
* Thread properties depend on API caller as it's not pre-defined. We do recommend having at least `topic` property for categorizing.
|
|
@@ -443,13 +463,19 @@ declare namespace Components {
|
|
|
443
463
|
*/
|
|
444
464
|
topic: string;
|
|
445
465
|
/**
|
|
446
|
-
*
|
|
466
|
+
* User ID of who the message is assigned to. Default is the user who sends message.
|
|
447
467
|
*/
|
|
448
468
|
assigned_to?: string[];
|
|
449
469
|
/**
|
|
450
|
-
*
|
|
470
|
+
* Organization ID of organization read the message.
|
|
451
471
|
*/
|
|
452
472
|
org_read_message?: string[];
|
|
473
|
+
/**
|
|
474
|
+
* Whether the thread is marked as Done
|
|
475
|
+
* example:
|
|
476
|
+
* false
|
|
477
|
+
*/
|
|
478
|
+
done?: boolean;
|
|
453
479
|
/**
|
|
454
480
|
* Latest message of thread
|
|
455
481
|
*/
|
|
@@ -491,6 +517,12 @@ declare namespace Paths {
|
|
|
491
517
|
* 3f34ce73-089c-4d45-a5ee-c161234e41c3
|
|
492
518
|
*/
|
|
493
519
|
entity_id?: string;
|
|
520
|
+
/**
|
|
521
|
+
* Organization ID
|
|
522
|
+
* example:
|
|
523
|
+
* 206801
|
|
524
|
+
*/
|
|
525
|
+
org_id?: string;
|
|
494
526
|
/**
|
|
495
527
|
* To indicate this is main entity
|
|
496
528
|
* example:
|
|
@@ -543,7 +575,7 @@ declare namespace Paths {
|
|
|
543
575
|
*/
|
|
544
576
|
_title: string;
|
|
545
577
|
/**
|
|
546
|
-
*
|
|
578
|
+
* Organization ID the entity belongs to
|
|
547
579
|
* example:
|
|
548
580
|
* 206801
|
|
549
581
|
*/
|
|
@@ -582,7 +614,7 @@ declare namespace Paths {
|
|
|
582
614
|
*/
|
|
583
615
|
message_id?: string;
|
|
584
616
|
/**
|
|
585
|
-
*
|
|
617
|
+
* User ID of user sends the message.
|
|
586
618
|
* example:
|
|
587
619
|
* 206801
|
|
588
620
|
*/
|
|
@@ -635,11 +667,11 @@ declare namespace Paths {
|
|
|
635
667
|
*/
|
|
636
668
|
in_reply_to?: string;
|
|
637
669
|
/**
|
|
638
|
-
*
|
|
670
|
+
* User ID of user read the message.
|
|
639
671
|
*/
|
|
640
672
|
user_read_message?: string[];
|
|
641
673
|
/**
|
|
642
|
-
*
|
|
674
|
+
* Organization ID of organization read the message.
|
|
643
675
|
*/
|
|
644
676
|
org_read_message?: string[];
|
|
645
677
|
/**
|
|
@@ -718,7 +750,7 @@ declare namespace Paths {
|
|
|
718
750
|
*/
|
|
719
751
|
_title: string;
|
|
720
752
|
/**
|
|
721
|
-
*
|
|
753
|
+
* Organization ID the entity belongs to
|
|
722
754
|
* example:
|
|
723
755
|
* 206801
|
|
724
756
|
*/
|
|
@@ -757,7 +789,7 @@ declare namespace Paths {
|
|
|
757
789
|
*/
|
|
758
790
|
message_id?: string;
|
|
759
791
|
/**
|
|
760
|
-
*
|
|
792
|
+
* User ID of user sends the message.
|
|
761
793
|
* example:
|
|
762
794
|
* 206801
|
|
763
795
|
*/
|
|
@@ -810,11 +842,11 @@ declare namespace Paths {
|
|
|
810
842
|
*/
|
|
811
843
|
in_reply_to?: string;
|
|
812
844
|
/**
|
|
813
|
-
*
|
|
845
|
+
* User ID of user read the message.
|
|
814
846
|
*/
|
|
815
847
|
user_read_message?: string[];
|
|
816
848
|
/**
|
|
817
|
-
*
|
|
849
|
+
* Organization ID of organization read the message.
|
|
818
850
|
*/
|
|
819
851
|
org_read_message?: string[];
|
|
820
852
|
/**
|
|
@@ -867,7 +899,7 @@ declare namespace Paths {
|
|
|
867
899
|
*/
|
|
868
900
|
_title: string;
|
|
869
901
|
/**
|
|
870
|
-
*
|
|
902
|
+
* Organization ID the entity belongs to
|
|
871
903
|
* example:
|
|
872
904
|
* 206801
|
|
873
905
|
*/
|
|
@@ -906,7 +938,7 @@ declare namespace Paths {
|
|
|
906
938
|
*/
|
|
907
939
|
message_id?: string;
|
|
908
940
|
/**
|
|
909
|
-
*
|
|
941
|
+
* User ID of user sends the message.
|
|
910
942
|
* example:
|
|
911
943
|
* 206801
|
|
912
944
|
*/
|
|
@@ -959,11 +991,11 @@ declare namespace Paths {
|
|
|
959
991
|
*/
|
|
960
992
|
in_reply_to?: string;
|
|
961
993
|
/**
|
|
962
|
-
*
|
|
994
|
+
* User ID of user read the message.
|
|
963
995
|
*/
|
|
964
996
|
user_read_message?: string[];
|
|
965
997
|
/**
|
|
966
|
-
*
|
|
998
|
+
* Organization ID of organization read the message.
|
|
967
999
|
*/
|
|
968
1000
|
org_read_message?: string[];
|
|
969
1001
|
/**
|
|
@@ -1010,6 +1042,21 @@ declare namespace Paths {
|
|
|
1010
1042
|
}
|
|
1011
1043
|
}
|
|
1012
1044
|
}
|
|
1045
|
+
namespace MarkReadMessageV2 {
|
|
1046
|
+
namespace Parameters {
|
|
1047
|
+
export type Id = string;
|
|
1048
|
+
}
|
|
1049
|
+
export interface PathParameters {
|
|
1050
|
+
id: Parameters.Id;
|
|
1051
|
+
}
|
|
1052
|
+
export type RequestBody = Components.Schemas.ReadMessagePayload;
|
|
1053
|
+
namespace Responses {
|
|
1054
|
+
export interface $204 {
|
|
1055
|
+
}
|
|
1056
|
+
export interface $403 {
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1013
1060
|
namespace MarkReadThread {
|
|
1014
1061
|
namespace Parameters {
|
|
1015
1062
|
export type Id = string;
|
|
@@ -1024,6 +1071,49 @@ declare namespace Paths {
|
|
|
1024
1071
|
}
|
|
1025
1072
|
}
|
|
1026
1073
|
}
|
|
1074
|
+
namespace MarkReadThreadV2 {
|
|
1075
|
+
namespace Parameters {
|
|
1076
|
+
export type Id = string;
|
|
1077
|
+
}
|
|
1078
|
+
export interface PathParameters {
|
|
1079
|
+
id: Parameters.Id;
|
|
1080
|
+
}
|
|
1081
|
+
export type RequestBody = Components.Schemas.ReadMessagePayload;
|
|
1082
|
+
namespace Responses {
|
|
1083
|
+
export interface $204 {
|
|
1084
|
+
}
|
|
1085
|
+
export interface $403 {
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
namespace MarkThreadAsDone {
|
|
1090
|
+
namespace Parameters {
|
|
1091
|
+
export type Id = string;
|
|
1092
|
+
}
|
|
1093
|
+
export interface PathParameters {
|
|
1094
|
+
id: Parameters.Id;
|
|
1095
|
+
}
|
|
1096
|
+
namespace Responses {
|
|
1097
|
+
export interface $204 {
|
|
1098
|
+
}
|
|
1099
|
+
export interface $400 {
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
namespace MarkThreadAsOpen {
|
|
1104
|
+
namespace Parameters {
|
|
1105
|
+
export type Id = string;
|
|
1106
|
+
}
|
|
1107
|
+
export interface PathParameters {
|
|
1108
|
+
id: Parameters.Id;
|
|
1109
|
+
}
|
|
1110
|
+
namespace Responses {
|
|
1111
|
+
export interface $204 {
|
|
1112
|
+
}
|
|
1113
|
+
export interface $400 {
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1027
1117
|
namespace MarkUnreadMessage {
|
|
1028
1118
|
namespace Parameters {
|
|
1029
1119
|
export type Id = string;
|
|
@@ -1038,6 +1128,21 @@ declare namespace Paths {
|
|
|
1038
1128
|
}
|
|
1039
1129
|
}
|
|
1040
1130
|
}
|
|
1131
|
+
namespace MarkUnreadMessageV2 {
|
|
1132
|
+
namespace Parameters {
|
|
1133
|
+
export type Id = string;
|
|
1134
|
+
}
|
|
1135
|
+
export interface PathParameters {
|
|
1136
|
+
id: Parameters.Id;
|
|
1137
|
+
}
|
|
1138
|
+
export type RequestBody = Components.Schemas.ReadMessagePayload;
|
|
1139
|
+
namespace Responses {
|
|
1140
|
+
export interface $204 {
|
|
1141
|
+
}
|
|
1142
|
+
export interface $403 {
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1041
1146
|
namespace MarkUnreadThread {
|
|
1042
1147
|
namespace Parameters {
|
|
1043
1148
|
export type Id = string;
|
|
@@ -1052,6 +1157,21 @@ declare namespace Paths {
|
|
|
1052
1157
|
}
|
|
1053
1158
|
}
|
|
1054
1159
|
}
|
|
1160
|
+
namespace MarkUnreadThreadV2 {
|
|
1161
|
+
namespace Parameters {
|
|
1162
|
+
export type Id = string;
|
|
1163
|
+
}
|
|
1164
|
+
export interface PathParameters {
|
|
1165
|
+
id: Parameters.Id;
|
|
1166
|
+
}
|
|
1167
|
+
export type RequestBody = Components.Schemas.ReadMessagePayload;
|
|
1168
|
+
namespace Responses {
|
|
1169
|
+
export interface $204 {
|
|
1170
|
+
}
|
|
1171
|
+
export interface $403 {
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1055
1175
|
namespace SearchThreads {
|
|
1056
1176
|
export type RequestBody = Components.Schemas.SearchParams;
|
|
1057
1177
|
namespace Responses {
|
|
@@ -1077,7 +1197,7 @@ declare namespace Paths {
|
|
|
1077
1197
|
*/
|
|
1078
1198
|
_title: string;
|
|
1079
1199
|
/**
|
|
1080
|
-
*
|
|
1200
|
+
* Organization ID the entity belongs to
|
|
1081
1201
|
* example:
|
|
1082
1202
|
* 206801
|
|
1083
1203
|
*/
|
|
@@ -1116,13 +1236,19 @@ declare namespace Paths {
|
|
|
1116
1236
|
*/
|
|
1117
1237
|
topic: string;
|
|
1118
1238
|
/**
|
|
1119
|
-
*
|
|
1239
|
+
* User ID of who the message is assigned to. Default is the user who sends message.
|
|
1120
1240
|
*/
|
|
1121
1241
|
assigned_to?: string[];
|
|
1122
1242
|
/**
|
|
1123
|
-
*
|
|
1243
|
+
* Organization ID of organization read the message.
|
|
1124
1244
|
*/
|
|
1125
1245
|
org_read_message?: string[];
|
|
1246
|
+
/**
|
|
1247
|
+
* Whether the thread is marked as Done
|
|
1248
|
+
* example:
|
|
1249
|
+
* false
|
|
1250
|
+
*/
|
|
1251
|
+
done?: boolean;
|
|
1126
1252
|
latest_message?: Components.Schemas.Message;
|
|
1127
1253
|
latest_trash_message?: Components.Schemas.Message;
|
|
1128
1254
|
/**
|
|
@@ -1151,7 +1277,7 @@ declare namespace Paths {
|
|
|
1151
1277
|
*/
|
|
1152
1278
|
_title: string;
|
|
1153
1279
|
/**
|
|
1154
|
-
*
|
|
1280
|
+
* Organization ID the entity belongs to
|
|
1155
1281
|
* example:
|
|
1156
1282
|
* 206801
|
|
1157
1283
|
*/
|
|
@@ -1190,7 +1316,7 @@ declare namespace Paths {
|
|
|
1190
1316
|
*/
|
|
1191
1317
|
message_id?: string;
|
|
1192
1318
|
/**
|
|
1193
|
-
*
|
|
1319
|
+
* User ID of user sends the message.
|
|
1194
1320
|
* example:
|
|
1195
1321
|
* 206801
|
|
1196
1322
|
*/
|
|
@@ -1243,11 +1369,11 @@ declare namespace Paths {
|
|
|
1243
1369
|
*/
|
|
1244
1370
|
in_reply_to?: string;
|
|
1245
1371
|
/**
|
|
1246
|
-
*
|
|
1372
|
+
* User ID of user read the message.
|
|
1247
1373
|
*/
|
|
1248
1374
|
user_read_message?: string[];
|
|
1249
1375
|
/**
|
|
1250
|
-
*
|
|
1376
|
+
* Organization ID of organization read the message.
|
|
1251
1377
|
*/
|
|
1252
1378
|
org_read_message?: string[];
|
|
1253
1379
|
/**
|
|
@@ -1385,7 +1511,7 @@ declare namespace Paths {
|
|
|
1385
1511
|
*/
|
|
1386
1512
|
_title: string;
|
|
1387
1513
|
/**
|
|
1388
|
-
*
|
|
1514
|
+
* Organization ID the entity belongs to
|
|
1389
1515
|
* example:
|
|
1390
1516
|
* 206801
|
|
1391
1517
|
*/
|
|
@@ -1424,7 +1550,7 @@ declare namespace Paths {
|
|
|
1424
1550
|
*/
|
|
1425
1551
|
message_id?: string;
|
|
1426
1552
|
/**
|
|
1427
|
-
*
|
|
1553
|
+
* User ID of user sends the message.
|
|
1428
1554
|
* example:
|
|
1429
1555
|
* 206801
|
|
1430
1556
|
*/
|
|
@@ -1477,11 +1603,11 @@ declare namespace Paths {
|
|
|
1477
1603
|
*/
|
|
1478
1604
|
in_reply_to?: string;
|
|
1479
1605
|
/**
|
|
1480
|
-
*
|
|
1606
|
+
* User ID of user read the message.
|
|
1481
1607
|
*/
|
|
1482
1608
|
user_read_message?: string[];
|
|
1483
1609
|
/**
|
|
1484
|
-
*
|
|
1610
|
+
* Organization ID of organization read the message.
|
|
1485
1611
|
*/
|
|
1486
1612
|
org_read_message?: string[];
|
|
1487
1613
|
/**
|
|
@@ -1521,7 +1647,7 @@ declare namespace Paths {
|
|
|
1521
1647
|
*/
|
|
1522
1648
|
_title: string;
|
|
1523
1649
|
/**
|
|
1524
|
-
*
|
|
1650
|
+
* Organization ID the entity belongs to
|
|
1525
1651
|
* example:
|
|
1526
1652
|
* 206801
|
|
1527
1653
|
*/
|
|
@@ -1560,13 +1686,19 @@ declare namespace Paths {
|
|
|
1560
1686
|
*/
|
|
1561
1687
|
topic: string;
|
|
1562
1688
|
/**
|
|
1563
|
-
*
|
|
1689
|
+
* User ID of who the message is assigned to. Default is the user who sends message.
|
|
1564
1690
|
*/
|
|
1565
1691
|
assigned_to?: string[];
|
|
1566
1692
|
/**
|
|
1567
|
-
*
|
|
1693
|
+
* Organization ID of organization read the message.
|
|
1568
1694
|
*/
|
|
1569
1695
|
org_read_message?: string[];
|
|
1696
|
+
/**
|
|
1697
|
+
* Whether the thread is marked as Done
|
|
1698
|
+
* example:
|
|
1699
|
+
* false
|
|
1700
|
+
*/
|
|
1701
|
+
done?: boolean;
|
|
1570
1702
|
latest_message?: Components.Schemas.Message;
|
|
1571
1703
|
latest_trash_message?: Components.Schemas.Message;
|
|
1572
1704
|
/**
|
|
@@ -1653,6 +1785,16 @@ export interface OperationMethods {
|
|
|
1653
1785
|
data?: any,
|
|
1654
1786
|
config?: AxiosRequestConfig
|
|
1655
1787
|
): OperationResponse<Paths.MarkReadMessage.Responses.$204>
|
|
1788
|
+
/**
|
|
1789
|
+
* markReadMessageV2 - markReadMessageV2
|
|
1790
|
+
*
|
|
1791
|
+
* Mark message as read within a scope
|
|
1792
|
+
*/
|
|
1793
|
+
'markReadMessageV2'(
|
|
1794
|
+
parameters?: Parameters<Paths.MarkReadMessageV2.PathParameters> | null,
|
|
1795
|
+
data?: Paths.MarkReadMessageV2.RequestBody,
|
|
1796
|
+
config?: AxiosRequestConfig
|
|
1797
|
+
): OperationResponse<Paths.MarkReadMessageV2.Responses.$204>
|
|
1656
1798
|
/**
|
|
1657
1799
|
* markUnreadMessage - markUnreadMessage
|
|
1658
1800
|
*
|
|
@@ -1663,6 +1805,16 @@ export interface OperationMethods {
|
|
|
1663
1805
|
data?: any,
|
|
1664
1806
|
config?: AxiosRequestConfig
|
|
1665
1807
|
): OperationResponse<Paths.MarkUnreadMessage.Responses.$204>
|
|
1808
|
+
/**
|
|
1809
|
+
* markUnreadMessageV2 - markUnreadMessageV2
|
|
1810
|
+
*
|
|
1811
|
+
* Mark message as unread within a scope
|
|
1812
|
+
*/
|
|
1813
|
+
'markUnreadMessageV2'(
|
|
1814
|
+
parameters?: Parameters<Paths.MarkUnreadMessageV2.PathParameters> | null,
|
|
1815
|
+
data?: Paths.MarkUnreadMessageV2.RequestBody,
|
|
1816
|
+
config?: AxiosRequestConfig
|
|
1817
|
+
): OperationResponse<Paths.MarkUnreadMessageV2.Responses.$204>
|
|
1666
1818
|
/**
|
|
1667
1819
|
* searchThreads - searchThreads
|
|
1668
1820
|
*
|
|
@@ -1698,6 +1850,26 @@ export interface OperationMethods {
|
|
|
1698
1850
|
data?: any,
|
|
1699
1851
|
config?: AxiosRequestConfig
|
|
1700
1852
|
): OperationResponse<Paths.DeleteThread.Responses.$204>
|
|
1853
|
+
/**
|
|
1854
|
+
* markThreadAsDone - markThreadAsDone
|
|
1855
|
+
*
|
|
1856
|
+
* Mark thread as done
|
|
1857
|
+
*/
|
|
1858
|
+
'markThreadAsDone'(
|
|
1859
|
+
parameters?: Parameters<Paths.MarkThreadAsDone.PathParameters> | null,
|
|
1860
|
+
data?: any,
|
|
1861
|
+
config?: AxiosRequestConfig
|
|
1862
|
+
): OperationResponse<Paths.MarkThreadAsDone.Responses.$204>
|
|
1863
|
+
/**
|
|
1864
|
+
* markThreadAsOpen - markThreadAsOpen
|
|
1865
|
+
*
|
|
1866
|
+
* Mark thread as open
|
|
1867
|
+
*/
|
|
1868
|
+
'markThreadAsOpen'(
|
|
1869
|
+
parameters?: Parameters<Paths.MarkThreadAsOpen.PathParameters> | null,
|
|
1870
|
+
data?: any,
|
|
1871
|
+
config?: AxiosRequestConfig
|
|
1872
|
+
): OperationResponse<Paths.MarkThreadAsOpen.Responses.$204>
|
|
1701
1873
|
/**
|
|
1702
1874
|
* trashThread - trashThread
|
|
1703
1875
|
*
|
|
@@ -1728,6 +1900,16 @@ export interface OperationMethods {
|
|
|
1728
1900
|
data?: any,
|
|
1729
1901
|
config?: AxiosRequestConfig
|
|
1730
1902
|
): OperationResponse<Paths.MarkReadThread.Responses.$204>
|
|
1903
|
+
/**
|
|
1904
|
+
* markReadThreadV2 - markReadThreadV2
|
|
1905
|
+
*
|
|
1906
|
+
* Mark thread as read within a scope
|
|
1907
|
+
*/
|
|
1908
|
+
'markReadThreadV2'(
|
|
1909
|
+
parameters?: Parameters<Paths.MarkReadThreadV2.PathParameters> | null,
|
|
1910
|
+
data?: Paths.MarkReadThreadV2.RequestBody,
|
|
1911
|
+
config?: AxiosRequestConfig
|
|
1912
|
+
): OperationResponse<Paths.MarkReadThreadV2.Responses.$204>
|
|
1731
1913
|
/**
|
|
1732
1914
|
* markUnreadThread - markUnreadThread
|
|
1733
1915
|
*
|
|
@@ -1738,6 +1920,16 @@ export interface OperationMethods {
|
|
|
1738
1920
|
data?: any,
|
|
1739
1921
|
config?: AxiosRequestConfig
|
|
1740
1922
|
): OperationResponse<Paths.MarkUnreadThread.Responses.$204>
|
|
1923
|
+
/**
|
|
1924
|
+
* markUnreadThreadV2 - markUnreadThreadV2
|
|
1925
|
+
*
|
|
1926
|
+
* Mark thread as unread within a scope
|
|
1927
|
+
*/
|
|
1928
|
+
'markUnreadThreadV2'(
|
|
1929
|
+
parameters?: Parameters<Paths.MarkUnreadThreadV2.PathParameters> | null,
|
|
1930
|
+
data?: Paths.MarkUnreadThreadV2.RequestBody,
|
|
1931
|
+
config?: AxiosRequestConfig
|
|
1932
|
+
): OperationResponse<Paths.MarkUnreadThreadV2.Responses.$204>
|
|
1741
1933
|
/**
|
|
1742
1934
|
* assignThread - assignThread
|
|
1743
1935
|
*
|
|
@@ -1893,6 +2085,18 @@ export interface PathsDictionary {
|
|
|
1893
2085
|
config?: AxiosRequestConfig
|
|
1894
2086
|
): OperationResponse<Paths.MarkReadMessage.Responses.$204>
|
|
1895
2087
|
}
|
|
2088
|
+
['/v2/message/messages/{id}/read']: {
|
|
2089
|
+
/**
|
|
2090
|
+
* markReadMessageV2 - markReadMessageV2
|
|
2091
|
+
*
|
|
2092
|
+
* Mark message as read within a scope
|
|
2093
|
+
*/
|
|
2094
|
+
'post'(
|
|
2095
|
+
parameters?: Parameters<Paths.MarkReadMessageV2.PathParameters> | null,
|
|
2096
|
+
data?: Paths.MarkReadMessageV2.RequestBody,
|
|
2097
|
+
config?: AxiosRequestConfig
|
|
2098
|
+
): OperationResponse<Paths.MarkReadMessageV2.Responses.$204>
|
|
2099
|
+
}
|
|
1896
2100
|
['/v1/message/messages/{id}/unread']: {
|
|
1897
2101
|
/**
|
|
1898
2102
|
* markUnreadMessage - markUnreadMessage
|
|
@@ -1905,6 +2109,18 @@ export interface PathsDictionary {
|
|
|
1905
2109
|
config?: AxiosRequestConfig
|
|
1906
2110
|
): OperationResponse<Paths.MarkUnreadMessage.Responses.$204>
|
|
1907
2111
|
}
|
|
2112
|
+
['/v2/message/messages/{id}/unread']: {
|
|
2113
|
+
/**
|
|
2114
|
+
* markUnreadMessageV2 - markUnreadMessageV2
|
|
2115
|
+
*
|
|
2116
|
+
* Mark message as unread within a scope
|
|
2117
|
+
*/
|
|
2118
|
+
'post'(
|
|
2119
|
+
parameters?: Parameters<Paths.MarkUnreadMessageV2.PathParameters> | null,
|
|
2120
|
+
data?: Paths.MarkUnreadMessageV2.RequestBody,
|
|
2121
|
+
config?: AxiosRequestConfig
|
|
2122
|
+
): OperationResponse<Paths.MarkUnreadMessageV2.Responses.$204>
|
|
2123
|
+
}
|
|
1908
2124
|
['/v1/message/threads:search']: {
|
|
1909
2125
|
/**
|
|
1910
2126
|
* searchThreads - searchThreads
|
|
@@ -1946,6 +2162,30 @@ export interface PathsDictionary {
|
|
|
1946
2162
|
config?: AxiosRequestConfig
|
|
1947
2163
|
): OperationResponse<Paths.DeleteThread.Responses.$204>
|
|
1948
2164
|
}
|
|
2165
|
+
['/v1/message/threads/{id}:markAsDone']: {
|
|
2166
|
+
/**
|
|
2167
|
+
* markThreadAsDone - markThreadAsDone
|
|
2168
|
+
*
|
|
2169
|
+
* Mark thread as done
|
|
2170
|
+
*/
|
|
2171
|
+
'post'(
|
|
2172
|
+
parameters?: Parameters<Paths.MarkThreadAsDone.PathParameters> | null,
|
|
2173
|
+
data?: any,
|
|
2174
|
+
config?: AxiosRequestConfig
|
|
2175
|
+
): OperationResponse<Paths.MarkThreadAsDone.Responses.$204>
|
|
2176
|
+
}
|
|
2177
|
+
['/v1/message/threads/{id}:markAsOpen']: {
|
|
2178
|
+
/**
|
|
2179
|
+
* markThreadAsOpen - markThreadAsOpen
|
|
2180
|
+
*
|
|
2181
|
+
* Mark thread as open
|
|
2182
|
+
*/
|
|
2183
|
+
'post'(
|
|
2184
|
+
parameters?: Parameters<Paths.MarkThreadAsOpen.PathParameters> | null,
|
|
2185
|
+
data?: any,
|
|
2186
|
+
config?: AxiosRequestConfig
|
|
2187
|
+
): OperationResponse<Paths.MarkThreadAsOpen.Responses.$204>
|
|
2188
|
+
}
|
|
1949
2189
|
['/v1/message/threads/{id}/trash']: {
|
|
1950
2190
|
/**
|
|
1951
2191
|
* trashThread - trashThread
|
|
@@ -1982,6 +2222,18 @@ export interface PathsDictionary {
|
|
|
1982
2222
|
config?: AxiosRequestConfig
|
|
1983
2223
|
): OperationResponse<Paths.MarkReadThread.Responses.$204>
|
|
1984
2224
|
}
|
|
2225
|
+
['/v2/message/threads/{id}/read']: {
|
|
2226
|
+
/**
|
|
2227
|
+
* markReadThreadV2 - markReadThreadV2
|
|
2228
|
+
*
|
|
2229
|
+
* Mark thread as read within a scope
|
|
2230
|
+
*/
|
|
2231
|
+
'post'(
|
|
2232
|
+
parameters?: Parameters<Paths.MarkReadThreadV2.PathParameters> | null,
|
|
2233
|
+
data?: Paths.MarkReadThreadV2.RequestBody,
|
|
2234
|
+
config?: AxiosRequestConfig
|
|
2235
|
+
): OperationResponse<Paths.MarkReadThreadV2.Responses.$204>
|
|
2236
|
+
}
|
|
1985
2237
|
['/v1/message/threads/{id}/unread']: {
|
|
1986
2238
|
/**
|
|
1987
2239
|
* markUnreadThread - markUnreadThread
|
|
@@ -1994,6 +2246,18 @@ export interface PathsDictionary {
|
|
|
1994
2246
|
config?: AxiosRequestConfig
|
|
1995
2247
|
): OperationResponse<Paths.MarkUnreadThread.Responses.$204>
|
|
1996
2248
|
}
|
|
2249
|
+
['/v2/message/threads/{id}/unread']: {
|
|
2250
|
+
/**
|
|
2251
|
+
* markUnreadThreadV2 - markUnreadThreadV2
|
|
2252
|
+
*
|
|
2253
|
+
* Mark thread as unread within a scope
|
|
2254
|
+
*/
|
|
2255
|
+
'post'(
|
|
2256
|
+
parameters?: Parameters<Paths.MarkUnreadThreadV2.PathParameters> | null,
|
|
2257
|
+
data?: Paths.MarkUnreadThreadV2.RequestBody,
|
|
2258
|
+
config?: AxiosRequestConfig
|
|
2259
|
+
): OperationResponse<Paths.MarkUnreadThreadV2.Responses.$204>
|
|
2260
|
+
}
|
|
1997
2261
|
['/v1/message/threads/{id}/assign']: {
|
|
1998
2262
|
/**
|
|
1999
2263
|
* assignThread - assignThread
|
|
@@ -2089,5 +2353,7 @@ export type File = Components.Schemas.File;
|
|
|
2089
2353
|
export type Message = Components.Schemas.Message;
|
|
2090
2354
|
export type MessageRequestParams = Components.Schemas.MessageRequestParams;
|
|
2091
2355
|
export type MessageV2 = Components.Schemas.MessageV2;
|
|
2356
|
+
export type ReadMessagePayload = Components.Schemas.ReadMessagePayload;
|
|
2357
|
+
export type ReadingScope = Components.Schemas.ReadingScope;
|
|
2092
2358
|
export type SearchParams = Components.Schemas.SearchParams;
|
|
2093
2359
|
export type Thread = Components.Schemas.Thread;
|
package/dist/openapi.json
CHANGED
|
@@ -22,6 +22,33 @@
|
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "Drafts"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "message_schema",
|
|
28
|
+
"x-displayName": "Message",
|
|
29
|
+
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/Message\" />\n"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "thread_schema",
|
|
33
|
+
"x-displayName": "Thread",
|
|
34
|
+
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/Thread\" />\n"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"x-tagGroups": [
|
|
38
|
+
{
|
|
39
|
+
"name": "APIs",
|
|
40
|
+
"tags": [
|
|
41
|
+
"Messages",
|
|
42
|
+
"Threads",
|
|
43
|
+
"Drafts"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "Schemas",
|
|
48
|
+
"tags": [
|
|
49
|
+
"message_schema",
|
|
50
|
+
"thread_schema"
|
|
51
|
+
]
|
|
25
52
|
}
|
|
26
53
|
],
|
|
27
54
|
"paths": {
|
|
@@ -270,6 +297,45 @@
|
|
|
270
297
|
}
|
|
271
298
|
}
|
|
272
299
|
},
|
|
300
|
+
"/v2/message/messages/{id}/read": {
|
|
301
|
+
"post": {
|
|
302
|
+
"operationId": "markReadMessageV2",
|
|
303
|
+
"summary": "markReadMessageV2",
|
|
304
|
+
"description": "Mark message as read within a scope",
|
|
305
|
+
"tags": [
|
|
306
|
+
"Messages"
|
|
307
|
+
],
|
|
308
|
+
"parameters": [
|
|
309
|
+
{
|
|
310
|
+
"name": "id",
|
|
311
|
+
"description": "Message ID",
|
|
312
|
+
"in": "path",
|
|
313
|
+
"required": true,
|
|
314
|
+
"schema": {
|
|
315
|
+
"type": "string"
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
],
|
|
319
|
+
"requestBody": {
|
|
320
|
+
"required": true,
|
|
321
|
+
"content": {
|
|
322
|
+
"application/json": {
|
|
323
|
+
"schema": {
|
|
324
|
+
"$ref": "#/components/schemas/ReadMessagePayload"
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"responses": {
|
|
330
|
+
"204": {
|
|
331
|
+
"description": "Success"
|
|
332
|
+
},
|
|
333
|
+
"403": {
|
|
334
|
+
"description": "Forbidden"
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
},
|
|
273
339
|
"/v1/message/messages/{id}/unread": {
|
|
274
340
|
"post": {
|
|
275
341
|
"operationId": "markUnreadMessage",
|
|
@@ -299,6 +365,45 @@
|
|
|
299
365
|
}
|
|
300
366
|
}
|
|
301
367
|
},
|
|
368
|
+
"/v2/message/messages/{id}/unread": {
|
|
369
|
+
"post": {
|
|
370
|
+
"operationId": "markUnreadMessageV2",
|
|
371
|
+
"summary": "markUnreadMessageV2",
|
|
372
|
+
"description": "Mark message as unread within a scope",
|
|
373
|
+
"tags": [
|
|
374
|
+
"Messages"
|
|
375
|
+
],
|
|
376
|
+
"parameters": [
|
|
377
|
+
{
|
|
378
|
+
"name": "id",
|
|
379
|
+
"description": "Message ID",
|
|
380
|
+
"in": "path",
|
|
381
|
+
"required": true,
|
|
382
|
+
"schema": {
|
|
383
|
+
"type": "string"
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
"requestBody": {
|
|
388
|
+
"required": true,
|
|
389
|
+
"content": {
|
|
390
|
+
"application/json": {
|
|
391
|
+
"schema": {
|
|
392
|
+
"$ref": "#/components/schemas/ReadMessagePayload"
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"responses": {
|
|
398
|
+
"204": {
|
|
399
|
+
"description": "Success"
|
|
400
|
+
},
|
|
401
|
+
"403": {
|
|
402
|
+
"description": "Forbidden"
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
},
|
|
302
407
|
"/v1/message/threads:search": {
|
|
303
408
|
"post": {
|
|
304
409
|
"operationId": "searchThreads",
|
|
@@ -419,6 +524,64 @@
|
|
|
419
524
|
}
|
|
420
525
|
}
|
|
421
526
|
},
|
|
527
|
+
"/v1/message/threads/{id}:markAsDone": {
|
|
528
|
+
"post": {
|
|
529
|
+
"operationId": "markThreadAsDone",
|
|
530
|
+
"summary": "markThreadAsDone",
|
|
531
|
+
"description": "Mark thread as done",
|
|
532
|
+
"tags": [
|
|
533
|
+
"Threads"
|
|
534
|
+
],
|
|
535
|
+
"parameters": [
|
|
536
|
+
{
|
|
537
|
+
"name": "id",
|
|
538
|
+
"description": "Thread ID",
|
|
539
|
+
"in": "path",
|
|
540
|
+
"required": true,
|
|
541
|
+
"schema": {
|
|
542
|
+
"type": "string"
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
],
|
|
546
|
+
"responses": {
|
|
547
|
+
"204": {
|
|
548
|
+
"description": "Success"
|
|
549
|
+
},
|
|
550
|
+
"400": {
|
|
551
|
+
"description": "Bad Request"
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
"/v1/message/threads/{id}:markAsOpen": {
|
|
557
|
+
"post": {
|
|
558
|
+
"operationId": "markThreadAsOpen",
|
|
559
|
+
"summary": "markThreadAsOpen",
|
|
560
|
+
"description": "Mark thread as open",
|
|
561
|
+
"tags": [
|
|
562
|
+
"Threads"
|
|
563
|
+
],
|
|
564
|
+
"parameters": [
|
|
565
|
+
{
|
|
566
|
+
"name": "id",
|
|
567
|
+
"description": "Thread ID",
|
|
568
|
+
"in": "path",
|
|
569
|
+
"required": true,
|
|
570
|
+
"schema": {
|
|
571
|
+
"type": "string"
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
],
|
|
575
|
+
"responses": {
|
|
576
|
+
"204": {
|
|
577
|
+
"description": "Success"
|
|
578
|
+
},
|
|
579
|
+
"400": {
|
|
580
|
+
"description": "Bad Request"
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
},
|
|
422
585
|
"/v1/message/threads/{id}/trash": {
|
|
423
586
|
"post": {
|
|
424
587
|
"operationId": "trashThread",
|
|
@@ -506,6 +669,45 @@
|
|
|
506
669
|
}
|
|
507
670
|
}
|
|
508
671
|
},
|
|
672
|
+
"/v2/message/threads/{id}/read": {
|
|
673
|
+
"post": {
|
|
674
|
+
"operationId": "markReadThreadV2",
|
|
675
|
+
"summary": "markReadThreadV2",
|
|
676
|
+
"description": "Mark thread as read within a scope",
|
|
677
|
+
"tags": [
|
|
678
|
+
"Threads"
|
|
679
|
+
],
|
|
680
|
+
"parameters": [
|
|
681
|
+
{
|
|
682
|
+
"name": "id",
|
|
683
|
+
"description": "Thread ID",
|
|
684
|
+
"in": "path",
|
|
685
|
+
"required": true,
|
|
686
|
+
"schema": {
|
|
687
|
+
"type": "string"
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
],
|
|
691
|
+
"requestBody": {
|
|
692
|
+
"required": true,
|
|
693
|
+
"content": {
|
|
694
|
+
"application/json": {
|
|
695
|
+
"schema": {
|
|
696
|
+
"$ref": "#/components/schemas/ReadMessagePayload"
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
"responses": {
|
|
702
|
+
"204": {
|
|
703
|
+
"description": "Success"
|
|
704
|
+
},
|
|
705
|
+
"403": {
|
|
706
|
+
"description": "Forbidden"
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
},
|
|
509
711
|
"/v1/message/threads/{id}/unread": {
|
|
510
712
|
"post": {
|
|
511
713
|
"operationId": "markUnreadThread",
|
|
@@ -535,6 +737,45 @@
|
|
|
535
737
|
}
|
|
536
738
|
}
|
|
537
739
|
},
|
|
740
|
+
"/v2/message/threads/{id}/unread": {
|
|
741
|
+
"post": {
|
|
742
|
+
"operationId": "markUnreadThreadV2",
|
|
743
|
+
"summary": "markUnreadThreadV2",
|
|
744
|
+
"description": "Mark thread as unread within a scope",
|
|
745
|
+
"tags": [
|
|
746
|
+
"Threads"
|
|
747
|
+
],
|
|
748
|
+
"parameters": [
|
|
749
|
+
{
|
|
750
|
+
"name": "id",
|
|
751
|
+
"description": "Thread ID",
|
|
752
|
+
"in": "path",
|
|
753
|
+
"required": true,
|
|
754
|
+
"schema": {
|
|
755
|
+
"type": "string"
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
],
|
|
759
|
+
"requestBody": {
|
|
760
|
+
"required": true,
|
|
761
|
+
"content": {
|
|
762
|
+
"application/json": {
|
|
763
|
+
"schema": {
|
|
764
|
+
"$ref": "#/components/schemas/ReadMessagePayload"
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
"responses": {
|
|
770
|
+
"204": {
|
|
771
|
+
"description": "Success"
|
|
772
|
+
},
|
|
773
|
+
"403": {
|
|
774
|
+
"description": "Forbidden"
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
},
|
|
538
779
|
"/v1/message/threads/{id}/assign": {
|
|
539
780
|
"post": {
|
|
540
781
|
"operationId": "assignThread",
|
|
@@ -574,6 +815,11 @@
|
|
|
574
815
|
"type": "string",
|
|
575
816
|
"example": "3f34ce73-089c-4d45-a5ee-c161234e41c3"
|
|
576
817
|
},
|
|
818
|
+
"org_id": {
|
|
819
|
+
"description": "Organization ID",
|
|
820
|
+
"type": "string",
|
|
821
|
+
"example": "206801"
|
|
822
|
+
},
|
|
577
823
|
"is_main_entity": {
|
|
578
824
|
"description": "To indicate this is main entity",
|
|
579
825
|
"type": "boolean",
|
|
@@ -853,7 +1099,7 @@
|
|
|
853
1099
|
},
|
|
854
1100
|
"_org": {
|
|
855
1101
|
"type": "string",
|
|
856
|
-
"description": "
|
|
1102
|
+
"description": "Organization ID the entity belongs to",
|
|
857
1103
|
"example": "206801"
|
|
858
1104
|
},
|
|
859
1105
|
"_schema": {
|
|
@@ -899,7 +1145,7 @@
|
|
|
899
1145
|
},
|
|
900
1146
|
"assigned_to": {
|
|
901
1147
|
"type": "array",
|
|
902
|
-
"description": "
|
|
1148
|
+
"description": "User ID of who the message is assigned to. Default is the user who sends message.",
|
|
903
1149
|
"items": {
|
|
904
1150
|
"type": "string",
|
|
905
1151
|
"example": [
|
|
@@ -910,7 +1156,7 @@
|
|
|
910
1156
|
},
|
|
911
1157
|
"org_read_message": {
|
|
912
1158
|
"type": "array",
|
|
913
|
-
"description": "
|
|
1159
|
+
"description": "Organization ID of organization read the message.",
|
|
914
1160
|
"items": {
|
|
915
1161
|
"type": "string",
|
|
916
1162
|
"example": [
|
|
@@ -919,6 +1165,11 @@
|
|
|
919
1165
|
]
|
|
920
1166
|
}
|
|
921
1167
|
},
|
|
1168
|
+
"done": {
|
|
1169
|
+
"type": "boolean",
|
|
1170
|
+
"description": "Whether the thread is marked as Done",
|
|
1171
|
+
"example": false
|
|
1172
|
+
},
|
|
922
1173
|
"latest_message": {
|
|
923
1174
|
"type": "object",
|
|
924
1175
|
"description": "Latest message of thread",
|
|
@@ -950,7 +1201,7 @@
|
|
|
950
1201
|
},
|
|
951
1202
|
"sender": {
|
|
952
1203
|
"type": "string",
|
|
953
|
-
"description": "
|
|
1204
|
+
"description": "User ID of user sends the message.",
|
|
954
1205
|
"example": "206801"
|
|
955
1206
|
},
|
|
956
1207
|
"subject": {
|
|
@@ -1010,7 +1261,7 @@
|
|
|
1010
1261
|
},
|
|
1011
1262
|
"user_read_message": {
|
|
1012
1263
|
"type": "array",
|
|
1013
|
-
"description": "
|
|
1264
|
+
"description": "User ID of user read the message.",
|
|
1014
1265
|
"items": {
|
|
1015
1266
|
"type": "string",
|
|
1016
1267
|
"example": [
|
|
@@ -1021,7 +1272,7 @@
|
|
|
1021
1272
|
},
|
|
1022
1273
|
"org_read_message": {
|
|
1023
1274
|
"type": "array",
|
|
1024
|
-
"description": "
|
|
1275
|
+
"description": "Organization ID of organization read the message.",
|
|
1025
1276
|
"items": {
|
|
1026
1277
|
"type": "string",
|
|
1027
1278
|
"example": [
|
|
@@ -1159,6 +1410,10 @@
|
|
|
1159
1410
|
"type": "boolean",
|
|
1160
1411
|
"description": "To indicate this file relation is message attachment. If false then this file will not be sent and simply kept as a file relation."
|
|
1161
1412
|
},
|
|
1413
|
+
"may_be_signature_attachment": {
|
|
1414
|
+
"type": "boolean",
|
|
1415
|
+
"description": "To indicate this file relation may be signature attachment. If true then this file will be sent as signature attachment and not related to any entity."
|
|
1416
|
+
},
|
|
1162
1417
|
"cid": {
|
|
1163
1418
|
"type": "string",
|
|
1164
1419
|
"description": "Content ID (for inline)",
|
|
@@ -1196,7 +1451,7 @@
|
|
|
1196
1451
|
},
|
|
1197
1452
|
"assigned_to": {
|
|
1198
1453
|
"type": "array",
|
|
1199
|
-
"description": "
|
|
1454
|
+
"description": "User ID of who the message is assigned to. Default is the user who sends message.",
|
|
1200
1455
|
"items": {
|
|
1201
1456
|
"type": "string"
|
|
1202
1457
|
}
|
|
@@ -1288,12 +1543,50 @@
|
|
|
1288
1543
|
"type": "integer",
|
|
1289
1544
|
"minimum": 1,
|
|
1290
1545
|
"default": 10
|
|
1546
|
+
},
|
|
1547
|
+
"hydrate": {
|
|
1548
|
+
"type": "boolean",
|
|
1549
|
+
"default": false
|
|
1291
1550
|
}
|
|
1292
1551
|
}
|
|
1552
|
+
},
|
|
1553
|
+
"ReadMessagePayload": {
|
|
1554
|
+
"type": "object",
|
|
1555
|
+
"required": [
|
|
1556
|
+
"scopes"
|
|
1557
|
+
],
|
|
1558
|
+
"properties": {
|
|
1559
|
+
"scopes": {
|
|
1560
|
+
"description": "The scopes to be used when marking an item as read or unread. The read status will be synced for all provided scopes.",
|
|
1561
|
+
"example": [
|
|
1562
|
+
"organization",
|
|
1563
|
+
"user"
|
|
1564
|
+
],
|
|
1565
|
+
"type": "array",
|
|
1566
|
+
"default": [
|
|
1567
|
+
"organization",
|
|
1568
|
+
"user"
|
|
1569
|
+
],
|
|
1570
|
+
"items": {
|
|
1571
|
+
"$ref": "#/components/schemas/ReadingScope"
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
},
|
|
1576
|
+
"ReadingScope": {
|
|
1577
|
+
"description": "Who is marking an item as read or unread.",
|
|
1578
|
+
"type": "string",
|
|
1579
|
+
"enum": [
|
|
1580
|
+
"organization",
|
|
1581
|
+
"user"
|
|
1582
|
+
]
|
|
1293
1583
|
}
|
|
1294
1584
|
}
|
|
1295
1585
|
},
|
|
1296
1586
|
"servers": [
|
|
1587
|
+
{
|
|
1588
|
+
"url": "https://message.sls.epilot.io"
|
|
1589
|
+
},
|
|
1297
1590
|
{
|
|
1298
1591
|
"url": "https://message.sls.epilot.io"
|
|
1299
1592
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/message-client",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.3",
|
|
4
4
|
"description": "API Client for epilot Message API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/message.yaml",
|
|
26
26
|
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
27
27
|
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
28
|
-
"build:patch": "sed -i '/^__exportStar.*openapi.*$/d' dist/index.js",
|
|
28
|
+
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|
|
29
29
|
"build:watch": "npm run build && tsc -w",
|
|
30
30
|
"prepublishOnly": "npm run typegen && npm run build",
|
|
31
31
|
"lint": "../../node_modules/eslint/bin/eslint.js src"
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"webpack": "^5.18.0",
|
|
72
72
|
"webpack-cli": "^4.4.0"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
75
|
-
}
|
|
74
|
+
"gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
|
|
75
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 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.
|