@wildix/xbees-kite-client 1.5.0 → 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 (128) hide show
  1. package/dist-cjs/Kite.js +3 -3
  2. package/dist-cjs/KiteClient.js +34 -28
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +40 -0
  5. package/dist-cjs/commands/CancelCalendarEventCommand.js +10 -11
  6. package/dist-cjs/commands/CreateOrUpdateWidgetPreviewCommand.js +10 -11
  7. package/dist-cjs/commands/CreateWidgetCommand.js +10 -11
  8. package/dist-cjs/commands/DeleteWidgetCommand.js +10 -11
  9. package/dist-cjs/commands/GetCalendarSlotsCommand.js +10 -11
  10. package/dist-cjs/commands/GetConfigCommand.js +10 -11
  11. package/dist-cjs/commands/GetSmsNumberConfigurationCommand.js +10 -11
  12. package/dist-cjs/commands/GetWhatsAppNumberConfigurationCommand.js +10 -11
  13. package/dist-cjs/commands/GetWidgetCommand.js +10 -11
  14. package/dist-cjs/commands/ListAgentsCommand.js +10 -11
  15. package/dist-cjs/commands/ListServicesCommand.js +10 -11
  16. package/dist-cjs/commands/ListSmsConfigurationsCommand.js +10 -11
  17. package/dist-cjs/commands/ListSmsNumbersCommand.js +10 -11
  18. package/dist-cjs/commands/ListWhatsAppConfigurationsCommand.js +10 -11
  19. package/dist-cjs/commands/ListWhatsAppNumbersCommand.js +10 -11
  20. package/dist-cjs/commands/ListWhatsAppTemplatesCommand.js +10 -11
  21. package/dist-cjs/commands/ListWidgetsCommand.js +10 -11
  22. package/dist-cjs/commands/PutSmsNumberConfigurationCommand.js +10 -11
  23. package/dist-cjs/commands/PutWhatsAppNumberConfigurationCommand.js +10 -11
  24. package/dist-cjs/commands/RescheduleCalendarEventCommand.js +10 -11
  25. package/dist-cjs/commands/ScheduleCalendarEventCommand.js +10 -11
  26. package/dist-cjs/commands/UpdateWidgetCommand.js +10 -11
  27. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  28. package/dist-cjs/endpoint/bdd.js +28 -0
  29. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  30. package/dist-cjs/index.js +7 -4
  31. package/dist-cjs/models/KiteSyntheticServiceException.js +12 -0
  32. package/dist-cjs/models/enums.js +80 -0
  33. package/dist-cjs/models/errors.js +116 -0
  34. package/dist-cjs/models/models_0.js +0 -303
  35. package/dist-cjs/runtimeConfig.browser.js +11 -11
  36. package/dist-cjs/runtimeConfig.js +22 -18
  37. package/dist-cjs/runtimeConfig.shared.js +30 -10
  38. package/dist-cjs/runtimeExtensions.js +6 -5
  39. package/dist-cjs/schemas/schemas_0.js +1160 -0
  40. package/dist-es/Kite.js +4 -4
  41. package/dist-es/KiteClient.js +30 -24
  42. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  43. package/dist-es/auth/httpAuthSchemeProvider.js +34 -0
  44. package/dist-es/commands/CancelCalendarEventCommand.js +9 -10
  45. package/dist-es/commands/CreateOrUpdateWidgetPreviewCommand.js +9 -10
  46. package/dist-es/commands/CreateWidgetCommand.js +9 -10
  47. package/dist-es/commands/DeleteWidgetCommand.js +9 -10
  48. package/dist-es/commands/GetCalendarSlotsCommand.js +9 -10
  49. package/dist-es/commands/GetConfigCommand.js +9 -10
  50. package/dist-es/commands/GetSmsNumberConfigurationCommand.js +9 -10
  51. package/dist-es/commands/GetWhatsAppNumberConfigurationCommand.js +9 -10
  52. package/dist-es/commands/GetWidgetCommand.js +9 -10
  53. package/dist-es/commands/ListAgentsCommand.js +9 -10
  54. package/dist-es/commands/ListServicesCommand.js +9 -10
  55. package/dist-es/commands/ListSmsConfigurationsCommand.js +9 -10
  56. package/dist-es/commands/ListSmsNumbersCommand.js +9 -10
  57. package/dist-es/commands/ListWhatsAppConfigurationsCommand.js +9 -10
  58. package/dist-es/commands/ListWhatsAppNumbersCommand.js +9 -10
  59. package/dist-es/commands/ListWhatsAppTemplatesCommand.js +9 -10
  60. package/dist-es/commands/ListWidgetsCommand.js +9 -10
  61. package/dist-es/commands/PutSmsNumberConfigurationCommand.js +9 -10
  62. package/dist-es/commands/PutWhatsAppNumberConfigurationCommand.js +9 -10
  63. package/dist-es/commands/RescheduleCalendarEventCommand.js +9 -10
  64. package/dist-es/commands/ScheduleCalendarEventCommand.js +9 -10
  65. package/dist-es/commands/UpdateWidgetCommand.js +9 -10
  66. package/dist-es/endpoint/EndpointParameters.js +12 -0
  67. package/dist-es/endpoint/bdd.js +25 -0
  68. package/dist-es/endpoint/endpointResolver.js +12 -0
  69. package/dist-es/index.js +5 -2
  70. package/dist-es/models/KiteSyntheticServiceException.js +8 -0
  71. package/dist-es/models/enums.js +77 -0
  72. package/dist-es/models/errors.js +105 -0
  73. package/dist-es/models/models_0.js +1 -294
  74. package/dist-es/runtimeConfig.browser.js +7 -7
  75. package/dist-es/runtimeConfig.js +17 -13
  76. package/dist-es/runtimeConfig.shared.js +24 -4
  77. package/dist-es/runtimeExtensions.js +6 -5
  78. package/dist-es/schemas/schemas_0.js +1155 -0
  79. package/dist-types/Kite.d.ts +23 -23
  80. package/dist-types/KiteClient.d.ts +52 -34
  81. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  82. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  83. package/dist-types/commands/CancelCalendarEventCommand.d.ts +12 -8
  84. package/dist-types/commands/CreateOrUpdateWidgetPreviewCommand.d.ts +12 -8
  85. package/dist-types/commands/CreateWidgetCommand.d.ts +12 -8
  86. package/dist-types/commands/DeleteWidgetCommand.d.ts +12 -8
  87. package/dist-types/commands/GetCalendarSlotsCommand.d.ts +12 -8
  88. package/dist-types/commands/GetConfigCommand.d.ts +12 -8
  89. package/dist-types/commands/GetSmsNumberConfigurationCommand.d.ts +12 -8
  90. package/dist-types/commands/GetWhatsAppNumberConfigurationCommand.d.ts +12 -8
  91. package/dist-types/commands/GetWidgetCommand.d.ts +12 -8
  92. package/dist-types/commands/ListAgentsCommand.d.ts +12 -8
  93. package/dist-types/commands/ListServicesCommand.d.ts +12 -8
  94. package/dist-types/commands/ListSmsConfigurationsCommand.d.ts +12 -8
  95. package/dist-types/commands/ListSmsNumbersCommand.d.ts +12 -8
  96. package/dist-types/commands/ListWhatsAppConfigurationsCommand.d.ts +12 -8
  97. package/dist-types/commands/ListWhatsAppNumbersCommand.d.ts +12 -8
  98. package/dist-types/commands/ListWhatsAppTemplatesCommand.d.ts +12 -8
  99. package/dist-types/commands/ListWidgetsCommand.d.ts +12 -8
  100. package/dist-types/commands/PutSmsNumberConfigurationCommand.d.ts +12 -8
  101. package/dist-types/commands/PutWhatsAppNumberConfigurationCommand.d.ts +12 -8
  102. package/dist-types/commands/RescheduleCalendarEventCommand.d.ts +12 -8
  103. package/dist-types/commands/ScheduleCalendarEventCommand.d.ts +12 -8
  104. package/dist-types/commands/UpdateWidgetCommand.d.ts +12 -8
  105. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  106. package/dist-types/endpoint/bdd.d.ts +2 -0
  107. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  108. package/dist-types/extensionConfiguration.d.ts +4 -3
  109. package/dist-types/index.d.ts +6 -2
  110. package/dist-types/models/{KiteServiceException.d.ts → KiteSyntheticServiceException.d.ts} +2 -2
  111. package/dist-types/models/enums.d.ts +197 -0
  112. package/dist-types/models/errors.d.ts +110 -0
  113. package/dist-types/models/models_0.d.ts +105 -381
  114. package/dist-types/runtimeConfig.browser.d.ts +35 -16
  115. package/dist-types/runtimeConfig.d.ts +34 -15
  116. package/dist-types/runtimeConfig.native.d.ts +36 -17
  117. package/dist-types/runtimeConfig.shared.d.ts +20 -3
  118. package/dist-types/runtimeExtensions.d.ts +1 -1
  119. package/dist-types/schemas/schemas_0.d.ts +153 -0
  120. package/package.json +14 -40
  121. package/dist-cjs/models/KiteServiceException.js +0 -12
  122. package/dist-cjs/models/index.js +0 -4
  123. package/dist-cjs/protocols/Aws_restJson1.js +0 -963
  124. package/dist-es/models/KiteServiceException.js +0 -8
  125. package/dist-es/models/index.js +0 -1
  126. package/dist-es/protocols/Aws_restJson1.js +0 -916
  127. package/dist-types/models/index.d.ts +0 -1
  128. package/dist-types/protocols/Aws_restJson1.d.ts +0 -200
