@wildix/stream-client 0.0.13 → 3.1.10

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 -381
  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 -365
  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 -73
  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 +12 -7
  161. package/dist-types/commands/CreateKiteChannelCommand.d.ts +12 -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 +12 -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 +12 -7
  173. package/dist-types/commands/GetMessageCommand.d.ts +11 -7
  174. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +12 -7
  175. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +12 -7
  176. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +12 -7
  177. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +12 -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 +12 -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 +12 -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 +12 -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 +12 -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 +12 -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 +74 -669
  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 +13 -39
  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 -2463
  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 -2338
  240. package/dist-types/commands/SearchChannelsCommand.d.ts +0 -159
  241. package/dist-types/commands/SearchMessagesCommand.d.ts +0 -204
  242. package/dist-types/models/index.d.ts +0 -1
  243. package/dist-types/protocols/Aws_restJson1.d.ts +0 -542
@@ -1,4 +1,4 @@
1
- import { StreamServiceClient, } from "./StreamServiceClient";
1
+ import { createAggregatedClient } from "@smithy/core/client";
2
2
  import { AddChannelMemberCommand, } from "./commands/AddChannelMemberCommand";
3
3
  import { AddChannelMembersCommand, } from "./commands/AddChannelMembersCommand";
4
4
  import { AssignChannelCommand, } from "./commands/AssignChannelCommand";
@@ -14,7 +14,7 @@ import { GetChannelCommand, } from "./commands/GetChannelCommand";
14
14
  import { GetChannelMemberCommand, } from "./commands/GetChannelMemberCommand";
15
15
  import { GetDirectChannelIdCommand, } from "./commands/GetDirectChannelIdCommand";
16
16
  import { GetFilePresignedDownloadUrlCommand, } from "./commands/GetFilePresignedDownloadUrlCommand";
17
- import { GetInboxCommand, } from "./commands/GetInboxCommand";
17
+ import { GetInboxCommand } from "./commands/GetInboxCommand";
18
18
  import { GetMessageCommand, } from "./commands/GetMessageCommand";
19
19
  import { GetOrCreateDirectChannelCommand, } from "./commands/GetOrCreateDirectChannelCommand";
20
20
  import { GetOrCreateSmsChannelCommand, } from "./commands/GetOrCreateSmsChannelCommand";
@@ -22,7 +22,7 @@ import { GetOrCreateTelephonyChannelCommand, } from "./commands/GetOrCreateTelep
22
22
  import { GetOrCreateWhatsAppChannelCommand, } from "./commands/GetOrCreateWhatsAppChannelCommand";
23
23
  import { GetSmsChannelIdCommand, } from "./commands/GetSmsChannelIdCommand";
24
24
  import { GetTelephonyChannelIdCommand, } from "./commands/GetTelephonyChannelIdCommand";
25
- import { GetTokenCommand, } from "./commands/GetTokenCommand";
25
+ import { GetTokenCommand } from "./commands/GetTokenCommand";
26
26
  import { GetUploadedFileInfoCommand, } from "./commands/GetUploadedFileInfoCommand";
27
27
  import { GetWhatsAppChannelIdCommand, } from "./commands/GetWhatsAppChannelIdCommand";
28
28
  import { HideChannelCommand, } from "./commands/HideChannelCommand";
@@ -33,7 +33,7 @@ import { ListChannelMembersReadStatusCommand, } from "./commands/ListChannelMemb
33
33
  import { ListChannelsCommand, } from "./commands/ListChannelsCommand";
34
34
  import { ListMentionsCommand, } from "./commands/ListMentionsCommand";
35
35
  import { ListMessagesCommand, } from "./commands/ListMessagesCommand";
36
- import { MarkReadCommand, } from "./commands/MarkReadCommand";
36
+ import { MarkReadCommand } from "./commands/MarkReadCommand";
37
37
  import { MarkUnreadCommand, } from "./commands/MarkUnreadCommand";
38
38
  import { MoveChannelToSectionCommand, } from "./commands/MoveChannelToSectionCommand";
39
39
  import { MuteChannelCommand, } from "./commands/MuteChannelCommand";
@@ -44,9 +44,7 @@ import { PinMessageCommand, } from "./commands/PinMessageCommand";
44
44
  import { QueryChannelsCommand, } from "./commands/QueryChannelsCommand";
45
45
  import { RemoveChannelFromSectionCommand, } from "./commands/RemoveChannelFromSectionCommand";
46
46
  import { RenameSectionCommand, } from "./commands/RenameSectionCommand";
47
- import { SearchChannelsCommand, } from "./commands/SearchChannelsCommand";
48
- import { SearchMessagesCommand, } from "./commands/SearchMessagesCommand";
49
- import { SendGiphyCommand, } from "./commands/SendGiphyCommand";
47
+ import { SendGiphyCommand } from "./commands/SendGiphyCommand";
50
48
  import { SendMessageCommand, } from "./commands/SendMessageCommand";
