@wildix/xbees-conversations-client 1.1.0 → 1.1.2

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.
Files changed (45) hide show
  1. package/dist-cjs/Conversations.js +14 -0
  2. package/dist-cjs/commands/CreateKiteChannelCommand.js +21 -0
  3. package/dist-cjs/commands/GetActionTriggerResultCommand.js +21 -0
  4. package/dist-cjs/commands/ListPinnedMessagesCommand.js +21 -0
  5. package/dist-cjs/commands/PinMessageCommand.js +21 -0
  6. package/dist-cjs/commands/SendActionTriggerResultCommand.js +21 -0
  7. package/dist-cjs/commands/TriggerMessageActionCommand.js +21 -0
  8. package/dist-cjs/commands/UnpinMessageCommand.js +21 -0
  9. package/dist-cjs/commands/index.js +7 -0
  10. package/dist-cjs/models/models_0.js +107 -12
  11. package/dist-cjs/protocols/Aws_restJson1.js +302 -2
  12. package/dist-es/Conversations.js +14 -0
  13. package/dist-es/commands/CreateKiteChannelCommand.js +17 -0
  14. package/dist-es/commands/GetActionTriggerResultCommand.js +17 -0
  15. package/dist-es/commands/ListPinnedMessagesCommand.js +17 -0
  16. package/dist-es/commands/PinMessageCommand.js +17 -0
  17. package/dist-es/commands/SendActionTriggerResultCommand.js +17 -0
  18. package/dist-es/commands/TriggerMessageActionCommand.js +17 -0
  19. package/dist-es/commands/UnpinMessageCommand.js +17 -0
  20. package/dist-es/commands/index.js +7 -0
  21. package/dist-es/models/models_0.js +102 -11
  22. package/dist-es/protocols/Aws_restJson1.js +286 -1
  23. package/dist-types/Conversations.d.ts +49 -0
  24. package/dist-types/ConversationsClient.d.ts +9 -2
  25. package/dist-types/commands/CreateKiteChannelCommand.d.ts +240 -0
  26. package/dist-types/commands/DescribeEventCommand.d.ts +144 -9
  27. package/dist-types/commands/GetActionTriggerResultCommand.d.ts +70 -0
  28. package/dist-types/commands/GetMessageCommand.d.ts +24 -0
  29. package/dist-types/commands/ListMessagesCommand.d.ts +24 -0
  30. package/dist-types/commands/ListPinnedMessagesCommand.d.ts +224 -0
  31. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +53 -1
  32. package/dist-types/commands/PinMessageCommand.d.ts +73 -0
  33. package/dist-types/commands/SendActionTriggerResultCommand.d.ts +68 -0
  34. package/dist-types/commands/SendGiphyCommand.d.ts +24 -0
  35. package/dist-types/commands/SendMessageCommand.d.ts +48 -0
  36. package/dist-types/commands/TriggerMessageActionCommand.d.ts +75 -0
  37. package/dist-types/commands/UnpinMessageCommand.d.ts +71 -0
  38. package/dist-types/commands/UpdateMessageCommand.d.ts +49 -0
  39. package/dist-types/commands/index.d.ts +7 -0
  40. package/dist-types/models/models_0.d.ts +578 -102
  41. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  42. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  43. package/dist-types/runtimeConfig.d.ts +1 -0
  44. package/dist-types/runtimeConfig.native.d.ts +1 -0
  45. package/package.json +1 -1