package/dist-es/Kite.js CHANGED
@@ -1,13 +1,13 @@
1
- import { KiteClient, } from "./KiteClient";
1
+ import { createAggregatedClient } from "@smithy/core/client";
2
2
  import { CancelCalendarEventCommand, } from "./commands/CancelCalendarEventCommand";
3
3
  import { CreateOrUpdateWidgetPreviewCommand, } from "./commands/CreateOrUpdateWidgetPreviewCommand";
4
4
  import { CreateWidgetCommand, } from "./commands/CreateWidgetCommand";
5
5
  import { DeleteWidgetCommand, } from "./commands/DeleteWidgetCommand";
6
6
  import { GetCalendarSlotsCommand, } from "./commands/GetCalendarSlotsCommand";
7
- import { GetConfigCommand, } from "./commands/GetConfigCommand";
7
+ import { GetConfigCommand } from "./commands/GetConfigCommand";
8
8
  import { GetSmsNumberConfigurationCommand, } from "./commands/GetSmsNumberConfigurationCommand";
9
9
  import { GetWhatsAppNumberConfigurationCommand, } from "./commands/GetWhatsAppNumberConfigurationCommand";
10
- import { GetWidgetCommand, } from "./commands/GetWidgetCommand";
10
+ import { GetWidgetCommand } from "./commands/GetWidgetCommand";
11
11
  import { ListAgentsCommand, } from "./commands/ListAgentsCommand";
