@wildix/xbees-conversations-client 1.0.48 → 1.0.49

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 +29 -0
  3. package/dist-es/models/models_0.js +16 -0
  4. package/dist-es/protocols/Aws_restJson1.js +31 -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 +4 -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 +4 -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 +4 -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 +4 -1
  31. package/dist-types/commands/ScheduleExternalFlagAdjustmentJobCommand.d.ts +4 -1
  32. package/dist-types/commands/SendGiphyCommand.d.ts +4 -1
  33. package/dist-types/commands/SendMessageCommand.d.ts +4 -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 +4 -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 +31 -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",
@@ -1194,6 +1194,9 @@ const de_CommandError = async (output, context) => {
1194
1194
  case "ForbiddenException":
1195
1195
  case "smithy.framework#ForbiddenException":
1196
1196
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
1197
+ case "LimitExceededException":
1198
+ case "smithy.framework#LimitExceededException":
1199
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1197
1200
  case "MemberAlreadyExistException":
1198
1201
  case "wildix.xbees.conversations#MemberAlreadyExistException":
1199
1202
  throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
@@ -1238,6 +1241,24 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
1238
1241
  });
1239
1242
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1240
1243
  };
1244
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1245
+ const contents = (0, smithy_client_1.map)({
1246
+ [_rL]: [, parsedOutput.headers[_xrl]],
1247
+ [_rLR]: [() => void 0 !== parsedOutput.headers[_xrr], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_xrr])],
1248
+ [_rLRa]: [() => void 0 !== parsedOutput.headers[_xrr_], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_xrr_])],
1249
+ [_rA]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
1250
+ });
1251
+ const data = parsedOutput.body;
1252
+ const doc = (0, smithy_client_1.take)(data, {
1253
+ 'message': smithy_client_1.expectString,
1254
+ });
1255
+ Object.assign(contents, doc);
1256
+ const exception = new models_0_1.LimitExceededException({
1257
+ $metadata: deserializeMetadata(parsedOutput),
1258
+ ...contents
1259
+ });
1260
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1261
+ };
1241
1262
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1242
1263
  const contents = (0, smithy_client_1.map)({});
1243
1264
  const data = parsedOutput.body;
@@ -1358,9 +1379,17 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1358
1379
  const _c = "category";
1359
1380
  const _l = "limit";
1360
1381
  const _o = "offset";
1382
+ const _rA = "retryAfter";
1383
+ const _rL = "rateLimit";
1384
+ const _rLR = "rateLimitRemaining";
1385
+ const _rLRa = "rateLimitReset";
1386
+ const _ra = "retry-after";
1361
1387
  const _s = "silent";
1362
1388
  const _u = "user";
1363
1389
  const _uI = "userId";
1390
+ const _xrl = "x-ratelimit-limit";
1391
+ const _xrr = "x-ratelimit-remaining";
1392
+ const _xrr_ = "x-ratelimit-reset";
1364
1393
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
1365
1394
  if (encoded.length) {
1366
1395
  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 = {
@@ -1118,6 +1118,9 @@ const de_CommandError = async (output, context) => {
1118
1118
  case "ForbiddenException":
1119
1119
  case "smithy.framework#ForbiddenException":
1120
1120
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
1121
+ case "LimitExceededException":
1122
+ case "smithy.framework#LimitExceededException":
1123
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1121
1124
  case "MemberAlreadyExistException":
1122
1125
  case "wildix.xbees.conversations#MemberAlreadyExistException":
1123
1126
  throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
@@ -1162,6 +1165,24 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
1162
1165
  });
1163
1166
  return __decorateServiceException(exception, parsedOutput.body);
1164
1167
  };
1168
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1169
+ const contents = map({
1170
+ [_rL]: [, parsedOutput.headers[_xrl]],
1171
+ [_rLR]: [() => void 0 !== parsedOutput.headers[_xrr], () => __strictParseInt32(parsedOutput.headers[_xrr])],
1172
+ [_rLRa]: [() => void 0 !== parsedOutput.headers[_xrr_], () => __strictParseInt32(parsedOutput.headers[_xrr_])],
1173
+ [_rA]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
1174
+ });
1175
+ const data = parsedOutput.body;
1176
+ const doc = take(data, {
1177
+ 'message': __expectString,
1178
+ });
1179
+ Object.assign(contents, doc);
1180
+ const exception = new LimitExceededException({
1181
+ $metadata: deserializeMetadata(parsedOutput),
1182
+ ...contents
1183
+ });
1184
+ return __decorateServiceException(exception, parsedOutput.body);
1185
+ };
1165
1186
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1166
1187
  const contents = map({});
