@wildix/stream-client 0.0.15 → 4.0.1

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 (243) hide show
  1. package/dist-cjs/StreamService.js +3 -7
  2. package/dist-cjs/StreamServiceClient.js +34 -27
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
  5. package/dist-cjs/commands/AddChannelMemberCommand.js +10 -11
  6. package/dist-cjs/commands/AddChannelMembersCommand.js +10 -11
  7. package/dist-cjs/commands/AssignChannelCommand.js +10 -11
  8. package/dist-cjs/commands/CreateGroupChannelCommand.js +10 -11
  9. package/dist-cjs/commands/CreateKiteChannelCommand.js +10 -11
  10. package/dist-cjs/commands/CreateSectionCommand.js +10 -11
  11. package/dist-cjs/commands/DeleteChannelCommand.js +10 -11
  12. package/dist-cjs/commands/DeleteChannelMemberCommand.js +10 -11
  13. package/dist-cjs/commands/DeleteMessageCommand.js +10 -11
  14. package/dist-cjs/commands/DeleteMessageReactionCommand.js +10 -11
  15. package/dist-cjs/commands/DeleteSectionCommand.js +10 -11
  16. package/dist-cjs/commands/GetChannelCommand.js +10 -11
  17. package/dist-cjs/commands/GetChannelMemberCommand.js +10 -11
  18. package/dist-cjs/commands/GetDirectChannelIdCommand.js +10 -11
  19. package/dist-cjs/commands/GetFilePresignedDownloadUrlCommand.js +10 -11
  20. package/dist-cjs/commands/GetInboxCommand.js +10 -11
  21. package/dist-cjs/commands/GetMessageCommand.js +10 -11
  22. package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +10 -11
  23. package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +10 -11
  24. package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +10 -11
  25. package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +10 -11
  26. package/dist-cjs/commands/GetSmsChannelIdCommand.js +10 -11
  27. package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +10 -11
  28. package/dist-cjs/commands/GetTokenCommand.js +10 -11
  29. package/dist-cjs/commands/GetUploadedFileInfoCommand.js +10 -11
  30. package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +10 -11
  31. package/dist-cjs/commands/HideChannelCommand.js +10 -11
  32. package/dist-cjs/commands/JoinChannelCommand.js +10 -11
  33. package/dist-cjs/commands/LeaveChannelCommand.js +10 -11
  34. package/dist-cjs/commands/ListChannelMembersCommand.js +10 -11
  35. package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +10 -11
  36. package/dist-cjs/commands/ListChannelsCommand.js +10 -11
  37. package/dist-cjs/commands/ListMentionsCommand.js +10 -11
  38. package/dist-cjs/commands/ListMessagesCommand.js +10 -11
  39. package/dist-cjs/commands/MarkReadCommand.js +10 -11
  40. package/dist-cjs/commands/MarkUnreadCommand.js +10 -11
  41. package/dist-cjs/commands/MoveChannelToSectionCommand.js +10 -11
  42. package/dist-cjs/commands/MuteChannelCommand.js +10 -11
  43. package/dist-cjs/commands/PartialUpdateChannelCommand.js +10 -11
  44. package/dist-cjs/commands/PartialUpdateMessageCommand.js +10 -11
  45. package/dist-cjs/commands/PinChannelCommand.js +10 -11
  46. package/dist-cjs/commands/PinMessageCommand.js +10 -11
  47. package/dist-cjs/commands/QueryChannelsCommand.js +10 -11
  48. package/dist-cjs/commands/RemoveChannelFromSectionCommand.js +10 -11
  49. package/dist-cjs/commands/RenameSectionCommand.js +10 -11
  50. package/dist-cjs/commands/SendGiphyCommand.js +10 -11
  51. package/dist-cjs/commands/SendMessageCommand.js +10 -11
  52. package/dist-cjs/commands/SendMessageReactionCommand.js +10 -11
  53. package/dist-cjs/commands/SendSystemMessageCommand.js +10 -11
  54. package/dist-cjs/commands/SendTypingStartCommand.js +10 -11
  55. package/dist-cjs/commands/SendTypingStopCommand.js +10 -11
  56. package/dist-cjs/commands/ShowChannelCommand.js +10 -11
  57. package/dist-cjs/commands/UnmuteChannelCommand.js +10 -11
  58. package/dist-cjs/commands/UnpinChannelCommand.js +10 -11
  59. package/dist-cjs/commands/UnpinMessageCommand.js +10 -11
  60. package/dist-cjs/commands/UpdateChannelCommand.js +10 -11
  61. package/dist-cjs/commands/UpdateMessageCommand.js +10 -11
  62. package/dist-cjs/commands/UploadFileCommand.js +10 -11
  63. package/dist-cjs/commands/index.js +0 -2
  64. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  65. package/dist-cjs/endpoint/bdd.js +28 -0
  66. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  67. package/dist-cjs/index.js +4 -1
  68. package/dist-cjs/models/StreamServiceServiceException.js +3 -3
  69. package/dist-cjs/models/enums.js +114 -0
  70. package/dist-cjs/models/errors.js +209 -0
  71. package/dist-cjs/models/models_0.js +0 -387
  72. package/dist-cjs/runtimeConfig.browser.js +11 -11
  73. package/dist-cjs/runtimeConfig.js +22 -18
  74. package/dist-cjs/runtimeConfig.shared.js +30 -10
  75. package/dist-cjs/runtimeExtensions.js +6 -5
  76. package/dist-cjs/schemas/schemas_0.js +1584 -0
  77. package/dist-es/StreamService.js +6 -10
  78. package/dist-es/StreamServiceClient.js +30 -23
  79. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  80. package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
  81. package/dist-es/commands/AddChannelMemberCommand.js +9 -10
  82. package/dist-es/commands/AddChannelMembersCommand.js +9 -10
  83. package/dist-es/commands/AssignChannelCommand.js +9 -10
  84. package/dist-es/commands/CreateGroupChannelCommand.js +9 -10
  85. package/dist-es/commands/CreateKiteChannelCommand.js +9 -10
  86. package/dist-es/commands/CreateSectionCommand.js +9 -10
  87. package/dist-es/commands/DeleteChannelCommand.js +9 -10
  88. package/dist-es/commands/DeleteChannelMemberCommand.js +9 -10
  89. package/dist-es/commands/DeleteMessageCommand.js +9 -10
  90. package/dist-es/commands/DeleteMessageReactionCommand.js +9 -10
  91. package/dist-es/commands/DeleteSectionCommand.js +9 -10
  92. package/dist-es/commands/GetChannelCommand.js +9 -10
  93. package/dist-es/commands/GetChannelMemberCommand.js +9 -10
  94. package/dist-es/commands/GetDirectChannelIdCommand.js +9 -10
  95. package/dist-es/commands/GetFilePresignedDownloadUrlCommand.js +9 -10
  96. package/dist-es/commands/GetInboxCommand.js +9 -10
  97. package/dist-es/commands/GetMessageCommand.js +9 -10
  98. package/dist-es/commands/GetOrCreateDirectChannelCommand.js +9 -10
  99. package/dist-es/commands/GetOrCreateSmsChannelCommand.js +9 -10
  100. package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +9 -10
  101. package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +9 -10
  102. package/dist-es/commands/GetSmsChannelIdCommand.js +9 -10
  103. package/dist-es/commands/GetTelephonyChannelIdCommand.js +9 -10
  104. package/dist-es/commands/GetTokenCommand.js +9 -10
  105. package/dist-es/commands/GetUploadedFileInfoCommand.js +9 -10
  106. package/dist-es/commands/GetWhatsAppChannelIdCommand.js +9 -10
  107. package/dist-es/commands/HideChannelCommand.js +9 -10
  108. package/dist-es/commands/JoinChannelCommand.js +9 -10
  109. package/dist-es/commands/LeaveChannelCommand.js +9 -10
  110. package/dist-es/commands/ListChannelMembersCommand.js +9 -10
  111. package/dist-es/commands/ListChannelMembersReadStatusCommand.js +9 -10
  112. package/dist-es/commands/ListChannelsCommand.js +9 -10
  113. package/dist-es/commands/ListMentionsCommand.js +9 -10
  114. package/dist-es/commands/ListMessagesCommand.js +9 -10
  115. package/dist-es/commands/MarkReadCommand.js +9 -10
  116. package/dist-es/commands/MarkUnreadCommand.js +9 -10
  117. package/dist-es/commands/MoveChannelToSectionCommand.js +9 -10
  118. package/dist-es/commands/MuteChannelCommand.js +9 -10
  119. package/dist-es/commands/PartialUpdateChannelCommand.js +9 -10
  120. package/dist-es/commands/PartialUpdateMessageCommand.js +9 -10
  121. package/dist-es/commands/PinChannelCommand.js +9 -10
  122. package/dist-es/commands/PinMessageCommand.js +9 -10
  123. package/dist-es/commands/QueryChannelsCommand.js +9 -10
  124. package/dist-es/commands/RemoveChannelFromSectionCommand.js +9 -10
  125. package/dist-es/commands/RenameSectionCommand.js +9 -10
  126. package/dist-es/commands/SendGiphyCommand.js +9 -10
  127. package/dist-es/commands/SendMessageCommand.js +9 -10
  128. package/dist-es/commands/SendMessageReactionCommand.js +9 -10
  129. package/dist-es/commands/SendSystemMessageCommand.js +9 -10
  130. package/dist-es/commands/SendTypingStartCommand.js +9 -10
  131. package/dist-es/commands/SendTypingStopCommand.js +9 -10
  132. package/dist-es/commands/ShowChannelCommand.js +9 -10
  133. package/dist-es/commands/UnmuteChannelCommand.js +9 -10
  134. package/dist-es/commands/UnpinChannelCommand.js +9 -10
  135. package/dist-es/commands/UnpinMessageCommand.js +9 -10
  136. package/dist-es/commands/UpdateChannelCommand.js +9 -10
  137. package/dist-es/commands/UpdateMessageCommand.js +9 -10
  138. package/dist-es/commands/UploadFileCommand.js +9 -10
  139. package/dist-es/commands/index.js +0 -2
  140. package/dist-es/endpoint/EndpointParameters.js +14 -0
  141. package/dist-es/endpoint/bdd.js +25 -0
  142. package/dist-es/endpoint/endpointResolver.js +12 -0
  143. package/dist-es/index.js +4 -1
  144. package/dist-es/models/StreamServiceServiceException.js +1 -1
  145. package/dist-es/models/enums.js +111 -0
  146. package/dist-es/models/errors.js +191 -0
  147. package/dist-es/models/models_0.js +1 -371
  148. package/dist-es/runtimeConfig.browser.js +7 -7
  149. package/dist-es/runtimeConfig.js +17 -13
  150. package/dist-es/runtimeConfig.shared.js +24 -4
  151. package/dist-es/runtimeExtensions.js +6 -5
  152. package/dist-es/schemas/schemas_0.js +1577 -0
  153. package/dist-types/StreamService.d.ts +59 -75
  154. package/dist-types/StreamServiceClient.d.ts +90 -76
  155. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  156. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  157. package/dist-types/commands/AddChannelMemberCommand.d.ts +11 -7
  158. package/dist-types/commands/AddChannelMembersCommand.d.ts +11 -7
  159. package/dist-types/commands/AssignChannelCommand.d.ts +11 -7
  160. package/dist-types/commands/CreateGroupChannelCommand.d.ts +11 -7
  161. package/dist-types/commands/CreateKiteChannelCommand.d.ts +11 -7
  162. package/dist-types/commands/CreateSectionCommand.d.ts +11 -7
  163. package/dist-types/commands/DeleteChannelCommand.d.ts +11 -7
  164. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +11 -7
  165. package/dist-types/commands/DeleteMessageCommand.d.ts +11 -7
  166. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +11 -7
  167. package/dist-types/commands/DeleteSectionCommand.d.ts +11 -7
  168. package/dist-types/commands/GetChannelCommand.d.ts +11 -7
  169. package/dist-types/commands/GetChannelMemberCommand.d.ts +11 -7
  170. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +11 -7
  171. package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +11 -7
  172. package/dist-types/commands/GetInboxCommand.d.ts +11 -7
  173. package/dist-types/commands/GetMessageCommand.d.ts +11 -7
  174. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +11 -7
  175. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +11 -7
  176. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +11 -7
  177. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +11 -7
  178. package/dist-types/commands/GetSmsChannelIdCommand.d.ts +11 -7
  179. package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +11 -7
  180. package/dist-types/commands/GetTokenCommand.d.ts +11 -7
  181. package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +11 -7
  182. package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +11 -7
  183. package/dist-types/commands/HideChannelCommand.d.ts +11 -7
  184. package/dist-types/commands/JoinChannelCommand.d.ts +11 -7
  185. package/dist-types/commands/LeaveChannelCommand.d.ts +11 -7
  186. package/dist-types/commands/ListChannelMembersCommand.d.ts +11 -7
  187. package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +11 -7
  188. package/dist-types/commands/ListChannelsCommand.d.ts +11 -7
  189. package/dist-types/commands/ListMentionsCommand.d.ts +11 -7
  190. package/dist-types/commands/ListMessagesCommand.d.ts +11 -7
  191. package/dist-types/commands/MarkReadCommand.d.ts +11 -7
  192. package/dist-types/commands/MarkUnreadCommand.d.ts +11 -7
  193. package/dist-types/commands/MoveChannelToSectionCommand.d.ts +11 -7
  194. package/dist-types/commands/MuteChannelCommand.d.ts +11 -7
  195. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +11 -7
  196. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +11 -7
  197. package/dist-types/commands/PinChannelCommand.d.ts +11 -7
  198. package/dist-types/commands/PinMessageCommand.d.ts +11 -7
  199. package/dist-types/commands/QueryChannelsCommand.d.ts +11 -7
  200. package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +11 -7
  201. package/dist-types/commands/RenameSectionCommand.d.ts +11 -7
  202. package/dist-types/commands/SendGiphyCommand.d.ts +11 -7
  203. package/dist-types/commands/SendMessageCommand.d.ts +11 -7
  204. package/dist-types/commands/SendMessageReactionCommand.d.ts +11 -7
  205. package/dist-types/commands/SendSystemMessageCommand.d.ts +11 -7
  206. package/dist-types/commands/SendTypingStartCommand.d.ts +11 -7
  207. package/dist-types/commands/SendTypingStopCommand.d.ts +11 -7
  208. package/dist-types/commands/ShowChannelCommand.d.ts +11 -7
  209. package/dist-types/commands/UnmuteChannelCommand.d.ts +11 -7
  210. package/dist-types/commands/UnpinChannelCommand.d.ts +11 -7
  211. package/dist-types/commands/UnpinMessageCommand.d.ts +11 -7
  212. package/dist-types/commands/UpdateChannelCommand.d.ts +11 -7
  213. package/dist-types/commands/UpdateMessageCommand.d.ts +11 -7
  214. package/dist-types/commands/UploadFileCommand.d.ts +11 -7
  215. package/dist-types/commands/index.d.ts +0 -2
  216. package/dist-types/endpoint/EndpointParameters.d.ts +48 -0
  217. package/dist-types/endpoint/bdd.d.ts +2 -0
  218. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  219. package/dist-types/extensionConfiguration.d.ts +4 -3
  220. package/dist-types/index.d.ts +5 -1
  221. package/dist-types/models/StreamServiceServiceException.d.ts +1 -1
  222. package/dist-types/models/enums.d.ts +286 -0
  223. package/dist-types/models/errors.d.ts +189 -0
  224. package/dist-types/models/models_0.d.ts +69 -713
  225. package/dist-types/runtimeConfig.browser.d.ts +37 -18
  226. package/dist-types/runtimeConfig.d.ts +36 -17
  227. package/dist-types/runtimeConfig.native.d.ts +38 -19
  228. package/dist-types/runtimeConfig.shared.d.ts +20 -3
  229. package/dist-types/runtimeExtensions.d.ts +1 -1
  230. package/dist-types/schemas/schemas_0.d.ts +243 -0
  231. package/package.json +14 -40
  232. package/dist-cjs/commands/SearchChannelsCommand.js +0 -21
  233. package/dist-cjs/commands/SearchMessagesCommand.js +0 -21
  234. package/dist-cjs/models/index.js +0 -4
  235. package/dist-cjs/protocols/Aws_restJson1.js +0 -2474
  236. package/dist-es/commands/SearchChannelsCommand.js +0 -17
  237. package/dist-es/commands/SearchMessagesCommand.js +0 -17
  238. package/dist-es/models/index.js +0 -1
  239. package/dist-es/protocols/Aws_restJson1.js +0 -2349
  240. package/dist-types/commands/SearchChannelsCommand.d.ts +0 -163
  241. package/dist-types/commands/SearchMessagesCommand.d.ts +0 -211
  242. package/dist-types/models/index.d.ts +0 -1
  243. package/dist-types/protocols/Aws_restJson1.d.ts +0 -542
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StreamService = void 0;
4
- const StreamServiceClient_1 = require("./StreamServiceClient");
4
+ const client_1 = require("@smithy/core/client");
5
5
  const AddChannelMemberCommand_1 = require("./commands/AddChannelMemberCommand");
