@wildix/xbees-users-client 1.3.2 → 3.1.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 (198) hide show
  1. package/dist-cjs/Users.js +3 -3
  2. package/dist-cjs/UsersClient.js +34 -26
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +81 -0
  5. package/dist-cjs/commands/BatchGetUsersCommand.js +10 -11
  6. package/dist-cjs/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +10 -11
  7. package/dist-cjs/commands/BatchGetUsersPbxLinkDataCommand.js +10 -11
  8. package/dist-cjs/commands/BatchGetUsersPbxLinkDataV1Command.js +10 -11
  9. package/dist-cjs/commands/ChangeUserEmailCommand.js +10 -11
  10. package/dist-cjs/commands/CreateAnonymousSessionCommand.js +10 -11
  11. package/dist-cjs/commands/CreateBotApiKeyCommand.js +10 -11
  12. package/dist-cjs/commands/CreateBotCommand.js +10 -11
  13. package/dist-cjs/commands/CreateSystemBotCommand.js +10 -11
  14. package/dist-cjs/commands/DeleteBotApiKeyCommand.js +10 -11
  15. package/dist-cjs/commands/DeleteBotCommand.js +10 -11
  16. package/dist-cjs/commands/GetAccountCommand.js +10 -11
  17. package/dist-cjs/commands/GetAppVersionCommand.js +10 -11
  18. package/dist-cjs/commands/GetBotCallbackCommand.js +10 -11
  19. package/dist-cjs/commands/GetBotCommand.js +10 -11
  20. package/dist-cjs/commands/GetUserCommand.js +10 -11
  21. package/dist-cjs/commands/GetUserEmailNotificationsSettingsCommand.js +10 -11
  22. package/dist-cjs/commands/GetUserPbxLinkDataCommand.js +10 -11
  23. package/dist-cjs/commands/GetUserPbxLinkSuggestionCommand.js +10 -11
  24. package/dist-cjs/commands/GetUserPbxLinkSuggestionV1Command.js +10 -11
  25. package/dist-cjs/commands/IntelligenceSearchCommand.js +10 -11
  26. package/dist-cjs/commands/InviteCommand.js +10 -11
  27. package/dist-cjs/commands/LinkIdentityCommand.js +10 -11
  28. package/dist-cjs/commands/ListBotApiKeysCommand.js +10 -11
  29. package/dist-cjs/commands/ListBotsCommand.js +10 -11
  30. package/dist-cjs/commands/ListIdentitiesCommand.js +10 -11
  31. package/dist-cjs/commands/ListWorkspacesCommand.js +10 -11
  32. package/dist-cjs/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +10 -11
  33. package/dist-cjs/commands/QueryColleaguesCommand.js +10 -11
  34. package/dist-cjs/commands/QueryUserCommand.js +10 -11
  35. package/dist-cjs/commands/QueryUsersCommand.js +10 -11
  36. package/dist-cjs/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +10 -11
  37. package/dist-cjs/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +10 -11
  38. package/dist-cjs/commands/UnlinkIdentityCommand.js +10 -11
  39. package/dist-cjs/commands/UnlinkWorkspaceCommand.js +10 -11
  40. package/dist-cjs/commands/UpdateAccountCommand.js +10 -11
  41. package/dist-cjs/commands/UpdateBotCallbackCommand.js +10 -11
  42. package/dist-cjs/commands/UpdateBotCommand.js +10 -11
  43. package/dist-cjs/commands/UpdateUserEmailNotificationsSettingsCommand.js +10 -11
  44. package/dist-cjs/commands/UpdateWorkspaceCommand.js +10 -11
  45. package/dist-cjs/commands/UploadPictureCommand.js +10 -11
  46. package/dist-cjs/commands/UploadPictureV1Command.js +10 -11
  47. package/dist-cjs/commands/VerifyBotSecretKeyCommand.js +10 -11
  48. package/dist-cjs/commands/VerifyBotSecretKeyV1Command.js +10 -11
  49. package/dist-cjs/commands/VerifyIdentityCommand.js +10 -11
  50. package/dist-cjs/commands/index.js +4 -4
  51. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  52. package/dist-cjs/endpoint/bdd.js +28 -0
  53. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  54. package/dist-cjs/index.js +4 -1
  55. package/dist-cjs/models/UsersServiceException.js +3 -3
  56. package/dist-cjs/models/enums.js +86 -0
  57. package/dist-cjs/models/errors.js +225 -0
  58. package/dist-cjs/models/models_0.js +0 -400
  59. package/dist-cjs/runtimeConfig.browser.js +11 -11
  60. package/dist-cjs/runtimeConfig.js +22 -18
  61. package/dist-cjs/runtimeConfig.shared.js +35 -10
  62. package/dist-cjs/runtimeExtensions.js +6 -5
  63. package/dist-cjs/schemas/schemas_0.js +1463 -0
  64. package/dist-es/Users.js +10 -10
  65. package/dist-es/UsersClient.js +30 -22
  66. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  67. package/dist-es/auth/httpAuthSchemeProvider.js +75 -0
  68. package/dist-es/commands/BatchGetUsersCommand.js +9 -10
  69. package/dist-es/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +9 -10
  70. package/dist-es/commands/BatchGetUsersPbxLinkDataCommand.js +9 -10
  71. package/dist-es/commands/BatchGetUsersPbxLinkDataV1Command.js +9 -10
  72. package/dist-es/commands/ChangeUserEmailCommand.js +9 -10
  73. package/dist-es/commands/CreateAnonymousSessionCommand.js +9 -10
  74. package/dist-es/commands/CreateBotApiKeyCommand.js +9 -10
  75. package/dist-es/commands/CreateBotCommand.js +9 -10
  76. package/dist-es/commands/CreateSystemBotCommand.js +9 -10
  77. package/dist-es/commands/DeleteBotApiKeyCommand.js +9 -10
  78. package/dist-es/commands/DeleteBotCommand.js +9 -10
  79. package/dist-es/commands/GetAccountCommand.js +9 -10
  80. package/dist-es/commands/GetAppVersionCommand.js +9 -10
  81. package/dist-es/commands/GetBotCallbackCommand.js +9 -10
  82. package/dist-es/commands/GetBotCommand.js +9 -10
  83. package/dist-es/commands/GetUserCommand.js +9 -10
  84. package/dist-es/commands/GetUserEmailNotificationsSettingsCommand.js +9 -10
  85. package/dist-es/commands/GetUserPbxLinkDataCommand.js +9 -10
  86. package/dist-es/commands/GetUserPbxLinkSuggestionCommand.js +9 -10
  87. package/dist-es/commands/GetUserPbxLinkSuggestionV1Command.js +9 -10
  88. package/dist-es/commands/IntelligenceSearchCommand.js +9 -10
  89. package/dist-es/commands/InviteCommand.js +9 -10
  90. package/dist-es/commands/LinkIdentityCommand.js +9 -10
  91. package/dist-es/commands/ListBotApiKeysCommand.js +9 -10
  92. package/dist-es/commands/ListBotsCommand.js +9 -10
  93. package/dist-es/commands/ListIdentitiesCommand.js +9 -10
  94. package/dist-es/commands/ListWorkspacesCommand.js +9 -10
  95. package/dist-es/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +9 -10
  96. package/dist-es/commands/QueryColleaguesCommand.js +9 -10
  97. package/dist-es/commands/QueryUserCommand.js +9 -10
  98. package/dist-es/commands/QueryUsersCommand.js +9 -10
  99. package/dist-es/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +9 -10
  100. package/dist-es/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +9 -10
  101. package/dist-es/commands/UnlinkIdentityCommand.js +9 -10
  102. package/dist-es/commands/UnlinkWorkspaceCommand.js +9 -10
  103. package/dist-es/commands/UpdateAccountCommand.js +9 -10
  104. package/dist-es/commands/UpdateBotCallbackCommand.js +9 -10
  105. package/dist-es/commands/UpdateBotCommand.js +9 -10
  106. package/dist-es/commands/UpdateUserEmailNotificationsSettingsCommand.js +9 -10
  107. package/dist-es/commands/UpdateWorkspaceCommand.js +9 -10
  108. package/dist-es/commands/UploadPictureCommand.js +9 -10
  109. package/dist-es/commands/UploadPictureV1Command.js +9 -10
  110. package/dist-es/commands/VerifyBotSecretKeyCommand.js +9 -10
  111. package/dist-es/commands/VerifyBotSecretKeyV1Command.js +9 -10
  112. package/dist-es/commands/VerifyIdentityCommand.js +9 -10
  113. package/dist-es/commands/index.js +4 -4
  114. package/dist-es/endpoint/EndpointParameters.js +12 -0
  115. package/dist-es/endpoint/bdd.js +25 -0
  116. package/dist-es/endpoint/endpointResolver.js +12 -0
  117. package/dist-es/index.js +4 -1
  118. package/dist-es/models/UsersServiceException.js +1 -1
  119. package/dist-es/models/enums.js +83 -0
  120. package/dist-es/models/errors.js +205 -0
  121. package/dist-es/models/models_0.js +1 -382
  122. package/dist-es/runtimeConfig.browser.js +7 -7
  123. package/dist-es/runtimeConfig.js +17 -13
  124. package/dist-es/runtimeConfig.shared.js +29 -4
  125. package/dist-es/runtimeExtensions.js +6 -5
  126. package/dist-es/schemas/schemas_0.js +1456 -0
  127. package/dist-types/Users.d.ts +46 -46
  128. package/dist-types/UsersClient.d.ts +75 -57
  129. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  130. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  131. package/dist-types/commands/BatchGetUsersCommand.d.ts +11 -7
  132. package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +11 -7
  133. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +11 -7
  134. package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +11 -7
  135. package/dist-types/commands/ChangeUserEmailCommand.d.ts +11 -7
  136. package/dist-types/commands/CreateAnonymousSessionCommand.d.ts +11 -7
  137. package/dist-types/commands/CreateBotApiKeyCommand.d.ts +11 -7
  138. package/dist-types/commands/CreateBotCommand.d.ts +11 -7
  139. package/dist-types/commands/CreateSystemBotCommand.d.ts +11 -7
  140. package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +11 -7
  141. package/dist-types/commands/DeleteBotCommand.d.ts +11 -7
  142. package/dist-types/commands/GetAccountCommand.d.ts +11 -7
  143. package/dist-types/commands/GetAppVersionCommand.d.ts +11 -7
  144. package/dist-types/commands/GetBotCallbackCommand.d.ts +11 -7
  145. package/dist-types/commands/GetBotCommand.d.ts +11 -7
  146. package/dist-types/commands/GetUserCommand.d.ts +11 -7
  147. package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +11 -7
  148. package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +11 -7
  149. package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +11 -7
  150. package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +11 -7
  151. package/dist-types/commands/IntelligenceSearchCommand.d.ts +11 -7
  152. package/dist-types/commands/InviteCommand.d.ts +11 -7
  153. package/dist-types/commands/LinkIdentityCommand.d.ts +11 -7
  154. package/dist-types/commands/ListBotApiKeysCommand.d.ts +11 -7
  155. package/dist-types/commands/ListBotsCommand.d.ts +11 -7
  156. package/dist-types/commands/ListIdentitiesCommand.d.ts +11 -7
  157. package/dist-types/commands/ListWorkspacesCommand.d.ts +11 -7
  158. package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +11 -7
  159. package/dist-types/commands/QueryColleaguesCommand.d.ts +11 -7
  160. package/dist-types/commands/QueryUserCommand.d.ts +11 -7
  161. package/dist-types/commands/QueryUsersCommand.d.ts +11 -7
  162. package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +11 -7
  163. package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +11 -7
  164. package/dist-types/commands/UnlinkIdentityCommand.d.ts +11 -7
  165. package/dist-types/commands/UnlinkWorkspaceCommand.d.ts +11 -7
  166. package/dist-types/commands/UpdateAccountCommand.d.ts +11 -7
  167. package/dist-types/commands/UpdateBotCallbackCommand.d.ts +11 -7
  168. package/dist-types/commands/UpdateBotCommand.d.ts +11 -7
  169. package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +11 -7
  170. package/dist-types/commands/UpdateWorkspaceCommand.d.ts +11 -7
  171. package/dist-types/commands/UploadPictureCommand.d.ts +11 -7
  172. package/dist-types/commands/UploadPictureV1Command.d.ts +12 -8
  173. package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +11 -7
  174. package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +11 -7
  175. package/dist-types/commands/VerifyIdentityCommand.d.ts +11 -7
  176. package/dist-types/commands/index.d.ts +4 -4
  177. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  178. package/dist-types/endpoint/bdd.d.ts +2 -0
  179. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  180. package/dist-types/extensionConfiguration.d.ts +4 -3
  181. package/dist-types/index.d.ts +5 -1
  182. package/dist-types/models/UsersServiceException.d.ts +1 -1
  183. package/dist-types/models/enums.d.ts +196 -0
  184. package/dist-types/models/errors.d.ts +189 -0
  185. package/dist-types/models/models_0.d.ts +75 -435
  186. package/dist-types/runtimeConfig.browser.d.ts +39 -16
  187. package/dist-types/runtimeConfig.d.ts +38 -15
  188. package/dist-types/runtimeConfig.native.d.ts +40 -17
  189. package/dist-types/runtimeConfig.shared.d.ts +24 -3
  190. package/dist-types/runtimeExtensions.d.ts +1 -1
  191. package/dist-types/schemas/schemas_0.d.ts +217 -0
  192. package/package.json +14 -40
  193. package/dist-cjs/models/index.js +0 -4
  194. package/dist-cjs/protocols/Aws_restJson1.js +0 -1915
  195. package/dist-es/models/index.js +0 -1
  196. package/dist-es/protocols/Aws_restJson1.js +0 -1821
  197. package/dist-types/models/index.d.ts +0 -1
  198. package/dist-types/protocols/Aws_restJson1.d.ts +0 -407
