@epilot/message-client 0.0.1
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 +40 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.js +14 -0
- package/dist/definition.d.ts +3 -0
- package/dist/definition.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +14 -0
- package/dist/openapi.d.ts +791 -0
- package/dist/openapi.json +3161 -0
- package/package-lock.json +8340 -0
- package/package.json +58 -0
- package/tsconfig.json +23 -0
|
@@ -0,0 +1,791 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import {
|
|
3
|
+
OpenAPIClient,
|
|
4
|
+
Parameters,
|
|
5
|
+
UnknownParamsObject,
|
|
6
|
+
OperationResponse,
|
|
7
|
+
AxiosRequestConfig,
|
|
8
|
+
} from 'openapi-client-axios';
|
|
9
|
+
|
|
10
|
+
declare namespace Components {
|
|
11
|
+
namespace Schemas {
|
|
12
|
+
export interface Address {
|
|
13
|
+
/**
|
|
14
|
+
* Email address alias
|
|
15
|
+
* example:
|
|
16
|
+
* epilot
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Email address
|
|
21
|
+
* example:
|
|
22
|
+
* messaging@epilot.cloud
|
|
23
|
+
*/
|
|
24
|
+
address: string;
|
|
25
|
+
}
|
|
26
|
+
export interface Attachment {
|
|
27
|
+
/**
|
|
28
|
+
* Attachment ID
|
|
29
|
+
* example:
|
|
30
|
+
* f820ce3b-07b0-45ae-bcc6-babb2f53f79f
|
|
31
|
+
*/
|
|
32
|
+
cid?: string;
|
|
33
|
+
/**
|
|
34
|
+
* File name
|
|
35
|
+
* example:
|
|
36
|
+
* Produktinformationen_epilot360_Double_Opt_in.pdf
|
|
37
|
+
*/
|
|
38
|
+
filename: string;
|
|
39
|
+
/**
|
|
40
|
+
* File size in bytes
|
|
41
|
+
* example:
|
|
42
|
+
* 451349
|
|
43
|
+
*/
|
|
44
|
+
size: number;
|
|
45
|
+
/**
|
|
46
|
+
* Content type
|
|
47
|
+
* example:
|
|
48
|
+
* application/pdf
|
|
49
|
+
*/
|
|
50
|
+
content_type: string;
|
|
51
|
+
/**
|
|
52
|
+
* URL to download the attachment.
|
|
53
|
+
* example:
|
|
54
|
+
* https://go.epilot.cloud/attachments/3e7c616a-3e89-4f92-b4c5-ea5ab140e3dd/Produktinformationen_epilot360_Double_Opt_in.pdf
|
|
55
|
+
*/
|
|
56
|
+
url: string;
|
|
57
|
+
/**
|
|
58
|
+
* S3 bucket where file is stored
|
|
59
|
+
* example:
|
|
60
|
+
* 893487340562-message-attachment
|
|
61
|
+
*/
|
|
62
|
+
bucket: string;
|
|
63
|
+
/**
|
|
64
|
+
* S3 object apiKey
|
|
65
|
+
* example:
|
|
66
|
+
* attachments/3e7c616a-3e89-4f92-b4c5-ea5ab140e3dd/Produktinformationen_epilot360_Double_Opt_in.pdf
|
|
67
|
+
*/
|
|
68
|
+
object_key: string;
|
|
69
|
+
/**
|
|
70
|
+
* If true then this attachment should not be offered for download (at least not in the main attachments list).\
|
|
71
|
+
* The usecase is CID embedded image (aka inline image).
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
inline?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* If true then this attachment is sent via link. The link is already inserted to email body by API caller. In this case, service doesn't process this attachment.
|
|
77
|
+
*/
|
|
78
|
+
send_as_link?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* If true then this attachment is copied to the message and replaces corresponding one. The new attachment has different `cid`, `url`, `object_key`. This property supports for forwarding message.\
|
|
81
|
+
* If both `send_as_link` and `copy_to_message` are provided, `copy_to_message` is discarded.
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
copy_to_message?: boolean;
|
|
85
|
+
}
|
|
86
|
+
export interface AttachmentUploadUrl {
|
|
87
|
+
/**
|
|
88
|
+
* URL to download the attachment. This URL is not accessible until attachment is uploaded successfully.
|
|
89
|
+
* example:
|
|
90
|
+
* https://go.epilot.cloud/attachments/3e7c616a-3e89-4f92-b4c5-ea5ab140e3dd/Produktinformationen_epilot360_Double_Opt_in.pdf
|
|
91
|
+
*/
|
|
92
|
+
download_url: string;
|
|
93
|
+
upload_url: {
|
|
94
|
+
/**
|
|
95
|
+
* URL to upload the attachment
|
|
96
|
+
* example:
|
|
97
|
+
* https://s3.eu-central-1.amazonaws.com/893487340562-message-attachment
|
|
98
|
+
*/
|
|
99
|
+
url: number;
|
|
100
|
+
/**
|
|
101
|
+
* Fields are provided by AWS to authenticate and validate the request. All fields should be included in form-data when performing upload request.
|
|
102
|
+
* example:
|
|
103
|
+
* {}
|
|
104
|
+
*/
|
|
105
|
+
fields: {
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
export interface BaseEntity {
|
|
110
|
+
/**
|
|
111
|
+
* Entity ID
|
|
112
|
+
* example:
|
|
113
|
+
* 3fa85f64-5717-4562-b3fc-2c963f66afa6
|
|
114
|
+
*/
|
|
115
|
+
_id: string;
|
|
116
|
+
/**
|
|
117
|
+
* Entity title
|
|
118
|
+
*/
|
|
119
|
+
_title: string;
|
|
120
|
+
/**
|
|
121
|
+
* Ivy Organization ID the entity belongs to
|
|
122
|
+
* example:
|
|
123
|
+
* 206801
|
|
124
|
+
*/
|
|
125
|
+
_org: string;
|
|
126
|
+
/**
|
|
127
|
+
* URL-friendly identifier for the entity schema
|
|
128
|
+
* example:
|
|
129
|
+
* message
|
|
130
|
+
*/
|
|
131
|
+
_schema: string;
|
|
132
|
+
/**
|
|
133
|
+
* Entity tags
|
|
134
|
+
* example:
|
|
135
|
+
* [
|
|
136
|
+
* "pricing",
|
|
137
|
+
* "INBOX"
|
|
138
|
+
* ]
|
|
139
|
+
*/
|
|
140
|
+
_tags?: string[];
|
|
141
|
+
/**
|
|
142
|
+
* Created date
|
|
143
|
+
* example:
|
|
144
|
+
* "2021-02-09T12:41:43.662Z"
|
|
145
|
+
*/
|
|
146
|
+
_created_at: string; // date-time
|
|
147
|
+
/**
|
|
148
|
+
* Updated date
|
|
149
|
+
* example:
|
|
150
|
+
* "2021-02-10T09:14:31.990Z"
|
|
151
|
+
*/
|
|
152
|
+
_updated_at: string; // date-time
|
|
153
|
+
}
|
|
154
|
+
export interface CreateAttachmentUploadUrlParams {
|
|
155
|
+
/**
|
|
156
|
+
* File name
|
|
157
|
+
* example:
|
|
158
|
+
* Produktinformationen_epilot360_Double_Opt_in.pdf
|
|
159
|
+
*/
|
|
160
|
+
filename: string;
|
|
161
|
+
/**
|
|
162
|
+
* Content type
|
|
163
|
+
* example:
|
|
164
|
+
* application/pdf
|
|
165
|
+
*/
|
|
166
|
+
content_type: string;
|
|
167
|
+
}
|
|
168
|
+
export interface Message {
|
|
169
|
+
/**
|
|
170
|
+
* Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.
|
|
171
|
+
* example:
|
|
172
|
+
* <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>
|
|
173
|
+
*/
|
|
174
|
+
message_id?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Ivy User ID of user sends the message.
|
|
177
|
+
* example:
|
|
178
|
+
* 206801
|
|
179
|
+
*/
|
|
180
|
+
sender?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Subject
|
|
183
|
+
* example:
|
|
184
|
+
* Request for solar panel price
|
|
185
|
+
*/
|
|
186
|
+
subject: string;
|
|
187
|
+
/**
|
|
188
|
+
* HTML body
|
|
189
|
+
* example:
|
|
190
|
+
* <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
|
|
191
|
+
*/
|
|
192
|
+
html?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Text body
|
|
195
|
+
* example:
|
|
196
|
+
* We at ABC GmbH would like to request a price quote for the solar panel.
|
|
197
|
+
*/
|
|
198
|
+
text?: string;
|
|
199
|
+
from: Address;
|
|
200
|
+
reply_to?: Address;
|
|
201
|
+
/**
|
|
202
|
+
* To email addresses
|
|
203
|
+
*/
|
|
204
|
+
to?: Address[];
|
|
205
|
+
/**
|
|
206
|
+
* Cc email addresses
|
|
207
|
+
*/
|
|
208
|
+
cc?: Address[];
|
|
209
|
+
/**
|
|
210
|
+
* Bcc email addresses
|
|
211
|
+
*/
|
|
212
|
+
bcc?: Address[];
|
|
213
|
+
/**
|
|
214
|
+
* Message attachments
|
|
215
|
+
*/
|
|
216
|
+
attachments?: Attachment[];
|
|
217
|
+
/**
|
|
218
|
+
* References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent.\
|
|
219
|
+
* The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread.\
|
|
220
|
+
* The basic idea is that sender should copy `references` from the parent and append the parent's `message_id` when replying.
|
|
221
|
+
*
|
|
222
|
+
* example:
|
|
223
|
+
* <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
|
|
224
|
+
*/
|
|
225
|
+
references?: string;
|
|
226
|
+
/**
|
|
227
|
+
* In-Reply-To header. Value is the `message_id` of parent message.
|
|
228
|
+
*
|
|
229
|
+
* example:
|
|
230
|
+
* <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
|
|
231
|
+
*/
|
|
232
|
+
in_reply_to?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Ivy User ID of user read the message.
|
|
235
|
+
*/
|
|
236
|
+
user_read_message?: string[];
|
|
237
|
+
/**
|
|
238
|
+
* Message status. Only apply for sent message.
|
|
239
|
+
* Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
|
|
240
|
+
*
|
|
241
|
+
*/
|
|
242
|
+
status?: "SEND" | "REJECT" | "BOUNCE" | "COMPLAINT" | "DELIVERY" | "null";
|
|
243
|
+
/**
|
|
244
|
+
* Message type
|
|
245
|
+
*/
|
|
246
|
+
type?: "SENT" | "RECEIVED";
|
|
247
|
+
}
|
|
248
|
+
export interface MessageRequestParams {
|
|
249
|
+
/**
|
|
250
|
+
* Open new thread when sending the very first message in conversation. Thread should contains context related to all messages in it (eg. topic, brand_id, opportunity_id, assigned_to,...).\
|
|
251
|
+
* Thread properties depend on API caller as it's not pre-defined. We do recommend having at least `topic` property for categorizing.\
|
|
252
|
+
* `thread` or `parent_id` must be provided either.
|
|
253
|
+
*
|
|
254
|
+
* example:
|
|
255
|
+
* {
|
|
256
|
+
* "topic": "CUSTOMER_MESSAGE",
|
|
257
|
+
* "assigned_to": [
|
|
258
|
+
* "206801",
|
|
259
|
+
* "200109"
|
|
260
|
+
* ],
|
|
261
|
+
* "opportunity_id": 829072
|
|
262
|
+
* }
|
|
263
|
+
*/
|
|
264
|
+
thread?: {
|
|
265
|
+
/**
|
|
266
|
+
* Message topic (e.g. which service sends the message or message category)
|
|
267
|
+
*/
|
|
268
|
+
topic: string;
|
|
269
|
+
/**
|
|
270
|
+
* Ivy User ID of who the message is assigned to. Default is the user who sends message.
|
|
271
|
+
*/
|
|
272
|
+
assigned_to?: string[];
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* Entity ID of parent message which this message replies to or forwards from.\
|
|
276
|
+
* If both `parent_id` and `thread` are provided, `thread` is discarded.
|
|
277
|
+
*
|
|
278
|
+
* example:
|
|
279
|
+
* 44d7a3eb-0cce-4bd3-a7cd-0b3e652de0c2
|
|
280
|
+
*/
|
|
281
|
+
parent_id?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Subject
|
|
284
|
+
* example:
|
|
285
|
+
* Request for solar panel price
|
|
286
|
+
*/
|
|
287
|
+
subject: string;
|
|
288
|
+
/**
|
|
289
|
+
* HTML body
|
|
290
|
+
* example:
|
|
291
|
+
* <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
|
|
292
|
+
*/
|
|
293
|
+
html?: string;
|
|
294
|
+
/**
|
|
295
|
+
* Text body
|
|
296
|
+
* example:
|
|
297
|
+
* We at ABC GmbH would like to request a price quote for the solar panel.
|
|
298
|
+
*/
|
|
299
|
+
text?: string;
|
|
300
|
+
from: Address;
|
|
301
|
+
reply_to?: Address;
|
|
302
|
+
/**
|
|
303
|
+
* To email addresses
|
|
304
|
+
*/
|
|
305
|
+
to?: Address[];
|
|
306
|
+
/**
|
|
307
|
+
* Cc email addresses
|
|
308
|
+
*/
|
|
309
|
+
cc?: Address[];
|
|
310
|
+
/**
|
|
311
|
+
* Bcc email addresses
|
|
312
|
+
*/
|
|
313
|
+
bcc?: Address[];
|
|
314
|
+
/**
|
|
315
|
+
* Message attachments
|
|
316
|
+
*/
|
|
317
|
+
attachments?: Attachment[];
|
|
318
|
+
}
|
|
319
|
+
export interface SearchParams {
|
|
320
|
+
/**
|
|
321
|
+
* Lucene queries supported with ElasticSearch
|
|
322
|
+
* example:
|
|
323
|
+
* subject:"Request for solar panel price" AND _tags:INBOX
|
|
324
|
+
*/
|
|
325
|
+
q: string;
|
|
326
|
+
from?: number;
|
|
327
|
+
size?: number;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Thread properties depend on API caller as it's not pre-defined. We do recommend having at least `topic` property for categorizing.
|
|
331
|
+
*/
|
|
332
|
+
export interface Thread {
|
|
333
|
+
/**
|
|
334
|
+
* Message topic (e.g. which service sends the message or message category)
|
|
335
|
+
* example:
|
|
336
|
+
* CUSTOMER_MESSAGE
|
|
337
|
+
*/
|
|
338
|
+
topic: string;
|
|
339
|
+
/**
|
|
340
|
+
* Ivy User ID of who the message is assigned to. Default is the user who sends message.
|
|
341
|
+
*/
|
|
342
|
+
assigned_to?: string[];
|
|
343
|
+
/**
|
|
344
|
+
* Latest message of thread
|
|
345
|
+
*/
|
|
346
|
+
latest_message?: Message;
|
|
347
|
+
/**
|
|
348
|
+
* Latest trash message of thread
|
|
349
|
+
*/
|
|
350
|
+
latest_trash_message?: Message;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
declare namespace Paths {
|
|
355
|
+
namespace CreateAttachmentUploadUrl {
|
|
356
|
+
export type RequestBody = Components.Schemas.CreateAttachmentUploadUrlParams;
|
|
357
|
+
namespace Responses {
|
|
358
|
+
export type $200 = Components.Schemas.AttachmentUploadUrl;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
namespace DeleteMessage {
|
|
362
|
+
namespace Parameters {
|
|
363
|
+
export type Id = string;
|
|
364
|
+
}
|
|
365
|
+
export interface PathParameters {
|
|
366
|
+
id: Parameters.Id;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
namespace DeleteThread {
|
|
370
|
+
namespace Parameters {
|
|
371
|
+
export type Id = string;
|
|
372
|
+
}
|
|
373
|
+
export interface PathParameters {
|
|
374
|
+
id: Parameters.Id;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
namespace SearchThreads {
|
|
378
|
+
export type RequestBody = Components.Schemas.SearchParams;
|
|
379
|
+
namespace Responses {
|
|
380
|
+
export interface $200 {
|
|
381
|
+
/**
|
|
382
|
+
* Total of matched threads
|
|
383
|
+
* example:
|
|
384
|
+
* 14
|
|
385
|
+
*/
|
|
386
|
+
hits: number;
|
|
387
|
+
/**
|
|
388
|
+
* Matched threads
|
|
389
|
+
*/
|
|
390
|
+
results: {
|
|
391
|
+
/**
|
|
392
|
+
* Entity ID
|
|
393
|
+
* example:
|
|
394
|
+
* 3fa85f64-5717-4562-b3fc-2c963f66afa6
|
|
395
|
+
*/
|
|
396
|
+
_id: string;
|
|
397
|
+
/**
|
|
398
|
+
* Entity title
|
|
399
|
+
*/
|
|
400
|
+
_title: string;
|
|
401
|
+
/**
|
|
402
|
+
* Ivy Organization ID the entity belongs to
|
|
403
|
+
* example:
|
|
404
|
+
* 206801
|
|
405
|
+
*/
|
|
406
|
+
_org: string;
|
|
407
|
+
/**
|
|
408
|
+
* URL-friendly identifier for the entity schema
|
|
409
|
+
* example:
|
|
410
|
+
* message
|
|
411
|
+
*/
|
|
412
|
+
_schema: string;
|
|
413
|
+
/**
|
|
414
|
+
* Entity tags
|
|
415
|
+
* example:
|
|
416
|
+
* [
|
|
417
|
+
* "pricing",
|
|
418
|
+
* "INBOX"
|
|
419
|
+
* ]
|
|
420
|
+
*/
|
|
421
|
+
_tags?: string[];
|
|
422
|
+
/**
|
|
423
|
+
* Created date
|
|
424
|
+
* example:
|
|
425
|
+
* "2021-02-09T12:41:43.662Z"
|
|
426
|
+
*/
|
|
427
|
+
_created_at: string; // date-time
|
|
428
|
+
/**
|
|
429
|
+
* Updated date
|
|
430
|
+
* example:
|
|
431
|
+
* "2021-02-10T09:14:31.990Z"
|
|
432
|
+
*/
|
|
433
|
+
_updated_at: string; // date-time
|
|
434
|
+
/**
|
|
435
|
+
* Message topic (e.g. which service sends the message or message category)
|
|
436
|
+
* example:
|
|
437
|
+
* CUSTOMER_MESSAGE
|
|
438
|
+
*/
|
|
439
|
+
topic: string;
|
|
440
|
+
/**
|
|
441
|
+
* Ivy User ID of who the message is assigned to. Default is the user who sends message.
|
|
442
|
+
*/
|
|
443
|
+
assigned_to?: string[];
|
|
444
|
+
/**
|
|
445
|
+
* Latest message of thread
|
|
446
|
+
*/
|
|
447
|
+
latest_message?: Components.Schemas.Message;
|
|
448
|
+
/**
|
|
449
|
+
* Latest trash message of thread
|
|
450
|
+
*/
|
|
451
|
+
latest_trash_message?: Components.Schemas.Message;
|
|
452
|
+
}[];
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
namespace SendMessage {
|
|
457
|
+
export type RequestBody = Components.Schemas.MessageRequestParams;
|
|
458
|
+
namespace Responses {
|
|
459
|
+
export interface $201 {
|
|
460
|
+
/**
|
|
461
|
+
* Entity ID
|
|
462
|
+
* example:
|
|
463
|
+
* 3fa85f64-5717-4562-b3fc-2c963f66afa6
|
|
464
|
+
*/
|
|
465
|
+
_id: string;
|
|
466
|
+
/**
|
|
467
|
+
* Entity title
|
|
468
|
+
*/
|
|
469
|
+
_title: string;
|
|
470
|
+
/**
|
|
471
|
+
* Ivy Organization ID the entity belongs to
|
|
472
|
+
* example:
|
|
473
|
+
* 206801
|
|
474
|
+
*/
|
|
475
|
+
_org: string;
|
|
476
|
+
/**
|
|
477
|
+
* URL-friendly identifier for the entity schema
|
|
478
|
+
* example:
|
|
479
|
+
* message
|
|
480
|
+
*/
|
|
481
|
+
_schema: string;
|
|
482
|
+
/**
|
|
483
|
+
* Entity tags
|
|
484
|
+
* example:
|
|
485
|
+
* [
|
|
486
|
+
* "pricing",
|
|
487
|
+
* "INBOX"
|
|
488
|
+
* ]
|
|
489
|
+
*/
|
|
490
|
+
_tags?: string[];
|
|
491
|
+
/**
|
|
492
|
+
* Created date
|
|
493
|
+
* example:
|
|
494
|
+
* "2021-02-09T12:41:43.662Z"
|
|
495
|
+
*/
|
|
496
|
+
_created_at: string; // date-time
|
|
497
|
+
/**
|
|
498
|
+
* Updated date
|
|
499
|
+
* example:
|
|
500
|
+
* "2021-02-10T09:14:31.990Z"
|
|
501
|
+
*/
|
|
502
|
+
_updated_at: string; // date-time
|
|
503
|
+
/**
|
|
504
|
+
* Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.
|
|
505
|
+
* example:
|
|
506
|
+
* <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>
|
|
507
|
+
*/
|
|
508
|
+
message_id?: string;
|
|
509
|
+
/**
|
|
510
|
+
* Ivy User ID of user sends the message.
|
|
511
|
+
* example:
|
|
512
|
+
* 206801
|
|
513
|
+
*/
|
|
514
|
+
sender?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Subject
|
|
517
|
+
* example:
|
|
518
|
+
* Request for solar panel price
|
|
519
|
+
*/
|
|
520
|
+
subject: string;
|
|
521
|
+
/**
|
|
522
|
+
* HTML body
|
|
523
|
+
* example:
|
|
524
|
+
* <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
|
|
525
|
+
*/
|
|
526
|
+
html?: string;
|
|
527
|
+
/**
|
|
528
|
+
* Text body
|
|
529
|
+
* example:
|
|
530
|
+
* We at ABC GmbH would like to request a price quote for the solar panel.
|
|
531
|
+
*/
|
|
532
|
+
text?: string;
|
|
533
|
+
from: Components.Schemas.Address;
|
|
534
|
+
reply_to?: Components.Schemas.Address;
|
|
535
|
+
/**
|
|
536
|
+
* To email addresses
|
|
537
|
+
*/
|
|
538
|
+
to?: Components.Schemas.Address[];
|
|
539
|
+
/**
|
|
540
|
+
* Cc email addresses
|
|
541
|
+
*/
|
|
542
|
+
cc?: Components.Schemas.Address[];
|
|
543
|
+
/**
|
|
544
|
+
* Bcc email addresses
|
|
545
|
+
*/
|
|
546
|
+
bcc?: Components.Schemas.Address[];
|
|
547
|
+
/**
|
|
548
|
+
* Message attachments
|
|
549
|
+
*/
|
|
550
|
+
attachments?: Components.Schemas.Attachment[];
|
|
551
|
+
/**
|
|
552
|
+
* References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent.\
|
|
553
|
+
* The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread.\
|
|
554
|
+
* The basic idea is that sender should copy `references` from the parent and append the parent's `message_id` when replying.
|
|
555
|
+
*
|
|
556
|
+
* example:
|
|
557
|
+
* <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
|
|
558
|
+
*/
|
|
559
|
+
references?: string;
|
|
560
|
+
/**
|
|
561
|
+
* In-Reply-To header. Value is the `message_id` of parent message.
|
|
562
|
+
*
|
|
563
|
+
* example:
|
|
564
|
+
* <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
|
|
565
|
+
*/
|
|
566
|
+
in_reply_to?: string;
|
|
567
|
+
/**
|
|
568
|
+
* Ivy User ID of user read the message.
|
|
569
|
+
*/
|
|
570
|
+
user_read_message?: string[];
|
|
571
|
+
/**
|
|
572
|
+
* Message status. Only apply for sent message.
|
|
573
|
+
* Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
|
|
574
|
+
*
|
|
575
|
+
*/
|
|
576
|
+
status?: "SEND" | "REJECT" | "BOUNCE" | "COMPLAINT" | "DELIVERY" | "null";
|
|
577
|
+
/**
|
|
578
|
+
* Message type
|
|
579
|
+
*/
|
|
580
|
+
type?: "SENT" | "RECEIVED";
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
namespace TrashMessage {
|
|
585
|
+
namespace Parameters {
|
|
586
|
+
export type Id = string;
|
|
587
|
+
}
|
|
588
|
+
export interface PathParameters {
|
|
589
|
+
id: Parameters.Id;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
namespace UntrashMessage {
|
|
593
|
+
namespace Parameters {
|
|
594
|
+
export type Id = string;
|
|
595
|
+
}
|
|
596
|
+
export interface PathParameters {
|
|
597
|
+
id: Parameters.Id;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
namespace UpdateThread {
|
|
601
|
+
export type RequestBody = Components.Schemas.Thread;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export interface OperationMethods {
|
|
606
|
+
/**
|
|
607
|
+
* sendMessage - sendMessage
|
|
608
|
+
*
|
|
609
|
+
* Send the specified message to the recipients.
|
|
610
|
+
*/
|
|
611
|
+
'sendMessage'(
|
|
612
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
613
|
+
data?: Paths.SendMessage.RequestBody,
|
|
614
|
+
config?: AxiosRequestConfig
|
|
615
|
+
): OperationResponse<Paths.SendMessage.Responses.$201>
|
|
616
|
+
/**
|
|
617
|
+
* deleteMessage - deleteMessage
|
|
618
|
+
*
|
|
619
|
+
* Immediately and permanently deletes the specified message. This operation cannot be undone.
|
|
620
|
+
*/
|
|
621
|
+
'deleteMessage'(
|
|
622
|
+
parameters?: Parameters<Paths.DeleteMessage.PathParameters> | null,
|
|
623
|
+
data?: any,
|
|
624
|
+
config?: AxiosRequestConfig
|
|
625
|
+
): OperationResponse<any>
|
|
626
|
+
/**
|
|
627
|
+
* trashMessage - trashMessage
|
|
628
|
+
*
|
|
629
|
+
* Moves the specified message to the trash.
|
|
630
|
+
*/
|
|
631
|
+
'trashMessage'(
|
|
632
|
+
parameters?: Parameters<Paths.TrashMessage.PathParameters> | null,
|
|
633
|
+
data?: any,
|
|
634
|
+
config?: AxiosRequestConfig
|
|
635
|
+
): OperationResponse<any>
|
|
636
|
+
/**
|
|
637
|
+
* untrashMessage - untrashMessage
|
|
638
|
+
*
|
|
639
|
+
* Removes the specified message from the trash.
|
|
640
|
+
*/
|
|
641
|
+
'untrashMessage'(
|
|
642
|
+
parameters?: Parameters<Paths.UntrashMessage.PathParameters> | null,
|
|
643
|
+
data?: any,
|
|
644
|
+
config?: AxiosRequestConfig
|
|
645
|
+
): OperationResponse<any>
|
|
646
|
+
/**
|
|
647
|
+
* searchThreads - searchThreads
|
|
648
|
+
*
|
|
649
|
+
* Search for message entity and return threads which contain matched message. If message doesn't have any reply yet, evaluate it as a thread with single message.\
|
|
650
|
+
* Supports pagination. Lucene query syntax supported for complex querying.
|
|
651
|
+
*
|
|
652
|
+
*/
|
|
653
|
+
'searchThreads'(
|
|
654
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
655
|
+
data?: Paths.SearchThreads.RequestBody,
|
|
656
|
+
config?: AxiosRequestConfig
|
|
657
|
+
): OperationResponse<Paths.SearchThreads.Responses.$200>
|
|
658
|
+
/**
|
|
659
|
+
* updateThread - updateThread
|
|
660
|
+
*
|
|
661
|
+
* Modify the thread.
|
|
662
|
+
*/
|
|
663
|
+
'updateThread'(
|
|
664
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
665
|
+
data?: Paths.UpdateThread.RequestBody,
|
|
666
|
+
config?: AxiosRequestConfig
|
|
667
|
+
): OperationResponse<any>
|
|
668
|
+
/**
|
|
669
|
+
* deleteThread - deleteThread
|
|
670
|
+
*
|
|
671
|
+
* Immediately and permanently deletes the specified thread. This operation cannot be undone.
|
|
672
|
+
*/
|
|
673
|
+
'deleteThread'(
|
|
674
|
+
parameters?: Parameters<Paths.DeleteThread.PathParameters> | null,
|
|
675
|
+
data?: any,
|
|
676
|
+
config?: AxiosRequestConfig
|
|
677
|
+
): OperationResponse<any>
|
|
678
|
+
/**
|
|
679
|
+
* createAttachmentUploadUrl - createAttachmentUploadUrl
|
|
680
|
+
*
|
|
681
|
+
* Create S3 POST presigned URL to upload attachment. The URL is valid in 30 minutes. Maximum file size is 100MB.
|
|
682
|
+
*/
|
|
683
|
+
'createAttachmentUploadUrl'(
|
|
684
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
685
|
+
data?: Paths.CreateAttachmentUploadUrl.RequestBody,
|
|
686
|
+
config?: AxiosRequestConfig
|
|
687
|
+
): OperationResponse<Paths.CreateAttachmentUploadUrl.Responses.$200>
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export interface PathsDictionary {
|
|
691
|
+
['/messages']: {
|
|
692
|
+
/**
|
|
693
|
+
* sendMessage - sendMessage
|
|
694
|
+
*
|
|
695
|
+
* Send the specified message to the recipients.
|
|
696
|
+
*/
|
|
697
|
+
'post'(
|
|
698
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
699
|
+
data?: Paths.SendMessage.RequestBody,
|
|
700
|
+
config?: AxiosRequestConfig
|
|
701
|
+
): OperationResponse<Paths.SendMessage.Responses.$201>
|
|
702
|
+
}
|
|
703
|
+
['/messages/{id}']: {
|
|
704
|
+
/**
|
|
705
|
+
* deleteMessage - deleteMessage
|
|
706
|
+
*
|
|
707
|
+
* Immediately and permanently deletes the specified message. This operation cannot be undone.
|
|
708
|
+
*/
|
|
709
|
+
'delete'(
|
|
710
|
+
parameters?: Parameters<Paths.DeleteMessage.PathParameters> | null,
|
|
711
|
+
data?: any,
|
|
712
|
+
config?: AxiosRequestConfig
|
|
713
|
+
): OperationResponse<any>
|
|
714
|
+
}
|
|
715
|
+
['/messages/{id}/trash']: {
|
|
716
|
+
/**
|
|
717
|
+
* trashMessage - trashMessage
|
|
718
|
+
*
|
|
719
|
+
* Moves the specified message to the trash.
|
|
720
|
+
*/
|
|
721
|
+
'post'(
|
|
722
|
+
parameters?: Parameters<Paths.TrashMessage.PathParameters> | null,
|
|
723
|
+
data?: any,
|
|
724
|
+
config?: AxiosRequestConfig
|
|
725
|
+
): OperationResponse<any>
|
|
726
|
+
}
|
|
727
|
+
['/messages/{id}/untrash']: {
|
|
728
|
+
/**
|
|
729
|
+
* untrashMessage - untrashMessage
|
|
730
|
+
*
|
|
731
|
+
* Removes the specified message from the trash.
|
|
732
|
+
*/
|
|
733
|
+
'post'(
|
|
734
|
+
parameters?: Parameters<Paths.UntrashMessage.PathParameters> | null,
|
|
735
|
+
data?: any,
|
|
736
|
+
config?: AxiosRequestConfig
|
|
737
|
+
): OperationResponse<any>
|
|
738
|
+
}
|
|
739
|
+
['/threads:search']: {
|
|
740
|
+
/**
|
|
741
|
+
* searchThreads - searchThreads
|
|
742
|
+
*
|
|
743
|
+
* Search for message entity and return threads which contain matched message. If message doesn't have any reply yet, evaluate it as a thread with single message.\
|
|
744
|
+
* Supports pagination. Lucene query syntax supported for complex querying.
|
|
745
|
+
*
|
|
746
|
+
*/
|
|
747
|
+
'post'(
|
|
748
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
749
|
+
data?: Paths.SearchThreads.RequestBody,
|
|
750
|
+
config?: AxiosRequestConfig
|
|
751
|
+
): OperationResponse<Paths.SearchThreads.Responses.$200>
|
|
752
|
+
}
|
|
753
|
+
['/threads']: {
|
|
754
|
+
/**
|
|
755
|
+
* updateThread - updateThread
|
|
756
|
+
*
|
|
757
|
+
* Modify the thread.
|
|
758
|
+
*/
|
|
759
|
+
'put'(
|
|
760
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
761
|
+
data?: Paths.UpdateThread.RequestBody,
|
|
762
|
+
config?: AxiosRequestConfig
|
|
763
|
+
): OperationResponse<any>
|
|
764
|
+
}
|
|
765
|
+
['/threads/{id}']: {
|
|
766
|
+
/**
|
|
767
|
+
* deleteThread - deleteThread
|
|
768
|
+
*
|
|
769
|
+
* Immediately and permanently deletes the specified thread. This operation cannot be undone.
|
|
770
|
+
*/
|
|
771
|
+
'delete'(
|
|
772
|
+
parameters?: Parameters<Paths.DeleteThread.PathParameters> | null,
|
|
773
|
+
data?: any,
|
|
774
|
+
config?: AxiosRequestConfig
|
|
775
|
+
): OperationResponse<any>
|
|
776
|
+
}
|
|
777
|
+
['/attachments/upload-url']: {
|
|
778
|
+
/**
|
|
779
|
+
* createAttachmentUploadUrl - createAttachmentUploadUrl
|
|
780
|
+
*
|
|
781
|
+
* Create S3 POST presigned URL to upload attachment. The URL is valid in 30 minutes. Maximum file size is 100MB.
|
|
782
|
+
*/
|
|
783
|
+
'post'(
|
|
784
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
785
|
+
data?: Paths.CreateAttachmentUploadUrl.RequestBody,
|
|
786
|
+
config?: AxiosRequestConfig
|
|
787
|
+
): OperationResponse<Paths.CreateAttachmentUploadUrl.Responses.$200>
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|