@epilot/message-client 1.0.0 → 1.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 +1 -1
- package/dist/definition.js +1 -1
- package/dist/openapi.d.ts +477 -126
- package/dist/openapi.json +1850 -1208
- package/package-lock.json +8358 -0
- package/package.json +2 -2
package/dist/openapi.d.ts
CHANGED
|
@@ -36,89 +36,6 @@ declare namespace Components {
|
|
|
36
36
|
send_error?: {
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
export interface Attachment {
|
|
40
|
-
/**
|
|
41
|
-
* Attachment ID
|
|
42
|
-
* example:
|
|
43
|
-
* f820ce3b-07b0-45ae-bcc6-babb2f53f79f
|
|
44
|
-
*/
|
|
45
|
-
cid?: string;
|
|
46
|
-
/**
|
|
47
|
-
* File name
|
|
48
|
-
* example:
|
|
49
|
-
* Produktinformationen_epilot360_Double_Opt_in.pdf
|
|
50
|
-
*/
|
|
51
|
-
filename: string;
|
|
52
|
-
/**
|
|
53
|
-
* File size in bytes
|
|
54
|
-
* example:
|
|
55
|
-
* 451349
|
|
56
|
-
*/
|
|
57
|
-
size: number;
|
|
58
|
-
/**
|
|
59
|
-
* Content type
|
|
60
|
-
* example:
|
|
61
|
-
* application/pdf
|
|
62
|
-
*/
|
|
63
|
-
content_type: string;
|
|
64
|
-
/**
|
|
65
|
-
* URL to download the attachment.
|
|
66
|
-
* example:
|
|
67
|
-
* https://go.epilot.cloud/attachments/3e7c616a-3e89-4f92-b4c5-ea5ab140e3dd/Produktinformationen_epilot360_Double_Opt_in.pdf
|
|
68
|
-
*/
|
|
69
|
-
url: string;
|
|
70
|
-
/**
|
|
71
|
-
* S3 bucket where file is stored
|
|
72
|
-
* example:
|
|
73
|
-
* 893487340562-message-attachment
|
|
74
|
-
*/
|
|
75
|
-
bucket: string;
|
|
76
|
-
/**
|
|
77
|
-
* S3 object apiKey
|
|
78
|
-
* example:
|
|
79
|
-
* attachments/3e7c616a-3e89-4f92-b4c5-ea5ab140e3dd/Produktinformationen_epilot360_Double_Opt_in.pdf
|
|
80
|
-
*/
|
|
81
|
-
object_key: string;
|
|
82
|
-
/**
|
|
83
|
-
* If true then this attachment should not be offered for download (at least not in the main attachments list).\
|
|
84
|
-
* The usecase is CID embedded image (aka inline image).
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
|
-
inline?: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* 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.
|
|
90
|
-
*/
|
|
91
|
-
send_as_link?: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* If true then this attachment is copied to the message and replaces corresponding one. The new attachment has different `url`, `object_key`. This property supports for forwarding message and copying attachments from email template.\
|
|
94
|
-
* If both `send_as_link` and `copy_to_message` are provided, `copy_to_message` is discarded.
|
|
95
|
-
*
|
|
96
|
-
*/
|
|
97
|
-
copy_to_message?: boolean;
|
|
98
|
-
}
|
|
99
|
-
export interface AttachmentUploadUrl {
|
|
100
|
-
/**
|
|
101
|
-
* URL to download the attachment. This URL is not accessible until attachment is uploaded successfully.
|
|
102
|
-
* example:
|
|
103
|
-
* https://go.epilot.cloud/attachments/3e7c616a-3e89-4f92-b4c5-ea5ab140e3dd/Produktinformationen_epilot360_Double_Opt_in.pdf
|
|
104
|
-
*/
|
|
105
|
-
download_url: string;
|
|
106
|
-
upload_url: {
|
|
107
|
-
/**
|
|
108
|
-
* URL to upload the attachment
|
|
109
|
-
* example:
|
|
110
|
-
* https://s3.eu-central-1.amazonaws.com/893487340562-message-attachment
|
|
111
|
-
*/
|
|
112
|
-
url: number;
|
|
113
|
-
/**
|
|
114
|
-
* Fields are provided by AWS to authenticate and validate the request. All fields should be included in form-data when performing upload request.
|
|
115
|
-
* example:
|
|
116
|
-
* {}
|
|
117
|
-
*/
|
|
118
|
-
fields: {
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
39
|
export interface BaseEntity {
|
|
123
40
|
/**
|
|
124
41
|
* Entity ID
|
|
@@ -164,19 +81,49 @@ declare namespace Components {
|
|
|
164
81
|
*/
|
|
165
82
|
_updated_at: string; // date-time
|
|
166
83
|
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
* Produktinformationen_epilot360_Double_Opt_in.pdf
|
|
172
|
-
*/
|
|
173
|
-
filename: string;
|
|
84
|
+
/**
|
|
85
|
+
* Message attachments
|
|
86
|
+
*/
|
|
87
|
+
export interface File {
|
|
174
88
|
/**
|
|
175
|
-
*
|
|
176
|
-
* example:
|
|
177
|
-
* application/pdf
|
|
89
|
+
* It's normal entity relation with some additional properties for sending message attachment.
|
|
178
90
|
*/
|
|
179
|
-
|
|
91
|
+
$relation?: {
|
|
92
|
+
/**
|
|
93
|
+
* File entity ID
|
|
94
|
+
* example:
|
|
95
|
+
* f820ce3b-07b0-45ae-bcc6-babb2f53f79f
|
|
96
|
+
*/
|
|
97
|
+
entity_id: string;
|
|
98
|
+
/**
|
|
99
|
+
* File name
|
|
100
|
+
* example:
|
|
101
|
+
* Produktinformationen_epilot360_Double_Opt_in.pdf
|
|
102
|
+
*/
|
|
103
|
+
filename?: string;
|
|
104
|
+
/**
|
|
105
|
+
* To indicate this file relation is message attachment. If false then this file will not be sent.
|
|
106
|
+
*/
|
|
107
|
+
is_message_attachment?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Content ID
|
|
110
|
+
* example:
|
|
111
|
+
* fb222496-a1a5-4639-94f2-07b5e35e4068
|
|
112
|
+
*/
|
|
113
|
+
cid?: string;
|
|
114
|
+
/**
|
|
115
|
+
* If true then this attachment should not be offered for download (at least not in the main attachments list).\
|
|
116
|
+
* The usecase is CID embedded image (aka inline image).
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
inline?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* If true then this attachment is sent via link. The link have to be inserted to email body by API caller.\
|
|
122
|
+
* In this case, service doesn't process this attachment.
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
send_as_link?: boolean;
|
|
126
|
+
}[];
|
|
180
127
|
}
|
|
181
128
|
export interface Message {
|
|
182
129
|
/**
|
|
@@ -223,10 +170,7 @@ declare namespace Components {
|
|
|
223
170
|
* Bcc email addresses
|
|
224
171
|
*/
|
|
225
172
|
bcc?: Address[];
|
|
226
|
-
|
|
227
|
-
* Message attachments
|
|
228
|
-
*/
|
|
229
|
-
attachments?: Attachment[];
|
|
173
|
+
file?: File;
|
|
230
174
|
/**
|
|
231
175
|
* References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent.\
|
|
232
176
|
* The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread.\
|
|
@@ -247,6 +191,10 @@ declare namespace Components {
|
|
|
247
191
|
* Ivy User ID of user read the message.
|
|
248
192
|
*/
|
|
249
193
|
user_read_message?: string[];
|
|
194
|
+
/**
|
|
195
|
+
* Ivy Organization ID of organization read the message.
|
|
196
|
+
*/
|
|
197
|
+
org_read_message?: string[];
|
|
250
198
|
/**
|
|
251
199
|
* Sent message status. The array contains sending message status corresponding to all recipients. For more detail, check `send_status` of each recipient in `to`, `cc`, `bcc`\
|
|
252
200
|
* Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
|
|
@@ -324,10 +272,7 @@ declare namespace Components {
|
|
|
324
272
|
* Bcc email addresses
|
|
325
273
|
*/
|
|
326
274
|
bcc?: Address[];
|
|
327
|
-
|
|
328
|
-
* Message attachments
|
|
329
|
-
*/
|
|
330
|
-
attachments?: Attachment[];
|
|
275
|
+
file?: File;
|
|
331
276
|
}
|
|
332
277
|
export interface SearchParams {
|
|
333
278
|
/**
|
|
@@ -353,6 +298,10 @@ declare namespace Components {
|
|
|
353
298
|
* Ivy User ID of who the message is assigned to. Default is the user who sends message.
|
|
354
299
|
*/
|
|
355
300
|
assigned_to?: string[];
|
|
301
|
+
/**
|
|
302
|
+
* Ivy Organization ID of organization read the message.
|
|
303
|
+
*/
|
|
304
|
+
org_read_message?: string[];
|
|
356
305
|
/**
|
|
357
306
|
* Latest message of thread
|
|
358
307
|
*/
|
|
@@ -365,10 +314,133 @@ declare namespace Components {
|
|
|
365
314
|
}
|
|
366
315
|
}
|
|
367
316
|
declare namespace Paths {
|
|
368
|
-
namespace
|
|
369
|
-
export type RequestBody = Components.Schemas.
|
|
317
|
+
namespace CreateDraft {
|
|
318
|
+
export type RequestBody = Components.Schemas.MessageRequestParams;
|
|
370
319
|
namespace Responses {
|
|
371
|
-
export
|
|
320
|
+
export interface $201 {
|
|
321
|
+
/**
|
|
322
|
+
* Entity ID
|
|
323
|
+
* example:
|
|
324
|
+
* 3fa85f64-5717-4562-b3fc-2c963f66afa6
|
|
325
|
+
*/
|
|
326
|
+
_id: string;
|
|
327
|
+
/**
|
|
328
|
+
* Entity title
|
|
329
|
+
*/
|
|
330
|
+
_title: string;
|
|
331
|
+
/**
|
|
332
|
+
* Ivy Organization ID the entity belongs to
|
|
333
|
+
* example:
|
|
334
|
+
* 206801
|
|
335
|
+
*/
|
|
336
|
+
_org: string;
|
|
337
|
+
/**
|
|
338
|
+
* URL-friendly identifier for the entity schema
|
|
339
|
+
* example:
|
|
340
|
+
* message
|
|
341
|
+
*/
|
|
342
|
+
_schema: string;
|
|
343
|
+
/**
|
|
344
|
+
* Entity tags
|
|
345
|
+
* example:
|
|
346
|
+
* [
|
|
347
|
+
* "pricing",
|
|
348
|
+
* "INBOX"
|
|
349
|
+
* ]
|
|
350
|
+
*/
|
|
351
|
+
_tags?: string[];
|
|
352
|
+
/**
|
|
353
|
+
* Created date
|
|
354
|
+
* example:
|
|
355
|
+
* "2021-02-09T12:41:43.662Z"
|
|
356
|
+
*/
|
|
357
|
+
_created_at: string; // date-time
|
|
358
|
+
/**
|
|
359
|
+
* Updated date
|
|
360
|
+
* example:
|
|
361
|
+
* "2021-02-10T09:14:31.990Z"
|
|
362
|
+
*/
|
|
363
|
+
_updated_at: string; // date-time
|
|
364
|
+
/**
|
|
365
|
+
* Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.
|
|
366
|
+
* example:
|
|
367
|
+
* <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>
|
|
368
|
+
*/
|
|
369
|
+
message_id?: string;
|
|
370
|
+
/**
|
|
371
|
+
* Ivy User ID of user sends the message.
|
|
372
|
+
* example:
|
|
373
|
+
* 206801
|
|
374
|
+
*/
|
|
375
|
+
sender?: string;
|
|
376
|
+
/**
|
|
377
|
+
* Subject
|
|
378
|
+
* example:
|
|
379
|
+
* Request for solar panel price
|
|
380
|
+
*/
|
|
381
|
+
subject: string;
|
|
382
|
+
/**
|
|
383
|
+
* HTML body
|
|
384
|
+
* example:
|
|
385
|
+
* <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
|
|
386
|
+
*/
|
|
387
|
+
html?: string;
|
|
388
|
+
/**
|
|
389
|
+
* Text body
|
|
390
|
+
* example:
|
|
391
|
+
* We at ABC GmbH would like to request a price quote for the solar panel.
|
|
392
|
+
*/
|
|
393
|
+
text?: string;
|
|
394
|
+
from: Components.Schemas.Address;
|
|
395
|
+
reply_to?: Components.Schemas.Address;
|
|
396
|
+
/**
|
|
397
|
+
* To email addresses
|
|
398
|
+
*/
|
|
399
|
+
to?: Components.Schemas.Address[];
|
|
400
|
+
/**
|
|
401
|
+
* Cc email addresses
|
|
402
|
+
*/
|
|
403
|
+
cc?: Components.Schemas.Address[];
|
|
404
|
+
/**
|
|
405
|
+
* Bcc email addresses
|
|
406
|
+
*/
|
|
407
|
+
bcc?: Components.Schemas.Address[];
|
|
408
|
+
file?: Components.Schemas.File;
|
|
409
|
+
/**
|
|
410
|
+
* References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent.\
|
|
411
|
+
* The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread.\
|
|
412
|
+
* The basic idea is that sender should copy `references` from the parent and append the parent's `message_id` when replying.
|
|
413
|
+
*
|
|
414
|
+
* example:
|
|
415
|
+
* <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
|
|
416
|
+
*/
|
|
417
|
+
references?: string;
|
|
418
|
+
/**
|
|
419
|
+
* In-Reply-To header. Value is the `message_id` of parent message.
|
|
420
|
+
*
|
|
421
|
+
* example:
|
|
422
|
+
* <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
|
|
423
|
+
*/
|
|
424
|
+
in_reply_to?: string;
|
|
425
|
+
/**
|
|
426
|
+
* Ivy User ID of user read the message.
|
|
427
|
+
*/
|
|
428
|
+
user_read_message?: string[];
|
|
429
|
+
/**
|
|
430
|
+
* Ivy Organization ID of organization read the message.
|
|
431
|
+
*/
|
|
432
|
+
org_read_message?: string[];
|
|
433
|
+
/**
|
|
434
|
+
* Sent message status. The array contains sending message status corresponding to all recipients. For more detail, check `send_status` of each recipient in `to`, `cc`, `bcc`\
|
|
435
|
+
* Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
|
|
436
|
+
*
|
|
437
|
+
*/
|
|
438
|
+
send_status?: ("SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR")[];
|
|
439
|
+
/**
|
|
440
|
+
* Message type
|
|
441
|
+
*/
|
|
442
|
+
type?: "SENT" | "RECEIVED";
|
|
443
|
+
}
|
|
372
444
|
}
|
|
373
445
|
}
|
|
374
446
|
namespace DeleteMessage {
|
|
@@ -387,6 +459,38 @@ declare namespace Paths {
|
|
|
387
459
|
id: Parameters.Id;
|
|
388
460
|
}
|
|
389
461
|
}
|
|
462
|
+
namespace MarkReadMessage {
|
|
463
|
+
namespace Parameters {
|
|
464
|
+
export type Id = string;
|
|
465
|
+
}
|
|
466
|
+
export interface PathParameters {
|
|
467
|
+
id: Parameters.Id;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
namespace MarkReadThread {
|
|
471
|
+
namespace Parameters {
|
|
472
|
+
export type Id = string;
|
|
473
|
+
}
|
|
474
|
+
export interface PathParameters {
|
|
475
|
+
id: Parameters.Id;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
namespace MarkUnreadMessage {
|
|
479
|
+
namespace Parameters {
|
|
480
|
+
export type Id = string;
|
|
481
|
+
}
|
|
482
|
+
export interface PathParameters {
|
|
483
|
+
id: Parameters.Id;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
namespace MarkUnreadThread {
|
|
487
|
+
namespace Parameters {
|
|
488
|
+
export type Id = string;
|
|
489
|
+
}
|
|
490
|
+
export interface PathParameters {
|
|
491
|
+
id: Parameters.Id;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
390
494
|
namespace SearchThreads {
|
|
391
495
|
export type RequestBody = Components.Schemas.SearchParams;
|
|
392
496
|
namespace Responses {
|
|
@@ -454,6 +558,10 @@ declare namespace Paths {
|
|
|
454
558
|
* Ivy User ID of who the message is assigned to. Default is the user who sends message.
|
|
455
559
|
*/
|
|
456
560
|
assigned_to?: string[];
|
|
561
|
+
/**
|
|
562
|
+
* Ivy Organization ID of organization read the message.
|
|
563
|
+
*/
|
|
564
|
+
org_read_message?: string[];
|
|
457
565
|
/**
|
|
458
566
|
* Latest message of thread
|
|
459
567
|
*/
|
|
@@ -466,8 +574,7 @@ declare namespace Paths {
|
|
|
466
574
|
}
|
|
467
575
|
}
|
|
468
576
|
}
|
|
469
|
-
namespace
|
|
470
|
-
export type RequestBody = Components.Schemas.MessageRequestParams;
|
|
577
|
+
namespace SendDraft {
|
|
471
578
|
namespace Responses {
|
|
472
579
|
export interface $201 {
|
|
473
580
|
/**
|
|
@@ -557,10 +664,136 @@ declare namespace Paths {
|
|
|
557
664
|
* Bcc email addresses
|
|
558
665
|
*/
|
|
559
666
|
bcc?: Components.Schemas.Address[];
|
|
667
|
+
file?: Components.Schemas.File;
|
|
668
|
+
/**
|
|
669
|
+
* References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent.\
|
|
670
|
+
* The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread.\
|
|
671
|
+
* The basic idea is that sender should copy `references` from the parent and append the parent's `message_id` when replying.
|
|
672
|
+
*
|
|
673
|
+
* example:
|
|
674
|
+
* <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
|
|
675
|
+
*/
|
|
676
|
+
references?: string;
|
|
677
|
+
/**
|
|
678
|
+
* In-Reply-To header. Value is the `message_id` of parent message.
|
|
679
|
+
*
|
|
680
|
+
* example:
|
|
681
|
+
* <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
|
|
682
|
+
*/
|
|
683
|
+
in_reply_to?: string;
|
|
684
|
+
/**
|
|
685
|
+
* Ivy User ID of user read the message.
|
|
686
|
+
*/
|
|
687
|
+
user_read_message?: string[];
|
|
688
|
+
/**
|
|
689
|
+
* Ivy Organization ID of organization read the message.
|
|
690
|
+
*/
|
|
691
|
+
org_read_message?: string[];
|
|
692
|
+
/**
|
|
693
|
+
* Sent message status. The array contains sending message status corresponding to all recipients. For more detail, check `send_status` of each recipient in `to`, `cc`, `bcc`\
|
|
694
|
+
* Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
|
|
695
|
+
*
|
|
696
|
+
*/
|
|
697
|
+
send_status?: ("SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR")[];
|
|
698
|
+
/**
|
|
699
|
+
* Message type
|
|
700
|
+
*/
|
|
701
|
+
type?: "SENT" | "RECEIVED";
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
namespace SendMessage {
|
|
706
|
+
export type RequestBody = Components.Schemas.MessageRequestParams;
|
|
707
|
+
namespace Responses {
|
|
708
|
+
export interface $201 {
|
|
709
|
+
/**
|
|
710
|
+
* Entity ID
|
|
711
|
+
* example:
|
|
712
|
+
* 3fa85f64-5717-4562-b3fc-2c963f66afa6
|
|
713
|
+
*/
|
|
714
|
+
_id: string;
|
|
715
|
+
/**
|
|
716
|
+
* Entity title
|
|
717
|
+
*/
|
|
718
|
+
_title: string;
|
|
719
|
+
/**
|
|
720
|
+
* Ivy Organization ID the entity belongs to
|
|
721
|
+
* example:
|
|
722
|
+
* 206801
|
|
723
|
+
*/
|
|
724
|
+
_org: string;
|
|
725
|
+
/**
|
|
726
|
+
* URL-friendly identifier for the entity schema
|
|
727
|
+
* example:
|
|
728
|
+
* message
|
|
729
|
+
*/
|
|
730
|
+
_schema: string;
|
|
731
|
+
/**
|
|
732
|
+
* Entity tags
|
|
733
|
+
* example:
|
|
734
|
+
* [
|
|
735
|
+
* "pricing",
|
|
736
|
+
* "INBOX"
|
|
737
|
+
* ]
|
|
738
|
+
*/
|
|
739
|
+
_tags?: string[];
|
|
560
740
|
/**
|
|
561
|
-
*
|
|
741
|
+
* Created date
|
|
742
|
+
* example:
|
|
743
|
+
* "2021-02-09T12:41:43.662Z"
|
|
744
|
+
*/
|
|
745
|
+
_created_at: string; // date-time
|
|
746
|
+
/**
|
|
747
|
+
* Updated date
|
|
748
|
+
* example:
|
|
749
|
+
* "2021-02-10T09:14:31.990Z"
|
|
562
750
|
*/
|
|
563
|
-
|
|
751
|
+
_updated_at: string; // date-time
|
|
752
|
+
/**
|
|
753
|
+
* Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.
|
|
754
|
+
* example:
|
|
755
|
+
* <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>
|
|
756
|
+
*/
|
|
757
|
+
message_id?: string;
|
|
758
|
+
/**
|
|
759
|
+
* Ivy User ID of user sends the message.
|
|
760
|
+
* example:
|
|
761
|
+
* 206801
|
|
762
|
+
*/
|
|
763
|
+
sender?: string;
|
|
764
|
+
/**
|
|
765
|
+
* Subject
|
|
766
|
+
* example:
|
|
767
|
+
* Request for solar panel price
|
|
768
|
+
*/
|
|
769
|
+
subject: string;
|
|
770
|
+
/**
|
|
771
|
+
* HTML body
|
|
772
|
+
* example:
|
|
773
|
+
* <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
|
|
774
|
+
*/
|
|
775
|
+
html?: string;
|
|
776
|
+
/**
|
|
777
|
+
* Text body
|
|
778
|
+
* example:
|
|
779
|
+
* We at ABC GmbH would like to request a price quote for the solar panel.
|
|
780
|
+
*/
|
|
781
|
+
text?: string;
|
|
782
|
+
from: Components.Schemas.Address;
|
|
783
|
+
reply_to?: Components.Schemas.Address;
|
|
784
|
+
/**
|
|
785
|
+
* To email addresses
|
|
786
|
+
*/
|
|
787
|
+
to?: Components.Schemas.Address[];
|
|
788
|
+
/**
|
|
789
|
+
* Cc email addresses
|
|
790
|
+
*/
|
|
791
|
+
cc?: Components.Schemas.Address[];
|
|
792
|
+
/**
|
|
793
|
+
* Bcc email addresses
|
|
794
|
+
*/
|
|
795
|
+
bcc?: Components.Schemas.Address[];
|
|
796
|
+
file?: Components.Schemas.File;
|
|
564
797
|
/**
|
|
565
798
|
* References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent.\
|
|
566
799
|
* The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread.\
|
|
@@ -581,6 +814,10 @@ declare namespace Paths {
|
|
|
581
814
|
* Ivy User ID of user read the message.
|
|
582
815
|
*/
|
|
583
816
|
user_read_message?: string[];
|
|
817
|
+
/**
|
|
818
|
+
* Ivy Organization ID of organization read the message.
|
|
819
|
+
*/
|
|
820
|
+
org_read_message?: string[];
|
|
584
821
|
/**
|
|
585
822
|
* Sent message status. The array contains sending message status corresponding to all recipients. For more detail, check `send_status` of each recipient in `to`, `cc`, `bcc`\
|
|
586
823
|
* Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
|
|
@@ -627,7 +864,6 @@ declare namespace Paths {
|
|
|
627
864
|
}
|
|
628
865
|
}
|
|
629
866
|
namespace UpdateMessage {
|
|
630
|
-
export type RequestBody = Components.Schemas.Message;
|
|
631
867
|
namespace Responses {
|
|
632
868
|
export interface $201 {
|
|
633
869
|
/**
|
|
@@ -717,10 +953,7 @@ declare namespace Paths {
|
|
|
717
953
|
* Bcc email addresses
|
|
718
954
|
*/
|
|
719
955
|
bcc?: Components.Schemas.Address[];
|
|
720
|
-
|
|
721
|
-
* Message attachments
|
|
722
|
-
*/
|
|
723
|
-
attachments?: Components.Schemas.Attachment[];
|
|
956
|
+
file?: Components.Schemas.File;
|
|
724
957
|
/**
|
|
725
958
|
* References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent.\
|
|
726
959
|
* The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread.\
|
|
@@ -741,6 +974,10 @@ declare namespace Paths {
|
|
|
741
974
|
* Ivy User ID of user read the message.
|
|
742
975
|
*/
|
|
743
976
|
user_read_message?: string[];
|
|
977
|
+
/**
|
|
978
|
+
* Ivy Organization ID of organization read the message.
|
|
979
|
+
*/
|
|
980
|
+
org_read_message?: string[];
|
|
744
981
|
/**
|
|
745
982
|
* Sent message status. The array contains sending message status corresponding to all recipients. For more detail, check `send_status` of each recipient in `to`, `cc`, `bcc`\
|
|
746
983
|
* Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
|
|
@@ -813,6 +1050,10 @@ declare namespace Paths {
|
|
|
813
1050
|
* Ivy User ID of who the message is assigned to. Default is the user who sends message.
|
|
814
1051
|
*/
|
|
815
1052
|
assigned_to?: string[];
|
|
1053
|
+
/**
|
|
1054
|
+
* Ivy Organization ID of organization read the message.
|
|
1055
|
+
*/
|
|
1056
|
+
org_read_message?: string[];
|
|
816
1057
|
/**
|
|
817
1058
|
* Latest message of thread
|
|
818
1059
|
*/
|
|
@@ -834,7 +1075,7 @@ export interface OperationMethods {
|
|
|
834
1075
|
*/
|
|
835
1076
|
'updateMessage'(
|
|
836
1077
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
837
|
-
data?:
|
|
1078
|
+
data?: any,
|
|
838
1079
|
config?: AxiosRequestConfig
|
|
839
1080
|
): OperationResponse<Paths.UpdateMessage.Responses.$201>
|
|
840
1081
|
/**
|
|
@@ -877,6 +1118,26 @@ export interface OperationMethods {
|
|
|
877
1118
|
data?: any,
|
|
878
1119
|
config?: AxiosRequestConfig
|
|
879
1120
|
): OperationResponse<any>
|
|
1121
|
+
/**
|
|
1122
|
+
* markReadMessage - markReadMessage
|
|
1123
|
+
*
|
|
1124
|
+
* Mark message as read
|
|
1125
|
+
*/
|
|
1126
|
+
'markReadMessage'(
|
|
1127
|
+
parameters?: Parameters<Paths.MarkReadMessage.PathParameters> | null,
|
|
1128
|
+
data?: any,
|
|
1129
|
+
config?: AxiosRequestConfig
|
|
1130
|
+
): OperationResponse<any>
|
|
1131
|
+
/**
|
|
1132
|
+
* markUnreadMessage - markUnreadMessage
|
|
1133
|
+
*
|
|
1134
|
+
* Mark message as unread
|
|
1135
|
+
*/
|
|
1136
|
+
'markUnreadMessage'(
|
|
1137
|
+
parameters?: Parameters<Paths.MarkUnreadMessage.PathParameters> | null,
|
|
1138
|
+
data?: any,
|
|
1139
|
+
config?: AxiosRequestConfig
|
|
1140
|
+
): OperationResponse<any>
|
|
880
1141
|
/**
|
|
881
1142
|
* searchThreads - searchThreads
|
|
882
1143
|
*
|
|
@@ -933,15 +1194,45 @@ export interface OperationMethods {
|
|
|
933
1194
|
config?: AxiosRequestConfig
|
|
934
1195
|
): OperationResponse<any>
|
|
935
1196
|
/**
|
|
936
|
-
*
|
|
1197
|
+
* markReadThread - markReadThread
|
|
1198
|
+
*
|
|
1199
|
+
* Mark thread as read
|
|
1200
|
+
*/
|
|
1201
|
+
'markReadThread'(
|
|
1202
|
+
parameters?: Parameters<Paths.MarkReadThread.PathParameters> | null,
|
|
1203
|
+
data?: any,
|
|
1204
|
+
config?: AxiosRequestConfig
|
|
1205
|
+
): OperationResponse<any>
|
|
1206
|
+
/**
|
|
1207
|
+
* markUnreadThread - markUnreadThread
|
|
937
1208
|
*
|
|
938
|
-
*
|
|
1209
|
+
* Mark thread as unread
|
|
939
1210
|
*/
|
|
940
|
-
'
|
|
1211
|
+
'markUnreadThread'(
|
|
1212
|
+
parameters?: Parameters<Paths.MarkUnreadThread.PathParameters> | null,
|
|
1213
|
+
data?: any,
|
|
1214
|
+
config?: AxiosRequestConfig
|
|
1215
|
+
): OperationResponse<any>
|
|
1216
|
+
/**
|
|
1217
|
+
* createDraft - createDraft
|
|
1218
|
+
*
|
|
1219
|
+
* Create a new draft
|
|
1220
|
+
*/
|
|
1221
|
+
'createDraft'(
|
|
1222
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1223
|
+
data?: Paths.CreateDraft.RequestBody,
|
|
1224
|
+
config?: AxiosRequestConfig
|
|
1225
|
+
): OperationResponse<Paths.CreateDraft.Responses.$201>
|
|
1226
|
+
/**
|
|
1227
|
+
* sendDraft - sendDraft
|
|
1228
|
+
*
|
|
1229
|
+
* Send the existing draft to the recipients
|
|
1230
|
+
*/
|
|
1231
|
+
'sendDraft'(
|
|
941
1232
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
942
|
-
data?:
|
|
1233
|
+
data?: any,
|
|
943
1234
|
config?: AxiosRequestConfig
|
|
944
|
-
): OperationResponse<Paths.
|
|
1235
|
+
): OperationResponse<Paths.SendDraft.Responses.$201>
|
|
945
1236
|
}
|
|
946
1237
|
|
|
947
1238
|
export interface PathsDictionary {
|
|
@@ -963,7 +1254,7 @@ export interface PathsDictionary {
|
|
|
963
1254
|
*/
|
|
964
1255
|
'put'(
|
|
965
1256
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
966
|
-
data?:
|
|
1257
|
+
data?: any,
|
|
967
1258
|
config?: AxiosRequestConfig
|
|
968
1259
|
): OperationResponse<Paths.UpdateMessage.Responses.$201>
|
|
969
1260
|
}
|
|
@@ -1003,6 +1294,30 @@ export interface PathsDictionary {
|
|
|
1003
1294
|
config?: AxiosRequestConfig
|
|
1004
1295
|
): OperationResponse<any>
|
|
1005
1296
|
}
|
|
1297
|
+
['/v1/message/messages/{id}/read']: {
|
|
1298
|
+
/**
|
|
1299
|
+
* markReadMessage - markReadMessage
|
|
1300
|
+
*
|
|
1301
|
+
* Mark message as read
|
|
1302
|
+
*/
|
|
1303
|
+
'post'(
|
|
1304
|
+
parameters?: Parameters<Paths.MarkReadMessage.PathParameters> | null,
|
|
1305
|
+
data?: any,
|
|
1306
|
+
config?: AxiosRequestConfig
|
|
1307
|
+
): OperationResponse<any>
|
|
1308
|
+
}
|
|
1309
|
+
['/v1/message/messages/{id}/unread']: {
|
|
1310
|
+
/**
|
|
1311
|
+
* markUnreadMessage - markUnreadMessage
|
|
1312
|
+
*
|
|
1313
|
+
* Mark message as unread
|
|
1314
|
+
*/
|
|
1315
|
+
'post'(
|
|
1316
|
+
parameters?: Parameters<Paths.MarkUnreadMessage.PathParameters> | null,
|
|
1317
|
+
data?: any,
|
|
1318
|
+
config?: AxiosRequestConfig
|
|
1319
|
+
): OperationResponse<any>
|
|
1320
|
+
}
|
|
1006
1321
|
['/v1/message/threads:search']: {
|
|
1007
1322
|
/**
|
|
1008
1323
|
* searchThreads - searchThreads
|
|
@@ -1068,17 +1383,53 @@ export interface PathsDictionary {
|
|
|
1068
1383
|
config?: AxiosRequestConfig
|
|
1069
1384
|
): OperationResponse<any>
|
|
1070
1385
|
}
|
|
1071
|
-
['/v1/message/
|
|
1386
|
+
['/v1/message/threads/{id}/read']: {
|
|
1387
|
+
/**
|
|
1388
|
+
* markReadThread - markReadThread
|
|
1389
|
+
*
|
|
1390
|
+
* Mark thread as read
|
|
1391
|
+
*/
|
|
1392
|
+
'post'(
|
|
1393
|
+
parameters?: Parameters<Paths.MarkReadThread.PathParameters> | null,
|
|
1394
|
+
data?: any,
|
|
1395
|
+
config?: AxiosRequestConfig
|
|
1396
|
+
): OperationResponse<any>
|
|
1397
|
+
}
|
|
1398
|
+
['/v1/message/threads/{id}/unread']: {
|
|
1399
|
+
/**
|
|
1400
|
+
* markUnreadThread - markUnreadThread
|
|
1401
|
+
*
|
|
1402
|
+
* Mark thread as unread
|
|
1403
|
+
*/
|
|
1404
|
+
'post'(
|
|
1405
|
+
parameters?: Parameters<Paths.MarkUnreadThread.PathParameters> | null,
|
|
1406
|
+
data?: any,
|
|
1407
|
+
config?: AxiosRequestConfig
|
|
1408
|
+
): OperationResponse<any>
|
|
1409
|
+
}
|
|
1410
|
+
['/v1/message/drafts']: {
|
|
1072
1411
|
/**
|
|
1073
|
-
*
|
|
1412
|
+
* createDraft - createDraft
|
|
1074
1413
|
*
|
|
1075
|
-
* Create
|
|
1414
|
+
* Create a new draft
|
|
1076
1415
|
*/
|
|
1077
1416
|
'post'(
|
|
1078
1417
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1079
|
-
data?: Paths.
|
|
1418
|
+
data?: Paths.CreateDraft.RequestBody,
|
|
1419
|
+
config?: AxiosRequestConfig
|
|
1420
|
+
): OperationResponse<Paths.CreateDraft.Responses.$201>
|
|
1421
|
+
}
|
|
1422
|
+
['/v1/message/drafts:send']: {
|
|
1423
|
+
/**
|
|
1424
|
+
* sendDraft - sendDraft
|
|
1425
|
+
*
|
|
1426
|
+
* Send the existing draft to the recipients
|
|
1427
|
+
*/
|
|
1428
|
+
'post'(
|
|
1429
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1430
|
+
data?: any,
|
|
1080
1431
|
config?: AxiosRequestConfig
|
|
1081
|
-
): OperationResponse<Paths.
|
|
1432
|
+
): OperationResponse<Paths.SendDraft.Responses.$201>
|
|
1082
1433
|
}
|
|
1083
1434
|
}
|
|
1084
1435
|
|