@wildix/xbees-conversations-client 1.0.52 → 1.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist-cjs/Conversations.js +2 -0
  2. package/dist-cjs/ConversationsClient.js +7 -2
  3. package/dist-cjs/commands/CreateKiteChannelCommand.js +21 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +52 -22
  6. package/dist-cjs/protocols/Aws_restJson1.js +81 -7
  7. package/dist-es/Conversations.js +2 -0
  8. package/dist-es/ConversationsClient.js +7 -2
  9. package/dist-es/commands/CreateKiteChannelCommand.js +17 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/models/models_0.js +48 -20
  12. package/dist-es/protocols/Aws_restJson1.js +78 -6
  13. package/dist-types/Conversations.d.ts +7 -0
  14. package/dist-types/ConversationsClient.d.ts +6 -4
  15. package/dist-types/commands/AddChannelMemberCommand.d.ts +1 -1
  16. package/dist-types/commands/AddChannelMembersCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateGroupChannelCommand.d.ts +1 -1
  18. package/dist-types/commands/CreateKiteChannelCommand.d.ts +300 -0
  19. package/dist-types/commands/DeleteChannelCommand.d.ts +1 -1
  20. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +1 -1
  21. package/dist-types/commands/DeleteMessageCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +1 -1
  23. package/dist-types/commands/DescribeEventCommand.d.ts +56 -26
  24. package/dist-types/commands/GetChannelCommand.d.ts +1 -1
  25. package/dist-types/commands/GetChannelMemberCommand.d.ts +1 -1
  26. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +1 -1
  27. package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +1 -1
  28. package/dist-types/commands/GetMessageCommand.d.ts +17 -11
  29. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +1 -1
  30. package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +1 -1
  31. package/dist-types/commands/HideChannelCommand.d.ts +1 -1
  32. package/dist-types/commands/InviteCommand.d.ts +1 -1
  33. package/dist-types/commands/JoinChannelCommand.d.ts +1 -1
  34. package/dist-types/commands/LeaveChannelCommand.d.ts +1 -1
  35. package/dist-types/commands/ListChannelMembersCommand.d.ts +1 -1
  36. package/dist-types/commands/ListChannelsCommand.d.ts +1 -1
  37. package/dist-types/commands/ListMessageReactionsCommand.d.ts +1 -1
  38. package/dist-types/commands/ListMessagesCommand.d.ts +17 -11
  39. package/dist-types/commands/MarkReadCommand.d.ts +1 -1
  40. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +1 -1
  41. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +28 -16
  42. package/dist-types/commands/ScheduleExternalFlagAdjustmentJobCommand.d.ts +1 -1
  43. package/dist-types/commands/SendGiphyCommand.d.ts +22 -16
  44. package/dist-types/commands/SendMessageCommand.d.ts +28 -16
  45. package/dist-types/commands/SendMessageReactionCommand.d.ts +1 -1
  46. package/dist-types/commands/SendTypingStartCommand.d.ts +1 -1
  47. package/dist-types/commands/SendTypingStopCommand.d.ts +1 -1
  48. package/dist-types/commands/ShowChannelCommand.d.ts +1 -1
  49. package/dist-types/commands/UpdateChannelCommand.d.ts +1 -1
  50. package/dist-types/commands/UpdateMessageCommand.d.ts +28 -16
  51. package/dist-types/commands/UploadFileCommand.d.ts +1 -1
  52. package/dist-types/commands/index.d.ts +1 -0
  53. package/dist-types/models/models_0.d.ts +252 -95
  54. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  55. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  56. package/dist-types/runtimeConfig.d.ts +1 -0
  57. package/dist-types/runtimeConfig.native.d.ts +1 -0
  58. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ConversationsServiceException as __BaseException } from "../models/ConversationsServiceException";