6
6
  const AddChannelMembersCommand_1 = require("./commands/AddChannelMembersCommand");
7
7
  const AssignChannelCommand_1 = require("./commands/AssignChannelCommand");
@@ -47,8 +47,6 @@ const PinMessageCommand_1 = require("./commands/PinMessageCommand");
47
47
  const QueryChannelsCommand_1 = require("./commands/QueryChannelsCommand");
48
48
  const RemoveChannelFromSectionCommand_1 = require("./commands/RemoveChannelFromSectionCommand");
49
49
  const RenameSectionCommand_1 = require("./commands/RenameSectionCommand");
50
- const SearchChannelsCommand_1 = require("./commands/SearchChannelsCommand");
51
- const SearchMessagesCommand_1 = require("./commands/SearchMessagesCommand");
52
50
  const SendGiphyCommand_1 = require("./commands/SendGiphyCommand");
53
51
  const SendMessageCommand_1 = require("./commands/SendMessageCommand");
54
52
  const SendMessageReactionCommand_1 = require("./commands/SendMessageReactionCommand");
@@ -62,7 +60,7 @@ const UnpinMessageCommand_1 = require("./commands/UnpinMessageCommand");
62
60
  const UpdateChannelCommand_1 = require("./commands/UpdateChannelCommand");
