@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.
- package/dist-cjs/Kite.js +3 -3
- package/dist-cjs/KiteClient.js +34 -28
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-cjs/commands/CancelCalendarEventCommand.js +10 -11
- package/dist-cjs/commands/CreateOrUpdateWidgetPreviewCommand.js +10 -11
- package/dist-cjs/commands/CreateWidgetCommand.js +10 -11
- package/dist-cjs/commands/DeleteWidgetCommand.js +10 -11
- package/dist-cjs/commands/GetCalendarSlotsCommand.js +10 -11
- package/dist-cjs/commands/GetConfigCommand.js +10 -11
- package/dist-cjs/commands/GetSmsNumberConfigurationCommand.js +10 -11
- package/dist-cjs/commands/GetWhatsAppNumberConfigurationCommand.js +10 -11
- package/dist-cjs/commands/GetWidgetCommand.js +10 -11
- package/dist-cjs/commands/ListAgentsCommand.js +10 -11
- package/dist-cjs/commands/ListServicesCommand.js +10 -11
- package/dist-cjs/commands/ListSmsConfigurationsCommand.js +10 -11
- package/dist-cjs/commands/ListSmsNumbersCommand.js +10 -11
- package/dist-cjs/commands/ListWhatsAppConfigurationsCommand.js +10 -11
- package/dist-cjs/commands/ListWhatsAppNumbersCommand.js +10 -11
- package/dist-cjs/commands/ListWhatsAppTemplatesCommand.js +10 -11
- package/dist-cjs/commands/ListWidgetsCommand.js +10 -11
- package/dist-cjs/commands/PutSmsNumberConfigurationCommand.js +10 -11
- package/dist-cjs/commands/PutWhatsAppNumberConfigurationCommand.js +10 -11
- package/dist-cjs/commands/RescheduleCalendarEventCommand.js +10 -11
- package/dist-cjs/commands/ScheduleCalendarEventCommand.js +10 -11
- package/dist-cjs/commands/UpdateWidgetCommand.js +10 -11
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/index.js +7 -4
- package/dist-cjs/models/KiteSyntheticServiceException.js +12 -0
- package/dist-cjs/models/enums.js +80 -0
- package/dist-cjs/models/errors.js +116 -0
- package/dist-cjs/models/models_0.js +0 -303
- package/dist-cjs/runtimeConfig.browser.js +11 -11
- package/dist-cjs/runtimeConfig.js +22 -18
- package/dist-cjs/runtimeConfig.shared.js +30 -10
- package/dist-cjs/runtimeExtensions.js +6 -5
- package/dist-cjs/schemas/schemas_0.js +1160 -0
- package/dist-es/Kite.js +4 -4
- package/dist-es/KiteClient.js +30 -24
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +34 -0
- package/dist-es/commands/CancelCalendarEventCommand.js +9 -10
- package/dist-es/commands/CreateOrUpdateWidgetPreviewCommand.js +9 -10
- package/dist-es/commands/CreateWidgetCommand.js +9 -10
- package/dist-es/commands/DeleteWidgetCommand.js +9 -10
- package/dist-es/commands/GetCalendarSlotsCommand.js +9 -10
- package/dist-es/commands/GetConfigCommand.js +9 -10
- package/dist-es/commands/GetSmsNumberConfigurationCommand.js +9 -10
- package/dist-es/commands/GetWhatsAppNumberConfigurationCommand.js +9 -10
- package/dist-es/commands/GetWidgetCommand.js +9 -10
- package/dist-es/commands/ListAgentsCommand.js +9 -10
- package/dist-es/commands/ListServicesCommand.js +9 -10
- package/dist-es/commands/ListSmsConfigurationsCommand.js +9 -10
- package/dist-es/commands/ListSmsNumbersCommand.js +9 -10
- package/dist-es/commands/ListWhatsAppConfigurationsCommand.js +9 -10
- package/dist-es/commands/ListWhatsAppNumbersCommand.js +9 -10
- package/dist-es/commands/ListWhatsAppTemplatesCommand.js +9 -10
- package/dist-es/commands/ListWidgetsCommand.js +9 -10
- package/dist-es/commands/PutSmsNumberConfigurationCommand.js +9 -10
- package/dist-es/commands/PutWhatsAppNumberConfigurationCommand.js +9 -10
- package/dist-es/commands/RescheduleCalendarEventCommand.js +9 -10
- package/dist-es/commands/ScheduleCalendarEventCommand.js +9 -10
- package/dist-es/commands/UpdateWidgetCommand.js +9 -10
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/index.js +5 -2
- package/dist-es/models/KiteSyntheticServiceException.js +8 -0
- package/dist-es/models/enums.js +77 -0
- package/dist-es/models/errors.js +105 -0
- package/dist-es/models/models_0.js +1 -294
- package/dist-es/runtimeConfig.browser.js +7 -7
- package/dist-es/runtimeConfig.js +17 -13
- package/dist-es/runtimeConfig.shared.js +24 -4
- package/dist-es/runtimeExtensions.js +6 -5
- package/dist-es/schemas/schemas_0.js +1155 -0
- package/dist-types/Kite.d.ts +23 -23
- package/dist-types/KiteClient.d.ts +52 -34
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/CancelCalendarEventCommand.d.ts +12 -8
- package/dist-types/commands/CreateOrUpdateWidgetPreviewCommand.d.ts +12 -8
- package/dist-types/commands/CreateWidgetCommand.d.ts +12 -8
- package/dist-types/commands/DeleteWidgetCommand.d.ts +12 -8
- package/dist-types/commands/GetCalendarSlotsCommand.d.ts +12 -8
- package/dist-types/commands/GetConfigCommand.d.ts +12 -8
- package/dist-types/commands/GetSmsNumberConfigurationCommand.d.ts +12 -8
- package/dist-types/commands/GetWhatsAppNumberConfigurationCommand.d.ts +12 -8
- package/dist-types/commands/GetWidgetCommand.d.ts +12 -8
- package/dist-types/commands/ListAgentsCommand.d.ts +12 -8
- package/dist-types/commands/ListServicesCommand.d.ts +12 -8
- package/dist-types/commands/ListSmsConfigurationsCommand.d.ts +12 -8
- package/dist-types/commands/ListSmsNumbersCommand.d.ts +12 -8
- package/dist-types/commands/ListWhatsAppConfigurationsCommand.d.ts +12 -8
- package/dist-types/commands/ListWhatsAppNumbersCommand.d.ts +12 -8
- package/dist-types/commands/ListWhatsAppTemplatesCommand.d.ts +12 -8
- package/dist-types/commands/ListWidgetsCommand.d.ts +12 -8
- package/dist-types/commands/PutSmsNumberConfigurationCommand.d.ts +12 -8
- package/dist-types/commands/PutWhatsAppNumberConfigurationCommand.d.ts +12 -8
- package/dist-types/commands/RescheduleCalendarEventCommand.d.ts +12 -8
- package/dist-types/commands/ScheduleCalendarEventCommand.d.ts +12 -8
- package/dist-types/commands/UpdateWidgetCommand.d.ts +12 -8
- package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +4 -3
- package/dist-types/index.d.ts +6 -2
- package/dist-types/models/{KiteServiceException.d.ts → KiteSyntheticServiceException.d.ts} +2 -2
- package/dist-types/models/enums.d.ts +197 -0
- package/dist-types/models/errors.d.ts +110 -0
- package/dist-types/models/models_0.d.ts +105 -381
- package/dist-types/runtimeConfig.browser.d.ts +35 -16
- package/dist-types/runtimeConfig.d.ts +34 -15
- package/dist-types/runtimeConfig.native.d.ts +36 -17
- package/dist-types/runtimeConfig.shared.d.ts +20 -3
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +153 -0
- package/package.json +14 -40
- package/dist-cjs/models/KiteServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/protocols/Aws_restJson1.js +0 -963
- package/dist-es/models/KiteServiceException.js +0 -8
- package/dist-es/models/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -916
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -200
package/dist-es/Kite.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
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
|
|
7
|
+
import { GetConfigCommand } from "./commands/GetConfigCommand";
|
|
8
8
|
import { GetSmsNumberConfigurationCommand, } from "./commands/GetSmsNumberConfigurationCommand";
|
|
9
9
|
import { GetWhatsAppNumberConfigurationCommand, } from "./commands/GetWhatsAppNumberConfigurationCommand";
|
|
10
|
-
import { 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 {
|
|
24
|
+
import { KiteClient } from "./KiteClient";
|
|
25
25
|
const commands = {
|
|
26
26
|
CancelCalendarEventCommand,
|
|
27
27
|
CreateOrUpdateWidgetPreviewCommand,
|
package/dist-es/KiteClient.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
16
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
13
17
|
super(_config_0);
|
|
14
18
|
this.initConfig = _config_0;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_CancelCalendarEventCommand)
|
|
15
|
-
.de(de_CancelCalendarEventCommand)
|
|
14
|
+
.sc(CancelCalendarEvent$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_CreateOrUpdateWidgetPreviewCommand)
|
|
15
|
-
.de(de_CreateOrUpdateWidgetPreviewCommand)
|
|
14
|
+
.sc(CreateOrUpdateWidgetPreview$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_CreateWidgetCommand)
|
|
15
|
-
.de(de_CreateWidgetCommand)
|
|
14
|
+
.sc(CreateWidget$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_DeleteWidgetCommand)
|
|
15
|
-
.de(de_DeleteWidgetCommand)
|
|
14
|
+
.sc(DeleteWidget$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_GetCalendarSlotsCommand)
|
|
15
|
-
.de(de_GetCalendarSlotsCommand)
|
|
14
|
+
.sc(GetCalendarSlots$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_GetConfigCommand)
|
|
15
|
-
.de(de_GetConfigCommand)
|
|
14
|
+
.sc(GetConfig$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_GetSmsNumberConfigurationCommand)
|
|
15
|
-
.de(de_GetSmsNumberConfigurationCommand)
|
|
14
|
+
.sc(GetSmsNumberConfiguration$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_GetWhatsAppNumberConfigurationCommand)
|
|
15
|
-
.de(de_GetWhatsAppNumberConfigurationCommand)
|
|
14
|
+
.sc(GetWhatsAppNumberConfiguration$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_GetWidgetCommand)
|
|
15
|
-
.de(de_GetWidgetCommand)
|
|
14
|
+
.sc(GetWidget$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_ListAgentsCommand)
|
|
15
|
-
.de(de_ListAgentsCommand)
|
|
14
|
+
.sc(ListAgents$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_ListServicesCommand)
|
|
15
|
-
.de(de_ListServicesCommand)
|
|
14
|
+
.sc(ListServices$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_ListSmsConfigurationsCommand)
|
|
15
|
-
.de(de_ListSmsConfigurationsCommand)
|
|
14
|
+
.sc(ListSmsConfigurations$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_ListSmsNumbersCommand)
|
|
15
|
-
.de(de_ListSmsNumbersCommand)
|
|
14
|
+
.sc(ListSmsNumbers$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_ListWhatsAppConfigurationsCommand)
|
|
15
|
-
.de(de_ListWhatsAppConfigurationsCommand)
|
|
14
|
+
.sc(ListWhatsAppConfigurations$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_ListWhatsAppNumbersCommand)
|
|
15
|
-
.de(de_ListWhatsAppNumbersCommand)
|
|
14
|
+
.sc(ListWhatsAppNumbers$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
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
|
-
.
|
|
14
|
-
.ser(se_ListWhatsAppTemplatesCommand)
|
|
15
|
-
.de(de_ListWhatsAppTemplatesCommand)
|
|
14
|
+
.sc(ListWhatsAppTemplates$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|