@wildix/xbees-conversations-client 1.0.53 → 1.0.55

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 (48) hide show
  1. package/dist-cjs/ConversationsClient.js +7 -2
  2. package/dist-cjs/models/models_0.js +6 -6
  3. package/dist-cjs/protocols/Aws_restJson1.js +9 -5
  4. package/dist-es/ConversationsClient.js +7 -2
  5. package/dist-es/models/models_0.js +4 -4
  6. package/dist-es/protocols/Aws_restJson1.js +10 -6
  7. package/dist-types/ConversationsClient.d.ts +3 -2
  8. package/dist-types/commands/AddChannelMemberCommand.d.ts +1 -1
  9. package/dist-types/commands/AddChannelMembersCommand.d.ts +1 -1
  10. package/dist-types/commands/CreateGroupChannelCommand.d.ts +1 -1
  11. package/dist-types/commands/DeleteChannelCommand.d.ts +1 -1
  12. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +1 -1
  13. package/dist-types/commands/DeleteMessageCommand.d.ts +1 -1
  14. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +1 -1
  15. package/dist-types/commands/DescribeEventCommand.d.ts +1 -1
  16. package/dist-types/commands/GetChannelCommand.d.ts +1 -1
  17. package/dist-types/commands/GetChannelMemberCommand.d.ts +1 -1
  18. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +1 -1
  19. package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +1 -1
  20. package/dist-types/commands/GetMessageCommand.d.ts +1 -1
  21. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +1 -1
  22. package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +1 -1
  23. package/dist-types/commands/HideChannelCommand.d.ts +1 -1
  24. package/dist-types/commands/InviteCommand.d.ts +1 -1
  25. package/dist-types/commands/JoinChannelCommand.d.ts +1 -1
  26. package/dist-types/commands/LeaveChannelCommand.d.ts +1 -1
  27. package/dist-types/commands/ListChannelMembersCommand.d.ts +1 -1
  28. package/dist-types/commands/ListChannelsCommand.d.ts +1 -1
  29. package/dist-types/commands/ListMessageReactionsCommand.d.ts +1 -1
  30. package/dist-types/commands/ListMessagesCommand.d.ts +1 -1
  31. package/dist-types/commands/MarkReadCommand.d.ts +1 -1
  32. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +1 -1
  33. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +1 -1
  34. package/dist-types/commands/ScheduleExternalFlagAdjustmentJobCommand.d.ts +1 -1
  35. package/dist-types/commands/SendGiphyCommand.d.ts +1 -1
  36. package/dist-types/commands/SendMessageCommand.d.ts +1 -1
  37. package/dist-types/commands/SendMessageReactionCommand.d.ts +1 -1
  38. package/dist-types/commands/SendTypingStartCommand.d.ts +1 -1
  39. package/dist-types/commands/SendTypingStopCommand.d.ts +1 -1
  40. package/dist-types/commands/ShowChannelCommand.d.ts +1 -1
  41. package/dist-types/commands/UpdateChannelCommand.d.ts +1 -1
  42. package/dist-types/commands/UpdateMessageCommand.d.ts +1 -1
  43. package/dist-types/commands/UploadFileCommand.d.ts +2 -2
  44. package/dist-types/models/models_0.d.ts +8 -8
  45. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  46. package/dist-types/runtimeConfig.d.ts +1 -0
  47. package/dist-types/runtimeConfig.native.d.ts +1 -0
  48. package/package.json +1 -1
@@ -4,6 +4,8 @@ exports.ConversationsClient = exports.__Client = void 0;
4
4
  const runtimeConfig_1 = require("./runtimeConfig");
5
5
  const runtimeExtensions_1 = require("./runtimeExtensions");
6
6
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
7
+ const middleware_content_length_1 = require("@smithy/middleware-content-length");
8
+ const middleware_retry_1 = require("@smithy/middleware-retry");
7
9
  const smithy_client_1 = require("@smithy/smithy-client");
8
10
  Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
9
11
  const smithy_utils_1 = require("@wildix/smithy-utils");