package/dist-es/Users.js CHANGED
@@ -1,4 +1,4 @@
1
- import { UsersClient, } from "./UsersClient";
1
+ import { createAggregatedClient } from "@smithy/core/client";
2
2
  import { BatchGetUsersCommand, } from "./commands/BatchGetUsersCommand";
3
3
  import { BatchGetUsersEmailNotificationsSettingsCommand, } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
4
4
  import { BatchGetUsersPbxLinkDataCommand, } from "./commands/BatchGetUsersPbxLinkDataCommand";
@@ -6,29 +6,29 @@ import { BatchGetUsersPbxLinkDataV1Command, } from "./commands/BatchGetUsersPbxL
6
6
  import { ChangeUserEmailCommand, } from "./commands/ChangeUserEmailCommand";
7
7
  import { CreateAnonymousSessionCommand, } from "./commands/CreateAnonymousSessionCommand";
8
8
  import { CreateBotApiKeyCommand, } from "./commands/CreateBotApiKeyCommand";
9
- import { CreateBotCommand, } from "./commands/CreateBotCommand";
9
+ import { CreateBotCommand } from "./commands/CreateBotCommand";
10
10
  import { CreateSystemBotCommand, } from "./commands/CreateSystemBotCommand";
11
11
  import { DeleteBotApiKeyCommand, } from "./commands/DeleteBotApiKeyCommand";