2
- import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, LimitExceededException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, ValidationException, } from "../models/models_0";
2
+ import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, RateLimitExceededException, TargetNotEligibleException, TargetNotFoundException, 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) => {
@@ -73,6 +73,29 @@ export const se_CreateGroupChannelCommand = async (input, context) => {
73
73
  .b(body);
74
74
  return b.build();
75
75
  };
76
+ export const se_CreateKiteChannelCommand = async (input, context) => {
77
+ const b = rb(input, context);
78
+ const headers = {
79
+ 'content-type': 'application/json',
80
+ };
81
+ b.bp("/v2/conversations/kite");
82
+ const query = map({
83
+ [_u]: [, input[_uI]],
84
+ });
85
+ let body;
86
+ body = JSON.stringify(take(input, {
87
+ 'channelId': [],
88
+ 'initialMessage': _ => _json(_),
89
+ 'targetId': [],
90
+ 'targetRouteId': [],
91
+ 'welcomeMessages': _ => _json(_),
92
+ }));
93
+ b.m("POST")
94
+ .h(headers)
95
+ .q(query)
96
+ .b(body);
97
+ return b.build();
98
+ };
76
99
  export const se_DeleteChannelCommand = async (input, context) => {
77
100
  const b = rb(input, context);
78
101
  const headers = {};
@@ -501,6 +524,7 @@ export const se_SendMessageCommand = async (input, context) => {
501
524
  'forward': _ => _json(_),
502
525
  'mentions': _ => _json(_),
503
526
  'messageId': [],
527
+ 'predefinedReplies': _ => _json(_),
504
528
  'quote': _ => _json(_),
505
529
  'text': [],
506
530
  }));
@@ -618,6 +642,7 @@ export const se_UpdateMessageCommand = async (input, context) => {
618
642
  'attachments': _ => _json(_),
619
643
  'forward': _ => _json(_),
620
644
  'mentions': _ => _json(_),
645
+ 'predefinedReplies': _ => _json(_),
621
646
  'quote': _ => _json(_),
622
647
  'text': [],
623
648
  }));
@@ -688,6 +713,20 @@ export const de_CreateGroupChannelCommand = async (output, context) => {
688
713
  Object.assign(contents, doc);
689
714
  return contents;
690
715
  };
716
+ export const de_CreateKiteChannelCommand = async (output, context) => {
717
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
718
+ return de_CommandError(output, context);
719
+ }
720
+ const contents = map({
721
+ $metadata: deserializeMetadata(output),
722
+ });
723
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
724
+ const doc = take(data, {
725
+ 'channel': _json,
726
+ });
727
+ Object.assign(contents, doc);
728
+ return contents;
729
+ };
691
730
  export const de_DeleteChannelCommand = async (output, context) => {
692
731
  if (output.statusCode !== 200 && output.statusCode >= 300) {
693
732
  return de_CommandError(output, context);
@@ -1126,18 +1165,24 @@ const de_CommandError = async (output, context) => {
1126
1165
  case "ForbiddenException":
1127
1166
  case "smithy.framework#ForbiddenException":
1128
1167
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
1129
- case "LimitExceededException":
1130
- case "smithy.framework#LimitExceededException":
1131
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1132
1168
  case "MemberAlreadyExistException":
1133
1169
  case "wildix.xbees.conversations#MemberAlreadyExistException":
1134
1170
  throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
1171
+ case "RateLimitExceededException":
1172
+ case "smithy.framework#RateLimitExceededException":
1173
+ throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
1135
1174
  case "ValidationException":
1136
1175
  case "smithy.framework#ValidationException":
1137
1176
  throw await de_ValidationExceptionRes(parsedOutput, context);
1138
1177
  case "ChannelAlreadyExistException":
1139
1178
  case "wildix.xbees.conversations#ChannelAlreadyExistException":
1140
1179
  throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
1180
+ case "TargetNotEligibleException":
1181
+ case "wildix.xbees.conversations#TargetNotEligibleException":
1182
+ throw await de_TargetNotEligibleExceptionRes(parsedOutput, context);
1183
+ case "TargetNotFoundException":
1184
+ case "wildix.xbees.conversations#TargetNotFoundException":
1185
+ throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
1141
1186
  case "MemberNotFoundException":
1142
1187
  case "wildix.xbees.conversations#MemberNotFoundException":
1143
1188
  throw await de_MemberNotFoundExceptionRes(parsedOutput, context);
@@ -1173,7 +1218,7 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
1173
1218
  });
1174
1219
  return __decorateServiceException(exception, parsedOutput.body);
1175
1220
  };