1167
1188
  const data = parsedOutput.body;
@@ -1282,9 +1303,17 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1282
1303
  const _c = "category";
1283
1304
  const _l = "limit";
1284
1305
  const _o = "offset";
1306
+ const _rA = "retryAfter";
1307
+ const _rL = "rateLimit";
1308
+ const _rLR = "rateLimitRemaining";
1309
+ const _rLRa = "rateLimitReset";
1310
+ const _ra = "retry-after";
1285
1311
  const _s = "silent";
1286
1312
  const _u = "user";
1287
1313
  const _uI = "userId";
1314
+ const _xrl = "x-ratelimit-limit";
1315
+ const _xrr = "x-ratelimit-remaining";
1316
+ const _xrr_ = "x-ratelimit-reset";
1288
1317
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
1289
1318
  if (encoded.length) {
1290
1319
  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
  *
@@ -857,6 +858,8 @@ declare const DescribeEventCommand_base: {
857
858
  *
858
859
  * @throws {@link ForbiddenException} (client fault)
859
860
  *
861
+ * @throws {@link LimitExceededException} (client fault)
862
+ *
860
863
  * @throws {@link ConversationsServiceException}
861
864
  * <p>Base exception class for all service exceptions from Conversations service.</p>
862
865
  *
@@ -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
  *
@@ -181,6 +182,8 @@ declare const GetMessageCommand_base: {
181
182
  *
182
183
  * @throws {@link ForbiddenException} (client fault)
183
184
  *
185
+ * @throws {@link LimitExceededException} (client fault)
186
+ *
184
187
  * @throws {@link ConversationsServiceException}
185
188
  * <p>Base exception class for all service exceptions from Conversations service.</p>
186
189
  *
@@ -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
  *
@@ -184,6 +185,8 @@ declare const ListMessagesCommand_base: {
184
185
  *
185
186
  * @throws {@link ForbiddenException} (client fault)
186
187
  *
188
+ * @throws {@link LimitExceededException} (client fault)
189
+ *
187
190
  * @throws {@link ConversationsServiceException}
188
191
  * <p>Base exception class for all service exceptions from Conversations service.</p>
189
192
  *
@@ -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
  *
@@ -277,6 +278,8 @@ declare const PartialUpdateMessageCommand_base: {
277
278
  *
278
279
  * @throws {@link ForbiddenException} (client fault)
279
280
  *
281
+ * @throws {@link LimitExceededException} (client fault)
282
+ *
280
283
  * @throws {@link ConversationsServiceException}
281
284
  * <p>Base exception class for all service exceptions from Conversations service.</p>
282
285
  *
@@ -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
  *
@@ -189,6 +190,8 @@ declare const SendGiphyCommand_base: {
189
190
  *
190
191
  * @throws {@link ForbiddenException} (client fault)
191
192
  *
193
+ * @throws {@link LimitExceededException} (client fault)
194
+ *
192
195
  * @throws {@link ConversationsServiceException}
193
196
  * <p>Base exception class for all service exceptions from Conversations service.</p>
194
197
  *
@@ -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
  *
@@ -274,6 +275,8 @@ declare const SendMessageCommand_base: {
274
275
  *
275
276
  * @throws {@link ForbiddenException} (client fault)
276
277
  *
278
+ * @throws {@link LimitExceededException} (client fault)
279
+ *
277
280
  * @throws {@link ConversationsServiceException}
278
281
  * <p>Base exception class for all service exceptions from Conversations service.</p>
279
282
  *
@@ -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
  *
@@ -275,6 +276,8 @@ declare const UpdateMessageCommand_base: {
275
276
  *
276
277
  * @throws {@link ForbiddenException} (client fault)
277
278
  *
279
+ * @throws {@link LimitExceededException} (client fault)
280
+ *
278
281
  * @throws {@link ConversationsServiceException}
279
282
  * <p>Base exception class for all service exceptions from Conversations service.</p>
280
283
  *
@@ -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
  */
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.49",
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"