12
12
  import { ListServicesCommand, } from "./commands/ListServicesCommand";
13
13
  import { ListSmsConfigurationsCommand, } from "./commands/ListSmsConfigurationsCommand";
@@ -21,7 +21,7 @@ import { PutWhatsAppNumberConfigurationCommand, } from "./commands/PutWhatsAppNu
21
21
  import { RescheduleCalendarEventCommand, } from "./commands/RescheduleCalendarEventCommand";
22
22
  import { ScheduleCalendarEventCommand, } from "./commands/ScheduleCalendarEventCommand";
23
23
  import { UpdateWidgetCommand, } from "./commands/UpdateWidgetCommand";
24
- import { createAggregatedClient } from "@smithy/smithy-client";
24
+ import { KiteClient } from "./KiteClient";
25
25
  const commands = {
26
26
  CancelCalendarEventCommand,
27
27
  CreateOrUpdateWidgetPreviewCommand,
@@ -1,37 +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 { defaultKiteHttpAuthSchemeParametersProvider, 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 KiteClient 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
- if (configuration?.token) {
30
- this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
31
- }
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));
32
28
  this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  this.middlewareStack.use(getRetryPlugin(this.config));
34
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: defaultKiteHttpAuthSchemeParametersProvider,
36
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
37
+ "smithy.api#httpBearerAuth": config.token,
38
+ }),
39
+ }));
40
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
35
41
  }