51
49
  import { SendMessageReactionCommand, } from "./commands/SendMessageReactionCommand";
52
50
  import { SendSystemMessageCommand, } from "./commands/SendSystemMessageCommand";
@@ -59,7 +57,7 @@ import { UnpinMessageCommand, } from "./commands/UnpinMessageCommand";
59
57
  import { UpdateChannelCommand, } from "./commands/UpdateChannelCommand";
60
58
  import { UpdateMessageCommand, } from "./commands/UpdateMessageCommand";
61
59
  import { UploadFileCommand, } from "./commands/UploadFileCommand";
62
- import { createAggregatedClient } from "@smithy/smithy-client";
60
+ import { StreamServiceClient } from "./StreamServiceClient";
63
61
  const commands = {
64
62
  AddChannelMemberCommand,
65
63
  AddChannelMembersCommand,
@@ -106,8 +104,6 @@ const commands = {
106
104
  QueryChannelsCommand,
107
105
  RemoveChannelFromSectionCommand,
108
106
  RenameSectionCommand,
109
- SearchChannelsCommand,
110
- SearchMessagesCommand,
111
107
  SendGiphyCommand,
112
108
  SendMessageCommand,
113
109
  SendMessageReactionCommand,
@@ -1,36 +1,43 @@
1
+ import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
2
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
3
+ import { Client as __Client, } from "@smithy/core/client";
4
+ import { resolveEndpointConfig } from "@smithy/core/endpoints";
5
+ import { getContentLengthPlugin } from "@smithy/core/protocols";
6
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
8
+ import { defaultStreamServiceHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
9
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
1
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
2
- import { resolveRuntimeExtensions, } from "./runtimeExtensions";
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";
6
- import { Client as __Client, } from "@smithy/smithy-client";
7
- import { authorizationMiddleware } from '@wildix/smithy-utils';
11
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
8
12
  export { __Client };
9
13
  export class StreamServiceClient extends __Client {
10
14
  config;
11
15
  constructor(...[configuration]) {
12
- let _config_0 = __getRuntimeConfig(configuration || {});
16
+ const _config_0 = __getRuntimeConfig(configuration || {});
13
17
  super(_config_0);
14
18
  this.initConfig = _config_0;
15
- let _config_1 = resolveUserAgentConfig(_config_0);
16
- let _config_2 = resolveRetryConfig(_config_1);
17
- let _config_3 = resolveRuntimeExtensions(_config_2, configuration?.extensions || []);
18
- const serviceRegion = (configuration.serviceRegion && ['eu-1', 'us-1'].includes(configuration.serviceRegion)) ? configuration.serviceRegion : 'eu-1';
19
- const hostname = ['stable', 'stage'].includes(configuration.env || '') ? `${serviceRegion}.stream-${configuration.env}.wildix.com` : `${serviceRegion}.stream.wildix.com`;
20
- const endpoint = configuration.endpoint || (() => {
21
- return {
22
- hostname,
23
- protocol: "https",
24
- port: '443',
25
- path: ''
26
- };
27
- });
28
- const config = { ..._config_3, endpoint };
29
- this.config = config;
30
- this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
19
+ const _config_1 = resolveClientEndpointParameters(_config_0);
20
+ const _config_2 = resolveUserAgentConfig(_config_1);
21
+ const _config_3 = resolveRetryConfig(_config_2);
22
+ const _config_4 = resolveHostHeaderConfig(_config_3);
23
+ const _config_5 = resolveEndpointConfig(_config_4);
24
+ const _config_6 = resolveHttpAuthSchemeConfig(_config_5);
25
+ const _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []);
26
+ this.config = _config_7;
27
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
28
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
29
  this.middlewareStack.use(getRetryPlugin(this.config));
33
30
  this.middlewareStack.use(getContentLengthPlugin(this.config));
31
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
32
+ this.middlewareStack.use(getLoggerPlugin(this.config));
33
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
34
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
35
+ httpAuthSchemeParametersProvider: defaultStreamServiceHttpAuthSchemeParametersProvider,
36
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
37
+ "smithy.api#httpBearerAuth": config.token,
38
+ }),
39
+ }));
40
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
34
41
  }