@@ -110,6 +110,134 @@ export declare const ChannelType: {
110
110
  * @public
111
111
  */
112
112
  export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
113
+ /**
114
+ * @public
115
+ */
116
+ export interface ButtonActionHandler {
117
+ /**
118
+ * A unique ID of the action within the message.
119
+ * @public
120
+ */
121
+ id: string;
122
+ }
123
+ /**
124
+ * @public
125
+ */
126
+ export interface ButtonLinkHandler {
127
+ url: string;
128
+ }
129
+ /**
130
+ * @public
131
+ */
132
+ export interface ButtonReplyHandler {
133
+ text?: string;
134
+ }
135
+ /**
136
+ * @public
137
+ */
138
+ export type ButtonHandler = ButtonHandler.ActionMember | ButtonHandler.LinkMember | ButtonHandler.ReplyMember | ButtonHandler.$UnknownMember;
139
+ /**
140
+ * @public
141
+ */
142
+ export declare namespace ButtonHandler {
143
+ interface LinkMember {
144
+ link: ButtonLinkHandler;
145
+ reply?: never;
146
+ action?: never;
147
+ $unknown?: never;
148
+ }
149
+ interface ReplyMember {
150
+ link?: never;
151
+ reply: ButtonReplyHandler;
152
+ action?: never;
153
+ $unknown?: never;
154
+ }
155
+ interface ActionMember {
156
+ link?: never;
157
+ reply?: never;
158
+ action: ButtonActionHandler;
159
+ $unknown?: never;
160
+ }
161
+ /**
162
+ * @public
163
+ */
164
+ interface $UnknownMember {
165
+ link?: never;
166
+ reply?: never;
167
+ action?: never;
168
+ $unknown: [string, any];
169
+ }
170
+ interface Visitor<T> {
171
+ link: (value: ButtonLinkHandler) => T;
172
+ reply: (value: ButtonReplyHandler) => T;
173
+ action: (value: ButtonActionHandler) => T;
174
+ _: (name: string, value: any) => T;
175
+ }
176
+ const visit: <T>(value: ButtonHandler, visitor: Visitor<T>) => T;
177
+ }
178
+ /**
179
+ * @public
180
+ * @enum
181
+ */
182
+ export declare const ButtonVariant: {
183
+ readonly CONTAINED: "contained";
184
+ readonly OUTLINED: "outlined";
185
+ };
186
+ /**
187
+ * @public
188
+ */
189
+ export type ButtonVariant = typeof ButtonVariant[keyof typeof ButtonVariant];
190
+ /**
191
+ * @public
192
+ */
193
+ export interface ButtonElement {
194
+ text: string;
195
+ variant?: ButtonVariant;
196
+ disabled?: boolean;
197
+ handler?: ButtonHandler;
198
+ }
199
+ /**
200
+ * @public
201
+ */
202
+ export type ActionElement = ActionElement.ButtonMember | ActionElement.$UnknownMember;
203
+ /**
204
+ * @public
205
+ */
206
+ export declare namespace ActionElement {
207
+ interface ButtonMember {
208
+ button: ButtonElement;
209
+ $unknown?: never;
210
+ }
211
+ /**
212
+ * @public
213
+ */
214
+ interface $UnknownMember {
215
+ button?: never;
216
+ $unknown: [string, any];
217
+ }
218
+ interface Visitor<T> {
219
+ button: (value: ButtonElement) => T;
220
+ _: (name: string, value: any) => T;
221
+ }
222
+ const visit: <T>(value: ActionElement, visitor: Visitor<T>) => T;
223
+ }
224
+ /**
225
+ * @public
226
+ */
227
+ export interface ActionTriggerResult {
228
+ }
229
+ /**
230
+ * @public
231
+ * @enum
232
+ */
233
+ export declare const ActionTriggerStatus: {
234
+ readonly COMPLETED: "completed";
235
+ readonly PENDING: "pending";
236
+ };
237
+ /**
238
+ * @public
239
+ */
240
+ export type ActionTriggerStatus = typeof ActionTriggerStatus[keyof typeof ActionTriggerStatus];
113
241
  /**
114
242
  * @public
115
243
  */
@@ -485,6 +613,142 @@ export declare class TagsLimitReachedException extends __BaseException {
485
613
  */
486
614
  constructor(opts: __ExceptionOptionType<TagsLimitReachedException, __BaseException>);
487
615
  }
616
+ /**
617
+ * @public
618
+ */
619
+ export interface MessageAttachment {
620
+ id: string;
621
+ /**
622
+ * This *is* documentation about the field. Describe here what fsId and how to get it.
623
+ * @public
624
+ */
625
+ fsId: string;
626
+ mime?: string;
627
+ name: string;
628
+ size: number;
629
+ width?: number;
630
+ height?: number;
631
+ thumbnail?: string;
632
+ }
633
+ /**
634
+ * @public
635
+ */
636
+ export type Element = Element.ActionsMember | Element.$UnknownMember;
637
+ /**
638
+ * @public
639
+ */
640
+ export declare namespace Element {
641
+ interface ActionsMember {
642
+ actions: (ActionElement)[];
643
+ $unknown?: never;
644
+ }
645
+ /**
646
+ * @public
647
+ */
648
+ interface $UnknownMember {
649
+ actions?: never;
650
+ $unknown: [string, any];
651
+ }
652
+ interface Visitor<T> {
653
+ actions: (value: (ActionElement)[]) => T;
654
+ _: (name: string, value: any) => T;
655
+ }
656
+ const visit: <T>(value: Element, visitor: Visitor<T>) => T;
657
+ }
658
+ /**
659
+ * @public
660
+ */
661
+ export interface InitialMessage {
662
+ text?: string;
663
+ elements?: (Element)[];
664
+ attachments?: (MessageAttachment)[];
665
+ messageId: string;
666
+ }
667
+ /**
668
+ * @public
669
+ */
670
+ export interface WelcomeMessage {
671
+ text?: string;
672
+ elements?: (Element)[];
673
+ attachments?: (MessageAttachment)[];
674
+ messageId: string;
675
+ user: User;
676
+ }
677
+ /**
678
+ * @public
679
+ */
680
+ export interface CreateKiteChannelInput {
681
+ /**
682
+ * The unique identifier of the user when a service token is used.
683
+ * @public
684
+ */
685
+ userId?: string;
686
+ /**
687
+ * The unique identifier for the new group channel. If not provided, the system will generate one.
688
+ * @public
689
+ */
690
+ channelId?: string;
691
+ /**
692
+ * The unique identifier of the Kite widget or email of the agent (example: 36cv69ao or vadim.ruban@wildix.com).
693
+ * @public
694
+ */
695
+ targetId: string;
696
+ /**
697
+ * The unique identifier of the route for time-based configuration.
698
+ * @public
699
+ */
700
+ targetRouteId?: string;
701
+ /**
702
+ * A list of welcome messages is created during channel creation to preserve the same state as the client has on the interface. If welcomeMessages or initialMessage are not specified, the system will generate a 'conversation was created' system message.
703
+ * @public
704
+ */
705
+ welcomeMessages?: (WelcomeMessage)[];
706
+ /**
707
+ * A message to be added to the conversation for the user. If welcomeMessages or initialMessage are not specified, the system will generate a 'conversation was created' system message.
708
+ * @public
709
+ */
710
+ initialMessage?: InitialMessage;
711
+ }
712
+ /**
713
+ * @public
714
+ */
715
+ export interface CreateKiteChannelOutput {
716
+ channel: Channel;
717
+ }
718
+ /**
719
+ * @public
720
+ * @enum
721
+ */
722
+ export declare const TargetNotEligibleReason: {
723
+ readonly NO_LICENSE: "no_license";
724
+ };
725
+ /**
726
+ * @public
727
+ */
728
+ export type TargetNotEligibleReason = typeof TargetNotEligibleReason[keyof typeof TargetNotEligibleReason];
729
+ /**
730
+ * @public
731
+ */
732
+ export declare class TargetNotEligibleException extends __BaseException {
733
+ readonly name: "TargetNotEligibleException";
734
+ readonly $fault: "client";
735
+ reason?: TargetNotEligibleReason;
736
+ /**
737
+ * @internal
738
+ */
739
+ constructor(opts: __ExceptionOptionType<TargetNotEligibleException, __BaseException>);
740
+ }
741
+ /**
742
+ * @public
743
+ */
744
+ export declare class TargetNotFoundException extends __BaseException {
745
+ readonly name: "TargetNotFoundException";
746
+ readonly $fault: "client";
747
+ /**
748
+ * @internal
749
+ */
750
+ constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
751
+ }
488
752
  /**
489
753
  * @public
490
754
  */
@@ -651,106 +915,6 @@ export interface DeleteMessageReactionOutput {
651
915
  */
652
916
  export interface DescribeEventInput {
653
917
  }
654
- /**
655
- * @public
656
- */
657
- export interface WebhookChatChannelCreatedOrUpdatedEventData {
658
- channel: Channel;
659
- members: (ChannelMember)[];
660
- users: (User)[];
661
- }
662
- /**
663
- * @public
664
- * @enum
665
- */
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
- };
677
- /**
678
- * @public
679
- */
680
- export type WebhookEventType = typeof WebhookEventType[keyof typeof WebhookEventType];
681
- /**
682
- * @public
683
- */
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;
692
- }
693
- /**
694
- * @public
695
- */
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;
704
- }
705
- /**
706
- * @public
707
- */
708
- export interface WebhookChatMemberAddedOrRemovedEventData {
709
- channel: Channel;
710
- member: ChannelMember;
711
- user: User;
712
- }
713
- /**
714
- * @public
715
- */
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;
724
- }
725
- /**
726
- * @public
727
- */
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
- }
737
- /**
738
- * @public
739
- */
740
- export interface MessageAttachment {
741
- id: string;
742
- /**
743
- * This *is* documentation about the field. Describe here what fsId and how to get it.
744
- * @public
745
- */
746
- fsId: string;
747
- mime?: string;
748
- name: string;
749
- size: number;
750
- width?: number;
751
- height?: number;
752
- thumbnail?: string;
753
- }
754
918
  /**
755
919
  * @public
756
920
  */
