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