12
- import { DeleteBotCommand, } from "./commands/DeleteBotCommand";
12
+ import { DeleteBotCommand } from "./commands/DeleteBotCommand";
13
13
  import { GetAccountCommand, } from "./commands/GetAccountCommand";
14
14
  import { GetAppVersionCommand, } from "./commands/GetAppVersionCommand";
15
15
  import { GetBotCallbackCommand, } from "./commands/GetBotCallbackCommand";
16
- import { GetBotCommand, } from "./commands/GetBotCommand";
17
- import { GetUserCommand, } from "./commands/GetUserCommand";
16
+ import { GetBotCommand } from "./commands/GetBotCommand";
17
+ import { GetUserCommand } from "./commands/GetUserCommand";
18
18
  import { GetUserEmailNotificationsSettingsCommand, } from "./commands/GetUserEmailNotificationsSettingsCommand";
19
19
  import { GetUserPbxLinkDataCommand, } from "./commands/GetUserPbxLinkDataCommand";
20
20
  import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSuggestionCommand";
21
21
  import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
22
22
  import { IntelligenceSearchCommand, } from "./commands/IntelligenceSearchCommand";
23
- import { InviteCommand, } from "./commands/InviteCommand";
23
+ import { InviteCommand } from "./commands/InviteCommand";
24
24
  import { LinkIdentityCommand, } from "./commands/LinkIdentityCommand";