36
42
  destroy() {
37
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,34 @@
1
+ import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
3
+ export const defaultKiteHttpAuthSchemeParametersProvider = 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
+ export const defaultKiteHttpAuthSchemeProvider = (authParameters) => {
19
+ const options = [];
20
+ switch (authParameters.operation) {
21
+ default: {
22
+ options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
23
+ options.push(createWildixAuthApiKeysHttpAuthOption(authParameters));
24
+ }
25
+ }
26
+ return options;
27
+ };
28
+ export const resolveHttpAuthSchemeConfig = (config) => {
29
+ const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
30
+ return Object.assign(config, {
31
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
32
+ token,
33
+ });
34
+ };
@@ -1,17 +1,16 @@
1
- import { de_CancelCalendarEventCommand, se_CancelCalendarEventCommand, } 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 { CancelCalendarEvent$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class CancelCalendarEventCommand extends $Command.classBuilder()
6
+ export class CancelCalendarEventCommand 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("Kite", "CancelCalendarEvent", {})
12
13
  .n("KiteClient", "CancelCalendarEventCommand")
13
- .f(void 0, void 0)
14
- .ser(se_CancelCalendarEventCommand)
15
- .de(de_CancelCalendarEventCommand)
14
+ .sc(CancelCalendarEvent$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_CreateOrUpdateWidgetPreviewCommand, se_CreateOrUpdateWidgetPreviewCommand, } 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 { CreateOrUpdateWidgetPreview$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class CreateOrUpdateWidgetPreviewCommand extends $Command.classBuilder()
6
+ export class CreateOrUpdateWidgetPreviewCommand 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("Kite", "CreateOrUpdateWidgetPreview", {})
12
13
  .n("KiteClient", "CreateOrUpdateWidgetPreviewCommand")
13
- .f(void 0, void 0)
14
- .ser(se_CreateOrUpdateWidgetPreviewCommand)
15
- .de(de_CreateOrUpdateWidgetPreviewCommand)
14
+ .sc(CreateOrUpdateWidgetPreview$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_CreateWidgetCommand, se_CreateWidgetCommand, } 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 { CreateWidget$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class CreateWidgetCommand extends $Command.classBuilder()
6
+ export class CreateWidgetCommand 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("Kite", "CreateWidget", {})
12
13
  .n("KiteClient", "CreateWidgetCommand")
13
- .f(void 0, void 0)
14
- .ser(se_CreateWidgetCommand)
15
- .de(de_CreateWidgetCommand)
14
+ .sc(CreateWidget$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_DeleteWidgetCommand, se_DeleteWidgetCommand, } 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 { DeleteWidget$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class DeleteWidgetCommand extends $Command.classBuilder()
6
+ export class DeleteWidgetCommand 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("Kite", "DeleteWidget", {})
12
13
  .n("KiteClient", "DeleteWidgetCommand")
13
- .f(void 0, void 0)
14
- .ser(se_DeleteWidgetCommand)
15
- .de(de_DeleteWidgetCommand)
14
+ .sc(DeleteWidget$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetCalendarSlotsCommand, se_GetCalendarSlotsCommand, } 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 { GetCalendarSlots$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetCalendarSlotsCommand extends $Command.classBuilder()
6
+ export class GetCalendarSlotsCommand 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("Kite", "GetCalendarSlots", {})
12
13
  .n("KiteClient", "GetCalendarSlotsCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetCalendarSlotsCommand)
15
- .de(de_GetCalendarSlotsCommand)
14
+ .sc(GetCalendarSlots$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetConfigCommand, se_GetConfigCommand, } 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 { GetConfig$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetConfigCommand extends $Command.classBuilder()
6
+ export class GetConfigCommand 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("Kite", "GetConfig", {})
12
13
  .n("KiteClient", "GetConfigCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetConfigCommand)
15
- .de(de_GetConfigCommand)
14
+ .sc(GetConfig$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetSmsNumberConfigurationCommand, se_GetSmsNumberConfigurationCommand, } 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 { GetSmsNumberConfiguration$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetSmsNumberConfigurationCommand extends $Command.classBuilder()
6
+ export class GetSmsNumberConfigurationCommand 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("Kite", "GetSmsNumberConfiguration", {})
12
13
  .n("KiteClient", "GetSmsNumberConfigurationCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetSmsNumberConfigurationCommand)
15
- .de(de_GetSmsNumberConfigurationCommand)
14
+ .sc(GetSmsNumberConfiguration$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetWhatsAppNumberConfigurationCommand, se_GetWhatsAppNumberConfigurationCommand, } 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 { GetWhatsAppNumberConfiguration$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetWhatsAppNumberConfigurationCommand extends $Command.classBuilder()
6
+ export class GetWhatsAppNumberConfigurationCommand 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("Kite", "GetWhatsAppNumberConfiguration", {})
12
13
  .n("KiteClient", "GetWhatsAppNumberConfigurationCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetWhatsAppNumberConfigurationCommand)
15
- .de(de_GetWhatsAppNumberConfigurationCommand)
14
+ .sc(GetWhatsAppNumberConfiguration$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetWidgetCommand, se_GetWidgetCommand, } 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 { GetWidget$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetWidgetCommand extends $Command.classBuilder()
6
+ export class GetWidgetCommand 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("Kite", "GetWidget", {})
12
13
  .n("KiteClient", "GetWidgetCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetWidgetCommand)
15
- .de(de_GetWidgetCommand)
14
+ .sc(GetWidget$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_ListAgentsCommand, se_ListAgentsCommand, } 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 { ListAgents$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class ListAgentsCommand extends $Command.classBuilder()
6
+ export class ListAgentsCommand 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("Kite", "ListAgents", {})
12
13
  .n("KiteClient", "ListAgentsCommand")
13
- .f(void 0, void 0)
14
- .ser(se_ListAgentsCommand)
15
- .de(de_ListAgentsCommand)
14
+ .sc(ListAgents$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_ListServicesCommand, se_ListServicesCommand, } 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 { ListServices$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class ListServicesCommand extends $Command.classBuilder()
6
+ export class ListServicesCommand 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("Kite", "ListServices", {})
12
13
  .n("KiteClient", "ListServicesCommand")
13
- .f(void 0, void 0)
14
- .ser(se_ListServicesCommand)
15
- .de(de_ListServicesCommand)
14
+ .sc(ListServices$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_ListSmsConfigurationsCommand, se_ListSmsConfigurationsCommand, } 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 { ListSmsConfigurations$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class ListSmsConfigurationsCommand extends $Command.classBuilder()
6
+ export class ListSmsConfigurationsCommand 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("Kite", "ListSmsConfigurations", {})
12
13
  .n("KiteClient", "ListSmsConfigurationsCommand")
13
- .f(void 0, void 0)
14
- .ser(se_ListSmsConfigurationsCommand)
15
- .de(de_ListSmsConfigurationsCommand)
14
+ .sc(ListSmsConfigurations$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_ListSmsNumbersCommand, se_ListSmsNumbersCommand, } 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 { ListSmsNumbers$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class ListSmsNumbersCommand extends $Command.classBuilder()
6
+ export class ListSmsNumbersCommand 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("Kite", "ListSmsNumbers", {})
12
13
  .n("KiteClient", "ListSmsNumbersCommand")
13
- .f(void 0, void 0)
14
- .ser(se_ListSmsNumbersCommand)
15
- .de(de_ListSmsNumbersCommand)
14
+ .sc(ListSmsNumbers$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_ListWhatsAppConfigurationsCommand, se_ListWhatsAppConfigurationsCommand, } 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 { ListWhatsAppConfigurations$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class ListWhatsAppConfigurationsCommand extends $Command.classBuilder()
6
+ export class ListWhatsAppConfigurationsCommand 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("Kite", "ListWhatsAppConfigurations", {})
12
13
  .n("KiteClient", "ListWhatsAppConfigurationsCommand")
13
- .f(void 0, void 0)
14
- .ser(se_ListWhatsAppConfigurationsCommand)
15
- .de(de_ListWhatsAppConfigurationsCommand)
14
+ .sc(ListWhatsAppConfigurations$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_ListWhatsAppNumbersCommand, se_ListWhatsAppNumbersCommand, } 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 { ListWhatsAppNumbers$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class ListWhatsAppNumbersCommand extends $Command.classBuilder()
6
+ export class ListWhatsAppNumbersCommand 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("Kite", "ListWhatsAppNumbers", {})
12
13
  .n("KiteClient", "ListWhatsAppNumbersCommand")
13
- .f(void 0, void 0)
14
- .ser(se_ListWhatsAppNumbersCommand)
15
- .de(de_ListWhatsAppNumbersCommand)
14
+ .sc(ListWhatsAppNumbers$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_ListWhatsAppTemplatesCommand, se_ListWhatsAppTemplatesCommand, } 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 { ListWhatsAppTemplates$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class ListWhatsAppTemplatesCommand extends $Command.classBuilder()
6
+ export class ListWhatsAppTemplatesCommand 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("Kite", "ListWhatsAppTemplates", {})
12
13
  .n("KiteClient", "ListWhatsAppTemplatesCommand")
13
- .f(void 0, void 0)
14
- .ser(se_ListWhatsAppTemplatesCommand)
15
- .de(de_ListWhatsAppTemplatesCommand)
14
+ .sc(ListWhatsAppTemplates$)
16
15
  .build() {
17
16
  }