@epilot/message-client 0.0.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definition.js +1 -1
- package/dist/openapi.d.ts +330 -36
- package/dist/openapi.json +2446 -746
- package/package.json +2 -2
- package/package-lock.json +0 -8340
package/dist/openapi.d.ts
CHANGED
|
@@ -22,6 +22,19 @@ declare namespace Components {
|
|
|
22
22
|
* messaging@epilot.cloud
|
|
23
23
|
*/
|
|
24
24
|
address: string;
|
|
25
|
+
/**
|
|
26
|
+
* Sent message status regarding to this recipient.\
|
|
27
|
+
* Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
send_status?: "SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR";
|
|
31
|
+
/**
|
|
32
|
+
* Information about reject, complaint or bounce event. Only available if `send_status` is REJECT, COMPLAINT, BOUNCE or ERROR.\
|
|
33
|
+
* JSON object is defined by AWS SES. Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/notification-contents.html>
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
send_error?: {
|
|
37
|
+
};
|
|
25
38
|
}
|
|
26
39
|
export interface Attachment {
|
|
27
40
|
/**
|
|
@@ -77,7 +90,7 @@ declare namespace Components {
|
|
|
77
90
|
*/
|
|
78
91
|
send_as_link?: boolean;
|
|
79
92
|
/**
|
|
80
|
-
* If true then this attachment is copied to the message and replaces corresponding one. The new attachment has different `
|
|
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.\
|
|
81
94
|
* If both `send_as_link` and `copy_to_message` are provided, `copy_to_message` is discarded.
|
|
82
95
|
*
|
|
83
96
|
*/
|
|
@@ -235,11 +248,11 @@ declare namespace Components {
|
|
|
235
248
|
*/
|
|
236
249
|
user_read_message?: string[];
|
|
237
250
|
/**
|
|
238
|
-
*
|
|
251
|
+
* 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`\
|
|
239
252
|
* Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
|
|
240
253
|
*
|
|
241
254
|
*/
|
|
242
|
-
|
|
255
|
+
send_status?: ("SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR")[];
|
|
243
256
|
/**
|
|
244
257
|
* Message type
|
|
245
258
|
*/
|
|
@@ -292,7 +305,7 @@ declare namespace Components {
|
|
|
292
305
|
*/
|
|
293
306
|
html?: string;
|
|
294
307
|
/**
|
|
295
|
-
* Text body
|
|
308
|
+
* Text body. If not provided, text body is converted from HTML body using [html-to-text](https://www.npmjs.com/package/html-to-text)
|
|
296
309
|
* example:
|
|
297
310
|
* We at ABC GmbH would like to request a price quote for the solar panel.
|
|
298
311
|
*/
|
|
@@ -318,7 +331,7 @@ declare namespace Components {
|
|
|
318
331
|
}
|
|
319
332
|
export interface SearchParams {
|
|
320
333
|
/**
|
|
321
|
-
* Lucene
|
|
334
|
+
* Lucene query syntax supported with ElasticSearch
|
|
322
335
|
* example:
|
|
323
336
|
* subject:"Request for solar panel price" AND _tags:INBOX
|
|
324
337
|
*/
|
|
@@ -569,11 +582,11 @@ declare namespace Paths {
|
|
|
569
582
|
*/
|
|
570
583
|
user_read_message?: string[];
|
|
571
584
|
/**
|
|
572
|
-
*
|
|
585
|
+
* 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`\
|
|
573
586
|
* Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
|
|
574
587
|
*
|
|
575
588
|
*/
|
|
576
|
-
|
|
589
|
+
send_status?: ("SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR")[];
|
|
577
590
|
/**
|
|
578
591
|
* Message type
|
|
579
592
|
*/
|
|
@@ -589,6 +602,14 @@ declare namespace Paths {
|
|
|
589
602
|
id: Parameters.Id;
|
|
590
603
|
}
|
|
591
604
|
}
|
|
605
|
+
namespace TrashThread {
|
|
606
|
+
namespace Parameters {
|
|
607
|
+
export type Id = string;
|
|
608
|
+
}
|
|
609
|
+
export interface PathParameters {
|
|
610
|
+
id: Parameters.Id;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
592
613
|
namespace UntrashMessage {
|
|
593
614
|
namespace Parameters {
|
|
594
615
|
export type Id = string;
|
|
@@ -597,16 +618,229 @@ declare namespace Paths {
|
|
|
597
618
|
id: Parameters.Id;
|
|
598
619
|
}
|
|
599
620
|
}
|
|
621
|
+
namespace UntrashThread {
|
|
622
|
+
namespace Parameters {
|
|
623
|
+
export type Id = string;
|
|
624
|
+
}
|
|
625
|
+
export interface PathParameters {
|
|
626
|
+
id: Parameters.Id;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
namespace UpdateMessage {
|
|
630
|
+
export type RequestBody = Components.Schemas.Message;
|
|
631
|
+
namespace Responses {
|
|
632
|
+
export interface $201 {
|
|
633
|
+
/**
|
|
634
|
+
* Entity ID
|
|
635
|
+
* example:
|
|
636
|
+
* 3fa85f64-5717-4562-b3fc-2c963f66afa6
|
|
637
|
+
*/
|
|
638
|
+
_id: string;
|
|
639
|
+
/**
|
|
640
|
+
* Entity title
|
|
641
|
+
*/
|
|
642
|
+
_title: string;
|
|
643
|
+
/**
|
|
644
|
+
* Ivy Organization ID the entity belongs to
|
|
645
|
+
* example:
|
|
646
|
+
* 206801
|
|
647
|
+
*/
|
|
648
|
+
_org: string;
|
|
649
|
+
/**
|
|
650
|
+
* URL-friendly identifier for the entity schema
|
|
651
|
+
* example:
|
|
652
|
+
* message
|
|
653
|
+
*/
|
|
654
|
+
_schema: string;
|
|
655
|
+
/**
|
|
656
|
+
* Entity tags
|
|
657
|
+
* example:
|
|
658
|
+
* [
|
|
659
|
+
* "pricing",
|
|
660
|
+
* "INBOX"
|
|
661
|
+
* ]
|
|
662
|
+
*/
|
|
663
|
+
_tags?: string[];
|
|
664
|
+
/**
|
|
665
|
+
* Created date
|
|
666
|
+
* example:
|
|
667
|
+
* "2021-02-09T12:41:43.662Z"
|
|
668
|
+
*/
|
|
669
|
+
_created_at: string; // date-time
|
|
670
|
+
/**
|
|
671
|
+
* Updated date
|
|
672
|
+
* example:
|
|
673
|
+
* "2021-02-10T09:14:31.990Z"
|
|
674
|
+
*/
|
|
675
|
+
_updated_at: string; // date-time
|
|
676
|
+
/**
|
|
677
|
+
* Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.
|
|
678
|
+
* example:
|
|
679
|
+
* <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>
|
|
680
|
+
*/
|
|
681
|
+
message_id?: string;
|
|
682
|
+
/**
|
|
683
|
+
* Ivy User ID of user sends the message.
|
|
684
|
+
* example:
|
|
685
|
+
* 206801
|
|
686
|
+
*/
|
|
687
|
+
sender?: string;
|
|
688
|
+
/**
|
|
689
|
+
* Subject
|
|
690
|
+
* example:
|
|
691
|
+
* Request for solar panel price
|
|
692
|
+
*/
|
|
693
|
+
subject: string;
|
|
694
|
+
/**
|
|
695
|
+
* HTML body
|
|
696
|
+
* example:
|
|
697
|
+
* <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
|
|
698
|
+
*/
|
|
699
|
+
html?: string;
|
|
700
|
+
/**
|
|
701
|
+
* Text body
|
|
702
|
+
* example:
|
|
703
|
+
* We at ABC GmbH would like to request a price quote for the solar panel.
|
|
704
|
+
*/
|
|
705
|
+
text?: string;
|
|
706
|
+
from: Components.Schemas.Address;
|
|
707
|
+
reply_to?: Components.Schemas.Address;
|
|
708
|
+
/**
|
|
709
|
+
* To email addresses
|
|
710
|
+
*/
|
|
711
|
+
to?: Components.Schemas.Address[];
|
|
712
|
+
/**
|
|
713
|
+
* Cc email addresses
|
|
714
|
+
*/
|
|
715
|
+
cc?: Components.Schemas.Address[];
|
|
716
|
+
/**
|
|
717
|
+
* Bcc email addresses
|
|
718
|
+
*/
|
|
719
|
+
bcc?: Components.Schemas.Address[];
|
|
720
|
+
/**
|
|
721
|
+
* Message attachments
|
|
722
|
+
*/
|
|
723
|
+
attachments?: Components.Schemas.Attachment[];
|
|
724
|
+
/**
|
|
725
|
+
* References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent.\
|
|
726
|
+
* The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread.\
|
|
727
|
+
* The basic idea is that sender should copy `references` from the parent and append the parent's `message_id` when replying.
|
|
728
|
+
*
|
|
729
|
+
* example:
|
|
730
|
+
* <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
|
|
731
|
+
*/
|
|
732
|
+
references?: string;
|
|
733
|
+
/**
|
|
734
|
+
* In-Reply-To header. Value is the `message_id` of parent message.
|
|
735
|
+
*
|
|
736
|
+
* example:
|
|
737
|
+
* <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
|
|
738
|
+
*/
|
|
739
|
+
in_reply_to?: string;
|
|
740
|
+
/**
|
|
741
|
+
* Ivy User ID of user read the message.
|
|
742
|
+
*/
|
|
743
|
+
user_read_message?: string[];
|
|
744
|
+
/**
|
|
745
|
+
* 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
|
+
* Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
|
|
747
|
+
*
|
|
748
|
+
*/
|
|
749
|
+
send_status?: ("SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR")[];
|
|
750
|
+
/**
|
|
751
|
+
* Message type
|
|
752
|
+
*/
|
|
753
|
+
type?: "SENT" | "RECEIVED";
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}
|
|
600
757
|
namespace UpdateThread {
|
|
601
|
-
|
|
758
|
+
namespace Responses {
|
|
759
|
+
/**
|
|
760
|
+
* Thread properties depend on API caller as it's not pre-defined. We do recommend having at least `topic` property for categorizing.
|
|
761
|
+
*/
|
|
762
|
+
export interface $201 {
|
|
763
|
+
/**
|
|
764
|
+
* Entity ID
|
|
765
|
+
* example:
|
|
766
|
+
* 3fa85f64-5717-4562-b3fc-2c963f66afa6
|
|
767
|
+
*/
|
|
768
|
+
_id: string;
|
|
769
|
+
/**
|
|
770
|
+
* Entity title
|
|
771
|
+
*/
|
|
772
|
+
_title: string;
|
|
773
|
+
/**
|
|
774
|
+
* Ivy Organization ID the entity belongs to
|
|
775
|
+
* example:
|
|
776
|
+
* 206801
|
|
777
|
+
*/
|
|
778
|
+
_org: string;
|
|
779
|
+
/**
|
|
780
|
+
* URL-friendly identifier for the entity schema
|
|
781
|
+
* example:
|
|
782
|
+
* message
|
|
783
|
+
*/
|
|
784
|
+
_schema: string;
|
|
785
|
+
/**
|
|
786
|
+
* Entity tags
|
|
787
|
+
* example:
|
|
788
|
+
* [
|
|
789
|
+
* "pricing",
|
|
790
|
+
* "INBOX"
|
|
791
|
+
* ]
|
|
792
|
+
*/
|
|
793
|
+
_tags?: string[];
|
|
794
|
+
/**
|
|
795
|
+
* Created date
|
|
796
|
+
* example:
|
|
797
|
+
* "2021-02-09T12:41:43.662Z"
|
|
798
|
+
*/
|
|
799
|
+
_created_at: string; // date-time
|
|
800
|
+
/**
|
|
801
|
+
* Updated date
|
|
802
|
+
* example:
|
|
803
|
+
* "2021-02-10T09:14:31.990Z"
|
|
804
|
+
*/
|
|
805
|
+
_updated_at: string; // date-time
|
|
806
|
+
/**
|
|
807
|
+
* Message topic (e.g. which service sends the message or message category)
|
|
808
|
+
* example:
|
|
809
|
+
* CUSTOMER_MESSAGE
|
|
810
|
+
*/
|
|
811
|
+
topic: string;
|
|
812
|
+
/**
|
|
813
|
+
* Ivy User ID of who the message is assigned to. Default is the user who sends message.
|
|
814
|
+
*/
|
|
815
|
+
assigned_to?: string[];
|
|
816
|
+
/**
|
|
817
|
+
* Latest message of thread
|
|
818
|
+
*/
|
|
819
|
+
latest_message?: Components.Schemas.Message;
|
|
820
|
+
/**
|
|
821
|
+
* Latest trash message of thread
|
|
822
|
+
*/
|
|
823
|
+
latest_trash_message?: Components.Schemas.Message;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
602
826
|
}
|
|
603
827
|
}
|
|
604
828
|
|
|
605
829
|
export interface OperationMethods {
|
|
830
|
+
/**
|
|
831
|
+
* updateMessage - updateMessage
|
|
832
|
+
*
|
|
833
|
+
* Update message metadata
|
|
834
|
+
*/
|
|
835
|
+
'updateMessage'(
|
|
836
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
837
|
+
data?: Paths.UpdateMessage.RequestBody,
|
|
838
|
+
config?: AxiosRequestConfig
|
|
839
|
+
): OperationResponse<Paths.UpdateMessage.Responses.$201>
|
|
606
840
|
/**
|
|
607
841
|
* sendMessage - sendMessage
|
|
608
842
|
*
|
|
609
|
-
* Send
|
|
843
|
+
* Send an email message
|
|
610
844
|
*/
|
|
611
845
|
'sendMessage'(
|
|
612
846
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
@@ -616,7 +850,7 @@ export interface OperationMethods {
|
|
|
616
850
|
/**
|
|
617
851
|
* deleteMessage - deleteMessage
|
|
618
852
|
*
|
|
619
|
-
* Immediately and permanently
|
|
853
|
+
* Immediately and permanently delete a message. This operation cannot be undone.
|
|
620
854
|
*/
|
|
621
855
|
'deleteMessage'(
|
|
622
856
|
parameters?: Parameters<Paths.DeleteMessage.PathParameters> | null,
|
|
@@ -626,7 +860,7 @@ export interface OperationMethods {
|
|
|
626
860
|
/**
|
|
627
861
|
* trashMessage - trashMessage
|
|
628
862
|
*
|
|
629
|
-
*
|
|
863
|
+
* Move a message to the trash
|
|
630
864
|
*/
|
|
631
865
|
'trashMessage'(
|
|
632
866
|
parameters?: Parameters<Paths.TrashMessage.PathParameters> | null,
|
|
@@ -636,7 +870,7 @@ export interface OperationMethods {
|
|
|
636
870
|
/**
|
|
637
871
|
* untrashMessage - untrashMessage
|
|
638
872
|
*
|
|
639
|
-
*
|
|
873
|
+
* Restore a trashed message
|
|
640
874
|
*/
|
|
641
875
|
'untrashMessage'(
|
|
642
876
|
parameters?: Parameters<Paths.UntrashMessage.PathParameters> | null,
|
|
@@ -646,8 +880,11 @@ export interface OperationMethods {
|
|
|
646
880
|
/**
|
|
647
881
|
* searchThreads - searchThreads
|
|
648
882
|
*
|
|
649
|
-
* Search for
|
|
650
|
-
*
|
|
883
|
+
* Search for threads of email messages.
|
|
884
|
+
*
|
|
885
|
+
* Messages with no replies yet are treated as threads with single message.
|
|
886
|
+
*
|
|
887
|
+
* Lucene syntax supported.
|
|
651
888
|
*
|
|
652
889
|
*/
|
|
653
890
|
'searchThreads'(
|
|
@@ -658,23 +895,43 @@ export interface OperationMethods {
|
|
|
658
895
|
/**
|
|
659
896
|
* updateThread - updateThread
|
|
660
897
|
*
|
|
661
|
-
* Modify
|
|
898
|
+
* Modify thread metadata
|
|
662
899
|
*/
|
|
663
900
|
'updateThread'(
|
|
664
901
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
665
|
-
data?:
|
|
902
|
+
data?: any,
|
|
666
903
|
config?: AxiosRequestConfig
|
|
667
|
-
): OperationResponse<
|
|
904
|
+
): OperationResponse<Paths.UpdateThread.Responses.$201>
|
|
668
905
|
/**
|
|
669
906
|
* deleteThread - deleteThread
|
|
670
907
|
*
|
|
671
|
-
* Immediately and permanently
|
|
908
|
+
* Immediately and permanently delete a thread. This operation cannot be undone.
|
|
672
909
|
*/
|
|
673
910
|
'deleteThread'(
|
|
674
911
|
parameters?: Parameters<Paths.DeleteThread.PathParameters> | null,
|
|
675
912
|
data?: any,
|
|
676
913
|
config?: AxiosRequestConfig
|
|
677
914
|
): OperationResponse<any>
|
|
915
|
+
/**
|
|
916
|
+
* trashThread - trashThread
|
|
917
|
+
*
|
|
918
|
+
* Move a thread to trash
|
|
919
|
+
*/
|
|
920
|
+
'trashThread'(
|
|
921
|
+
parameters?: Parameters<Paths.TrashThread.PathParameters> | null,
|
|
922
|
+
data?: any,
|
|
923
|
+
config?: AxiosRequestConfig
|
|
924
|
+
): OperationResponse<any>
|
|
925
|
+
/**
|
|
926
|
+
* untrashThread - untrashThread
|
|
927
|
+
*
|
|
928
|
+
* Restore a trashed thread
|
|
929
|
+
*/
|
|
930
|
+
'untrashThread'(
|
|
931
|
+
parameters?: Parameters<Paths.UntrashThread.PathParameters> | null,
|
|
932
|
+
data?: any,
|
|
933
|
+
config?: AxiosRequestConfig
|
|
934
|
+
): OperationResponse<any>
|
|
678
935
|
/**
|
|
679
936
|
* createAttachmentUploadUrl - createAttachmentUploadUrl
|
|
680
937
|
*
|
|
@@ -688,23 +945,33 @@ export interface OperationMethods {
|
|
|
688
945
|
}
|
|
689
946
|
|
|
690
947
|
export interface PathsDictionary {
|
|
691
|
-
['/messages']: {
|
|
948
|
+
['/v1/message/messages']: {
|
|
692
949
|
/**
|
|
693
950
|
* sendMessage - sendMessage
|
|
694
951
|
*
|
|
695
|
-
* Send
|
|
952
|
+
* Send an email message
|
|
696
953
|
*/
|
|
697
954
|
'post'(
|
|
698
955
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
699
956
|
data?: Paths.SendMessage.RequestBody,
|
|
700
957
|
config?: AxiosRequestConfig
|
|
701
958
|
): OperationResponse<Paths.SendMessage.Responses.$201>
|
|
959
|
+
/**
|
|
960
|
+
* updateMessage - updateMessage
|
|
961
|
+
*
|
|
962
|
+
* Update message metadata
|
|
963
|
+
*/
|
|
964
|
+
'put'(
|
|
965
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
966
|
+
data?: Paths.UpdateMessage.RequestBody,
|
|
967
|
+
config?: AxiosRequestConfig
|
|
968
|
+
): OperationResponse<Paths.UpdateMessage.Responses.$201>
|
|
702
969
|
}
|
|
703
|
-
['/messages/{id}']: {
|
|
970
|
+
['/v1/message/messages/{id}']: {
|
|
704
971
|
/**
|
|
705
972
|
* deleteMessage - deleteMessage
|
|
706
973
|
*
|
|
707
|
-
* Immediately and permanently
|
|
974
|
+
* Immediately and permanently delete a message. This operation cannot be undone.
|
|
708
975
|
*/
|
|
709
976
|
'delete'(
|
|
710
977
|
parameters?: Parameters<Paths.DeleteMessage.PathParameters> | null,
|
|
@@ -712,11 +979,11 @@ export interface PathsDictionary {
|
|
|
712
979
|
config?: AxiosRequestConfig
|
|
713
980
|
): OperationResponse<any>
|
|
714
981
|
}
|
|
715
|
-
['/messages/{id}/trash']: {
|
|
982
|
+
['/v1/message/messages/{id}/trash']: {
|
|
716
983
|
/**
|
|
717
984
|
* trashMessage - trashMessage
|
|
718
985
|
*
|
|
719
|
-
*
|
|
986
|
+
* Move a message to the trash
|
|
720
987
|
*/
|
|
721
988
|
'post'(
|
|
722
989
|
parameters?: Parameters<Paths.TrashMessage.PathParameters> | null,
|
|
@@ -724,11 +991,11 @@ export interface PathsDictionary {
|
|
|
724
991
|
config?: AxiosRequestConfig
|
|
725
992
|
): OperationResponse<any>
|
|
726
993
|
}
|
|
727
|
-
['/messages/{id}/untrash']: {
|
|
994
|
+
['/v1/message/messages/{id}/untrash']: {
|
|
728
995
|
/**
|
|
729
996
|
* untrashMessage - untrashMessage
|
|
730
997
|
*
|
|
731
|
-
*
|
|
998
|
+
* Restore a trashed message
|
|
732
999
|
*/
|
|
733
1000
|
'post'(
|
|
734
1001
|
parameters?: Parameters<Paths.UntrashMessage.PathParameters> | null,
|
|
@@ -736,12 +1003,15 @@ export interface PathsDictionary {
|
|
|
736
1003
|
config?: AxiosRequestConfig
|
|
737
1004
|
): OperationResponse<any>
|
|
738
1005
|
}
|
|
739
|
-
['/threads:search']: {
|
|
1006
|
+
['/v1/message/threads:search']: {
|
|
740
1007
|
/**
|
|
741
1008
|
* searchThreads - searchThreads
|
|
742
1009
|
*
|
|
743
|
-
* Search for
|
|
744
|
-
*
|
|
1010
|
+
* Search for threads of email messages.
|
|
1011
|
+
*
|
|
1012
|
+
* Messages with no replies yet are treated as threads with single message.
|
|
1013
|
+
*
|
|
1014
|
+
* Lucene syntax supported.
|
|
745
1015
|
*
|
|
746
1016
|
*/
|
|
747
1017
|
'post'(
|
|
@@ -750,23 +1020,23 @@ export interface PathsDictionary {
|
|
|
750
1020
|
config?: AxiosRequestConfig
|
|
751
1021
|
): OperationResponse<Paths.SearchThreads.Responses.$200>
|
|
752
1022
|
}
|
|
753
|
-
['/threads']: {
|
|
1023
|
+
['/v1/message/threads']: {
|
|
754
1024
|
/**
|
|
755
1025
|
* updateThread - updateThread
|
|
756
1026
|
*
|
|
757
|
-
* Modify
|
|
1027
|
+
* Modify thread metadata
|
|
758
1028
|
*/
|
|
759
1029
|
'put'(
|
|
760
1030
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
761
|
-
data?:
|
|
1031
|
+
data?: any,
|
|
762
1032
|
config?: AxiosRequestConfig
|
|
763
|
-
): OperationResponse<
|
|
1033
|
+
): OperationResponse<Paths.UpdateThread.Responses.$201>
|
|
764
1034
|
}
|
|
765
|
-
['/threads/{id}']: {
|
|
1035
|
+
['/v1/message/threads/{id}']: {
|
|
766
1036
|
/**
|
|
767
1037
|
* deleteThread - deleteThread
|
|
768
1038
|
*
|
|
769
|
-
* Immediately and permanently
|
|
1039
|
+
* Immediately and permanently delete a thread. This operation cannot be undone.
|
|
770
1040
|
*/
|
|
771
1041
|
'delete'(
|
|
772
1042
|
parameters?: Parameters<Paths.DeleteThread.PathParameters> | null,
|
|
@@ -774,7 +1044,31 @@ export interface PathsDictionary {
|
|
|
774
1044
|
config?: AxiosRequestConfig
|
|
775
1045
|
): OperationResponse<any>
|
|
776
1046
|
}
|
|
777
|
-
['/
|
|
1047
|
+
['/v1/message/threads/{id}/trash']: {
|
|
1048
|
+
/**
|
|
1049
|
+
* trashThread - trashThread
|
|
1050
|
+
*
|
|
1051
|
+
* Move a thread to trash
|
|
1052
|
+
*/
|
|
1053
|
+
'post'(
|
|
1054
|
+
parameters?: Parameters<Paths.TrashThread.PathParameters> | null,
|
|
1055
|
+
data?: any,
|
|
1056
|
+
config?: AxiosRequestConfig
|
|
1057
|
+
): OperationResponse<any>
|
|
1058
|
+
}
|
|
1059
|
+
['/v1/message/threads/{id}/untrash']: {
|
|
1060
|
+
/**
|
|
1061
|
+
* untrashThread - untrashThread
|
|
1062
|
+
*
|
|
1063
|
+
* Restore a trashed thread
|
|
1064
|
+
*/
|
|
1065
|
+
'post'(
|
|
1066
|
+
parameters?: Parameters<Paths.UntrashThread.PathParameters> | null,
|
|
1067
|
+
data?: any,
|
|
1068
|
+
config?: AxiosRequestConfig
|
|
1069
|
+
): OperationResponse<any>
|
|
1070
|
+
}
|
|
1071
|
+
['/v1/message/attachments/upload-url']: {
|
|
778
1072
|
/**
|
|
779
1073
|
* createAttachmentUploadUrl - createAttachmentUploadUrl
|
|
780
1074
|
*
|