@@ -841,6 +1005,7 @@ export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof Me
841
1005
  */
842
1006
  export interface Message {
843
1007
  text?: string;
1008
+ elements?: (Element)[];
844
1009
  attachments?: (MessageAttachment)[];
845
1010
  quote?: MessageQuote;
846
1011
  forward?: MessageForward;
@@ -862,6 +1027,112 @@ export interface Message {
862
1027
  createdAt: string;
863
1028
  updatedAt?: string;
864
1029
  }
1030
+ /**
1031
+ * @public
1032
+ */
1033
+ export interface WebhookChatActionTriggeredEventData {
1034
+ channel: Channel;
1035
+ message: Message;
1036
+ user: User;
1037
+ actionId: string;
1038
+ triggerId: string;
1039
+ }
1040
+ /**
1041
+ * @public
1042
+ * @enum
1043
+ */
1044
+ export declare const WebhookEventType: {
1045
+ readonly ACTION_TRIGGERED: "chat:action:triggered";
1046
+ readonly CHANNEL_CREATED: "chat:channel:created";
1047
+ readonly CHANNEL_UPDATED: "chat:channel:updated";
1048
+ readonly MEMBER_ADDED: "chat:member:added";
1049
+ readonly MEMBER_REMOVED: "chat:member:removed";
1050
+ readonly MESSAGE_DELETED: "chat:message:deleted";
1051
+ readonly MESSAGE_NEW: "chat:message:new";
1052
+ readonly MESSAGE_UPDATED: "chat:message:updated";
1053
+ readonly REACTION_DELETED: "chat:reaction:deleted";
1054
+ readonly REACTION_NEW: "chat:reaction:new";
1055
+ };
1056
+ /**
1057
+ * @public
1058
+ */
1059
+ export type WebhookEventType = typeof WebhookEventType[keyof typeof WebhookEventType];
1060
+ /**
1061
+ * @public
1062
+ */
1063
+ export interface WebhookChatActionTriggeredEvent {
1064
+ id: string;
1065
+ company: string;
1066
+ type: WebhookEventType;
1067
+ time: number;
1068
+ integrationId?: string;
1069
+ botId?: string;
1070
+ data: WebhookChatActionTriggeredEventData;
1071
+ }
1072
+ /**
1073
+ * @public
1074
+ */
1075
+ export interface WebhookChatChannelCreatedOrUpdatedEventData {
1076
+ channel: Channel;
1077
+ members: (ChannelMember)[];
1078
+ users: (User)[];
1079
+ }
1080
+ /**
1081
+ * @public
1082
+ */
1083
+ export interface WebhookChatChannelCreatedEvent {
1084
+ id: string;
1085
+ company: string;
1086
+ type: WebhookEventType;
1087
+ time: number;
1088
+ integrationId?: string;
1089
+ botId?: string;
1090
+ data: WebhookChatChannelCreatedOrUpdatedEventData;
1091
+ }
1092
+ /**
1093
+ * @public
1094
+ */
1095
+ export interface WebhookChatChannelUpdatedEvent {
1096
+ id: string;
1097
+ company: string;
1098
+ type: WebhookEventType;
1099
+ time: number;
1100
+ integrationId?: string;
1101
+ botId?: string;
1102
+ data: WebhookChatChannelCreatedOrUpdatedEventData;
1103
+ }
1104
+ /**
1105
+ * @public
1106
+ */
1107
+ export interface WebhookChatMemberAddedOrRemovedEventData {
1108
+ channel: Channel;
1109
+ member: ChannelMember;
1110
+ user: User;
1111
+ }
1112
+ /**
1113
+ * @public
1114
+ */
1115
+ export interface WebhookChatMemberAddedEvent {
1116
+ id: string;
1117
+ company: string;
1118
+ type: WebhookEventType;
1119
+ time: number;
1120
+ integrationId?: string;
1121
+ botId?: string;
1122
+ data: WebhookChatMemberAddedOrRemovedEventData;
1123
+ }
1124
+ /**
1125
+ * @public
1126
+ */
1127
+ export interface WebhookChatMemberRemovedEvent {
1128
+ id: string;
1129
+ company: string;
1130
+ type: WebhookEventType;
1131
+ time: number;
1132
+ integrationId?: string;
1133
+ botId?: string;
1134
+ data: WebhookChatMemberAddedOrRemovedEventData;
1135
+ }
865
1136
  /**
866
1137
  * @public
867
1138
  */
@@ -959,6 +1230,40 @@ export interface DescribeEventOutput {
959
1230
  WebhookChatMessageDeletedEvent?: WebhookChatMessageDeletedEvent;
960
1231
  WebhookChatReactionNewEvent?: WebhookChatReactionNewEvent;
961
1232
  WebhookChatReactionDeletedEvent?: WebhookChatReactionDeletedEvent;
1233
+ WebhookChatActionTriggeredEvent?: WebhookChatActionTriggeredEvent;
1234
+ }
1235
+ /**
1236
+ * @public
1237
+ */
1238
+ export interface GetActionTriggerResultInput {
1239
+ /**
1240
+ * The unique identifier of the action trigger inside the message.
1241
+ * @public
1242
+ */
1243
+ triggerId: string;
1244
+ /**
1245
+ * The unique identifier of the user when a service token is used.
1246
+ * @public
1247
+ */
1248
+ userId?: string;
1249
+ }
1250
+ /**
1251
+ * @public
1252
+ */
1253
+ export interface GetActionTriggerResultOutput {
1254
+ status: ActionTriggerStatus;
1255
+ result?: ActionTriggerResult;
1256
+ }
1257
+ /**
1258
+ * @public
1259
+ */
1260
+ export declare class TriggerNotFoundException extends __BaseException {
1261
+ readonly name: "TriggerNotFoundException";
1262
+ readonly $fault: "client";
1263
+ /**
1264
+ * @internal
1265
+ */
1266
+ constructor(opts: __ExceptionOptionType<TriggerNotFoundException, __BaseException>);
962
1267
  }
963
1268
  /**
964
1269
  * @public
@@ -1194,7 +1499,7 @@ export interface GetUploadedFileInfoInput {
1194
1499
  * @public
1195
1500
  */
1196
1501
  export interface GetUploadedFileInfoOutput {
1197
- file?: MessageAttachment;
1502
+ file: MessageAttachment;
1198
1503
  }
1199
1504
  /**
1200
1505
  * @public
@@ -1332,7 +1637,7 @@ export interface ListChannelsInput {
1332
1637
  */
1333
1638
  userId?: string;
1334
1639
  /**
1335
- * The maximum number of channels to return. The value must be between 1 and 50.
1640
+ * The maximum number of channels to return. The value must be between 1 and 30.
1336
1641
  * @public
1337
1642
  */
1338
1643
  limit?: number;
@@ -1465,6 +1770,36 @@ export interface ListMessagesOutput {
1465
1770
  */
1466
1771
  messages: (Message)[];
1467
1772
  }
1773
+ /**
1774
+ * @public
1775
+ */
1776
+ export interface ListPinnedMessagesInput {
1777
+ /**
1778
+ * The unique identifier of the channel from which to list messages.
1779
+ * @public
1780
+ */
1781
+ channelId: string;
1782
+ /**
1783
+ * The maximum number of pinned messages to return. The value must be between 1 and 100.
1784
+ * @public
1785
+ */
1786
+ limit?: number;
1787
+ /**
1788
+ * The offset from which to start listing pinned messages. The value must be between 0 and 1000.
1789
+ * @public
1790
+ */
1791
+ offset?: number;
1792
+ }
1793
+ /**
1794
+ * @public
1795
+ */
1796
+ export interface ListPinnedMessagesOutput {
1797
+ /**
1798
+ * A list of pinned messages in the channel.
1799
+ * @public
1800
+ */
1801
+ messages: (Message)[];
1802
+ }
1468
1803
  /**
1469
1804
  * @public
1470
1805
  */
@@ -1618,9 +1953,15 @@ export interface PartialUpdateChannelOutput {
1618
1953
  */
1619
1954
  export interface PartialUpdateMessageSetInput {
1620
1955
  text?: string;
1956
+ elements?: (Element)[];
1621
1957
  attachments?: (MessageAttachment)[];
1622
1958
  quote?: MessageQuote;
1623
1959
  forward?: MessageForward;
1960
+ /**
1961
+ * A list of user IDs mentioned in the message.
1962
+ * @public
1963
+ */
1964
+ mentions?: (string)[];
1624
1965
  }
1625
1966
  /**
1626
1967
  * @public
@@ -1628,7 +1969,9 @@ export interface PartialUpdateMessageSetInput {
1628
1969
  */
1629
1970
  export declare const MessageUnsetFields: {
1630
1971
  readonly ATTACHMENTS: "attachments";
1972
+ readonly ELEMENTS: "elements";
1631
1973
  readonly FORWARD: "forward";
1974
+ readonly MENTIONS: "mentions";
1632
1975
  readonly QUOTE: "quote";
1633
1976
  readonly TEXT: "text";
1634
1977
  };
@@ -1665,6 +2008,11 @@ export interface PartialUpdateMessageInput {
1665
2008
  * @public
1666
2009
  */
1667
2010
  unset?: (MessageUnsetFields)[];
2011
+ /**
2012
+ * Set to true to suppress the updated indicator. Defaults to false.
2013
+ * @public
2014
+ */
2015
+ silent?: boolean;
1668
2016
  }
1669
2017
  /**
1670
2018
  * @public
@@ -1708,6 +2056,42 @@ export declare class PinnedChannelsLimitReachedException extends __BaseException
1708
2056
  */
1709
2057
  constructor(opts: __ExceptionOptionType<PinnedChannelsLimitReachedException, __BaseException>);
1710
2058
  }
2059
+ /**
2060
+ * @public
2061
+ */
2062
+ export interface PinMessageInput {
2063
+ channelId: string;
2064
+ /**
2065
+ * The unique identifier of the message which should be pinned.
2066
+ * @public
2067
+ */
2068
+ messageId: string;
2069
+ /**
2070
+ * The unique identifier of the user when a service token is used.
2071
+ * @public
2072
+ */
2073
+ userId?: string;
2074
+ /**
2075
+ * The duration in seconds after which the pinned message will be automatically unpinned. If neither `expiresAfter` nor `expiresAt` is provided, the message will remain pinned indefinitely. Providing both `expiresAfter` and `expiresAt` will result in a validation error.
2076
+ * @public
2077
+ */
2078
+ expiresAfter?: number;
2079
+ /**
2080
+ * The specific date and time (in ISO 8601 format) when the pinned message will be automatically unpinned. If neither `expiresAfter` nor `expiresAt` is provided, the message will remain pinned indefinitely. Providing both `expiresAfter` and `expiresAt` will result in a validation error.
2081
+ * @public
2082
+ */
2083
+ expiresAt?: string;
2084
+ /**
2085
+ * Set to true to suppress system messages generated by this operation. Defaults to false.
2086
+ * @public
2087
+ */
2088
+ silent?: boolean;
2089
+ }
2090
+ /**
2091
+ * @public
2092
+ */
2093
+ export interface PinMessageOutput {
2094
+ }
1711
2095
  /**
1712
2096
  * @public
1713
2097
  */
@@ -1734,6 +2118,23 @@ export interface ScheduleExternalFlagAdjustmentJobInput {
1734
2118
  */
1735
2119
  export interface ScheduleExternalFlagAdjustmentJobOutput {
1736
2120
  }
2121
+ /**
2122
+ * @public
2123
+ */
2124
+ export interface SendActionTriggerResultInput {
2125
+ /**
2126
+ * The unique identifier of the action trigger inside the message.
2127
+ * @public
2128
+ */
2129
+ triggerId: string;
2130
+ status: ActionTriggerStatus;
2131
+ result: ActionTriggerResult;
2132
+ }
2133
+ /**
2134
+ * @public
2135
+ */
2136
+ export interface SendActionTriggerResultOutput {
2137
+ }
1737
2138
  /**
1738
2139
  * @public
1739
2140
  */
@@ -1770,6 +2171,7 @@ export interface SendGiphyOutput {
1770
2171
  */
1771
2172
  export interface SendMessageInput {
1772
2173
  text?: string;
2174
+ elements?: (Element)[];
1773
2175
  attachments?: (MessageAttachment)[];
1774
2176
  quote?: MessageQuote;
1775
2177
  forward?: MessageForward;
@@ -1931,6 +2333,48 @@ export declare class TaggedChannelsLimitReachedException extends __BaseException
1931
2333
  */
1932
2334
  constructor(opts: __ExceptionOptionType<TaggedChannelsLimitReachedException, __BaseException>);
1933
2335
  }
2336
+ /**
2337
+ * @public
2338
+ */
2339
+ export declare class MessageActionNotFoundException extends __BaseException {
2340
+ readonly name: "MessageActionNotFoundException";
2341
+ readonly $fault: "client";
2342
+ /**
2343
+ * @internal
2344
+ */
2345
+ constructor(opts: __ExceptionOptionType<MessageActionNotFoundException, __BaseException>);
2346
+ }
2347
+ /**
2348
+ * @public
2349
+ */
2350
+ export interface TriggerMessageActionInput {
2351
+ /**
2352
+ * The unique identifier of the channel to which the message is sent.
2353
+ * @public
2354
+ */
2355
+ channelId: string;
2356
+ /**
2357
+ * The unique identifier of the message which hold an action.
2358
+ * @public
2359
+ */
2360
+ messageId: string;
2361
+ /**
2362
+ * The unique identifier of the action inside the message.
2363
+ * @public
2364
+ */
2365
+ actionId: string;
2366
+ /**
2367
+ * The unique identifier of the user when a service token is used.
2368
+ * @public
2369
+ */
2370
+ userId?: string;
2371
+ }
2372
+ /**
2373
+ * @public
2374
+ */
2375
+ export interface TriggerMessageActionOutput {
2376
+ triggerId: string;
2377
+ }
1934
2378
  /**
1935
2379
  * @public
1936
2380
  */
@@ -1951,6 +2395,32 @@ export interface UnpinChannelInput {
1951
2395
  */
1952
2396
  export interface UnpinChannelOutput {
1953
2397
  }
2398
+ /**
2399
+ * @public
2400
+ */
2401
+ export interface UnpinMessageInput {
2402
+ channelId: string;
2403
+ /**
2404
+ * The unique identifier of the message which should be unpinned.
2405
+ * @public
2406
+ */
2407
+ messageId: string;
2408
+ /**
2409
+ * The unique identifier of the user when a service token is used.
2410
+ * @public
2411
+ */
2412
+ userId?: string;
2413
+ /**
2414
+ * Set to true to suppress system messages generated by this operation. Defaults to false.
2415
+ * @public
2416
+ */
2417
+ silent?: boolean;
2418
+ }
2419
+ /**
2420
+ * @public
2421
+ */
2422
+ export interface UnpinMessageOutput {
2423
+ }
1954
2424
  /**
1955
2425
  * @public
1956
2426
  */
@@ -2063,6 +2533,7 @@ export interface UpdateInboxTagOutput {
2063
2533
  */
2064
2534
  export interface UpdateMessageInput {
2065
2535
  text?: string;
2536
+ elements?: (Element)[];
2066
2537
  attachments?: (MessageAttachment)[];
2067
2538
  quote?: MessageQuote;
2068
2539
  forward?: MessageForward;
@@ -2086,6 +2557,11 @@ export interface UpdateMessageInput {
2086
2557
  * @public
2087
2558
  */
2088
2559
  mentions?: (string)[];
2560
+ /**
2561
+ * Set to true to suppress the updated indicator. Defaults to false.
2562
+ * @public
2563
+ */
2564
+ silent?: boolean;
2089
2565
  }
2090
2566
  /**
2091
2567
  * @public