@wildix/xbees-conversations-client 1.0.48 → 1.0.50

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 (44) hide show
  1. package/dist-cjs/models/models_0.js +18 -1
  2. package/dist-cjs/protocols/Aws_restJson1.js +31 -0
  3. package/dist-es/models/models_0.js +16 -0
  4. package/dist-es/protocols/Aws_restJson1.js +33 -2
  5. package/dist-types/commands/AddChannelMemberCommand.d.ts +4 -1
  6. package/dist-types/commands/AddChannelMembersCommand.d.ts +4 -1
  7. package/dist-types/commands/CreateGroupChannelCommand.d.ts +4 -1
  8. package/dist-types/commands/DeleteChannelCommand.d.ts +4 -1
  9. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +4 -1
  10. package/dist-types/commands/DeleteMessageCommand.d.ts +4 -1
  11. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +4 -1
  12. package/dist-types/commands/DescribeEventCommand.d.ts +34 -1
  13. package/dist-types/commands/GetChannelCommand.d.ts +4 -1
  14. package/dist-types/commands/GetChannelMemberCommand.d.ts +4 -1
  15. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +4 -1
  16. package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +4 -1
  17. package/dist-types/commands/GetMessageCommand.d.ts +10 -1
  18. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +4 -1
  19. package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +4 -1
  20. package/dist-types/commands/HideChannelCommand.d.ts +4 -1
  21. package/dist-types/commands/InviteCommand.d.ts +4 -1
  22. package/dist-types/commands/JoinChannelCommand.d.ts +4 -1
  23. package/dist-types/commands/LeaveChannelCommand.d.ts +4 -1
  24. package/dist-types/commands/ListChannelMembersCommand.d.ts +4 -1
  25. package/dist-types/commands/ListChannelsCommand.d.ts +4 -1
  26. package/dist-types/commands/ListMessageReactionsCommand.d.ts +4 -1
  27. package/dist-types/commands/ListMessagesCommand.d.ts +10 -1
  28. package/dist-types/commands/MarkReadCommand.d.ts +4 -1
  29. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +4 -1
  30. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +16 -1
  31. package/dist-types/commands/ScheduleExternalFlagAdjustmentJobCommand.d.ts +4 -1
  32. package/dist-types/commands/SendGiphyCommand.d.ts +10 -1
  33. package/dist-types/commands/SendMessageCommand.d.ts +16 -1
  34. package/dist-types/commands/SendMessageReactionCommand.d.ts +4 -1
  35. package/dist-types/commands/SendTypingStartCommand.d.ts +4 -1
  36. package/dist-types/commands/SendTypingStopCommand.d.ts +4 -1
  37. package/dist-types/commands/ShowChannelCommand.d.ts +4 -1
  38. package/dist-types/commands/UpdateChannelCommand.d.ts +4 -1
  39. package/dist-types/commands/UpdateMessageCommand.d.ts +16 -1
  40. package/dist-types/commands/UploadFileCommand.d.ts +4 -1
  41. package/dist-types/index.d.ts +2 -2
  42. package/dist-types/models/ConversationsServiceException.d.ts +2 -1
  43. package/dist-types/models/models_0.d.ts +66 -0
  44. package/package.json +9 -9
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConversationsServiceException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.FileNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.ConversationFileCategory = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ChannelType = exports.ForbiddenException = exports.ValidationException = void 0;
3
+ exports.ConversationsServiceException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.FileNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.ConversationFileCategory = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ChannelType = exports.LimitExceededException = 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) {
@@ -28,6 +28,23 @@ class ForbiddenException extends ConversationsServiceException_1.ConversationsSe
28
28
  }
29
29
  }
30
30
  exports.ForbiddenException = ForbiddenException;
31
+ class LimitExceededException extends ConversationsServiceException_1.ConversationsServiceException {
32
+ constructor(opts) {
33
+ super({
34
+ name: "LimitExceededException",
35
+ $fault: "client",
36
+ ...opts
37
+ });
38
+ this.name = "LimitExceededException";
39
+ this.$fault = "client";
40
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
41
+ this.rateLimit = opts.rateLimit;
42
+ this.rateLimitRemaining = opts.rateLimitRemaining;
43
+ this.rateLimitReset = opts.rateLimitReset;
44
+ this.retryAfter = opts.retryAfter;
45
+ }
46
+ }
47
+ exports.LimitExceededException = LimitExceededException;
31
48
  exports.ChannelType = {
32
49
  DIRECT: "direct",
33
50
  GROUP: "group",
@@ -529,6 +529,7 @@ const se_SendMessageCommand = async (input, context) => {
529
529
  'forward': _ => (0, smithy_client_1._json)(_),
530
530
  'mentions': _ => (0, smithy_client_1._json)(_),
531
531
  'messageId': [],
532
+ 'predefinedReplies': _ => (0, smithy_client_1._json)(_),
532
533
  'quote': _ => (0, smithy_client_1._json)(_),
533
534
  'text': [],
534
535
  }));
@@ -649,6 +650,7 @@ const se_UpdateMessageCommand = async (input, context) => {
649
650
  'attachments': _ => (0, smithy_client_1._json)(_),
650
651
  'forward': _ => (0, smithy_client_1._json)(_),
651
652
  'mentions': _ => (0, smithy_client_1._json)(_),
653
+ 'predefinedReplies': _ => (0, smithy_client_1._json)(_),
652
654
  'quote': _ => (0, smithy_client_1._json)(_),
653
655
  'text': [],
654
656
  }));