@@ -11,7 +13,8 @@ class ConversationsClient extends smithy_client_1.Client {
11
13
  constructor(...[configuration]) {
12
14
  let _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
13
15
  let _config_1 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_0);
14
- let _config_2 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_1, configuration?.extensions || []);
16
+ let _config_2 = (0, middleware_retry_1.resolveRetryConfig)(_config_1);
17
+ let _config_3 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_2, configuration?.extensions || []);
15
18
  const hostname = ['stable', 'stage'].includes(configuration.env || '') ? `api-${configuration.env}.x-bees.com` : 'api.x-bees.com';
16
19
  const endpoint = () => {
17
20
  return {
@@ -22,13 +25,15 @@ class ConversationsClient extends smithy_client_1.Client {
22
25
  };
23
26
  };
24
27
  const config = {
25
- ..._config_2,
28
+ ..._config_3,
26
29
  endpoint,
27
30
  };
28
31
  super(config);
29
32
  this.config = config;
30
33
  this.middlewareStack.add(smithy_utils_1.authorizationMiddleware.bind(this, configuration.token), { step: "build" });
31
34
  this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
35
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
36
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
32
37
  }
33
38
  destroy() {
34
39
  super.destroy();
@@ -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.LimitExceededException = 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.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = void 0;
4
4
  const ConversationsServiceException_1 = require("./ConversationsServiceException");
5
5
  class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
6
6
  constructor(opts) {
@@ -28,23 +28,23 @@ class ForbiddenException extends ConversationsServiceException_1.ConversationsSe
28
28
  }
29
29
  }
30
30
  exports.ForbiddenException = ForbiddenException;
31
- class LimitExceededException extends ConversationsServiceException_1.ConversationsServiceException {
31
+ class RateLimitExceededException extends ConversationsServiceException_1.ConversationsServiceException {
32
32
  constructor(opts) {
33
33
  super({
34
- name: "LimitExceededException",
34
+ name: "RateLimitExceededException",
35
35
  $fault: "client",
36
36
  ...opts
37
37
  });
38
- this.name = "LimitExceededException";
38
+ this.name = "RateLimitExceededException";
39
39
  this.$fault = "client";
40
- Object.setPrototypeOf(this, LimitExceededException.prototype);
40
+ Object.setPrototypeOf(this, RateLimitExceededException.prototype);
41
41
  this.rateLimit = opts.rateLimit;
42
42
  this.rateLimitRemaining = opts.rateLimitRemaining;
43
43
  this.rateLimitReset = opts.rateLimitReset;
44
44
  this.retryAfter = opts.retryAfter;
45
45
  }
46
46
  }
47
- exports.LimitExceededException = LimitExceededException;
47
+ exports.RateLimitExceededException = RateLimitExceededException;
48
48
  exports.ChannelType = {
49
49
  DIRECT: "direct",
50
50
  GROUP: "group",
@@ -673,6 +673,9 @@ const se_UploadFileCommand = async (input, context) => {
673
673
  };
674
674
  b.bp("/v2/conversations/channels/{channelId}/files");
675
675
  b.p('channelId', () => input.channelId, '{channelId}', false);
676
+ const query = (0, smithy_client_1.map)({
677
+ [_u]: [, input[_uI]],
678
+ });
676
679
  let body;
677
680
  body = JSON.stringify((0, smithy_client_1.take)(input, {
678
681
  'name': [],
@@ -680,6 +683,7 @@ const se_UploadFileCommand = async (input, context) => {
680
683
  }));
681
684
  b.m("POST")
682
685
  .h(headers)
686
+ .q(query)
683
687
  .b(body);
684
688
  return b.build();
685
689
  };
@@ -1202,12 +1206,12 @@ const de_CommandError = async (output, context) => {
1202
1206
  case "ForbiddenException":
1203
1207
  case "smithy.framework#ForbiddenException":
1204
1208
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
1205
- case "LimitExceededException":
1206
- case "smithy.framework#LimitExceededException":
1207
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1208
1209
  case "MemberAlreadyExistException":
1209
1210
  case "wildix.xbees.conversations#MemberAlreadyExistException":
1210
1211
  throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
1212
+ case "RateLimitExceededException":
1213
+ case "smithy.framework#RateLimitExceededException":
1214
+ throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
1211
1215
  case "ValidationException":
1212
1216
  case "smithy.framework#ValidationException":
1213
1217
  throw await de_ValidationExceptionRes(parsedOutput, context);
@@ -1249,7 +1253,7 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
1249
1253
  });
1250
1254
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1251
1255
  };
