@wildix/xbees-conversations-client 1.0.65 → 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/dist-cjs/Conversations.js +0 -12
- package/dist-cjs/commands/index.js +0 -6
- package/dist-cjs/models/models_0.js +30 -105
- package/dist-cjs/protocols/Aws_restJson1.js +2 -230
- package/dist-es/Conversations.js +0 -12
- package/dist-es/commands/index.js +0 -6
- package/dist-es/models/models_0.js +28 -101
- package/dist-es/protocols/Aws_restJson1.js +1 -216
- package/dist-types/Conversations.d.ts +0 -42
- package/dist-types/ConversationsClient.d.ts +2 -8
- package/dist-types/commands/DescribeEventCommand.d.ts +19 -274
- package/dist-types/commands/GetMessageCommand.d.ts +23 -84
- package/dist-types/commands/ListMessagesCommand.d.ts +23 -84
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +47 -173
- package/dist-types/commands/SendGiphyCommand.d.ts +23 -84
- package/dist-types/commands/SendMessageCommand.d.ts +46 -168
- package/dist-types/commands/UpdateMessageCommand.d.ts +46 -169
- package/dist-types/commands/index.d.ts +0 -6
- package/dist-types/models/models_0.d.ts +91 -604
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -54
- package/dist-types/runtimeConfig.browser.d.ts +0 -1
- package/dist-types/runtimeConfig.d.ts +0 -1
- package/dist-types/runtimeConfig.native.d.ts +0 -1
- package/package.json +1 -1
- package/dist-cjs/commands/GetActionTriggerResultCommand.js +0 -21
- package/dist-cjs/commands/ListPinnedMessagesCommand.js +0 -21
- package/dist-cjs/commands/PinMessageCommand.js +0 -21
- package/dist-cjs/commands/SendActionTriggerResultCommand.js +0 -21
- package/dist-cjs/commands/TriggerMessageActionCommand.js +0 -21
- package/dist-cjs/commands/UnpinMessageCommand.js +0 -21
- package/dist-es/commands/GetActionTriggerResultCommand.js +0 -17
- package/dist-es/commands/ListPinnedMessagesCommand.js +0 -17
- package/dist-es/commands/PinMessageCommand.js +0 -17
- package/dist-es/commands/SendActionTriggerResultCommand.js +0 -17
- package/dist-es/commands/TriggerMessageActionCommand.js +0 -17
- package/dist-es/commands/UnpinMessageCommand.js +0 -17
- package/dist-types/commands/GetActionTriggerResultCommand.d.ts +0 -70
- package/dist-types/commands/ListPinnedMessagesCommand.d.ts +0 -261
- package/dist-types/commands/PinMessageCommand.d.ts +0 -73
- package/dist-types/commands/SendActionTriggerResultCommand.d.ts +0 -68
- package/dist-types/commands/TriggerMessageActionCommand.d.ts +0 -75
- package/dist-types/commands/UnpinMessageCommand.d.ts +0 -71
|
@@ -53,6 +53,30 @@ export declare class RateLimitExceededException extends __BaseException {
|
|
|
53
53
|
*/
|
|
54
54
|
constructor(opts: __ExceptionOptionType<RateLimitExceededException, __BaseException>);
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* @public
|
|
58
|
+
* @enum
|
|
59
|
+
*/
|
|
60
|
+
export declare const ConversationFileCategory: {
|
|
61
|
+
readonly GENERAL: "channels";
|
|
62
|
+
readonly RECORDING: "recordings";
|
|
63
|
+
readonly WIZY_RECORDING: "wizyconfRecordings";
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
export type ConversationFileCategory = typeof ConversationFileCategory[keyof typeof ConversationFileCategory];
|
|
69
|
+
/**
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export declare class FileNotFoundException extends __BaseException {
|
|
73
|
+
readonly name: "FileNotFoundException";
|
|
74
|
+
readonly $fault: "client";
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
constructor(opts: __ExceptionOptionType<FileNotFoundException, __BaseException>);
|
|
79
|
+
}
|
|
56
80
|
/**
|
|
57
81
|
* @public
|
|
58
82
|
*/
|
|
@@ -86,134 +110,6 @@ export declare const ChannelType: {
|
|
|
86
110
|
* @public
|
|
87
111
|
*/
|
|
88
112
|
export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
|
|
89
|
-
/**
|
|
90
|
-
* @public
|
|
91
|
-
*/
|
|
92
|
-
export interface ButtonActionHandler {
|
|
93
|
-
/**
|
|
94
|
-
* A unique ID of the action within the message.
|
|
95
|
-
* @public
|
|
96
|
-
*/
|
|
97
|
-
id: string;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* @public
|
|
101
|
-
*/
|
|
102
|
-
export interface ButtonLinkHandler {
|
|
103
|
-
url: string;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* @public
|
|
107
|
-
*/
|
|
108
|
-
export interface ButtonReplyHandler {
|
|
109
|
-
text?: string;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* @public
|
|
113
|
-
*/
|
|
114
|
-
export type ButtonHandler = ButtonHandler.ActionMember | ButtonHandler.LinkMember | ButtonHandler.ReplyMember | ButtonHandler.$UnknownMember;
|
|
115
|
-
/**
|
|
116
|
-
* @public
|
|
117
|
-
*/
|
|
118
|
-
export declare namespace ButtonHandler {
|
|
119
|
-
interface LinkMember {
|
|
120
|
-
link: ButtonLinkHandler;
|
|
121
|
-
reply?: never;
|
|
122
|
-
action?: never;
|
|
123
|
-
$unknown?: never;
|
|
124
|
-
}
|
|
125
|
-
interface ReplyMember {
|
|
126
|
-
link?: never;
|
|
127
|
-
reply: ButtonReplyHandler;
|
|
128
|
-
action?: never;
|
|
129
|
-
$unknown?: never;
|
|
130
|
-
}
|
|
131
|
-
interface ActionMember {
|
|
132
|
-
link?: never;
|
|
133
|
-
reply?: never;
|
|
134
|
-
action: ButtonActionHandler;
|
|
135
|
-
$unknown?: never;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* @public
|
|
139
|
-
*/
|
|
140
|
-
interface $UnknownMember {
|
|
141
|
-
link?: never;
|
|
142
|
-
reply?: never;
|
|
143
|
-
action?: never;
|
|
144
|
-
$unknown: [string, any];
|
|
145
|
-
}
|
|
146
|
-
interface Visitor<T> {
|
|
147
|
-
link: (value: ButtonLinkHandler) => T;
|
|
148
|
-
reply: (value: ButtonReplyHandler) => T;
|
|
149
|
-
action: (value: ButtonActionHandler) => T;
|
|
150
|
-
_: (name: string, value: any) => T;
|
|
151
|
-
}
|
|
152
|
-
const visit: <T>(value: ButtonHandler, visitor: Visitor<T>) => T;
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* @public
|
|
156
|
-
* @enum
|
|
157
|
-
*/
|
|
158
|
-
export declare const ButtonVariant: {
|
|
159
|
-
readonly CONTAINED: "contained";
|
|
160
|
-
readonly OUTLINED: "outlined";
|
|
161
|
-
};
|
|
162
|
-
/**
|
|
163
|
-
* @public
|
|
164
|
-
*/
|
|
165
|
-
export type ButtonVariant = typeof ButtonVariant[keyof typeof ButtonVariant];
|
|
166
|
-
/**
|
|
167
|
-
* @public
|
|
168
|
-
*/
|
|
169
|
-
export interface ButtonElement {
|
|
170
|
-
text: string;
|
|
171
|
-
variant?: ButtonVariant;
|
|
172
|
-
disabled?: boolean;
|
|
173
|
-
handler?: ButtonHandler;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* @public
|
|
177
|
-
*/
|
|
178
|
-
export type ActionElement = ActionElement.ButtonMember | ActionElement.$UnknownMember;
|
|
179
|
-
/**
|
|
180
|
-
* @public
|
|
181
|
-
*/
|
|
182
|
-
export declare namespace ActionElement {
|
|
183
|
-
interface ButtonMember {
|
|
184
|
-
button: ButtonElement;
|
|
185
|
-
$unknown?: never;
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* @public
|
|
189
|
-
*/
|
|
190
|
-
interface $UnknownMember {
|
|
191
|
-
button?: never;
|
|
192
|
-
$unknown: [string, any];
|
|
193
|
-
}
|
|
194
|
-
interface Visitor<T> {
|
|
195
|
-
button: (value: ButtonElement) => T;
|
|
196
|
-
_: (name: string, value: any) => T;
|
|
197
|
-
}
|
|
198
|
-
const visit: <T>(value: ActionElement, visitor: Visitor<T>) => T;
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* @public
|
|
202
|
-
*/
|
|
203
|
-
export interface ActionTriggerResult {
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* @public
|
|
207
|
-
* @enum
|
|
208
|
-
*/
|
|
209
|
-
export declare const ActionTriggerStatus: {
|
|
210
|
-
readonly COMPLETED: "completed";
|
|
211
|
-
readonly PENDING: "pending";
|
|
212
|
-
};
|
|
213
|
-
/**
|
|
214
|
-
* @public
|
|
215
|
-
*/
|
|
216
|
-
export type ActionTriggerStatus = typeof ActionTriggerStatus[keyof typeof ActionTriggerStatus];
|
|
217
113
|
/**
|
|
218
114
|
* @public
|
|
219
115
|
*/
|
|
@@ -484,19 +380,6 @@ export declare class ChannelAlreadyExistException extends __BaseException {
|
|
|
484
380
|
*/
|
|
485
381
|
constructor(opts: __ExceptionOptionType<ChannelAlreadyExistException, __BaseException>);
|
|
486
382
|
}
|
|
487
|
-
/**
|
|
488
|
-
* @public
|
|
489
|
-
* @enum
|
|
490
|
-
*/
|
|
491
|
-
export declare const ConversationFileCategory: {
|
|
492
|
-
readonly GENERAL: "channels";
|
|
493
|
-
readonly RECORDING: "recordings";
|
|
494
|
-
readonly WIZY_RECORDING: "wizyconfRecordings";
|
|
495
|
-
};
|
|
496
|
-
/**
|
|
497
|
-
* @public
|
|
498
|
-
*/
|
|
499
|
-
export type ConversationFileCategory = typeof ConversationFileCategory[keyof typeof ConversationFileCategory];
|
|
500
383
|
/**
|
|
501
384
|
* @public
|
|
502
385
|
*/
|
|
@@ -771,177 +654,102 @@ export interface DescribeEventInput {
|
|
|
771
654
|
/**
|
|
772
655
|
* @public
|
|
773
656
|
*/
|
|
774
|
-
export interface
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
* @public
|
|
779
|
-
*/
|
|
780
|
-
fsId: string;
|
|
781
|
-
mime?: string;
|
|
782
|
-
name: string;
|
|
783
|
-
size: number;
|
|
784
|
-
width?: number;
|
|
785
|
-
height?: number;
|
|
786
|
-
thumbnail?: string;
|
|
657
|
+
export interface WebhookChatChannelCreatedOrUpdatedEventData {
|
|
658
|
+
channel: Channel;
|
|
659
|
+
members: (ChannelMember)[];
|
|
660
|
+
users: (User)[];
|
|
787
661
|
}
|
|
788
662
|
/**
|
|
789
663
|
* @public
|
|
664
|
+
* @enum
|
|
790
665
|
*/
|
|
791
|
-
export
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
666
|
+
export declare const WebhookEventType: {
|
|
667
|
+
readonly CHANNEL_CREATED: "chat:channel:created";
|
|
668
|
+
readonly CHANNEL_UPDATED: "chat:channel:updated";
|
|
669
|
+
readonly MEMBER_ADDED: "chat:member:added";
|
|
670
|
+
readonly MEMBER_REMOVED: "chat:member:removed";
|
|
671
|
+
readonly MESSAGE_DELETED: "chat:message:deleted";
|
|
672
|
+
readonly MESSAGE_NEW: "chat:message:new";
|
|
673
|
+
readonly MESSAGE_UPDATED: "chat:message:updated";
|
|
674
|
+
readonly REACTION_DELETED: "chat:reaction:deleted";
|
|
675
|
+
readonly REACTION_NEW: "chat:reaction:new";
|
|
676
|
+
};
|
|
797
677
|
/**
|
|
798
678
|
* @public
|
|
799
679
|
*/
|
|
800
|
-
export
|
|
801
|
-
/**
|
|
802
|
-
* The email address.
|
|
803
|
-
* @public
|
|
804
|
-
*/
|
|
805
|
-
value: string;
|
|
806
|
-
/**
|
|
807
|
-
* Additional styling properties for the email.
|
|
808
|
-
* @public
|
|
809
|
-
*/
|
|
810
|
-
style?: TextStyle;
|
|
811
|
-
}
|
|
680
|
+
export type WebhookEventType = typeof WebhookEventType[keyof typeof WebhookEventType];
|
|
812
681
|
/**
|
|
813
682
|
* @public
|
|
814
683
|
*/
|
|
815
|
-
export interface
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
* @public
|
|
824
|
-
*/
|
|
825
|
-
text?: string;
|
|
826
|
-
/**
|
|
827
|
-
* Additional styling properties for the link.
|
|
828
|
-
* @public
|
|
829
|
-
*/
|
|
830
|
-
style?: TextStyle;
|
|
684
|
+
export interface WebhookChatChannelCreatedEvent {
|
|
685
|
+
id: string;
|
|
686
|
+
company: string;
|
|
687
|
+
type: WebhookEventType;
|
|
688
|
+
time: number;
|
|
689
|
+
integrationId?: string;
|
|
690
|
+
botId?: string;
|
|
691
|
+
data: WebhookChatChannelCreatedOrUpdatedEventData;
|
|
831
692
|
}
|
|
832
693
|
/**
|
|
833
694
|
* @public
|
|
834
695
|
*/
|
|
835
|
-
export interface
|
|
836
|
-
|
|
837
|
-
|
|
696
|
+
export interface WebhookChatChannelUpdatedEvent {
|
|
697
|
+
id: string;
|
|
698
|
+
company: string;
|
|
699
|
+
type: WebhookEventType;
|
|
700
|
+
time: number;
|
|
701
|
+
integrationId?: string;
|
|
702
|
+
botId?: string;
|
|
703
|
+
data: WebhookChatChannelCreatedOrUpdatedEventData;
|
|
838
704
|
}
|
|
839
705
|
/**
|
|
840
706
|
* @public
|
|
841
707
|
*/
|
|
842
|
-
export interface
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
*/
|
|
847
|
-
value: string;
|
|
848
|
-
/**
|
|
849
|
-
* Additional styling properties for the phone number.
|
|
850
|
-
* @public
|
|
851
|
-
*/
|
|
852
|
-
style?: TextStyle;
|
|
708
|
+
export interface WebhookChatMemberAddedOrRemovedEventData {
|
|
709
|
+
channel: Channel;
|
|
710
|
+
member: ChannelMember;
|
|
711
|
+
user: User;
|
|
853
712
|
}
|
|
854
713
|
/**
|
|
855
714
|
* @public
|
|
856
715
|
*/
|
|
857
|
-
export interface
|
|
858
|
-
|
|
859
|
-
|
|
716
|
+
export interface WebhookChatMemberAddedEvent {
|
|
717
|
+
id: string;
|
|
718
|
+
company: string;
|
|
719
|
+
type: WebhookEventType;
|
|
720
|
+
time: number;
|
|
721
|
+
integrationId?: string;
|
|
722
|
+
botId?: string;
|
|
723
|
+
data: WebhookChatMemberAddedOrRemovedEventData;
|
|
860
724
|
}
|
|
861
725
|
/**
|
|
862
726
|
* @public
|
|
863
727
|
*/
|
|
864
|
-
export
|
|
728
|
+
export interface WebhookChatMemberRemovedEvent {
|
|
729
|
+
id: string;
|
|
730
|
+
company: string;
|
|
731
|
+
type: WebhookEventType;
|
|
732
|
+
time: number;
|
|
733
|
+
integrationId?: string;
|
|
734
|
+
botId?: string;
|
|
735
|
+
data: WebhookChatMemberAddedOrRemovedEventData;
|
|
736
|
+
}
|
|
865
737
|
/**
|
|
866
738
|
* @public
|
|
867
739
|
*/
|
|
868
|
-
export
|
|
869
|
-
|
|
870
|
-
text: TextElement;
|
|
871
|
-
link?: never;
|
|
872
|
-
email?: never;
|
|
873
|
-
phone?: never;
|
|
874
|
-
mention?: never;
|
|
875
|
-
actions?: never;
|
|
876
|
-
$unknown?: never;
|
|
877
|
-
}
|
|
878
|
-
interface LinkMember {
|
|
879
|
-
text?: never;
|
|
880
|
-
link: LinkElement;
|
|
881
|
-
email?: never;
|
|
882
|
-
phone?: never;
|
|
883
|
-
mention?: never;
|
|
884
|
-
actions?: never;
|
|
885
|
-
$unknown?: never;
|
|
886
|
-
}
|
|
887
|
-
interface EmailMember {
|
|
888
|
-
text?: never;
|
|
889
|
-
link?: never;
|
|
890
|
-
email: EmailElement;
|
|
891
|
-
phone?: never;
|
|
892
|
-
mention?: never;
|
|
893
|
-
actions?: never;
|
|
894
|
-
$unknown?: never;
|
|
895
|
-
}
|
|
896
|
-
interface PhoneMember {
|
|
897
|
-
text?: never;
|
|
898
|
-
link?: never;
|
|
899
|
-
email?: never;
|
|
900
|
-
phone: PhoneElement;
|
|
901
|
-
mention?: never;
|
|
902
|
-
actions?: never;
|
|
903
|
-
$unknown?: never;
|
|
904
|
-
}
|
|
905
|
-
interface MentionMember {
|
|
906
|
-
text?: never;
|
|
907
|
-
link?: never;
|
|
908
|
-
email?: never;
|
|
909
|
-
phone?: never;
|
|
910
|
-
mention: MentionElement;
|
|
911
|
-
actions?: never;
|
|
912
|
-
$unknown?: never;
|
|
913
|
-
}
|
|
914
|
-
interface ActionsMember {
|
|
915
|
-
text?: never;
|
|
916
|
-
link?: never;
|
|
917
|
-
email?: never;
|
|
918
|
-
phone?: never;
|
|
919
|
-
mention?: never;
|
|
920
|
-
actions: (ActionElement)[];
|
|
921
|
-
$unknown?: never;
|
|
922
|
-
}
|
|
740
|
+
export interface MessageAttachment {
|
|
741
|
+
id: string;
|
|
923
742
|
/**
|
|
743
|
+
* This *is* documentation about the field. Describe here what fsId and how to get it.
|
|
924
744
|
* @public
|
|
925
745
|
*/
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
$unknown: [string, any];
|
|
934
|
-
}
|
|
935
|
-
interface Visitor<T> {
|
|
936
|
-
text: (value: TextElement) => T;
|
|
937
|
-
link: (value: LinkElement) => T;
|
|
938
|
-
email: (value: EmailElement) => T;
|
|
939
|
-
phone: (value: PhoneElement) => T;
|
|
940
|
-
mention: (value: MentionElement) => T;
|
|
941
|
-
actions: (value: (ActionElement)[]) => T;
|
|
942
|
-
_: (name: string, value: any) => T;
|
|
943
|
-
}
|
|
944
|
-
const visit: <T>(value: Element, visitor: Visitor<T>) => T;
|
|
746
|
+
fsId: string;
|
|
747
|
+
mime?: string;
|
|
748
|
+
name: string;
|
|
749
|
+
size: number;
|
|
750
|
+
width?: number;
|
|
751
|
+
height?: number;
|
|
752
|
+
thumbnail?: string;
|
|
945
753
|
}
|
|
946
754
|
/**
|
|
947
755
|
* @public
|
|
@@ -951,6 +759,8 @@ export interface MessageForward {
|
|
|
951
759
|
forwardDate: string;
|
|
952
760
|
forwardEmail?: string;
|
|
953
761
|
forwardName?: string;
|
|
762
|
+
messageId: string;
|
|
763
|
+
channelId: string;
|
|
954
764
|
}
|
|
955
765
|
/**
|
|
956
766
|
* @public
|
|
@@ -1031,7 +841,6 @@ export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof Me
|
|
|
1031
841
|
*/
|
|
1032
842
|
export interface Message {
|
|
1033
843
|
text?: string;
|
|
1034
|
-
elements?: (Element)[];
|
|
1035
844
|
attachments?: (MessageAttachment)[];
|
|
1036
845
|
quote?: MessageQuote;
|
|
1037
846
|
forward?: MessageForward;
|
|
@@ -1053,112 +862,6 @@ export interface Message {
|
|
|
1053
862
|
createdAt: string;
|
|
1054
863
|
updatedAt?: string;
|
|
1055
864
|
}
|
|
1056
|
-
/**
|
|
1057
|
-
* @public
|
|
1058
|
-
*/
|
|
1059
|
-
export interface WebhookChatActionTriggeredEventData {
|
|
1060
|
-
channel: Channel;
|
|
1061
|
-
message: Message;
|
|
1062
|
-
user: User;
|
|
1063
|
-
actionId: string;
|
|
1064
|
-
triggerId: string;
|
|
1065
|
-
}
|
|
1066
|
-
/**
|
|
1067
|
-
* @public
|
|
1068
|
-
* @enum
|
|
1069
|
-
*/
|
|
1070
|
-
export declare const WebhookEventType: {
|
|
1071
|
-
readonly ACTION_TRIGGERED: "chat:action:triggered";
|
|
1072
|
-
readonly CHANNEL_CREATED: "chat:channel:created";
|
|
1073
|
-
readonly CHANNEL_UPDATED: "chat:channel:updated";
|
|
1074
|
-
readonly MEMBER_ADDED: "chat:member:added";
|
|
1075
|
-
readonly MEMBER_REMOVED: "chat:member:removed";
|
|
1076
|
-
readonly MESSAGE_DELETED: "chat:message:deleted";
|
|
1077
|
-
readonly MESSAGE_NEW: "chat:message:new";
|
|
1078
|
-
readonly MESSAGE_UPDATED: "chat:message:updated";
|
|
1079
|
-
readonly REACTION_DELETED: "chat:reaction:deleted";
|
|
1080
|
-
readonly REACTION_NEW: "chat:reaction:new";
|
|
1081
|
-
};
|
|
1082
|
-
/**
|
|
1083
|
-
* @public
|
|
1084
|
-
*/
|
|
1085
|
-
export type WebhookEventType = typeof WebhookEventType[keyof typeof WebhookEventType];
|
|
1086
|
-
/**
|
|
1087
|
-
* @public
|
|
1088
|
-
*/
|
|
1089
|
-
export interface WebhookChatActionTriggeredEvent {
|
|
1090
|
-
id: string;
|
|
1091
|
-
company: string;
|
|
1092
|
-
type: WebhookEventType;
|
|
1093
|
-
time: number;
|
|
1094
|
-
integrationId?: string;
|
|
1095
|
-
botId?: string;
|
|
1096
|
-
data: WebhookChatActionTriggeredEventData;
|
|
1097
|
-
}
|
|
1098
|
-
/**
|
|
1099
|
-
* @public
|
|
1100
|
-
*/
|
|
1101
|
-
export interface WebhookChatChannelCreatedOrUpdatedEventData {
|
|
1102
|
-
channel: Channel;
|
|
1103
|
-
members: (ChannelMember)[];
|
|
1104
|
-
users: (User)[];
|
|
1105
|
-
}
|
|
1106
|
-
/**
|
|
1107
|
-
* @public
|
|
1108
|
-
*/
|
|
1109
|
-
export interface WebhookChatChannelCreatedEvent {
|
|
1110
|
-
id: string;
|
|
1111
|
-
company: string;
|
|
1112
|
-
type: WebhookEventType;
|
|
1113
|
-
time: number;
|
|
1114
|
-
integrationId?: string;
|
|
1115
|
-
botId?: string;
|
|
1116
|
-
data: WebhookChatChannelCreatedOrUpdatedEventData;
|
|
1117
|
-
}
|
|
1118
|
-
/**
|
|
1119
|
-
* @public
|
|
1120
|
-
*/
|
|
1121
|
-
export interface WebhookChatChannelUpdatedEvent {
|
|
1122
|
-
id: string;
|
|
1123
|
-
company: string;
|
|
1124
|
-
type: WebhookEventType;
|
|
1125
|
-
time: number;
|
|
1126
|
-
integrationId?: string;
|
|
1127
|
-
botId?: string;
|
|
1128
|
-
data: WebhookChatChannelCreatedOrUpdatedEventData;
|
|
1129
|
-
}
|
|
1130
|
-
/**
|
|
1131
|
-
* @public
|
|
1132
|
-
*/
|
|
1133
|
-
export interface WebhookChatMemberAddedOrRemovedEventData {
|
|
1134
|
-
channel: Channel;
|
|
1135
|
-
member: ChannelMember;
|
|
1136
|
-
user: User;
|
|
1137
|
-
}
|
|
1138
|
-
/**
|
|
1139
|
-
* @public
|
|
1140
|
-
*/
|
|
1141
|
-
export interface WebhookChatMemberAddedEvent {
|
|
1142
|
-
id: string;
|
|
1143
|
-
company: string;
|
|
1144
|
-
type: WebhookEventType;
|
|
1145
|
-
time: number;
|
|
1146
|
-
integrationId?: string;
|
|
1147
|
-
botId?: string;
|
|
1148
|
-
data: WebhookChatMemberAddedOrRemovedEventData;
|
|
1149
|
-
}
|
|
1150
|
-
/**
|
|
1151
|
-
* @public
|
|
1152
|
-
*/
|
|
1153
|
-
export interface WebhookChatMemberRemovedEvent {
|
|
1154
|
-
id: string;
|
|
1155
|
-
company: string;
|
|
1156
|
-
type: WebhookEventType;
|
|
1157
|
-
time: number;
|
|
1158
|
-
integrationId?: string;
|
|
1159
|
-
botId?: string;
|
|
1160
|
-
data: WebhookChatMemberAddedOrRemovedEventData;
|
|
1161
|
-
}
|
|
1162
865
|
/**
|
|
1163
866
|
* @public
|
|
1164
867
|
*/
|
|
@@ -1256,40 +959,6 @@ export interface DescribeEventOutput {
|
|
|
1256
959
|
WebhookChatMessageDeletedEvent?: WebhookChatMessageDeletedEvent;
|
|
1257
960
|
WebhookChatReactionNewEvent?: WebhookChatReactionNewEvent;
|
|
1258
961
|
WebhookChatReactionDeletedEvent?: WebhookChatReactionDeletedEvent;
|
|
1259
|
-
WebhookChatActionTriggeredEvent?: WebhookChatActionTriggeredEvent;
|
|
1260
|
-
}
|
|
1261
|
-
/**
|
|
1262
|
-
* @public
|
|
1263
|
-
*/
|
|
1264
|
-
export interface GetActionTriggerResultInput {
|
|
1265
|
-
/**
|
|
1266
|
-
* The unique identifier of the action trigger inside the message.
|
|
1267
|
-
* @public
|
|
1268
|
-
*/
|
|
1269
|
-
triggerId: string;
|
|
1270
|
-
/**
|
|
1271
|
-
* The unique identifier of the user when a service token is used.
|
|
1272
|
-
* @public
|
|
1273
|
-
*/
|
|
1274
|
-
userId?: string;
|
|
1275
|
-
}
|
|
1276
|
-
/**
|
|
1277
|
-
* @public
|
|
1278
|
-
*/
|
|
1279
|
-
export interface GetActionTriggerResultOutput {
|
|
1280
|
-
status: ActionTriggerStatus;
|
|
1281
|
-
result?: ActionTriggerResult;
|
|
1282
|
-
}
|
|
1283
|
-
/**
|
|
1284
|
-
* @public
|
|
1285
|
-
*/
|
|
1286
|
-
export declare class TriggerNotFoundException extends __BaseException {
|
|
1287
|
-
readonly name: "TriggerNotFoundException";
|
|
1288
|
-
readonly $fault: "client";
|
|
1289
|
-
/**
|
|
1290
|
-
* @internal
|
|
1291
|
-
*/
|
|
1292
|
-
constructor(opts: __ExceptionOptionType<TriggerNotFoundException, __BaseException>);
|
|
1293
962
|
}
|
|
1294
963
|
/**
|
|
1295
964
|
* @public
|
|
@@ -1363,17 +1032,6 @@ export interface GetDirectChannelIdInput {
|
|
|
1363
1032
|
export interface GetDirectChannelIdOutput {
|
|
1364
1033
|
channelId: string;
|
|
1365
1034
|
}
|
|
1366
|
-
/**
|
|
1367
|
-
* @public
|
|
1368
|
-
*/
|
|
1369
|
-
export declare class FileNotFoundException extends __BaseException {
|
|
1370
|
-
readonly name: "FileNotFoundException";
|
|
1371
|
-
readonly $fault: "client";
|
|
1372
|
-
/**
|
|
1373
|
-
* @internal
|
|
1374
|
-
*/
|
|
1375
|
-
constructor(opts: __ExceptionOptionType<FileNotFoundException, __BaseException>);
|
|
1376
|
-
}
|
|
1377
1035
|
/**
|
|
1378
1036
|
* @public
|
|
1379
1037
|
*/
|
|
@@ -1536,7 +1194,7 @@ export interface GetUploadedFileInfoInput {
|
|
|
1536
1194
|
* @public
|
|
1537
1195
|
*/
|
|
1538
1196
|
export interface GetUploadedFileInfoOutput {
|
|
1539
|
-
file
|
|
1197
|
+
file?: MessageAttachment;
|
|
1540
1198
|
}
|
|
1541
1199
|
/**
|
|
1542
1200
|
* @public
|
|
@@ -1807,36 +1465,6 @@ export interface ListMessagesOutput {
|
|
|
1807
1465
|
*/
|
|
1808
1466
|
messages: (Message)[];
|
|
1809
1467
|
}
|
|
1810
|
-
/**
|
|
1811
|
-
* @public
|
|
1812
|
-
*/
|
|
1813
|
-
export interface ListPinnedMessagesInput {
|
|
1814
|
-
/**
|
|
1815
|
-
* The unique identifier of the channel from which to list messages.
|
|
1816
|
-
* @public
|
|
1817
|
-
*/
|
|
1818
|
-
channelId: string;
|
|
1819
|
-
/**
|
|
1820
|
-
* The maximum number of pinned messages to return. The value must be between 1 and 100.
|
|
1821
|
-
* @public
|
|
1822
|
-
*/
|
|
1823
|
-
limit?: number;
|
|
1824
|
-
/**
|
|
1825
|
-
* The offset from which to start listing pinned messages. The value must be between 0 and 1000.
|
|
1826
|
-
* @public
|
|
1827
|
-
*/
|
|
1828
|
-
offset?: number;
|
|
1829
|
-
}
|
|
1830
|
-
/**
|
|
1831
|
-
* @public
|
|
1832
|
-
*/
|
|
1833
|
-
export interface ListPinnedMessagesOutput {
|
|
1834
|
-
/**
|
|
1835
|
-
* A list of pinned messages in the channel.
|
|
1836
|
-
* @public
|
|
1837
|
-
*/
|
|
1838
|
-
messages: (Message)[];
|
|
1839
|
-
}
|
|
1840
1468
|
/**
|
|
1841
1469
|
* @public
|
|
1842
1470
|
*/
|
|
@@ -1990,15 +1618,9 @@ export interface PartialUpdateChannelOutput {
|
|
|
1990
1618
|
*/
|
|
1991
1619
|
export interface PartialUpdateMessageSetInput {
|
|
1992
1620
|
text?: string;
|
|
1993
|
-
elements?: (Element)[];
|
|
1994
1621
|
attachments?: (MessageAttachment)[];
|
|
1995
1622
|
quote?: MessageQuote;
|
|
1996
1623
|
forward?: MessageForward;
|
|
1997
|
-
/**
|
|
1998
|
-
* A list of user IDs mentioned in the message.
|
|
1999
|
-
* @public
|
|
2000
|
-
*/
|
|
2001
|
-
mentions?: (string)[];
|
|
2002
1624
|
}
|
|
2003
1625
|
/**
|
|
2004
1626
|
* @public
|
|
@@ -2006,9 +1628,7 @@ export interface PartialUpdateMessageSetInput {
|
|
|
2006
1628
|
*/
|
|
2007
1629
|
export declare const MessageUnsetFields: {
|
|
2008
1630
|
readonly ATTACHMENTS: "attachments";
|
|
2009
|
-
readonly ELEMENTS: "elements";
|
|
2010
1631
|
readonly FORWARD: "forward";
|
|
2011
|
-
readonly MENTIONS: "mentions";
|
|
2012
1632
|
readonly QUOTE: "quote";
|
|
2013
1633
|
readonly TEXT: "text";
|
|
2014
1634
|
};
|
|
@@ -2045,11 +1665,6 @@ export interface PartialUpdateMessageInput {
|
|
|
2045
1665
|
* @public
|
|
2046
1666
|
*/
|
|
2047
1667
|
unset?: (MessageUnsetFields)[];
|
|
2048
|
-
/**
|
|
2049
|
-
* Set to true to suppress the updated indicator. Defaults to false.
|
|
2050
|
-
* @public
|
|
2051
|
-
*/
|
|
2052
|
-
silent?: boolean;
|
|
2053
1668
|
}
|
|
2054
1669
|
/**
|
|
2055
1670
|
* @public
|
|
@@ -2093,42 +1708,6 @@ export declare class PinnedChannelsLimitReachedException extends __BaseException
|
|
|
2093
1708
|
*/
|
|
2094
1709
|
constructor(opts: __ExceptionOptionType<PinnedChannelsLimitReachedException, __BaseException>);
|
|
2095
1710
|
}
|
|
2096
|
-
/**
|
|
2097
|
-
* @public
|
|
2098
|
-
*/
|
|
2099
|
-
export interface PinMessageInput {
|
|
2100
|
-
channelId: string;
|
|
2101
|
-
/**
|
|
2102
|
-
* The unique identifier of the message which should be pinned.
|
|
2103
|
-
* @public
|
|
2104
|
-
*/
|
|
2105
|
-
messageId: string;
|
|
2106
|
-
/**
|
|
2107
|
-
* The unique identifier of the user when a service token is used.
|
|
2108
|
-
* @public
|
|
2109
|
-
*/
|
|
2110
|
-
userId?: string;
|
|
2111
|
-
/**
|
|
2112
|
-
* The duration in seconds after which the pinned message will be automatically unpinned. If neither `expiresAfter` nor `expiresTill` is provided, the message will remain pinned indefinitely. Providing both `expiresAfter` and `expiresTill` will result in a validation error.
|
|
2113
|
-
* @public
|
|
2114
|
-
*/
|
|
2115
|
-
expiresAfter?: number;
|
|
2116
|
-
/**
|
|
2117
|
-
* The specific date and time (in ISO 8601 format) when the pinned message will be automatically unpinned. If neither `expiresAfter` nor `expiresTill` is provided, the message will remain pinned indefinitely. Providing both `expiresAfter` and `expiresTill` will result in a validation error.
|
|
2118
|
-
* @public
|
|
2119
|
-
*/
|
|
2120
|
-
expiresTill?: string;
|
|
2121
|
-
/**
|
|
2122
|
-
* Set to true to suppress system messages generated by this operation. Defaults to false.
|
|
2123
|
-
* @public
|
|
2124
|
-
*/
|
|
2125
|
-
silent?: boolean;
|
|
2126
|
-
}
|
|
2127
|
-
/**
|
|
2128
|
-
* @public
|
|
2129
|
-
*/
|
|
2130
|
-
export interface PinMessageOutput {
|
|
2131
|
-
}
|
|
2132
1711
|
/**
|
|
2133
1712
|
* @public
|
|
2134
1713
|
*/
|
|
@@ -2155,23 +1734,6 @@ export interface ScheduleExternalFlagAdjustmentJobInput {
|
|
|
2155
1734
|
*/
|
|
2156
1735
|
export interface ScheduleExternalFlagAdjustmentJobOutput {
|
|
2157
1736
|
}
|
|
2158
|
-
/**
|
|
2159
|
-
* @public
|
|
2160
|
-
*/
|
|
2161
|
-
export interface SendActionTriggerResultInput {
|
|
2162
|
-
/**
|
|
2163
|
-
* The unique identifier of the action trigger inside the message.
|
|
2164
|
-
* @public
|
|
2165
|
-
*/
|
|
2166
|
-
triggerId: string;
|
|
2167
|
-
status: ActionTriggerStatus;
|
|
2168
|
-
result: ActionTriggerResult;
|
|
2169
|
-
}
|
|
2170
|
-
/**
|
|
2171
|
-
* @public
|
|
2172
|
-
*/
|
|
2173
|
-
export interface SendActionTriggerResultOutput {
|
|
2174
|
-
}
|
|
2175
1737
|
/**
|
|
2176
1738
|
* @public
|
|
2177
1739
|
*/
|
|
@@ -2208,7 +1770,6 @@ export interface SendGiphyOutput {
|
|
|
2208
1770
|
*/
|
|
2209
1771
|
export interface SendMessageInput {
|
|
2210
1772
|
text?: string;
|
|
2211
|
-
elements?: (Element)[];
|
|
2212
1773
|
attachments?: (MessageAttachment)[];
|
|
2213
1774
|
quote?: MessageQuote;
|
|
2214
1775
|
forward?: MessageForward;
|
|
@@ -2370,48 +1931,6 @@ export declare class TaggedChannelsLimitReachedException extends __BaseException
|
|
|
2370
1931
|
*/
|
|
2371
1932
|
constructor(opts: __ExceptionOptionType<TaggedChannelsLimitReachedException, __BaseException>);
|
|
2372
1933
|
}
|
|
2373
|
-
/**
|
|
2374
|
-
* @public
|
|
2375
|
-
*/
|
|
2376
|
-
export declare class MessageActionNotFoundException extends __BaseException {
|
|
2377
|
-
readonly name: "MessageActionNotFoundException";
|
|
2378
|
-
readonly $fault: "client";
|
|
2379
|
-
/**
|
|
2380
|
-
* @internal
|
|
2381
|
-
*/
|
|
2382
|
-
constructor(opts: __ExceptionOptionType<MessageActionNotFoundException, __BaseException>);
|
|
2383
|
-
}
|
|
2384
|
-
/**
|
|
2385
|
-
* @public
|
|
2386
|
-
*/
|
|
2387
|
-
export interface TriggerMessageActionInput {
|
|
2388
|
-
/**
|
|
2389
|
-
* The unique identifier of the channel to which the message is sent.
|
|
2390
|
-
* @public
|
|
2391
|
-
*/
|
|
2392
|
-
channelId: string;
|
|
2393
|
-
/**
|
|
2394
|
-
* The unique identifier of the message which hold an action.
|
|
2395
|
-
* @public
|
|
2396
|
-
*/
|
|
2397
|
-
messageId: string;
|
|
2398
|
-
/**
|
|
2399
|
-
* The unique identifier of the action inside the message.
|
|
2400
|
-
* @public
|
|
2401
|
-
*/
|
|
2402
|
-
actionId: string;
|
|
2403
|
-
/**
|
|
2404
|
-
* The unique identifier of the user when a service token is used.
|
|
2405
|
-
* @public
|
|
2406
|
-
*/
|
|
2407
|
-
userId?: string;
|
|
2408
|
-
}
|
|
2409
|
-
/**
|
|
2410
|
-
* @public
|
|
2411
|
-
*/
|
|
2412
|
-
export interface TriggerMessageActionOutput {
|
|
2413
|
-
triggerId: string;
|
|
2414
|
-
}
|
|
2415
1934
|
/**
|
|
2416
1935
|
* @public
|
|
2417
1936
|
*/
|
|
@@ -2432,32 +1951,6 @@ export interface UnpinChannelInput {
|
|
|
2432
1951
|
*/
|
|
2433
1952
|
export interface UnpinChannelOutput {
|
|
2434
1953
|
}
|
|
2435
|
-
/**
|
|
2436
|
-
* @public
|
|
2437
|
-
*/
|
|
2438
|
-
export interface UnpinMessageInput {
|
|
2439
|
-
channelId: string;
|
|
2440
|
-
/**
|
|
2441
|
-
* The unique identifier of the message which should be unpinned.
|
|
2442
|
-
* @public
|
|
2443
|
-
*/
|
|
2444
|
-
messageId: string;
|
|
2445
|
-
/**
|
|
2446
|
-
* The unique identifier of the user when a service token is used.
|
|
2447
|
-
* @public
|
|
2448
|
-
*/
|
|
2449
|
-
userId?: string;
|
|
2450
|
-
/**
|
|
2451
|
-
* Set to true to suppress system messages generated by this operation. Defaults to false.
|
|
2452
|
-
* @public
|
|
2453
|
-
*/
|
|
2454
|
-
silent?: boolean;
|
|
2455
|
-
}
|
|
2456
|
-
/**
|
|
2457
|
-
* @public
|
|
2458
|
-
*/
|
|
2459
|
-
export interface UnpinMessageOutput {
|
|
2460
|
-
}
|
|
2461
1954
|
/**
|
|
2462
1955
|
* @public
|
|
2463
1956
|
*/
|
|
@@ -2570,7 +2063,6 @@ export interface UpdateInboxTagOutput {
|
|
|
2570
2063
|
*/
|
|
2571
2064
|
export interface UpdateMessageInput {
|
|
2572
2065
|
text?: string;
|
|
2573
|
-
elements?: (Element)[];
|
|
2574
2066
|
attachments?: (MessageAttachment)[];
|
|
2575
2067
|
quote?: MessageQuote;
|
|
2576
2068
|
forward?: MessageForward;
|
|
@@ -2594,11 +2086,6 @@ export interface UpdateMessageInput {
|
|
|
2594
2086
|
* @public
|
|
2595
2087
|
*/
|
|
2596
2088
|
mentions?: (string)[];
|
|
2597
|
-
/**
|
|
2598
|
-
* Set to true to suppress the updated indicator. Defaults to false.
|
|
2599
|
-
* @public
|
|
2600
|
-
*/
|
|
2601
|
-
silent?: boolean;
|
|
2602
2089
|
}
|
|
2603
2090
|
/**
|
|
2604
2091
|
* @public
|