@@ -1194,6 +1196,9 @@ const de_CommandError = async (output, context) => {
1194
1196
  case "ForbiddenException":
1195
1197
  case "smithy.framework#ForbiddenException":
1196
1198
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
1199
+ case "LimitExceededException":
1200
+ case "smithy.framework#LimitExceededException":
1201
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1197
1202
  case "MemberAlreadyExistException":
1198
1203
  case "wildix.xbees.conversations#MemberAlreadyExistException":
1199
1204
  throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
@@ -1238,6 +1243,24 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
1238
1243
  });
1239
1244
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1240
1245
  };
1246
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1247
+ const contents = (0, smithy_client_1.map)({
1248
+ [_rL]: [, parsedOutput.headers[_xrl]],
1249
+ [_rLR]: [() => void 0 !== parsedOutput.headers[_xrr], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_xrr])],
1250
+ [_rLRa]: [() => void 0 !== parsedOutput.headers[_xrr_], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_xrr_])],
1251
+ [_rA]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
1252
+ });
1253
+ const data = parsedOutput.body;
1254
+ const doc = (0, smithy_client_1.take)(data, {
1255
+ 'message': smithy_client_1.expectString,
1256
+ });
1257
+ Object.assign(contents, doc);
1258
+ const exception = new models_0_1.LimitExceededException({
1259
+ $metadata: deserializeMetadata(parsedOutput),
1260
+ ...contents
1261
+ });
1262
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1263
+ };
1241
1264
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1242
1265
  const contents = (0, smithy_client_1.map)({});
1243
1266
  const data = parsedOutput.body;
@@ -1358,9 +1381,17 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1358
1381
  const _c = "category";
1359
1382
  const _l = "limit";
1360
1383
  const _o = "offset";
1384
+ const _rA = "retryAfter";
1385
+ const _rL = "rateLimit";
1386
+ const _rLR = "rateLimitRemaining";
1387
+ const _rLRa = "rateLimitReset";
1388
+ const _ra = "retry-after";
1361
1389
  const _s = "silent";
1362
1390
  const _u = "user";
1363
1391
  const _uI = "userId";
1392
+ const _xrl = "x-ratelimit-limit";
1393
+ const _xrr = "x-ratelimit-remaining";
1394
+ const _xrr_ = "x-ratelimit-reset";
1364
1395
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
1365
1396
  if (encoded.length) {
1366
1397
  return JSON.parse(encoded);
@@ -23,6 +23,22 @@ export class ForbiddenException extends __BaseException {
23
23
  Object.setPrototypeOf(this, ForbiddenException.prototype);
24
24
  }
25
25
  }
26
+ export class LimitExceededException extends __BaseException {
27
+ constructor(opts) {
28
+ super({
29
+ name: "LimitExceededException",
30
+ $fault: "client",
31
+ ...opts
32
+ });
33
+ this.name = "LimitExceededException";
34
+ this.$fault = "client";
35
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
36
+ this.rateLimit = opts.rateLimit;
37
+ this.rateLimitRemaining = opts.rateLimitRemaining;
38
+ this.rateLimitReset = opts.rateLimitReset;
39
+ this.retryAfter = opts.retryAfter;
40
+ }
41
+ }
26
42
  export const ChannelType = {
27
43
  DIRECT: "direct",
28
44
  GROUP: "group",
@@ -1,7 +1,7 @@
1
1
  import { ConversationsServiceException as __BaseException } from "../models/ConversationsServiceException";
2
- import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, ValidationException, } from "../models/models_0";
2
+ import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, LimitExceededException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, ValidationException, } from "../models/models_0";
3
3
  import { requestBuilder as rb } from "@smithy/core";
4
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
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) => {
6
6
  const b = rb(input, context);
7
7
  const headers = {
@@ -497,6 +497,7 @@ export const se_SendMessageCommand = async (input, context) => {
497
497
  'forward': _ => _json(_),
498
498
  'mentions': _ => _json(_),
499
499
  'messageId': [],
500
+ 'predefinedReplies': _ => _json(_),
500
501
  'quote': _ => _json(_),
501
502
  'text': [],
502
503
  }));
@@ -611,6 +612,7 @@ export const se_UpdateMessageCommand = async (input, context) => {
611
612
  'attachments': _ => _json(_),
612
613
  'forward': _ => _json(_),
613
614
  'mentions': _ => _json(_),
615
+ 'predefinedReplies': _ => _json(_),
614
616
  'quote': _ => _json(_),
615
617
  'text': [],
616
618
  }));
@@ -1118,6 +1120,9 @@ const de_CommandError = async (output, context) => {
1118
1120
  case "ForbiddenException":
1119
1121
  case "smithy.framework#ForbiddenException":
1120
1122
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
1123
+ case "LimitExceededException":
1124
+ case "smithy.framework#LimitExceededException":
1125
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1121
1126
  case "MemberAlreadyExistException":
1122
1127
  case "wildix.xbees.conversations#MemberAlreadyExistException":
1123
1128
  throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
@@ -1162,6 +1167,24 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
1162
1167
  });
1163
1168
  return __decorateServiceException(exception, parsedOutput.body);
1164
1169
  };
