@wildix/xbees-users-client 1.4.0 → 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 (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 +13 -39
  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-cjs/Users.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Users = void 0;
4
- const UsersClient_1 = require("./UsersClient");
4
+ const client_1 = require("@smithy/core/client");
5
5
  const BatchGetUsersCommand_1 = require("./commands/BatchGetUsersCommand");
6
6
  const BatchGetUsersEmailNotificationsSettingsCommand_1 = require("./commands/BatchGetUsersEmailNotificationsSettingsCommand");
7
7
  const BatchGetUsersPbxLinkDataCommand_1 = require("./commands/BatchGetUsersPbxLinkDataCommand");
@@ -47,7 +47,7 @@ const UploadPictureV1Command_1 = require("./commands/UploadPictureV1Command");
47
47
  const VerifyBotSecretKeyCommand_1 = require("./commands/VerifyBotSecretKeyCommand");
48
48
  const VerifyBotSecretKeyV1Command_1 = require("./commands/VerifyBotSecretKeyV1Command");
49
49
  const VerifyIdentityCommand_1 = require("./commands/VerifyIdentityCommand");
50
- const smithy_client_1 = require("@smithy/smithy-client");
50
+ const UsersClient_1 = require("./UsersClient");
51
51
  const commands = {
52
52
  BatchGetUsersCommand: BatchGetUsersCommand_1.BatchGetUsersCommand,
53
53
  BatchGetUsersEmailNotificationsSettingsCommand: BatchGetUsersEmailNotificationsSettingsCommand_1.BatchGetUsersEmailNotificationsSettingsCommand,
@@ -98,4 +98,4 @@ const commands = {
98
98
  class Users extends UsersClient_1.UsersClient {
99
99
  }
100
100
  exports.Users = Users;
101
- (0, smithy_client_1.createAggregatedClient)(commands, Users);
101
+ (0, client_1.createAggregatedClient)(commands, Users);
@@ -1,38 +1,46 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UsersClient = 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 UsersClient extends smithy_client_1.Client {
16
+ class UsersClient 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 hostname = ['stable', 'stage'].includes(configuration.env || '') ? `api-${configuration.env}.x-bees.com` : 'api.x-bees.com';
22
- const endpoint = () => {
23
- return {
24
- hostname,
25
- protocol: "https",
26
- port: '443',
27
- path: ''
28
- };
29
- };
30
- const config = { ..._config_3, endpoint };
31
- this.config = config;
32
- this.middlewareStack.add(smithy_utils_1.authorizationMiddleware.bind(this, configuration.token), { step: "build" });
33
- this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
34
- this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
35
- 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.defaultUsersHttpAuthSchemeParametersProvider,
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));
36
44
  }
37
45
  destroy() {
38
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,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveHttpAuthSchemeConfig = exports.defaultUsersHttpAuthSchemeProvider = exports.defaultUsersHttpAuthSchemeParametersProvider = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const client_1 = require("@smithy/core/client");
6
+ const defaultUsersHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
+ return {
8
+ operation: (0, client_1.getSmithyContext)(context).operation,
9
+ };
10
+ };
11
+ exports.defaultUsersHttpAuthSchemeParametersProvider = defaultUsersHttpAuthSchemeParametersProvider;
12
+ function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
13
+ return {
14
+ schemeId: "smithy.api#httpBearerAuth",
15
+ };
16
+ }
17
+ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
18
+ return {
19
+ schemeId: "smithy.api#noAuth",
20
+ };
21
+ }
22
+ function createWildixAuthApiKeysHttpAuthOption(authParameters) {
23
+ return {
24
+ schemeId: "wildix.auth#apiKeys",
25
+ };
26
+ }
27
+ function createWildixAuthBotHttpAuthOption(authParameters) {
28
+ return {
29
+ schemeId: "wildix.auth#bot",
30
+ };
31
+ }
32
+ function createWildixAuthPbxHttpAuthOption(authParameters) {
33
+ return {
34
+ schemeId: "wildix.auth#pbx",
35
+ };
36
+ }
37
+ function createWildixAuthS2sHttpAuthOption(authParameters) {
38
+ return {
39
+ schemeId: "wildix.auth#s2s",
40
+ };
41
+ }
42
+ function createWildixAuthXbsHttpAuthOption(authParameters) {
43
+ return {
44
+ schemeId: "wildix.auth#xbs",
45
+ };
46
+ }
47
+ const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
48
+ const options = [];
49
+ switch (authParameters.operation) {
50
+ case "CreateAnonymousSession":
51
+ {
52
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
53
+ break;
54
+ }
55
+ ;
56
+ case "UpdateWorkspace":
57
+ {
58
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
59
+ break;
60
+ }
61
+ ;
62
+ default: {
63
+ options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
64
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
65
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
66
+ options.push(createWildixAuthBotHttpAuthOption(authParameters));
67
+ options.push(createWildixAuthPbxHttpAuthOption(authParameters));
68
+ options.push(createWildixAuthApiKeysHttpAuthOption(authParameters));
69
+ }
70
+ }
71
+ return options;
72
+ };
73
+ exports.defaultUsersHttpAuthSchemeProvider = defaultUsersHttpAuthSchemeProvider;
74
+ const resolveHttpAuthSchemeConfig = (config) => {
75
+ const token = (0, core_1.memoizeIdentityProvider)(config.token, core_1.isIdentityExpired, core_1.doesIdentityRequireRefresh);
76
+ return Object.assign(config, {
77
+ authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
78
+ token,
79
+ });
80
+ };
81
+ exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BatchGetUsersCommand = 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 BatchGetUsersCommand 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 BatchGetUsersCommand 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("Users", "BatchGetUsers", {})
15
16
  .n("UsersClient", "BatchGetUsersCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_BatchGetUsersCommand)
18
- .de(Aws_restJson1_1.de_BatchGetUsersCommand)
17
+ .sc(schemas_0_1.BatchGetUsers$)
19
18
  .build() {
20
19
  }
21
20
  exports.BatchGetUsersCommand = BatchGetUsersCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BatchGetUsersEmailNotificationsSettingsCommand = 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 BatchGetUsersEmailNotificationsSettingsCommand 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 BatchGetUsersEmailNotificationsSettingsCommand 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("Users", "BatchGetUsersEmailNotificationsSettings", {})
15
16
  .n("UsersClient", "BatchGetUsersEmailNotificationsSettingsCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_BatchGetUsersEmailNotificationsSettingsCommand)
18
- .de(Aws_restJson1_1.de_BatchGetUsersEmailNotificationsSettingsCommand)
17
+ .sc(schemas_0_1.BatchGetUsersEmailNotificationsSettings$)
19
18
  .build() {
20
19
  }
21
20
  exports.BatchGetUsersEmailNotificationsSettingsCommand = BatchGetUsersEmailNotificationsSettingsCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BatchGetUsersPbxLinkDataCommand = 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 BatchGetUsersPbxLinkDataCommand 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 BatchGetUsersPbxLinkDataCommand 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("Users", "BatchGetUsersPbxLinkData", {})
15
16
  .n("UsersClient", "BatchGetUsersPbxLinkDataCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_BatchGetUsersPbxLinkDataCommand)
18
- .de(Aws_restJson1_1.de_BatchGetUsersPbxLinkDataCommand)
17
+ .sc(schemas_0_1.BatchGetUsersPbxLinkData$)
19
18
  .build() {
20
19
  }
21
20
  exports.BatchGetUsersPbxLinkDataCommand = BatchGetUsersPbxLinkDataCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BatchGetUsersPbxLinkDataV1Command = 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 BatchGetUsersPbxLinkDataV1Command 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 BatchGetUsersPbxLinkDataV1Command 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("Users", "BatchGetUsersPbxLinkDataV1", {})
15
16
  .n("UsersClient", "BatchGetUsersPbxLinkDataV1Command")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_BatchGetUsersPbxLinkDataV1Command)
18
- .de(Aws_restJson1_1.de_BatchGetUsersPbxLinkDataV1Command)
17
+ .sc(schemas_0_1.BatchGetUsersPbxLinkDataV1$)
19
18
  .build() {
20
19
  }
21
20
  exports.BatchGetUsersPbxLinkDataV1Command = BatchGetUsersPbxLinkDataV1Command;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChangeUserEmailCommand = 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 ChangeUserEmailCommand 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 ChangeUserEmailCommand 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("Users", "ChangeUserEmail", {})
15
16
  .n("UsersClient", "ChangeUserEmailCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_ChangeUserEmailCommand)
18
- .de(Aws_restJson1_1.de_ChangeUserEmailCommand)
17
+ .sc(schemas_0_1.ChangeUserEmail$)
19
18
  .build() {
20
19
  }
21
20
  exports.ChangeUserEmailCommand = ChangeUserEmailCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateAnonymousSessionCommand = 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 CreateAnonymousSessionCommand 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 CreateAnonymousSessionCommand 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("Users", "CreateAnonymousSession", {})
15
16
  .n("UsersClient", "CreateAnonymousSessionCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_CreateAnonymousSessionCommand)
18
- .de(Aws_restJson1_1.de_CreateAnonymousSessionCommand)
17
+ .sc(schemas_0_1.CreateAnonymousSession$)
19
18
  .build() {
20
19
  }
21
20
  exports.CreateAnonymousSessionCommand = CreateAnonymousSessionCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateBotApiKeyCommand = 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 CreateBotApiKeyCommand 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 CreateBotApiKeyCommand 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("Users", "CreateBotApiKey", {})
15
16
  .n("UsersClient", "CreateBotApiKeyCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_CreateBotApiKeyCommand)
18
- .de(Aws_restJson1_1.de_CreateBotApiKeyCommand)
17
+ .sc(schemas_0_1.CreateBotApiKey$)
19
18
  .build() {
20
19
  }
21
20
  exports.CreateBotApiKeyCommand = CreateBotApiKeyCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateBotCommand = 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 CreateBotCommand 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 CreateBotCommand 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("Users", "CreateBot", {})
15
16
  .n("UsersClient", "CreateBotCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_CreateBotCommand)
18
- .de(Aws_restJson1_1.de_CreateBotCommand)
17
+ .sc(schemas_0_1.CreateBot$)
19
18
  .build() {
20
19
  }
21
20
  exports.CreateBotCommand = CreateBotCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateSystemBotCommand = 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 CreateSystemBotCommand 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 CreateSystemBotCommand 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("Users", "CreateSystemBot", {})
15
16
  .n("UsersClient", "CreateSystemBotCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_CreateSystemBotCommand)
18
- .de(Aws_restJson1_1.de_CreateSystemBotCommand)
17
+ .sc(schemas_0_1.CreateSystemBot$)
19
18
  .build() {
20
19
  }
21
20
  exports.CreateSystemBotCommand = CreateSystemBotCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteBotApiKeyCommand = 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 DeleteBotApiKeyCommand 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 DeleteBotApiKeyCommand 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("Users", "DeleteBotApiKey", {})
15
16
  .n("UsersClient", "DeleteBotApiKeyCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_DeleteBotApiKeyCommand)
18
- .de(Aws_restJson1_1.de_DeleteBotApiKeyCommand)
17
+ .sc(schemas_0_1.DeleteBotApiKey$)
19
18
  .build() {
20
19
  }
21
20
  exports.DeleteBotApiKeyCommand = DeleteBotApiKeyCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteBotCommand = 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 DeleteBotCommand 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 DeleteBotCommand 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("Users", "DeleteBot", {})
15
16
  .n("UsersClient", "DeleteBotCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_DeleteBotCommand)
18
- .de(Aws_restJson1_1.de_DeleteBotCommand)
17
+ .sc(schemas_0_1.DeleteBot$)
19
18
  .build() {
20
19
  }
21
20
  exports.DeleteBotCommand = DeleteBotCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetAccountCommand = 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 GetAccountCommand 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 GetAccountCommand 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("Users", "GetAccount", {})
15
16
  .n("UsersClient", "GetAccountCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_GetAccountCommand)
18
- .de(Aws_restJson1_1.de_GetAccountCommand)
17
+ .sc(schemas_0_1.GetAccount$)
19
18
  .build() {
20
19
  }
21
20
  exports.GetAccountCommand = GetAccountCommand;