@wildix/xbees-conversations-client 1.1.12 → 1.1.13

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.
@@ -4,6 +4,7 @@ exports.Conversations = void 0;
4
4
  const ConversationsClient_1 = require("./ConversationsClient");
5
5
  const AddChannelMemberCommand_1 = require("./commands/AddChannelMemberCommand");
6
6
  const AddChannelMembersCommand_1 = require("./commands/AddChannelMembersCommand");
7
+ const AssignChannelCommand_1 = require("./commands/AssignChannelCommand");
7
8
  const CreateGroupChannelCommand_1 = require("./commands/CreateGroupChannelCommand");
8
9
  const CreateInboxTagCommand_1 = require("./commands/CreateInboxTagCommand");
9
10
  const CreateKiteChannelCommand_1 = require("./commands/CreateKiteChannelCommand");
@@ -62,6 +63,7 @@ const smithy_client_1 = require("@smithy/smithy-client");
62
63
  const commands = {
63
64
  AddChannelMemberCommand: AddChannelMemberCommand_1.AddChannelMemberCommand,
64
65
  AddChannelMembersCommand: AddChannelMembersCommand_1.AddChannelMembersCommand,
66
+ AssignChannelCommand: AssignChannelCommand_1.AssignChannelCommand,
65
67
  CreateGroupChannelCommand: CreateGroupChannelCommand_1.CreateGroupChannelCommand,
66
68
  CreateInboxTagCommand: CreateInboxTagCommand_1.CreateInboxTagCommand,
67
69
  CreateKiteChannelCommand: CreateKiteChannelCommand_1.CreateKiteChannelCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssignChannelCommand = 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 AssignChannelCommand 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", "AssignChannel", {})
15
+ .n("ConversationsClient", "AssignChannelCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_AssignChannelCommand)
18
+ .de(Aws_restJson1_1.de_AssignChannelCommand)
19
+ .build() {
20
+ }
21
+ exports.AssignChannelCommand = AssignChannelCommand;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./AddChannelMemberCommand"), exports);
5
5
  tslib_1.__exportStar(require("./AddChannelMembersCommand"), exports);
6
+ tslib_1.__exportStar(require("./AssignChannelCommand"), exports);
6
7
  tslib_1.__exportStar(require("./CreateGroupChannelCommand"), exports);
7
8
  tslib_1.__exportStar(require("./CreateInboxTagCommand"), exports);
8
9
  tslib_1.__exportStar(require("./CreateKiteChannelCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = exports.Element = exports.TagsLimitReachedException = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionTriggerStatus = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelType = exports.FileNotFoundException = exports.ConversationFileCategory = exports.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = void 0;
3
+ exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = exports.Element = exports.TagsLimitReachedException = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.AssignChannelVariant = exports.AssignChannelServiceRequest = exports.AssignChannelAssigneeRequest = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionTriggerStatus = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelType = exports.FileNotFoundException = exports.ConversationFileCategory = exports.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = void 0;
4
4
  const ConversationsServiceException_1 = require("./ConversationsServiceException");
5
5
  class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
6
6
  constructor(opts) {
@@ -125,6 +125,30 @@ class MemberAlreadyExistException extends ConversationsServiceException_1.Conver
125
125
  }
126
126
  }
127
127
  exports.MemberAlreadyExistException = MemberAlreadyExistException;
128
+ var AssignChannelAssigneeRequest;
129
+ (function (AssignChannelAssigneeRequest) {
130
+ AssignChannelAssigneeRequest.visit = (value, visitor) => {
131
+ if (value.id !== undefined)
132
+ return visitor.id(value.id);
133
+ if (value.email !== undefined)
134
+ return visitor.email(value.email);
135
+ return visitor._(value.$unknown[0], value.$unknown[1]);
136
+ };
137
+ })(AssignChannelAssigneeRequest = exports.AssignChannelAssigneeRequest || (exports.AssignChannelAssigneeRequest = {}));
138
+ var AssignChannelServiceRequest;
139
+ (function (AssignChannelServiceRequest) {
140
+ AssignChannelServiceRequest.visit = (value, visitor) => {
141
+ if (value.uri !== undefined)
142
+ return visitor.uri(value.uri);
143
+ return visitor._(value.$unknown[0], value.$unknown[1]);
144
+ };
145
+ })(AssignChannelServiceRequest = exports.AssignChannelServiceRequest || (exports.AssignChannelServiceRequest = {}));
146
+ exports.AssignChannelVariant = {
147
+ ADAPTIVE: "ADAPTIVE",
148
+ EVERYBODY: "EVERYBODY",
149
+ SELECTED: "SELECTED",
150
+ SKIP: "SKIP",
151
+ };
128
152
  exports.ChannelAccess = {
129
153
  PRIVATE: "private",
130
154
  PUBLIC: "public",
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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_GetTokenCommand = 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_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_GetTokenCommand = 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 = exports.se_UnpinMessageCommand = 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 = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = void 0;
3
+ 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_GetTokenCommand = 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_AssignChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
4
+ 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_GetTokenCommand = 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_AssignChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateInboxTagCommand = exports.se_UpdateChannelCommand = exports.se_UntagChannelCommand = exports.se_UnpinMessageCommand = exports.se_UnpinChannelCommand = 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 = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = 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");
@@ -53,6 +53,30 @@ const se_AddChannelMembersCommand = async (input, context) => {
53
53
  return b.build();
54
54
  };
55
55
  exports.se_AddChannelMembersCommand = se_AddChannelMembersCommand;
56
+ const se_AssignChannelCommand = async (input, context) => {
57
+ const b = (0, core_1.requestBuilder)(input, context);
58
+ const headers = {
59
+ 'content-type': 'application/json',
60
+ };
61
+ b.bp("/v2/conversations/channels/{channelId}/assign");
62
+ b.p('channelId', () => input.channelId, '{channelId}', false);
63
+ const query = (0, smithy_client_1.map)({
64
+ [_u]: [, input[_uI]],
65
+ });
66
+ let body;
67
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
68
+ 'assignee': _ => (0, smithy_client_1._json)(_),
69
+ 'service': _ => (0, smithy_client_1._json)(_),
70
+ 'silent': [],
71
+ 'variant': [],
72
+ }));
73
+ b.m("POST")
74
+ .h(headers)
75
+ .q(query)
76
+ .b(body);
77
+ return b.build();
78
+ };
79
+ exports.se_AssignChannelCommand = se_AssignChannelCommand;
56
80
  const se_CreateGroupChannelCommand = async (input, context) => {
57
81
  const b = (0, core_1.requestBuilder)(input, context);
58
82
  const headers = {
@@ -1099,6 +1123,22 @@ const de_AddChannelMembersCommand = async (output, context) => {
1099
1123
  return contents;
1100
1124
  };
1101
1125
  exports.de_AddChannelMembersCommand = de_AddChannelMembersCommand;
1126
+ const de_AssignChannelCommand = async (output, context) => {
1127
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1128
+ return de_CommandError(output, context);
1129
+ }
1130
+ const contents = (0, smithy_client_1.map)({
1131
+ $metadata: deserializeMetadata(output),
1132
+ });
1133
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1134
+ const doc = (0, smithy_client_1.take)(data, {
1135
+ 'assignee': smithy_client_1._json,
1136
+ 'service': smithy_client_1._json,
1137
+ });
1138
+ Object.assign(contents, doc);
1139
+ return contents;
1140
+ };
1141
+ exports.de_AssignChannelCommand = de_AssignChannelCommand;
1102
1142
  const de_CreateGroupChannelCommand = async (output, context) => {
1103
1143
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1104
1144
  return de_CommandError(output, context);
@@ -1,6 +1,7 @@
1
1
  import { ConversationsClient, } from "./ConversationsClient";
2
2
  import { AddChannelMemberCommand, } from "./commands/AddChannelMemberCommand";
3
3
  import { AddChannelMembersCommand, } from "./commands/AddChannelMembersCommand";
4
+ import { AssignChannelCommand, } from "./commands/AssignChannelCommand";
4
5
  import { CreateGroupChannelCommand, } from "./commands/CreateGroupChannelCommand";
5
6
  import { CreateInboxTagCommand, } from "./commands/CreateInboxTagCommand";
6
7
  import { CreateKiteChannelCommand, } from "./commands/CreateKiteChannelCommand";
@@ -59,6 +60,7 @@ import { createAggregatedClient } from "@smithy/smithy-client";
59
60
  const commands = {
60
61
  AddChannelMemberCommand,
61
62
  AddChannelMembersCommand,
63
+ AssignChannelCommand,
62
64
  CreateGroupChannelCommand,
63
65
  CreateInboxTagCommand,
64
66
  CreateKiteChannelCommand,
@@ -0,0 +1,17 @@
1
+ import { de_AssignChannelCommand, se_AssignChannelCommand, } 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 AssignChannelCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "AssignChannel", {})
12
+ .n("ConversationsClient", "AssignChannelCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_AssignChannelCommand)
15
+ .de(de_AssignChannelCommand)
16
+ .build() {
17
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./AddChannelMemberCommand";
2
2
  export * from "./AddChannelMembersCommand";
3
+ export * from "./AssignChannelCommand";
3
4
  export * from "./CreateGroupChannelCommand";
4
5
  export * from "./CreateInboxTagCommand";
5
6
  export * from "./CreateKiteChannelCommand";
@@ -116,6 +116,30 @@ export class MemberAlreadyExistException extends __BaseException {
116
116
  Object.setPrototypeOf(this, MemberAlreadyExistException.prototype);
117
117
  }
118
118
  }
119
+ export var AssignChannelAssigneeRequest;
120
+ (function (AssignChannelAssigneeRequest) {
121
+ AssignChannelAssigneeRequest.visit = (value, visitor) => {
122
+ if (value.id !== undefined)
123
+ return visitor.id(value.id);
124
+ if (value.email !== undefined)
125
+ return visitor.email(value.email);
126
+ return visitor._(value.$unknown[0], value.$unknown[1]);
127
+ };
128
+ })(AssignChannelAssigneeRequest || (AssignChannelAssigneeRequest = {}));
129
+ export var AssignChannelServiceRequest;
130
+ (function (AssignChannelServiceRequest) {
131
+ AssignChannelServiceRequest.visit = (value, visitor) => {
132
+ if (value.uri !== undefined)
133
+ return visitor.uri(value.uri);
134
+ return visitor._(value.$unknown[0], value.$unknown[1]);
135
+ };
136
+ })(AssignChannelServiceRequest || (AssignChannelServiceRequest = {}));
137
+ export const AssignChannelVariant = {
138
+ ADAPTIVE: "ADAPTIVE",
139
+ EVERYBODY: "EVERYBODY",
140
+ SELECTED: "SELECTED",
141
+ SKIP: "SKIP",
142
+ };
119
143
  export const ChannelAccess = {
120
144
  PRIVATE: "private",
121
145
  PUBLIC: "public",
@@ -46,6 +46,29 @@ export const se_AddChannelMembersCommand = async (input, context) => {
46
46
  .b(body);
47
47
  return b.build();
48
48
  };
49
+ export const se_AssignChannelCommand = async (input, context) => {
50
+ const b = rb(input, context);
51
+ const headers = {
52
+ 'content-type': 'application/json',
53
+ };
54
+ b.bp("/v2/conversations/channels/{channelId}/assign");
55
+ b.p('channelId', () => input.channelId, '{channelId}', false);
56
+ const query = map({
57
+ [_u]: [, input[_uI]],
58
+ });
59
+ let body;
60
+ body = JSON.stringify(take(input, {
61
+ 'assignee': _ => _json(_),
62
+ 'service': _ => _json(_),
63
+ 'silent': [],
64
+ 'variant': [],
65
+ }));
66
+ b.m("POST")
67
+ .h(headers)
68
+ .q(query)
69
+ .b(body);
70
+ return b.build();
71
+ };
49
72
  export const se_CreateGroupChannelCommand = async (input, context) => {
50
73
  const b = rb(input, context);
51
74
  const headers = {
@@ -1036,6 +1059,21 @@ export const de_AddChannelMembersCommand = async (output, context) => {
1036
1059
  Object.assign(contents, doc);
1037
1060
  return contents;
1038
1061
  };
1062
+ export const de_AssignChannelCommand = async (output, context) => {
1063
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1064
+ return de_CommandError(output, context);
1065
+ }
1066
+ const contents = map({
1067
+ $metadata: deserializeMetadata(output),
1068
+ });
1069
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1070
+ const doc = take(data, {
1071
+ 'assignee': _json,
1072
+ 'service': _json,
1073
+ });
1074
+ Object.assign(contents, doc);
1075
+ return contents;
1076
+ };
1039
1077
  export const de_CreateGroupChannelCommand = async (output, context) => {
1040
1078
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1041
1079
  return de_CommandError(output, context);
@@ -1,6 +1,7 @@
1
1
  import { ConversationsClient } from "./ConversationsClient";
2
2
  import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "./commands/AddChannelMemberCommand";
3
3
  import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "./commands/AddChannelMembersCommand";
4
+ import { AssignChannelCommandInput, AssignChannelCommandOutput } from "./commands/AssignChannelCommand";
4
5
  import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "./commands/CreateGroupChannelCommand";
5
6
  import { CreateInboxTagCommandInput, CreateInboxTagCommandOutput } from "./commands/CreateInboxTagCommand";
6
7
  import { CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput } from "./commands/CreateKiteChannelCommand";
@@ -69,6 +70,12 @@ export interface Conversations {
69
70
  addChannelMembers(args: AddChannelMembersCommandInput, options?: __HttpHandlerOptions): Promise<AddChannelMembersCommandOutput>;
70
71
  addChannelMembers(args: AddChannelMembersCommandInput, cb: (err: any, data?: AddChannelMembersCommandOutput) => void): void;
71
72
  addChannelMembers(args: AddChannelMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddChannelMembersCommandOutput) => void): void;
73
+ /**
74
+ * @see {@link AssignChannelCommand}
75
+ */
76
+ assignChannel(args: AssignChannelCommandInput, options?: __HttpHandlerOptions): Promise<AssignChannelCommandOutput>;
77
+ assignChannel(args: AssignChannelCommandInput, cb: (err: any, data?: AssignChannelCommandOutput) => void): void;
78
+ assignChannel(args: AssignChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssignChannelCommandOutput) => void): void;
72
79
  /**
73
80
  * @see {@link CreateGroupChannelCommand}
74
81
  */
@@ -1,5 +1,6 @@
1
1
  import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "./commands/AddChannelMemberCommand";
2
2
  import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "./commands/AddChannelMembersCommand";
3
+ import { AssignChannelCommandInput, AssignChannelCommandOutput } from "./commands/AssignChannelCommand";
3
4
  import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "./commands/CreateGroupChannelCommand";
4
5
  import { CreateInboxTagCommandInput, CreateInboxTagCommandOutput } from "./commands/CreateInboxTagCommand";
5
6
  import { CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput } from "./commands/CreateKiteChannelCommand";
@@ -65,11 +66,11 @@ export { __Client };
65
66
  /**
66
67
  * @public
67
68
  */
68
- export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | CreateKiteChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteInboxTagCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetActionTriggerResultCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxStateCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetTokenCommandInput | 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;
69
+ export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | AssignChannelCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | CreateKiteChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteInboxTagCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetActionTriggerResultCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxStateCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetTokenCommandInput | 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;
69
70
  /**
70
71
  * @public
71
72
  */
72
- export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | CreateKiteChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteInboxTagCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetActionTriggerResultCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxStateCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetTokenCommandOutput | 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;
73
+ export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | AssignChannelCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | CreateKiteChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteInboxTagCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetActionTriggerResultCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxStateCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetTokenCommandOutput | 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;
73
74
  /**
74
75
  * @public
75
76
  */
@@ -0,0 +1,108 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { AssignChannelInput, AssignChannelOutput } 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 AssignChannelCommand}.
14
+ */
15
+ export interface AssignChannelCommandInput extends AssignChannelInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link AssignChannelCommand}.
21
+ */
22
+ export interface AssignChannelCommandOutput extends AssignChannelOutput, __MetadataBearer {
23
+ }
24
+ declare const AssignChannelCommand_base: {
25
+ new (input: AssignChannelCommandInput): import("@smithy/smithy-client").CommandImpl<AssignChannelCommandInput, AssignChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: AssignChannelCommandInput): import("@smithy/smithy-client").CommandImpl<AssignChannelCommandInput, AssignChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Assigns a channel to a user and/or service, optionally managing members according to a variant.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ConversationsClient, AssignChannelCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
35
+ * // const { ConversationsClient, AssignChannelCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
36
+ * const client = new ConversationsClient(config);
37
+ * const input = { // AssignChannelInput
38
+ * channelId: "STRING_VALUE", // required
39
+ * userId: "STRING_VALUE",
40
+ * silent: true || false,
41
+ * service: { // AssignChannelServiceRequest Union: only one key present
42
+ * uri: "STRING_VALUE",
43
+ * },
44
+ * assignee: { // AssignChannelAssigneeRequest Union: only one key present
45
+ * id: "STRING_VALUE",
46
+ * email: "STRING_VALUE",
47
+ * },
48
+ * variant: "ADAPTIVE" || "SELECTED" || "EVERYBODY" || "SKIP",
49
+ * };
50
+ * const command = new AssignChannelCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // AssignChannelOutput
53
+ * // assignee: { // User
54
+ * // id: "STRING_VALUE", // required
55
+ * // name: "STRING_VALUE",
56
+ * // email: "STRING_VALUE",
57
+ * // phone: "STRING_VALUE",
58
+ * // picture: "STRING_VALUE",
59
+ * // locale: "STRING_VALUE",
60
+ * // timeZone: "STRING_VALUE",
61
+ * // company: "STRING_VALUE",
62
+ * // bot: true || false,
63
+ * // pbxDomain: "STRING_VALUE",
64
+ * // pbxPort: "STRING_VALUE",
65
+ * // pbxExtension: "STRING_VALUE",
66
+ * // pbxSerial: "STRING_VALUE",
67
+ * // pbxUserId: "STRING_VALUE",
68
+ * // createdAt: "STRING_VALUE",
69
+ * // updatedAt: "STRING_VALUE",
70
+ * // },
71
+ * // service: { // Service
72
+ * // id: Number("int"), // required
73
+ * // uri: "STRING_VALUE", // required
74
+ * // title: "STRING_VALUE", // required
75
+ * // settings: {},
76
+ * // extensions: [ // ExtensionsList // required
77
+ * // "STRING_VALUE",
78
+ * // ],
79
+ * // pbx: { // ServicePbx
80
+ * // domain: "STRING_VALUE", // required
81
+ * // port: Number("int"), // required
82
+ * // },
83
+ * // },
84
+ * // };
85
+ *
86
+ * ```
87
+ *
88
+ * @param AssignChannelCommandInput - {@link AssignChannelCommandInput}
89
+ * @returns {@link AssignChannelCommandOutput}
90
+ * @see {@link AssignChannelCommandInput} for command's `input` shape.
91
+ * @see {@link AssignChannelCommandOutput} for command's `response` shape.
92
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
93
+ *
94
+ * @throws {@link ChannelNotFoundException} (client fault)
95
+ *
96
+ * @throws {@link ForbiddenException} (client fault)
97
+ *
98
+ * @throws {@link ValidationException} (client fault)
99
+ *
100
+ * @throws {@link RateLimitExceededException} (client fault)
101
+ *
102
+ * @throws {@link ConversationsServiceException}
103
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
104
+ *
105
+ * @public
106
+ */
107
+ export declare class AssignChannelCommand extends AssignChannelCommand_base {
108
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./AddChannelMemberCommand";
2
2
  export * from "./AddChannelMembersCommand";
3
+ export * from "./AssignChannelCommand";
3
4
  export * from "./CreateGroupChannelCommand";
4
5
  export * from "./CreateInboxTagCommand";
5
6
  export * from "./CreateKiteChannelCommand";
@@ -380,6 +380,171 @@ export interface AddChannelMembersOutput {
380
380
  */
381
381
  users: (User)[];
382
382
  }
383
+ /**
384
+ * @public
385
+ */
386
+ export type AssignChannelAssigneeRequest = AssignChannelAssigneeRequest.EmailMember | AssignChannelAssigneeRequest.IdMember | AssignChannelAssigneeRequest.$UnknownMember;
387
+ /**
388
+ * @public
389
+ */
390
+ export declare namespace AssignChannelAssigneeRequest {
391
+ /**
392
+ * A User ID of the assignee.
393
+ * @public
394
+ */
395
+ interface IdMember {
396
+ id: string;
397
+ email?: never;
398
+ $unknown?: never;
399
+ }
400
+ /**
401
+ * An email of the assignee.
402
+ * @public
403
+ */
404
+ interface EmailMember {
405
+ id?: never;
406
+ email: string;
407
+ $unknown?: never;
408
+ }
409
+ /**
410
+ * @public
411
+ */
412
+ interface $UnknownMember {
413
+ id?: never;
414
+ email?: never;
415
+ $unknown: [string, any];
416
+ }
417
+ interface Visitor<T> {
418
+ id: (value: string) => T;
419
+ email: (value: string) => T;
420
+ _: (name: string, value: any) => T;
421
+ }
422
+ const visit: <T>(value: AssignChannelAssigneeRequest, visitor: Visitor<T>) => T;
423
+ }
424
+ /**
425
+ * @public
426
+ */
427
+ export type AssignChannelServiceRequest = AssignChannelServiceRequest.UriMember | AssignChannelServiceRequest.$UnknownMember;
428
+ /**
429
+ * @public
430
+ */
431
+ export declare namespace AssignChannelServiceRequest {
432
+ /**
433
+ * A unique identifier of the service. URI structure - <serviceId>@<pbxDomain>:<pbxPort> (example 1@demo.wildix.com:433)
434
+ * @public
435
+ */
436
+ interface UriMember {
437
+ uri: string;
438
+ $unknown?: never;
439
+ }
440
+ /**
441
+ * @public
442
+ */
443
+ interface $UnknownMember {
444
+ uri?: never;
445
+ $unknown: [string, any];
446
+ }
447
+ interface Visitor<T> {
448
+ uri: (value: string) => T;
449
+ _: (name: string, value: any) => T;
450
+ }
451
+ const visit: <T>(value: AssignChannelServiceRequest, visitor: Visitor<T>) => T;
452
+ }
453
+ /**
454
+ * @public
455
+ * @enum
456
+ */
457
+ export declare const AssignChannelVariant: {
458
+ /**
459
+ * If service was previously assigned it uses SKIP variant, otherwise SELECTED. Default option.
460
+ */
461
+ readonly ADAPTIVE: "ADAPTIVE";
462
+ /**
463
+ * Ensures that all agents in the service are presented in the conversation and existing members.
464
+ */
465
+ readonly EVERYBODY: "EVERYBODY";
466
+ /**
467
+ * Ensures that only selected agent and user that made assignment are presented in the conversation.
468
+ */
469
+ readonly SELECTED: "SELECTED";
470
+ /**
471
+ * Does not invite anyone (except the assignee if not present yet) or remove any agents from the conversation.
472
+ */
473
+ readonly SKIP: "SKIP";
474
+ };
475
+ /**
476
+ * @public
477
+ */
478
+ export type AssignChannelVariant = typeof AssignChannelVariant[keyof typeof AssignChannelVariant];
479
+ /**
480
+ * @public
481
+ */
482
+ export interface AssignChannelInput {
483
+ channelId: string;
484
+ /**
485
+ * The unique identifier of the user when a service token is used.
486
+ * @public
487
+ */
488
+ userId?: string;
489
+ /**
490
+ * True to not send a system message that channel was assigned to specific service or user. Default - false.
491
+ * @public
492
+ */
493
+ silent?: boolean;
494
+ /**
495
+ * Service information to assign to. If service is not empty than `addAgentFromService` option could be used.
496
+ * @public
497
+ */
498
+ service?: AssignChannelServiceRequest;
499
+ /**
500
+ * A user that should be assigned to the channel. If service was specified than this field can be optional.
501
+ * @public
502
+ */
503
+ assignee?: AssignChannelAssigneeRequest;
504
+ /**
505
+ * Indicates when agents from specified service should be added or removed from the conversation. Default is `ADAPTIVE`. This is applicable only if the service is included in the request.
506
+ * @public
507
+ */
508
+ variant?: AssignChannelVariant;
509
+ }
510
+ /**
511
+ * @public
512
+ */
513
+ export interface ServicePbx {
514
+ domain: string;
515
+ port: number;
516
+ }
517
+ /**
518
+ * @public
519
+ */
520
+ export interface ServiceSettings {
521
+ }
522
+ /**
523
+ * @public
524
+ */
525
+ export interface Service {
526
+ id: number;
527
+ uri: string;
528
+ title: string;
529
+ settings: ServiceSettings;
530
+ extensions: (string)[];
531
+ pbx: ServicePbx;
532
+ }
533
+ /**
534
+ * @public
535
+ */
536
+ export interface AssignChannelOutput {
537
+ /**
538
+ * A user that assigned to the channel if specified in the request, otherwise previously assigned user or undefined.
539
+ * @public
540
+ */
541
+ assignee?: User;
542
+ /**
543
+ * A service that assigned to the channel if specified in the request, otherwise previously assigned service or undefined.
544
+ * @public
545
+ */
546
+ service?: Service;
547
+ }
383
548
  /**
384
549
  * @public
385
550
  * @enum
@@ -1,5 +1,6 @@
1
1
  import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "../commands/AddChannelMemberCommand";
2
2
  import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "../commands/AddChannelMembersCommand";
3
+ import { AssignChannelCommandInput, AssignChannelCommandOutput } from "../commands/AssignChannelCommand";
3
4
  import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "../commands/CreateGroupChannelCommand";
4
5
  import { CreateInboxTagCommandInput, CreateInboxTagCommandOutput } from "../commands/CreateInboxTagCommand";
5
6
  import { CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput } from "../commands/CreateKiteChannelCommand";
@@ -64,6 +65,10 @@ export declare const se_AddChannelMemberCommand: (input: AddChannelMemberCommand
64
65
  * serializeAws_restJson1AddChannelMembersCommand
65
66
  */
66
67
  export declare const se_AddChannelMembersCommand: (input: AddChannelMembersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
68
+ /**
69
+ * serializeAws_restJson1AssignChannelCommand
70
+ */
71
+ export declare const se_AssignChannelCommand: (input: AssignChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
67
72
  /**
68
73
  * serializeAws_restJson1CreateGroupChannelCommand
69
74
  */
@@ -288,6 +293,10 @@ export declare const de_AddChannelMemberCommand: (output: __HttpResponse, contex
288
293
  * deserializeAws_restJson1AddChannelMembersCommand
289
294
  */
290
295
  export declare const de_AddChannelMembersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AddChannelMembersCommandOutput>;
296
+ /**
297
+ * deserializeAws_restJson1AssignChannelCommand
298
+ */
299
+ export declare const de_AssignChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AssignChannelCommandOutput>;
291
300
  /**
292
301
  * deserializeAws_restJson1CreateGroupChannelCommand
293
302
  */
@@ -16,6 +16,7 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
16
16
  env: "stage" | "stable" | "prod";
17
17
  token: import("@wildix/smithy-utils").TokenProvider;
18
18
  apiVersion: string;
19
+ cacheMiddleware?: boolean | undefined;
19
20
  urlParser: import("@smithy/types").UrlParser;
20
21
  base64Decoder: import("@smithy/types").Decoder;
21
22
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -16,6 +16,7 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
16
16
  env: "stage" | "stable" | "prod";
17
17
  token: import("@wildix/smithy-utils").TokenProvider;
18
18
  apiVersion: string;
19
+ cacheMiddleware?: boolean | undefined;
19
20
  urlParser: import("@smithy/types").UrlParser;
20
21
  base64Decoder: import("@smithy/types").Decoder;
21
22
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -9,6 +9,7 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
9
9
  token: import("@wildix/smithy-utils").TokenProvider;
10
10
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
11
11
  apiVersion: string;
12
+ cacheMiddleware?: boolean | undefined;
12
13
  urlParser: import("@smithy/types").UrlParser;
13
14
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
14
15
  streamCollector: import("@smithy/types").StreamCollector;
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.12",
4
+ "version": "1.1.13",
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",