63
61
  const UpdateMessageCommand_1 = require("./commands/UpdateMessageCommand");
64
62
  const UploadFileCommand_1 = require("./commands/UploadFileCommand");
65
- const smithy_client_1 = require("@smithy/smithy-client");
63
+ const StreamServiceClient_1 = require("./StreamServiceClient");
66
64
  const commands = {
67
65
  AddChannelMemberCommand: AddChannelMemberCommand_1.AddChannelMemberCommand,
68
66
  AddChannelMembersCommand: AddChannelMembersCommand_1.AddChannelMembersCommand,
@@ -109,8 +107,6 @@ const commands = {
109
107
  QueryChannelsCommand: QueryChannelsCommand_1.QueryChannelsCommand,
110
108
  RemoveChannelFromSectionCommand: RemoveChannelFromSectionCommand_1.RemoveChannelFromSectionCommand,
111
109
  RenameSectionCommand: RenameSectionCommand_1.RenameSectionCommand,
112
- SearchChannelsCommand: SearchChannelsCommand_1.SearchChannelsCommand,
113
- SearchMessagesCommand: SearchMessagesCommand_1.SearchMessagesCommand,
114
110
  SendGiphyCommand: SendGiphyCommand_1.SendGiphyCommand,
115
111
  SendMessageCommand: SendMessageCommand_1.SendMessageCommand,
116
112
  SendMessageReactionCommand: SendMessageReactionCommand_1.SendMessageReactionCommand,
@@ -128,4 +124,4 @@ const commands = {
128
124
  class StreamService extends StreamServiceClient_1.StreamServiceClient {
129
125
  }
130
126
  exports.StreamService = StreamService;
131
- (0, smithy_client_1.createAggregatedClient)(commands, StreamService);
127
+ (0, client_1.createAggregatedClient)(commands, StreamService);
@@ -1,39 +1,46 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StreamServiceClient = exports.__Client = void 0;
4
+ const client_1 = require("@aws-sdk/core/client");
5
+ const core_1 = require("@smithy/core");
6
+ const client_2 = require("@smithy/core/client");
7
+ Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return client_2.Client; } });
8
+ const endpoints_1 = require("@smithy/core/endpoints");
9
+ const protocols_1 = require("@smithy/core/protocols");
10
+ const retry_1 = require("@smithy/core/retry");
11
+ const schema_1 = require("@smithy/core/schema");
12
+ const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
13
+ const EndpointParameters_1 = require("./endpoint/EndpointParameters");
4
14
  const runtimeConfig_1 = require("./runtimeConfig");
