@aws-sdk/client-support-app 3.928.0 → 3.929.0
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/index.js +353 -478
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/SupportAppClient.js +2 -0
- package/dist-es/commands/CreateSlackChannelConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteAccountAliasCommand.js +3 -9
- package/dist-es/commands/DeleteSlackChannelConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteSlackWorkspaceConfigurationCommand.js +3 -9
- package/dist-es/commands/GetAccountAliasCommand.js +3 -9
- package/dist-es/commands/ListSlackChannelConfigurationsCommand.js +3 -9
- package/dist-es/commands/ListSlackWorkspaceConfigurationsCommand.js +3 -9
- package/dist-es/commands/PutAccountAliasCommand.js +3 -9
- package/dist-es/commands/RegisterSlackWorkspaceForOrganizationCommand.js +3 -9
- package/dist-es/commands/UpdateSlackChannelConfigurationCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +313 -0
- package/dist-types/SupportAppClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +42 -0
- package/dist-types/ts3.4/SupportAppClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +47 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -391
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -92
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -125
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: SupportAppClientConfig) => {
|
|
|
31
31
|
profile?: string;
|
|
32
32
|
logger: import("@smithy/types").Logger;
|
|
33
33
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
34
35
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
35
36
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
36
37
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: SupportAppClientConfig) => {
|
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
30
31
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
31
32
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
32
33
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: SupportAppClientConfig) => {
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SupportAppHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
17
18
|
serviceId: string;
|
|
18
19
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
20
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
3
|
+
export declare var ConflictException: StaticErrorSchema;
|
|
4
|
+
export declare var CreateSlackChannelConfigurationRequest: StaticStructureSchema;
|
|
5
|
+
export declare var CreateSlackChannelConfigurationResult: StaticStructureSchema;
|
|
6
|
+
export declare var DeleteAccountAliasRequest: StaticStructureSchema;
|
|
7
|
+
export declare var DeleteAccountAliasResult: StaticStructureSchema;
|
|
8
|
+
export declare var DeleteSlackChannelConfigurationRequest: StaticStructureSchema;
|
|
9
|
+
export declare var DeleteSlackChannelConfigurationResult: StaticStructureSchema;
|
|
10
|
+
export declare var DeleteSlackWorkspaceConfigurationRequest: StaticStructureSchema;
|
|
11
|
+
export declare var DeleteSlackWorkspaceConfigurationResult: StaticStructureSchema;
|
|
12
|
+
export declare var GetAccountAliasRequest: StaticStructureSchema;
|
|
13
|
+
export declare var GetAccountAliasResult: StaticStructureSchema;
|
|
14
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
15
|
+
export declare var ListSlackChannelConfigurationsRequest: StaticStructureSchema;
|
|
16
|
+
export declare var ListSlackChannelConfigurationsResult: StaticStructureSchema;
|
|
17
|
+
export declare var ListSlackWorkspaceConfigurationsRequest: StaticStructureSchema;
|
|
18
|
+
export declare var ListSlackWorkspaceConfigurationsResult: StaticStructureSchema;
|
|
19
|
+
export declare var PutAccountAliasRequest: StaticStructureSchema;
|
|
20
|
+
export declare var PutAccountAliasResult: StaticStructureSchema;
|
|
21
|
+
export declare var RegisterSlackWorkspaceForOrganizationRequest: StaticStructureSchema;
|
|
22
|
+
export declare var RegisterSlackWorkspaceForOrganizationResult: StaticStructureSchema;
|
|
23
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
24
|
+
export declare var ServiceQuotaExceededException: StaticErrorSchema;
|
|
25
|
+
export declare var SlackChannelConfiguration: StaticStructureSchema;
|
|
26
|
+
export declare var SlackWorkspaceConfiguration: StaticStructureSchema;
|
|
27
|
+
export declare var UpdateSlackChannelConfigurationRequest: StaticStructureSchema;
|
|
28
|
+
export declare var UpdateSlackChannelConfigurationResult: StaticStructureSchema;
|
|
29
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
30
|
+
export declare var SupportAppServiceException: StaticErrorSchema;
|
|
31
|
+
export declare var slackChannelConfigurationList: StaticListSchema;
|
|
32
|
+
export declare var SlackWorkspaceConfigurationList: StaticListSchema;
|
|
33
|
+
export declare var CreateSlackChannelConfiguration: StaticOperationSchema;
|
|
34
|
+
export declare var DeleteAccountAlias: StaticOperationSchema;
|
|
35
|
+
export declare var DeleteSlackChannelConfiguration: StaticOperationSchema;
|
|
36
|
+
export declare var DeleteSlackWorkspaceConfiguration: StaticOperationSchema;
|
|
37
|
+
export declare var GetAccountAlias: StaticOperationSchema;
|
|
38
|
+
export declare var ListSlackChannelConfigurations: StaticOperationSchema;
|
|
39
|
+
export declare var ListSlackWorkspaceConfigurations: StaticOperationSchema;
|
|
40
|
+
export declare var PutAccountAlias: StaticOperationSchema;
|
|
41
|
+
export declare var RegisterSlackWorkspaceForOrganization: StaticOperationSchema;
|
|
42
|
+
export declare var UpdateSlackChannelConfiguration: StaticOperationSchema;
|
|
@@ -30,10 +30,13 @@ import {
|
|
|
30
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
32
|
ChecksumConstructor as __ChecksumConstructor,
|
|
33
|
+
ClientProtocol,
|
|
33
34
|
Decoder as __Decoder,
|
|
34
35
|
Encoder as __Encoder,
|
|
35
36
|
HashConstructor as __HashConstructor,
|
|
36
37
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
38
|
+
HttpRequest,
|
|
39
|
+
HttpResponse,
|
|
37
40
|
Logger as __Logger,
|
|
38
41
|
Provider as __Provider,
|
|
39
42
|
Provider,
|
|
@@ -138,6 +141,7 @@ export interface ClientDefaults
|
|
|
138
141
|
retryMode?: string | __Provider<string>;
|
|
139
142
|
logger?: __Logger;
|
|
140
143
|
extensions?: RuntimeExtension[];
|
|
144
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
141
145
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
142
146
|
}
|
|
143
147
|
export type SupportAppClientConfigType = Partial<
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: SupportAppClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
userAgentAppId?:
|
|
43
47
|
| string
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: SupportAppClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
retryStrategy?:
|
|
43
47
|
| import("@smithy/types").RetryStrategy
|
|
@@ -37,6 +37,10 @@ export declare const getRuntimeConfig: (config: SupportAppClientConfig) => {
|
|
|
37
37
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
38
38
|
logger: import("@smithy/types").Logger;
|
|
39
39
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
40
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
41
|
+
import("@smithy/types").HttpRequest,
|
|
42
|
+
import("@smithy/types").HttpResponse
|
|
43
|
+
>;
|
|
40
44
|
defaultsMode:
|
|
41
45
|
| import("@smithy/smithy-client").DefaultsMode
|
|
42
46
|
| import("@smithy/types").Provider<
|
|
@@ -14,6 +14,10 @@ export declare const getRuntimeConfig: (config: SupportAppClientConfig) => {
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SupportAppHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
18
|
+
import("@smithy/types").HttpRequest,
|
|
19
|
+
import("@smithy/types").HttpResponse
|
|
20
|
+
>;
|
|
17
21
|
serviceId: string;
|
|
18
22
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
23
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticStructureSchema,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
8
|
+
export declare var ConflictException: StaticErrorSchema;
|
|
9
|
+
export declare var CreateSlackChannelConfigurationRequest: StaticStructureSchema;
|
|
10
|
+
export declare var CreateSlackChannelConfigurationResult: StaticStructureSchema;
|
|
11
|
+
export declare var DeleteAccountAliasRequest: StaticStructureSchema;
|
|
12
|
+
export declare var DeleteAccountAliasResult: StaticStructureSchema;
|
|
13
|
+
export declare var DeleteSlackChannelConfigurationRequest: StaticStructureSchema;
|
|
14
|
+
export declare var DeleteSlackChannelConfigurationResult: StaticStructureSchema;
|
|
15
|
+
export declare var DeleteSlackWorkspaceConfigurationRequest: StaticStructureSchema;
|
|
16
|
+
export declare var DeleteSlackWorkspaceConfigurationResult: StaticStructureSchema;
|
|
17
|
+
export declare var GetAccountAliasRequest: StaticStructureSchema;
|
|
18
|
+
export declare var GetAccountAliasResult: StaticStructureSchema;
|
|
19
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
20
|
+
export declare var ListSlackChannelConfigurationsRequest: StaticStructureSchema;
|
|
21
|
+
export declare var ListSlackChannelConfigurationsResult: StaticStructureSchema;
|
|
22
|
+
export declare var ListSlackWorkspaceConfigurationsRequest: StaticStructureSchema;
|
|
23
|
+
export declare var ListSlackWorkspaceConfigurationsResult: StaticStructureSchema;
|
|
24
|
+
export declare var PutAccountAliasRequest: StaticStructureSchema;
|
|
25
|
+
export declare var PutAccountAliasResult: StaticStructureSchema;
|
|
26
|
+
export declare var RegisterSlackWorkspaceForOrganizationRequest: StaticStructureSchema;
|
|
27
|
+
export declare var RegisterSlackWorkspaceForOrganizationResult: StaticStructureSchema;
|
|
28
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
29
|
+
export declare var ServiceQuotaExceededException: StaticErrorSchema;
|
|
30
|
+
export declare var SlackChannelConfiguration: StaticStructureSchema;
|
|
31
|
+
export declare var SlackWorkspaceConfiguration: StaticStructureSchema;
|
|
32
|
+
export declare var UpdateSlackChannelConfigurationRequest: StaticStructureSchema;
|
|
33
|
+
export declare var UpdateSlackChannelConfigurationResult: StaticStructureSchema;
|
|
34
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
35
|
+
export declare var SupportAppServiceException: StaticErrorSchema;
|
|
36
|
+
export declare var slackChannelConfigurationList: StaticListSchema;
|
|
37
|
+
export declare var SlackWorkspaceConfigurationList: StaticListSchema;
|
|
38
|
+
export declare var CreateSlackChannelConfiguration: StaticOperationSchema;
|
|
39
|
+
export declare var DeleteAccountAlias: StaticOperationSchema;
|
|
40
|
+
export declare var DeleteSlackChannelConfiguration: StaticOperationSchema;
|
|
41
|
+
export declare var DeleteSlackWorkspaceConfiguration: StaticOperationSchema;
|
|
42
|
+
export declare var GetAccountAlias: StaticOperationSchema;
|
|
43
|
+
export declare var ListSlackChannelConfigurations: StaticOperationSchema;
|
|
44
|
+
export declare var ListSlackWorkspaceConfigurations: StaticOperationSchema;
|
|
45
|
+
export declare var PutAccountAlias: StaticOperationSchema;
|
|
46
|
+
export declare var RegisterSlackWorkspaceForOrganization: StaticOperationSchema;
|
|
47
|
+
export declare var UpdateSlackChannelConfiguration: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-support-app",
|
|
3
3
|
"description": "AWS SDK for JavaScript Support App Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.929.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-support-app",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.928.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.929.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
@@ -1,391 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
5
|
-
import { SupportAppServiceException as __BaseException } from "../models/SupportAppServiceException";
|
|
6
|
-
export const se_CreateSlackChannelConfigurationCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/control/create-slack-channel-configuration");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
channelId: [],
|
|
15
|
-
channelName: [],
|
|
16
|
-
channelRoleArn: [],
|
|
17
|
-
notifyOnAddCorrespondenceToCase: [],
|
|
18
|
-
notifyOnCaseSeverity: [],
|
|
19
|
-
notifyOnCreateOrReopenCase: [],
|
|
20
|
-
notifyOnResolveCase: [],
|
|
21
|
-
teamId: [],
|
|
22
|
-
}));
|
|
23
|
-
b.m("POST").h(headers).b(body);
|
|
24
|
-
return b.build();
|
|
25
|
-
};
|
|
26
|
-
export const se_DeleteAccountAliasCommand = async (input, context) => {
|
|
27
|
-
const b = rb(input, context);
|
|
28
|
-
const headers = {};
|
|
29
|
-
b.bp("/control/delete-account-alias");
|
|
30
|
-
let body;
|
|
31
|
-
b.m("POST").h(headers).b(body);
|
|
32
|
-
return b.build();
|
|
33
|
-
};
|
|
34
|
-
export const se_DeleteSlackChannelConfigurationCommand = async (input, context) => {
|
|
35
|
-
const b = rb(input, context);
|
|
36
|
-
const headers = {
|
|
37
|
-
"content-type": "application/json",
|
|
38
|
-
};
|
|
39
|
-
b.bp("/control/delete-slack-channel-configuration");
|
|
40
|
-
let body;
|
|
41
|
-
body = JSON.stringify(take(input, {
|
|
42
|
-
channelId: [],
|
|
43
|
-
teamId: [],
|
|
44
|
-
}));
|
|
45
|
-
b.m("POST").h(headers).b(body);
|
|
46
|
-
return b.build();
|
|
47
|
-
};
|
|
48
|
-
export const se_DeleteSlackWorkspaceConfigurationCommand = async (input, context) => {
|
|
49
|
-
const b = rb(input, context);
|
|
50
|
-
const headers = {
|
|
51
|
-
"content-type": "application/json",
|
|
52
|
-
};
|
|
53
|
-
b.bp("/control/delete-slack-workspace-configuration");
|
|
54
|
-
let body;
|
|
55
|
-
body = JSON.stringify(take(input, {
|
|
56
|
-
teamId: [],
|
|
57
|
-
}));
|
|
58
|
-
b.m("POST").h(headers).b(body);
|
|
59
|
-
return b.build();
|
|
60
|
-
};
|
|
61
|
-
export const se_GetAccountAliasCommand = async (input, context) => {
|
|
62
|
-
const b = rb(input, context);
|
|
63
|
-
const headers = {};
|
|
64
|
-
b.bp("/control/get-account-alias");
|
|
65
|
-
let body;
|
|
66
|
-
b.m("POST").h(headers).b(body);
|
|
67
|
-
return b.build();
|
|
68
|
-
};
|
|
69
|
-
export const se_ListSlackChannelConfigurationsCommand = async (input, context) => {
|
|
70
|
-
const b = rb(input, context);
|
|
71
|
-
const headers = {
|
|
72
|
-
"content-type": "application/json",
|
|
73
|
-
};
|
|
74
|
-
b.bp("/control/list-slack-channel-configurations");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(take(input, {
|
|
77
|
-
nextToken: [],
|
|
78
|
-
}));
|
|
79
|
-
b.m("POST").h(headers).b(body);
|
|
80
|
-
return b.build();
|
|
81
|
-
};
|
|
82
|
-
export const se_ListSlackWorkspaceConfigurationsCommand = async (input, context) => {
|
|
83
|
-
const b = rb(input, context);
|
|
84
|
-
const headers = {
|
|
85
|
-
"content-type": "application/json",
|
|
86
|
-
};
|
|
87
|
-
b.bp("/control/list-slack-workspace-configurations");
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify(take(input, {
|
|
90
|
-
nextToken: [],
|
|
91
|
-
}));
|
|
92
|
-
b.m("POST").h(headers).b(body);
|
|
93
|
-
return b.build();
|
|
94
|
-
};
|
|
95
|
-
export const se_PutAccountAliasCommand = async (input, context) => {
|
|
96
|
-
const b = rb(input, context);
|
|
97
|
-
const headers = {
|
|
98
|
-
"content-type": "application/json",
|
|
99
|
-
};
|
|
100
|
-
b.bp("/control/put-account-alias");
|
|
101
|
-
let body;
|
|
102
|
-
body = JSON.stringify(take(input, {
|
|
103
|
-
accountAlias: [],
|
|
104
|
-
}));
|
|
105
|
-
b.m("POST").h(headers).b(body);
|
|
106
|
-
return b.build();
|
|
107
|
-
};
|
|
108
|
-
export const se_RegisterSlackWorkspaceForOrganizationCommand = async (input, context) => {
|
|
109
|
-
const b = rb(input, context);
|
|
110
|
-
const headers = {
|
|
111
|
-
"content-type": "application/json",
|
|
112
|
-
};
|
|
113
|
-
b.bp("/control/register-slack-workspace-for-organization");
|
|
114
|
-
let body;
|
|
115
|
-
body = JSON.stringify(take(input, {
|
|
116
|
-
teamId: [],
|
|
117
|
-
}));
|
|
118
|
-
b.m("POST").h(headers).b(body);
|
|
119
|
-
return b.build();
|
|
120
|
-
};
|
|
121
|
-
export const se_UpdateSlackChannelConfigurationCommand = async (input, context) => {
|
|
122
|
-
const b = rb(input, context);
|
|
123
|
-
const headers = {
|
|
124
|
-
"content-type": "application/json",
|
|
125
|
-
};
|
|
126
|
-
b.bp("/control/update-slack-channel-configuration");
|
|
127
|
-
let body;
|
|
128
|
-
body = JSON.stringify(take(input, {
|
|
129
|
-
channelId: [],
|
|
130
|
-
channelName: [],
|
|
131
|
-
channelRoleArn: [],
|
|
132
|
-
notifyOnAddCorrespondenceToCase: [],
|
|
133
|
-
notifyOnCaseSeverity: [],
|
|
134
|
-
notifyOnCreateOrReopenCase: [],
|
|
135
|
-
notifyOnResolveCase: [],
|
|
136
|
-
teamId: [],
|
|
137
|
-
}));
|
|
138
|
-
b.m("POST").h(headers).b(body);
|
|
139
|
-
return b.build();
|
|
140
|
-
};
|
|
141
|
-
export const de_CreateSlackChannelConfigurationCommand = async (output, context) => {
|
|
142
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
143
|
-
return de_CommandError(output, context);
|
|
144
|
-
}
|
|
145
|
-
const contents = map({
|
|
146
|
-
$metadata: deserializeMetadata(output),
|
|
147
|
-
});
|
|
148
|
-
await collectBody(output.body, context);
|
|
149
|
-
return contents;
|
|
150
|
-
};
|
|
151
|
-
export const de_DeleteAccountAliasCommand = async (output, context) => {
|
|
152
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
153
|
-
return de_CommandError(output, context);
|
|
154
|
-
}
|
|
155
|
-
const contents = map({
|
|
156
|
-
$metadata: deserializeMetadata(output),
|
|
157
|
-
});
|
|
158
|
-
await collectBody(output.body, context);
|
|
159
|
-
return contents;
|
|
160
|
-
};
|
|
161
|
-
export const de_DeleteSlackChannelConfigurationCommand = async (output, context) => {
|
|
162
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
163
|
-
return de_CommandError(output, context);
|
|
164
|
-
}
|
|
165
|
-
const contents = map({
|
|
166
|
-
$metadata: deserializeMetadata(output),
|
|
167
|
-
});
|
|
168
|
-
await collectBody(output.body, context);
|
|
169
|
-
return contents;
|
|
170
|
-
};
|
|
171
|
-
export const de_DeleteSlackWorkspaceConfigurationCommand = async (output, context) => {
|
|
172
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
173
|
-
return de_CommandError(output, context);
|
|
174
|
-
}
|
|
175
|
-
const contents = map({
|
|
176
|
-
$metadata: deserializeMetadata(output),
|
|
177
|
-
});
|
|
178
|
-
await collectBody(output.body, context);
|
|
179
|
-
return contents;
|
|
180
|
-
};
|
|
181
|
-
export const de_GetAccountAliasCommand = async (output, context) => {
|
|
182
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
183
|
-
return de_CommandError(output, context);
|
|
184
|
-
}
|
|
185
|
-
const contents = map({
|
|
186
|
-
$metadata: deserializeMetadata(output),
|
|
187
|
-
});
|
|
188
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
189
|
-
const doc = take(data, {
|
|
190
|
-
accountAlias: __expectString,
|
|
191
|
-
});
|
|
192
|
-
Object.assign(contents, doc);
|
|
193
|
-
return contents;
|
|
194
|
-
};
|
|
195
|
-
export const de_ListSlackChannelConfigurationsCommand = async (output, context) => {
|
|
196
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
197
|
-
return de_CommandError(output, context);
|
|
198
|
-
}
|
|
199
|
-
const contents = map({
|
|
200
|
-
$metadata: deserializeMetadata(output),
|
|
201
|
-
});
|
|
202
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
203
|
-
const doc = take(data, {
|
|
204
|
-
nextToken: __expectString,
|
|
205
|
-
slackChannelConfigurations: _json,
|
|
206
|
-
});
|
|
207
|
-
Object.assign(contents, doc);
|
|
208
|
-
return contents;
|
|
209
|
-
};
|
|
210
|
-
export const de_ListSlackWorkspaceConfigurationsCommand = async (output, context) => {
|
|
211
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
212
|
-
return de_CommandError(output, context);
|
|
213
|
-
}
|
|
214
|
-
const contents = map({
|
|
215
|
-
$metadata: deserializeMetadata(output),
|
|
216
|
-
});
|
|
217
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
218
|
-
const doc = take(data, {
|
|
219
|
-
nextToken: __expectString,
|
|
220
|
-
slackWorkspaceConfigurations: _json,
|
|
221
|
-
});
|
|
222
|
-
Object.assign(contents, doc);
|
|
223
|
-
return contents;
|
|
224
|
-
};
|
|
225
|
-
export const de_PutAccountAliasCommand = async (output, context) => {
|
|
226
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
227
|
-
return de_CommandError(output, context);
|
|
228
|
-
}
|
|
229
|
-
const contents = map({
|
|
230
|
-
$metadata: deserializeMetadata(output),
|
|
231
|
-
});
|
|
232
|
-
await collectBody(output.body, context);
|
|
233
|
-
return contents;
|
|
234
|
-
};
|
|
235
|
-
export const de_RegisterSlackWorkspaceForOrganizationCommand = async (output, context) => {
|
|
236
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
237
|
-
return de_CommandError(output, context);
|
|
238
|
-
}
|
|
239
|
-
const contents = map({
|
|
240
|
-
$metadata: deserializeMetadata(output),
|
|
241
|
-
});
|
|
242
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
243
|
-
const doc = take(data, {
|
|
244
|
-
accountType: __expectString,
|
|
245
|
-
teamId: __expectString,
|
|
246
|
-
teamName: __expectString,
|
|
247
|
-
});
|
|
248
|
-
Object.assign(contents, doc);
|
|
249
|
-
return contents;
|
|
250
|
-
};
|
|
251
|
-
export const de_UpdateSlackChannelConfigurationCommand = async (output, context) => {
|
|
252
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
253
|
-
return de_CommandError(output, context);
|
|
254
|
-
}
|
|
255
|
-
const contents = map({
|
|
256
|
-
$metadata: deserializeMetadata(output),
|
|
257
|
-
});
|
|
258
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
259
|
-
const doc = take(data, {
|
|
260
|
-
channelId: __expectString,
|
|
261
|
-
channelName: __expectString,
|
|
262
|
-
channelRoleArn: __expectString,
|
|
263
|
-
notifyOnAddCorrespondenceToCase: __expectBoolean,
|
|
264
|
-
notifyOnCaseSeverity: __expectString,
|
|
265
|
-
notifyOnCreateOrReopenCase: __expectBoolean,
|
|
266
|
-
notifyOnResolveCase: __expectBoolean,
|
|
267
|
-
teamId: __expectString,
|
|
268
|
-
});
|
|
269
|
-
Object.assign(contents, doc);
|
|
270
|
-
return contents;
|
|
271
|
-
};
|
|
272
|
-
const de_CommandError = async (output, context) => {
|
|
273
|
-
const parsedOutput = {
|
|
274
|
-
...output,
|
|
275
|
-
body: await parseErrorBody(output.body, context),
|
|
276
|
-
};
|
|
277
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
278
|
-
switch (errorCode) {
|
|
279
|
-
case "AccessDeniedException":
|
|
280
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
281
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
282
|
-
case "ConflictException":
|
|
283
|
-
case "com.amazonaws.supportapp#ConflictException":
|
|
284
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
285
|
-
case "InternalServerException":
|
|
286
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
287
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
288
|
-
case "ServiceQuotaExceededException":
|
|
289
|
-
case "com.amazonaws.supportapp#ServiceQuotaExceededException":
|
|
290
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
291
|
-
case "ValidationException":
|
|
292
|
-
case "com.amazonaws.supportapp#ValidationException":
|
|
293
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
294
|
-
case "ResourceNotFoundException":
|
|
295
|
-
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
296
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
297
|
-
default:
|
|
298
|
-
const parsedBody = parsedOutput.body;
|
|
299
|
-
return throwDefaultError({
|
|
300
|
-
output,
|
|
301
|
-
parsedBody,
|
|
302
|
-
errorCode,
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
307
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
308
|
-
const contents = map({});
|
|
309
|
-
const data = parsedOutput.body;
|
|
310
|
-
const doc = take(data, {
|
|
311
|
-
message: __expectString,
|
|
312
|
-
});
|
|
313
|
-
Object.assign(contents, doc);
|
|
314
|
-
const exception = new AccessDeniedException({
|
|
315
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
316
|
-
...contents,
|
|
317
|
-
});
|
|
318
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
319
|
-
};
|
|
320
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
321
|
-
const contents = map({});
|
|
322
|
-
const data = parsedOutput.body;
|
|
323
|
-
const doc = take(data, {
|
|
324
|
-
message: __expectString,
|
|
325
|
-
});
|
|
326
|
-
Object.assign(contents, doc);
|
|
327
|
-
const exception = new ConflictException({
|
|
328
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
329
|
-
...contents,
|
|
330
|
-
});
|
|
331
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
332
|
-
};
|
|
333
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
334
|
-
const contents = map({});
|
|
335
|
-
const data = parsedOutput.body;
|
|
336
|
-
const doc = take(data, {
|
|
337
|
-
message: __expectString,
|
|
338
|
-
});
|
|
339
|
-
Object.assign(contents, doc);
|
|
340
|
-
const exception = new InternalServerException({
|
|
341
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
342
|
-
...contents,
|
|
343
|
-
});
|
|
344
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
345
|
-
};
|
|
346
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
347
|
-
const contents = map({});
|
|
348
|
-
const data = parsedOutput.body;
|
|
349
|
-
const doc = take(data, {
|
|
350
|
-
message: __expectString,
|
|
351
|
-
});
|
|
352
|
-
Object.assign(contents, doc);
|
|
353
|
-
const exception = new ResourceNotFoundException({
|
|
354
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
355
|
-
...contents,
|
|
356
|
-
});
|
|
357
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
358
|
-
};
|
|
359
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
360
|
-
const contents = map({});
|
|
361
|
-
const data = parsedOutput.body;
|
|
362
|
-
const doc = take(data, {
|
|
363
|
-
message: __expectString,
|
|
364
|
-
});
|
|
365
|
-
Object.assign(contents, doc);
|
|
366
|
-
const exception = new ServiceQuotaExceededException({
|
|
367
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
368
|
-
...contents,
|
|
369
|
-
});
|
|
370
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
371
|
-
};
|
|
372
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
373
|
-
const contents = map({});
|
|
374
|
-
const data = parsedOutput.body;
|
|
375
|
-
const doc = take(data, {
|
|
376
|
-
message: __expectString,
|
|
377
|
-
});
|
|
378
|
-
Object.assign(contents, doc);
|
|
379
|
-
const exception = new ValidationException({
|
|
380
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
381
|
-
...contents,
|
|
382
|
-
});
|
|
383
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
384
|
-
};
|
|
385
|
-
const deserializeMetadata = (output) => ({
|
|
386
|
-
httpStatusCode: output.statusCode,
|
|
387
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
388
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
389
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
390
|
-
});
|
|
391
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|