1252
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1256
+ const de_RateLimitExceededExceptionRes = async (parsedOutput, context) => {
1253
1257
  const contents = (0, smithy_client_1.map)({
1254
1258
  [_rL]: [, parsedOutput.headers[_xrl]],
1255
1259
  [_rLR]: [() => void 0 !== parsedOutput.headers[_xrr], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_xrr])],
@@ -1261,7 +1265,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1261
1265
  'message': smithy_client_1.expectString,
1262
1266
  });
1263
1267
  Object.assign(contents, doc);
1264
- const exception = new models_0_1.LimitExceededException({
1268
+ const exception = new models_0_1.RateLimitExceededException({
1265
1269
  $metadata: deserializeMetadata(parsedOutput),
1266
1270
  ...contents
1267
1271
  });
@@ -1,6 +1,8 @@
1
1
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
2
2
  import { resolveRuntimeExtensions, } from "./runtimeExtensions";
3
3
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
4
+ import { getContentLengthPlugin } from "@smithy/middleware-content-length";
5
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
4
6
  import { Client as __Client, } from "@smithy/smithy-client";
5
7
  import { authorizationMiddleware } from '@wildix/smithy-utils';
6
8
  export { __Client };
@@ -8,7 +10,8 @@ export class ConversationsClient extends __Client {
8
10
  constructor(...[configuration]) {
9
11
  let _config_0 = __getRuntimeConfig(configuration || {});
10
12
  let _config_1 = resolveUserAgentConfig(_config_0);
11
- let _config_2 = resolveRuntimeExtensions(_config_1, configuration?.extensions || []);
13
+ let _config_2 = resolveRetryConfig(_config_1);
14
+ let _config_3 = resolveRuntimeExtensions(_config_2, configuration?.extensions || []);
12
15
  const hostname = ['stable', 'stage'].includes(configuration.env || '') ? `api-${configuration.env}.x-bees.com` : 'api.x-bees.com';
13
16
  const endpoint = () => {
14
17
  return {
@@ -19,13 +22,15 @@ export class ConversationsClient extends __Client {
19
22
  };
20
23
  };
21
24
  const config = {
22
- ..._config_2,
25
+ ..._config_3,
23
26
  endpoint,
24
27
  };
25
28
  super(config);
26
29
  this.config = config;
27
30
  this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
28
31
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
+ this.middlewareStack.use(getRetryPlugin(this.config));
33
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
29
34
  }
30
35
  destroy() {
31
36
  super.destroy();
@@ -23,16 +23,16 @@ export class ForbiddenException extends __BaseException {
23
23
  Object.setPrototypeOf(this, ForbiddenException.prototype);
24
24
  }
25
25
  }
26
- export class LimitExceededException extends __BaseException {
26
+ export class RateLimitExceededException extends __BaseException {
27
27
  constructor(opts) {
28
28
  super({
29
- name: "LimitExceededException",
29
+ name: "RateLimitExceededException",
30
30
  $fault: "client",
31
31
  ...opts
32
32
  });
33
- this.name = "LimitExceededException";
33
+ this.name = "RateLimitExceededException";
34
34
  this.$fault = "client";
35
- Object.setPrototypeOf(this, LimitExceededException.prototype);
35
+ Object.setPrototypeOf(this, RateLimitExceededException.prototype);
36
36
  this.rateLimit = opts.rateLimit;
37
37
  this.rateLimitRemaining = opts.rateLimitRemaining;
38
38
  this.rateLimitReset = opts.rateLimitReset;
@@ -1,5 +1,5 @@
1
1
  import { ConversationsServiceException as __BaseException } from "../models/ConversationsServiceException";
2
- import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, LimitExceededException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, ValidationException, } from "../models/models_0";
2
+ import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, RateLimitExceededException, ValidationException, } from "../models/models_0";
3
3
  import { requestBuilder as rb } from "@smithy/core";
4
4
  import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
5
  export const se_AddChannelMemberCommand = async (input, context) => {
@@ -634,6 +634,9 @@ export const se_UploadFileCommand = async (input, context) => {
634
634
  };
635
635
  b.bp("/v2/conversations/channels/{channelId}/files");
636
636
  b.p('channelId', () => input.channelId, '{channelId}', false);
637
+ const query = map({
638
+ [_u]: [, input[_uI]],
639
+ });
637
640
  let body;
638
641
  body = JSON.stringify(take(input, {
639
642
  'name': [],
@@ -641,6 +644,7 @@ export const se_UploadFileCommand = async (input, context) => {
641
644
  }));
642
645
  b.m("POST")
643
646
  .h(headers)
647
+ .q(query)
644
648
  .b(body);
645
649
  return b.build();
646
650
  };
@@ -1126,12 +1130,12 @@ const de_CommandError = async (output, context) => {
1126
1130
  case "ForbiddenException":
1127
1131
  case "smithy.framework#ForbiddenException":
1128
1132
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
1129
- case "LimitExceededException":
1130
- case "smithy.framework#LimitExceededException":
1131
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1132
1133
  case "MemberAlreadyExistException":
1133
1134
  case "wildix.xbees.conversations#MemberAlreadyExistException":
1134
1135
  throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
1136
+ case "RateLimitExceededException":
1137
+ case "smithy.framework#RateLimitExceededException":
1138
+ throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
1135
1139
  case "ValidationException":
1136
1140
  case "smithy.framework#ValidationException":
1137
1141
  throw await de_ValidationExceptionRes(parsedOutput, context);
@@ -1173,7 +1177,7 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
1173
1177
  });
1174
1178
  return __decorateServiceException(exception, parsedOutput.body);
1175
1179
  };
1176
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1180
+ const de_RateLimitExceededExceptionRes = async (parsedOutput, context) => {
1177
1181
  const contents = map({
1178
1182
  [_rL]: [, parsedOutput.headers[_xrl]],
1179
1183
  [_rLR]: [() => void 0 !== parsedOutput.headers[_xrr], () => __strictParseInt32(parsedOutput.headers[_xrr])],
@@ -1185,7 +1189,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1185
1189
  'message': __expectString,
1186
1190
  });
1187
1191
  Object.assign(contents, doc);
1188
- const exception = new LimitExceededException({
1192
+ const exception = new RateLimitExceededException({
1189
1193
  $metadata: deserializeMetadata(parsedOutput),
1190
1194
  ...contents
1191
1195
  });
@@ -36,6 +36,7 @@ import { UpdateMessageCommandInput, UpdateMessageCommandOutput } from "./command
36
36
  import { UploadFileCommandInput, UploadFileCommandOutput } from "./commands/UploadFileCommand";
37
37
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
38
38
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
39
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
39
40
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
40
41
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
41
42
  import { Provider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
@@ -139,7 +140,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
139
140
  /**
140
141
  * @public
141
142
  */
142
- export type ConversationsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig;
143
+ export type ConversationsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig;
143
144
  /**
144
145
  * @public
145
146
  *
@@ -152,7 +153,7 @@ export interface ConversationsClientConfig extends ConversationsClientConfigType
152
153
  /**
153
154
  * @public
154
155
  */
155
- export type ConversationsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig;
156
+ export type ConversationsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig;
156
157
  /**
157
158
  * @public
158
159
  *
@@ -90,7 +90,7 @@ declare const AddChannelMemberCommand_base: {
90
90
  *
91
91
  * @throws {@link ForbiddenException} (client fault)
92
92
  *
93
- * @throws {@link LimitExceededException} (client fault)
93
+ * @throws {@link RateLimitExceededException} (client fault)
94
94
  *
95
95
  * @throws {@link ConversationsServiceException}
96
96
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -98,7 +98,7 @@ declare const AddChannelMembersCommand_base: {
98
98
  *
99
99
  * @throws {@link ForbiddenException} (client fault)
100
100
  *
101
- * @throws {@link LimitExceededException} (client fault)
101
+ * @throws {@link RateLimitExceededException} (client fault)
102
102
  *
103
103
  * @throws {@link ConversationsServiceException}
104
104
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -142,7 +142,7 @@ declare const CreateGroupChannelCommand_base: {
142
142
  *
143
143
  * @throws {@link ForbiddenException} (client fault)
144
144
  *
145
- * @throws {@link LimitExceededException} (client fault)
145
+ * @throws {@link RateLimitExceededException} (client fault)
146
146
  *
147
147
  * @throws {@link ConversationsServiceException}
148
148
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -53,7 +53,7 @@ declare const DeleteChannelCommand_base: {
53
53
  *
54
54
  * @throws {@link ForbiddenException} (client fault)
55
55
  *
56
- * @throws {@link LimitExceededException} (client fault)
56
+ * @throws {@link RateLimitExceededException} (client fault)
57
57
  *
58
58
  * @throws {@link ConversationsServiceException}
59
59
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -60,7 +60,7 @@ declare const DeleteChannelMemberCommand_base: {
60
60
  *
61
61
  * @throws {@link ForbiddenException} (client fault)
62
62
  *
63
- * @throws {@link LimitExceededException} (client fault)
63
+ * @throws {@link RateLimitExceededException} (client fault)
64
64
  *
65
65
  * @throws {@link ConversationsServiceException}
66
66
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -59,7 +59,7 @@ declare const DeleteMessageCommand_base: {
59
59
  *
60
60
  * @throws {@link ForbiddenException} (client fault)
61
61
  *
62
- * @throws {@link LimitExceededException} (client fault)
62
+ * @throws {@link RateLimitExceededException} (client fault)
63
63
  *
64
64
  * @throws {@link ConversationsServiceException}
65
65
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -60,7 +60,7 @@ declare const DeleteMessageReactionCommand_base: {
60
60
  *
61
61
  * @throws {@link ForbiddenException} (client fault)
62
62
  *
63
- * @throws {@link LimitExceededException} (client fault)
63
+ * @throws {@link RateLimitExceededException} (client fault)
64
64
  *
65
65
  * @throws {@link ConversationsServiceException}
66
66
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -858,7 +858,7 @@ declare const DescribeEventCommand_base: {
858
858
  *
859
859
  * @throws {@link ForbiddenException} (client fault)
860
860
  *
861
- * @throws {@link LimitExceededException} (client fault)
861
+ * @throws {@link RateLimitExceededException} (client fault)
862
862
  *
863
863
  * @throws {@link ConversationsServiceException}
864
864
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -124,7 +124,7 @@ declare const GetChannelCommand_base: {
124
124
  *
125
125
  * @throws {@link ForbiddenException} (client fault)
126
126
  *
127
- * @throws {@link LimitExceededException} (client fault)
127
+ * @throws {@link RateLimitExceededException} (client fault)
128
128
  *
129
129
  * @throws {@link ConversationsServiceException}
130
130
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -82,7 +82,7 @@ declare const GetChannelMemberCommand_base: {
82
82
  *
83
83
  * @throws {@link ForbiddenException} (client fault)
84
84
  *
85
- * @throws {@link LimitExceededException} (client fault)
85
+ * @throws {@link RateLimitExceededException} (client fault)
86
86
  *
87
87
  * @throws {@link ConversationsServiceException}
88
88
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -62,7 +62,7 @@ declare const GetDirectChannelIdCommand_base: {
62
62
  *
63
63
  * @throws {@link ValidationException} (client fault)
64
64
  *
65
- * @throws {@link LimitExceededException} (client fault)
65
+ * @throws {@link RateLimitExceededException} (client fault)
66
66
  *
67
67
  * @throws {@link ConversationsServiceException}
68
68
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -64,7 +64,7 @@ declare const GetFilePresignedDownloadUrlCommand_base: {
64
64
  *
65
65
  * @throws {@link ValidationException} (client fault)
66
66
  *
67
- * @throws {@link LimitExceededException} (client fault)
67
+ * @throws {@link RateLimitExceededException} (client fault)
68
68
  *
69
69
  * @throws {@link ConversationsServiceException}
70
70
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -184,7 +184,7 @@ declare const GetMessageCommand_base: {
184
184
  *
185
185
  * @throws {@link ForbiddenException} (client fault)
186
186
  *
187
- * @throws {@link LimitExceededException} (client fault)
187
+ * @throws {@link RateLimitExceededException} (client fault)
188
188
  *
189
189
  * @throws {@link ConversationsServiceException}
190
190
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -129,7 +129,7 @@ declare const GetOrCreateDirectChannelCommand_base: {
129
129
  *
130
130
  * @throws {@link ForbiddenException} (client fault)
131
131
  *
132
- * @throws {@link LimitExceededException} (client fault)
132
+ * @throws {@link RateLimitExceededException} (client fault)
133
133
  *
134
134
  * @throws {@link ConversationsServiceException}
135
135
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -70,7 +70,7 @@ declare const GetUploadedFileInfoCommand_base: {
70
70
  *
71
71
  * @throws {@link ForbiddenException} (client fault)
72
72
  *
73
- * @throws {@link LimitExceededException} (client fault)
73
+ * @throws {@link RateLimitExceededException} (client fault)
74
74
  *
75
75
  * @throws {@link ConversationsServiceException}
76
76
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -56,7 +56,7 @@ declare const HideChannelCommand_base: {
56
56
  *
57
57
  * @throws {@link ValidationException} (client fault)
58
58
  *
59
- * @throws {@link LimitExceededException} (client fault)
59
+ * @throws {@link RateLimitExceededException} (client fault)
60
60
  *
61
61
  * @throws {@link ConversationsServiceException}
62
62
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -81,7 +81,7 @@ declare const InviteCommand_base: {
81
81
  *
82
82
  * @throws {@link ForbiddenException} (client fault)
83
83
  *
84
- * @throws {@link LimitExceededException} (client fault)
84
+ * @throws {@link RateLimitExceededException} (client fault)
85
85
  *
86
86
  * @throws {@link ConversationsServiceException}
87
87
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -126,7 +126,7 @@ declare const JoinChannelCommand_base: {
126
126
  *
127
127
  * @throws {@link ValidationException} (client fault)
128
128
  *
129
- * @throws {@link LimitExceededException} (client fault)
129
+ * @throws {@link RateLimitExceededException} (client fault)
130
130
  *
131
131
  * @throws {@link ConversationsServiceException}
132
132
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -57,7 +57,7 @@ declare const LeaveChannelCommand_base: {
57
57
  *
58
58
  * @throws {@link ValidationException} (client fault)
59
59
  *
60
- * @throws {@link LimitExceededException} (client fault)
60
+ * @throws {@link RateLimitExceededException} (client fault)
61
61
  *
62
62
  * @throws {@link ConversationsServiceException}
63
63
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -85,7 +85,7 @@ declare const ListChannelMembersCommand_base: {
85
85
  *
86
86
  * @throws {@link ForbiddenException} (client fault)
87
87
  *
88
- * @throws {@link LimitExceededException} (client fault)
88
+ * @throws {@link RateLimitExceededException} (client fault)
89
89
  *
90
90
  * @throws {@link ConversationsServiceException}
91
91
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -126,7 +126,7 @@ declare const ListChannelsCommand_base: {
126
126
  *
127
127
  * @throws {@link ForbiddenException} (client fault)
128
128
  *
129
- * @throws {@link LimitExceededException} (client fault)
129
+ * @throws {@link RateLimitExceededException} (client fault)
130
130
  *
131
131
  * @throws {@link ConversationsServiceException}
132
132
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -84,7 +84,7 @@ declare const ListMessageReactionsCommand_base: {
84
84
  *
85
85
  * @throws {@link ForbiddenException} (client fault)
86
86
  *
87
- * @throws {@link LimitExceededException} (client fault)
87
+ * @throws {@link RateLimitExceededException} (client fault)
88
88
  *
89
89
  * @throws {@link ConversationsServiceException}
90
90
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -185,7 +185,7 @@ declare const ListMessagesCommand_base: {
185
185
  *
186
186
  * @throws {@link ForbiddenException} (client fault)
187
187
  *
188
- * @throws {@link LimitExceededException} (client fault)
188
+ * @throws {@link RateLimitExceededException} (client fault)
189
189
  *
190
190
  * @throws {@link ConversationsServiceException}
191
191
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -56,7 +56,7 @@ declare const MarkReadCommand_base: {
56
56
  *
57
57
  * @throws {@link ForbiddenException} (client fault)
58
58
  *
59
- * @throws {@link LimitExceededException} (client fault)
59
+ * @throws {@link RateLimitExceededException} (client fault)
60
60
  *
61
61
  * @throws {@link ConversationsServiceException}
62
62
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -137,7 +137,7 @@ declare const PartialUpdateChannelCommand_base: {
137
137
  *
138
138
  * @throws {@link ForbiddenException} (client fault)
139
139
  *
140
- * @throws {@link LimitExceededException} (client fault)
140
+ * @throws {@link RateLimitExceededException} (client fault)
141
141
  *
142
142
  * @throws {@link ConversationsServiceException}
143
143
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -279,7 +279,7 @@ declare const PartialUpdateMessageCommand_base: {
279
279
  *
280
280
  * @throws {@link ForbiddenException} (client fault)
281
281
  *
282
- * @throws {@link LimitExceededException} (client fault)
282
+ * @throws {@link RateLimitExceededException} (client fault)
283
283
  *
284
284
  * @throws {@link ConversationsServiceException}
285
285
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -55,7 +55,7 @@ declare const ScheduleExternalFlagAdjustmentJobCommand_base: {
55
55
  *
56
56
  * @throws {@link ValidationException} (client fault)
57
57
  *
58
- * @throws {@link LimitExceededException} (client fault)
58
+ * @throws {@link RateLimitExceededException} (client fault)
59
59
  *
60
60
  * @throws {@link ConversationsServiceException}
61
61
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -190,7 +190,7 @@ declare const SendGiphyCommand_base: {
190
190
  *
191
191
  * @throws {@link ForbiddenException} (client fault)
192
192
  *
193
- * @throws {@link LimitExceededException} (client fault)
193
+ * @throws {@link RateLimitExceededException} (client fault)
194
194
  *
195
195
  * @throws {@link ConversationsServiceException}
196
196
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -275,7 +275,7 @@ declare const SendMessageCommand_base: {
275
275
  *
276
276
  * @throws {@link ForbiddenException} (client fault)
277
277
  *
278
- * @throws {@link LimitExceededException} (client fault)
278
+ * @throws {@link RateLimitExceededException} (client fault)
279
279
  *
280
280
  * @throws {@link ConversationsServiceException}
281
281
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -60,7 +60,7 @@ declare const SendMessageReactionCommand_base: {
60
60
  *
61
61
  * @throws {@link ForbiddenException} (client fault)
62
62
  *
63
- * @throws {@link LimitExceededException} (client fault)
63
+ * @throws {@link RateLimitExceededException} (client fault)
64
64
  *
65
65
  * @throws {@link ConversationsServiceException}
66
66
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -56,7 +56,7 @@ declare const SendTypingStartCommand_base: {
56
56
  *
57
57
  * @throws {@link ForbiddenException} (client fault)
58
58
  *
59
- * @throws {@link LimitExceededException} (client fault)
59
+ * @throws {@link RateLimitExceededException} (client fault)
60
60
  *
61
61
  * @throws {@link ConversationsServiceException}
62
62
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -56,7 +56,7 @@ declare const SendTypingStopCommand_base: {
56
56
  *
57
57
  * @throws {@link ForbiddenException} (client fault)
58
58
  *
59
- * @throws {@link LimitExceededException} (client fault)
59
+ * @throws {@link RateLimitExceededException} (client fault)
60
60
  *
61
61
  * @throws {@link ConversationsServiceException}
62
62
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -56,7 +56,7 @@ declare const ShowChannelCommand_base: {
56
56
  *
57
57
  * @throws {@link ValidationException} (client fault)
58
58
  *
59
- * @throws {@link LimitExceededException} (client fault)
59
+ * @throws {@link RateLimitExceededException} (client fault)
60
60
  *
61
61
  * @throws {@link ConversationsServiceException}
62
62
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -132,7 +132,7 @@ declare const UpdateChannelCommand_base: {
132
132
  *
133
133
  * @throws {@link ForbiddenException} (client fault)
134
134
  *
135
- * @throws {@link LimitExceededException} (client fault)
135
+ * @throws {@link RateLimitExceededException} (client fault)
136
136
  *
137
137
  * @throws {@link ConversationsServiceException}
138
138
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -277,7 +277,7 @@ declare const UpdateMessageCommand_base: {
277
277
  *
278
278
  * @throws {@link ForbiddenException} (client fault)
279
279
  *
280
- * @throws {@link LimitExceededException} (client fault)
280
+ * @throws {@link RateLimitExceededException} (client fault)
281
281
  *
282
282
  * @throws {@link ConversationsServiceException}
283
283
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -37,8 +37,8 @@ declare const UploadFileCommand_base: {
37
37
  * const input = { // UploadFileInput
38
38
  * channelId: "STRING_VALUE", // required
39
39
  * name: "STRING_VALUE", // required
40
+ * userId: "STRING_VALUE",
40
41
  * options: { // UploadFileOptions
41
- * userId: "STRING_VALUE",
42
42
  * category: "channels" || "recordings",
43
43
  * region: "STRING_VALUE",
44
44
  * },
@@ -66,7 +66,7 @@ declare const UploadFileCommand_base: {
66
66
  *
67
67
  * @throws {@link ForbiddenException} (client fault)
68
68
  *
69
- * @throws {@link LimitExceededException} (client fault)
69
+ * @throws {@link RateLimitExceededException} (client fault)
70
70
  *
71
71
  * @throws {@link ConversationsServiceException}
72
72
  * <p>Base exception class for all service exceptions from Conversations service.</p>
@@ -25,8 +25,8 @@ export declare class ForbiddenException extends __BaseException {
25
25
  /**
26
26
  * @public
27
27
  */
28
- export declare class LimitExceededException extends __BaseException {
29
- readonly name: "LimitExceededException";
28
+ export declare class RateLimitExceededException extends __BaseException {
29
+ readonly name: "RateLimitExceededException";
30
30
  readonly $fault: "client";
31
31
  /**
32
32
  * Displays the applicable rate limits for the current request.
@@ -51,7 +51,7 @@ export declare class LimitExceededException extends __BaseException {
51
51
  /**
52
52
  * @internal
53
53
  */
54
- constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
54
+ constructor(opts: __ExceptionOptionType<RateLimitExceededException, __BaseException>);
55
55
  }
56
56
  /**
57
57
  * @public
@@ -1737,11 +1737,6 @@ export interface UpdateMessageOutput {
1737
1737
  * @public
1738
1738
  */
1739
1739
  export interface UploadFileOptions {
1740
- /**
1741
- * User Id. It is only for s2s, in other cases it will be ignored.
1742
- * @public
1743
- */
1744
- userId?: string;
1745
1740
  /**
1746
1741
  * File category. Channel files or conference recordings. Default: channels.
1747
1742
  * @public
@@ -1767,6 +1762,11 @@ export interface UploadFileInput {
1767
1762
  * @public
1768
1763
  */
1769
1764
  name: string;
1765
+ /**
1766
+ * The unique identifier of the user when a service token is used.
1767
+ * @public
1768
+ */
1769
+ userId?: string;
1770
1770
  /**
1771
1771
  * Additional options for the file upload.
1772
1772
  * @public
@@ -25,4 +25,5 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
25
25
  logger: import("@smithy/types").Logger;
26
26
  extensions: import("./runtimeExtensions").RuntimeExtension[];
27
27
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
28
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
28
29
  };
@@ -25,4 +25,5 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
25
25
  logger: import("@smithy/types").Logger;
26
26
  extensions: import("./runtimeExtensions").RuntimeExtension[];
27
27
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
28
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
28
29
  };
@@ -24,4 +24,5 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
24
24
  extensions: import("./runtimeExtensions").RuntimeExtension[];
25
25
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
26
26
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
27
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
27
28
  };
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.53",
4
+ "version": "1.0.55",
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",