5
15
  const runtimeExtensions_1 = require("./runtimeExtensions");
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");
9
- const smithy_client_1 = require("@smithy/smithy-client");
10
- Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
11
- const smithy_utils_1 = require("@wildix/smithy-utils");
12
- class StreamServiceClient extends smithy_client_1.Client {
16
+ class StreamServiceClient extends client_2.Client {
13
17
  config;
14
18
  constructor(...[configuration]) {
15
- let _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
19
+ const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
16
20
  super(_config_0);
17
21
  this.initConfig = _config_0;
18
- let _config_1 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_0);
19
- let _config_2 = (0, middleware_retry_1.resolveRetryConfig)(_config_1);
20
- let _config_3 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_2, configuration?.extensions || []);
21
- const serviceRegion = (configuration.serviceRegion && ['eu-1', 'us-1'].includes(configuration.serviceRegion)) ? configuration.serviceRegion : 'eu-1';
22
- const hostname = ['stable', 'stage'].includes(configuration.env || '') ? `${serviceRegion}.stream-${configuration.env}.wildix.com` : `${serviceRegion}.stream.wildix.com`;
23
- const endpoint = configuration.endpoint || (() => {
24
- return {
25
- hostname,
26
- protocol: "https",
27
- port: '443',
28
- path: ''
29
- };
30
- });
31
- const config = { ..._config_3, endpoint };
32
- this.config = config;
33
- this.middlewareStack.add(smithy_utils_1.authorizationMiddleware.bind(this, configuration.token), { step: "build" });
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));
22
+ const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
23
+ const _config_2 = (0, client_1.resolveUserAgentConfig)(_config_1);
24
+ const _config_3 = (0, retry_1.resolveRetryConfig)(_config_2);
25
+ const _config_4 = (0, client_1.resolveHostHeaderConfig)(_config_3);
26
+ const _config_5 = (0, endpoints_1.resolveEndpointConfig)(_config_4);
27
+ const _config_6 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_5);
28
+ const _config_7 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_6, configuration?.extensions || []);
29
+ this.config = _config_7;
30
+ this.middlewareStack.use((0, schema_1.getSchemaSerdePlugin)(this.config));
31
+ this.middlewareStack.use((0, client_1.getUserAgentPlugin)(this.config));
32
+ this.middlewareStack.use((0, retry_1.getRetryPlugin)(this.config));
33
+ this.middlewareStack.use((0, protocols_1.getContentLengthPlugin)(this.config));
34
+ this.middlewareStack.use((0, client_1.getHostHeaderPlugin)(this.config));
35
+ this.middlewareStack.use((0, client_1.getLoggerPlugin)(this.config));
36
+ this.middlewareStack.use((0, client_1.getRecursionDetectionPlugin)(this.config));
37
+ this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
38
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultStreamServiceHttpAuthSchemeParametersProvider,
39
+ identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
40
+ "smithy.api#httpBearerAuth": config.token,
41
+ }),
42
+ }));
43
+ this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
37
44
  }
