@wildix/xbees-conversations-client 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Conversations.js +2 -0
- package/dist-cjs/commands/CreateKiteChannelCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +39 -9
- package/dist-cjs/protocols/Aws_restJson1.js +75 -3
- package/dist-es/Conversations.js +2 -0
- package/dist-es/commands/CreateKiteChannelCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +36 -8
- package/dist-es/protocols/Aws_restJson1.js +71 -1
- package/dist-types/Conversations.d.ts +7 -0
- package/dist-types/ConversationsClient.d.ts +3 -2
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +240 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +137 -43
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +2 -2
|
@@ -6,6 +6,7 @@ const AddChannelMemberCommand_1 = require("./commands/AddChannelMemberCommand");
|
|
|
6
6
|
const AddChannelMembersCommand_1 = require("./commands/AddChannelMembersCommand");
|
|
7
7
|
const CreateGroupChannelCommand_1 = require("./commands/CreateGroupChannelCommand");
|
|
8
8
|
const CreateInboxTagCommand_1 = require("./commands/CreateInboxTagCommand");
|
|
9
|
+
const CreateKiteChannelCommand_1 = require("./commands/CreateKiteChannelCommand");
|
|
9
10
|
const DeleteChannelCommand_1 = require("./commands/DeleteChannelCommand");
|
|
10
11
|
const DeleteChannelMemberCommand_1 = require("./commands/DeleteChannelMemberCommand");
|
|
11
12
|
const DeleteInboxTagCommand_1 = require("./commands/DeleteInboxTagCommand");
|
|
@@ -61,6 +62,7 @@ const commands = {
|
|
|
61
62
|
AddChannelMembersCommand: AddChannelMembersCommand_1.AddChannelMembersCommand,
|
|
62
63
|
CreateGroupChannelCommand: CreateGroupChannelCommand_1.CreateGroupChannelCommand,
|
|
63
64
|
CreateInboxTagCommand: CreateInboxTagCommand_1.CreateInboxTagCommand,
|
|
65
|
+
CreateKiteChannelCommand: CreateKiteChannelCommand_1.CreateKiteChannelCommand,
|
|
64
66
|
DeleteChannelCommand: DeleteChannelCommand_1.DeleteChannelCommand,
|
|
65
67
|
DeleteChannelMemberCommand: DeleteChannelMemberCommand_1.DeleteChannelMemberCommand,
|
|
66
68
|
DeleteInboxTagCommand: DeleteInboxTagCommand_1.DeleteInboxTagCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateKiteChannelCommand = 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 CreateKiteChannelCommand 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", "CreateKiteChannel", {})
|
|
15
|
+
.n("ConversationsClient", "CreateKiteChannelCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CreateKiteChannelCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CreateKiteChannelCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CreateKiteChannelCommand = CreateKiteChannelCommand;
|
|
@@ -5,6 +5,7 @@ tslib_1.__exportStar(require("./AddChannelMemberCommand"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./AddChannelMembersCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./CreateGroupChannelCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./CreateInboxTagCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./CreateKiteChannelCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./DeleteChannelCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./DeleteChannelMemberCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./DeleteInboxTagCommand"), 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.
|
|
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;
|
|
4
4
|
const ConversationsServiceException_1 = require("./ConversationsServiceException");
|
|
5
5
|
class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -167,6 +167,44 @@ class TagsLimitReachedException extends ConversationsServiceException_1.Conversa
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
exports.TagsLimitReachedException = TagsLimitReachedException;
|
|
170
|
+
var Element;
|
|
171
|
+
(function (Element) {
|
|
172
|
+
Element.visit = (value, visitor) => {
|
|
173
|
+
if (value.actions !== undefined)
|
|
174
|
+
return visitor.actions(value.actions);
|
|
175
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
176
|
+
};
|
|
177
|
+
})(Element = exports.Element || (exports.Element = {}));
|
|
178
|
+
exports.TargetNotEligibleReason = {
|
|
179
|
+
NO_LICENSE: "no_license",
|
|
180
|
+
};
|
|
181
|
+
class TargetNotEligibleException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
182
|
+
constructor(opts) {
|
|
183
|
+
super({
|
|
184
|
+
name: "TargetNotEligibleException",
|
|
185
|
+
$fault: "client",
|
|
186
|
+
...opts
|
|
187
|
+
});
|
|
188
|
+
this.name = "TargetNotEligibleException";
|
|
189
|
+
this.$fault = "client";
|
|
190
|
+
Object.setPrototypeOf(this, TargetNotEligibleException.prototype);
|
|
191
|
+
this.reason = opts.reason;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
exports.TargetNotEligibleException = TargetNotEligibleException;
|
|
195
|
+
class TargetNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
196
|
+
constructor(opts) {
|
|
197
|
+
super({
|
|
198
|
+
name: "TargetNotFoundException",
|
|
199
|
+
$fault: "client",
|
|
200
|
+
...opts
|
|
201
|
+
});
|
|
202
|
+
this.name = "TargetNotFoundException";
|
|
203
|
+
this.$fault = "client";
|
|
204
|
+
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
exports.TargetNotFoundException = TargetNotFoundException;
|
|
170
208
|
class MemberNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
171
209
|
constructor(opts) {
|
|
172
210
|
super({
|
|
@@ -204,14 +242,6 @@ exports.ReactionType = {
|
|
|
204
242
|
THUMBSUP: "thumbsup",
|
|
205
243
|
WHITE_CHECK_MARK: "white_check_mark",
|
|
206
244
|
};
|
|
207
|
-
var Element;
|
|
208
|
-
(function (Element) {
|
|
209
|
-
Element.visit = (value, visitor) => {
|
|
210
|
-
if (value.actions !== undefined)
|
|
211
|
-
return visitor.actions(value.actions);
|
|
212
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
213
|
-
};
|
|
214
|
-
})(Element = exports.Element || (exports.Element = {}));
|
|
215
245
|
exports.MessageSmsStatus = {
|
|
216
246
|
DELIVERED: "delivered",
|
|
217
247
|
ERROR: "error",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateInboxTagCommand = exports.de_UpdateChannelCommand = exports.de_UntagChannelCommand = exports.de_UnpinMessageCommand = void 0;
|
|
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;
|
|
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");
|
|
@@ -102,6 +102,30 @@ const se_CreateInboxTagCommand = async (input, context) => {
|
|
|
102
102
|
return b.build();
|
|
103
103
|
};
|
|
104
104
|
exports.se_CreateInboxTagCommand = se_CreateInboxTagCommand;
|
|
105
|
+
const se_CreateKiteChannelCommand = async (input, context) => {
|
|
106
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
107
|
+
const headers = {
|
|
108
|
+
'content-type': 'application/json',
|
|
109
|
+
};
|
|
110
|
+
b.bp("/v2/conversations/kite");
|
|
111
|
+
const query = (0, smithy_client_1.map)({
|
|
112
|
+
[_u]: [, input[_uI]],
|
|
113
|
+
});
|
|
114
|
+
let body;
|
|
115
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
116
|
+
'channelId': [],
|
|
117
|
+
'initialMessage': _ => (0, smithy_client_1._json)(_),
|
|
118
|
+
'targetId': [],
|
|
119
|
+
'targetRouteId': [],
|
|
120
|
+
'welcomeMessages': _ => (0, smithy_client_1._json)(_),
|
|
121
|
+
}));
|
|
122
|
+
b.m("POST")
|
|
123
|
+
.h(headers)
|
|
124
|
+
.q(query)
|
|
125
|
+
.b(body);
|
|
126
|
+
return b.build();
|
|
127
|
+
};
|
|
128
|
+
exports.se_CreateKiteChannelCommand = se_CreateKiteChannelCommand;
|
|
105
129
|
const se_DeleteChannelCommand = async (input, context) => {
|
|
106
130
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
107
131
|
const headers = {};
|
|
@@ -1065,6 +1089,21 @@ const de_CreateInboxTagCommand = async (output, context) => {
|
|
|
1065
1089
|
return contents;
|
|
1066
1090
|
};
|
|
1067
1091
|
exports.de_CreateInboxTagCommand = de_CreateInboxTagCommand;
|
|
1092
|
+
const de_CreateKiteChannelCommand = async (output, context) => {
|
|
1093
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1094
|
+
return de_CommandError(output, context);
|
|
1095
|
+
}
|
|
1096
|
+
const contents = (0, smithy_client_1.map)({
|
|
1097
|
+
$metadata: deserializeMetadata(output),
|
|
1098
|
+
});
|
|
1099
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
1100
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1101
|
+
'channel': smithy_client_1._json,
|
|
1102
|
+
});
|
|
1103
|
+
Object.assign(contents, doc);
|
|
1104
|
+
return contents;
|
|
1105
|
+
};
|
|
1106
|
+
exports.de_CreateKiteChannelCommand = de_CreateKiteChannelCommand;
|
|
1068
1107
|
const de_DeleteChannelCommand = async (output, context) => {
|
|
1069
1108
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1070
1109
|
return de_CommandError(output, context);
|
|
@@ -1758,6 +1797,12 @@ const de_CommandError = async (output, context) => {
|
|
|
1758
1797
|
case "TagsLimitReachedException":
|
|
1759
1798
|
case "wildix.xbees.conversations#TagsLimitReachedException":
|
|
1760
1799
|
throw await de_TagsLimitReachedExceptionRes(parsedOutput, context);
|
|
1800
|
+
case "TargetNotEligibleException":
|
|
1801
|
+
case "wildix.xbees.conversations#TargetNotEligibleException":
|
|
1802
|
+
throw await de_TargetNotEligibleExceptionRes(parsedOutput, context);
|
|
1803
|
+
case "TargetNotFoundException":
|
|
1804
|
+
case "wildix.xbees.conversations#TargetNotFoundException":
|
|
1805
|
+
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
1761
1806
|
case "MemberNotFoundException":
|
|
1762
1807
|
case "wildix.xbees.conversations#MemberNotFoundException":
|
|
1763
1808
|
throw await de_MemberNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -2011,6 +2056,33 @@ const de_TagsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
|
2011
2056
|
});
|
|
2012
2057
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2013
2058
|
};
|
|
2059
|
+
const de_TargetNotEligibleExceptionRes = async (parsedOutput, context) => {
|
|
2060
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2061
|
+
const data = parsedOutput.body;
|
|
2062
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2063
|
+
'message': smithy_client_1.expectString,
|
|
2064
|
+
'reason': smithy_client_1.expectString,
|
|
2065
|
+
});
|
|
2066
|
+
Object.assign(contents, doc);
|
|
2067
|
+
const exception = new models_0_1.TargetNotEligibleException({
|
|
2068
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2069
|
+
...contents
|
|
2070
|
+
});
|
|
2071
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2072
|
+
};
|
|
2073
|
+
const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2074
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2075
|
+
const data = parsedOutput.body;
|
|
2076
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2077
|
+
'message': smithy_client_1.expectString,
|
|
2078
|
+
});
|
|
2079
|
+
Object.assign(contents, doc);
|
|
2080
|
+
const exception = new models_0_1.TargetNotFoundException({
|
|
2081
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2082
|
+
...contents
|
|
2083
|
+
});
|
|
2084
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2085
|
+
};
|
|
2014
2086
|
const de_TriggerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2015
2087
|
const contents = (0, smithy_client_1.map)({});
|
|
2016
2088
|
const data = parsedOutput.body;
|
package/dist-es/Conversations.js
CHANGED
|
@@ -3,6 +3,7 @@ import { AddChannelMemberCommand, } from "./commands/AddChannelMemberCommand";
|
|
|
3
3
|
import { AddChannelMembersCommand, } from "./commands/AddChannelMembersCommand";
|
|
4
4
|
import { CreateGroupChannelCommand, } from "./commands/CreateGroupChannelCommand";
|
|
5
5
|
import { CreateInboxTagCommand, } from "./commands/CreateInboxTagCommand";
|
|
6
|
+
import { CreateKiteChannelCommand, } from "./commands/CreateKiteChannelCommand";
|
|
6
7
|
import { DeleteChannelCommand, } from "./commands/DeleteChannelCommand";
|
|
7
8
|
import { DeleteChannelMemberCommand, } from "./commands/DeleteChannelMemberCommand";
|
|
8
9
|
import { DeleteInboxTagCommand, } from "./commands/DeleteInboxTagCommand";
|
|
@@ -58,6 +59,7 @@ const commands = {
|
|
|
58
59
|
AddChannelMembersCommand,
|
|
59
60
|
CreateGroupChannelCommand,
|
|
60
61
|
CreateInboxTagCommand,
|
|
62
|
+
CreateKiteChannelCommand,
|
|
61
63
|
DeleteChannelCommand,
|
|
62
64
|
DeleteChannelMemberCommand,
|
|
63
65
|
DeleteInboxTagCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CreateKiteChannelCommand, se_CreateKiteChannelCommand, } 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 CreateKiteChannelCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Conversations", "CreateKiteChannel", {})
|
|
12
|
+
.n("ConversationsClient", "CreateKiteChannelCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CreateKiteChannelCommand)
|
|
15
|
+
.de(de_CreateKiteChannelCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from "./AddChannelMemberCommand";
|
|
|
2
2
|
export * from "./AddChannelMembersCommand";
|
|
3
3
|
export * from "./CreateGroupChannelCommand";
|
|
4
4
|
export * from "./CreateInboxTagCommand";
|
|
5
|
+
export * from "./CreateKiteChannelCommand";
|
|
5
6
|
export * from "./DeleteChannelCommand";
|
|
6
7
|
export * from "./DeleteChannelMemberCommand";
|
|
7
8
|
export * from "./DeleteInboxTagCommand";
|
|
@@ -156,6 +156,42 @@ export class TagsLimitReachedException extends __BaseException {
|
|
|
156
156
|
Object.setPrototypeOf(this, TagsLimitReachedException.prototype);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
+
export var Element;
|
|
160
|
+
(function (Element) {
|
|
161
|
+
Element.visit = (value, visitor) => {
|
|
162
|
+
if (value.actions !== undefined)
|
|
163
|
+
return visitor.actions(value.actions);
|
|
164
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
165
|
+
};
|
|
166
|
+
})(Element || (Element = {}));
|
|
167
|
+
export const TargetNotEligibleReason = {
|
|
168
|
+
NO_LICENSE: "no_license",
|
|
169
|
+
};
|
|
170
|
+
export class TargetNotEligibleException extends __BaseException {
|
|
171
|
+
constructor(opts) {
|
|
172
|
+
super({
|
|
173
|
+
name: "TargetNotEligibleException",
|
|
174
|
+
$fault: "client",
|
|
175
|
+
...opts
|
|
176
|
+
});
|
|
177
|
+
this.name = "TargetNotEligibleException";
|
|
178
|
+
this.$fault = "client";
|
|
179
|
+
Object.setPrototypeOf(this, TargetNotEligibleException.prototype);
|
|
180
|
+
this.reason = opts.reason;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
export class TargetNotFoundException extends __BaseException {
|
|
184
|
+
constructor(opts) {
|
|
185
|
+
super({
|
|
186
|
+
name: "TargetNotFoundException",
|
|
187
|
+
$fault: "client",
|
|
188
|
+
...opts
|
|
189
|
+
});
|
|
190
|
+
this.name = "TargetNotFoundException";
|
|
191
|
+
this.$fault = "client";
|
|
192
|
+
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
159
195
|
export class MemberNotFoundException extends __BaseException {
|
|
160
196
|
constructor(opts) {
|
|
161
197
|
super({
|
|
@@ -191,14 +227,6 @@ export const ReactionType = {
|
|
|
191
227
|
THUMBSUP: "thumbsup",
|
|
192
228
|
WHITE_CHECK_MARK: "white_check_mark",
|
|
193
229
|
};
|
|
194
|
-
export var Element;
|
|
195
|
-
(function (Element) {
|
|
196
|
-
Element.visit = (value, visitor) => {
|
|
197
|
-
if (value.actions !== undefined)
|
|
198
|
-
return visitor.actions(value.actions);
|
|
199
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
200
|
-
};
|
|
201
|
-
})(Element || (Element = {}));
|
|
202
230
|
export const MessageSmsStatus = {
|
|
203
231
|
DELIVERED: "delivered",
|
|
204
232
|
ERROR: "error",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConversationsServiceException as __BaseException } from "../models/ConversationsServiceException";
|
|
2
|
-
import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MarkUnreadChannelsLimitReachedException, MemberAlreadyExistException, MemberNotFoundException, MessageActionNotFoundException, MessageNotFoundException, PinnedChannelsLimitReachedException, RateLimitExceededException, TagNotFoundException, TaggedChannelsLimitReachedException, TagsLimitReachedException, TriggerNotFoundException, ValidationException, } from "../models/models_0";
|
|
2
|
+
import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MarkUnreadChannelsLimitReachedException, MemberAlreadyExistException, MemberNotFoundException, MessageActionNotFoundException, MessageNotFoundException, PinnedChannelsLimitReachedException, RateLimitExceededException, TagNotFoundException, TaggedChannelsLimitReachedException, TagsLimitReachedException, TargetNotEligibleException, TargetNotFoundException, TriggerNotFoundException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
4
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
5
|
export const se_AddChannelMemberCommand = async (input, context) => {
|
|
@@ -93,6 +93,29 @@ export const se_CreateInboxTagCommand = async (input, context) => {
|
|
|
93
93
|
.b(body);
|
|
94
94
|
return b.build();
|
|
95
95
|
};
|
|
96
|
+
export const se_CreateKiteChannelCommand = async (input, context) => {
|
|
97
|
+
const b = rb(input, context);
|
|
98
|
+
const headers = {
|
|
99
|
+
'content-type': 'application/json',
|
|
100
|
+
};
|
|
101
|
+
b.bp("/v2/conversations/kite");
|
|
102
|
+
const query = map({
|
|
103
|
+
[_u]: [, input[_uI]],
|
|
104
|
+
});
|
|
105
|
+
let body;
|
|
106
|
+
body = JSON.stringify(take(input, {
|
|
107
|
+
'channelId': [],
|
|
108
|
+
'initialMessage': _ => _json(_),
|
|
109
|
+
'targetId': [],
|
|
110
|
+
'targetRouteId': [],
|
|
111
|
+
'welcomeMessages': _ => _json(_),
|
|
112
|
+
}));
|
|
113
|
+
b.m("POST")
|
|
114
|
+
.h(headers)
|
|
115
|
+
.q(query)
|
|
116
|
+
.b(body);
|
|
117
|
+
return b.build();
|
|
118
|
+
};
|
|
96
119
|
export const se_DeleteChannelCommand = async (input, context) => {
|
|
97
120
|
const b = rb(input, context);
|
|
98
121
|
const headers = {};
|
|
@@ -1003,6 +1026,20 @@ export const de_CreateInboxTagCommand = async (output, context) => {
|
|
|
1003
1026
|
Object.assign(contents, doc);
|
|
1004
1027
|
return contents;
|
|
1005
1028
|
};
|
|
1029
|
+
export const de_CreateKiteChannelCommand = async (output, context) => {
|
|
1030
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1031
|
+
return de_CommandError(output, context);
|
|
1032
|
+
}
|
|
1033
|
+
const contents = map({
|
|
1034
|
+
$metadata: deserializeMetadata(output),
|
|
1035
|
+
});
|
|
1036
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1037
|
+
const doc = take(data, {
|
|
1038
|
+
'channel': _json,
|
|
1039
|
+
});
|
|
1040
|
+
Object.assign(contents, doc);
|
|
1041
|
+
return contents;
|
|
1042
|
+
};
|
|
1006
1043
|
export const de_DeleteChannelCommand = async (output, context) => {
|
|
1007
1044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1008
1045
|
return de_CommandError(output, context);
|
|
@@ -1647,6 +1684,12 @@ const de_CommandError = async (output, context) => {
|
|
|
1647
1684
|
case "TagsLimitReachedException":
|
|
1648
1685
|
case "wildix.xbees.conversations#TagsLimitReachedException":
|
|
1649
1686
|
throw await de_TagsLimitReachedExceptionRes(parsedOutput, context);
|
|
1687
|
+
case "TargetNotEligibleException":
|
|
1688
|
+
case "wildix.xbees.conversations#TargetNotEligibleException":
|
|
1689
|
+
throw await de_TargetNotEligibleExceptionRes(parsedOutput, context);
|
|
1690
|
+
case "TargetNotFoundException":
|
|
1691
|
+
case "wildix.xbees.conversations#TargetNotFoundException":
|
|
1692
|
+
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
1650
1693
|
case "MemberNotFoundException":
|
|
1651
1694
|
case "wildix.xbees.conversations#MemberNotFoundException":
|
|
1652
1695
|
throw await de_MemberNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1900,6 +1943,33 @@ const de_TagsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
|
1900
1943
|
});
|
|
1901
1944
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1902
1945
|
};
|
|
1946
|
+
const de_TargetNotEligibleExceptionRes = async (parsedOutput, context) => {
|
|
1947
|
+
const contents = map({});
|
|
1948
|
+
const data = parsedOutput.body;
|
|
1949
|
+
const doc = take(data, {
|
|
1950
|
+
'message': __expectString,
|
|
1951
|
+
'reason': __expectString,
|
|
1952
|
+
});
|
|
1953
|
+
Object.assign(contents, doc);
|
|
1954
|
+
const exception = new TargetNotEligibleException({
|
|
1955
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1956
|
+
...contents
|
|
1957
|
+
});
|
|
1958
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1959
|
+
};
|
|
1960
|
+
const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1961
|
+
const contents = map({});
|
|
1962
|
+
const data = parsedOutput.body;
|
|
1963
|
+
const doc = take(data, {
|
|
1964
|
+
'message': __expectString,
|
|
1965
|
+
});
|
|
1966
|
+
Object.assign(contents, doc);
|
|
1967
|
+
const exception = new TargetNotFoundException({
|
|
1968
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1969
|
+
...contents
|
|
1970
|
+
});
|
|
1971
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1972
|
+
};
|
|
1903
1973
|
const de_TriggerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1904
1974
|
const contents = map({});
|
|
1905
1975
|
const data = parsedOutput.body;
|
|
@@ -3,6 +3,7 @@ import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "./c
|
|
|
3
3
|
import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "./commands/AddChannelMembersCommand";
|
|
4
4
|
import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "./commands/CreateGroupChannelCommand";
|
|
5
5
|
import { CreateInboxTagCommandInput, CreateInboxTagCommandOutput } from "./commands/CreateInboxTagCommand";
|
|
6
|
+
import { CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput } from "./commands/CreateKiteChannelCommand";
|
|
6
7
|
import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./commands/DeleteChannelCommand";
|
|
7
8
|
import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "./commands/DeleteChannelMemberCommand";
|
|
8
9
|
import { DeleteInboxTagCommandInput, DeleteInboxTagCommandOutput } from "./commands/DeleteInboxTagCommand";
|
|
@@ -79,6 +80,12 @@ export interface Conversations {
|
|
|
79
80
|
createInboxTag(args: CreateInboxTagCommandInput, options?: __HttpHandlerOptions): Promise<CreateInboxTagCommandOutput>;
|
|
80
81
|
createInboxTag(args: CreateInboxTagCommandInput, cb: (err: any, data?: CreateInboxTagCommandOutput) => void): void;
|
|
81
82
|
createInboxTag(args: CreateInboxTagCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateInboxTagCommandOutput) => void): void;
|
|
83
|
+
/**
|
|
84
|
+
* @see {@link CreateKiteChannelCommand}
|
|
85
|
+
*/
|
|
86
|
+
createKiteChannel(args: CreateKiteChannelCommandInput, options?: __HttpHandlerOptions): Promise<CreateKiteChannelCommandOutput>;
|
|
87
|
+
createKiteChannel(args: CreateKiteChannelCommandInput, cb: (err: any, data?: CreateKiteChannelCommandOutput) => void): void;
|
|
88
|
+
createKiteChannel(args: CreateKiteChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateKiteChannelCommandOutput) => void): void;
|
|
82
89
|
/**
|
|
83
90
|
* @see {@link DeleteChannelCommand}
|
|
84
91
|
*/
|
|
@@ -2,6 +2,7 @@ import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "./c
|
|
|
2
2
|
import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "./commands/AddChannelMembersCommand";
|
|
3
3
|
import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "./commands/CreateGroupChannelCommand";
|
|
4
4
|
import { CreateInboxTagCommandInput, CreateInboxTagCommandOutput } from "./commands/CreateInboxTagCommand";
|
|
5
|
+
import { CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput } from "./commands/CreateKiteChannelCommand";
|
|
5
6
|
import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./commands/DeleteChannelCommand";
|
|
6
7
|
import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "./commands/DeleteChannelMemberCommand";
|
|
7
8
|
import { DeleteInboxTagCommandInput, DeleteInboxTagCommandOutput } from "./commands/DeleteInboxTagCommand";
|
|
@@ -62,11 +63,11 @@ export { __Client };
|
|
|
62
63
|
/**
|
|
63
64
|
* @public
|
|
64
65
|
*/
|
|
65
|
-
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteInboxTagCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetActionTriggerResultCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxStateCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListInboxTaggedChannelsCommandInput | ListInboxTagsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | ListPinnedMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | PinMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendActionTriggerResultCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | TagChannelCommandInput | TriggerMessageActionCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UntagChannelCommandInput | UpdateChannelCommandInput | UpdateInboxTagCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
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;
|
|
66
67
|
/**
|
|
67
68
|
* @public
|
|
68
69
|
*/
|
|
69
|
-
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteInboxTagCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetActionTriggerResultCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxStateCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListInboxTaggedChannelsCommandOutput | ListInboxTagsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | ListPinnedMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | PinMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendActionTriggerResultCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | TagChannelCommandOutput | TriggerMessageActionCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UntagChannelCommandOutput | UpdateChannelCommandOutput | UpdateInboxTagCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
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;
|
|
70
71
|
/**
|
|
71
72
|
* @public
|
|
72
73
|
*/
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { CreateKiteChannelInput, CreateKiteChannelOutput } 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 CreateKiteChannelCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateKiteChannelCommandInput extends CreateKiteChannelInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateKiteChannelCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateKiteChannelCommandOutput extends CreateKiteChannelOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateKiteChannelCommand_base: {
|
|
25
|
+
new (input: CreateKiteChannelCommandInput): import("@smithy/smithy-client").CommandImpl<CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateKiteChannelCommandInput): import("@smithy/smithy-client").CommandImpl<CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new kite channel with specified widget or email.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ConversationsClient, CreateKiteChannelCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
35
|
+
* // const { ConversationsClient, CreateKiteChannelCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
36
|
+
* const client = new ConversationsClient(config);
|
|
37
|
+
* const input = { // CreateKiteChannelInput
|
|
38
|
+
* userId: "STRING_VALUE",
|
|
39
|
+
* channelId: "STRING_VALUE",
|
|
40
|
+
* targetId: "STRING_VALUE", // required
|
|
41
|
+
* targetRouteId: "STRING_VALUE",
|
|
42
|
+
* welcomeMessages: [ // WelcomeMessagesList
|
|
43
|
+
* { // WelcomeMessage
|
|
44
|
+
* text: "STRING_VALUE",
|
|
45
|
+
* elements: [ // ElementsList
|
|
46
|
+
* { // Element Union: only one key present
|
|
47
|
+
* actions: [ // ActionsElementsList
|
|
48
|
+
* { // ActionElement Union: only one key present
|
|
49
|
+
* button: { // ButtonElement
|
|
50
|
+
* text: "STRING_VALUE", // required
|
|
51
|
+
* variant: "contained" || "outlined",
|
|
52
|
+
* disabled: true || false,
|
|
53
|
+
* handler: { // ButtonHandler Union: only one key present
|
|
54
|
+
* link: { // ButtonLinkHandler
|
|
55
|
+
* url: "STRING_VALUE", // required
|
|
56
|
+
* },
|
|
57
|
+
* reply: { // ButtonReplyHandler
|
|
58
|
+
* text: "STRING_VALUE",
|
|
59
|
+
* },
|
|
60
|
+
* action: { // ButtonActionHandler
|
|
61
|
+
* id: "STRING_VALUE", // required
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* },
|
|
65
|
+
* },
|
|
66
|
+
* ],
|
|
67
|
+
* },
|
|
68
|
+
* ],
|
|
69
|
+
* attachments: [ // MessageAttachmentList
|
|
70
|
+
* { // MessageAttachment
|
|
71
|
+
* id: "STRING_VALUE", // required
|
|
72
|
+
* fsId: "STRING_VALUE", // required
|
|
73
|
+
* mime: "STRING_VALUE",
|
|
74
|
+
* name: "STRING_VALUE", // required
|
|
75
|
+
* size: Number("int"), // required
|
|
76
|
+
* width: Number("int"),
|
|
77
|
+
* height: Number("int"),
|
|
78
|
+
* thumbnail: "STRING_VALUE",
|
|
79
|
+
* },
|
|
80
|
+
* ],
|
|
81
|
+
* messageId: "STRING_VALUE", // required
|
|
82
|
+
* user: { // User
|
|
83
|
+
* id: "STRING_VALUE", // required
|
|
84
|
+
* name: "STRING_VALUE",
|
|
85
|
+
* email: "STRING_VALUE",
|
|
86
|
+
* phone: "STRING_VALUE",
|
|
87
|
+
* picture: "STRING_VALUE",
|
|
88
|
+
* locale: "STRING_VALUE",
|
|
89
|
+
* timeZone: "STRING_VALUE",
|
|
90
|
+
* company: "STRING_VALUE",
|
|
91
|
+
* bot: true || false,
|
|
92
|
+
* pbxDomain: "STRING_VALUE",
|
|
93
|
+
* pbxPort: "STRING_VALUE",
|
|
94
|
+
* pbxExtension: "STRING_VALUE",
|
|
95
|
+
* pbxSerial: "STRING_VALUE",
|
|
96
|
+
* pbxUserId: "STRING_VALUE",
|
|
97
|
+
* createdAt: "STRING_VALUE",
|
|
98
|
+
* updatedAt: "STRING_VALUE",
|
|
99
|
+
* },
|
|
100
|
+
* },
|
|
101
|
+
* ],
|
|
102
|
+
* initialMessage: { // InitialMessage
|
|
103
|
+
* text: "STRING_VALUE",
|
|
104
|
+
* elements: [
|
|
105
|
+
* {// Union: only one key present
|
|
106
|
+
* actions: [
|
|
107
|
+
* {// Union: only one key present
|
|
108
|
+
* button: {
|
|
109
|
+
* text: "STRING_VALUE", // required
|
|
110
|
+
* variant: "contained" || "outlined",
|
|
111
|
+
* disabled: true || false,
|
|
112
|
+
* handler: {// Union: only one key present
|
|
113
|
+
* link: {
|
|
114
|
+
* url: "STRING_VALUE", // required
|
|
115
|
+
* },
|
|
116
|
+
* reply: {
|
|
117
|
+
* text: "STRING_VALUE",
|
|
118
|
+
* },
|
|
119
|
+
* action: {
|
|
120
|
+
* id: "STRING_VALUE", // required
|
|
121
|
+
* },
|
|
122
|
+
* },
|
|
123
|
+
* },
|
|
124
|
+
* },
|
|
125
|
+
* ],
|
|
126
|
+
* },
|
|
127
|
+
* ],
|
|
128
|
+
* attachments: [
|
|
129
|
+
* {
|
|
130
|
+
* id: "STRING_VALUE", // required
|
|
131
|
+
* fsId: "STRING_VALUE", // required
|
|
132
|
+
* mime: "STRING_VALUE",
|
|
133
|
+
* name: "STRING_VALUE", // required
|
|
134
|
+
* size: Number("int"), // required
|
|
135
|
+
* width: Number("int"),
|
|
136
|
+
* height: Number("int"),
|
|
137
|
+
* thumbnail: "STRING_VALUE",
|
|
138
|
+
* },
|
|
139
|
+
* ],
|
|
140
|
+
* messageId: "STRING_VALUE", // required
|
|
141
|
+
* },
|
|
142
|
+
* };
|
|
143
|
+
* const command = new CreateKiteChannelCommand(input);
|
|
144
|
+
* const response = await client.send(command);
|
|
145
|
+
* // { // CreateKiteChannelOutput
|
|
146
|
+
* // channel: { // Channel
|
|
147
|
+
* // subject: "STRING_VALUE",
|
|
148
|
+
* // description: "STRING_VALUE",
|
|
149
|
+
* // picture: "STRING_VALUE",
|
|
150
|
+
* // pictureColor: "STRING_VALUE",
|
|
151
|
+
* // access: "private" || "public",
|
|
152
|
+
* // company: "STRING_VALUE",
|
|
153
|
+
* // context: { // ChannelContext
|
|
154
|
+
* // source: "kite",
|
|
155
|
+
* // target: "STRING_VALUE",
|
|
156
|
+
* // events: [ // ChannelContextEventList
|
|
157
|
+
* // { // ChannelContextEvent
|
|
158
|
+
* // id: "STRING_VALUE",
|
|
159
|
+
* // owner: "STRING_VALUE",
|
|
160
|
+
* // start: "STRING_VALUE",
|
|
161
|
+
* // end: "STRING_VALUE",
|
|
162
|
+
* // summary: "STRING_VALUE",
|
|
163
|
+
* // attendees: [ // ChannelContextEventAttendeeList
|
|
164
|
+
* // { // ChannelContextEventAttendee
|
|
165
|
+
* // email: "STRING_VALUE", // required
|
|
166
|
+
* // name: "STRING_VALUE",
|
|
167
|
+
* // status: "accepted" || "tentative" || "declined" || "none", // required
|
|
168
|
+
* // },
|
|
169
|
+
* // ],
|
|
170
|
+
* // },
|
|
171
|
+
* // ],
|
|
172
|
+
* // },
|
|
173
|
+
* // kite: true || false,
|
|
174
|
+
* // kiteTarget: "STRING_VALUE",
|
|
175
|
+
* // kiteVariant: "STRING_VALUE",
|
|
176
|
+
* // kiteAssign: "STRING_VALUE",
|
|
177
|
+
* // kiteServiceName: "STRING_VALUE",
|
|
178
|
+
* // kiteDefaultSubject: "STRING_VALUE",
|
|
179
|
+
* // service: "STRING_VALUE",
|
|
180
|
+
* // serviceTitle: "STRING_VALUE",
|
|
181
|
+
* // serviceRecipient: "STRING_VALUE",
|
|
182
|
+
* // assignee: { // User
|
|
183
|
+
* // id: "STRING_VALUE", // required
|
|
184
|
+
* // name: "STRING_VALUE",
|
|
185
|
+
* // email: "STRING_VALUE",
|
|
186
|
+
* // phone: "STRING_VALUE",
|
|
187
|
+
* // picture: "STRING_VALUE",
|
|
188
|
+
* // locale: "STRING_VALUE",
|
|
189
|
+
* // timeZone: "STRING_VALUE",
|
|
190
|
+
* // company: "STRING_VALUE",
|
|
191
|
+
* // bot: true || false,
|
|
192
|
+
* // pbxDomain: "STRING_VALUE",
|
|
193
|
+
* // pbxPort: "STRING_VALUE",
|
|
194
|
+
* // pbxExtension: "STRING_VALUE",
|
|
195
|
+
* // pbxSerial: "STRING_VALUE",
|
|
196
|
+
* // pbxUserId: "STRING_VALUE",
|
|
197
|
+
* // createdAt: "STRING_VALUE",
|
|
198
|
+
* // updatedAt: "STRING_VALUE",
|
|
199
|
+
* // },
|
|
200
|
+
* // telephony: true || false,
|
|
201
|
+
* // sms: true || false,
|
|
202
|
+
* // mms: true || false,
|
|
203
|
+
* // whatsapp: true || false,
|
|
204
|
+
* // whatsappStatus: "24h_channel_closed",
|
|
205
|
+
* // broadcast: true || false,
|
|
206
|
+
* // external: true || false,
|
|
207
|
+
* // channelId: "STRING_VALUE", // required
|
|
208
|
+
* // channelType: "direct" || "group", // required
|
|
209
|
+
* // memberCount: Number("int"), // required
|
|
210
|
+
* // createdAt: "STRING_VALUE", // required
|
|
211
|
+
* // createdBy: "STRING_VALUE", // required
|
|
212
|
+
* // updatedAt: "STRING_VALUE",
|
|
213
|
+
* // },
|
|
214
|
+
* // };
|
|
215
|
+
*
|
|
216
|
+
* ```
|
|
217
|
+
*
|
|
218
|
+
* @param CreateKiteChannelCommandInput - {@link CreateKiteChannelCommandInput}
|
|
219
|
+
* @returns {@link CreateKiteChannelCommandOutput}
|
|
220
|
+
* @see {@link CreateKiteChannelCommandInput} for command's `input` shape.
|
|
221
|
+
* @see {@link CreateKiteChannelCommandOutput} for command's `response` shape.
|
|
222
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
223
|
+
*
|
|
224
|
+
* @throws {@link TargetNotFoundException} (client fault)
|
|
225
|
+
*
|
|
226
|
+
* @throws {@link TargetNotEligibleException} (client fault)
|
|
227
|
+
*
|
|
228
|
+
* @throws {@link ValidationException} (client fault)
|
|
229
|
+
*
|
|
230
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
231
|
+
*
|
|
232
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
233
|
+
*
|
|
234
|
+
* @throws {@link ConversationsServiceException}
|
|
235
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
236
|
+
*
|
|
237
|
+
* @public
|
|
238
|
+
*/
|
|
239
|
+
export declare class CreateKiteChannelCommand extends CreateKiteChannelCommand_base {
|
|
240
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from "./AddChannelMemberCommand";
|
|
|
2
2
|
export * from "./AddChannelMembersCommand";
|
|
3
3
|
export * from "./CreateGroupChannelCommand";
|
|
4
4
|
export * from "./CreateInboxTagCommand";
|
|
5
|
+
export * from "./CreateKiteChannelCommand";
|
|
5
6
|
export * from "./DeleteChannelCommand";
|
|
6
7
|
export * from "./DeleteChannelMemberCommand";
|
|
7
8
|
export * from "./DeleteInboxTagCommand";
|
|
@@ -613,6 +613,142 @@ export declare class TagsLimitReachedException extends __BaseException {
|
|
|
613
613
|
*/
|
|
614
614
|
constructor(opts: __ExceptionOptionType<TagsLimitReachedException, __BaseException>);
|
|
615
615
|
}
|
|
616
|
+
/**
|
|
617
|
+
* @public
|
|
618
|
+
*/
|
|
619
|
+
export interface MessageAttachment {
|
|
620
|
+
id: string;
|
|
621
|
+
/**
|
|
622
|
+
* This *is* documentation about the field. Describe here what fsId and how to get it.
|
|
623
|
+
* @public
|
|
624
|
+
*/
|
|
625
|
+
fsId: string;
|
|
626
|
+
mime?: string;
|
|
627
|
+
name: string;
|
|
628
|
+
size: number;
|
|
629
|
+
width?: number;
|
|
630
|
+
height?: number;
|
|
631
|
+
thumbnail?: string;
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* @public
|
|
635
|
+
*/
|
|
636
|
+
export type Element = Element.ActionsMember | Element.$UnknownMember;
|
|
637
|
+
/**
|
|
638
|
+
* @public
|
|
639
|
+
*/
|
|
640
|
+
export declare namespace Element {
|
|
641
|
+
interface ActionsMember {
|
|
642
|
+
actions: (ActionElement)[];
|
|
643
|
+
$unknown?: never;
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* @public
|
|
647
|
+
*/
|
|
648
|
+
interface $UnknownMember {
|
|
649
|
+
actions?: never;
|
|
650
|
+
$unknown: [string, any];
|
|
651
|
+
}
|
|
652
|
+
interface Visitor<T> {
|
|
653
|
+
actions: (value: (ActionElement)[]) => T;
|
|
654
|
+
_: (name: string, value: any) => T;
|
|
655
|
+
}
|
|
656
|
+
const visit: <T>(value: Element, visitor: Visitor<T>) => T;
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* @public
|
|
660
|
+
*/
|
|
661
|
+
export interface InitialMessage {
|
|
662
|
+
text?: string;
|
|
663
|
+
elements?: (Element)[];
|
|
664
|
+
attachments?: (MessageAttachment)[];
|
|
665
|
+
messageId: string;
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* @public
|
|
669
|
+
*/
|
|
670
|
+
export interface WelcomeMessage {
|
|
671
|
+
text?: string;
|
|
672
|
+
elements?: (Element)[];
|
|
673
|
+
attachments?: (MessageAttachment)[];
|
|
674
|
+
messageId: string;
|
|
675
|
+
user: User;
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* @public
|
|
679
|
+
*/
|
|
680
|
+
export interface CreateKiteChannelInput {
|
|
681
|
+
/**
|
|
682
|
+
* The unique identifier of the user when a service token is used.
|
|
683
|
+
* @public
|
|
684
|
+
*/
|
|
685
|
+
userId?: string;
|
|
686
|
+
/**
|
|
687
|
+
* The unique identifier for the new group channel. If not provided, the system will generate one.
|
|
688
|
+
* @public
|
|
689
|
+
*/
|
|
690
|
+
channelId?: string;
|
|
691
|
+
/**
|
|
692
|
+
* The unique identifier of the Kite widget or email of the agent (example: 36cv69ao or vadim.ruban@wildix.com).
|
|
693
|
+
* @public
|
|
694
|
+
*/
|
|
695
|
+
targetId: string;
|
|
696
|
+
/**
|
|
697
|
+
* The unique identifier of the route for time-based configuration.
|
|
698
|
+
* @public
|
|
699
|
+
*/
|
|
700
|
+
targetRouteId?: string;
|
|
701
|
+
/**
|
|
702
|
+
* A list of welcome messages is created during channel creation to preserve the same state as the client has on the interface. If welcomeMessages or initialMessage are not specified, the system will generate a 'conversation was created' system message.
|
|
703
|
+
* @public
|
|
704
|
+
*/
|
|
705
|
+
welcomeMessages?: (WelcomeMessage)[];
|
|
706
|
+
/**
|
|
707
|
+
* A message to be added to the conversation for the user. If welcomeMessages or initialMessage are not specified, the system will generate a 'conversation was created' system message.
|
|
708
|
+
* @public
|
|
709
|
+
*/
|
|
710
|
+
initialMessage?: InitialMessage;
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* @public
|
|
714
|
+
*/
|
|
715
|
+
export interface CreateKiteChannelOutput {
|
|
716
|
+
channel: Channel;
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* @public
|
|
720
|
+
* @enum
|
|
721
|
+
*/
|
|
722
|
+
export declare const TargetNotEligibleReason: {
|
|
723
|
+
readonly NO_LICENSE: "no_license";
|
|
724
|
+
};
|
|
725
|
+
/**
|
|
726
|
+
* @public
|
|
727
|
+
*/
|
|
728
|
+
export type TargetNotEligibleReason = typeof TargetNotEligibleReason[keyof typeof TargetNotEligibleReason];
|
|
729
|
+
/**
|
|
730
|
+
* @public
|
|
731
|
+
*/
|
|
732
|
+
export declare class TargetNotEligibleException extends __BaseException {
|
|
733
|
+
readonly name: "TargetNotEligibleException";
|
|
734
|
+
readonly $fault: "client";
|
|
735
|
+
reason?: TargetNotEligibleReason;
|
|
736
|
+
/**
|
|
737
|
+
* @internal
|
|
738
|
+
*/
|
|
739
|
+
constructor(opts: __ExceptionOptionType<TargetNotEligibleException, __BaseException>);
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* @public
|
|
743
|
+
*/
|
|
744
|
+
export declare class TargetNotFoundException extends __BaseException {
|
|
745
|
+
readonly name: "TargetNotFoundException";
|
|
746
|
+
readonly $fault: "client";
|
|
747
|
+
/**
|
|
748
|
+
* @internal
|
|
749
|
+
*/
|
|
750
|
+
constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
|
|
751
|
+
}
|
|
616
752
|
/**
|
|
617
753
|
* @public
|
|
618
754
|
*/
|
|
@@ -779,48 +915,6 @@ export interface DeleteMessageReactionOutput {
|
|
|
779
915
|
*/
|
|
780
916
|
export interface DescribeEventInput {
|
|
781
917
|
}
|
|
782
|
-
/**
|
|
783
|
-
* @public
|
|
784
|
-
*/
|
|
785
|
-
export interface MessageAttachment {
|
|
786
|
-
id: string;
|
|
787
|
-
/**
|
|
788
|
-
* This *is* documentation about the field. Describe here what fsId and how to get it.
|
|
789
|
-
* @public
|
|
790
|
-
*/
|
|
791
|
-
fsId: string;
|
|
792
|
-
mime?: string;
|
|
793
|
-
name: string;
|
|
794
|
-
size: number;
|
|
795
|
-
width?: number;
|
|
796
|
-
height?: number;
|
|
797
|
-
thumbnail?: string;
|
|
798
|
-
}
|
|
799
|
-
/**
|
|
800
|
-
* @public
|
|
801
|
-
*/
|
|
802
|
-
export type Element = Element.ActionsMember | Element.$UnknownMember;
|
|
803
|
-
/**
|
|
804
|
-
* @public
|
|
805
|
-
*/
|
|
806
|
-
export declare namespace Element {
|
|
807
|
-
interface ActionsMember {
|
|
808
|
-
actions: (ActionElement)[];
|
|
809
|
-
$unknown?: never;
|
|
810
|
-
}
|
|
811
|
-
/**
|
|
812
|
-
* @public
|
|
813
|
-
*/
|
|
814
|
-
interface $UnknownMember {
|
|
815
|
-
actions?: never;
|
|
816
|
-
$unknown: [string, any];
|
|
817
|
-
}
|
|
818
|
-
interface Visitor<T> {
|
|
819
|
-
actions: (value: (ActionElement)[]) => T;
|
|
820
|
-
_: (name: string, value: any) => T;
|
|
821
|
-
}
|
|
822
|
-
const visit: <T>(value: Element, visitor: Visitor<T>) => T;
|
|
823
|
-
}
|
|
824
918
|
/**
|
|
825
919
|
* @public
|
|
826
920
|
*/
|
|
@@ -1543,7 +1637,7 @@ export interface ListChannelsInput {
|
|
|
1543
1637
|
*/
|
|
1544
1638
|
userId?: string;
|
|
1545
1639
|
/**
|
|
1546
|
-
* The maximum number of channels to return. The value must be between 1 and
|
|
1640
|
+
* The maximum number of channels to return. The value must be between 1 and 30.
|
|
1547
1641
|
* @public
|
|
1548
1642
|
*/
|
|
1549
1643
|
limit?: number;
|
|
@@ -2,6 +2,7 @@ import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "../
|
|
|
2
2
|
import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "../commands/AddChannelMembersCommand";
|
|
3
3
|
import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "../commands/CreateGroupChannelCommand";
|
|
4
4
|
import { CreateInboxTagCommandInput, CreateInboxTagCommandOutput } from "../commands/CreateInboxTagCommand";
|
|
5
|
+
import { CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput } from "../commands/CreateKiteChannelCommand";
|
|
5
6
|
import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "../commands/DeleteChannelCommand";
|
|
6
7
|
import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "../commands/DeleteChannelMemberCommand";
|
|
7
8
|
import { DeleteInboxTagCommandInput, DeleteInboxTagCommandOutput } from "../commands/DeleteInboxTagCommand";
|
|
@@ -69,6 +70,10 @@ export declare const se_CreateGroupChannelCommand: (input: CreateGroupChannelCom
|
|
|
69
70
|
* serializeAws_restJson1CreateInboxTagCommand
|
|
70
71
|
*/
|
|
71
72
|
export declare const se_CreateInboxTagCommand: (input: CreateInboxTagCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
73
|
+
/**
|
|
74
|
+
* serializeAws_restJson1CreateKiteChannelCommand
|
|
75
|
+
*/
|
|
76
|
+
export declare const se_CreateKiteChannelCommand: (input: CreateKiteChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
72
77
|
/**
|
|
73
78
|
* serializeAws_restJson1DeleteChannelCommand
|
|
74
79
|
*/
|
|
@@ -281,6 +286,10 @@ export declare const de_CreateGroupChannelCommand: (output: __HttpResponse, cont
|
|
|
281
286
|
* deserializeAws_restJson1CreateInboxTagCommand
|
|
282
287
|
*/
|
|
283
288
|
export declare const de_CreateInboxTagCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateInboxTagCommandOutput>;
|
|
289
|
+
/**
|
|
290
|
+
* deserializeAws_restJson1CreateKiteChannelCommand
|
|
291
|
+
*/
|
|
292
|
+
export declare const de_CreateKiteChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateKiteChannelCommandOutput>;
|
|
284
293
|
/**
|
|
285
294
|
* deserializeAws_restJson1DeleteChannelCommand
|
|
286
295
|
*/
|
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.
|
|
4
|
+
"version": "1.1.2",
|
|
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",
|
|
@@ -76,4 +76,4 @@
|
|
|
76
76
|
"react-native": {
|
|
77
77
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
78
78
|
}
|
|
79
|
-
}
|
|
79
|
+
}
|