@wildix/xbees-conversations-client 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist-cjs/Conversations.js +12 -0
  2. package/dist-cjs/commands/GetActionTriggerResultCommand.js +21 -0
  3. package/dist-cjs/commands/ListPinnedMessagesCommand.js +21 -0
  4. package/dist-cjs/commands/PinMessageCommand.js +21 -0
  5. package/dist-cjs/commands/SendActionTriggerResultCommand.js +21 -0
  6. package/dist-cjs/commands/TriggerMessageActionCommand.js +21 -0
  7. package/dist-cjs/commands/UnpinMessageCommand.js +21 -0
  8. package/dist-cjs/commands/index.js +6 -0
  9. package/dist-cjs/models/models_0.js +77 -12
  10. package/dist-cjs/protocols/Aws_restJson1.js +230 -2
  11. package/dist-es/Conversations.js +12 -0
  12. package/dist-es/commands/GetActionTriggerResultCommand.js +17 -0
  13. package/dist-es/commands/ListPinnedMessagesCommand.js +17 -0
  14. package/dist-es/commands/PinMessageCommand.js +17 -0
  15. package/dist-es/commands/SendActionTriggerResultCommand.js +17 -0
  16. package/dist-es/commands/TriggerMessageActionCommand.js +17 -0
  17. package/dist-es/commands/UnpinMessageCommand.js +17 -0
  18. package/dist-es/commands/index.js +6 -0
  19. package/dist-es/models/models_0.js +74 -11
  20. package/dist-es/protocols/Aws_restJson1.js +216 -1
  21. package/dist-types/Conversations.d.ts +42 -0
  22. package/dist-types/ConversationsClient.d.ts +8 -2
  23. package/dist-types/commands/DescribeEventCommand.d.ts +144 -9
  24. package/dist-types/commands/GetActionTriggerResultCommand.d.ts +70 -0
  25. package/dist-types/commands/GetMessageCommand.d.ts +24 -0
  26. package/dist-types/commands/ListMessagesCommand.d.ts +24 -0
  27. package/dist-types/commands/ListPinnedMessagesCommand.d.ts +224 -0
  28. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +53 -1
  29. package/dist-types/commands/PinMessageCommand.d.ts +73 -0
  30. package/dist-types/commands/SendActionTriggerResultCommand.d.ts +68 -0
  31. package/dist-types/commands/SendGiphyCommand.d.ts +24 -0
  32. package/dist-types/commands/SendMessageCommand.d.ts +48 -0
  33. package/dist-types/commands/TriggerMessageActionCommand.d.ts +75 -0
  34. package/dist-types/commands/UnpinMessageCommand.d.ts +71 -0
  35. package/dist-types/commands/UpdateMessageCommand.d.ts +49 -0
  36. package/dist-types/commands/index.d.ts +6 -0
  37. package/dist-types/models/models_0.d.ts +466 -84
  38. package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
  39. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  40. package/dist-types/runtimeConfig.d.ts +1 -0
  41. package/dist-types/runtimeConfig.native.d.ts +1 -0
  42. package/package.json +2 -2
@@ -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
  */