25
25
  import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
26
- import { ListBotsCommand, } from "./commands/ListBotsCommand";
26
+ import { ListBotsCommand } from "./commands/ListBotsCommand";
27
27
  import { ListIdentitiesCommand, } from "./commands/ListIdentitiesCommand";
28
28
  import { ListWorkspacesCommand, } from "./commands/ListWorkspacesCommand";
29
29
  import { PartialUpdateUserEmailNotificationsSettingsCommand, } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
30
30
  import { QueryColleaguesCommand, } from "./commands/QueryColleaguesCommand";
31
- import { QueryUserCommand, } from "./commands/QueryUserCommand";
31
+ import { QueryUserCommand } from "./commands/QueryUserCommand";
32
32
  import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
33
33
  import { ToggleTranscriptionEmailNotificationsSubscriptionCommand, } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
34
34
  import { ToggleUnreadEmailNotificationsSubscriptionCommand, } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
@@ -36,7 +36,7 @@ import { UnlinkIdentityCommand, } from "./commands/UnlinkIdentityCommand";
36
36
  import { UnlinkWorkspaceCommand, } from "./commands/UnlinkWorkspaceCommand";
37
37
  import { UpdateAccountCommand, } from "./commands/UpdateAccountCommand";
38
38
  import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
39
- import { UpdateBotCommand, } from "./commands/UpdateBotCommand";
39
+ import { UpdateBotCommand } from "./commands/UpdateBotCommand";
40
40
  import { UpdateUserEmailNotificationsSettingsCommand, } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