38
45
  destroy() {
39
46
  super.destroy();
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
4
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
5
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
6
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
7
+ let _token = runtimeConfig.token;
8
+ return {
9
+ setHttpAuthScheme(httpAuthScheme) {
10
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
11
+ if (index === -1) {
12
+ _httpAuthSchemes.push(httpAuthScheme);
13
+ }
14
+ else {
15
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
16
+ }
17
+ },
18
+ httpAuthSchemes() {
19
+ return _httpAuthSchemes;
20
+ },
21
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
22
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
23
+ },
24
+ httpAuthSchemeProvider() {
25
+ return _httpAuthSchemeProvider;
26
+ },
27
+ setToken(token) {
28
+ _token = token;
29
+ },
30
+ token() {
31
+ return _token;
32
+ },
33
+ };
34
+ };
35
+ exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
36
+ const resolveHttpAuthRuntimeConfig = (config) => {
37
+ return {
38
+ httpAuthSchemes: config.httpAuthSchemes(),
39
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
40
+ token: config.token(),
41
+ };
42
+ };
43
+ exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveHttpAuthSchemeConfig = exports.defaultStreamServiceHttpAuthSchemeProvider = exports.defaultStreamServiceHttpAuthSchemeParametersProvider = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const client_1 = require("@smithy/core/client");
6
+ const defaultStreamServiceHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
+ return {
8
+ operation: (0, client_1.getSmithyContext)(context).operation,
9
+ };
10
+ };
11
+ exports.defaultStreamServiceHttpAuthSchemeParametersProvider = defaultStreamServiceHttpAuthSchemeParametersProvider;
12
+ function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
13
+ return {
14
+ schemeId: "smithy.api#httpBearerAuth",
15
+ };
16
+ }
17
+ function createWildixAuthApiKeysHttpAuthOption(authParameters) {
18
+ return {
19
+ schemeId: "wildix.auth#apiKeys",
20
+ };
21
+ }
22
+ function createWildixAuthPbxHttpAuthOption(authParameters) {
23
+ return {
24
+ schemeId: "wildix.auth#pbx",
25
+ };
26
+ }
27
+ function createWildixAuthS2sHttpAuthOption(authParameters) {
28
+ return {
29
+ schemeId: "wildix.auth#s2s",
30
+ };
31
+ }
32
+ function createWildixAuthXbsHttpAuthOption(authParameters) {
33
+ return {
34
+ schemeId: "wildix.auth#xbs",
35
+ };
36
+ }
37
+ const defaultStreamServiceHttpAuthSchemeProvider = (authParameters) => {
38
+ const options = [];
39
+ switch (authParameters.operation) {
40
+ default: {
41
+ options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
42
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
43
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
44
+ options.push(createWildixAuthPbxHttpAuthOption(authParameters));
45
+ options.push(createWildixAuthApiKeysHttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ exports.defaultStreamServiceHttpAuthSchemeProvider = defaultStreamServiceHttpAuthSchemeProvider;
51
+ const resolveHttpAuthSchemeConfig = (config) => {
52
+ const token = (0, core_1.memoizeIdentityProvider)(config.token, core_1.isIdentityExpired, core_1.doesIdentityRequireRefresh);
53
+ return Object.assign(config, {
54
+ authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
55
+ token,
56
+ });
57
+ };
58
+ exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AddChannelMemberCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class AddChannelMemberCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class AddChannelMemberCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("StreamService", "AddChannelMember", {})
15
16
  .n("StreamServiceClient", "AddChannelMemberCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_AddChannelMemberCommand)
18
- .de(Aws_restJson1_1.de_AddChannelMemberCommand)
17
+ .sc(schemas_0_1.AddChannelMember$)
19
18
  .build() {
20
19
  }
21
20
  exports.AddChannelMemberCommand = AddChannelMemberCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AddChannelMembersCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class AddChannelMembersCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class AddChannelMembersCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("StreamService", "AddChannelMembers", {})
15
16
  .n("StreamServiceClient", "AddChannelMembersCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_AddChannelMembersCommand)
18
- .de(Aws_restJson1_1.de_AddChannelMembersCommand)
17
+ .sc(schemas_0_1.AddChannelMembers$)
19
18
  .build() {
20
19
  }
21
20
  exports.AddChannelMembersCommand = AddChannelMembersCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AssignChannelCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class AssignChannelCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class AssignChannelCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("StreamService", "AssignChannel", {})
15
16
  .n("StreamServiceClient", "AssignChannelCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_AssignChannelCommand)
18
- .de(Aws_restJson1_1.de_AssignChannelCommand)
17
+ .sc(schemas_0_1.AssignChannel$)
19
18
  .build() {
20
19
  }
21
20
  exports.AssignChannelCommand = AssignChannelCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateGroupChannelCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class CreateGroupChannelCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class CreateGroupChannelCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("StreamService", "CreateGroupChannel", {})
15
16
  .n("StreamServiceClient", "CreateGroupChannelCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_CreateGroupChannelCommand)
18
- .de(Aws_restJson1_1.de_CreateGroupChannelCommand)
17
+ .sc(schemas_0_1.CreateGroupChannel$)
19
18
  .build() {
20
19
  }
21
20
  exports.CreateGroupChannelCommand = CreateGroupChannelCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateKiteChannelCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class CreateKiteChannelCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class CreateKiteChannelCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("StreamService", "CreateKiteChannel", {})
15
16
  .n("StreamServiceClient", "CreateKiteChannelCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_CreateKiteChannelCommand)
18
- .de(Aws_restJson1_1.de_CreateKiteChannelCommand)
17
+ .sc(schemas_0_1.CreateKiteChannel$)
19
18
  .build() {
20
19
  }
21
20
  exports.CreateKiteChannelCommand = CreateKiteChannelCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateSectionCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class CreateSectionCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class CreateSectionCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("StreamService", "CreateSection", {})
15
16
  .n("StreamServiceClient", "CreateSectionCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_CreateSectionCommand)
18
- .de(Aws_restJson1_1.de_CreateSectionCommand)
17
+ .sc(schemas_0_1.CreateSection$)
19
18
  .build() {
20
19
  }
21
20
  exports.CreateSectionCommand = CreateSectionCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteChannelCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class DeleteChannelCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class DeleteChannelCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("StreamService", "DeleteChannel", {})
15
16
  .n("StreamServiceClient", "DeleteChannelCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_DeleteChannelCommand)
18
- .de(Aws_restJson1_1.de_DeleteChannelCommand)
17
+ .sc(schemas_0_1.DeleteChannel$)
19
18
  .build() {
20
19
  }
21
20
  exports.DeleteChannelCommand = DeleteChannelCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteChannelMemberCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class DeleteChannelMemberCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class DeleteChannelMemberCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("StreamService", "DeleteChannelMember", {})
15
16
  .n("StreamServiceClient", "DeleteChannelMemberCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_DeleteChannelMemberCommand)
18
- .de(Aws_restJson1_1.de_DeleteChannelMemberCommand)
17
+ .sc(schemas_0_1.DeleteChannelMember$)
19
18
  .build() {
20
19
  }
21
20
  exports.DeleteChannelMemberCommand = DeleteChannelMemberCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteMessageCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class DeleteMessageCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class DeleteMessageCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("StreamService", "DeleteMessage", {})
15
16
  .n("StreamServiceClient", "DeleteMessageCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_DeleteMessageCommand)
18
- .de(Aws_restJson1_1.de_DeleteMessageCommand)
17
+ .sc(schemas_0_1.DeleteMessage$)
19
18
  .build() {
20
19
  }
21
20
  exports.DeleteMessageCommand = DeleteMessageCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteMessageReactionCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class DeleteMessageReactionCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class DeleteMessageReactionCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("StreamService", "DeleteMessageReaction", {})
15
16
  .n("StreamServiceClient", "DeleteMessageReactionCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_DeleteMessageReactionCommand)
18
- .de(Aws_restJson1_1.de_DeleteMessageReactionCommand)
17
+ .sc(schemas_0_1.DeleteMessageReaction$)
19
18
  .build() {
20
19
  }
21
20
  exports.DeleteMessageReactionCommand = DeleteMessageReactionCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteSectionCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class DeleteSectionCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class DeleteSectionCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("StreamService", "DeleteSection", {})
15
16
  .n("StreamServiceClient", "DeleteSectionCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_DeleteSectionCommand)
18
- .de(Aws_restJson1_1.de_DeleteSectionCommand)
17
+ .sc(schemas_0_1.DeleteSection$)
19
18
  .build() {
20
19
  }
21
20
  exports.DeleteSectionCommand = DeleteSectionCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetChannelCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class GetChannelCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class GetChannelCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("StreamService", "GetChannel", {})
15
16
  .n("StreamServiceClient", "GetChannelCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_GetChannelCommand)
18
- .de(Aws_restJson1_1.de_GetChannelCommand)
17
+ .sc(schemas_0_1.GetChannel$)
19
18
  .build() {
20
19
  }
21
20
  exports.GetChannelCommand = GetChannelCommand;