@wildix/xbees-conversations-client 1.1.6 → 1.1.8

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.
@@ -39,6 +39,7 @@ const PartialUpdateChannelCommand_1 = require("./commands/PartialUpdateChannelCo
39
39
  const PartialUpdateMessageCommand_1 = require("./commands/PartialUpdateMessageCommand");
40
40
  const PinChannelCommand_1 = require("./commands/PinChannelCommand");
41
41
  const PinMessageCommand_1 = require("./commands/PinMessageCommand");
42
+ const QueryChannelsCommand_1 = require("./commands/QueryChannelsCommand");
42
43
  const ScheduleExternalFlagAdjustmentJobCommand_1 = require("./commands/ScheduleExternalFlagAdjustmentJobCommand");
43
44
  const SendActionTriggerResultCommand_1 = require("./commands/SendActionTriggerResultCommand");
44
45
  const SendGiphyCommand_1 = require("./commands/SendGiphyCommand");
@@ -95,6 +96,7 @@ const commands = {
95
96
  PartialUpdateMessageCommand: PartialUpdateMessageCommand_1.PartialUpdateMessageCommand,
96
97
  PinChannelCommand: PinChannelCommand_1.PinChannelCommand,
97
98
  PinMessageCommand: PinMessageCommand_1.PinMessageCommand,
99
+ QueryChannelsCommand: QueryChannelsCommand_1.QueryChannelsCommand,
98
100
  ScheduleExternalFlagAdjustmentJobCommand: ScheduleExternalFlagAdjustmentJobCommand_1.ScheduleExternalFlagAdjustmentJobCommand,
99
101
  SendActionTriggerResultCommand: SendActionTriggerResultCommand_1.SendActionTriggerResultCommand,
100
102
  SendGiphyCommand: SendGiphyCommand_1.SendGiphyCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QueryChannelsCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class QueryChannelsCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "QueryChannels", {})
15
+ .n("ConversationsClient", "QueryChannelsCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_QueryChannelsCommand)
18
+ .de(Aws_restJson1_1.de_QueryChannelsCommand)
19
+ .build() {
20
+ }
21
+ exports.QueryChannelsCommand = QueryChannelsCommand;
@@ -38,6 +38,7 @@ tslib_1.__exportStar(require("./PartialUpdateChannelCommand"), exports);
38
38
  tslib_1.__exportStar(require("./PartialUpdateMessageCommand"), exports);
39
39
  tslib_1.__exportStar(require("./PinChannelCommand"), exports);
40
40
  tslib_1.__exportStar(require("./PinMessageCommand"), exports);
41
+ tslib_1.__exportStar(require("./QueryChannelsCommand"), exports);
41
42
  tslib_1.__exportStar(require("./ScheduleExternalFlagAdjustmentJobCommand"), exports);
42
43
  tslib_1.__exportStar(require("./SendActionTriggerResultCommand"), exports);
43
44
  tslib_1.__exportStar(require("./SendGiphyCommand"), exports);
@@ -312,6 +312,9 @@ exports.MarkUnreadChannelsLimitReachedException = MarkUnreadChannelsLimitReached
312
312
  exports.GroupChannelUnsetOptions = {
313
313
  ACCESS: "access",
314
314
  BROADCAST: "broadcast",
315
+ CONTEXT: "context",
316
+ CONTEXT_EVENTS: "context_events",
317
+ CONTEXT_PTT: "context_ptt",
315
318
  DESCRIPTION: "description",
316
319
  PICTURE: "picture",
317
320
  PICTURE_COLOR: "pictureColor",
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_UntagChannelCommand = exports.se_UnpinMessageCommand = exports.se_UnpinChannelCommand = exports.se_TriggerMessageActionCommand = exports.se_TagChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = exports.se_SendTypingStartCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_SendActionTriggerResultCommand = exports.se_ScheduleExternalFlagAdjustmentJobCommand = exports.se_PinMessageCommand = exports.se_PinChannelCommand = exports.se_PartialUpdateMessageCommand = exports.se_PartialUpdateChannelCommand = exports.se_MarkUnreadCommand = exports.se_MarkReadCommand = exports.se_ListPinnedMessagesCommand = exports.se_ListMessagesCommand = exports.se_ListMessageReactionsCommand = exports.se_ListInboxTagsCommand = exports.se_ListInboxTaggedChannelsCommand = exports.se_ListChannelsCommand = exports.se_ListChannelMembersCommand = exports.se_LeaveChannelCommand = exports.se_JoinChannelCommand = exports.se_InviteCommand = exports.se_HideChannelCommand = exports.se_GetUploadedFileInfoCommand = exports.se_GetOrCreateDirectChannelCommand = exports.se_GetMessageCommand = exports.se_GetInboxStateCommand = exports.se_GetFilePresignedDownloadUrlCommand = exports.se_GetDirectChannelIdCommand = exports.se_GetChannelMemberCommand = exports.se_GetChannelCommand = exports.se_GetActionTriggerResultCommand = exports.se_DescribeEventCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteInboxTagCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateKiteChannelCommand = exports.se_CreateInboxTagCommand = exports.se_CreateGroupChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
4
- exports.de_TagChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_SendActionTriggerResultCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PinMessageCommand = exports.de_PinChannelCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkUnreadCommand = exports.de_MarkReadCommand = exports.de_ListPinnedMessagesCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListInboxTagsCommand = exports.de_ListInboxTaggedChannelsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand = exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = exports.de_GetInboxStateCommand = exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_GetActionTriggerResultCommand = exports.de_DescribeEventCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteInboxTagCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateKiteChannelCommand = exports.de_CreateInboxTagCommand = exports.de_CreateGroupChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateInboxTagCommand = exports.se_UpdateChannelCommand = void 0;
5
- exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateInboxTagCommand = exports.de_UpdateChannelCommand = exports.de_UntagChannelCommand = exports.de_UnpinMessageCommand = exports.de_UnpinChannelCommand = exports.de_TriggerMessageActionCommand = void 0;
3
+ exports.se_UnpinMessageCommand = exports.se_UnpinChannelCommand = exports.se_TriggerMessageActionCommand = exports.se_TagChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = exports.se_SendTypingStartCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_SendActionTriggerResultCommand = exports.se_ScheduleExternalFlagAdjustmentJobCommand = exports.se_QueryChannelsCommand = exports.se_PinMessageCommand = exports.se_PinChannelCommand = exports.se_PartialUpdateMessageCommand = exports.se_PartialUpdateChannelCommand = exports.se_MarkUnreadCommand = exports.se_MarkReadCommand = exports.se_ListPinnedMessagesCommand = exports.se_ListMessagesCommand = exports.se_ListMessageReactionsCommand = exports.se_ListInboxTagsCommand = exports.se_ListInboxTaggedChannelsCommand = exports.se_ListChannelsCommand = exports.se_ListChannelMembersCommand = exports.se_LeaveChannelCommand = exports.se_JoinChannelCommand = exports.se_InviteCommand = exports.se_HideChannelCommand = exports.se_GetUploadedFileInfoCommand = exports.se_GetOrCreateDirectChannelCommand = exports.se_GetMessageCommand = exports.se_GetInboxStateCommand = exports.se_GetFilePresignedDownloadUrlCommand = exports.se_GetDirectChannelIdCommand = exports.se_GetChannelMemberCommand = exports.se_GetChannelCommand = exports.se_GetActionTriggerResultCommand = exports.se_DescribeEventCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteInboxTagCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateKiteChannelCommand = exports.se_CreateInboxTagCommand = exports.se_CreateGroupChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
4
+ exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_SendActionTriggerResultCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_QueryChannelsCommand = exports.de_PinMessageCommand = exports.de_PinChannelCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkUnreadCommand = exports.de_MarkReadCommand = exports.de_ListPinnedMessagesCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListInboxTagsCommand = exports.de_ListInboxTaggedChannelsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand = exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = exports.de_GetInboxStateCommand = exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_GetActionTriggerResultCommand = exports.de_DescribeEventCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteInboxTagCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateKiteChannelCommand = exports.de_CreateInboxTagCommand = exports.de_CreateGroupChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateInboxTagCommand = exports.se_UpdateChannelCommand = exports.se_UntagChannelCommand = void 0;
5
+ exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateInboxTagCommand = exports.de_UpdateChannelCommand = exports.de_UntagChannelCommand = exports.de_UnpinMessageCommand = exports.de_UnpinChannelCommand = exports.de_TriggerMessageActionCommand = exports.de_TagChannelCommand = exports.de_ShowChannelCommand = void 0;
6
6
  const ConversationsServiceException_1 = require("../models/ConversationsServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const core_1 = require("@smithy/core");
@@ -67,6 +67,7 @@ const se_CreateGroupChannelCommand = async (input, context) => {
67
67
  'access': [],
68
68
  'broadcast': [],
69
69
  'channelId': [],
70
+ 'context': _ => (0, smithy_client_1._json)(_),
70
71
  'description': [],
71
72
  'members': _ => (0, smithy_client_1._json)(_),
72
73
  'membersToInvite': _ => (0, smithy_client_1._json)(_),
@@ -464,6 +465,7 @@ const se_ListChannelsCommand = async (input, context) => {
464
465
  const headers = {};
465
466
  b.bp("/v2/conversations/channels");
466
467
  const query = (0, smithy_client_1.map)({
468
+ [_co]: [, input[_cI]],
467
469
  [_u]: [, input[_uI]],
468
470
  [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
469
471
  [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
@@ -685,6 +687,29 @@ const se_PinMessageCommand = async (input, context) => {
685
687
  return b.build();
686
688
  };
687
689
  exports.se_PinMessageCommand = se_PinMessageCommand;
690
+ const se_QueryChannelsCommand = async (input, context) => {
691
+ const b = (0, core_1.requestBuilder)(input, context);
692
+ const headers = {
693
+ 'content-type': 'application/json',
694
+ };
695
+ b.bp("/v2/conversations/query-channels");
696
+ const query = (0, smithy_client_1.map)({
697
+ [_co]: [, input[_cI]],
698
+ [_u]: [, input[_uI]],
699
+ [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
700
+ [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
701
+ });
702
+ let body;
703
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
704
+ 'query': _ => (0, smithy_client_1._json)(_),
705
+ }));
706
+ b.m("POST")
707
+ .h(headers)
708
+ .q(query)
709
+ .b(body);
710
+ return b.build();
711
+ };
712
+ exports.se_QueryChannelsCommand = se_QueryChannelsCommand;
688
713
  const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
689
714
  const b = (0, core_1.requestBuilder)(input, context);
690
715
  const headers = {
@@ -943,6 +968,7 @@ const se_UpdateChannelCommand = async (input, context) => {
943
968
  body = JSON.stringify((0, smithy_client_1.take)(input, {
944
969
  'access': [],
945
970
  'broadcast': [],
971
+ 'context': _ => (0, smithy_client_1._json)(_),
946
972
  'description': [],
947
973
  'picture': [],
948
974
  'pictureColor': [],
@@ -1553,6 +1579,21 @@ const de_PinMessageCommand = async (output, context) => {
1553
1579
  return contents;
1554
1580
  };
1555
1581
  exports.de_PinMessageCommand = de_PinMessageCommand;
1582
+ const de_QueryChannelsCommand = async (output, context) => {
1583
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1584
+ return de_CommandError(output, context);
1585
+ }
1586
+ const contents = (0, smithy_client_1.map)({
1587
+ $metadata: deserializeMetadata(output),
1588
+ });
1589
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1590
+ const doc = (0, smithy_client_1.take)(data, {
1591
+ 'channels': smithy_client_1._json,
1592
+ });
1593
+ Object.assign(contents, doc);
1594
+ return contents;
1595
+ };
1596
+ exports.de_QueryChannelsCommand = de_QueryChannelsCommand;
1556
1597
  const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
1557
1598
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1558
1599
  return de_CommandError(output, context);
@@ -2110,6 +2151,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2110
2151
  value.length != 0) &&
2111
2152
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2112
2153
  const _c = "category";
2154
+ const _cI = "companyId";
2155
+ const _co = "company";
2113
2156
  const _d = "download";
2114
2157
  const _f = "force";
2115
2158
  const _l = "limit";
@@ -36,6 +36,7 @@ import { PartialUpdateChannelCommand, } from "./commands/PartialUpdateChannelCom
36
36
  import { PartialUpdateMessageCommand, } from "./commands/PartialUpdateMessageCommand";
37
37
  import { PinChannelCommand, } from "./commands/PinChannelCommand";
38
38
  import { PinMessageCommand, } from "./commands/PinMessageCommand";
39
+ import { QueryChannelsCommand, } from "./commands/QueryChannelsCommand";
39
40
  import { ScheduleExternalFlagAdjustmentJobCommand, } from "./commands/ScheduleExternalFlagAdjustmentJobCommand";
40
41
  import { SendActionTriggerResultCommand, } from "./commands/SendActionTriggerResultCommand";
41
42
  import { SendGiphyCommand, } from "./commands/SendGiphyCommand";
@@ -92,6 +93,7 @@ const commands = {
92
93
  PartialUpdateMessageCommand,
93
94
  PinChannelCommand,
94
95
  PinMessageCommand,
96
+ QueryChannelsCommand,
95
97
  ScheduleExternalFlagAdjustmentJobCommand,
96
98
  SendActionTriggerResultCommand,
97
99
  SendGiphyCommand,
@@ -0,0 +1,17 @@
1
+ import { de_QueryChannelsCommand, se_QueryChannelsCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class QueryChannelsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "QueryChannels", {})
12
+ .n("ConversationsClient", "QueryChannelsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_QueryChannelsCommand)
15
+ .de(de_QueryChannelsCommand)
16
+ .build() {
17
+ }
@@ -35,6 +35,7 @@ export * from "./PartialUpdateChannelCommand";
35
35
  export * from "./PartialUpdateMessageCommand";
36
36
  export * from "./PinChannelCommand";
37
37
  export * from "./PinMessageCommand";
38
+ export * from "./QueryChannelsCommand";
38
39
  export * from "./ScheduleExternalFlagAdjustmentJobCommand";
39
40
  export * from "./SendActionTriggerResultCommand";
40
41
  export * from "./SendGiphyCommand";
@@ -294,6 +294,9 @@ export class MarkUnreadChannelsLimitReachedException extends __BaseException {
294
294
  export const GroupChannelUnsetOptions = {
295
295
  ACCESS: "access",
296
296
  BROADCAST: "broadcast",
297
+ CONTEXT: "context",
298
+ CONTEXT_EVENTS: "context_events",
299
+ CONTEXT_PTT: "context_ptt",
297
300
  DESCRIPTION: "description",
298
301
  PICTURE: "picture",
299
302
  PICTURE_COLOR: "pictureColor",
@@ -60,6 +60,7 @@ export const se_CreateGroupChannelCommand = async (input, context) => {
60
60
  'access': [],
61
61
  'broadcast': [],
62
62
  'channelId': [],
63
+ 'context': _ => _json(_),
63
64
  'description': [],
64
65
  'members': _ => _json(_),
65
66
  'membersToInvite': _ => _json(_),
@@ -434,6 +435,7 @@ export const se_ListChannelsCommand = async (input, context) => {
434
435
  const headers = {};
435
436
  b.bp("/v2/conversations/channels");
436
437
  const query = map({
438
+ [_co]: [, input[_cI]],
437
439
  [_u]: [, input[_uI]],
438
440
  [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
439
441
  [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
@@ -643,6 +645,28 @@ export const se_PinMessageCommand = async (input, context) => {
643
645
  .b(body);
644
646
  return b.build();
645
647
  };
648
+ export const se_QueryChannelsCommand = async (input, context) => {
649
+ const b = rb(input, context);
650
+ const headers = {
651
+ 'content-type': 'application/json',
652
+ };
653
+ b.bp("/v2/conversations/query-channels");
654
+ const query = map({
655
+ [_co]: [, input[_cI]],
656
+ [_u]: [, input[_uI]],
657
+ [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
658
+ [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
659
+ });
660
+ let body;
661
+ body = JSON.stringify(take(input, {
662
+ 'query': _ => _json(_),
663
+ }));
664
+ b.m("POST")
665
+ .h(headers)
666
+ .q(query)
667
+ .b(body);
668
+ return b.build();
669
+ };
646
670
  export const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
647
671
  const b = rb(input, context);
648
672
  const headers = {
@@ -888,6 +912,7 @@ export const se_UpdateChannelCommand = async (input, context) => {
888
912
  body = JSON.stringify(take(input, {
889
913
  'access': [],
890
914
  'broadcast': [],
915
+ 'context': _ => _json(_),
891
916
  'description': [],
892
917
  'picture': [],
893
918
  'pictureColor': [],
@@ -1457,6 +1482,20 @@ export const de_PinMessageCommand = async (output, context) => {
1457
1482
  await collectBody(output.body, context);
1458
1483
  return contents;
1459
1484
  };
1485
+ export const de_QueryChannelsCommand = async (output, context) => {
1486
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1487
+ return de_CommandError(output, context);
1488
+ }
1489
+ const contents = map({
1490
+ $metadata: deserializeMetadata(output),
1491
+ });
1492
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1493
+ const doc = take(data, {
1494
+ 'channels': _json,
1495
+ });
1496
+ Object.assign(contents, doc);
1497
+ return contents;
1498
+ };
1460
1499
  export const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
1461
1500
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1462
1501
  return de_CommandError(output, context);
@@ -1997,6 +2036,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1997
2036
  value.length != 0) &&
1998
2037
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1999
2038
  const _c = "category";
2039
+ const _cI = "companyId";
2040
+ const _co = "company";
2000
2041
  const _d = "download";
2001
2042
  const _f = "force";
2002
2043
  const _l = "limit";
@@ -36,6 +36,7 @@ import { PartialUpdateChannelCommandInput, PartialUpdateChannelCommandOutput } f
36
36
  import { PartialUpdateMessageCommandInput, PartialUpdateMessageCommandOutput } from "./commands/PartialUpdateMessageCommand";
37
37
  import { PinChannelCommandInput, PinChannelCommandOutput } from "./commands/PinChannelCommand";
38
38
  import { PinMessageCommandInput, PinMessageCommandOutput } from "./commands/PinMessageCommand";
39
+ import { QueryChannelsCommandInput, QueryChannelsCommandOutput } from "./commands/QueryChannelsCommand";
39
40
  import { ScheduleExternalFlagAdjustmentJobCommandInput, ScheduleExternalFlagAdjustmentJobCommandOutput } from "./commands/ScheduleExternalFlagAdjustmentJobCommand";
40
41
  import { SendActionTriggerResultCommandInput, SendActionTriggerResultCommandOutput } from "./commands/SendActionTriggerResultCommand";
41
42
  import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
@@ -284,6 +285,13 @@ export interface Conversations {
284
285
  pinMessage(args: PinMessageCommandInput, options?: __HttpHandlerOptions): Promise<PinMessageCommandOutput>;
285
286
  pinMessage(args: PinMessageCommandInput, cb: (err: any, data?: PinMessageCommandOutput) => void): void;
286
287
  pinMessage(args: PinMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PinMessageCommandOutput) => void): void;
288
+ /**
289
+ * @see {@link QueryChannelsCommand}
290
+ */
291
+ queryChannels(): Promise<QueryChannelsCommandOutput>;
292
+ queryChannels(args: QueryChannelsCommandInput, options?: __HttpHandlerOptions): Promise<QueryChannelsCommandOutput>;
293
+ queryChannels(args: QueryChannelsCommandInput, cb: (err: any, data?: QueryChannelsCommandOutput) => void): void;
294
+ queryChannels(args: QueryChannelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryChannelsCommandOutput) => void): void;
287
295
  /**
288
296
  * @see {@link ScheduleExternalFlagAdjustmentJobCommand}
289
297
  */
@@ -35,6 +35,7 @@ import { PartialUpdateChannelCommandInput, PartialUpdateChannelCommandOutput } f
35
35
  import { PartialUpdateMessageCommandInput, PartialUpdateMessageCommandOutput } from "./commands/PartialUpdateMessageCommand";
36
36
  import { PinChannelCommandInput, PinChannelCommandOutput } from "./commands/PinChannelCommand";
37
37
  import { PinMessageCommandInput, PinMessageCommandOutput } from "./commands/PinMessageCommand";
38
+ import { QueryChannelsCommandInput, QueryChannelsCommandOutput } from "./commands/QueryChannelsCommand";
38
39
  import { ScheduleExternalFlagAdjustmentJobCommandInput, ScheduleExternalFlagAdjustmentJobCommandOutput } from "./commands/ScheduleExternalFlagAdjustmentJobCommand";
39
40
  import { SendActionTriggerResultCommandInput, SendActionTriggerResultCommandOutput } from "./commands/SendActionTriggerResultCommand";
40
41
  import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
@@ -63,11 +64,11 @@ export { __Client };
63
64
  /**
64
65
  * @public
65
66
  */
66
- export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | CreateKiteChannelCommandInput | 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;
67
+ export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | CreateKiteChannelCommandInput | 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 | QueryChannelsCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendActionTriggerResultCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | TagChannelCommandInput | TriggerMessageActionCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UntagChannelCommandInput | UpdateChannelCommandInput | UpdateInboxTagCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
67
68
  /**
68
69
  * @public
69
70
  */
70
- export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | CreateKiteChannelCommandOutput | 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;
71
+ export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | CreateKiteChannelCommandOutput | 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 | QueryChannelsCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendActionTriggerResultCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | TagChannelCommandOutput | TriggerMessageActionCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UntagChannelCommandOutput | UpdateChannelCommandOutput | UpdateInboxTagCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
71
72
  /**
72
73
  * @public
73
74
  */
@@ -41,6 +41,29 @@ declare const CreateGroupChannelCommand_base: {
41
41
  * pictureColor: "STRING_VALUE",
42
42
  * access: "private" || "public",
43
43
  * broadcast: true || false,
44
+ * context: { // ChannelContext
45
+ * source: "kite",
46
+ * target: "STRING_VALUE",
47
+ * events: [ // ChannelContextEventList
48
+ * { // ChannelContextEvent
49
+ * id: "STRING_VALUE",
50
+ * owner: "STRING_VALUE",
51
+ * start: "STRING_VALUE",
52
+ * end: "STRING_VALUE",
53
+ * summary: "STRING_VALUE",
54
+ * attendees: [ // ChannelContextEventAttendeeList
55
+ * { // ChannelContextEventAttendee
56
+ * email: "STRING_VALUE", // required
57
+ * name: "STRING_VALUE",
58
+ * status: "accepted" || "tentative" || "declined" || "none", // required
59
+ * },
60
+ * ],
61
+ * },
62
+ * ],
63
+ * ppt: { // ChannelContextPushToTalk
64
+ * broadcastId: "STRING_VALUE",
65
+ * },
66
+ * },
44
67
  * userId: "STRING_VALUE",
45
68
  * channelId: "STRING_VALUE",
46
69
  * members: [ // UsersIdList
@@ -84,6 +107,9 @@ declare const CreateGroupChannelCommand_base: {
84
107
  * // ],
85
108
  * // },
86
109
  * // ],
110
+ * // ppt: { // ChannelContextPushToTalk
111
+ * // broadcastId: "STRING_VALUE",
112
+ * // },
87
113
  * // },
88
114
  * // kite: true || false,
89
115
  * // kiteTarget: "STRING_VALUE",
@@ -255,6 +255,9 @@ declare const CreateKiteChannelCommand_base: {
255
255
  * // ],
256
256
  * // },
257
257
  * // ],
258
+ * // ppt: { // ChannelContextPushToTalk
259
+ * // broadcastId: "STRING_VALUE",
260
+ * // },
258
261
  * // },
259
262
  * // kite: true || false,
260
263
  * // kiteTarget: "STRING_VALUE",
@@ -73,6 +73,9 @@ declare const DescribeEventCommand_base: {
73
73
  * // ],
74
74
  * // },
75
75
  * // ],
76
+ * // ppt: { // ChannelContextPushToTalk
77
+ * // broadcastId: "STRING_VALUE",
78
+ * // },
76
79
  * // },
77
80
  * // kite: true || false,
78
81
  * // kiteTarget: "STRING_VALUE",
@@ -178,6 +181,9 @@ declare const DescribeEventCommand_base: {
178
181
  * // ],
179
182
  * // },
180
183
  * // ],
184
+ * // ppt: {
185
+ * // broadcastId: "STRING_VALUE",
186
+ * // },
181
187
  * // },
182
188
  * // kite: true || false,
183
189
  * // kiteTarget: "STRING_VALUE",
@@ -283,6 +289,9 @@ declare const DescribeEventCommand_base: {
283
289
  * // ],
284
290
  * // },
285
291
  * // ],
292
+ * // ppt: {
293
+ * // broadcastId: "STRING_VALUE",
294
+ * // },
286
295
  * // },
287
296
  * // kite: true || false,
288
297
  * // kiteTarget: "STRING_VALUE",
@@ -367,6 +376,9 @@ declare const DescribeEventCommand_base: {
367
376
  * // ],
368
377
  * // },
369
378
  * // ],
379
+ * // ppt: {
380
+ * // broadcastId: "STRING_VALUE",
381
+ * // },
370
382
  * // },
371
383
  * // kite: true || false,
372
384
  * // kiteTarget: "STRING_VALUE",
@@ -434,6 +446,9 @@ declare const DescribeEventCommand_base: {
434
446
  * // ],
435
447
  * // },
436
448
  * // ],
449
+ * // ppt: {
450
+ * // broadcastId: "STRING_VALUE",
451
+ * // },
437
452
  * // },
438
453
  * // kite: true || false,
439
454
  * // kiteTarget: "STRING_VALUE",
@@ -66,6 +66,9 @@ declare const GetChannelCommand_base: {
66
66
  * // ],
67
67
  * // },
68
68
  * // ],
69
+ * // ppt: { // ChannelContextPushToTalk
70
+ * // broadcastId: "STRING_VALUE",
71
+ * // },
69
72
  * // },
70
73
  * // kite: true || false,
71
74
  * // kiteTarget: "STRING_VALUE",
@@ -73,6 +73,9 @@ declare const GetOrCreateDirectChannelCommand_base: {
73
73
  * // ],
74
74
  * // },
75
75
  * // ],
76
+ * // ppt: { // ChannelContextPushToTalk
77
+ * // broadcastId: "STRING_VALUE",
78
+ * // },
76
79
  * // },
77
80
  * // kite: true || false,
78
81
  * // kiteTarget: "STRING_VALUE",
@@ -68,6 +68,9 @@ declare const JoinChannelCommand_base: {
68
68
  * // ],
69
69
  * // },
70
70
  * // ],
71
+ * // ppt: { // ChannelContextPushToTalk
72
+ * // broadcastId: "STRING_VALUE",
73
+ * // },
71
74
  * // },
72
75
  * // kite: true || false,
73
76
  * // kiteTarget: "STRING_VALUE",
@@ -35,6 +35,7 @@ declare const ListChannelsCommand_base: {
35
35
  * // const { ConversationsClient, ListChannelsCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
36
36
  * const client = new ConversationsClient(config);
37
37
  * const input = { // ListChannelsInput
38
+ * companyId: "STRING_VALUE",
38
39
  * userId: "STRING_VALUE",
39
40
  * limit: Number("int"),
40
41
  * offset: Number("int"),
@@ -69,6 +70,9 @@ declare const ListChannelsCommand_base: {
69
70
  * // ],
70
71
  * // },
71
72
  * // ],
73
+ * // ppt: { // ChannelContextPushToTalk
74
+ * // broadcastId: "STRING_VALUE",
75
+ * // },
72
76
  * // },
73
77
  * // kite: true || false,
74
78
  * // kiteTarget: "STRING_VALUE",
@@ -45,9 +45,32 @@ declare const PartialUpdateChannelCommand_base: {
45
45
  * pictureColor: "STRING_VALUE",
46
46
  * access: "private" || "public",
47
47
  * broadcast: true || false,
48
+ * context: { // ChannelContext
49
+ * source: "kite",
50
+ * target: "STRING_VALUE",
51
+ * events: [ // ChannelContextEventList
52
+ * { // ChannelContextEvent
53
+ * id: "STRING_VALUE",
54
+ * owner: "STRING_VALUE",
55
+ * start: "STRING_VALUE",
56
+ * end: "STRING_VALUE",
57
+ * summary: "STRING_VALUE",
58
+ * attendees: [ // ChannelContextEventAttendeeList
59
+ * { // ChannelContextEventAttendee
60
+ * email: "STRING_VALUE", // required
61
+ * name: "STRING_VALUE",
62
+ * status: "accepted" || "tentative" || "declined" || "none", // required
63
+ * },
64
+ * ],
65
+ * },
66
+ * ],
67
+ * ppt: { // ChannelContextPushToTalk
68
+ * broadcastId: "STRING_VALUE",
69
+ * },
70
+ * },
48
71
  * },
49
72
  * unset: [ // PartialUpdateChannelUnsetOptions
50
- * "subject" || "description" || "picture" || "pictureColor" || "access" || "broadcast",
73
+ * "subject" || "description" || "picture" || "pictureColor" || "access" || "broadcast" || "context" || "context_ptt" || "context_events",
51
74
  * ],
52
75
  * };
53
76
  * const command = new PartialUpdateChannelCommand(input);
@@ -79,6 +102,9 @@ declare const PartialUpdateChannelCommand_base: {
79
102
  * // ],
80
103
  * // },
81
104
  * // ],
105
+ * // ppt: { // ChannelContextPushToTalk
106
+ * // broadcastId: "STRING_VALUE",
107
+ * // },
82
108
  * // },
83
109
  * // kite: true || false,
84
110
  * // kiteTarget: "STRING_VALUE",
@@ -0,0 +1,146 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { QueryChannelsInput, QueryChannelsOutput } 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 QueryChannelsCommand}.
14
+ */
15
+ export interface QueryChannelsCommandInput extends QueryChannelsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link QueryChannelsCommand}.
21
+ */
22
+ export interface QueryChannelsCommandOutput extends QueryChannelsOutput, __MetadataBearer {
23
+ }
24
+ declare const QueryChannelsCommand_base: {
25
+ new (input: QueryChannelsCommandInput): import("@smithy/smithy-client").CommandImpl<QueryChannelsCommandInput, QueryChannelsCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [QueryChannelsCommandInput]): import("@smithy/smithy-client").CommandImpl<QueryChannelsCommandInput, QueryChannelsCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Query channels matched specified query. Allows pagination using limit and offset parameters. Sorted by last message in the channel.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ConversationsClient, QueryChannelsCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
35
+ * // const { ConversationsClient, QueryChannelsCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
36
+ * const client = new ConversationsClient(config);
37
+ * const input = { // QueryChannelsInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * query: { // ChannelsQuery
41
+ * ids: [ // ChannelsIdList
42
+ * "STRING_VALUE",
43
+ * ],
44
+ * },
45
+ * limit: Number("int"),
46
+ * offset: Number("int"),
47
+ * };
48
+ * const command = new QueryChannelsCommand(input);
49
+ * const response = await client.send(command);
50
+ * // { // QueryChannelsOutput
51
+ * // channels: [ // ChannelsList // required
52
+ * // { // Channel
53
+ * // subject: "STRING_VALUE",
54
+ * // description: "STRING_VALUE",
55
+ * // picture: "STRING_VALUE",
56
+ * // pictureColor: "STRING_VALUE",
57
+ * // access: "private" || "public",
58
+ * // company: "STRING_VALUE",
59
+ * // context: { // ChannelContext
60
+ * // source: "kite",
61
+ * // target: "STRING_VALUE",
62
+ * // events: [ // ChannelContextEventList
63
+ * // { // ChannelContextEvent
64
+ * // id: "STRING_VALUE",
65
+ * // owner: "STRING_VALUE",
66
+ * // start: "STRING_VALUE",
67
+ * // end: "STRING_VALUE",
68
+ * // summary: "STRING_VALUE",
69
+ * // attendees: [ // ChannelContextEventAttendeeList
70
+ * // { // ChannelContextEventAttendee
71
+ * // email: "STRING_VALUE", // required
72
+ * // name: "STRING_VALUE",
73
+ * // status: "accepted" || "tentative" || "declined" || "none", // required
74
+ * // },
75
+ * // ],
76
+ * // },
77
+ * // ],
78
+ * // ppt: { // ChannelContextPushToTalk
79
+ * // broadcastId: "STRING_VALUE",
80
+ * // },
81
+ * // },
82
+ * // kite: true || false,
83
+ * // kiteTarget: "STRING_VALUE",
84
+ * // kiteVariant: "STRING_VALUE",
85
+ * // kiteAssign: "STRING_VALUE",
86
+ * // kiteServiceName: "STRING_VALUE",
87
+ * // kiteDefaultSubject: "STRING_VALUE",
88
+ * // service: "STRING_VALUE",
89
+ * // serviceTitle: "STRING_VALUE",
90
+ * // serviceRecipient: "STRING_VALUE",
91
+ * // assignee: { // User
92
+ * // id: "STRING_VALUE", // required
93
+ * // name: "STRING_VALUE",
94
+ * // email: "STRING_VALUE",
95
+ * // phone: "STRING_VALUE",
96
+ * // picture: "STRING_VALUE",
97
+ * // locale: "STRING_VALUE",
98
+ * // timeZone: "STRING_VALUE",
99
+ * // company: "STRING_VALUE",
100
+ * // bot: true || false,
101
+ * // pbxDomain: "STRING_VALUE",
102
+ * // pbxPort: "STRING_VALUE",
103
+ * // pbxExtension: "STRING_VALUE",
104
+ * // pbxSerial: "STRING_VALUE",
105
+ * // pbxUserId: "STRING_VALUE",
106
+ * // createdAt: "STRING_VALUE",
107
+ * // updatedAt: "STRING_VALUE",
108
+ * // },
109
+ * // telephony: true || false,
110
+ * // sms: true || false,
111
+ * // mms: true || false,
112
+ * // whatsapp: true || false,
113
+ * // whatsappStatus: "24h_channel_closed",
114
+ * // broadcast: true || false,
115
+ * // external: true || false,
116
+ * // channelId: "STRING_VALUE", // required
117
+ * // channelType: "direct" || "group", // required
118
+ * // memberCount: Number("int"), // required
119
+ * // createdAt: "STRING_VALUE", // required
120
+ * // createdBy: "STRING_VALUE", // required
121
+ * // updatedAt: "STRING_VALUE",
122
+ * // },
123
+ * // ],
124
+ * // };
125
+ *
126
+ * ```
127
+ *
128
+ * @param QueryChannelsCommandInput - {@link QueryChannelsCommandInput}
129
+ * @returns {@link QueryChannelsCommandOutput}
130
+ * @see {@link QueryChannelsCommandInput} for command's `input` shape.
131
+ * @see {@link QueryChannelsCommandOutput} for command's `response` shape.
132
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
133
+ *
134
+ * @throws {@link ValidationException} (client fault)
135
+ *
136
+ * @throws {@link ForbiddenException} (client fault)
137
+ *
138
+ * @throws {@link RateLimitExceededException} (client fault)
139
+ *
140
+ * @throws {@link ConversationsServiceException}
141
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
142
+ *
143
+ * @public
144
+ */
145
+ export declare class QueryChannelsCommand extends QueryChannelsCommand_base {
146
+ }
@@ -41,6 +41,29 @@ declare const UpdateChannelCommand_base: {
41
41
  * pictureColor: "STRING_VALUE",
42
42
  * access: "private" || "public",
43
43
  * broadcast: true || false,
44
+ * context: { // ChannelContext
45
+ * source: "kite",
46
+ * target: "STRING_VALUE",
47
+ * events: [ // ChannelContextEventList
48
+ * { // ChannelContextEvent
49
+ * id: "STRING_VALUE",
50
+ * owner: "STRING_VALUE",
51
+ * start: "STRING_VALUE",
52
+ * end: "STRING_VALUE",
53
+ * summary: "STRING_VALUE",
54
+ * attendees: [ // ChannelContextEventAttendeeList
55
+ * { // ChannelContextEventAttendee
56
+ * email: "STRING_VALUE", // required
57
+ * name: "STRING_VALUE",
58
+ * status: "accepted" || "tentative" || "declined" || "none", // required
59
+ * },
60
+ * ],
61
+ * },
62
+ * ],
63
+ * ppt: { // ChannelContextPushToTalk
64
+ * broadcastId: "STRING_VALUE",
65
+ * },
66
+ * },
44
67
  * channelId: "STRING_VALUE", // required
45
68
  * userId: "STRING_VALUE",
46
69
  * silent: true || false,
@@ -74,6 +97,9 @@ declare const UpdateChannelCommand_base: {
74
97
  * // ],
75
98
  * // },
76
99
  * // ],
100
+ * // ppt: { // ChannelContextPushToTalk
101
+ * // broadcastId: "STRING_VALUE",
102
+ * // },
77
103
  * // },
78
104
  * // kite: true || false,
79
105
  * // kiteTarget: "STRING_VALUE",
@@ -35,6 +35,7 @@ export * from "./PartialUpdateChannelCommand";
35
35
  export * from "./PartialUpdateMessageCommand";
36
36
  export * from "./PinChannelCommand";
37
37
  export * from "./PinMessageCommand";
38
+ export * from "./QueryChannelsCommand";
38
39
  export * from "./ScheduleExternalFlagAdjustmentJobCommand";
39
40
  export * from "./SendActionTriggerResultCommand";
40
41
  export * from "./SendGiphyCommand";
@@ -425,6 +425,16 @@ export interface ChannelContextEvent {
425
425
  summary?: string;
426
426
  attendees?: (ChannelContextEventAttendee)[];
427
427
  }
428
+ /**
429
+ * @public
430
+ */
431
+ export interface ChannelContextPushToTalk {
432
+ /**
433
+ * A unique identifier of x-hoppers broadcast conference. If present x-hoppers application will use broadcast and push-to-talk functionality for the channel.
434
+ * @public
435
+ */
436
+ broadcastId?: string;
437
+ }
428
438
  /**
429
439
  * @public
430
440
  * @enum
@@ -443,6 +453,7 @@ export interface ChannelContext {
443
453
  source?: ChannelContextSource;
444
454
  target?: string;
445
455
  events?: (ChannelContextEvent)[];
456
+ ppt?: ChannelContextPushToTalk;
446
457
  }
447
458
  /**
448
459
  * @public
@@ -509,6 +520,12 @@ export declare class ChannelAlreadyExistException extends __BaseException {
509
520
  */
510
521
  constructor(opts: __ExceptionOptionType<ChannelAlreadyExistException, __BaseException>);
511
522
  }
523
+ /**
524
+ * @public
525
+ */
526
+ export interface ChannelsQuery {
527
+ ids?: (string)[];
528
+ }
512
529
  /**
513
530
  * @public
514
531
  */
@@ -543,6 +560,11 @@ export interface CreateGroupChannelInput {
543
560
  * @public
544
561
  */
545
562
  broadcast?: boolean;
563
+ /**
564
+ * An additional information that associated with this channel.
565
+ * @public
566
+ */
567
+ context?: ChannelContext;
546
568
  /**
547
569
  * The unique identifier of the user when a service token is used.
548
570
  * @public
@@ -1655,7 +1677,12 @@ export interface ListChannelMembersOutput {
1655
1677
  */
1656
1678
  export interface ListChannelsInput {
1657
1679
  /**
1658
- * The unique identifier of the user when a service token is used.
1680
+ * The unique identifier of the tenant when a service token is used.
1681
+ * @public
1682
+ */
1683
+ companyId?: string;
1684
+ /**
1685
+ * The unique identifier of the user when a service or PBX token is used.
1659
1686
  * @public
1660
1687
  */
1661
1688
  userId?: string;
@@ -1918,6 +1945,11 @@ export interface PartialUpdateChannelSetOptions {
1918
1945
  * @public
1919
1946
  */
1920
1947
  broadcast?: boolean;
1948
+ /**
1949
+ * An additional information that associated with this channel.
1950
+ * @public
1951
+ */
1952
+ context?: ChannelContext;
1921
1953
  }
1922
1954
  /**
1923
1955
  * @public
@@ -1926,6 +1958,9 @@ export interface PartialUpdateChannelSetOptions {
1926
1958
  export declare const GroupChannelUnsetOptions: {
1927
1959
  readonly ACCESS: "access";
1928
1960
  readonly BROADCAST: "broadcast";
1961
+ readonly CONTEXT: "context";
1962
+ readonly CONTEXT_EVENTS: "context_events";
1963
+ readonly CONTEXT_PTT: "context_ptt";
1929
1964
  readonly DESCRIPTION: "description";
1930
1965
  readonly PICTURE: "picture";
1931
1966
  readonly PICTURE_COLOR: "pictureColor";
@@ -2115,6 +2150,42 @@ export interface PinMessageInput {
2115
2150
  */
2116
2151
  export interface PinMessageOutput {
2117
2152
  }
2153
+ /**
2154
+ * @public
2155
+ */
2156
+ export interface QueryChannelsInput {
2157
+ /**
2158
+ * The unique identifier of the tenant when a service token is used.
2159
+ * @public
2160
+ */
2161
+ companyId?: string;
2162
+ /**
2163
+ * The unique identifier of the user when a service or PBX token is used.
2164
+ * @public
2165
+ */
2166
+ userId?: string;
2167
+ query?: ChannelsQuery;
2168
+ /**
2169
+ * The maximum number of channels to return. The value must be between 1 and 30.
2170
+ * @public
2171
+ */
2172
+ limit?: number;
2173
+ /**
2174
+ * The offset from which to start listing channels. The value must be between 0 and 1000.
2175
+ * @public
2176
+ */
2177
+ offset?: number;
2178
+ }
2179
+ /**
2180
+ * @public
2181
+ */
2182
+ export interface QueryChannelsOutput {
2183
+ /**
2184
+ * A list of channels matched the query.
2185
+ * @public
2186
+ */
2187
+ channels: (Channel)[];
2188
+ }
2118
2189
  /**
2119
2190
  * @public
2120
2191
  */
@@ -2503,6 +2574,11 @@ export interface UpdateChannelInput {
2503
2574
  * @public
2504
2575
  */
2505
2576
  broadcast?: boolean;
2577
+ /**
2578
+ * An additional information that associated with this channel.
2579
+ * @public
2580
+ */
2581
+ context?: ChannelContext;
2506
2582
  /**
2507
2583
  * The unique identifier of the channel to be updated.
2508
2584
  * @public
@@ -35,6 +35,7 @@ import { PartialUpdateChannelCommandInput, PartialUpdateChannelCommandOutput } f
35
35
  import { PartialUpdateMessageCommandInput, PartialUpdateMessageCommandOutput } from "../commands/PartialUpdateMessageCommand";
36
36
  import { PinChannelCommandInput, PinChannelCommandOutput } from "../commands/PinChannelCommand";
37
37
  import { PinMessageCommandInput, PinMessageCommandOutput } from "../commands/PinMessageCommand";
38
+ import { QueryChannelsCommandInput, QueryChannelsCommandOutput } from "../commands/QueryChannelsCommand";
38
39
  import { ScheduleExternalFlagAdjustmentJobCommandInput, ScheduleExternalFlagAdjustmentJobCommandOutput } from "../commands/ScheduleExternalFlagAdjustmentJobCommand";
39
40
  import { SendActionTriggerResultCommandInput, SendActionTriggerResultCommandOutput } from "../commands/SendActionTriggerResultCommand";
40
41
  import { SendGiphyCommandInput, SendGiphyCommandOutput } from "../commands/SendGiphyCommand";
@@ -202,6 +203,10 @@ export declare const se_PinChannelCommand: (input: PinChannelCommandInput, conte
202
203
  * serializeAws_restJson1PinMessageCommand
203
204
  */
204
205
  export declare const se_PinMessageCommand: (input: PinMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
206
+ /**
207
+ * serializeAws_restJson1QueryChannelsCommand
208
+ */
209
+ export declare const se_QueryChannelsCommand: (input: QueryChannelsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
205
210
  /**
206
211
  * serializeAws_restJson1ScheduleExternalFlagAdjustmentJobCommand
207
212
  */
@@ -418,6 +423,10 @@ export declare const de_PinChannelCommand: (output: __HttpResponse, context: __S
418
423
  * deserializeAws_restJson1PinMessageCommand
419
424
  */
420
425
  export declare const de_PinMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PinMessageCommandOutput>;
426
+ /**
427
+ * deserializeAws_restJson1QueryChannelsCommand
428
+ */
429
+ export declare const de_QueryChannelsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryChannelsCommandOutput>;
421
430
  /**
422
431
  * deserializeAws_restJson1ScheduleExternalFlagAdjustmentJobCommand
423
432
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/xbees-conversations-client",
3
3
  "description": "@wildix/xbees-conversations-client client",
4
- "version": "1.1.6",
4
+ "version": "1.1.8",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",