@@ -651,89 +779,6 @@ export interface DeleteMessageReactionOutput {
651
779
  */
652
780
  export interface DescribeEventInput {
653
781
  }
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
782
  /**
738
783
  * @public
739
784
  */
@@ -751,6 +796,31 @@ export interface MessageAttachment {
751
796
  height?: number;
752
797
  thumbnail?: string;
753
798
  }
799
+ /**
800
+ * @public
801
+ */
802
+ export type Element = Element.ActionsMember | Element.$UnknownMember;
803
+ /**
804
+ * @public
805
+ */
806
+ export declare namespace Element {
807
+ interface ActionsMember {
808
+ actions: (ActionElement)[];
809
+ $unknown?: never;
810
+ }
811
+ /**
812
+ * @public
813
+ */
814
+ interface $UnknownMember {
815
+ actions?: never;
816
+ $unknown: [string, any];
817
+ }
818
+ interface Visitor<T> {
819
+ actions: (value: (ActionElement)[]) => T;
820
+ _: (name: string, value: any) => T;
821
+ }
822
+ const visit: <T>(value: Element, visitor: Visitor<T>) => T;
823
+ }
754
824
  /**
755
825
  * @public
756
826
  */
@@ -841,6 +911,7 @@ export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof Me
841
911
  */
842
912
  export interface Message {
843
913
  text?: string;
914
+ elements?: (Element)[];
844
915
  attachments?: (MessageAttachment)[];
845
916
  quote?: MessageQuote;
846
917
  forward?: MessageForward;
@@ -862,6 +933,112 @@ export interface Message {
862
933
  createdAt: string;
863
934
  updatedAt?: string;
864
935
  }
936
+ /**
937
+ * @public
938
+ */
939
+ export interface WebhookChatActionTriggeredEventData {
940
+ channel: Channel;
941
+ message: Message;
942
+ user: User;
943
+ actionId: string;
944
+ triggerId: string;
945
+ }
946
+ /**
947
+ * @public
948
+ * @enum
949
+ */
950
+ export declare const WebhookEventType: {
951
+ readonly ACTION_TRIGGERED: "chat:action:triggered";
952
+ readonly CHANNEL_CREATED: "chat:channel:created";
953
+ readonly CHANNEL_UPDATED: "chat:channel:updated";
954
+ readonly MEMBER_ADDED: "chat:member:added";
955
+ readonly MEMBER_REMOVED: "chat:member:removed";
956
+ readonly MESSAGE_DELETED: "chat:message:deleted";
957
+ readonly MESSAGE_NEW: "chat:message:new";
958
+ readonly MESSAGE_UPDATED: "chat:message:updated";
959
+ readonly REACTION_DELETED: "chat:reaction:deleted";
960
+ readonly REACTION_NEW: "chat:reaction:new";
961
+ };
962
+ /**
963
+ * @public
964
+ */
965
+ export type WebhookEventType = typeof WebhookEventType[keyof typeof WebhookEventType];
966
+ /**
967
+ * @public
968
+ */
969
+ export interface WebhookChatActionTriggeredEvent {
970
+ id: string;
971
+ company: string;
972
+ type: WebhookEventType;
973
+ time: number;
974
+ integrationId?: string;
975
+ botId?: string;
976
+ data: WebhookChatActionTriggeredEventData;
977
+ }
978
+ /**
979
+ * @public
980
+ */
981
+ export interface WebhookChatChannelCreatedOrUpdatedEventData {
982
+ channel: Channel;
983
+ members: (ChannelMember)[];
984
+ users: (User)[];
985
+ }
986
+ /**
987
+ * @public
988
+ */
989
+ export interface WebhookChatChannelCreatedEvent {
990
+ id: string;
991
+ company: string;
992
+ type: WebhookEventType;
993
+ time: number;
994
+ integrationId?: string;
995
+ botId?: string;
996
+ data: WebhookChatChannelCreatedOrUpdatedEventData;
997
+ }
998
+ /**
999
+ * @public
1000
+ */
1001
+ export interface WebhookChatChannelUpdatedEvent {
1002
+ id: string;
1003
+ company: string;
1004
+ type: WebhookEventType;
1005
+ time: number;
1006
+ integrationId?: string;
1007
+ botId?: string;
1008
+ data: WebhookChatChannelCreatedOrUpdatedEventData;
1009
+ }
1010
+ /**
1011
+ * @public
1012
+ */
1013
+ export interface WebhookChatMemberAddedOrRemovedEventData {
1014
+ channel: Channel;
1015
+ member: ChannelMember;
1016
+ user: User;
1017
+ }
1018
+ /**
1019
+ * @public
1020
+ */
1021
+ export interface WebhookChatMemberAddedEvent {
1022
+ id: string;
1023
+ company: string;
1024
+ type: WebhookEventType;
1025
+ time: number;
1026
+ integrationId?: string;
1027
+ botId?: string;
1028
+ data: WebhookChatMemberAddedOrRemovedEventData;
1029
+ }
1030
+ /**
1031
+ * @public
1032
+ */
1033
+ export interface WebhookChatMemberRemovedEvent {
1034
+ id: string;
1035
+ company: string;
1036
+ type: WebhookEventType;
1037
+ time: number;
1038
+ integrationId?: string;
1039
+ botId?: string;
1040
+ data: WebhookChatMemberAddedOrRemovedEventData;
1041
+ }
865
1042
  /**
866
1043
  * @public
867
1044
  */
@@ -959,6 +1136,40 @@ export interface DescribeEventOutput {
959
1136
  WebhookChatMessageDeletedEvent?: WebhookChatMessageDeletedEvent;
960
1137
  WebhookChatReactionNewEvent?: WebhookChatReactionNewEvent;
961
1138
  WebhookChatReactionDeletedEvent?: WebhookChatReactionDeletedEvent;
1139
+ WebhookChatActionTriggeredEvent?: WebhookChatActionTriggeredEvent;
1140
+ }
1141
+ /**
1142
+ * @public
1143
+ */
1144
+ export interface GetActionTriggerResultInput {
1145
+ /**
1146
+ * The unique identifier of the action trigger inside the message.
1147
+ * @public
1148
+ */
1149
+ triggerId: string;
1150
+ /**
1151
+ * The unique identifier of the user when a service token is used.
1152
+ * @public
1153
+ */
1154
+ userId?: string;
1155
+ }
1156
+ /**
1157
+ * @public
1158
+ */
1159
+ export interface GetActionTriggerResultOutput {
1160
+ status: ActionTriggerStatus;
1161
+ result?: ActionTriggerResult;
1162
+ }
1163
+ /**
1164
+ * @public
1165
+ */
1166
+ export declare class TriggerNotFoundException extends __BaseException {
1167
+ readonly name: "TriggerNotFoundException";
1168
+ readonly $fault: "client";
1169
+ /**
1170
+ * @internal
1171
+ */
1172
+ constructor(opts: __ExceptionOptionType<TriggerNotFoundException, __BaseException>);
962
1173
  }
963
1174
  /**
964
1175
  * @public
@@ -1194,7 +1405,7 @@ export interface GetUploadedFileInfoInput {
1194
1405
  * @public
1195
1406
  */
1196
1407
  export interface GetUploadedFileInfoOutput {
1197
- file?: MessageAttachment;
1408
+ file: MessageAttachment;
1198
1409
  }
1199
1410
  /**
1200
1411
  * @public
@@ -1465,6 +1676,36 @@ export interface ListMessagesOutput {
1465
1676
  */
1466
1677
  messages: (Message)[];
1467
1678
  }
1679
+ /**
1680
+ * @public
1681
+ */
1682
+ export interface ListPinnedMessagesInput {
1683
+ /**
1684
+ * The unique identifier of the channel from which to list messages.
1685
+ * @public
1686
+ */
1687
+ channelId: string;
1688
+ /**
1689
+ * The maximum number of pinned messages to return. The value must be between 1 and 100.
1690
+ * @public
1691
+ */
1692
+ limit?: number;
1693
+ /**
1694
+ * The offset from which to start listing pinned messages. The value must be between 0 and 1000.
1695
+ * @public
1696
+ */
1697
+ offset?: number;
1698
+ }
1699
+ /**
1700
+ * @public
1701
+ */
1702
+ export interface ListPinnedMessagesOutput {
1703
+ /**
1704
+ * A list of pinned messages in the channel.
1705
+ * @public
1706
+ */
1707
+ messages: (Message)[];
1708
+ }
1468
1709
  /**
1469
1710
  * @public
1470
1711
  */
@@ -1618,9 +1859,15 @@ export interface PartialUpdateChannelOutput {
1618
1859
  */
1619
1860
  export interface PartialUpdateMessageSetInput {
1620
1861
  text?: string;
1862
+ elements?: (Element)[];
1621
1863
  attachments?: (MessageAttachment)[];
1622
1864
  quote?: MessageQuote;
1623
1865
  forward?: MessageForward;
1866
+ /**
1867
+ * A list of user IDs mentioned in the message.
1868
+ * @public
1869
+ */
1870
+ mentions?: (string)[];
1624
1871
  }
1625
1872
  /**
1626
1873
  * @public
@@ -1628,7 +1875,9 @@ export interface PartialUpdateMessageSetInput {
1628
1875
  */
1629
1876
  export declare const MessageUnsetFields: {
1630
1877
  readonly ATTACHMENTS: "attachments";
1878
+ readonly ELEMENTS: "elements";
1631
1879
  readonly FORWARD: "forward";
1880
+ readonly MENTIONS: "mentions";
1632
1881
  readonly QUOTE: "quote";
1633
1882
  readonly TEXT: "text";
1634
1883
  };
@@ -1665,6 +1914,11 @@ export interface PartialUpdateMessageInput {
1665
1914
  * @public
1666
1915
  */
1667
1916
  unset?: (MessageUnsetFields)[];
1917
+ /**
1918
+ * Set to true to suppress the updated indicator. Defaults to false.
1919
+ * @public
1920
+ */
1921
+ silent?: boolean;
1668
1922
  }
1669
1923
  /**
1670
1924
  * @public
@@ -1708,6 +1962,42 @@ export declare class PinnedChannelsLimitReachedException extends __BaseException
1708
1962
  */
1709
1963
  constructor(opts: __ExceptionOptionType<PinnedChannelsLimitReachedException, __BaseException>);
1710
1964
  }
1965
+ /**
1966
+ * @public
1967
+ */
1968
+ export interface PinMessageInput {
1969
+ channelId: string;
1970
+ /**
1971
+ * The unique identifier of the message which should be pinned.
1972
+ * @public
1973
+ */
1974
+ messageId: string;
1975
+ /**
1976
+ * The unique identifier of the user when a service token is used.
1977
+ * @public
1978
+ */
1979
+ userId?: string;
1980
+ /**
1981
+ * 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.
1982
+ * @public
1983
+ */
1984
+ expiresAfter?: number;
1985
+ /**
1986
+ * 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.
1987
+ * @public
1988
+ */
1989
+ expiresAt?: string;
1990
+ /**
1991
+ * Set to true to suppress system messages generated by this operation. Defaults to false.
1992
+ * @public
1993
+ */
1994
+ silent?: boolean;
1995
+ }
1996
+ /**
1997
+ * @public
1998
+ */
1999
+ export interface PinMessageOutput {
2000
+ }
1711
2001
  /**
1712
2002
  * @public
1713
2003
  */
@@ -1734,6 +2024,23 @@ export interface ScheduleExternalFlagAdjustmentJobInput {
1734
2024
  */
1735
2025
  export interface ScheduleExternalFlagAdjustmentJobOutput {
1736
2026
  }
2027
+ /**
2028
+ * @public
2029
+ */
2030
+ export interface SendActionTriggerResultInput {
2031
+ /**
2032
+ * The unique identifier of the action trigger inside the message.
2033
+ * @public
2034
+ */
2035
+ triggerId: string;
2036
+ status: ActionTriggerStatus;
2037
+ result: ActionTriggerResult;
2038
+ }
2039
+ /**
2040
+ * @public
2041
+ */
2042
+ export interface SendActionTriggerResultOutput {
2043
+ }
1737
2044
  /**
1738
2045
  * @public
1739
2046
  */
@@ -1770,6 +2077,7 @@ export interface SendGiphyOutput {
1770
2077
  */
1771
2078
  export interface SendMessageInput {
1772
2079
  text?: string;
2080
+ elements?: (Element)[];
1773
2081
  attachments?: (MessageAttachment)[];
1774
2082
  quote?: MessageQuote;
1775
2083
  forward?: MessageForward;
@@ -1931,6 +2239,48 @@ export declare class TaggedChannelsLimitReachedException extends __BaseException
1931
2239
  */
1932
2240
  constructor(opts: __ExceptionOptionType<TaggedChannelsLimitReachedException, __BaseException>);
1933
2241
  }
2242
+ /**
2243
+ * @public
2244
+ */
2245
+ export declare class MessageActionNotFoundException extends __BaseException {
2246
+ readonly name: "MessageActionNotFoundException";
2247
+ readonly $fault: "client";
2248
+ /**
2249
+ * @internal
2250
+ */
2251
+ constructor(opts: __ExceptionOptionType<MessageActionNotFoundException, __BaseException>);
2252
+ }
2253
+ /**
2254
+ * @public
2255
+ */
2256
+ export interface TriggerMessageActionInput {
2257
+ /**
2258
+ * The unique identifier of the channel to which the message is sent.
2259
+ * @public
2260
+ */
2261
+ channelId: string;
2262
+ /**
2263
+ * The unique identifier of the message which hold an action.
2264
+ * @public
2265
+ */
2266
+ messageId: string;
2267
+ /**
2268
+ * The unique identifier of the action inside the message.
2269
+ * @public
2270
+ */
2271
+ actionId: string;
2272
+ /**
2273
+ * The unique identifier of the user when a service token is used.
2274
+ * @public
2275
+ */
2276
+ userId?: string;
2277
+ }
2278
+ /**
2279
+ * @public
2280
+ */
2281
+ export interface TriggerMessageActionOutput {
2282
+ triggerId: string;
2283
+ }
1934
2284
  /**
1935
2285
  * @public
1936
2286
  */
@@ -1951,6 +2301,32 @@ export interface UnpinChannelInput {
1951
2301
  */
1952
2302
  export interface UnpinChannelOutput {
1953
2303
  }
2304
+ /**
2305
+ * @public
2306
+ */
2307
+ export interface UnpinMessageInput {
2308
+ channelId: string;
2309
+ /**
2310
+ * The unique identifier of the message which should be unpinned.
2311
+ * @public
2312
+ */
2313
+ messageId: string;
2314
+ /**
2315
+ * The unique identifier of the user when a service token is used.
2316
+ * @public
2317
+ */
2318
+ userId?: string;
2319
+ /**
2320
+ * Set to true to suppress system messages generated by this operation. Defaults to false.
2321
+ * @public
2322
+ */
2323
+ silent?: boolean;
2324
+ }
2325
+ /**
2326
+ * @public
2327
+ */
2328
+ export interface UnpinMessageOutput {
2329
+ }
1954
2330
  /**
1955
2331
  * @public
1956
2332
  */
@@ -2063,6 +2439,7 @@ export interface UpdateInboxTagOutput {
2063
2439
  */
2064
2440
  export interface UpdateMessageInput {
2065
2441
  text?: string;
2442
+ elements?: (Element)[];
2066
2443
  attachments?: (MessageAttachment)[];
2067
2444
  quote?: MessageQuote;
2068
2445
  forward?: MessageForward;
@@ -2086,6 +2463,11 @@ export interface UpdateMessageInput {
2086
2463
  * @public
2087
2464
  */
2088
2465
  mentions?: (string)[];
2466
+ /**
2467
+ * Set to true to suppress the updated indicator. Defaults to false.
2468
+ * @public
2469
+ */
2470
+ silent?: boolean;
2089
2471
  }
2090
2472
  /**
2091
2473
  * @public