35
42
  destroy() {
36
43
  super.destroy();
@@ -0,0 +1,38 @@
1
+ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ let _token = runtimeConfig.token;
5
+ return {
6
+ setHttpAuthScheme(httpAuthScheme) {
7
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
8
+ if (index === -1) {
9
+ _httpAuthSchemes.push(httpAuthScheme);
10
+ }
11
+ else {
12
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
13
+ }
14
+ },
15
+ httpAuthSchemes() {
16
+ return _httpAuthSchemes;
17
+ },
18
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
19
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
20
+ },
21
+ httpAuthSchemeProvider() {
22
+ return _httpAuthSchemeProvider;
23
+ },
24
+ setToken(token) {
25
+ _token = token;
26
+ },
27
+ token() {
28
+ return _token;
29
+ },
30
+ };
31
+ };
32
+ export const resolveHttpAuthRuntimeConfig = (config) => {
33
+ return {
34
+ httpAuthSchemes: config.httpAuthSchemes(),
35
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
+ token: config.token(),
37
+ };
38
+ };
@@ -0,0 +1,52 @@
1
+ import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
3
+ export const defaultStreamServiceHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
+ return {
5
+ operation: getSmithyContext(context).operation,
6
+ };
7
+ };
8
+ function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
9
+ return {
10
+ schemeId: "smithy.api#httpBearerAuth",
11
+ };
12
+ }
13
+ function createWildixAuthApiKeysHttpAuthOption(authParameters) {
14
+ return {
15
+ schemeId: "wildix.auth#apiKeys",
16
+ };
17
+ }
18
+ function createWildixAuthPbxHttpAuthOption(authParameters) {
19
+ return {
20
+ schemeId: "wildix.auth#pbx",
21
+ };
22
+ }
23
+ function createWildixAuthS2sHttpAuthOption(authParameters) {
24
+ return {
25
+ schemeId: "wildix.auth#s2s",
26
+ };
27
+ }
28
+ function createWildixAuthXbsHttpAuthOption(authParameters) {
29
+ return {
30
+ schemeId: "wildix.auth#xbs",
31
+ };
32
+ }
33
+ export const defaultStreamServiceHttpAuthSchemeProvider = (authParameters) => {
34
+ const options = [];
35
+ switch (authParameters.operation) {
36
+ default: {
37
+ options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
38
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
39
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
40
+ options.push(createWildixAuthPbxHttpAuthOption(authParameters));
41
+ options.push(createWildixAuthApiKeysHttpAuthOption(authParameters));
42
+ }
43
+ }
44
+ return options;
45
+ };
46
+ export const resolveHttpAuthSchemeConfig = (config) => {
47
+ const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
48
+ return Object.assign(config, {
49
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
50
+ token,
51
+ });
52
+ };
@@ -1,17 +1,16 @@
1
- import { de_AddChannelMemberCommand, se_AddChannelMemberCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { AddChannelMember$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class AddChannelMemberCommand extends $Command.classBuilder()
6
+ export class AddChannelMemberCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("StreamService", "AddChannelMember", {})
12
13
  .n("StreamServiceClient", "AddChannelMemberCommand")
13
- .f(void 0, void 0)
14
- .ser(se_AddChannelMemberCommand)
15
- .de(de_AddChannelMemberCommand)
14
+ .sc(AddChannelMember$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_AddChannelMembersCommand, se_AddChannelMembersCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { AddChannelMembers$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class AddChannelMembersCommand extends $Command.classBuilder()
6
+ export class AddChannelMembersCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("StreamService", "AddChannelMembers", {})
12
13
  .n("StreamServiceClient", "AddChannelMembersCommand")
13
- .f(void 0, void 0)
14
- .ser(se_AddChannelMembersCommand)
15
- .de(de_AddChannelMembersCommand)
14
+ .sc(AddChannelMembers$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_AssignChannelCommand, se_AssignChannelCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { AssignChannel$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class AssignChannelCommand extends $Command.classBuilder()
6
+ export class AssignChannelCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("StreamService", "AssignChannel", {})
12
13
  .n("StreamServiceClient", "AssignChannelCommand")
13
- .f(void 0, void 0)
14
- .ser(se_AssignChannelCommand)
15
- .de(de_AssignChannelCommand)
14
+ .sc(AssignChannel$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_CreateGroupChannelCommand, se_CreateGroupChannelCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateGroupChannel$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class CreateGroupChannelCommand extends $Command.classBuilder()
6
+ export class CreateGroupChannelCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("StreamService", "CreateGroupChannel", {})
12
13
  .n("StreamServiceClient", "CreateGroupChannelCommand")
13
- .f(void 0, void 0)
14
- .ser(se_CreateGroupChannelCommand)
15
- .de(de_CreateGroupChannelCommand)
14
+ .sc(CreateGroupChannel$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_CreateKiteChannelCommand, se_CreateKiteChannelCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateKiteChannel$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class CreateKiteChannelCommand extends $Command.classBuilder()
6
+ export class CreateKiteChannelCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("StreamService", "CreateKiteChannel", {})
12
13
  .n("StreamServiceClient", "CreateKiteChannelCommand")
13
- .f(void 0, void 0)
14
- .ser(se_CreateKiteChannelCommand)
15
- .de(de_CreateKiteChannelCommand)
14
+ .sc(CreateKiteChannel$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_CreateSectionCommand, se_CreateSectionCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateSection$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class CreateSectionCommand extends $Command.classBuilder()
6
+ export class CreateSectionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("StreamService", "CreateSection", {})
12
13
  .n("StreamServiceClient", "CreateSectionCommand")
13
- .f(void 0, void 0)
14
- .ser(se_CreateSectionCommand)
15
- .de(de_CreateSectionCommand)
14
+ .sc(CreateSection$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_DeleteChannelCommand, se_DeleteChannelCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteChannel$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class DeleteChannelCommand extends $Command.classBuilder()
6
+ export class DeleteChannelCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("StreamService", "DeleteChannel", {})
12
13
  .n("StreamServiceClient", "DeleteChannelCommand")
13
- .f(void 0, void 0)
14
- .ser(se_DeleteChannelCommand)
15
- .de(de_DeleteChannelCommand)
14
+ .sc(DeleteChannel$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_DeleteChannelMemberCommand, se_DeleteChannelMemberCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteChannelMember$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class DeleteChannelMemberCommand extends $Command.classBuilder()
6
+ export class DeleteChannelMemberCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("StreamService", "DeleteChannelMember", {})
12
13
  .n("StreamServiceClient", "DeleteChannelMemberCommand")
13
- .f(void 0, void 0)
14
- .ser(se_DeleteChannelMemberCommand)
15
- .de(de_DeleteChannelMemberCommand)
14
+ .sc(DeleteChannelMember$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_DeleteMessageCommand, se_DeleteMessageCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteMessage$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class DeleteMessageCommand extends $Command.classBuilder()
6
+ export class DeleteMessageCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("StreamService", "DeleteMessage", {})
12
13
  .n("StreamServiceClient", "DeleteMessageCommand")
13
- .f(void 0, void 0)
14
- .ser(se_DeleteMessageCommand)
15
- .de(de_DeleteMessageCommand)
14
+ .sc(DeleteMessage$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_DeleteMessageReactionCommand, se_DeleteMessageReactionCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteMessageReaction$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class DeleteMessageReactionCommand extends $Command.classBuilder()
6
+ export class DeleteMessageReactionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("StreamService", "DeleteMessageReaction", {})
12
13
  .n("StreamServiceClient", "DeleteMessageReactionCommand")
13
- .f(void 0, void 0)
14
- .ser(se_DeleteMessageReactionCommand)
15
- .de(de_DeleteMessageReactionCommand)
14
+ .sc(DeleteMessageReaction$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_DeleteSectionCommand, se_DeleteSectionCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteSection$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class DeleteSectionCommand extends $Command.classBuilder()
6
+ export class DeleteSectionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("StreamService", "DeleteSection", {})
12
13
  .n("StreamServiceClient", "DeleteSectionCommand")
13
- .f(void 0, void 0)
14
- .ser(se_DeleteSectionCommand)
15
- .de(de_DeleteSectionCommand)
14
+ .sc(DeleteSection$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetChannelCommand, se_GetChannelCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetChannel$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetChannelCommand extends $Command.classBuilder()
6
+ export class GetChannelCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("StreamService", "GetChannel", {})
12
13
  .n("StreamServiceClient", "GetChannelCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetChannelCommand)
15
- .de(de_GetChannelCommand)
14
+ .sc(GetChannel$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetChannelMemberCommand, se_GetChannelMemberCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetChannelMember$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetChannelMemberCommand extends $Command.classBuilder()
6
+ export class GetChannelMemberCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("StreamService", "GetChannelMember", {})
12
13
  .n("StreamServiceClient", "GetChannelMemberCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetChannelMemberCommand)
15
- .de(de_GetChannelMemberCommand)
14
+ .sc(GetChannelMember$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetDirectChannelIdCommand, se_GetDirectChannelIdCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetDirectChannelId$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetDirectChannelIdCommand extends $Command.classBuilder()
6
+ export class GetDirectChannelIdCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("StreamService", "GetDirectChannelId", {})
12
13
  .n("StreamServiceClient", "GetDirectChannelIdCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetDirectChannelIdCommand)
15
- .de(de_GetDirectChannelIdCommand)
14
+ .sc(GetDirectChannelId$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetFilePresignedDownloadUrlCommand, se_GetFilePresignedDownloadUrlCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetFilePresignedDownloadUrl$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetFilePresignedDownloadUrlCommand extends $Command.classBuilder()
6
+ export class GetFilePresignedDownloadUrlCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("StreamService", "GetFilePresignedDownloadUrl", {})
12
13
  .n("StreamServiceClient", "GetFilePresignedDownloadUrlCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetFilePresignedDownloadUrlCommand)
15
- .de(de_GetFilePresignedDownloadUrlCommand)
14
+ .sc(GetFilePresignedDownloadUrl$)
16
15
  .build() {
17
16
  }