@aws-sdk/client-support-app 3.899.0 → 3.906.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 +778 -915
- package/package.json +37 -37
package/dist-cjs/index.js
CHANGED
|
@@ -1,945 +1,808 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
InternalServerException: () => InternalServerException,
|
|
33
|
-
ListSlackChannelConfigurationsCommand: () => ListSlackChannelConfigurationsCommand,
|
|
34
|
-
ListSlackWorkspaceConfigurationsCommand: () => ListSlackWorkspaceConfigurationsCommand,
|
|
35
|
-
NotificationSeverityLevel: () => NotificationSeverityLevel,
|
|
36
|
-
PutAccountAliasCommand: () => PutAccountAliasCommand,
|
|
37
|
-
RegisterSlackWorkspaceForOrganizationCommand: () => RegisterSlackWorkspaceForOrganizationCommand,
|
|
38
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
39
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
40
|
-
SupportApp: () => SupportApp,
|
|
41
|
-
SupportAppClient: () => SupportAppClient,
|
|
42
|
-
SupportAppServiceException: () => SupportAppServiceException,
|
|
43
|
-
UpdateSlackChannelConfigurationCommand: () => UpdateSlackChannelConfigurationCommand,
|
|
44
|
-
ValidationException: () => ValidationException,
|
|
45
|
-
__Client: () => import_smithy_client.Client,
|
|
46
|
-
paginateListSlackChannelConfigurations: () => paginateListSlackChannelConfigurations,
|
|
47
|
-
paginateListSlackWorkspaceConfigurations: () => paginateListSlackWorkspaceConfigurations
|
|
48
|
-
});
|
|
49
|
-
module.exports = __toCommonJS(index_exports);
|
|
50
|
-
|
|
51
|
-
// src/SupportAppClient.ts
|
|
52
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
53
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
54
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
55
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
56
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
57
|
-
var import_core = require("@smithy/core");
|
|
58
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
59
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
60
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
61
|
-
|
|
62
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
63
|
-
|
|
64
|
-
// src/endpoint/EndpointParameters.ts
|
|
65
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
66
|
-
return Object.assign(options, {
|
|
67
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
68
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
69
|
-
defaultSigningName: "supportapp"
|
|
70
|
-
});
|
|
71
|
-
}, "resolveClientEndpointParameters");
|
|
72
|
-
var commonParams = {
|
|
73
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
74
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
75
|
-
Region: { type: "builtInParams", name: "region" },
|
|
76
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "supportapp",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
77
32
|
};
|
|
78
33
|
|
|
79
|
-
|
|
80
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
81
72
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
86
78
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
79
|
+
class SupportAppClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSupportAppHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
115
107
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
121
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
122
|
-
credentials: config.credentials()
|
|
123
|
-
};
|
|
124
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
125
|
-
|
|
126
|
-
// src/runtimeExtensions.ts
|
|
127
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
128
|
-
const extensionConfiguration = Object.assign(
|
|
129
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
130
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
131
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
132
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
133
|
-
);
|
|
134
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
135
|
-
return Object.assign(
|
|
136
|
-
runtimeConfig,
|
|
137
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
138
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
139
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
140
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
141
|
-
);
|
|
142
|
-
}, "resolveRuntimeExtensions");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
143
112
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
167
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
168
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
169
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
170
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
171
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
172
|
-
this.middlewareStack.use(
|
|
173
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
174
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSupportAppHttpAuthSchemeParametersProvider,
|
|
175
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
176
|
-
"aws.auth#sigv4": config.credentials
|
|
177
|
-
}), "identityProviderConfigProvider")
|
|
178
|
-
})
|
|
179
|
-
);
|
|
180
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
184
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
185
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
186
|
-
*/
|
|
187
|
-
destroy() {
|
|
188
|
-
super.destroy();
|
|
189
|
-
}
|
|
113
|
+
class SupportAppServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, SupportAppServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class AccessDeniedException extends SupportAppServiceException {
|
|
121
|
+
name = "AccessDeniedException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "AccessDeniedException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
const AccountType = {
|
|
133
|
+
MANAGEMENT: "management",
|
|
134
|
+
MEMBER: "member",
|
|
190
135
|
};
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
var SupportAppServiceException = class _SupportAppServiceException extends import_smithy_client.ServiceException {
|
|
208
|
-
static {
|
|
209
|
-
__name(this, "SupportAppServiceException");
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* @internal
|
|
213
|
-
*/
|
|
214
|
-
constructor(options) {
|
|
215
|
-
super(options);
|
|
216
|
-
Object.setPrototypeOf(this, _SupportAppServiceException.prototype);
|
|
217
|
-
}
|
|
136
|
+
class ConflictException extends SupportAppServiceException {
|
|
137
|
+
name = "ConflictException";
|
|
138
|
+
$fault = "client";
|
|
139
|
+
constructor(opts) {
|
|
140
|
+
super({
|
|
141
|
+
name: "ConflictException",
|
|
142
|
+
$fault: "client",
|
|
143
|
+
...opts,
|
|
144
|
+
});
|
|
145
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
const NotificationSeverityLevel = {
|
|
149
|
+
ALL: "all",
|
|
150
|
+
HIGH: "high",
|
|
151
|
+
NONE: "none",
|
|
218
152
|
};
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
153
|
+
class InternalServerException extends SupportAppServiceException {
|
|
154
|
+
name = "InternalServerException";
|
|
155
|
+
$fault = "server";
|
|
156
|
+
constructor(opts) {
|
|
157
|
+
super({
|
|
158
|
+
name: "InternalServerException",
|
|
159
|
+
$fault: "server",
|
|
160
|
+
...opts,
|
|
161
|
+
});
|
|
162
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
class ServiceQuotaExceededException extends SupportAppServiceException {
|
|
166
|
+
name = "ServiceQuotaExceededException";
|
|
167
|
+
$fault = "client";
|
|
168
|
+
constructor(opts) {
|
|
169
|
+
super({
|
|
170
|
+
name: "ServiceQuotaExceededException",
|
|
171
|
+
$fault: "client",
|
|
172
|
+
...opts,
|
|
173
|
+
});
|
|
174
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
class ValidationException extends SupportAppServiceException {
|
|
178
|
+
name = "ValidationException";
|
|
179
|
+
$fault = "client";
|
|
180
|
+
constructor(opts) {
|
|
181
|
+
super({
|
|
182
|
+
name: "ValidationException",
|
|
183
|
+
$fault: "client",
|
|
184
|
+
...opts,
|
|
185
|
+
});
|
|
186
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
class ResourceNotFoundException extends SupportAppServiceException {
|
|
190
|
+
name = "ResourceNotFoundException";
|
|
191
|
+
$fault = "client";
|
|
192
|
+
constructor(opts) {
|
|
193
|
+
super({
|
|
194
|
+
name: "ResourceNotFoundException",
|
|
195
|
+
$fault: "client",
|
|
196
|
+
...opts,
|
|
197
|
+
});
|
|
198
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
const se_CreateSlackChannelConfigurationCommand = async (input, context) => {
|
|
203
|
+
const b = core.requestBuilder(input, context);
|
|
204
|
+
const headers = {
|
|
205
|
+
"content-type": "application/json",
|
|
206
|
+
};
|
|
207
|
+
b.bp("/control/create-slack-channel-configuration");
|
|
208
|
+
let body;
|
|
209
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
210
|
+
channelId: [],
|
|
211
|
+
channelName: [],
|
|
212
|
+
channelRoleArn: [],
|
|
213
|
+
notifyOnAddCorrespondenceToCase: [],
|
|
214
|
+
notifyOnCaseSeverity: [],
|
|
215
|
+
notifyOnCreateOrReopenCase: [],
|
|
216
|
+
notifyOnResolveCase: [],
|
|
217
|
+
teamId: [],
|
|
218
|
+
}));
|
|
219
|
+
b.m("POST").h(headers).b(body);
|
|
220
|
+
return b.build();
|
|
221
|
+
};
|
|
222
|
+
const se_DeleteAccountAliasCommand = async (input, context) => {
|
|
223
|
+
const b = core.requestBuilder(input, context);
|
|
224
|
+
const headers = {};
|
|
225
|
+
b.bp("/control/delete-account-alias");
|
|
226
|
+
let body;
|
|
227
|
+
b.m("POST").h(headers).b(body);
|
|
228
|
+
return b.build();
|
|
229
|
+
};
|
|
230
|
+
const se_DeleteSlackChannelConfigurationCommand = async (input, context) => {
|
|
231
|
+
const b = core.requestBuilder(input, context);
|
|
232
|
+
const headers = {
|
|
233
|
+
"content-type": "application/json",
|
|
234
|
+
};
|
|
235
|
+
b.bp("/control/delete-slack-channel-configuration");
|
|
236
|
+
let body;
|
|
237
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
238
|
+
channelId: [],
|
|
239
|
+
teamId: [],
|
|
240
|
+
}));
|
|
241
|
+
b.m("POST").h(headers).b(body);
|
|
242
|
+
return b.build();
|
|
243
|
+
};
|
|
244
|
+
const se_DeleteSlackWorkspaceConfigurationCommand = async (input, context) => {
|
|
245
|
+
const b = core.requestBuilder(input, context);
|
|
246
|
+
const headers = {
|
|
247
|
+
"content-type": "application/json",
|
|
248
|
+
};
|
|
249
|
+
b.bp("/control/delete-slack-workspace-configuration");
|
|
250
|
+
let body;
|
|
251
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
252
|
+
teamId: [],
|
|
253
|
+
}));
|
|
254
|
+
b.m("POST").h(headers).b(body);
|
|
255
|
+
return b.build();
|
|
256
|
+
};
|
|
257
|
+
const se_GetAccountAliasCommand = async (input, context) => {
|
|
258
|
+
const b = core.requestBuilder(input, context);
|
|
259
|
+
const headers = {};
|
|
260
|
+
b.bp("/control/get-account-alias");
|
|
261
|
+
let body;
|
|
262
|
+
b.m("POST").h(headers).b(body);
|
|
263
|
+
return b.build();
|
|
264
|
+
};
|
|
265
|
+
const se_ListSlackChannelConfigurationsCommand = async (input, context) => {
|
|
266
|
+
const b = core.requestBuilder(input, context);
|
|
267
|
+
const headers = {
|
|
268
|
+
"content-type": "application/json",
|
|
269
|
+
};
|
|
270
|
+
b.bp("/control/list-slack-channel-configurations");
|
|
271
|
+
let body;
|
|
272
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
273
|
+
nextToken: [],
|
|
274
|
+
}));
|
|
275
|
+
b.m("POST").h(headers).b(body);
|
|
276
|
+
return b.build();
|
|
277
|
+
};
|
|
278
|
+
const se_ListSlackWorkspaceConfigurationsCommand = async (input, context) => {
|
|
279
|
+
const b = core.requestBuilder(input, context);
|
|
280
|
+
const headers = {
|
|
281
|
+
"content-type": "application/json",
|
|
282
|
+
};
|
|
283
|
+
b.bp("/control/list-slack-workspace-configurations");
|
|
284
|
+
let body;
|
|
285
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
286
|
+
nextToken: [],
|
|
287
|
+
}));
|
|
288
|
+
b.m("POST").h(headers).b(body);
|
|
289
|
+
return b.build();
|
|
290
|
+
};
|
|
291
|
+
const se_PutAccountAliasCommand = async (input, context) => {
|
|
292
|
+
const b = core.requestBuilder(input, context);
|
|
293
|
+
const headers = {
|
|
294
|
+
"content-type": "application/json",
|
|
295
|
+
};
|
|
296
|
+
b.bp("/control/put-account-alias");
|
|
297
|
+
let body;
|
|
298
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
299
|
+
accountAlias: [],
|
|
300
|
+
}));
|
|
301
|
+
b.m("POST").h(headers).b(body);
|
|
302
|
+
return b.build();
|
|
303
|
+
};
|
|
304
|
+
const se_RegisterSlackWorkspaceForOrganizationCommand = async (input, context) => {
|
|
305
|
+
const b = core.requestBuilder(input, context);
|
|
306
|
+
const headers = {
|
|
307
|
+
"content-type": "application/json",
|
|
308
|
+
};
|
|
309
|
+
b.bp("/control/register-slack-workspace-for-organization");
|
|
310
|
+
let body;
|
|
311
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
312
|
+
teamId: [],
|
|
313
|
+
}));
|
|
314
|
+
b.m("POST").h(headers).b(body);
|
|
315
|
+
return b.build();
|
|
316
|
+
};
|
|
317
|
+
const se_UpdateSlackChannelConfigurationCommand = async (input, context) => {
|
|
318
|
+
const b = core.requestBuilder(input, context);
|
|
319
|
+
const headers = {
|
|
320
|
+
"content-type": "application/json",
|
|
321
|
+
};
|
|
322
|
+
b.bp("/control/update-slack-channel-configuration");
|
|
323
|
+
let body;
|
|
324
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
325
|
+
channelId: [],
|
|
326
|
+
channelName: [],
|
|
327
|
+
channelRoleArn: [],
|
|
328
|
+
notifyOnAddCorrespondenceToCase: [],
|
|
329
|
+
notifyOnCaseSeverity: [],
|
|
330
|
+
notifyOnCreateOrReopenCase: [],
|
|
331
|
+
notifyOnResolveCase: [],
|
|
332
|
+
teamId: [],
|
|
333
|
+
}));
|
|
334
|
+
b.m("POST").h(headers).b(body);
|
|
335
|
+
return b.build();
|
|
336
|
+
};
|
|
337
|
+
const de_CreateSlackChannelConfigurationCommand = async (output, context) => {
|
|
338
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
339
|
+
return de_CommandError(output, context);
|
|
340
|
+
}
|
|
341
|
+
const contents = smithyClient.map({
|
|
342
|
+
$metadata: deserializeMetadata(output),
|
|
235
343
|
});
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
__name(this, "ConflictException");
|
|
246
|
-
}
|
|
247
|
-
name = "ConflictException";
|
|
248
|
-
$fault = "client";
|
|
249
|
-
/**
|
|
250
|
-
* @internal
|
|
251
|
-
*/
|
|
252
|
-
constructor(opts) {
|
|
253
|
-
super({
|
|
254
|
-
name: "ConflictException",
|
|
255
|
-
$fault: "client",
|
|
256
|
-
...opts
|
|
344
|
+
await smithyClient.collectBody(output.body, context);
|
|
345
|
+
return contents;
|
|
346
|
+
};
|
|
347
|
+
const de_DeleteAccountAliasCommand = async (output, context) => {
|
|
348
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
349
|
+
return de_CommandError(output, context);
|
|
350
|
+
}
|
|
351
|
+
const contents = smithyClient.map({
|
|
352
|
+
$metadata: deserializeMetadata(output),
|
|
257
353
|
});
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
};
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
static {
|
|
268
|
-
__name(this, "InternalServerException");
|
|
269
|
-
}
|
|
270
|
-
name = "InternalServerException";
|
|
271
|
-
$fault = "server";
|
|
272
|
-
/**
|
|
273
|
-
* @internal
|
|
274
|
-
*/
|
|
275
|
-
constructor(opts) {
|
|
276
|
-
super({
|
|
277
|
-
name: "InternalServerException",
|
|
278
|
-
$fault: "server",
|
|
279
|
-
...opts
|
|
354
|
+
await smithyClient.collectBody(output.body, context);
|
|
355
|
+
return contents;
|
|
356
|
+
};
|
|
357
|
+
const de_DeleteSlackChannelConfigurationCommand = async (output, context) => {
|
|
358
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
359
|
+
return de_CommandError(output, context);
|
|
360
|
+
}
|
|
361
|
+
const contents = smithyClient.map({
|
|
362
|
+
$metadata: deserializeMetadata(output),
|
|
280
363
|
});
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
};
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* @internal
|
|
292
|
-
*/
|
|
293
|
-
constructor(opts) {
|
|
294
|
-
super({
|
|
295
|
-
name: "ServiceQuotaExceededException",
|
|
296
|
-
$fault: "client",
|
|
297
|
-
...opts
|
|
364
|
+
await smithyClient.collectBody(output.body, context);
|
|
365
|
+
return contents;
|
|
366
|
+
};
|
|
367
|
+
const de_DeleteSlackWorkspaceConfigurationCommand = async (output, context) => {
|
|
368
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
369
|
+
return de_CommandError(output, context);
|
|
370
|
+
}
|
|
371
|
+
const contents = smithyClient.map({
|
|
372
|
+
$metadata: deserializeMetadata(output),
|
|
298
373
|
});
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* @internal
|
|
310
|
-
*/
|
|
311
|
-
constructor(opts) {
|
|
312
|
-
super({
|
|
313
|
-
name: "ValidationException",
|
|
314
|
-
$fault: "client",
|
|
315
|
-
...opts
|
|
374
|
+
await smithyClient.collectBody(output.body, context);
|
|
375
|
+
return contents;
|
|
376
|
+
};
|
|
377
|
+
const de_GetAccountAliasCommand = async (output, context) => {
|
|
378
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
379
|
+
return de_CommandError(output, context);
|
|
380
|
+
}
|
|
381
|
+
const contents = smithyClient.map({
|
|
382
|
+
$metadata: deserializeMetadata(output),
|
|
316
383
|
});
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends SupportAppServiceException {
|
|
321
|
-
static {
|
|
322
|
-
__name(this, "ResourceNotFoundException");
|
|
323
|
-
}
|
|
324
|
-
name = "ResourceNotFoundException";
|
|
325
|
-
$fault = "client";
|
|
326
|
-
/**
|
|
327
|
-
* @internal
|
|
328
|
-
*/
|
|
329
|
-
constructor(opts) {
|
|
330
|
-
super({
|
|
331
|
-
name: "ResourceNotFoundException",
|
|
332
|
-
$fault: "client",
|
|
333
|
-
...opts
|
|
384
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
385
|
+
const doc = smithyClient.take(data, {
|
|
386
|
+
accountAlias: smithyClient.expectString,
|
|
334
387
|
});
|
|
335
|
-
Object.
|
|
336
|
-
|
|
388
|
+
Object.assign(contents, doc);
|
|
389
|
+
return contents;
|
|
337
390
|
};
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
notifyOnAddCorrespondenceToCase: [],
|
|
353
|
-
notifyOnCaseSeverity: [],
|
|
354
|
-
notifyOnCreateOrReopenCase: [],
|
|
355
|
-
notifyOnResolveCase: [],
|
|
356
|
-
teamId: []
|
|
357
|
-
})
|
|
358
|
-
);
|
|
359
|
-
b.m("POST").h(headers).b(body);
|
|
360
|
-
return b.build();
|
|
361
|
-
}, "se_CreateSlackChannelConfigurationCommand");
|
|
362
|
-
var se_DeleteAccountAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
363
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
364
|
-
const headers = {};
|
|
365
|
-
b.bp("/control/delete-account-alias");
|
|
366
|
-
let body;
|
|
367
|
-
b.m("POST").h(headers).b(body);
|
|
368
|
-
return b.build();
|
|
369
|
-
}, "se_DeleteAccountAliasCommand");
|
|
370
|
-
var se_DeleteSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
371
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
372
|
-
const headers = {
|
|
373
|
-
"content-type": "application/json"
|
|
374
|
-
};
|
|
375
|
-
b.bp("/control/delete-slack-channel-configuration");
|
|
376
|
-
let body;
|
|
377
|
-
body = JSON.stringify(
|
|
378
|
-
(0, import_smithy_client.take)(input, {
|
|
379
|
-
channelId: [],
|
|
380
|
-
teamId: []
|
|
381
|
-
})
|
|
382
|
-
);
|
|
383
|
-
b.m("POST").h(headers).b(body);
|
|
384
|
-
return b.build();
|
|
385
|
-
}, "se_DeleteSlackChannelConfigurationCommand");
|
|
386
|
-
var se_DeleteSlackWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
387
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
388
|
-
const headers = {
|
|
389
|
-
"content-type": "application/json"
|
|
390
|
-
};
|
|
391
|
-
b.bp("/control/delete-slack-workspace-configuration");
|
|
392
|
-
let body;
|
|
393
|
-
body = JSON.stringify(
|
|
394
|
-
(0, import_smithy_client.take)(input, {
|
|
395
|
-
teamId: []
|
|
396
|
-
})
|
|
397
|
-
);
|
|
398
|
-
b.m("POST").h(headers).b(body);
|
|
399
|
-
return b.build();
|
|
400
|
-
}, "se_DeleteSlackWorkspaceConfigurationCommand");
|
|
401
|
-
var se_GetAccountAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
402
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
403
|
-
const headers = {};
|
|
404
|
-
b.bp("/control/get-account-alias");
|
|
405
|
-
let body;
|
|
406
|
-
b.m("POST").h(headers).b(body);
|
|
407
|
-
return b.build();
|
|
408
|
-
}, "se_GetAccountAliasCommand");
|
|
409
|
-
var se_ListSlackChannelConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
410
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
411
|
-
const headers = {
|
|
412
|
-
"content-type": "application/json"
|
|
413
|
-
};
|
|
414
|
-
b.bp("/control/list-slack-channel-configurations");
|
|
415
|
-
let body;
|
|
416
|
-
body = JSON.stringify(
|
|
417
|
-
(0, import_smithy_client.take)(input, {
|
|
418
|
-
nextToken: []
|
|
419
|
-
})
|
|
420
|
-
);
|
|
421
|
-
b.m("POST").h(headers).b(body);
|
|
422
|
-
return b.build();
|
|
423
|
-
}, "se_ListSlackChannelConfigurationsCommand");
|
|
424
|
-
var se_ListSlackWorkspaceConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
425
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
426
|
-
const headers = {
|
|
427
|
-
"content-type": "application/json"
|
|
428
|
-
};
|
|
429
|
-
b.bp("/control/list-slack-workspace-configurations");
|
|
430
|
-
let body;
|
|
431
|
-
body = JSON.stringify(
|
|
432
|
-
(0, import_smithy_client.take)(input, {
|
|
433
|
-
nextToken: []
|
|
434
|
-
})
|
|
435
|
-
);
|
|
436
|
-
b.m("POST").h(headers).b(body);
|
|
437
|
-
return b.build();
|
|
438
|
-
}, "se_ListSlackWorkspaceConfigurationsCommand");
|
|
439
|
-
var se_PutAccountAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
440
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
441
|
-
const headers = {
|
|
442
|
-
"content-type": "application/json"
|
|
443
|
-
};
|
|
444
|
-
b.bp("/control/put-account-alias");
|
|
445
|
-
let body;
|
|
446
|
-
body = JSON.stringify(
|
|
447
|
-
(0, import_smithy_client.take)(input, {
|
|
448
|
-
accountAlias: []
|
|
449
|
-
})
|
|
450
|
-
);
|
|
451
|
-
b.m("POST").h(headers).b(body);
|
|
452
|
-
return b.build();
|
|
453
|
-
}, "se_PutAccountAliasCommand");
|
|
454
|
-
var se_RegisterSlackWorkspaceForOrganizationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
455
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
456
|
-
const headers = {
|
|
457
|
-
"content-type": "application/json"
|
|
458
|
-
};
|
|
459
|
-
b.bp("/control/register-slack-workspace-for-organization");
|
|
460
|
-
let body;
|
|
461
|
-
body = JSON.stringify(
|
|
462
|
-
(0, import_smithy_client.take)(input, {
|
|
463
|
-
teamId: []
|
|
464
|
-
})
|
|
465
|
-
);
|
|
466
|
-
b.m("POST").h(headers).b(body);
|
|
467
|
-
return b.build();
|
|
468
|
-
}, "se_RegisterSlackWorkspaceForOrganizationCommand");
|
|
469
|
-
var se_UpdateSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
470
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
471
|
-
const headers = {
|
|
472
|
-
"content-type": "application/json"
|
|
473
|
-
};
|
|
474
|
-
b.bp("/control/update-slack-channel-configuration");
|
|
475
|
-
let body;
|
|
476
|
-
body = JSON.stringify(
|
|
477
|
-
(0, import_smithy_client.take)(input, {
|
|
478
|
-
channelId: [],
|
|
479
|
-
channelName: [],
|
|
480
|
-
channelRoleArn: [],
|
|
481
|
-
notifyOnAddCorrespondenceToCase: [],
|
|
482
|
-
notifyOnCaseSeverity: [],
|
|
483
|
-
notifyOnCreateOrReopenCase: [],
|
|
484
|
-
notifyOnResolveCase: [],
|
|
485
|
-
teamId: []
|
|
486
|
-
})
|
|
487
|
-
);
|
|
488
|
-
b.m("POST").h(headers).b(body);
|
|
489
|
-
return b.build();
|
|
490
|
-
}, "se_UpdateSlackChannelConfigurationCommand");
|
|
491
|
-
var de_CreateSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
492
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
493
|
-
return de_CommandError(output, context);
|
|
494
|
-
}
|
|
495
|
-
const contents = (0, import_smithy_client.map)({
|
|
496
|
-
$metadata: deserializeMetadata(output)
|
|
497
|
-
});
|
|
498
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
499
|
-
return contents;
|
|
500
|
-
}, "de_CreateSlackChannelConfigurationCommand");
|
|
501
|
-
var de_DeleteAccountAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
502
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
503
|
-
return de_CommandError(output, context);
|
|
504
|
-
}
|
|
505
|
-
const contents = (0, import_smithy_client.map)({
|
|
506
|
-
$metadata: deserializeMetadata(output)
|
|
507
|
-
});
|
|
508
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
509
|
-
return contents;
|
|
510
|
-
}, "de_DeleteAccountAliasCommand");
|
|
511
|
-
var de_DeleteSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
512
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
513
|
-
return de_CommandError(output, context);
|
|
514
|
-
}
|
|
515
|
-
const contents = (0, import_smithy_client.map)({
|
|
516
|
-
$metadata: deserializeMetadata(output)
|
|
517
|
-
});
|
|
518
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
519
|
-
return contents;
|
|
520
|
-
}, "de_DeleteSlackChannelConfigurationCommand");
|
|
521
|
-
var de_DeleteSlackWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
522
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
523
|
-
return de_CommandError(output, context);
|
|
524
|
-
}
|
|
525
|
-
const contents = (0, import_smithy_client.map)({
|
|
526
|
-
$metadata: deserializeMetadata(output)
|
|
527
|
-
});
|
|
528
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
529
|
-
return contents;
|
|
530
|
-
}, "de_DeleteSlackWorkspaceConfigurationCommand");
|
|
531
|
-
var de_GetAccountAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
532
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
533
|
-
return de_CommandError(output, context);
|
|
534
|
-
}
|
|
535
|
-
const contents = (0, import_smithy_client.map)({
|
|
536
|
-
$metadata: deserializeMetadata(output)
|
|
537
|
-
});
|
|
538
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
539
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
540
|
-
accountAlias: import_smithy_client.expectString
|
|
541
|
-
});
|
|
542
|
-
Object.assign(contents, doc);
|
|
543
|
-
return contents;
|
|
544
|
-
}, "de_GetAccountAliasCommand");
|
|
545
|
-
var de_ListSlackChannelConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
546
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
547
|
-
return de_CommandError(output, context);
|
|
548
|
-
}
|
|
549
|
-
const contents = (0, import_smithy_client.map)({
|
|
550
|
-
$metadata: deserializeMetadata(output)
|
|
551
|
-
});
|
|
552
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
553
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
554
|
-
nextToken: import_smithy_client.expectString,
|
|
555
|
-
slackChannelConfigurations: import_smithy_client._json
|
|
556
|
-
});
|
|
557
|
-
Object.assign(contents, doc);
|
|
558
|
-
return contents;
|
|
559
|
-
}, "de_ListSlackChannelConfigurationsCommand");
|
|
560
|
-
var de_ListSlackWorkspaceConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
561
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
562
|
-
return de_CommandError(output, context);
|
|
563
|
-
}
|
|
564
|
-
const contents = (0, import_smithy_client.map)({
|
|
565
|
-
$metadata: deserializeMetadata(output)
|
|
566
|
-
});
|
|
567
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
568
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
569
|
-
nextToken: import_smithy_client.expectString,
|
|
570
|
-
slackWorkspaceConfigurations: import_smithy_client._json
|
|
571
|
-
});
|
|
572
|
-
Object.assign(contents, doc);
|
|
573
|
-
return contents;
|
|
574
|
-
}, "de_ListSlackWorkspaceConfigurationsCommand");
|
|
575
|
-
var de_PutAccountAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
576
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
577
|
-
return de_CommandError(output, context);
|
|
578
|
-
}
|
|
579
|
-
const contents = (0, import_smithy_client.map)({
|
|
580
|
-
$metadata: deserializeMetadata(output)
|
|
581
|
-
});
|
|
582
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
583
|
-
return contents;
|
|
584
|
-
}, "de_PutAccountAliasCommand");
|
|
585
|
-
var de_RegisterSlackWorkspaceForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
586
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
587
|
-
return de_CommandError(output, context);
|
|
588
|
-
}
|
|
589
|
-
const contents = (0, import_smithy_client.map)({
|
|
590
|
-
$metadata: deserializeMetadata(output)
|
|
591
|
-
});
|
|
592
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
593
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
594
|
-
accountType: import_smithy_client.expectString,
|
|
595
|
-
teamId: import_smithy_client.expectString,
|
|
596
|
-
teamName: import_smithy_client.expectString
|
|
597
|
-
});
|
|
598
|
-
Object.assign(contents, doc);
|
|
599
|
-
return contents;
|
|
600
|
-
}, "de_RegisterSlackWorkspaceForOrganizationCommand");
|
|
601
|
-
var de_UpdateSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
602
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
603
|
-
return de_CommandError(output, context);
|
|
604
|
-
}
|
|
605
|
-
const contents = (0, import_smithy_client.map)({
|
|
606
|
-
$metadata: deserializeMetadata(output)
|
|
607
|
-
});
|
|
608
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
609
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
610
|
-
channelId: import_smithy_client.expectString,
|
|
611
|
-
channelName: import_smithy_client.expectString,
|
|
612
|
-
channelRoleArn: import_smithy_client.expectString,
|
|
613
|
-
notifyOnAddCorrespondenceToCase: import_smithy_client.expectBoolean,
|
|
614
|
-
notifyOnCaseSeverity: import_smithy_client.expectString,
|
|
615
|
-
notifyOnCreateOrReopenCase: import_smithy_client.expectBoolean,
|
|
616
|
-
notifyOnResolveCase: import_smithy_client.expectBoolean,
|
|
617
|
-
teamId: import_smithy_client.expectString
|
|
618
|
-
});
|
|
619
|
-
Object.assign(contents, doc);
|
|
620
|
-
return contents;
|
|
621
|
-
}, "de_UpdateSlackChannelConfigurationCommand");
|
|
622
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
623
|
-
const parsedOutput = {
|
|
624
|
-
...output,
|
|
625
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
626
|
-
};
|
|
627
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
628
|
-
switch (errorCode) {
|
|
629
|
-
case "AccessDeniedException":
|
|
630
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
631
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
632
|
-
case "ConflictException":
|
|
633
|
-
case "com.amazonaws.supportapp#ConflictException":
|
|
634
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
635
|
-
case "InternalServerException":
|
|
636
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
637
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
638
|
-
case "ServiceQuotaExceededException":
|
|
639
|
-
case "com.amazonaws.supportapp#ServiceQuotaExceededException":
|
|
640
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
641
|
-
case "ValidationException":
|
|
642
|
-
case "com.amazonaws.supportapp#ValidationException":
|
|
643
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
644
|
-
case "ResourceNotFoundException":
|
|
645
|
-
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
646
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
647
|
-
default:
|
|
648
|
-
const parsedBody = parsedOutput.body;
|
|
649
|
-
return throwDefaultError({
|
|
650
|
-
output,
|
|
651
|
-
parsedBody,
|
|
652
|
-
errorCode
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
}, "de_CommandError");
|
|
656
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(SupportAppServiceException);
|
|
657
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
658
|
-
const contents = (0, import_smithy_client.map)({});
|
|
659
|
-
const data = parsedOutput.body;
|
|
660
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
661
|
-
message: import_smithy_client.expectString
|
|
662
|
-
});
|
|
663
|
-
Object.assign(contents, doc);
|
|
664
|
-
const exception = new AccessDeniedException({
|
|
665
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
666
|
-
...contents
|
|
667
|
-
});
|
|
668
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
669
|
-
}, "de_AccessDeniedExceptionRes");
|
|
670
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
671
|
-
const contents = (0, import_smithy_client.map)({});
|
|
672
|
-
const data = parsedOutput.body;
|
|
673
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
674
|
-
message: import_smithy_client.expectString
|
|
675
|
-
});
|
|
676
|
-
Object.assign(contents, doc);
|
|
677
|
-
const exception = new ConflictException({
|
|
678
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
679
|
-
...contents
|
|
680
|
-
});
|
|
681
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
682
|
-
}, "de_ConflictExceptionRes");
|
|
683
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
684
|
-
const contents = (0, import_smithy_client.map)({});
|
|
685
|
-
const data = parsedOutput.body;
|
|
686
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
687
|
-
message: import_smithy_client.expectString
|
|
688
|
-
});
|
|
689
|
-
Object.assign(contents, doc);
|
|
690
|
-
const exception = new InternalServerException({
|
|
691
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
692
|
-
...contents
|
|
693
|
-
});
|
|
694
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
695
|
-
}, "de_InternalServerExceptionRes");
|
|
696
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
697
|
-
const contents = (0, import_smithy_client.map)({});
|
|
698
|
-
const data = parsedOutput.body;
|
|
699
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
700
|
-
message: import_smithy_client.expectString
|
|
701
|
-
});
|
|
702
|
-
Object.assign(contents, doc);
|
|
703
|
-
const exception = new ResourceNotFoundException({
|
|
704
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
705
|
-
...contents
|
|
706
|
-
});
|
|
707
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
708
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
709
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
710
|
-
const contents = (0, import_smithy_client.map)({});
|
|
711
|
-
const data = parsedOutput.body;
|
|
712
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
713
|
-
message: import_smithy_client.expectString
|
|
714
|
-
});
|
|
715
|
-
Object.assign(contents, doc);
|
|
716
|
-
const exception = new ServiceQuotaExceededException({
|
|
717
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
718
|
-
...contents
|
|
719
|
-
});
|
|
720
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
721
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
722
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
723
|
-
const contents = (0, import_smithy_client.map)({});
|
|
724
|
-
const data = parsedOutput.body;
|
|
725
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
726
|
-
message: import_smithy_client.expectString
|
|
727
|
-
});
|
|
728
|
-
Object.assign(contents, doc);
|
|
729
|
-
const exception = new ValidationException({
|
|
730
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
731
|
-
...contents
|
|
732
|
-
});
|
|
733
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
734
|
-
}, "de_ValidationExceptionRes");
|
|
735
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
736
|
-
httpStatusCode: output.statusCode,
|
|
737
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
738
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
739
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
740
|
-
}), "deserializeMetadata");
|
|
741
|
-
|
|
742
|
-
// src/commands/CreateSlackChannelConfigurationCommand.ts
|
|
743
|
-
var CreateSlackChannelConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
744
|
-
return [
|
|
745
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
746
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
747
|
-
];
|
|
748
|
-
}).s("SupportApp", "CreateSlackChannelConfiguration", {}).n("SupportAppClient", "CreateSlackChannelConfigurationCommand").f(void 0, void 0).ser(se_CreateSlackChannelConfigurationCommand).de(de_CreateSlackChannelConfigurationCommand).build() {
|
|
749
|
-
static {
|
|
750
|
-
__name(this, "CreateSlackChannelConfigurationCommand");
|
|
751
|
-
}
|
|
391
|
+
const de_ListSlackChannelConfigurationsCommand = async (output, context) => {
|
|
392
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
393
|
+
return de_CommandError(output, context);
|
|
394
|
+
}
|
|
395
|
+
const contents = smithyClient.map({
|
|
396
|
+
$metadata: deserializeMetadata(output),
|
|
397
|
+
});
|
|
398
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
399
|
+
const doc = smithyClient.take(data, {
|
|
400
|
+
nextToken: smithyClient.expectString,
|
|
401
|
+
slackChannelConfigurations: smithyClient._json,
|
|
402
|
+
});
|
|
403
|
+
Object.assign(contents, doc);
|
|
404
|
+
return contents;
|
|
752
405
|
};
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
(
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
406
|
+
const de_ListSlackWorkspaceConfigurationsCommand = async (output, context) => {
|
|
407
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
408
|
+
return de_CommandError(output, context);
|
|
409
|
+
}
|
|
410
|
+
const contents = smithyClient.map({
|
|
411
|
+
$metadata: deserializeMetadata(output),
|
|
412
|
+
});
|
|
413
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
414
|
+
const doc = smithyClient.take(data, {
|
|
415
|
+
nextToken: smithyClient.expectString,
|
|
416
|
+
slackWorkspaceConfigurations: smithyClient._json,
|
|
417
|
+
});
|
|
418
|
+
Object.assign(contents, doc);
|
|
419
|
+
return contents;
|
|
767
420
|
};
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
];
|
|
778
|
-
}).s("SupportApp", "DeleteSlackChannelConfiguration", {}).n("SupportAppClient", "DeleteSlackChannelConfigurationCommand").f(void 0, void 0).ser(se_DeleteSlackChannelConfigurationCommand).de(de_DeleteSlackChannelConfigurationCommand).build() {
|
|
779
|
-
static {
|
|
780
|
-
__name(this, "DeleteSlackChannelConfigurationCommand");
|
|
781
|
-
}
|
|
421
|
+
const de_PutAccountAliasCommand = async (output, context) => {
|
|
422
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
423
|
+
return de_CommandError(output, context);
|
|
424
|
+
}
|
|
425
|
+
const contents = smithyClient.map({
|
|
426
|
+
$metadata: deserializeMetadata(output),
|
|
427
|
+
});
|
|
428
|
+
await smithyClient.collectBody(output.body, context);
|
|
429
|
+
return contents;
|
|
782
430
|
};
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
(
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
431
|
+
const de_RegisterSlackWorkspaceForOrganizationCommand = async (output, context) => {
|
|
432
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
433
|
+
return de_CommandError(output, context);
|
|
434
|
+
}
|
|
435
|
+
const contents = smithyClient.map({
|
|
436
|
+
$metadata: deserializeMetadata(output),
|
|
437
|
+
});
|
|
438
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
439
|
+
const doc = smithyClient.take(data, {
|
|
440
|
+
accountType: smithyClient.expectString,
|
|
441
|
+
teamId: smithyClient.expectString,
|
|
442
|
+
teamName: smithyClient.expectString,
|
|
443
|
+
});
|
|
444
|
+
Object.assign(contents, doc);
|
|
445
|
+
return contents;
|
|
797
446
|
};
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
(
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
447
|
+
const de_UpdateSlackChannelConfigurationCommand = async (output, context) => {
|
|
448
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
449
|
+
return de_CommandError(output, context);
|
|
450
|
+
}
|
|
451
|
+
const contents = smithyClient.map({
|
|
452
|
+
$metadata: deserializeMetadata(output),
|
|
453
|
+
});
|
|
454
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
455
|
+
const doc = smithyClient.take(data, {
|
|
456
|
+
channelId: smithyClient.expectString,
|
|
457
|
+
channelName: smithyClient.expectString,
|
|
458
|
+
channelRoleArn: smithyClient.expectString,
|
|
459
|
+
notifyOnAddCorrespondenceToCase: smithyClient.expectBoolean,
|
|
460
|
+
notifyOnCaseSeverity: smithyClient.expectString,
|
|
461
|
+
notifyOnCreateOrReopenCase: smithyClient.expectBoolean,
|
|
462
|
+
notifyOnResolveCase: smithyClient.expectBoolean,
|
|
463
|
+
teamId: smithyClient.expectString,
|
|
464
|
+
});
|
|
465
|
+
Object.assign(contents, doc);
|
|
466
|
+
return contents;
|
|
812
467
|
};
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
468
|
+
const de_CommandError = async (output, context) => {
|
|
469
|
+
const parsedOutput = {
|
|
470
|
+
...output,
|
|
471
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
472
|
+
};
|
|
473
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
474
|
+
switch (errorCode) {
|
|
475
|
+
case "AccessDeniedException":
|
|
476
|
+
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
477
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
478
|
+
case "ConflictException":
|
|
479
|
+
case "com.amazonaws.supportapp#ConflictException":
|
|
480
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
481
|
+
case "InternalServerException":
|
|
482
|
+
case "com.amazonaws.supportapp#InternalServerException":
|
|
483
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
484
|
+
case "ServiceQuotaExceededException":
|
|
485
|
+
case "com.amazonaws.supportapp#ServiceQuotaExceededException":
|
|
486
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
487
|
+
case "ValidationException":
|
|
488
|
+
case "com.amazonaws.supportapp#ValidationException":
|
|
489
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
490
|
+
case "ResourceNotFoundException":
|
|
491
|
+
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
492
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
493
|
+
default:
|
|
494
|
+
const parsedBody = parsedOutput.body;
|
|
495
|
+
return throwDefaultError({
|
|
496
|
+
output,
|
|
497
|
+
parsedBody,
|
|
498
|
+
errorCode,
|
|
499
|
+
});
|
|
500
|
+
}
|
|
827
501
|
};
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
}
|
|
502
|
+
const throwDefaultError = smithyClient.withBaseException(SupportAppServiceException);
|
|
503
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
504
|
+
const contents = smithyClient.map({});
|
|
505
|
+
const data = parsedOutput.body;
|
|
506
|
+
const doc = smithyClient.take(data, {
|
|
507
|
+
message: smithyClient.expectString,
|
|
508
|
+
});
|
|
509
|
+
Object.assign(contents, doc);
|
|
510
|
+
const exception = new AccessDeniedException({
|
|
511
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
512
|
+
...contents,
|
|
513
|
+
});
|
|
514
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
842
515
|
};
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
})
|
|
854
|
-
|
|
855
|
-
__name(this, "PutAccountAliasCommand");
|
|
856
|
-
}
|
|
516
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
517
|
+
const contents = smithyClient.map({});
|
|
518
|
+
const data = parsedOutput.body;
|
|
519
|
+
const doc = smithyClient.take(data, {
|
|
520
|
+
message: smithyClient.expectString,
|
|
521
|
+
});
|
|
522
|
+
Object.assign(contents, doc);
|
|
523
|
+
const exception = new ConflictException({
|
|
524
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
525
|
+
...contents,
|
|
526
|
+
});
|
|
527
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
857
528
|
};
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
})
|
|
869
|
-
|
|
870
|
-
__name(this, "RegisterSlackWorkspaceForOrganizationCommand");
|
|
871
|
-
}
|
|
529
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
530
|
+
const contents = smithyClient.map({});
|
|
531
|
+
const data = parsedOutput.body;
|
|
532
|
+
const doc = smithyClient.take(data, {
|
|
533
|
+
message: smithyClient.expectString,
|
|
534
|
+
});
|
|
535
|
+
Object.assign(contents, doc);
|
|
536
|
+
const exception = new InternalServerException({
|
|
537
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
538
|
+
...contents,
|
|
539
|
+
});
|
|
540
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
872
541
|
};
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
})
|
|
884
|
-
|
|
885
|
-
__name(this, "UpdateSlackChannelConfigurationCommand");
|
|
886
|
-
}
|
|
542
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
543
|
+
const contents = smithyClient.map({});
|
|
544
|
+
const data = parsedOutput.body;
|
|
545
|
+
const doc = smithyClient.take(data, {
|
|
546
|
+
message: smithyClient.expectString,
|
|
547
|
+
});
|
|
548
|
+
Object.assign(contents, doc);
|
|
549
|
+
const exception = new ResourceNotFoundException({
|
|
550
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
551
|
+
...contents,
|
|
552
|
+
});
|
|
553
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
887
554
|
};
|
|
555
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
556
|
+
const contents = smithyClient.map({});
|
|
557
|
+
const data = parsedOutput.body;
|
|
558
|
+
const doc = smithyClient.take(data, {
|
|
559
|
+
message: smithyClient.expectString,
|
|
560
|
+
});
|
|
561
|
+
Object.assign(contents, doc);
|
|
562
|
+
const exception = new ServiceQuotaExceededException({
|
|
563
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
564
|
+
...contents,
|
|
565
|
+
});
|
|
566
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
567
|
+
};
|
|
568
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
569
|
+
const contents = smithyClient.map({});
|
|
570
|
+
const data = parsedOutput.body;
|
|
571
|
+
const doc = smithyClient.take(data, {
|
|
572
|
+
message: smithyClient.expectString,
|
|
573
|
+
});
|
|
574
|
+
Object.assign(contents, doc);
|
|
575
|
+
const exception = new ValidationException({
|
|
576
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
577
|
+
...contents,
|
|
578
|
+
});
|
|
579
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
580
|
+
};
|
|
581
|
+
const deserializeMetadata = (output) => ({
|
|
582
|
+
httpStatusCode: output.statusCode,
|
|
583
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
584
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
585
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
586
|
+
});
|
|
888
587
|
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
588
|
+
class CreateSlackChannelConfigurationCommand extends smithyClient.Command
|
|
589
|
+
.classBuilder()
|
|
590
|
+
.ep(commonParams)
|
|
591
|
+
.m(function (Command, cs, config, o) {
|
|
592
|
+
return [
|
|
593
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
594
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
595
|
+
];
|
|
596
|
+
})
|
|
597
|
+
.s("SupportApp", "CreateSlackChannelConfiguration", {})
|
|
598
|
+
.n("SupportAppClient", "CreateSlackChannelConfigurationCommand")
|
|
599
|
+
.f(void 0, void 0)
|
|
600
|
+
.ser(se_CreateSlackChannelConfigurationCommand)
|
|
601
|
+
.de(de_CreateSlackChannelConfigurationCommand)
|
|
602
|
+
.build() {
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
class DeleteAccountAliasCommand extends smithyClient.Command
|
|
606
|
+
.classBuilder()
|
|
607
|
+
.ep(commonParams)
|
|
608
|
+
.m(function (Command, cs, config, o) {
|
|
609
|
+
return [
|
|
610
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
611
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
612
|
+
];
|
|
613
|
+
})
|
|
614
|
+
.s("SupportApp", "DeleteAccountAlias", {})
|
|
615
|
+
.n("SupportAppClient", "DeleteAccountAliasCommand")
|
|
616
|
+
.f(void 0, void 0)
|
|
617
|
+
.ser(se_DeleteAccountAliasCommand)
|
|
618
|
+
.de(de_DeleteAccountAliasCommand)
|
|
619
|
+
.build() {
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
class DeleteSlackChannelConfigurationCommand extends smithyClient.Command
|
|
623
|
+
.classBuilder()
|
|
624
|
+
.ep(commonParams)
|
|
625
|
+
.m(function (Command, cs, config, o) {
|
|
626
|
+
return [
|
|
627
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
628
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
629
|
+
];
|
|
630
|
+
})
|
|
631
|
+
.s("SupportApp", "DeleteSlackChannelConfiguration", {})
|
|
632
|
+
.n("SupportAppClient", "DeleteSlackChannelConfigurationCommand")
|
|
633
|
+
.f(void 0, void 0)
|
|
634
|
+
.ser(se_DeleteSlackChannelConfigurationCommand)
|
|
635
|
+
.de(de_DeleteSlackChannelConfigurationCommand)
|
|
636
|
+
.build() {
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
class DeleteSlackWorkspaceConfigurationCommand extends smithyClient.Command
|
|
640
|
+
.classBuilder()
|
|
641
|
+
.ep(commonParams)
|
|
642
|
+
.m(function (Command, cs, config, o) {
|
|
643
|
+
return [
|
|
644
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
645
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
646
|
+
];
|
|
647
|
+
})
|
|
648
|
+
.s("SupportApp", "DeleteSlackWorkspaceConfiguration", {})
|
|
649
|
+
.n("SupportAppClient", "DeleteSlackWorkspaceConfigurationCommand")
|
|
650
|
+
.f(void 0, void 0)
|
|
651
|
+
.ser(se_DeleteSlackWorkspaceConfigurationCommand)
|
|
652
|
+
.de(de_DeleteSlackWorkspaceConfigurationCommand)
|
|
653
|
+
.build() {
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
class GetAccountAliasCommand extends smithyClient.Command
|
|
657
|
+
.classBuilder()
|
|
658
|
+
.ep(commonParams)
|
|
659
|
+
.m(function (Command, cs, config, o) {
|
|
660
|
+
return [
|
|
661
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
662
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
663
|
+
];
|
|
664
|
+
})
|
|
665
|
+
.s("SupportApp", "GetAccountAlias", {})
|
|
666
|
+
.n("SupportAppClient", "GetAccountAliasCommand")
|
|
667
|
+
.f(void 0, void 0)
|
|
668
|
+
.ser(se_GetAccountAliasCommand)
|
|
669
|
+
.de(de_GetAccountAliasCommand)
|
|
670
|
+
.build() {
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
class ListSlackChannelConfigurationsCommand extends smithyClient.Command
|
|
674
|
+
.classBuilder()
|
|
675
|
+
.ep(commonParams)
|
|
676
|
+
.m(function (Command, cs, config, o) {
|
|
677
|
+
return [
|
|
678
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
679
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
680
|
+
];
|
|
681
|
+
})
|
|
682
|
+
.s("SupportApp", "ListSlackChannelConfigurations", {})
|
|
683
|
+
.n("SupportAppClient", "ListSlackChannelConfigurationsCommand")
|
|
684
|
+
.f(void 0, void 0)
|
|
685
|
+
.ser(se_ListSlackChannelConfigurationsCommand)
|
|
686
|
+
.de(de_ListSlackChannelConfigurationsCommand)
|
|
687
|
+
.build() {
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
class ListSlackWorkspaceConfigurationsCommand extends smithyClient.Command
|
|
691
|
+
.classBuilder()
|
|
692
|
+
.ep(commonParams)
|
|
693
|
+
.m(function (Command, cs, config, o) {
|
|
694
|
+
return [
|
|
695
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
696
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
697
|
+
];
|
|
698
|
+
})
|
|
699
|
+
.s("SupportApp", "ListSlackWorkspaceConfigurations", {})
|
|
700
|
+
.n("SupportAppClient", "ListSlackWorkspaceConfigurationsCommand")
|
|
701
|
+
.f(void 0, void 0)
|
|
702
|
+
.ser(se_ListSlackWorkspaceConfigurationsCommand)
|
|
703
|
+
.de(de_ListSlackWorkspaceConfigurationsCommand)
|
|
704
|
+
.build() {
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
class PutAccountAliasCommand extends smithyClient.Command
|
|
708
|
+
.classBuilder()
|
|
709
|
+
.ep(commonParams)
|
|
710
|
+
.m(function (Command, cs, config, o) {
|
|
711
|
+
return [
|
|
712
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
713
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
714
|
+
];
|
|
715
|
+
})
|
|
716
|
+
.s("SupportApp", "PutAccountAlias", {})
|
|
717
|
+
.n("SupportAppClient", "PutAccountAliasCommand")
|
|
718
|
+
.f(void 0, void 0)
|
|
719
|
+
.ser(se_PutAccountAliasCommand)
|
|
720
|
+
.de(de_PutAccountAliasCommand)
|
|
721
|
+
.build() {
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
class RegisterSlackWorkspaceForOrganizationCommand extends smithyClient.Command
|
|
725
|
+
.classBuilder()
|
|
726
|
+
.ep(commonParams)
|
|
727
|
+
.m(function (Command, cs, config, o) {
|
|
728
|
+
return [
|
|
729
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
730
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
731
|
+
];
|
|
732
|
+
})
|
|
733
|
+
.s("SupportApp", "RegisterSlackWorkspaceForOrganization", {})
|
|
734
|
+
.n("SupportAppClient", "RegisterSlackWorkspaceForOrganizationCommand")
|
|
735
|
+
.f(void 0, void 0)
|
|
736
|
+
.ser(se_RegisterSlackWorkspaceForOrganizationCommand)
|
|
737
|
+
.de(de_RegisterSlackWorkspaceForOrganizationCommand)
|
|
738
|
+
.build() {
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
class UpdateSlackChannelConfigurationCommand extends smithyClient.Command
|
|
742
|
+
.classBuilder()
|
|
743
|
+
.ep(commonParams)
|
|
744
|
+
.m(function (Command, cs, config, o) {
|
|
745
|
+
return [
|
|
746
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
747
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
748
|
+
];
|
|
749
|
+
})
|
|
750
|
+
.s("SupportApp", "UpdateSlackChannelConfiguration", {})
|
|
751
|
+
.n("SupportAppClient", "UpdateSlackChannelConfigurationCommand")
|
|
752
|
+
.f(void 0, void 0)
|
|
753
|
+
.ser(se_UpdateSlackChannelConfigurationCommand)
|
|
754
|
+
.de(de_UpdateSlackChannelConfigurationCommand)
|
|
755
|
+
.build() {
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
const commands = {
|
|
759
|
+
CreateSlackChannelConfigurationCommand,
|
|
760
|
+
DeleteAccountAliasCommand,
|
|
761
|
+
DeleteSlackChannelConfigurationCommand,
|
|
762
|
+
DeleteSlackWorkspaceConfigurationCommand,
|
|
763
|
+
GetAccountAliasCommand,
|
|
764
|
+
ListSlackChannelConfigurationsCommand,
|
|
765
|
+
ListSlackWorkspaceConfigurationsCommand,
|
|
766
|
+
PutAccountAliasCommand,
|
|
767
|
+
RegisterSlackWorkspaceForOrganizationCommand,
|
|
768
|
+
UpdateSlackChannelConfigurationCommand,
|
|
769
|
+
};
|
|
770
|
+
class SupportApp extends SupportAppClient {
|
|
771
|
+
}
|
|
772
|
+
smithyClient.createAggregatedClient(commands, SupportApp);
|
|
912
773
|
|
|
913
|
-
|
|
774
|
+
const paginateListSlackChannelConfigurations = core.createPaginator(SupportAppClient, ListSlackChannelConfigurationsCommand, "nextToken", "nextToken", "");
|
|
914
775
|
|
|
915
|
-
|
|
916
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
776
|
+
const paginateListSlackWorkspaceConfigurations = core.createPaginator(SupportAppClient, ListSlackWorkspaceConfigurationsCommand, "nextToken", "nextToken", "");
|
|
917
777
|
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
SupportAppClient,
|
|
922
|
-
SupportApp,
|
|
923
|
-
$Command,
|
|
924
|
-
CreateSlackChannelConfigurationCommand,
|
|
925
|
-
DeleteAccountAliasCommand,
|
|
926
|
-
DeleteSlackChannelConfigurationCommand,
|
|
927
|
-
DeleteSlackWorkspaceConfigurationCommand,
|
|
928
|
-
GetAccountAliasCommand,
|
|
929
|
-
ListSlackChannelConfigurationsCommand,
|
|
930
|
-
ListSlackWorkspaceConfigurationsCommand,
|
|
931
|
-
PutAccountAliasCommand,
|
|
932
|
-
RegisterSlackWorkspaceForOrganizationCommand,
|
|
933
|
-
UpdateSlackChannelConfigurationCommand,
|
|
934
|
-
paginateListSlackChannelConfigurations,
|
|
935
|
-
paginateListSlackWorkspaceConfigurations,
|
|
936
|
-
AccessDeniedException,
|
|
937
|
-
AccountType,
|
|
938
|
-
ConflictException,
|
|
939
|
-
NotificationSeverityLevel,
|
|
940
|
-
InternalServerException,
|
|
941
|
-
ServiceQuotaExceededException,
|
|
942
|
-
ValidationException,
|
|
943
|
-
ResourceNotFoundException
|
|
778
|
+
Object.defineProperty(exports, "$Command", {
|
|
779
|
+
enumerable: true,
|
|
780
|
+
get: function () { return smithyClient.Command; }
|
|
944
781
|
});
|
|
945
|
-
|
|
782
|
+
Object.defineProperty(exports, "__Client", {
|
|
783
|
+
enumerable: true,
|
|
784
|
+
get: function () { return smithyClient.Client; }
|
|
785
|
+
});
|
|
786
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
787
|
+
exports.AccountType = AccountType;
|
|
788
|
+
exports.ConflictException = ConflictException;
|
|
789
|
+
exports.CreateSlackChannelConfigurationCommand = CreateSlackChannelConfigurationCommand;
|
|
790
|
+
exports.DeleteAccountAliasCommand = DeleteAccountAliasCommand;
|
|
791
|
+
exports.DeleteSlackChannelConfigurationCommand = DeleteSlackChannelConfigurationCommand;
|
|
792
|
+
exports.DeleteSlackWorkspaceConfigurationCommand = DeleteSlackWorkspaceConfigurationCommand;
|
|
793
|
+
exports.GetAccountAliasCommand = GetAccountAliasCommand;
|
|
794
|
+
exports.InternalServerException = InternalServerException;
|
|
795
|
+
exports.ListSlackChannelConfigurationsCommand = ListSlackChannelConfigurationsCommand;
|
|
796
|
+
exports.ListSlackWorkspaceConfigurationsCommand = ListSlackWorkspaceConfigurationsCommand;
|
|
797
|
+
exports.NotificationSeverityLevel = NotificationSeverityLevel;
|
|
798
|
+
exports.PutAccountAliasCommand = PutAccountAliasCommand;
|
|
799
|
+
exports.RegisterSlackWorkspaceForOrganizationCommand = RegisterSlackWorkspaceForOrganizationCommand;
|
|
800
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
801
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
802
|
+
exports.SupportApp = SupportApp;
|
|
803
|
+
exports.SupportAppClient = SupportAppClient;
|
|
804
|
+
exports.SupportAppServiceException = SupportAppServiceException;
|
|
805
|
+
exports.UpdateSlackChannelConfigurationCommand = UpdateSlackChannelConfigurationCommand;
|
|
806
|
+
exports.ValidationException = ValidationException;
|
|
807
|
+
exports.paginateListSlackChannelConfigurations = paginateListSlackChannelConfigurations;
|
|
808
|
+
exports.paginateListSlackWorkspaceConfigurations = paginateListSlackWorkspaceConfigurations;
|