41
41
  import { UpdateWorkspaceCommand, } from "./commands/UpdateWorkspaceCommand";
42
42
  import { UploadPictureCommand, } from "./commands/UploadPictureCommand";
@@ -44,7 +44,7 @@ import { UploadPictureV1Command, } from "./commands/UploadPictureV1Command";
44
44
  import { VerifyBotSecretKeyCommand, } from "./commands/VerifyBotSecretKeyCommand";
45
45
  import { VerifyBotSecretKeyV1Command, } from "./commands/VerifyBotSecretKeyV1Command";
46
46
  import { VerifyIdentityCommand, } from "./commands/VerifyIdentityCommand";
47
- import { createAggregatedClient } from "@smithy/smithy-client";
47
+ import { UsersClient } from "./UsersClient";
48
48
  const commands = {
49
49
  BatchGetUsersCommand,
50
50
  BatchGetUsersEmailNotificationsSettingsCommand,
@@ -1,35 +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 { defaultUsersHttpAuthSchemeParametersProvider, 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 UsersClient 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 hostname = ['stable', 'stage'].includes(configuration.env || '') ? `api-${configuration.env}.x-bees.com` : 'api.x-bees.com';
19
- const endpoint = () => {
20
- return {
21
- hostname,
22
- protocol: "https",
23
- port: '443',
24
- path: ''
25
- };
26
- };
27
- const config = { ..._config_3, endpoint };
28
- this.config = config;
29
- 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));
30
28
  this.middlewareStack.use(getUserAgentPlugin(this.config));
31
29
  this.middlewareStack.use(getRetryPlugin(this.config));
32
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: defaultUsersHttpAuthSchemeParametersProvider,
36
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
37
+ "smithy.api#httpBearerAuth": config.token,
38
+ }),
39
+ }));
40
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
33
41
  }
