@wildix/xbees-users-client 1.3.2 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Users.js +3 -3
- package/dist-cjs/UsersClient.js +34 -26
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +81 -0
- package/dist-cjs/commands/BatchGetUsersCommand.js +10 -11
- package/dist-cjs/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +10 -11
- package/dist-cjs/commands/BatchGetUsersPbxLinkDataCommand.js +10 -11
- package/dist-cjs/commands/BatchGetUsersPbxLinkDataV1Command.js +10 -11
- package/dist-cjs/commands/ChangeUserEmailCommand.js +10 -11
- package/dist-cjs/commands/CreateAnonymousSessionCommand.js +10 -11
- package/dist-cjs/commands/CreateBotApiKeyCommand.js +10 -11
- package/dist-cjs/commands/CreateBotCommand.js +10 -11
- package/dist-cjs/commands/CreateSystemBotCommand.js +10 -11
- package/dist-cjs/commands/DeleteBotApiKeyCommand.js +10 -11
- package/dist-cjs/commands/DeleteBotCommand.js +10 -11
- package/dist-cjs/commands/GetAccountCommand.js +10 -11
- package/dist-cjs/commands/GetAppVersionCommand.js +10 -11
- package/dist-cjs/commands/GetBotCallbackCommand.js +10 -11
- package/dist-cjs/commands/GetBotCommand.js +10 -11
- package/dist-cjs/commands/GetUserCommand.js +10 -11
- package/dist-cjs/commands/GetUserEmailNotificationsSettingsCommand.js +10 -11
- package/dist-cjs/commands/GetUserPbxLinkDataCommand.js +10 -11
- package/dist-cjs/commands/GetUserPbxLinkSuggestionCommand.js +10 -11
- package/dist-cjs/commands/GetUserPbxLinkSuggestionV1Command.js +10 -11
- package/dist-cjs/commands/IntelligenceSearchCommand.js +10 -11
- package/dist-cjs/commands/InviteCommand.js +10 -11
- package/dist-cjs/commands/LinkIdentityCommand.js +10 -11
- package/dist-cjs/commands/ListBotApiKeysCommand.js +10 -11
- package/dist-cjs/commands/ListBotsCommand.js +10 -11
- package/dist-cjs/commands/ListIdentitiesCommand.js +10 -11
- package/dist-cjs/commands/ListWorkspacesCommand.js +10 -11
- package/dist-cjs/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +10 -11
- package/dist-cjs/commands/QueryColleaguesCommand.js +10 -11
- package/dist-cjs/commands/QueryUserCommand.js +10 -11
- package/dist-cjs/commands/QueryUsersCommand.js +10 -11
- package/dist-cjs/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +10 -11
- package/dist-cjs/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +10 -11
- package/dist-cjs/commands/UnlinkIdentityCommand.js +10 -11
- package/dist-cjs/commands/UnlinkWorkspaceCommand.js +10 -11
- package/dist-cjs/commands/UpdateAccountCommand.js +10 -11
- package/dist-cjs/commands/UpdateBotCallbackCommand.js +10 -11
- package/dist-cjs/commands/UpdateBotCommand.js +10 -11
- package/dist-cjs/commands/UpdateUserEmailNotificationsSettingsCommand.js +10 -11
- package/dist-cjs/commands/UpdateWorkspaceCommand.js +10 -11
- package/dist-cjs/commands/UploadPictureCommand.js +10 -11
- package/dist-cjs/commands/UploadPictureV1Command.js +10 -11
- package/dist-cjs/commands/VerifyBotSecretKeyCommand.js +10 -11
- package/dist-cjs/commands/VerifyBotSecretKeyV1Command.js +10 -11
- package/dist-cjs/commands/VerifyIdentityCommand.js +10 -11
- package/dist-cjs/commands/index.js +4 -4
- 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 +4 -1
- package/dist-cjs/models/UsersServiceException.js +3 -3
- package/dist-cjs/models/enums.js +86 -0
- package/dist-cjs/models/errors.js +225 -0
- package/dist-cjs/models/models_0.js +0 -400
- package/dist-cjs/runtimeConfig.browser.js +11 -11
- package/dist-cjs/runtimeConfig.js +22 -18
- package/dist-cjs/runtimeConfig.shared.js +35 -10
- package/dist-cjs/runtimeExtensions.js +6 -5
- package/dist-cjs/schemas/schemas_0.js +1463 -0
- package/dist-es/Users.js +10 -10
- package/dist-es/UsersClient.js +30 -22
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +75 -0
- package/dist-es/commands/BatchGetUsersCommand.js +9 -10
- package/dist-es/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +9 -10
- package/dist-es/commands/BatchGetUsersPbxLinkDataCommand.js +9 -10
- package/dist-es/commands/BatchGetUsersPbxLinkDataV1Command.js +9 -10
- package/dist-es/commands/ChangeUserEmailCommand.js +9 -10
- package/dist-es/commands/CreateAnonymousSessionCommand.js +9 -10
- package/dist-es/commands/CreateBotApiKeyCommand.js +9 -10
- package/dist-es/commands/CreateBotCommand.js +9 -10
- package/dist-es/commands/CreateSystemBotCommand.js +9 -10
- package/dist-es/commands/DeleteBotApiKeyCommand.js +9 -10
- package/dist-es/commands/DeleteBotCommand.js +9 -10
- package/dist-es/commands/GetAccountCommand.js +9 -10
- package/dist-es/commands/GetAppVersionCommand.js +9 -10
- package/dist-es/commands/GetBotCallbackCommand.js +9 -10
- package/dist-es/commands/GetBotCommand.js +9 -10
- package/dist-es/commands/GetUserCommand.js +9 -10
- package/dist-es/commands/GetUserEmailNotificationsSettingsCommand.js +9 -10
- package/dist-es/commands/GetUserPbxLinkDataCommand.js +9 -10
- package/dist-es/commands/GetUserPbxLinkSuggestionCommand.js +9 -10
- package/dist-es/commands/GetUserPbxLinkSuggestionV1Command.js +9 -10
- package/dist-es/commands/IntelligenceSearchCommand.js +9 -10
- package/dist-es/commands/InviteCommand.js +9 -10
- package/dist-es/commands/LinkIdentityCommand.js +9 -10
- package/dist-es/commands/ListBotApiKeysCommand.js +9 -10
- package/dist-es/commands/ListBotsCommand.js +9 -10
- package/dist-es/commands/ListIdentitiesCommand.js +9 -10
- package/dist-es/commands/ListWorkspacesCommand.js +9 -10
- package/dist-es/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +9 -10
- package/dist-es/commands/QueryColleaguesCommand.js +9 -10
- package/dist-es/commands/QueryUserCommand.js +9 -10
- package/dist-es/commands/QueryUsersCommand.js +9 -10
- package/dist-es/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +9 -10
- package/dist-es/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +9 -10
- package/dist-es/commands/UnlinkIdentityCommand.js +9 -10
- package/dist-es/commands/UnlinkWorkspaceCommand.js +9 -10
- package/dist-es/commands/UpdateAccountCommand.js +9 -10
- package/dist-es/commands/UpdateBotCallbackCommand.js +9 -10
- package/dist-es/commands/UpdateBotCommand.js +9 -10
- package/dist-es/commands/UpdateUserEmailNotificationsSettingsCommand.js +9 -10
- package/dist-es/commands/UpdateWorkspaceCommand.js +9 -10
- package/dist-es/commands/UploadPictureCommand.js +9 -10
- package/dist-es/commands/UploadPictureV1Command.js +9 -10
- package/dist-es/commands/VerifyBotSecretKeyCommand.js +9 -10
- package/dist-es/commands/VerifyBotSecretKeyV1Command.js +9 -10
- package/dist-es/commands/VerifyIdentityCommand.js +9 -10
- package/dist-es/commands/index.js +4 -4
- 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 +4 -1
- package/dist-es/models/UsersServiceException.js +1 -1
- package/dist-es/models/enums.js +83 -0
- package/dist-es/models/errors.js +205 -0
- package/dist-es/models/models_0.js +1 -382
- package/dist-es/runtimeConfig.browser.js +7 -7
- package/dist-es/runtimeConfig.js +17 -13
- package/dist-es/runtimeConfig.shared.js +29 -4
- package/dist-es/runtimeExtensions.js +6 -5
- package/dist-es/schemas/schemas_0.js +1456 -0
- package/dist-types/Users.d.ts +46 -46
- package/dist-types/UsersClient.d.ts +75 -57
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/BatchGetUsersCommand.d.ts +11 -7
- package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +11 -7
- package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +11 -7
- package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +11 -7
- package/dist-types/commands/ChangeUserEmailCommand.d.ts +11 -7
- package/dist-types/commands/CreateAnonymousSessionCommand.d.ts +11 -7
- package/dist-types/commands/CreateBotApiKeyCommand.d.ts +11 -7
- package/dist-types/commands/CreateBotCommand.d.ts +11 -7
- package/dist-types/commands/CreateSystemBotCommand.d.ts +11 -7
- package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +11 -7
- package/dist-types/commands/DeleteBotCommand.d.ts +11 -7
- package/dist-types/commands/GetAccountCommand.d.ts +11 -7
- package/dist-types/commands/GetAppVersionCommand.d.ts +11 -7
- package/dist-types/commands/GetBotCallbackCommand.d.ts +11 -7
- package/dist-types/commands/GetBotCommand.d.ts +11 -7
- package/dist-types/commands/GetUserCommand.d.ts +11 -7
- package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +11 -7
- package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +11 -7
- package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +11 -7
- package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +11 -7
- package/dist-types/commands/IntelligenceSearchCommand.d.ts +11 -7
- package/dist-types/commands/InviteCommand.d.ts +11 -7
- package/dist-types/commands/LinkIdentityCommand.d.ts +11 -7
- package/dist-types/commands/ListBotApiKeysCommand.d.ts +11 -7
- package/dist-types/commands/ListBotsCommand.d.ts +11 -7
- package/dist-types/commands/ListIdentitiesCommand.d.ts +11 -7
- package/dist-types/commands/ListWorkspacesCommand.d.ts +11 -7
- package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +11 -7
- package/dist-types/commands/QueryColleaguesCommand.d.ts +11 -7
- package/dist-types/commands/QueryUserCommand.d.ts +11 -7
- package/dist-types/commands/QueryUsersCommand.d.ts +11 -7
- package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +11 -7
- package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +11 -7
- package/dist-types/commands/UnlinkIdentityCommand.d.ts +11 -7
- package/dist-types/commands/UnlinkWorkspaceCommand.d.ts +11 -7
- package/dist-types/commands/UpdateAccountCommand.d.ts +11 -7
- package/dist-types/commands/UpdateBotCallbackCommand.d.ts +11 -7
- package/dist-types/commands/UpdateBotCommand.d.ts +11 -7
- package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +11 -7
- package/dist-types/commands/UpdateWorkspaceCommand.d.ts +11 -7
- package/dist-types/commands/UploadPictureCommand.d.ts +11 -7
- package/dist-types/commands/UploadPictureV1Command.d.ts +12 -8
- package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +11 -7
- package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +11 -7
- package/dist-types/commands/VerifyIdentityCommand.d.ts +11 -7
- package/dist-types/commands/index.d.ts +4 -4
- 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 +5 -1
- package/dist-types/models/UsersServiceException.d.ts +1 -1
- package/dist-types/models/enums.d.ts +196 -0
- package/dist-types/models/errors.d.ts +189 -0
- package/dist-types/models/models_0.d.ts +75 -435
- package/dist-types/runtimeConfig.browser.d.ts +39 -16
- package/dist-types/runtimeConfig.d.ts +38 -15
- package/dist-types/runtimeConfig.native.d.ts +40 -17
- package/dist-types/runtimeConfig.shared.d.ts +24 -3
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +217 -0
- package/package.json +14 -40
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1915
- package/dist-es/models/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -1821
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -407
package/dist-es/Users.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
2
|
import { BatchGetUsersCommand, } from "./commands/BatchGetUsersCommand";
|
|
3
3
|
import { BatchGetUsersEmailNotificationsSettingsCommand, } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
|
|
4
4
|
import { BatchGetUsersPbxLinkDataCommand, } from "./commands/BatchGetUsersPbxLinkDataCommand";
|
|
@@ -6,29 +6,29 @@ import { BatchGetUsersPbxLinkDataV1Command, } from "./commands/BatchGetUsersPbxL
|
|
|
6
6
|
import { ChangeUserEmailCommand, } from "./commands/ChangeUserEmailCommand";
|
|
7
7
|
import { CreateAnonymousSessionCommand, } from "./commands/CreateAnonymousSessionCommand";
|
|
8
8
|
import { CreateBotApiKeyCommand, } from "./commands/CreateBotApiKeyCommand";
|
|
9
|
-
import { CreateBotCommand
|
|
9
|
+
import { CreateBotCommand } from "./commands/CreateBotCommand";
|
|
10
10
|
import { CreateSystemBotCommand, } from "./commands/CreateSystemBotCommand";
|
|
11
11
|
import { DeleteBotApiKeyCommand, } from "./commands/DeleteBotApiKeyCommand";
|
|
12
|
-
import { DeleteBotCommand
|
|
12
|
+
import { DeleteBotCommand } from "./commands/DeleteBotCommand";
|
|
13
13
|
import { GetAccountCommand, } from "./commands/GetAccountCommand";
|
|
14
14
|
import { GetAppVersionCommand, } from "./commands/GetAppVersionCommand";
|
|
15
15
|
import { GetBotCallbackCommand, } from "./commands/GetBotCallbackCommand";
|
|
16
|
-
import { GetBotCommand
|
|
17
|
-
import { GetUserCommand
|
|
16
|
+
import { GetBotCommand } from "./commands/GetBotCommand";
|
|
17
|
+
import { GetUserCommand } from "./commands/GetUserCommand";
|
|
18
18
|
import { GetUserEmailNotificationsSettingsCommand, } from "./commands/GetUserEmailNotificationsSettingsCommand";
|
|
19
19
|
import { GetUserPbxLinkDataCommand, } from "./commands/GetUserPbxLinkDataCommand";
|
|
20
20
|
import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSuggestionCommand";
|
|
21
21
|
import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
|
|
22
22
|
import { IntelligenceSearchCommand, } from "./commands/IntelligenceSearchCommand";
|
|
23
|
-
import { InviteCommand
|
|
23
|
+
import { InviteCommand } from "./commands/InviteCommand";
|
|
24
24
|
import { LinkIdentityCommand, } from "./commands/LinkIdentityCommand";
|
|
25
25
|
import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
|
|
26
|
-
import { ListBotsCommand
|
|
26
|
+
import { ListBotsCommand } from "./commands/ListBotsCommand";
|
|
27
27
|
import { ListIdentitiesCommand, } from "./commands/ListIdentitiesCommand";
|
|
28
28
|
import { ListWorkspacesCommand, } from "./commands/ListWorkspacesCommand";
|
|
29
29
|
import { PartialUpdateUserEmailNotificationsSettingsCommand, } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
|
|
30
30
|
import { QueryColleaguesCommand, } from "./commands/QueryColleaguesCommand";
|
|
31
|
-
import { QueryUserCommand
|
|
31
|
+
import { QueryUserCommand } from "./commands/QueryUserCommand";
|
|
32
32
|
import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
|
|
33
33
|
import { ToggleTranscriptionEmailNotificationsSubscriptionCommand, } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
|
|
34
34
|
import { ToggleUnreadEmailNotificationsSubscriptionCommand, } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
|
|
@@ -36,7 +36,7 @@ import { UnlinkIdentityCommand, } from "./commands/UnlinkIdentityCommand";
|
|
|
36
36
|
import { UnlinkWorkspaceCommand, } from "./commands/UnlinkWorkspaceCommand";
|
|
37
37
|
import { UpdateAccountCommand, } from "./commands/UpdateAccountCommand";
|
|
38
38
|
import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
|
|
39
|
-
import { UpdateBotCommand
|
|
39
|
+
import { UpdateBotCommand } from "./commands/UpdateBotCommand";
|
|
40
40
|
import { UpdateUserEmailNotificationsSettingsCommand, } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
|
|
41
41
|
import { UpdateWorkspaceCommand, } from "./commands/UpdateWorkspaceCommand";
|
|
42
42
|
import { UploadPictureCommand, } from "./commands/UploadPictureCommand";
|
|
@@ -44,7 +44,7 @@ import { UploadPictureV1Command, } from "./commands/UploadPictureV1Command";
|
|
|
44
44
|
import { VerifyBotSecretKeyCommand, } from "./commands/VerifyBotSecretKeyCommand";
|
|
45
45
|
import { VerifyBotSecretKeyV1Command, } from "./commands/VerifyBotSecretKeyV1Command";
|
|
46
46
|
import { VerifyIdentityCommand, } from "./commands/VerifyIdentityCommand";
|
|
47
|
-
import {
|
|
47
|
+
import { UsersClient } from "./UsersClient";
|
|
48
48
|
const commands = {
|
|
49
49
|
BatchGetUsersCommand,
|
|
50
50
|
BatchGetUsersEmailNotificationsSettingsCommand,
|
package/dist-es/UsersClient.js
CHANGED
|
@@ -1,35 +1,43 @@
|
|
|
1
|
+
import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
|
|
2
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
3
|
+
import { Client as __Client, } from "@smithy/core/client";
|
|
4
|
+
import { resolveEndpointConfig } from "@smithy/core/endpoints";
|
|
5
|
+
import { getContentLengthPlugin } from "@smithy/core/protocols";
|
|
6
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
8
|
+
import { defaultUsersHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
9
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
1
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
2
|
-
import { resolveRuntimeExtensions
|
|
3
|
-
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
4
|
-
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
5
|
-
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
6
|
-
import { Client as __Client, } from "@smithy/smithy-client";
|
|
7
|
-
import { authorizationMiddleware } from '@wildix/smithy-utils';
|
|
11
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
8
12
|
export { __Client };
|
|
9
13
|
export class UsersClient extends __Client {
|
|
10
14
|
config;
|
|
11
15
|
constructor(...[configuration]) {
|
|
12
|
-
|
|
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
|
-
this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
19
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
20
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
21
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
22
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
23
|
+
const _config_5 = resolveEndpointConfig(_config_4);
|
|
24
|
+
const _config_6 = resolveHttpAuthSchemeConfig(_config_5);
|
|
25
|
+
const _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []);
|
|
26
|
+
this.config = _config_7;
|
|
27
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
30
28
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
29
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
32
30
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
35
|
+
httpAuthSchemeParametersProvider: defaultUsersHttpAuthSchemeParametersProvider,
|
|
36
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
37
|
+
"smithy.api#httpBearerAuth": config.token,
|
|
38
|
+
}),
|
|
39
|
+
}));
|
|
40
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
33
41
|
}
|
|
34
42
|
destroy() {
|
|
35
43
|
super.destroy();
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _token = runtimeConfig.token;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setToken(token) {
|
|
25
|
+
_token = token;
|
|
26
|
+
},
|
|
27
|
+
token() {
|
|
28
|
+
return _token;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
token: config.token(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
|
|
3
|
+
export const defaultUsersHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
|
|
9
|
+
return {
|
|
10
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
14
|
+
return {
|
|
15
|
+
schemeId: "smithy.api#noAuth",
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function createWildixAuthApiKeysHttpAuthOption(authParameters) {
|
|
19
|
+
return {
|
|
20
|
+
schemeId: "wildix.auth#apiKeys",
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function createWildixAuthBotHttpAuthOption(authParameters) {
|
|
24
|
+
return {
|
|
25
|
+
schemeId: "wildix.auth#bot",
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function createWildixAuthPbxHttpAuthOption(authParameters) {
|
|
29
|
+
return {
|
|
30
|
+
schemeId: "wildix.auth#pbx",
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function createWildixAuthS2sHttpAuthOption(authParameters) {
|
|
34
|
+
return {
|
|
35
|
+
schemeId: "wildix.auth#s2s",
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function createWildixAuthXbsHttpAuthOption(authParameters) {
|
|
39
|
+
return {
|
|
40
|
+
schemeId: "wildix.auth#xbs",
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
|
|
44
|
+
const options = [];
|
|
45
|
+
switch (authParameters.operation) {
|
|
46
|
+
case "CreateAnonymousSession":
|
|
47
|
+
{
|
|
48
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
;
|
|
52
|
+
case "UpdateWorkspace":
|
|
53
|
+
{
|
|
54
|
+
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
;
|
|
58
|
+
default: {
|
|
59
|
+
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
60
|
+
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
61
|
+
options.push(createWildixAuthXbsHttpAuthOption(authParameters));
|
|
62
|
+
options.push(createWildixAuthBotHttpAuthOption(authParameters));
|
|
63
|
+
options.push(createWildixAuthPbxHttpAuthOption(authParameters));
|
|
64
|
+
options.push(createWildixAuthApiKeysHttpAuthOption(authParameters));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return options;
|
|
68
|
+
};
|
|
69
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
70
|
+
const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
|
|
71
|
+
return Object.assign(config, {
|
|
72
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
73
|
+
token,
|
|
74
|
+
});
|
|
75
|
+
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
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 { BatchGetUsers$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class BatchGetUsersCommand extends $Command
|
|
6
|
+
export class BatchGetUsersCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Users", "BatchGetUsers", {})
|
|
12
13
|
.n("UsersClient", "BatchGetUsersCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_BatchGetUsersCommand)
|
|
15
|
-
.de(de_BatchGetUsersCommand)
|
|
14
|
+
.sc(BatchGetUsers$)
|
|
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 { BatchGetUsersEmailNotificationsSettings$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class BatchGetUsersEmailNotificationsSettingsCommand extends $Command
|
|
6
|
+
export class BatchGetUsersEmailNotificationsSettingsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Users", "BatchGetUsersEmailNotificationsSettings", {})
|
|
12
13
|
.n("UsersClient", "BatchGetUsersEmailNotificationsSettingsCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_BatchGetUsersEmailNotificationsSettingsCommand)
|
|
15
|
-
.de(de_BatchGetUsersEmailNotificationsSettingsCommand)
|
|
14
|
+
.sc(BatchGetUsersEmailNotificationsSettings$)
|
|
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 { BatchGetUsersPbxLinkData$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class BatchGetUsersPbxLinkDataCommand extends $Command
|
|
6
|
+
export class BatchGetUsersPbxLinkDataCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Users", "BatchGetUsersPbxLinkData", {})
|
|
12
13
|
.n("UsersClient", "BatchGetUsersPbxLinkDataCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_BatchGetUsersPbxLinkDataCommand)
|
|
15
|
-
.de(de_BatchGetUsersPbxLinkDataCommand)
|
|
14
|
+
.sc(BatchGetUsersPbxLinkData$)
|
|
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 { BatchGetUsersPbxLinkDataV1$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class BatchGetUsersPbxLinkDataV1Command extends $Command
|
|
6
|
+
export class BatchGetUsersPbxLinkDataV1Command extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Users", "BatchGetUsersPbxLinkDataV1", {})
|
|
12
13
|
.n("UsersClient", "BatchGetUsersPbxLinkDataV1Command")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_BatchGetUsersPbxLinkDataV1Command)
|
|
15
|
-
.de(de_BatchGetUsersPbxLinkDataV1Command)
|
|
14
|
+
.sc(BatchGetUsersPbxLinkDataV1$)
|
|
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 { ChangeUserEmail$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class ChangeUserEmailCommand extends $Command
|
|
6
|
+
export class ChangeUserEmailCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Users", "ChangeUserEmail", {})
|
|
12
13
|
.n("UsersClient", "ChangeUserEmailCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_ChangeUserEmailCommand)
|
|
15
|
-
.de(de_ChangeUserEmailCommand)
|
|
14
|
+
.sc(ChangeUserEmail$)
|
|
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 { CreateAnonymousSession$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class CreateAnonymousSessionCommand extends $Command
|
|
6
|
+
export class CreateAnonymousSessionCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Users", "CreateAnonymousSession", {})
|
|
12
13
|
.n("UsersClient", "CreateAnonymousSessionCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_CreateAnonymousSessionCommand)
|
|
15
|
-
.de(de_CreateAnonymousSessionCommand)
|
|
14
|
+
.sc(CreateAnonymousSession$)
|
|
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 { CreateBotApiKey$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class CreateBotApiKeyCommand extends $Command
|
|
6
|
+
export class CreateBotApiKeyCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Users", "CreateBotApiKey", {})
|
|
12
13
|
.n("UsersClient", "CreateBotApiKeyCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_CreateBotApiKeyCommand)
|
|
15
|
-
.de(de_CreateBotApiKeyCommand)
|
|
14
|
+
.sc(CreateBotApiKey$)
|
|
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 { CreateBot$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class CreateBotCommand extends $Command
|
|
6
|
+
export class CreateBotCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Users", "CreateBot", {})
|
|
12
13
|
.n("UsersClient", "CreateBotCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_CreateBotCommand)
|
|
15
|
-
.de(de_CreateBotCommand)
|
|
14
|
+
.sc(CreateBot$)
|
|
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 { CreateSystemBot$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class CreateSystemBotCommand extends $Command
|
|
6
|
+
export class CreateSystemBotCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Users", "CreateSystemBot", {})
|
|
12
13
|
.n("UsersClient", "CreateSystemBotCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_CreateSystemBotCommand)
|
|
15
|
-
.de(de_CreateSystemBotCommand)
|
|
14
|
+
.sc(CreateSystemBot$)
|
|
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 { DeleteBotApiKey$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class DeleteBotApiKeyCommand extends $Command
|
|
6
|
+
export class DeleteBotApiKeyCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Users", "DeleteBotApiKey", {})
|
|
12
13
|
.n("UsersClient", "DeleteBotApiKeyCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_DeleteBotApiKeyCommand)
|
|
15
|
-
.de(de_DeleteBotApiKeyCommand)
|
|
14
|
+
.sc(DeleteBotApiKey$)
|
|
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 { DeleteBot$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class DeleteBotCommand extends $Command
|
|
6
|
+
export class DeleteBotCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Users", "DeleteBot", {})
|
|
12
13
|
.n("UsersClient", "DeleteBotCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_DeleteBotCommand)
|
|
15
|
-
.de(de_DeleteBotCommand)
|
|
14
|
+
.sc(DeleteBot$)
|
|
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 { GetAccount$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetAccountCommand extends $Command
|
|
6
|
+
export class GetAccountCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Users", "GetAccount", {})
|
|
12
13
|
.n("UsersClient", "GetAccountCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetAccountCommand)
|
|
15
|
-
.de(de_GetAccountCommand)
|
|
14
|
+
.sc(GetAccount$)
|
|
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 { GetAppVersion$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetAppVersionCommand extends $Command
|
|
6
|
+
export class GetAppVersionCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Users", "GetAppVersion", {})
|
|
12
13
|
.n("UsersClient", "GetAppVersionCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetAppVersionCommand)
|
|
15
|
-
.de(de_GetAppVersionCommand)
|
|
14
|
+
.sc(GetAppVersion$)
|
|
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 { GetBotCallback$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetBotCallbackCommand extends $Command
|
|
6
|
+
export class GetBotCallbackCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Users", "GetBotCallback", {})
|
|
12
13
|
.n("UsersClient", "GetBotCallbackCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetBotCallbackCommand)
|
|
15
|
-
.de(de_GetBotCallbackCommand)
|
|
14
|
+
.sc(GetBotCallback$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|