1170
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1171
+ const contents = map({
1172
+ [_rL]: [, parsedOutput.headers[_xrl]],
1173
+ [_rLR]: [() => void 0 !== parsedOutput.headers[_xrr], () => __strictParseInt32(parsedOutput.headers[_xrr])],
1174
+ [_rLRa]: [() => void 0 !== parsedOutput.headers[_xrr_], () => __strictParseInt32(parsedOutput.headers[_xrr_])],
1175
+ [_rA]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
1176
+ });
1177
+ const data = parsedOutput.body;
1178
+ const doc = take(data, {
1179
+ 'message': __expectString,
1180
+ });
1181
+ Object.assign(contents, doc);
1182
+ const exception = new LimitExceededException({
1183
+ $metadata: deserializeMetadata(parsedOutput),
1184
+ ...contents
1185
+ });
1186
+ return __decorateServiceException(exception, parsedOutput.body);
1187
+ };
1165
1188
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1166
1189
  const contents = map({});
1167
1190
  const data = parsedOutput.body;
@@ -1282,9 +1305,17 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1282
1305
  const _c = "category";
1283
1306
  const _l = "limit";
1284
1307
  const _o = "offset";
1308
+ const _rA = "retryAfter";
1309
+ const _rL = "rateLimit";
1310
+ const _rLR = "rateLimitRemaining";
1311
+ const _rLRa = "rateLimitReset";
1312
+ const _ra = "retry-after";
1285
1313
  const _s = "silent";
1286
1314
  const _u = "user";
1287
1315
  const _uI = "userId";