34
42
  destroy() {
35
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,75 @@
1
+ import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
3
+ export const defaultUsersHttpAuthSchemeParametersProvider = 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 createSmithyApiNoAuthHttpAuthOption(authParameters) {
14
+ return {
15
+ schemeId: "smithy.api#noAuth",
16
+ };
17
+ }
18
+ function createWildixAuthApiKeysHttpAuthOption(authParameters) {
19
+ return {
20
+ schemeId: "wildix.auth#apiKeys",
21
+ };
22
+ }
23
+ function createWildixAuthBotHttpAuthOption(authParameters) {
24
+ return {
25
+ schemeId: "wildix.auth#bot",
26
+ };
27
+ }
28
+ function createWildixAuthPbxHttpAuthOption(authParameters) {
29
+ return {
30
+ schemeId: "wildix.auth#pbx",
31
+ };
32
+ }
33
+ function createWildixAuthS2sHttpAuthOption(authParameters) {
34
+ return {
35
+ schemeId: "wildix.auth#s2s",
36
+ };
37
+ }
38
+ function createWildixAuthXbsHttpAuthOption(authParameters) {
39
+ return {
40
+ schemeId: "wildix.auth#xbs",
41
+ };
42
+ }
43
+ export const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
44
+ const options = [];
45
+ switch (authParameters.operation) {
46
+ case "CreateAnonymousSession":
47
+ {
48
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
49
+ break;
50
+ }
51
+ ;
52
+ case "UpdateWorkspace":
53
+ {
54
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
55
+ break;
56
+ }
57
+ ;
58
+ default: {
59
+ options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
60
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
61
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
62
+ options.push(createWildixAuthBotHttpAuthOption(authParameters));
63
+ options.push(createWildixAuthPbxHttpAuthOption(authParameters));
64
+ options.push(createWildixAuthApiKeysHttpAuthOption(authParameters));
65
+ }
66
+ }
67
+ return options;
68
+ };
69
+ export const resolveHttpAuthSchemeConfig = (config) => {
70
+ const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
71
+ return Object.assign(config, {
72
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
73
+ token,
74
+ });
75
+ };
@@ -1,17 +1,16 @@
1
- import { de_BatchGetUsersCommand, se_BatchGetUsersCommand, } 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 { BatchGetUsers$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class BatchGetUsersCommand extends $Command.classBuilder()
6
+ export class BatchGetUsersCommand 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("Users", "BatchGetUsers", {})
12
13
  .n("UsersClient", "BatchGetUsersCommand")
13
- .f(void 0, void 0)
14
- .ser(se_BatchGetUsersCommand)
15
- .de(de_BatchGetUsersCommand)
14
+ .sc(BatchGetUsers$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_BatchGetUsersEmailNotificationsSettingsCommand, se_BatchGetUsersEmailNotificationsSettingsCommand, } 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 { BatchGetUsersEmailNotificationsSettings$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class BatchGetUsersEmailNotificationsSettingsCommand extends $Command.classBuilder()
6
+ export class BatchGetUsersEmailNotificationsSettingsCommand 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("Users", "BatchGetUsersEmailNotificationsSettings", {})
12
13
  .n("UsersClient", "BatchGetUsersEmailNotificationsSettingsCommand")
13
- .f(void 0, void 0)
14
- .ser(se_BatchGetUsersEmailNotificationsSettingsCommand)
15
- .de(de_BatchGetUsersEmailNotificationsSettingsCommand)
14
+ .sc(BatchGetUsersEmailNotificationsSettings$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_BatchGetUsersPbxLinkDataCommand, se_BatchGetUsersPbxLinkDataCommand, } 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 { BatchGetUsersPbxLinkData$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class BatchGetUsersPbxLinkDataCommand extends $Command.classBuilder()
6
+ export class BatchGetUsersPbxLinkDataCommand 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("Users", "BatchGetUsersPbxLinkData", {})
12
13
  .n("UsersClient", "BatchGetUsersPbxLinkDataCommand")
13
- .f(void 0, void 0)
14
- .ser(se_BatchGetUsersPbxLinkDataCommand)
15
- .de(de_BatchGetUsersPbxLinkDataCommand)
14
+ .sc(BatchGetUsersPbxLinkData$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_BatchGetUsersPbxLinkDataV1Command, se_BatchGetUsersPbxLinkDataV1Command, } 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 { BatchGetUsersPbxLinkDataV1$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class BatchGetUsersPbxLinkDataV1Command extends $Command.classBuilder()
6
+ export class BatchGetUsersPbxLinkDataV1Command 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("Users", "BatchGetUsersPbxLinkDataV1", {})
12
13
  .n("UsersClient", "BatchGetUsersPbxLinkDataV1Command")
13
- .f(void 0, void 0)
14
- .ser(se_BatchGetUsersPbxLinkDataV1Command)
15
- .de(de_BatchGetUsersPbxLinkDataV1Command)
14
+ .sc(BatchGetUsersPbxLinkDataV1$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_ChangeUserEmailCommand, se_ChangeUserEmailCommand, } 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 { ChangeUserEmail$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class ChangeUserEmailCommand extends $Command.classBuilder()
6
+ export class ChangeUserEmailCommand 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("Users", "ChangeUserEmail", {})
12
13
  .n("UsersClient", "ChangeUserEmailCommand")
13
- .f(void 0, void 0)
14
- .ser(se_ChangeUserEmailCommand)
15
- .de(de_ChangeUserEmailCommand)
14
+ .sc(ChangeUserEmail$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_CreateAnonymousSessionCommand, se_CreateAnonymousSessionCommand, } 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 { CreateAnonymousSession$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class CreateAnonymousSessionCommand extends $Command.classBuilder()
6
+ export class CreateAnonymousSessionCommand 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("Users", "CreateAnonymousSession", {})
12
13
  .n("UsersClient", "CreateAnonymousSessionCommand")
13
- .f(void 0, void 0)
14
- .ser(se_CreateAnonymousSessionCommand)
15
- .de(de_CreateAnonymousSessionCommand)
14
+ .sc(CreateAnonymousSession$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_CreateBotApiKeyCommand, se_CreateBotApiKeyCommand, } 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 { CreateBotApiKey$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class CreateBotApiKeyCommand extends $Command.classBuilder()
6
+ export class CreateBotApiKeyCommand 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("Users", "CreateBotApiKey", {})
12
13
  .n("UsersClient", "CreateBotApiKeyCommand")
13
- .f(void 0, void 0)
14
- .ser(se_CreateBotApiKeyCommand)
15
- .de(de_CreateBotApiKeyCommand)
14
+ .sc(CreateBotApiKey$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_CreateBotCommand, se_CreateBotCommand, } 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 { CreateBot$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class CreateBotCommand extends $Command.classBuilder()
6
+ export class CreateBotCommand 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("Users", "CreateBot", {})
12
13
  .n("UsersClient", "CreateBotCommand")
13
- .f(void 0, void 0)
14
- .ser(se_CreateBotCommand)
15
- .de(de_CreateBotCommand)
14
+ .sc(CreateBot$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_CreateSystemBotCommand, se_CreateSystemBotCommand, } 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 { CreateSystemBot$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class CreateSystemBotCommand extends $Command.classBuilder()
6
+ export class CreateSystemBotCommand 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("Users", "CreateSystemBot", {})
12
13
  .n("UsersClient", "CreateSystemBotCommand")
13
- .f(void 0, void 0)
14
- .ser(se_CreateSystemBotCommand)
15
- .de(de_CreateSystemBotCommand)
14
+ .sc(CreateSystemBot$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_DeleteBotApiKeyCommand, se_DeleteBotApiKeyCommand, } 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 { DeleteBotApiKey$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class DeleteBotApiKeyCommand extends $Command.classBuilder()
6
+ export class DeleteBotApiKeyCommand 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("Users", "DeleteBotApiKey", {})
12
13
  .n("UsersClient", "DeleteBotApiKeyCommand")
13
- .f(void 0, void 0)
14
- .ser(se_DeleteBotApiKeyCommand)
15
- .de(de_DeleteBotApiKeyCommand)
14
+ .sc(DeleteBotApiKey$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_DeleteBotCommand, se_DeleteBotCommand, } 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 { DeleteBot$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class DeleteBotCommand extends $Command.classBuilder()
6
+ export class DeleteBotCommand 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("Users", "DeleteBot", {})
12
13
  .n("UsersClient", "DeleteBotCommand")
13
- .f(void 0, void 0)
14
- .ser(se_DeleteBotCommand)
15
- .de(de_DeleteBotCommand)
14
+ .sc(DeleteBot$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetAccountCommand, se_GetAccountCommand, } 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 { GetAccount$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetAccountCommand extends $Command.classBuilder()
6
+ export class GetAccountCommand 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("Users", "GetAccount", {})
12
13
  .n("UsersClient", "GetAccountCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetAccountCommand)
15
- .de(de_GetAccountCommand)
14
+ .sc(GetAccount$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetAppVersionCommand, se_GetAppVersionCommand, } 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 { GetAppVersion$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetAppVersionCommand extends $Command.classBuilder()
6
+ export class GetAppVersionCommand 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("Users", "GetAppVersion", {})
12
13
  .n("UsersClient", "GetAppVersionCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetAppVersionCommand)
15
- .de(de_GetAppVersionCommand)
14
+ .sc(GetAppVersion$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetBotCallbackCommand, se_GetBotCallbackCommand, } 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 { GetBotCallback$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetBotCallbackCommand extends $Command.classBuilder()
6
+ export class GetBotCallbackCommand 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("Users", "GetBotCallback", {})
12
13
  .n("UsersClient", "GetBotCallbackCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetBotCallbackCommand)
15
- .de(de_GetBotCallbackCommand)
14
+ .sc(GetBotCallback$)
16
15
  .build() {
17
16
  }