@wildix/xbees-conversations-client 1.0.62 → 1.0.64

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.
@@ -484,6 +484,22 @@ export const se_ListMessagesCommand = async (input, context) => {
484
484
  .b(body);
485
485
  return b.build();
486
486
  };
487
+ export const se_ListPinnedMessagesCommand = async (input, context) => {
488
+ const b = rb(input, context);
489
+ const headers = {};
490
+ b.bp("/v2/conversations/channels/{channelId}/pinned_messages");
491
+ b.p('channelId', () => input.channelId, '{channelId}', false);
492
+ const query = map({
493
+ [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
494
+ [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
495
+ });
496
+ let body;
497
+ b.m("GET")
498
+ .h(headers)
499
+ .q(query)
500
+ .b(body);
501
+ return b.build();
502
+ };
487
503
  export const se_MarkReadCommand = async (input, context) => {
488
504
  const b = rb(input, context);
489
505
  const headers = {};
@@ -556,6 +572,7 @@ export const se_PartialUpdateMessageCommand = async (input, context) => {
556
572
  let body;
557
573
  body = JSON.stringify(take(input, {
558
574
  'set': _ => _json(_),
575
+ 'silent': [],
559
576
  'unset': _ => _json(_),
560
577
  }));
561
578
  b.m("PATCH")
@@ -580,6 +597,29 @@ export const se_PinChannelCommand = async (input, context) => {
580
597
  .b(body);
581
598
  return b.build();
582
599
  };
600
+ export const se_PinMessageCommand = async (input, context) => {
601
+ const b = rb(input, context);
602
+ const headers = {
603
+ 'content-type': 'application/json',
604
+ };
605
+ b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/pin");
606
+ b.p('channelId', () => input.channelId, '{channelId}', false);
607
+ b.p('messageId', () => input.messageId, '{messageId}', false);
608
+ const query = map({
609
+ [_u]: [, input[_uI]],
610
+ });
611
+ let body;
612
+ body = JSON.stringify(take(input, {
613
+ 'expiresAfter': [],
614
+ 'expiresTill': [],
615
+ 'silent': [],
616
+ }));
617
+ b.m("PUT")
618
+ .h(headers)
619
+ .q(query)
620
+ .b(body);
621
+ return b.build();
622
+ };
583
623
  export const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
584
624
  const b = rb(input, context);
585
625
  const headers = {
@@ -774,6 +814,23 @@ export const se_UnpinChannelCommand = async (input, context) => {
774
814
  .b(body);
775
815
  return b.build();
776
816
  };
817
+ export const se_UnpinMessageCommand = async (input, context) => {
818
+ const b = rb(input, context);
819
+ const headers = {};
820
+ b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/pin");
821
+ b.p('channelId', () => input.channelId, '{channelId}', false);
822
+ b.p('messageId', () => input.messageId, '{messageId}', false);
823
+ const query = map({
824
+ [_u]: [, input[_uI]],
825
+ [_s]: [() => input.silent !== void 0, () => (input[_s].toString())],
826
+ });
827
+ let body;
828
+ b.m("DELETE")
829
+ .h(headers)
830
+ .q(query)
831
+ .b(body);
832
+ return b.build();
833
+ };
777
834
  export const se_UntagChannelCommand = async (input, context) => {
778
835
  const b = rb(input, context);
779
836
  const headers = {
@@ -858,6 +915,7 @@ export const se_UpdateMessageCommand = async (input, context) => {
858
915
  'forward': _ => _json(_),
859
916
  'mentions': _ => _json(_),
860
917
  'quote': _ => _json(_),
918
+ 'silent': [],
861
919
  'text': [],
862
920
  }));
863
921
  b.m("PUT")
@@ -1004,6 +1062,7 @@ export const de_DescribeEventCommand = async (output, context) => {
1004
1062
  });
1005
1063
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1006
1064
  const doc = take(data, {
1065
+ 'WebhookChatActionTriggeredEvent': _json,
1007
1066
  'WebhookChatChannelCreatedEvent': _json,
1008
1067
  'WebhookChatChannelUpdatedEvent': _json,
1009
1068
  'WebhookChatMemberAddedEvent': _json,
@@ -1279,6 +1338,20 @@ export const de_ListMessagesCommand = async (output, context) => {
1279
1338
  Object.assign(contents, doc);
1280
1339
  return contents;
1281
1340
  };
1341
+ export const de_ListPinnedMessagesCommand = async (output, context) => {
1342
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1343
+ return de_CommandError(output, context);
1344
+ }
1345
+ const contents = map({
1346
+ $metadata: deserializeMetadata(output),
1347
+ });
1348
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1349
+ const doc = take(data, {
1350
+ 'messages': _json,
1351
+ });
1352
+ Object.assign(contents, doc);
1353
+ return contents;
1354
+ };
1282
1355
  export const de_MarkReadCommand = async (output, context) => {
1283
1356
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1284
1357
  return de_CommandError(output, context);
@@ -1337,6 +1410,16 @@ export const de_PinChannelCommand = async (output, context) => {
1337
1410
  await collectBody(output.body, context);
1338
1411
  return contents;
1339
1412
  };
1413
+ export const de_PinMessageCommand = async (output, context) => {
1414
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1415
+ return de_CommandError(output, context);
1416
+ }
1417
+ const contents = map({
1418
+ $metadata: deserializeMetadata(output),
1419
+ });
1420
+ await collectBody(output.body, context);
1421
+ return contents;
1422
+ };
1340
1423
  export const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
1341
1424
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1342
1425
  return de_CommandError(output, context);
@@ -1459,6 +1542,16 @@ export const de_UnpinChannelCommand = async (output, context) => {
1459
1542
  await collectBody(output.body, context);
1460
1543
  return contents;
1461
1544
  };
1545
+ export const de_UnpinMessageCommand = async (output, context) => {
1546
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1547
+ return de_CommandError(output, context);
1548
+ }
1549
+ const contents = map({
1550
+ $metadata: deserializeMetadata(output),
1551
+ });
1552
+ await collectBody(output.body, context);
1553
+ return contents;
1554
+ };
1462
1555
  export const de_UntagChannelCommand = async (output, context) => {
1463
1556
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1464
1557
  return de_CommandError(output, context);
@@ -28,11 +28,13 @@ import { ListInboxTaggedChannelsCommandInput, ListInboxTaggedChannelsCommandOutp
28
28
  import { ListInboxTagsCommandInput, ListInboxTagsCommandOutput } from "./commands/ListInboxTagsCommand";
29
29
  import { ListMessageReactionsCommandInput, ListMessageReactionsCommandOutput } from "./commands/ListMessageReactionsCommand";
30
30
  import { ListMessagesCommandInput, ListMessagesCommandOutput } from "./commands/ListMessagesCommand";
31
+ import { ListPinnedMessagesCommandInput, ListPinnedMessagesCommandOutput } from "./commands/ListPinnedMessagesCommand";
31
32
  import { MarkReadCommandInput, MarkReadCommandOutput } from "./commands/MarkReadCommand";
32
33
  import { MarkUnreadCommandInput, MarkUnreadCommandOutput } from "./commands/MarkUnreadCommand";
33
34
  import { PartialUpdateChannelCommandInput, PartialUpdateChannelCommandOutput } from "./commands/PartialUpdateChannelCommand";
34
35
  import { PartialUpdateMessageCommandInput, PartialUpdateMessageCommandOutput } from "./commands/PartialUpdateMessageCommand";
35
36
  import { PinChannelCommandInput, PinChannelCommandOutput } from "./commands/PinChannelCommand";
37
+ import { PinMessageCommandInput, PinMessageCommandOutput } from "./commands/PinMessageCommand";
36
38
  import { ScheduleExternalFlagAdjustmentJobCommandInput, ScheduleExternalFlagAdjustmentJobCommandOutput } from "./commands/ScheduleExternalFlagAdjustmentJobCommand";
37
39
  import { SendActionTriggerResultCommandInput, SendActionTriggerResultCommandOutput } from "./commands/SendActionTriggerResultCommand";
38
40
  import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
@@ -44,6 +46,7 @@ import { ShowChannelCommandInput, ShowChannelCommandOutput } from "./commands/Sh
44
46
  import { TagChannelCommandInput, TagChannelCommandOutput } from "./commands/TagChannelCommand";
45
47
  import { TriggerMessageActionCommandInput, TriggerMessageActionCommandOutput } from "./commands/TriggerMessageActionCommand";
46
48
  import { UnpinChannelCommandInput, UnpinChannelCommandOutput } from "./commands/UnpinChannelCommand";
49
+ import { UnpinMessageCommandInput, UnpinMessageCommandOutput } from "./commands/UnpinMessageCommand";
47
50
  import { UntagChannelCommandInput, UntagChannelCommandOutput } from "./commands/UntagChannelCommand";
48
51
  import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
49
52
  import { UpdateInboxTagCommandInput, UpdateInboxTagCommandOutput } from "./commands/UpdateInboxTagCommand";
@@ -232,6 +235,12 @@ export interface Conversations {
232
235
  listMessages(args: ListMessagesCommandInput, options?: __HttpHandlerOptions): Promise<ListMessagesCommandOutput>;
233
236
  listMessages(args: ListMessagesCommandInput, cb: (err: any, data?: ListMessagesCommandOutput) => void): void;
234
237
  listMessages(args: ListMessagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMessagesCommandOutput) => void): void;
238
+ /**
239
+ * @see {@link ListPinnedMessagesCommand}
240
+ */
241
+ listPinnedMessages(args: ListPinnedMessagesCommandInput, options?: __HttpHandlerOptions): Promise<ListPinnedMessagesCommandOutput>;
242
+ listPinnedMessages(args: ListPinnedMessagesCommandInput, cb: (err: any, data?: ListPinnedMessagesCommandOutput) => void): void;
243
+ listPinnedMessages(args: ListPinnedMessagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPinnedMessagesCommandOutput) => void): void;
235
244
  /**
236
245
  * @see {@link MarkReadCommand}
237
246
  */
@@ -262,6 +271,12 @@ export interface Conversations {
262
271
  pinChannel(args: PinChannelCommandInput, options?: __HttpHandlerOptions): Promise<PinChannelCommandOutput>;
263
272
  pinChannel(args: PinChannelCommandInput, cb: (err: any, data?: PinChannelCommandOutput) => void): void;
264
273
  pinChannel(args: PinChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PinChannelCommandOutput) => void): void;
274
+ /**
275
+ * @see {@link PinMessageCommand}
276
+ */
277
+ pinMessage(args: PinMessageCommandInput, options?: __HttpHandlerOptions): Promise<PinMessageCommandOutput>;
278
+ pinMessage(args: PinMessageCommandInput, cb: (err: any, data?: PinMessageCommandOutput) => void): void;
279
+ pinMessage(args: PinMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PinMessageCommandOutput) => void): void;
265
280
  /**
266
281
  * @see {@link ScheduleExternalFlagAdjustmentJobCommand}
267
282
  */
@@ -328,6 +343,12 @@ export interface Conversations {
328
343
  unpinChannel(args: UnpinChannelCommandInput, options?: __HttpHandlerOptions): Promise<UnpinChannelCommandOutput>;
329
344
  unpinChannel(args: UnpinChannelCommandInput, cb: (err: any, data?: UnpinChannelCommandOutput) => void): void;
330
345
  unpinChannel(args: UnpinChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnpinChannelCommandOutput) => void): void;
346
+ /**
347
+ * @see {@link UnpinMessageCommand}
348
+ */
349
+ unpinMessage(args: UnpinMessageCommandInput, options?: __HttpHandlerOptions): Promise<UnpinMessageCommandOutput>;
350
+ unpinMessage(args: UnpinMessageCommandInput, cb: (err: any, data?: UnpinMessageCommandOutput) => void): void;
351
+ unpinMessage(args: UnpinMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnpinMessageCommandOutput) => void): void;
331
352
  /**
332
353
  * @see {@link UntagChannelCommand}
333
354
  */
@@ -27,11 +27,13 @@ import { ListInboxTaggedChannelsCommandInput, ListInboxTaggedChannelsCommandOutp
27
27
  import { ListInboxTagsCommandInput, ListInboxTagsCommandOutput } from "./commands/ListInboxTagsCommand";
28
28
  import { ListMessageReactionsCommandInput, ListMessageReactionsCommandOutput } from "./commands/ListMessageReactionsCommand";
29
29
  import { ListMessagesCommandInput, ListMessagesCommandOutput } from "./commands/ListMessagesCommand";
30
+ import { ListPinnedMessagesCommandInput, ListPinnedMessagesCommandOutput } from "./commands/ListPinnedMessagesCommand";
30
31
  import { MarkReadCommandInput, MarkReadCommandOutput } from "./commands/MarkReadCommand";
31
32
  import { MarkUnreadCommandInput, MarkUnreadCommandOutput } from "./commands/MarkUnreadCommand";
32
33
  import { PartialUpdateChannelCommandInput, PartialUpdateChannelCommandOutput } from "./commands/PartialUpdateChannelCommand";
33
34
  import { PartialUpdateMessageCommandInput, PartialUpdateMessageCommandOutput } from "./commands/PartialUpdateMessageCommand";
34
35
  import { PinChannelCommandInput, PinChannelCommandOutput } from "./commands/PinChannelCommand";
36
+ import { PinMessageCommandInput, PinMessageCommandOutput } from "./commands/PinMessageCommand";
35
37
  import { ScheduleExternalFlagAdjustmentJobCommandInput, ScheduleExternalFlagAdjustmentJobCommandOutput } from "./commands/ScheduleExternalFlagAdjustmentJobCommand";
36
38
  import { SendActionTriggerResultCommandInput, SendActionTriggerResultCommandOutput } from "./commands/SendActionTriggerResultCommand";
37
39
  import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
@@ -43,6 +45,7 @@ import { ShowChannelCommandInput, ShowChannelCommandOutput } from "./commands/Sh
43
45
  import { TagChannelCommandInput, TagChannelCommandOutput } from "./commands/TagChannelCommand";
44
46
  import { TriggerMessageActionCommandInput, TriggerMessageActionCommandOutput } from "./commands/TriggerMessageActionCommand";
45
47
  import { UnpinChannelCommandInput, UnpinChannelCommandOutput } from "./commands/UnpinChannelCommand";
48
+ import { UnpinMessageCommandInput, UnpinMessageCommandOutput } from "./commands/UnpinMessageCommand";
46
49
  import { UntagChannelCommandInput, UntagChannelCommandOutput } from "./commands/UntagChannelCommand";
47
50
  import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
48
51
  import { UpdateInboxTagCommandInput, UpdateInboxTagCommandOutput } from "./commands/UpdateInboxTagCommand";
@@ -59,11 +62,11 @@ export { __Client };
59
62
  /**
60
63
  * @public
61
64
  */
62
- export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteInboxTagCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetActionTriggerResultCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxStateCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListInboxTaggedChannelsCommandInput | ListInboxTagsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendActionTriggerResultCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | TagChannelCommandInput | TriggerMessageActionCommandInput | UnpinChannelCommandInput | UntagChannelCommandInput | UpdateChannelCommandInput | UpdateInboxTagCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
65
+ export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteInboxTagCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetActionTriggerResultCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxStateCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListInboxTaggedChannelsCommandInput | ListInboxTagsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | ListPinnedMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | PinMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendActionTriggerResultCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | TagChannelCommandInput | TriggerMessageActionCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UntagChannelCommandInput | UpdateChannelCommandInput | UpdateInboxTagCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
63
66
  /**
64
67
  * @public
65
68
  */
66
- export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteInboxTagCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetActionTriggerResultCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxStateCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListInboxTaggedChannelsCommandOutput | ListInboxTagsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendActionTriggerResultCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | TagChannelCommandOutput | TriggerMessageActionCommandOutput | UnpinChannelCommandOutput | UntagChannelCommandOutput | UpdateChannelCommandOutput | UpdateInboxTagCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
69
+ export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteInboxTagCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetActionTriggerResultCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxStateCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListInboxTaggedChannelsCommandOutput | ListInboxTagsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | ListPinnedMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | PinMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendActionTriggerResultCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | TagChannelCommandOutput | TriggerMessageActionCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UntagChannelCommandOutput | UpdateChannelCommandOutput | UpdateInboxTagCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
67
70
  /**
68
71
  * @public
69
72
  */
@@ -1094,6 +1094,21 @@ declare const DescribeEventCommand_base: {
1094
1094
  * // reaction: "<Reaction>", // required
1095
1095
  * // },
1096
1096
  * // },
1097
+ * // WebhookChatActionTriggeredEvent: { // WebhookChatActionTriggeredEvent
1098
+ * // id: "STRING_VALUE", // required
1099
+ * // company: "STRING_VALUE", // required
1100
+ * // type: "chat:channel:created" || "chat:channel:updated" || "chat:member:added" || "chat:member:removed" || "chat:message:new" || "chat:message:updated" || "chat:message:deleted" || "chat:reaction:new" || "chat:reaction:deleted" || "chat:action:triggered", // required
1101
+ * // time: Number("long"), // required
1102
+ * // integrationId: "STRING_VALUE",
1103
+ * // botId: "STRING_VALUE",
1104
+ * // data: { // WebhookChatActionTriggeredEventData
1105
+ * // channel: "<Channel>", // required
1106
+ * // message: "<Message>", // required
1107
+ * // user: "<User>", // required
1108
+ * // actionId: "STRING_VALUE", // required
1109
+ * // triggerId: "STRING_VALUE", // required
1110
+ * // },
1111
+ * // },
1097
1112
  * // };
1098
1113
  *
1099
1114
  * ```
@@ -0,0 +1,261 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { ListPinnedMessagesInput, ListPinnedMessagesOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListPinnedMessagesCommand}.
14
+ */
15
+ export interface ListPinnedMessagesCommandInput extends ListPinnedMessagesInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListPinnedMessagesCommand}.
21
+ */
22
+ export interface ListPinnedMessagesCommandOutput extends ListPinnedMessagesOutput, __MetadataBearer {
23
+ }
24
+ declare const ListPinnedMessagesCommand_base: {
25
+ new (input: ListPinnedMessagesCommandInput): import("@smithy/smithy-client").CommandImpl<ListPinnedMessagesCommandInput, ListPinnedMessagesCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListPinnedMessagesCommandInput): import("@smithy/smithy-client").CommandImpl<ListPinnedMessagesCommandInput, ListPinnedMessagesCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Retrieves a list of pinned messages from a specified channel. Supports pagination through limit and offset parameters.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ConversationsClient, ListPinnedMessagesCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
35
+ * // const { ConversationsClient, ListPinnedMessagesCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
36
+ * const client = new ConversationsClient(config);
37
+ * const input = { // ListPinnedMessagesInput
38
+ * channelId: "STRING_VALUE", // required
39
+ * limit: Number("int"),
40
+ * offset: Number("int"),
41
+ * };
42
+ * const command = new ListPinnedMessagesCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListPinnedMessagesOutput
45
+ * // messages: [ // MessagesList // required
46
+ * // { // Message
47
+ * // text: "STRING_VALUE",
48
+ * // elements: [ // ElementsList
49
+ * // { // Element Union: only one key present
50
+ * // text: { // TextElement
51
+ * // value: "STRING_VALUE", // required
52
+ * // style: { // TextStyle
53
+ * // italic: true || false,
54
+ * // bold: true || false,
55
+ * // strike: true || false,
56
+ * // code: true || false,
57
+ * // },
58
+ * // },
59
+ * // link: { // LinkElement
60
+ * // url: "STRING_VALUE", // required
61
+ * // text: "STRING_VALUE",
62
+ * // style: {
63
+ * // italic: true || false,
64
+ * // bold: true || false,
65
+ * // strike: true || false,
66
+ * // code: true || false,
67
+ * // },
68
+ * // },
69
+ * // email: { // EmailElement
70
+ * // value: "STRING_VALUE", // required
71
+ * // style: {
72
+ * // italic: true || false,
73
+ * // bold: true || false,
74
+ * // strike: true || false,
75
+ * // code: true || false,
76
+ * // },
77
+ * // },
78
+ * // phone: { // PhoneElement
79
+ * // value: "STRING_VALUE", // required
80
+ * // style: {
81
+ * // italic: true || false,
82
+ * // bold: true || false,
83
+ * // strike: true || false,
84
+ * // code: true || false,
85
+ * // },
86
+ * // },
87
+ * // mention: { // MentionElement
88
+ * // text: "STRING_VALUE", // required
89
+ * // user: { // User
90
+ * // id: "STRING_VALUE", // required
91
+ * // name: "STRING_VALUE",
92
+ * // email: "STRING_VALUE",
93
+ * // phone: "STRING_VALUE",
94
+ * // picture: "STRING_VALUE",
95
+ * // locale: "STRING_VALUE",
96
+ * // timeZone: "STRING_VALUE",
97
+ * // company: "STRING_VALUE",
98
+ * // bot: true || false,
99
+ * // pbxDomain: "STRING_VALUE",
100
+ * // pbxPort: "STRING_VALUE",
101
+ * // pbxExtension: "STRING_VALUE",
102
+ * // pbxSerial: "STRING_VALUE",
103
+ * // pbxUserId: "STRING_VALUE",
104
+ * // createdAt: "STRING_VALUE",
105
+ * // updatedAt: "STRING_VALUE",
106
+ * // },
107
+ * // },
108
+ * // actions: [ // ActionsElementsList
109
+ * // { // ActionElement Union: only one key present
110
+ * // button: { // ButtonElement
111
+ * // text: "STRING_VALUE", // required
112
+ * // variant: "contained" || "outlined",
113
+ * // disabled: true || false,
114
+ * // handler: { // ButtonHandler Union: only one key present
115
+ * // link: { // ButtonLinkHandler
116
+ * // url: "STRING_VALUE", // required
117
+ * // },
118
+ * // reply: { // ButtonReplyHandler
119
+ * // text: "STRING_VALUE",
120
+ * // },
121
+ * // action: { // ButtonActionHandler
122
+ * // id: "STRING_VALUE", // required
123
+ * // },
124
+ * // },
125
+ * // },
126
+ * // },
127
+ * // ],
128
+ * // },
129
+ * // ],
130
+ * // attachments: [ // MessageAttachmentList
131
+ * // { // MessageAttachment
132
+ * // id: "STRING_VALUE", // required
133
+ * // fsId: "STRING_VALUE", // required
134
+ * // mime: "STRING_VALUE",
135
+ * // name: "STRING_VALUE", // required
136
+ * // size: Number("int"), // required
137
+ * // width: Number("int"),
138
+ * // height: Number("int"),
139
+ * // thumbnail: "STRING_VALUE",
140
+ * // },
141
+ * // ],
142
+ * // quote: { // MessageQuote
143
+ * // messageId: "STRING_VALUE", // required
144
+ * // channelId: "STRING_VALUE", // required
145
+ * // user: {
146
+ * // id: "STRING_VALUE", // required
147
+ * // name: "STRING_VALUE",
148
+ * // email: "STRING_VALUE",
149
+ * // phone: "STRING_VALUE",
150
+ * // picture: "STRING_VALUE",
151
+ * // locale: "STRING_VALUE",
152
+ * // timeZone: "STRING_VALUE",
153
+ * // company: "STRING_VALUE",
154
+ * // bot: true || false,
155
+ * // pbxDomain: "STRING_VALUE",
156
+ * // pbxPort: "STRING_VALUE",
157
+ * // pbxExtension: "STRING_VALUE",
158
+ * // pbxSerial: "STRING_VALUE",
159
+ * // pbxUserId: "STRING_VALUE",
160
+ * // createdAt: "STRING_VALUE",
161
+ * // updatedAt: "STRING_VALUE",
162
+ * // },
163
+ * // text: "STRING_VALUE",
164
+ * // attachments: [
165
+ * // {
166
+ * // id: "STRING_VALUE", // required
167
+ * // fsId: "STRING_VALUE", // required
168
+ * // mime: "STRING_VALUE",
169
+ * // name: "STRING_VALUE", // required
170
+ * // size: Number("int"), // required
171
+ * // width: Number("int"),
172
+ * // height: Number("int"),
173
+ * // thumbnail: "STRING_VALUE",
174
+ * // },
175
+ * // ],
176
+ * // forward: { // MessageForward
177
+ * // forwardCompany: "STRING_VALUE",
178
+ * // forwardDate: "STRING_VALUE", // required
179
+ * // forwardEmail: "STRING_VALUE",
180
+ * // forwardName: "STRING_VALUE",
181
+ * // },
182
+ * // mentions: [ // UsersList
183
+ * // "<User>",
184
+ * // ],
185
+ * // giphy: { // MessageGiphy
186
+ * // id: "STRING_VALUE", // required
187
+ * // size: "STRING_VALUE", // required
188
+ * // url: "STRING_VALUE", // required
189
+ * // height: "STRING_VALUE", // required
190
+ * // width: "STRING_VALUE", // required
191
+ * // },
192
+ * // createdAt: "STRING_VALUE", // required
193
+ * // updatedAt: "STRING_VALUE",
194
+ * // },
195
+ * // forward: {
196
+ * // forwardCompany: "STRING_VALUE",
197
+ * // forwardDate: "STRING_VALUE", // required
198
+ * // forwardEmail: "STRING_VALUE",
199
+ * // forwardName: "STRING_VALUE",
200
+ * // },
201
+ * // type: "regular" || "system", // required
202
+ * // giphy: {
203
+ * // id: "STRING_VALUE", // required
204
+ * // size: "STRING_VALUE", // required
205
+ * // url: "STRING_VALUE", // required
206
+ * // height: "STRING_VALUE", // required
207
+ * // width: "STRING_VALUE", // required
208
+ * // },
209
+ * // silent: true || false,
210
+ * // event: "STRING_VALUE",
211
+ * // sms: true || false,
212
+ * // smsStatus: "sent" || "delivered" || "trying" || "error",
213
+ * // whatsapp: true || false,
214
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
215
+ * // messageId: "STRING_VALUE", // required
216
+ * // channelId: "STRING_VALUE", // required
217
+ * // user: "<User>", // required
218
+ * // edit: true || false,
219
+ * // mentions: [
220
+ * // "<User>",
221
+ * // ],
222
+ * // latestReactions: [ // ReactionList
223
+ * // { // Reaction
224
+ * // type: "STRING_VALUE",
225
+ * // userId: "STRING_VALUE",
226
+ * // messageId: "STRING_VALUE",
227
+ * // user: "<User>",
228
+ * // },
229
+ * // ],
230
+ * // reactionCounts: { // ReactionCounts
231
+ * // "<keys>": Number("int"),
232
+ * // },
233
+ * // createdAt: "STRING_VALUE", // required
234
+ * // updatedAt: "STRING_VALUE",
235
+ * // },
236
+ * // ],
237
+ * // };
238
+ *
239
+ * ```
240
+ *
241
+ * @param ListPinnedMessagesCommandInput - {@link ListPinnedMessagesCommandInput}
242
+ * @returns {@link ListPinnedMessagesCommandOutput}
243
+ * @see {@link ListPinnedMessagesCommandInput} for command's `input` shape.
244
+ * @see {@link ListPinnedMessagesCommandOutput} for command's `response` shape.
245
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
246
+ *
247
+ * @throws {@link ChannelNotFoundException} (client fault)
248
+ *
249
+ * @throws {@link ValidationException} (client fault)
250
+ *
251
+ * @throws {@link ForbiddenException} (client fault)
252
+ *
253
+ * @throws {@link RateLimitExceededException} (client fault)
254
+ *
255
+ * @throws {@link ConversationsServiceException}
256
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
257
+ *
258
+ * @public
259
+ */
260
+ export declare class ListPinnedMessagesCommand extends ListPinnedMessagesCommand_base {
261
+ }
@@ -197,6 +197,7 @@ declare const PartialUpdateMessageCommand_base: {
197
197
  * unset: [ // MessageUnsetFieldsList
198
198
  * "text" || "attachments" || "quote" || "forward",
199
199
  * ],
200
+ * silent: true || false,
200
201
  * };
201
202
  * const command = new PartialUpdateMessageCommand(input);
202
203
  * const response = await client.send(command);
@@ -0,0 +1,73 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { PinMessageInput, PinMessageOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PinMessageCommand}.
14
+ */
15
+ export interface PinMessageCommandInput extends PinMessageInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PinMessageCommand}.
21
+ */
22
+ export interface PinMessageCommandOutput extends PinMessageOutput, __MetadataBearer {
23
+ }
24
+ declare const PinMessageCommand_base: {
25
+ new (input: PinMessageCommandInput): import("@smithy/smithy-client").CommandImpl<PinMessageCommandInput, PinMessageCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: PinMessageCommandInput): import("@smithy/smithy-client").CommandImpl<PinMessageCommandInput, PinMessageCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Pins specified message in the message. This operation is idempotent, meaning that if the message is already pinned, no error will be thrown.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ConversationsClient, PinMessageCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
35
+ * // const { ConversationsClient, PinMessageCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
36
+ * const client = new ConversationsClient(config);
37
+ * const input = { // PinMessageInput
38
+ * channelId: "STRING_VALUE", // required
39
+ * messageId: "STRING_VALUE", // required
40
+ * userId: "STRING_VALUE",
41
+ * expiresAfter: Number("int"),
42
+ * expiresTill: "STRING_VALUE",
43
+ * silent: true || false,
44
+ * };
45
+ * const command = new PinMessageCommand(input);
46
+ * const response = await client.send(command);
47
+ * // {};
48
+ *
49
+ * ```
50
+ *
51
+ * @param PinMessageCommandInput - {@link PinMessageCommandInput}
52
+ * @returns {@link PinMessageCommandOutput}
53
+ * @see {@link PinMessageCommandInput} for command's `input` shape.
54
+ * @see {@link PinMessageCommandOutput} for command's `response` shape.
55
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
56
+ *
57
+ * @throws {@link ChannelNotFoundException} (client fault)
58
+ *
59
+ * @throws {@link MessageNotFoundException} (client fault)
60
+ *
61
+ * @throws {@link ValidationException} (client fault)
62
+ *
63
+ * @throws {@link ForbiddenException} (client fault)
64
+ *
65
+ * @throws {@link RateLimitExceededException} (client fault)
66
+ *
67
+ * @throws {@link ConversationsServiceException}
68
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
69
+ *
70
+ * @public
71
+ */
72
+ export declare class PinMessageCommand extends PinMessageCommand_base {
73
+ }