1316
+ const _xrl = "x-ratelimit-limit";
1317
+ const _xrr = "x-ratelimit-remaining";
1318
+ const _xrr_ = "x-ratelimit-reset";
1288
1319
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
1289
1320
  if (encoded.length) {
1290
1321
  return JSON.parse(encoded);
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -89,6 +90,8 @@ declare const AddChannelMemberCommand_base: {
89
90
  *
90
91
  * @throws {@link ForbiddenException} (client fault)
91
92
  *
93
+ * @throws {@link LimitExceededException} (client fault)
94
+ *
92
95
  * @throws {@link ConversationsServiceException}
93
96
  * <p>Base exception class for all service exceptions from Conversations service.</p>
94
97
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -97,6 +98,8 @@ declare const AddChannelMembersCommand_base: {
97
98
  *
98
99
  * @throws {@link ForbiddenException} (client fault)
99
100
  *
101
+ * @throws {@link LimitExceededException} (client fault)
102
+ *
100
103
  * @throws {@link ConversationsServiceException}
101
104
  * <p>Base exception class for all service exceptions from Conversations service.</p>
102
105
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -141,6 +142,8 @@ declare const CreateGroupChannelCommand_base: {
141
142
  *
142
143
  * @throws {@link ForbiddenException} (client fault)
143
144
  *
145
+ * @throws {@link LimitExceededException} (client fault)
146
+ *
144
147
  * @throws {@link ConversationsServiceException}
145
148
  * <p>Base exception class for all service exceptions from Conversations service.</p>
146
149
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -52,6 +53,8 @@ declare const DeleteChannelCommand_base: {
52
53
  *
53
54
  * @throws {@link ForbiddenException} (client fault)
54
55
  *
56
+ * @throws {@link LimitExceededException} (client fault)
57
+ *
55
58
  * @throws {@link ConversationsServiceException}
56
59
  * <p>Base exception class for all service exceptions from Conversations service.</p>
57
60
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -59,6 +60,8 @@ declare const DeleteChannelMemberCommand_base: {
59
60
  *
60
61
  * @throws {@link ForbiddenException} (client fault)
61
62
  *
63
+ * @throws {@link LimitExceededException} (client fault)
64
+ *
62
65
  * @throws {@link ConversationsServiceException}
63
66
  * <p>Base exception class for all service exceptions from Conversations service.</p>
64
67
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -58,6 +59,8 @@ declare const DeleteMessageCommand_base: {
58
59
  *
59
60
  * @throws {@link ForbiddenException} (client fault)
60
61
  *
62
+ * @throws {@link LimitExceededException} (client fault)
63
+ *
61
64
  * @throws {@link ConversationsServiceException}
62
65
  * <p>Base exception class for all service exceptions from Conversations service.</p>
63
66
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -59,6 +60,8 @@ declare const DeleteMessageReactionCommand_base: {
59
60
  *
60
61
  * @throws {@link ForbiddenException} (client fault)
61
62
  *
63
+ * @throws {@link LimitExceededException} (client fault)
64
+ *
62
65
  * @throws {@link ConversationsServiceException}
63
66
  * <p>Base exception class for all service exceptions from Conversations service.</p>
64
67
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -524,6 +525,12 @@ declare const DescribeEventCommand_base: {
524
525
  * // forwardEmail: "STRING_VALUE",
525
526
  * // forwardName: "STRING_VALUE",
526
527
  * // },
528
+ * // predefinedReplies: [ // MessagePredefinedRepliesList
529
+ * // { // MessagePredefinedReply
530
+ * // text: "STRING_VALUE", // required
531
+ * // label: "STRING_VALUE",
532
+ * // },
533
+ * // ],
527
534
  * // type: "regular" || "system", // required
528
535
  * // giphy: {
529
536
  * // id: "STRING_VALUE",
@@ -622,6 +629,12 @@ declare const DescribeEventCommand_base: {
622
629
  * // forwardEmail: "STRING_VALUE",
623
630
  * // forwardName: "STRING_VALUE",
624
631
  * // },
632
+ * // predefinedReplies: [
633
+ * // {
634
+ * // text: "STRING_VALUE", // required
635
+ * // label: "STRING_VALUE",
636
+ * // },
637
+ * // ],
625
638
  * // type: "regular" || "system", // required
626
639
  * // giphy: {
627
640
  * // id: "STRING_VALUE",
@@ -704,6 +717,12 @@ declare const DescribeEventCommand_base: {
704
717
  * // updatedAt: "STRING_VALUE",
705
718
  * // },
706
719
  * // forward: "<MessageForward>",
720
+ * // predefinedReplies: [
721
+ * // {
722
+ * // text: "STRING_VALUE", // required
723
+ * // label: "STRING_VALUE",
724
+ * // },
725
+ * // ],
707
726
  * // type: "regular" || "system", // required
708
727
  * // giphy: "<MessageGiphy>",
709
728
  * // silent: true || false,
@@ -758,6 +777,12 @@ declare const DescribeEventCommand_base: {
758
777
  * // updatedAt: "STRING_VALUE",
759
778
  * // },
760
779
  * // forward: "<MessageForward>",
780
+ * // predefinedReplies: [
781
+ * // {
782
+ * // text: "STRING_VALUE", // required
783
+ * // label: "STRING_VALUE",
784
+ * // },
785
+ * // ],
761
786
  * // type: "regular" || "system", // required
762
787
  * // giphy: "<MessageGiphy>",
763
788
  * // silent: true || false,
@@ -818,6 +843,12 @@ declare const DescribeEventCommand_base: {
818
843
  * // updatedAt: "STRING_VALUE",
819
844
  * // },
820
845
  * // forward: "<MessageForward>",
846
+ * // predefinedReplies: [
847
+ * // {
848
+ * // text: "STRING_VALUE", // required
849
+ * // label: "STRING_VALUE",
850
+ * // },
851
+ * // ],
821
852
  * // type: "regular" || "system", // required
822
853
  * // giphy: "<MessageGiphy>",
823
854
  * // silent: true || false,
@@ -857,6 +888,8 @@ declare const DescribeEventCommand_base: {
857
888
  *
858
889
  * @throws {@link ForbiddenException} (client fault)
859
890
  *
891
+ * @throws {@link LimitExceededException} (client fault)
892
+ *
860
893
  * @throws {@link ConversationsServiceException}
861
894
  * <p>Base exception class for all service exceptions from Conversations service.</p>
862
895
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -123,6 +124,8 @@ declare const GetChannelCommand_base: {
123
124
  *
124
125
  * @throws {@link ForbiddenException} (client fault)
125
126
  *
127
+ * @throws {@link LimitExceededException} (client fault)
128
+ *
126
129
  * @throws {@link ConversationsServiceException}
127
130
  * <p>Base exception class for all service exceptions from Conversations service.</p>
128
131
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -81,6 +82,8 @@ declare const GetChannelMemberCommand_base: {
81
82
  *
82
83
  * @throws {@link ForbiddenException} (client fault)
83
84
  *
85
+ * @throws {@link LimitExceededException} (client fault)
86
+ *
84
87
  * @throws {@link ConversationsServiceException}
85
88
  * <p>Base exception class for all service exceptions from Conversations service.</p>
86
89
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -61,6 +62,8 @@ declare const GetDirectChannelIdCommand_base: {
61
62
  *
62
63
  * @throws {@link ValidationException} (client fault)
63
64
  *
65
+ * @throws {@link LimitExceededException} (client fault)
66
+ *
64
67
  * @throws {@link ConversationsServiceException}
65
68
  * <p>Base exception class for all service exceptions from Conversations service.</p>
66
69
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -63,6 +64,8 @@ declare const GetFilePresignedDownloadUrlCommand_base: {
63
64
  *
64
65
  * @throws {@link ValidationException} (client fault)
65
66
  *
67
+ * @throws {@link LimitExceededException} (client fault)
68
+ *
66
69
  * @throws {@link ConversationsServiceException}
67
70
  * <p>Base exception class for all service exceptions from Conversations service.</p>
68
71
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -130,6 +131,12 @@ declare const GetMessageCommand_base: {
130
131
  * // forwardEmail: "STRING_VALUE",
131
132
  * // forwardName: "STRING_VALUE",
132
133
  * // },
134
+ * // predefinedReplies: [ // MessagePredefinedRepliesList
135
+ * // { // MessagePredefinedReply
136
+ * // text: "STRING_VALUE", // required
137
+ * // label: "STRING_VALUE",
138
+ * // },
139
+ * // ],
133
140
  * // type: "regular" || "system", // required
134
141
  * // giphy: {
135
142
  * // id: "STRING_VALUE",
@@ -181,6 +188,8 @@ declare const GetMessageCommand_base: {
181
188
  *
182
189
  * @throws {@link ForbiddenException} (client fault)
183
190
  *
191
+ * @throws {@link LimitExceededException} (client fault)
192
+ *
184
193
  * @throws {@link ConversationsServiceException}
185
194
  * <p>Base exception class for all service exceptions from Conversations service.</p>
186
195
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -128,6 +129,8 @@ declare const GetOrCreateDirectChannelCommand_base: {
128
129
  *
129
130
  * @throws {@link ForbiddenException} (client fault)
130
131
  *
132
+ * @throws {@link LimitExceededException} (client fault)
133
+ *
131
134
  * @throws {@link ConversationsServiceException}
132
135
  * <p>Base exception class for all service exceptions from Conversations service.</p>
133
136
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -69,6 +70,8 @@ declare const GetUploadedFileInfoCommand_base: {
69
70
  *
70
71
  * @throws {@link ForbiddenException} (client fault)
71
72
  *
73
+ * @throws {@link LimitExceededException} (client fault)
74
+ *
72
75
  * @throws {@link ConversationsServiceException}
73
76
  * <p>Base exception class for all service exceptions from Conversations service.</p>
74
77
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -55,6 +56,8 @@ declare const HideChannelCommand_base: {
55
56
  *
56
57
  * @throws {@link ValidationException} (client fault)
57
58
  *
59
+ * @throws {@link LimitExceededException} (client fault)
60
+ *
58
61
  * @throws {@link ConversationsServiceException}
59
62
  * <p>Base exception class for all service exceptions from Conversations service.</p>
60
63
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -80,6 +81,8 @@ declare const InviteCommand_base: {
80
81
  *
81
82
  * @throws {@link ForbiddenException} (client fault)
82
83
  *
84
+ * @throws {@link LimitExceededException} (client fault)
85
+ *
83
86
  * @throws {@link ConversationsServiceException}
84
87
  * <p>Base exception class for all service exceptions from Conversations service.</p>
85
88
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -125,6 +126,8 @@ declare const JoinChannelCommand_base: {
125
126
  *
126
127
  * @throws {@link ValidationException} (client fault)
127
128
  *
129
+ * @throws {@link LimitExceededException} (client fault)
130
+ *
128
131
  * @throws {@link ConversationsServiceException}
129
132
  * <p>Base exception class for all service exceptions from Conversations service.</p>
130
133
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -56,6 +57,8 @@ declare const LeaveChannelCommand_base: {
56
57
  *
57
58
  * @throws {@link ValidationException} (client fault)
58
59
  *
60
+ * @throws {@link LimitExceededException} (client fault)
61
+ *
59
62
  * @throws {@link ConversationsServiceException}
60
63
  * <p>Base exception class for all service exceptions from Conversations service.</p>
61
64
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -84,6 +85,8 @@ declare const ListChannelMembersCommand_base: {
84
85
  *
85
86
  * @throws {@link ForbiddenException} (client fault)
86
87
  *
88
+ * @throws {@link LimitExceededException} (client fault)
89
+ *
87
90
  * @throws {@link ConversationsServiceException}
88
91
  * <p>Base exception class for all service exceptions from Conversations service.</p>
89
92
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -125,6 +126,8 @@ declare const ListChannelsCommand_base: {
125
126
  *
126
127
  * @throws {@link ForbiddenException} (client fault)
127
128
  *
129
+ * @throws {@link LimitExceededException} (client fault)
130
+ *
128
131
  * @throws {@link ConversationsServiceException}
129
132
  * <p>Base exception class for all service exceptions from Conversations service.</p>
130
133
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -83,6 +84,8 @@ declare const ListMessageReactionsCommand_base: {
83
84
  *
84
85
  * @throws {@link ForbiddenException} (client fault)
85
86
  *
87
+ * @throws {@link LimitExceededException} (client fault)
88
+ *
86
89
  * @throws {@link ConversationsServiceException}
87
90
  * <p>Base exception class for all service exceptions from Conversations service.</p>
88
91
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -132,6 +133,12 @@ declare const ListMessagesCommand_base: {
132
133
  * // forwardEmail: "STRING_VALUE",
133
134
  * // forwardName: "STRING_VALUE",
134
135
  * // },
136
+ * // predefinedReplies: [ // MessagePredefinedRepliesList
137
+ * // { // MessagePredefinedReply
138
+ * // text: "STRING_VALUE", // required
139
+ * // label: "STRING_VALUE",
140
+ * // },
141
+ * // ],
135
142
  * // type: "regular" || "system", // required
136
143
  * // giphy: {
137
144
  * // id: "STRING_VALUE",
@@ -184,6 +191,8 @@ declare const ListMessagesCommand_base: {
184
191
  *
185
192
  * @throws {@link ForbiddenException} (client fault)
186
193
  *
194
+ * @throws {@link LimitExceededException} (client fault)
195
+ *
187
196
  * @throws {@link ConversationsServiceException}
188
197
  * <p>Base exception class for all service exceptions from Conversations service.</p>
189
198
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -55,6 +56,8 @@ declare const MarkReadCommand_base: {
55
56
  *
56
57
  * @throws {@link ForbiddenException} (client fault)
57
58
  *
59
+ * @throws {@link LimitExceededException} (client fault)
60
+ *
58
61
  * @throws {@link ConversationsServiceException}
59
62
  * <p>Base exception class for all service exceptions from Conversations service.</p>
60
63
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -136,6 +137,8 @@ declare const PartialUpdateChannelCommand_base: {
136
137
  *
137
138
  * @throws {@link ForbiddenException} (client fault)
138
139
  *
140
+ * @throws {@link LimitExceededException} (client fault)
141
+ *
139
142
  * @throws {@link ConversationsServiceException}
140
143
  * <p>Base exception class for all service exceptions from Conversations service.</p>
141
144
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -126,6 +127,12 @@ declare const PartialUpdateMessageCommand_base: {
126
127
  * forwardEmail: "STRING_VALUE",
127
128
  * forwardName: "STRING_VALUE",
128
129
  * },
130
+ * predefinedReplies: [ // MessagePredefinedRepliesList
131
+ * { // MessagePredefinedReply
132
+ * text: "STRING_VALUE", // required
133
+ * label: "STRING_VALUE",
134
+ * },
135
+ * ],
129
136
  * },
130
137
  * unset: [ // MessageUnsetFieldsList
131
138
  * "text" || "attachments" || "quote" || "forward",
@@ -224,6 +231,12 @@ declare const PartialUpdateMessageCommand_base: {
224
231
  * // forwardEmail: "STRING_VALUE",
225
232
  * // forwardName: "STRING_VALUE",
226
233
  * // },
234
+ * // predefinedReplies: [ // MessagePredefinedRepliesList
235
+ * // { // MessagePredefinedReply
236
+ * // text: "STRING_VALUE", // required
237
+ * // label: "STRING_VALUE",
238
+ * // },
239
+ * // ],
227
240
  * // type: "regular" || "system", // required
228
241
  * // giphy: {
229
242
  * // id: "STRING_VALUE",
@@ -277,6 +290,8 @@ declare const PartialUpdateMessageCommand_base: {
277
290
  *
278
291
  * @throws {@link ForbiddenException} (client fault)
279
292
  *
293
+ * @throws {@link LimitExceededException} (client fault)
294
+ *
280
295
  * @throws {@link ConversationsServiceException}
281
296
  * <p>Base exception class for all service exceptions from Conversations service.</p>
282
297
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -54,6 +55,8 @@ declare const ScheduleExternalFlagAdjustmentJobCommand_base: {
54
55
  *
55
56
  * @throws {@link ValidationException} (client fault)
56
57
  *
58
+ * @throws {@link LimitExceededException} (client fault)
59
+ *
57
60
  * @throws {@link ConversationsServiceException}
58
61
  * <p>Base exception class for all service exceptions from Conversations service.</p>
59
62
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -138,6 +139,12 @@ declare const SendGiphyCommand_base: {
138
139
  * // forwardEmail: "STRING_VALUE",
139
140
  * // forwardName: "STRING_VALUE",
140
141
  * // },
142
+ * // predefinedReplies: [ // MessagePredefinedRepliesList
143
+ * // { // MessagePredefinedReply
144
+ * // text: "STRING_VALUE", // required
145
+ * // label: "STRING_VALUE",
146
+ * // },
147
+ * // ],
141
148
  * // type: "regular" || "system", // required
142
149
  * // giphy: {
143
150
  * // id: "STRING_VALUE",
@@ -189,6 +196,8 @@ declare const SendGiphyCommand_base: {
189
196
  *
190
197
  * @throws {@link ForbiddenException} (client fault)
191
198
  *
199
+ * @throws {@link LimitExceededException} (client fault)
200
+ *
192
201
  * @throws {@link ConversationsServiceException}
193
202
  * <p>Base exception class for all service exceptions from Conversations service.</p>
194
203
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -123,6 +124,12 @@ declare const SendMessageCommand_base: {
123
124
  * forwardEmail: "STRING_VALUE",
124
125
  * forwardName: "STRING_VALUE",
125
126
  * },
127
+ * predefinedReplies: [ // MessagePredefinedRepliesList
128
+ * { // MessagePredefinedReply
129
+ * text: "STRING_VALUE", // required
130
+ * label: "STRING_VALUE",
131
+ * },
132
+ * ],
126
133
  * channelId: "STRING_VALUE", // required
127
134
  * userId: "STRING_VALUE",
128
135
  * messageId: "STRING_VALUE",
@@ -223,6 +230,12 @@ declare const SendMessageCommand_base: {
223
230
  * // forwardEmail: "STRING_VALUE",
224
231
  * // forwardName: "STRING_VALUE",
225
232
  * // },
233
+ * // predefinedReplies: [ // MessagePredefinedRepliesList
234
+ * // { // MessagePredefinedReply
235
+ * // text: "STRING_VALUE", // required
236
+ * // label: "STRING_VALUE",
237
+ * // },
238
+ * // ],
226
239
  * // type: "regular" || "system", // required
227
240
  * // giphy: {
228
241
  * // id: "STRING_VALUE",
@@ -274,6 +287,8 @@ declare const SendMessageCommand_base: {
274
287
  *
275
288
  * @throws {@link ForbiddenException} (client fault)
276
289
  *
290
+ * @throws {@link LimitExceededException} (client fault)
291
+ *
277
292
  * @throws {@link ConversationsServiceException}
278
293
  * <p>Base exception class for all service exceptions from Conversations service.</p>
279
294
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -57,6 +58,8 @@ declare const SendMessageReactionCommand_base: {
57
58
  *
58
59
  * @throws {@link ForbiddenException} (client fault)
59
60
  *
61
+ * @throws {@link LimitExceededException} (client fault)
62
+ *
60
63
  * @throws {@link ConversationsServiceException}
61
64
  * <p>Base exception class for all service exceptions from Conversations service.</p>
62
65
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -55,6 +56,8 @@ declare const SendTypingStartCommand_base: {
55
56
  *
56
57
  * @throws {@link ForbiddenException} (client fault)
57
58
  *
59
+ * @throws {@link LimitExceededException} (client fault)
60
+ *
58
61
  * @throws {@link ConversationsServiceException}
59
62
  * <p>Base exception class for all service exceptions from Conversations service.</p>
60
63
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -55,6 +56,8 @@ declare const SendTypingStopCommand_base: {
55
56
  *
56
57
  * @throws {@link ForbiddenException} (client fault)
57
58
  *
59
+ * @throws {@link LimitExceededException} (client fault)
60
+ *
58
61
  * @throws {@link ConversationsServiceException}
59
62
  * <p>Base exception class for all service exceptions from Conversations service.</p>
60
63
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -55,6 +56,8 @@ declare const ShowChannelCommand_base: {
55
56
  *
56
57
  * @throws {@link ValidationException} (client fault)
57
58
  *
59
+ * @throws {@link LimitExceededException} (client fault)
60
+ *
58
61
  * @throws {@link ConversationsServiceException}
59
62
  * <p>Base exception class for all service exceptions from Conversations service.</p>
60
63
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -131,6 +132,8 @@ declare const UpdateChannelCommand_base: {
131
132
  *
132
133
  * @throws {@link ForbiddenException} (client fault)
133
134
  *
135
+ * @throws {@link LimitExceededException} (client fault)
136
+ *
134
137
  * @throws {@link ConversationsServiceException}
135
138
  * <p>Base exception class for all service exceptions from Conversations service.</p>
136
139
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -123,6 +124,12 @@ declare const UpdateMessageCommand_base: {
123
124
  * forwardEmail: "STRING_VALUE",
124
125
  * forwardName: "STRING_VALUE",
125
126
  * },
127
+ * predefinedReplies: [ // MessagePredefinedRepliesList
128
+ * { // MessagePredefinedReply
129
+ * text: "STRING_VALUE", // required
130
+ * label: "STRING_VALUE",
131
+ * },
132
+ * ],
126
133
  * channelId: "STRING_VALUE", // required
127
134
  * messageId: "STRING_VALUE", // required
128
135
  * mentions: [ // UsersIdList
@@ -222,6 +229,12 @@ declare const UpdateMessageCommand_base: {
222
229
  * // forwardEmail: "STRING_VALUE",
223
230
  * // forwardName: "STRING_VALUE",
224
231
  * // },
232
+ * // predefinedReplies: [ // MessagePredefinedRepliesList
233
+ * // { // MessagePredefinedReply
234
+ * // text: "STRING_VALUE", // required
235
+ * // label: "STRING_VALUE",
236
+ * // },
237
+ * // ],
225
238
  * // type: "regular" || "system", // required
226
239
  * // giphy: {
227
240
  * // id: "STRING_VALUE",
@@ -275,6 +288,8 @@ declare const UpdateMessageCommand_base: {
275
288
  *
276
289
  * @throws {@link ForbiddenException} (client fault)
277
290
  *
291
+ * @throws {@link LimitExceededException} (client fault)
292
+ *
278
293
  * @throws {@link ConversationsServiceException}
279
294
  * <p>Base exception class for all service exceptions from Conversations service.</p>
280
295
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -65,6 +66,8 @@ declare const UploadFileCommand_base: {
65
66
  *
66
67
  * @throws {@link ForbiddenException} (client fault)
67
68
  *
69
+ * @throws {@link LimitExceededException} (client fault)
70
+ *
68
71
  * @throws {@link ConversationsServiceException}
69
72
  * <p>Base exception class for all service exceptions from Conversations service.</p>
70
73
  *
@@ -1,7 +1,7 @@
1
1
  export * from "./ConversationsClient";
2
2
  export * from "./Conversations";
3
- export { RuntimeExtension } from "./runtimeExtensions";
4
- export { ConversationsExtensionConfiguration } from "./extensionConfiguration";
3
+ export type { RuntimeExtension } from "./runtimeExtensions";
4
+ export type { ConversationsExtensionConfiguration } from "./extensionConfiguration";
5
5
  export * from "./commands";
6
6
  export * from "./models";
7
7
  export { ConversationsServiceException } from "./models/ConversationsServiceException";
@@ -1,5 +1,6 @@
1
1
  import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
2
- export { __ServiceException, __ServiceExceptionOptions };
2
+ export type { __ServiceExceptionOptions };
3
+ export { __ServiceException };
3
4
  /**
4
5
  * @public
5
6
  *
@@ -22,6 +22,37 @@ export declare class ForbiddenException extends __BaseException {
22
22
  */
23
23
  constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
24
24
  }
25
+ /**
26
+ * @public
27
+ */
28
+ export declare class LimitExceededException extends __BaseException {
29
+ readonly name: "LimitExceededException";
30
+ readonly $fault: "client";
31
+ /**
32
+ * Displays the applicable rate limits for the current request.
33
+ * @public
34
+ */
35
+ rateLimit?: string;
36
+ /**
37
+ * Indicates how many requests a user can still make within the current time window.
38
+ * @public
39
+ */
40
+ rateLimitRemaining?: number;
41
+ /**
42
+ * Shows the time in seconds until the rate limit resets.
43
+ * @public
44
+ */
45
+ rateLimitReset?: number;
46
+ /**
47
+ * Displays how many seconds the user agent should wait before making a follow-up request.
48
+ * @public
49
+ */
50
+ retryAfter?: number;
51
+ /**
52
+ * @internal
53
+ */
54
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
55
+ }
25
56
  /**
26
57
  * @public
27
58
  */
@@ -672,6 +703,21 @@ export interface Reaction {
672
703
  messageId?: string;
673
704
  user?: User;
674
705
  }
706
+ /**
707
+ * @public
708
+ */
709
+ export interface MessagePredefinedReply {
710
+ /**
711
+ * Text that will be sent to the user; clicking the text will trigger sending this message.
712
+ * @public
713
+ */
714
+ text: string;
715
+ /**
716
+ * Label that will appear on the reply button; if no label is provided, the text will be used.
717
+ * @public
718
+ */
719
+ label?: string;
720
+ }
675
721
  /**
676
722
  * @public
677
723
  */
@@ -735,6 +781,11 @@ export interface Message {
735
781
  attachments?: (MessageAttachment)[];
736
782
  quote?: MessageQuote;
737
783
  forward?: MessageForward;
784
+ /**
785
+ * A list of predefined replies will be visible to the user receiving the message. Once the user clicks on a reply, the system will automatically send the specified message to the conversation. You can specify up to 10 replies, which will only be visible if the message is the last one in the conversation.
786
+ * @public
787
+ */
788
+ predefinedReplies?: (MessagePredefinedReply)[];
738
789
  type: MessageType;
739
790
  giphy?: MessageGiphy;
740
791
  silent?: boolean;
@@ -1378,6 +1429,11 @@ export interface PartialUpdateMessageSetInput {
1378
1429
  attachments?: (MessageAttachment)[];
1379
1430
  quote?: MessageQuote;
1380
1431
  forward?: MessageForward;
1432
+ /**
1433
+ * A list of predefined replies will be visible to the user receiving the message. Once the user clicks on a reply, the system will automatically send the specified message to the conversation. You can specify up to 10 replies, which will only be visible if the message is the last one in the conversation.
1434
+ * @public
1435
+ */
1436
+ predefinedReplies?: (MessagePredefinedReply)[];
1381
1437
  }
1382
1438
  /**
1383
1439
  * @public
@@ -1489,6 +1545,11 @@ export interface SendMessageInput {
1489
1545
  attachments?: (MessageAttachment)[];
1490
1546
  quote?: MessageQuote;
1491
1547
  forward?: MessageForward;
1548
+ /**
1549
+ * A list of predefined replies will be visible to the user receiving the message. Once the user clicks on a reply, the system will automatically send the specified message to the conversation. You can specify up to 10 replies, which will only be visible if the message is the last one in the conversation.
1550
+ * @public
1551
+ */
1552
+ predefinedReplies?: (MessagePredefinedReply)[];
1492
1553
  /**
1493
1554
  * The unique identifier of the channel to which the message is sent.
1494
1555
  * @public
@@ -1670,6 +1731,11 @@ export interface UpdateMessageInput {
1670
1731
  attachments?: (MessageAttachment)[];
1671
1732
  quote?: MessageQuote;
1672
1733
  forward?: MessageForward;
1734
+ /**
1735
+ * A list of predefined replies will be visible to the user receiving the message. Once the user clicks on a reply, the system will automatically send the specified message to the conversation. You can specify up to 10 replies, which will only be visible if the message is the last one in the conversation.
1736
+ * @public
1737
+ */
1738
+ predefinedReplies?: (MessagePredefinedReply)[];
1673
1739
  /**
1674
1740
  * The unique identifier of the channel containing the message.
1675
1741
  * @public
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.0.48",
4
+ "version": "1.0.50",
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",
@@ -22,27 +22,27 @@
22
22
  "@aws-sdk/middleware-user-agent": "3.587.0",
23
23
  "@aws-sdk/types": "latest",
24
24
  "@aws-sdk/util-user-agent-browser": "3.577.0",
25
- "@aws-sdk/util-user-agent-node": "3.577.0",
26
- "@smithy/config-resolver": "^3.0.0",
27
- "@smithy/core": "^2.0.1",
25
+ "@aws-sdk/util-user-agent-node": "3.587.0",
26
+ "@smithy/config-resolver": "^3.0.1",
27
+ "@smithy/core": "^2.2.0",
28
28
  "@smithy/fetch-http-handler": "^3.0.1",
29
29
  "@smithy/hash-node": "^3.0.0",
30
30
  "@smithy/invalid-dependency": "^3.0.0",
31
31
  "@smithy/middleware-content-length": "^3.0.0",
32
- "@smithy/middleware-retry": "^3.0.1",
32
+ "@smithy/middleware-retry": "^3.0.3",
33
33
  "@smithy/middleware-serde": "^3.0.0",
34
34
  "@smithy/middleware-stack": "^3.0.0",
35
- "@smithy/node-config-provider": "^3.0.0",
35
+ "@smithy/node-config-provider": "^3.1.0",
36
36
  "@smithy/node-http-handler": "^3.0.0",
37
37
  "@smithy/protocol-http": "^4.0.0",
38
- "@smithy/smithy-client": "^3.0.1",
38
+ "@smithy/smithy-client": "^3.1.1",
39
39
  "@smithy/types": "^3.0.0",
40
40
  "@smithy/url-parser": "^3.0.0",
41
41
  "@smithy/util-base64": "^3.0.0",
42
42
  "@smithy/util-body-length-browser": "^3.0.0",
43
43
  "@smithy/util-body-length-node": "^3.0.0",
44
- "@smithy/util-defaults-mode-browser": "^3.0.1",
45
- "@smithy/util-defaults-mode-node": "^3.0.1",
44
+ "@smithy/util-defaults-mode-browser": "^3.0.3",
45
+ "@smithy/util-defaults-mode-node": "^3.0.3",
46
46
  "@smithy/util-retry": "^3.0.0",
47
47
  "@smithy/util-utf8": "^3.0.0",
48
48
  "@wildix/smithy-utils": "^1.0.2"