1176
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1221
+ const de_RateLimitExceededExceptionRes = async (parsedOutput, context) => {
1177
1222
  const contents = map({
1178
1223
  [_rL]: [, parsedOutput.headers[_xrl]],
1179
1224
  [_rLR]: [() => void 0 !== parsedOutput.headers[_xrr], () => __strictParseInt32(parsedOutput.headers[_xrr])],
@@ -1185,7 +1230,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1185
1230
  'message': __expectString,
1186
1231
  });
1187
1232
  Object.assign(contents, doc);
1188
- const exception = new LimitExceededException({
1233
+ const exception = new RateLimitExceededException({
1189
1234
  $metadata: deserializeMetadata(parsedOutput),
1190
1235
  ...contents
1191
1236
  });
@@ -1295,6 +1340,33 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
1295
1340
  });
1296
1341
  return __decorateServiceException(exception, parsedOutput.body);
1297
1342
  };
1343
+ const de_TargetNotEligibleExceptionRes = async (parsedOutput, context) => {
1344
+ const contents = map({});
1345
+ const data = parsedOutput.body;
1346
+ const doc = take(data, {
1347
+ 'message': __expectString,
1348
+ 'reason': __expectString,
1349
+ });
1350
+ Object.assign(contents, doc);
1351
+ const exception = new TargetNotEligibleException({
1352
+ $metadata: deserializeMetadata(parsedOutput),
1353
+ ...contents
1354
+ });
1355
+ return __decorateServiceException(exception, parsedOutput.body);
1356
+ };
1357
+ const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
1358
+ const contents = map({});
1359
+ const data = parsedOutput.body;
1360
+ const doc = take(data, {
1361
+ 'message': __expectString,
1362
+ });
1363
+ Object.assign(contents, doc);
1364
+ const exception = new TargetNotFoundException({
1365
+ $metadata: deserializeMetadata(parsedOutput),
1366
+ ...contents
1367
+ });
1368
+ return __decorateServiceException(exception, parsedOutput.body);
1369
+ };
1298
1370
  const deserializeMetadata = (output) => ({
1299
1371
  httpStatusCode: output.statusCode,
1300
1372
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -2,6 +2,7 @@ import { ConversationsClient } from "./ConversationsClient";
2
2
  import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "./commands/AddChannelMemberCommand";
3
3
  import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "./commands/AddChannelMembersCommand";
4
4
  import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "./commands/CreateGroupChannelCommand";
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 { DeleteMessageCommandInput, DeleteMessageCommandOutput } from "./commands/DeleteMessageCommand";
@@ -56,6 +57,12 @@ export interface Conversations {
56
57
  createGroupChannel(args: CreateGroupChannelCommandInput, options?: __HttpHandlerOptions): Promise<CreateGroupChannelCommandOutput>;
57
58
  createGroupChannel(args: CreateGroupChannelCommandInput, cb: (err: any, data?: CreateGroupChannelCommandOutput) => void): void;
58
59
  createGroupChannel(args: CreateGroupChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGroupChannelCommandOutput) => void): void;
60
+ /**
61
+ * @see {@link CreateKiteChannelCommand}
62
+ */
63
+ createKiteChannel(args: CreateKiteChannelCommandInput, options?: __HttpHandlerOptions): Promise<CreateKiteChannelCommandOutput>;
64
+ createKiteChannel(args: CreateKiteChannelCommandInput, cb: (err: any, data?: CreateKiteChannelCommandOutput) => void): void;
65
+ createKiteChannel(args: CreateKiteChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateKiteChannelCommandOutput) => void): void;
59
66
  /**
60
67
  * @see {@link DeleteChannelCommand}
61
68
  */
@@ -1,6 +1,7 @@
1
1
  import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "./commands/AddChannelMemberCommand";
2
2
  import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "./commands/AddChannelMembersCommand";
3
3
  import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "./commands/CreateGroupChannelCommand";
4
+ import { CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput } from "./commands/CreateKiteChannelCommand";
4
5
  import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./commands/DeleteChannelCommand";
5
6
  import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "./commands/DeleteChannelMemberCommand";
6
7
  import { DeleteMessageCommandInput, DeleteMessageCommandOutput } from "./commands/DeleteMessageCommand";
@@ -36,6 +37,7 @@ import { UpdateMessageCommandInput, UpdateMessageCommandOutput } from "./command
36
37
  import { UploadFileCommandInput, UploadFileCommandOutput } from "./commands/UploadFileCommand";
37
38
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
38
39
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
40
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
39
41
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
40
42
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
41
43
  import { Provider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
@@ -44,11 +46,11 @@ export { __Client };
44
46
  /**
45
47
  * @public
46
48
  */
47
- export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
49
+ export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | CreateKiteChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
48
50
  /**
49
51
  * @public
50
52
  */
51
- export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
53
+ export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | CreateKiteChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
52
54
  /**
53
55
  * @public
54
56
  */
@@ -139,7 +141,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
139
141
  /**
140
142
  * @public
141
143
  */
142
- export type ConversationsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig;
144
+ export type ConversationsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig;
143
145
  /**
144
146
  * @public
145
147
  *
@@ -152,7 +154,7 @@ export interface ConversationsClientConfig extends ConversationsClientConfigType
152
154
  /**
153
155
  * @public
154
156
  */
155
- export type ConversationsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig;
157
+ export type ConversationsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig;
156
158
  /**
157
159
  * @public
158
160
  *
@@ -90,7 +90,7 @@ declare const AddChannelMemberCommand_base: {
90
90
  *
91
91
  * @throws {@link ForbiddenException} (client fault)
92
92
  *
93
- * @throws {@link LimitExceededException} (client fault)
93
+ * @throws {@link RateLimitExceededException} (client fault)
94
94
  *
95
95
  * @throws {@link ConversationsServiceException}
96
96
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -98,7 +98,7 @@ declare const AddChannelMembersCommand_base: {
98
98
  *
99
99
  * @throws {@link ForbiddenException} (client fault)
100
100
  *
101
- * @throws {@link LimitExceededException} (client fault)
101
+ * @throws {@link RateLimitExceededException} (client fault)
102
102
  *
103
103
  * @throws {@link ConversationsServiceException}
104
104
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -142,7 +142,7 @@ declare const CreateGroupChannelCommand_base: {
142
142
  *
143
143
  * @throws {@link ForbiddenException} (client fault)
144
144
  *
145
- * @throws {@link LimitExceededException} (client fault)
145
+ * @throws {@link RateLimitExceededException} (client fault)
146
146
  *
147
147
  * @throws {@link ConversationsServiceException}
148
148
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -0,0 +1,300 @@
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
+ * attachments: [ // MessageAttachmentList
46
+ * { // MessageAttachment
47
+ * id: "STRING_VALUE", // required
48
+ * fsId: "STRING_VALUE", // required
49
+ * mime: "STRING_VALUE",
50
+ * name: "STRING_VALUE", // required
51
+ * size: Number("int"), // required
52
+ * width: Number("int"),
53
+ * height: Number("int"),
54
+ * thumbnail: "STRING_VALUE",
55
+ * },
56
+ * ],
57
+ * quote: { // MessageQuote
58
+ * messageId: "STRING_VALUE", // required
59
+ * channelId: "STRING_VALUE", // required
60
+ * user: { // User
61
+ * id: "STRING_VALUE", // required
62
+ * name: "STRING_VALUE",
63
+ * email: "STRING_VALUE",
64
+ * phone: "STRING_VALUE",
65
+ * picture: "STRING_VALUE",
66
+ * locale: "STRING_VALUE",
67
+ * timeZone: "STRING_VALUE",
68
+ * company: "STRING_VALUE",
69
+ * bot: true || false,
70
+ * pbxDomain: "STRING_VALUE",
71
+ * pbxPort: "STRING_VALUE",
72
+ * pbxExtension: "STRING_VALUE",
73
+ * pbxSerial: "STRING_VALUE",
74
+ * pbxUserId: "STRING_VALUE",
75
+ * createdAt: "STRING_VALUE",
76
+ * updatedAt: "STRING_VALUE",
77
+ * },
78
+ * text: "STRING_VALUE",
79
+ * attachments: [
80
+ * {
81
+ * id: "STRING_VALUE", // required
82
+ * fsId: "STRING_VALUE", // required
83
+ * mime: "STRING_VALUE",
84
+ * name: "STRING_VALUE", // required
85
+ * size: Number("int"), // required
86
+ * width: Number("int"),
87
+ * height: Number("int"),
88
+ * thumbnail: "STRING_VALUE",
89
+ * },
90
+ * ],
91
+ * forward: { // MessageForward
92
+ * forwardCompany: "STRING_VALUE",
93
+ * forwardDate: "STRING_VALUE", // required
94
+ * forwardEmail: "STRING_VALUE",
95
+ * forwardName: "STRING_VALUE",
96
+ * },
97
+ * mentions: [ // UsersList
98
+ * {
99
+ * id: "STRING_VALUE", // required
100
+ * name: "STRING_VALUE",
101
+ * email: "STRING_VALUE",
102
+ * phone: "STRING_VALUE",
103
+ * picture: "STRING_VALUE",
104
+ * locale: "STRING_VALUE",
105
+ * timeZone: "STRING_VALUE",
106
+ * company: "STRING_VALUE",
107
+ * bot: true || false,
108
+ * pbxDomain: "STRING_VALUE",
109
+ * pbxPort: "STRING_VALUE",
110
+ * pbxExtension: "STRING_VALUE",
111
+ * pbxSerial: "STRING_VALUE",
112
+ * pbxUserId: "STRING_VALUE",
113
+ * createdAt: "STRING_VALUE",
114
+ * updatedAt: "STRING_VALUE",
115
+ * },
116
+ * ],
117
+ * giphy: { // MessageGiphy
118
+ * id: "STRING_VALUE", // required
119
+ * size: "STRING_VALUE", // required
120
+ * url: "STRING_VALUE", // required
121
+ * height: "STRING_VALUE", // required
122
+ * width: "STRING_VALUE", // required
123
+ * },
124
+ * createdAt: "STRING_VALUE", // required
125
+ * updatedAt: "STRING_VALUE",
126
+ * },
127
+ * forward: {
128
+ * forwardCompany: "STRING_VALUE",
129
+ * forwardDate: "STRING_VALUE", // required
130
+ * forwardEmail: "STRING_VALUE",
131
+ * forwardName: "STRING_VALUE",
132
+ * },
133
+ * predefinedReplies: [ // MessagePredefinedRepliesList
134
+ * { // MessagePredefinedReply
135
+ * text: "STRING_VALUE", // required
136
+ * label: "STRING_VALUE",
137
+ * },
138
+ * ],
139
+ * type: "regular" || "system", // required
140
+ * giphy: {
141
+ * id: "STRING_VALUE", // required
142
+ * size: "STRING_VALUE", // required
143
+ * url: "STRING_VALUE", // required
144
+ * height: "STRING_VALUE", // required
145
+ * width: "STRING_VALUE", // required
146
+ * },
147
+ * silent: true || false,
148
+ * event: "STRING_VALUE",
149
+ * sms: true || false,
150
+ * smsStatus: "sent" || "delivered" || "trying" || "error",
151
+ * whatsapp: true || false,
152
+ * whatsappStatus: "trying" || "sent" || "delivered" || "error",
153
+ * messageId: "STRING_VALUE", // required
154
+ * user: "<User>", // required
155
+ * },
156
+ * ],
157
+ * initialMessage: { // InitialMessage
158
+ * text: "STRING_VALUE",
159
+ * attachments: "<MessageAttachmentList>",
160
+ * quote: {
161
+ * messageId: "STRING_VALUE", // required
162
+ * channelId: "STRING_VALUE", // required
163
+ * user: "<User>", // required
164
+ * text: "STRING_VALUE",
165
+ * attachments: "<MessageAttachmentList>",
166
+ * forward: {
167
+ * forwardCompany: "STRING_VALUE",
168
+ * forwardDate: "STRING_VALUE", // required
169
+ * forwardEmail: "STRING_VALUE",
170
+ * forwardName: "STRING_VALUE",
171
+ * },
172
+ * mentions: [
173
+ * "<User>",
174
+ * ],
175
+ * giphy: {
176
+ * id: "STRING_VALUE", // required
177
+ * size: "STRING_VALUE", // required
178
+ * url: "STRING_VALUE", // required
179
+ * height: "STRING_VALUE", // required
180
+ * width: "STRING_VALUE", // required
181
+ * },
182
+ * createdAt: "STRING_VALUE", // required
183
+ * updatedAt: "STRING_VALUE",
184
+ * },
185
+ * forward: "<MessageForward>",
186
+ * predefinedReplies: [
187
+ * {
188
+ * text: "STRING_VALUE", // required
189
+ * label: "STRING_VALUE",
190
+ * },
191
+ * ],
192
+ * type: "regular" || "system", // required
193
+ * giphy: "<MessageGiphy>",
194
+ * silent: true || false,
195
+ * event: "STRING_VALUE",
196
+ * sms: true || false,
197
+ * smsStatus: "sent" || "delivered" || "trying" || "error",
198
+ * whatsapp: true || false,
199
+ * whatsappStatus: "trying" || "sent" || "delivered" || "error",
200
+ * messageId: "STRING_VALUE", // required
201
+ * },
202
+ * };
203
+ * const command = new CreateKiteChannelCommand(input);
204
+ * const response = await client.send(command);
205
+ * // { // CreateKiteChannelOutput
206
+ * // channel: { // Channel
207
+ * // subject: "STRING_VALUE",
208
+ * // description: "STRING_VALUE",
209
+ * // picture: "STRING_VALUE",
210
+ * // pictureColor: "STRING_VALUE",
211
+ * // access: "private" || "public",
212
+ * // company: "STRING_VALUE",
213
+ * // context: { // ChannelContext
214
+ * // source: "kite",
215
+ * // target: "STRING_VALUE",
216
+ * // events: [ // ChannelContextEventList
217
+ * // { // ChannelContextEvent
218
+ * // id: "STRING_VALUE",
219
+ * // owner: "STRING_VALUE",
220
+ * // start: "STRING_VALUE",
221
+ * // end: "STRING_VALUE",
222
+ * // summary: "STRING_VALUE",
223
+ * // attendees: [ // ChannelContextEventAttendeeList
224
+ * // { // ChannelContextEventAttendee
225
+ * // email: "STRING_VALUE", // required
226
+ * // name: "STRING_VALUE",
227
+ * // status: "accepted" || "tentative" || "declined" || "none", // required
228
+ * // },
229
+ * // ],
230
+ * // },
231
+ * // ],
232
+ * // },
233
+ * // kite: true || false,
234
+ * // kiteTarget: "STRING_VALUE",
235
+ * // kiteVariant: "STRING_VALUE",
236
+ * // kiteAssign: "STRING_VALUE",
237
+ * // kiteServiceName: "STRING_VALUE",
238
+ * // kiteDefaultSubject: "STRING_VALUE",
239
+ * // service: "STRING_VALUE",
240
+ * // serviceTitle: "STRING_VALUE",
241
+ * // serviceRecipient: "STRING_VALUE",
242
+ * // assignee: { // User
243
+ * // id: "STRING_VALUE", // required
244
+ * // name: "STRING_VALUE",
245
+ * // email: "STRING_VALUE",
246
+ * // phone: "STRING_VALUE",
247
+ * // picture: "STRING_VALUE",
248
+ * // locale: "STRING_VALUE",
249
+ * // timeZone: "STRING_VALUE",
250
+ * // company: "STRING_VALUE",
251
+ * // bot: true || false,
252
+ * // pbxDomain: "STRING_VALUE",
253
+ * // pbxPort: "STRING_VALUE",
254
+ * // pbxExtension: "STRING_VALUE",
255
+ * // pbxSerial: "STRING_VALUE",
256
+ * // pbxUserId: "STRING_VALUE",
257
+ * // createdAt: "STRING_VALUE",
258
+ * // updatedAt: "STRING_VALUE",
259
+ * // },
260
+ * // telephony: true || false,
261
+ * // sms: true || false,
262
+ * // mms: true || false,
263
+ * // whatsapp: true || false,
264
+ * // whatsappStatus: "24h_channel_closed",
265
+ * // broadcast: true || false,
266
+ * // external: true || false,
267
+ * // channelId: "STRING_VALUE", // required
268
+ * // channelType: "direct" || "group", // required
269
+ * // memberCount: Number("int"), // required
270
+ * // createdAt: "STRING_VALUE", // required
271
+ * // createdBy: "STRING_VALUE", // required
272
+ * // updatedAt: "STRING_VALUE",
273
+ * // },
274
+ * // };
275
+ *
276
+ * ```
277
+ *
278
+ * @param CreateKiteChannelCommandInput - {@link CreateKiteChannelCommandInput}
279
+ * @returns {@link CreateKiteChannelCommandOutput}
280
+ * @see {@link CreateKiteChannelCommandInput} for command's `input` shape.
281
+ * @see {@link CreateKiteChannelCommandOutput} for command's `response` shape.
282
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
283
+ *
284
+ * @throws {@link TargetNotFoundException} (client fault)
285
+ *
286
+ * @throws {@link TargetNotEligibleException} (client fault)
287
+ *
288
+ * @throws {@link ValidationException} (client fault)
289
+ *
290
+ * @throws {@link ForbiddenException} (client fault)
291
+ *
292
+ * @throws {@link RateLimitExceededException} (client fault)
293
+ *
294
+ * @throws {@link ConversationsServiceException}
295
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
296
+ *
297
+ * @public
298
+ */
299
+ export declare class CreateKiteChannelCommand extends CreateKiteChannelCommand_base {
300
+ }
@@ -53,7 +53,7 @@ declare const DeleteChannelCommand_base: {
53
53
  *
54
54
  * @throws {@link ForbiddenException} (client fault)
55
55
  *
56
- * @throws {@link LimitExceededException} (client fault)
56
+ * @throws {@link RateLimitExceededException} (client fault)
57
57
  *
58
58
  * @throws {@link ConversationsServiceException}
59
59
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -60,7 +60,7 @@ declare const DeleteChannelMemberCommand_base: {
60
60
  *
61
61
  * @throws {@link ForbiddenException} (client fault)
62
62
  *
63
- * @throws {@link LimitExceededException} (client fault)
63
+ * @throws {@link RateLimitExceededException} (client fault)
64
64
  *
65
65
  * @throws {@link ConversationsServiceException}
66
66
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -59,7 +59,7 @@ declare const DeleteMessageCommand_base: {
59
59
  *
60
60
  * @throws {@link ForbiddenException} (client fault)
61
61
  *
62
- * @throws {@link LimitExceededException} (client fault)
62
+ * @throws {@link RateLimitExceededException} (client fault)
63
63
  *
64
64
  * @throws {@link ConversationsServiceException}
65
65
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -60,7 +60,7 @@ declare const DeleteMessageReactionCommand_base: {
60
60
  *
61
61
  * @throws {@link ForbiddenException} (client fault)
62
62
  *
63
- * @throws {@link LimitExceededException} (client fault)
63
+ * @throws {@link RateLimitExceededException} (client fault)
64
64
  *
65
65
  * @throws {@link ConversationsServiceException}
66
66
  * <p>Base exception class for all service exceptions from Conversations service.</p>