@aws-sdk/client-support-app 3.489.0 → 3.495.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/SupportApp.js +1 -31
- package/dist-cjs/SupportAppClient.js +1 -43
- package/dist-cjs/commands/CreateSlackChannelConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeleteAccountAliasCommand.js +1 -28
- package/dist-cjs/commands/DeleteSlackChannelConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeleteSlackWorkspaceConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetAccountAliasCommand.js +1 -28
- package/dist-cjs/commands/ListSlackChannelConfigurationsCommand.js +1 -28
- package/dist-cjs/commands/ListSlackWorkspaceConfigurationsCommand.js +1 -28
- package/dist-cjs/commands/PutAccountAliasCommand.js +1 -28
- package/dist-cjs/commands/RegisterSlackWorkspaceForOrganizationCommand.js +1 -28
- package/dist-cjs/commands/UpdateSlackChannelConfigurationCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -13
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1180 -11
- package/dist-cjs/models/SupportAppServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -91
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListSlackChannelConfigurationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSlackWorkspaceConfigurationsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -6
- package/dist-cjs/protocols/Aws_restJson1.js +1 -698
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1181 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
AccountType: () => AccountType,
|
|
26
|
+
ConflictException: () => ConflictException,
|
|
27
|
+
CreateSlackChannelConfigurationCommand: () => CreateSlackChannelConfigurationCommand,
|
|
28
|
+
DeleteAccountAliasCommand: () => DeleteAccountAliasCommand,
|
|
29
|
+
DeleteSlackChannelConfigurationCommand: () => DeleteSlackChannelConfigurationCommand,
|
|
30
|
+
DeleteSlackWorkspaceConfigurationCommand: () => DeleteSlackWorkspaceConfigurationCommand,
|
|
31
|
+
GetAccountAliasCommand: () => GetAccountAliasCommand,
|
|
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(src_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_signing = require("@aws-sdk/middleware-signing");
|
|
56
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
57
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
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
|
+
|
|
63
|
+
// src/endpoint/EndpointParameters.ts
|
|
64
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
65
|
+
return {
|
|
66
|
+
...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" }
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
// src/SupportAppClient.ts
|
|
80
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
81
|
+
|
|
82
|
+
// src/runtimeExtensions.ts
|
|
83
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
84
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
85
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
86
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
87
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
88
|
+
const extensionConfiguration = {
|
|
89
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
90
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
91
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
92
|
+
};
|
|
93
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
94
|
+
return {
|
|
95
|
+
...runtimeConfig,
|
|
96
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
97
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
98
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
99
|
+
};
|
|
100
|
+
}, "resolveRuntimeExtensions");
|
|
101
|
+
|
|
102
|
+
// src/SupportAppClient.ts
|
|
103
|
+
var _SupportAppClient = class _SupportAppClient extends import_smithy_client.Client {
|
|
104
|
+
constructor(...[configuration]) {
|
|
105
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
106
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
107
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
108
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
109
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
110
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
111
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
112
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
113
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
114
|
+
super(_config_8);
|
|
115
|
+
this.config = _config_8;
|
|
116
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
117
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
118
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
119
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
120
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
121
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
122
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
126
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
127
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
128
|
+
*/
|
|
129
|
+
destroy() {
|
|
130
|
+
super.destroy();
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
__name(_SupportAppClient, "SupportAppClient");
|
|
134
|
+
var SupportAppClient = _SupportAppClient;
|
|
135
|
+
|
|
136
|
+
// src/SupportApp.ts
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
// src/commands/CreateSlackChannelConfigurationCommand.ts
|
|
140
|
+
|
|
141
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
142
|
+
|
|
143
|
+
var import_types = require("@smithy/types");
|
|
144
|
+
|
|
145
|
+
// src/protocols/Aws_restJson1.ts
|
|
146
|
+
var import_core = require("@smithy/core");
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
// src/models/SupportAppServiceException.ts
|
|
150
|
+
|
|
151
|
+
var _SupportAppServiceException = class _SupportAppServiceException extends import_smithy_client.ServiceException {
|
|
152
|
+
/**
|
|
153
|
+
* @internal
|
|
154
|
+
*/
|
|
155
|
+
constructor(options) {
|
|
156
|
+
super(options);
|
|
157
|
+
Object.setPrototypeOf(this, _SupportAppServiceException.prototype);
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
__name(_SupportAppServiceException, "SupportAppServiceException");
|
|
161
|
+
var SupportAppServiceException = _SupportAppServiceException;
|
|
162
|
+
|
|
163
|
+
// src/models/models_0.ts
|
|
164
|
+
var _AccessDeniedException = class _AccessDeniedException extends SupportAppServiceException {
|
|
165
|
+
/**
|
|
166
|
+
* @internal
|
|
167
|
+
*/
|
|
168
|
+
constructor(opts) {
|
|
169
|
+
super({
|
|
170
|
+
name: "AccessDeniedException",
|
|
171
|
+
$fault: "client",
|
|
172
|
+
...opts
|
|
173
|
+
});
|
|
174
|
+
this.name = "AccessDeniedException";
|
|
175
|
+
this.$fault = "client";
|
|
176
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
180
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
181
|
+
var AccountType = {
|
|
182
|
+
MANAGEMENT: "management",
|
|
183
|
+
MEMBER: "member"
|
|
184
|
+
};
|
|
185
|
+
var _ConflictException = class _ConflictException extends SupportAppServiceException {
|
|
186
|
+
/**
|
|
187
|
+
* @internal
|
|
188
|
+
*/
|
|
189
|
+
constructor(opts) {
|
|
190
|
+
super({
|
|
191
|
+
name: "ConflictException",
|
|
192
|
+
$fault: "client",
|
|
193
|
+
...opts
|
|
194
|
+
});
|
|
195
|
+
this.name = "ConflictException";
|
|
196
|
+
this.$fault = "client";
|
|
197
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
__name(_ConflictException, "ConflictException");
|
|
201
|
+
var ConflictException = _ConflictException;
|
|
202
|
+
var NotificationSeverityLevel = {
|
|
203
|
+
ALL: "all",
|
|
204
|
+
HIGH: "high",
|
|
205
|
+
NONE: "none"
|
|
206
|
+
};
|
|
207
|
+
var _InternalServerException = class _InternalServerException extends SupportAppServiceException {
|
|
208
|
+
/**
|
|
209
|
+
* @internal
|
|
210
|
+
*/
|
|
211
|
+
constructor(opts) {
|
|
212
|
+
super({
|
|
213
|
+
name: "InternalServerException",
|
|
214
|
+
$fault: "server",
|
|
215
|
+
...opts
|
|
216
|
+
});
|
|
217
|
+
this.name = "InternalServerException";
|
|
218
|
+
this.$fault = "server";
|
|
219
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
__name(_InternalServerException, "InternalServerException");
|
|
223
|
+
var InternalServerException = _InternalServerException;
|
|
224
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends SupportAppServiceException {
|
|
225
|
+
/**
|
|
226
|
+
* @internal
|
|
227
|
+
*/
|
|
228
|
+
constructor(opts) {
|
|
229
|
+
super({
|
|
230
|
+
name: "ServiceQuotaExceededException",
|
|
231
|
+
$fault: "client",
|
|
232
|
+
...opts
|
|
233
|
+
});
|
|
234
|
+
this.name = "ServiceQuotaExceededException";
|
|
235
|
+
this.$fault = "client";
|
|
236
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
240
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
241
|
+
var _ValidationException = class _ValidationException extends SupportAppServiceException {
|
|
242
|
+
/**
|
|
243
|
+
* @internal
|
|
244
|
+
*/
|
|
245
|
+
constructor(opts) {
|
|
246
|
+
super({
|
|
247
|
+
name: "ValidationException",
|
|
248
|
+
$fault: "client",
|
|
249
|
+
...opts
|
|
250
|
+
});
|
|
251
|
+
this.name = "ValidationException";
|
|
252
|
+
this.$fault = "client";
|
|
253
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
__name(_ValidationException, "ValidationException");
|
|
257
|
+
var ValidationException = _ValidationException;
|
|
258
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends SupportAppServiceException {
|
|
259
|
+
/**
|
|
260
|
+
* @internal
|
|
261
|
+
*/
|
|
262
|
+
constructor(opts) {
|
|
263
|
+
super({
|
|
264
|
+
name: "ResourceNotFoundException",
|
|
265
|
+
$fault: "client",
|
|
266
|
+
...opts
|
|
267
|
+
});
|
|
268
|
+
this.name = "ResourceNotFoundException";
|
|
269
|
+
this.$fault = "client";
|
|
270
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
274
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
275
|
+
|
|
276
|
+
// src/protocols/Aws_restJson1.ts
|
|
277
|
+
var se_CreateSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
278
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
279
|
+
const headers = {
|
|
280
|
+
"content-type": "application/json"
|
|
281
|
+
};
|
|
282
|
+
b.bp("/control/create-slack-channel-configuration");
|
|
283
|
+
let body;
|
|
284
|
+
body = JSON.stringify(
|
|
285
|
+
(0, import_smithy_client.take)(input, {
|
|
286
|
+
channelId: [],
|
|
287
|
+
channelName: [],
|
|
288
|
+
channelRoleArn: [],
|
|
289
|
+
notifyOnAddCorrespondenceToCase: [],
|
|
290
|
+
notifyOnCaseSeverity: [],
|
|
291
|
+
notifyOnCreateOrReopenCase: [],
|
|
292
|
+
notifyOnResolveCase: [],
|
|
293
|
+
teamId: []
|
|
294
|
+
})
|
|
295
|
+
);
|
|
296
|
+
b.m("POST").h(headers).b(body);
|
|
297
|
+
return b.build();
|
|
298
|
+
}, "se_CreateSlackChannelConfigurationCommand");
|
|
299
|
+
var se_DeleteAccountAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
300
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
301
|
+
const headers = {
|
|
302
|
+
"content-type": "application/json"
|
|
303
|
+
};
|
|
304
|
+
b.bp("/control/delete-account-alias");
|
|
305
|
+
let body;
|
|
306
|
+
body = "";
|
|
307
|
+
b.m("POST").h(headers).b(body);
|
|
308
|
+
return b.build();
|
|
309
|
+
}, "se_DeleteAccountAliasCommand");
|
|
310
|
+
var se_DeleteSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
311
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
312
|
+
const headers = {
|
|
313
|
+
"content-type": "application/json"
|
|
314
|
+
};
|
|
315
|
+
b.bp("/control/delete-slack-channel-configuration");
|
|
316
|
+
let body;
|
|
317
|
+
body = JSON.stringify(
|
|
318
|
+
(0, import_smithy_client.take)(input, {
|
|
319
|
+
channelId: [],
|
|
320
|
+
teamId: []
|
|
321
|
+
})
|
|
322
|
+
);
|
|
323
|
+
b.m("POST").h(headers).b(body);
|
|
324
|
+
return b.build();
|
|
325
|
+
}, "se_DeleteSlackChannelConfigurationCommand");
|
|
326
|
+
var se_DeleteSlackWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
327
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
328
|
+
const headers = {
|
|
329
|
+
"content-type": "application/json"
|
|
330
|
+
};
|
|
331
|
+
b.bp("/control/delete-slack-workspace-configuration");
|
|
332
|
+
let body;
|
|
333
|
+
body = JSON.stringify(
|
|
334
|
+
(0, import_smithy_client.take)(input, {
|
|
335
|
+
teamId: []
|
|
336
|
+
})
|
|
337
|
+
);
|
|
338
|
+
b.m("POST").h(headers).b(body);
|
|
339
|
+
return b.build();
|
|
340
|
+
}, "se_DeleteSlackWorkspaceConfigurationCommand");
|
|
341
|
+
var se_GetAccountAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
342
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
343
|
+
const headers = {
|
|
344
|
+
"content-type": "application/json"
|
|
345
|
+
};
|
|
346
|
+
b.bp("/control/get-account-alias");
|
|
347
|
+
let body;
|
|
348
|
+
body = "";
|
|
349
|
+
b.m("POST").h(headers).b(body);
|
|
350
|
+
return b.build();
|
|
351
|
+
}, "se_GetAccountAliasCommand");
|
|
352
|
+
var se_ListSlackChannelConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
353
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
354
|
+
const headers = {
|
|
355
|
+
"content-type": "application/json"
|
|
356
|
+
};
|
|
357
|
+
b.bp("/control/list-slack-channel-configurations");
|
|
358
|
+
let body;
|
|
359
|
+
body = JSON.stringify(
|
|
360
|
+
(0, import_smithy_client.take)(input, {
|
|
361
|
+
nextToken: []
|
|
362
|
+
})
|
|
363
|
+
);
|
|
364
|
+
b.m("POST").h(headers).b(body);
|
|
365
|
+
return b.build();
|
|
366
|
+
}, "se_ListSlackChannelConfigurationsCommand");
|
|
367
|
+
var se_ListSlackWorkspaceConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
368
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
369
|
+
const headers = {
|
|
370
|
+
"content-type": "application/json"
|
|
371
|
+
};
|
|
372
|
+
b.bp("/control/list-slack-workspace-configurations");
|
|
373
|
+
let body;
|
|
374
|
+
body = JSON.stringify(
|
|
375
|
+
(0, import_smithy_client.take)(input, {
|
|
376
|
+
nextToken: []
|
|
377
|
+
})
|
|
378
|
+
);
|
|
379
|
+
b.m("POST").h(headers).b(body);
|
|
380
|
+
return b.build();
|
|
381
|
+
}, "se_ListSlackWorkspaceConfigurationsCommand");
|
|
382
|
+
var se_PutAccountAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
383
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
384
|
+
const headers = {
|
|
385
|
+
"content-type": "application/json"
|
|
386
|
+
};
|
|
387
|
+
b.bp("/control/put-account-alias");
|
|
388
|
+
let body;
|
|
389
|
+
body = JSON.stringify(
|
|
390
|
+
(0, import_smithy_client.take)(input, {
|
|
391
|
+
accountAlias: []
|
|
392
|
+
})
|
|
393
|
+
);
|
|
394
|
+
b.m("POST").h(headers).b(body);
|
|
395
|
+
return b.build();
|
|
396
|
+
}, "se_PutAccountAliasCommand");
|
|
397
|
+
var se_RegisterSlackWorkspaceForOrganizationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
398
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
399
|
+
const headers = {
|
|
400
|
+
"content-type": "application/json"
|
|
401
|
+
};
|
|
402
|
+
b.bp("/control/register-slack-workspace-for-organization");
|
|
403
|
+
let body;
|
|
404
|
+
body = JSON.stringify(
|
|
405
|
+
(0, import_smithy_client.take)(input, {
|
|
406
|
+
teamId: []
|
|
407
|
+
})
|
|
408
|
+
);
|
|
409
|
+
b.m("POST").h(headers).b(body);
|
|
410
|
+
return b.build();
|
|
411
|
+
}, "se_RegisterSlackWorkspaceForOrganizationCommand");
|
|
412
|
+
var se_UpdateSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
413
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
414
|
+
const headers = {
|
|
415
|
+
"content-type": "application/json"
|
|
416
|
+
};
|
|
417
|
+
b.bp("/control/update-slack-channel-configuration");
|
|
418
|
+
let body;
|
|
419
|
+
body = JSON.stringify(
|
|
420
|
+
(0, import_smithy_client.take)(input, {
|
|
421
|
+
channelId: [],
|
|
422
|
+
channelName: [],
|
|
423
|
+
channelRoleArn: [],
|
|
424
|
+
notifyOnAddCorrespondenceToCase: [],
|
|
425
|
+
notifyOnCaseSeverity: [],
|
|
426
|
+
notifyOnCreateOrReopenCase: [],
|
|
427
|
+
notifyOnResolveCase: [],
|
|
428
|
+
teamId: []
|
|
429
|
+
})
|
|
430
|
+
);
|
|
431
|
+
b.m("POST").h(headers).b(body);
|
|
432
|
+
return b.build();
|
|
433
|
+
}, "se_UpdateSlackChannelConfigurationCommand");
|
|
434
|
+
var de_CreateSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
435
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
436
|
+
return de_CreateSlackChannelConfigurationCommandError(output, context);
|
|
437
|
+
}
|
|
438
|
+
const contents = (0, import_smithy_client.map)({
|
|
439
|
+
$metadata: deserializeMetadata(output)
|
|
440
|
+
});
|
|
441
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
442
|
+
return contents;
|
|
443
|
+
}, "de_CreateSlackChannelConfigurationCommand");
|
|
444
|
+
var de_CreateSlackChannelConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
445
|
+
const parsedOutput = {
|
|
446
|
+
...output,
|
|
447
|
+
body: await parseErrorBody(output.body, context)
|
|
448
|
+
};
|
|
449
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
450
|
+
switch (errorCode) {
|
|
451
|
+
case "AccessDeniedException":
|
|
452
|
+
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
453
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
454
|
+
case "ConflictException":
|
|
455
|
+
case "com.amazonaws.supportapp#ConflictException":
|
|
456
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
457
|
+
case "InternalServerException":
|
|
458
|
+
case "com.amazonaws.supportapp#InternalServerException":
|
|
459
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
460
|
+
case "ServiceQuotaExceededException":
|
|
461
|
+
case "com.amazonaws.supportapp#ServiceQuotaExceededException":
|
|
462
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
463
|
+
case "ValidationException":
|
|
464
|
+
case "com.amazonaws.supportapp#ValidationException":
|
|
465
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
466
|
+
default:
|
|
467
|
+
const parsedBody = parsedOutput.body;
|
|
468
|
+
return throwDefaultError({
|
|
469
|
+
output,
|
|
470
|
+
parsedBody,
|
|
471
|
+
errorCode
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
}, "de_CreateSlackChannelConfigurationCommandError");
|
|
475
|
+
var de_DeleteAccountAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
476
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
477
|
+
return de_DeleteAccountAliasCommandError(output, context);
|
|
478
|
+
}
|
|
479
|
+
const contents = (0, import_smithy_client.map)({
|
|
480
|
+
$metadata: deserializeMetadata(output)
|
|
481
|
+
});
|
|
482
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
483
|
+
return contents;
|
|
484
|
+
}, "de_DeleteAccountAliasCommand");
|
|
485
|
+
var de_DeleteAccountAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
486
|
+
const parsedOutput = {
|
|
487
|
+
...output,
|
|
488
|
+
body: await parseErrorBody(output.body, context)
|
|
489
|
+
};
|
|
490
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
491
|
+
switch (errorCode) {
|
|
492
|
+
case "AccessDeniedException":
|
|
493
|
+
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
494
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
495
|
+
case "InternalServerException":
|
|
496
|
+
case "com.amazonaws.supportapp#InternalServerException":
|
|
497
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
498
|
+
case "ResourceNotFoundException":
|
|
499
|
+
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
500
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
501
|
+
default:
|
|
502
|
+
const parsedBody = parsedOutput.body;
|
|
503
|
+
return throwDefaultError({
|
|
504
|
+
output,
|
|
505
|
+
parsedBody,
|
|
506
|
+
errorCode
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
}, "de_DeleteAccountAliasCommandError");
|
|
510
|
+
var de_DeleteSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
511
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
512
|
+
return de_DeleteSlackChannelConfigurationCommandError(output, context);
|
|
513
|
+
}
|
|
514
|
+
const contents = (0, import_smithy_client.map)({
|
|
515
|
+
$metadata: deserializeMetadata(output)
|
|
516
|
+
});
|
|
517
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
518
|
+
return contents;
|
|
519
|
+
}, "de_DeleteSlackChannelConfigurationCommand");
|
|
520
|
+
var de_DeleteSlackChannelConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
521
|
+
const parsedOutput = {
|
|
522
|
+
...output,
|
|
523
|
+
body: await parseErrorBody(output.body, context)
|
|
524
|
+
};
|
|
525
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
526
|
+
switch (errorCode) {
|
|
527
|
+
case "AccessDeniedException":
|
|
528
|
+
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
529
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
530
|
+
case "ConflictException":
|
|
531
|
+
case "com.amazonaws.supportapp#ConflictException":
|
|
532
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
533
|
+
case "InternalServerException":
|
|
534
|
+
case "com.amazonaws.supportapp#InternalServerException":
|
|
535
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
536
|
+
case "ResourceNotFoundException":
|
|
537
|
+
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
538
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
539
|
+
case "ValidationException":
|
|
540
|
+
case "com.amazonaws.supportapp#ValidationException":
|
|
541
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
542
|
+
default:
|
|
543
|
+
const parsedBody = parsedOutput.body;
|
|
544
|
+
return throwDefaultError({
|
|
545
|
+
output,
|
|
546
|
+
parsedBody,
|
|
547
|
+
errorCode
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
}, "de_DeleteSlackChannelConfigurationCommandError");
|
|
551
|
+
var de_DeleteSlackWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
552
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
553
|
+
return de_DeleteSlackWorkspaceConfigurationCommandError(output, context);
|
|
554
|
+
}
|
|
555
|
+
const contents = (0, import_smithy_client.map)({
|
|
556
|
+
$metadata: deserializeMetadata(output)
|
|
557
|
+
});
|
|
558
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
559
|
+
return contents;
|
|
560
|
+
}, "de_DeleteSlackWorkspaceConfigurationCommand");
|
|
561
|
+
var de_DeleteSlackWorkspaceConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
562
|
+
const parsedOutput = {
|
|
563
|
+
...output,
|
|
564
|
+
body: await parseErrorBody(output.body, context)
|
|
565
|
+
};
|
|
566
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
567
|
+
switch (errorCode) {
|
|
568
|
+
case "AccessDeniedException":
|
|
569
|
+
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
570
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
571
|
+
case "ConflictException":
|
|
572
|
+
case "com.amazonaws.supportapp#ConflictException":
|
|
573
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
574
|
+
case "InternalServerException":
|
|
575
|
+
case "com.amazonaws.supportapp#InternalServerException":
|
|
576
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
577
|
+
case "ResourceNotFoundException":
|
|
578
|
+
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
579
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
580
|
+
case "ValidationException":
|
|
581
|
+
case "com.amazonaws.supportapp#ValidationException":
|
|
582
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
583
|
+
default:
|
|
584
|
+
const parsedBody = parsedOutput.body;
|
|
585
|
+
return throwDefaultError({
|
|
586
|
+
output,
|
|
587
|
+
parsedBody,
|
|
588
|
+
errorCode
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
}, "de_DeleteSlackWorkspaceConfigurationCommandError");
|
|
592
|
+
var de_GetAccountAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
593
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
594
|
+
return de_GetAccountAliasCommandError(output, context);
|
|
595
|
+
}
|
|
596
|
+
const contents = (0, import_smithy_client.map)({
|
|
597
|
+
$metadata: deserializeMetadata(output)
|
|
598
|
+
});
|
|
599
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
600
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
601
|
+
accountAlias: import_smithy_client.expectString
|
|
602
|
+
});
|
|
603
|
+
Object.assign(contents, doc);
|
|
604
|
+
return contents;
|
|
605
|
+
}, "de_GetAccountAliasCommand");
|
|
606
|
+
var de_GetAccountAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
607
|
+
const parsedOutput = {
|
|
608
|
+
...output,
|
|
609
|
+
body: await parseErrorBody(output.body, context)
|
|
610
|
+
};
|
|
611
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
|
+
switch (errorCode) {
|
|
613
|
+
case "InternalServerException":
|
|
614
|
+
case "com.amazonaws.supportapp#InternalServerException":
|
|
615
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
616
|
+
default:
|
|
617
|
+
const parsedBody = parsedOutput.body;
|
|
618
|
+
return throwDefaultError({
|
|
619
|
+
output,
|
|
620
|
+
parsedBody,
|
|
621
|
+
errorCode
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
}, "de_GetAccountAliasCommandError");
|
|
625
|
+
var de_ListSlackChannelConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
626
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
627
|
+
return de_ListSlackChannelConfigurationsCommandError(output, context);
|
|
628
|
+
}
|
|
629
|
+
const contents = (0, import_smithy_client.map)({
|
|
630
|
+
$metadata: deserializeMetadata(output)
|
|
631
|
+
});
|
|
632
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
633
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
634
|
+
nextToken: import_smithy_client.expectString,
|
|
635
|
+
slackChannelConfigurations: import_smithy_client._json
|
|
636
|
+
});
|
|
637
|
+
Object.assign(contents, doc);
|
|
638
|
+
return contents;
|
|
639
|
+
}, "de_ListSlackChannelConfigurationsCommand");
|
|
640
|
+
var de_ListSlackChannelConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
641
|
+
const parsedOutput = {
|
|
642
|
+
...output,
|
|
643
|
+
body: await parseErrorBody(output.body, context)
|
|
644
|
+
};
|
|
645
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
646
|
+
switch (errorCode) {
|
|
647
|
+
case "AccessDeniedException":
|
|
648
|
+
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
649
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
650
|
+
case "InternalServerException":
|
|
651
|
+
case "com.amazonaws.supportapp#InternalServerException":
|
|
652
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
653
|
+
default:
|
|
654
|
+
const parsedBody = parsedOutput.body;
|
|
655
|
+
return throwDefaultError({
|
|
656
|
+
output,
|
|
657
|
+
parsedBody,
|
|
658
|
+
errorCode
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
}, "de_ListSlackChannelConfigurationsCommandError");
|
|
662
|
+
var de_ListSlackWorkspaceConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
663
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
664
|
+
return de_ListSlackWorkspaceConfigurationsCommandError(output, context);
|
|
665
|
+
}
|
|
666
|
+
const contents = (0, import_smithy_client.map)({
|
|
667
|
+
$metadata: deserializeMetadata(output)
|
|
668
|
+
});
|
|
669
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
670
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
671
|
+
nextToken: import_smithy_client.expectString,
|
|
672
|
+
slackWorkspaceConfigurations: import_smithy_client._json
|
|
673
|
+
});
|
|
674
|
+
Object.assign(contents, doc);
|
|
675
|
+
return contents;
|
|
676
|
+
}, "de_ListSlackWorkspaceConfigurationsCommand");
|
|
677
|
+
var de_ListSlackWorkspaceConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
678
|
+
const parsedOutput = {
|
|
679
|
+
...output,
|
|
680
|
+
body: await parseErrorBody(output.body, context)
|
|
681
|
+
};
|
|
682
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
|
+
switch (errorCode) {
|
|
684
|
+
case "AccessDeniedException":
|
|
685
|
+
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
686
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
687
|
+
case "InternalServerException":
|
|
688
|
+
case "com.amazonaws.supportapp#InternalServerException":
|
|
689
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
690
|
+
default:
|
|
691
|
+
const parsedBody = parsedOutput.body;
|
|
692
|
+
return throwDefaultError({
|
|
693
|
+
output,
|
|
694
|
+
parsedBody,
|
|
695
|
+
errorCode
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
}, "de_ListSlackWorkspaceConfigurationsCommandError");
|
|
699
|
+
var de_PutAccountAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
700
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
701
|
+
return de_PutAccountAliasCommandError(output, context);
|
|
702
|
+
}
|
|
703
|
+
const contents = (0, import_smithy_client.map)({
|
|
704
|
+
$metadata: deserializeMetadata(output)
|
|
705
|
+
});
|
|
706
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
707
|
+
return contents;
|
|
708
|
+
}, "de_PutAccountAliasCommand");
|
|
709
|
+
var de_PutAccountAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
710
|
+
const parsedOutput = {
|
|
711
|
+
...output,
|
|
712
|
+
body: await parseErrorBody(output.body, context)
|
|
713
|
+
};
|
|
714
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
715
|
+
switch (errorCode) {
|
|
716
|
+
case "AccessDeniedException":
|
|
717
|
+
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
718
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
719
|
+
case "InternalServerException":
|
|
720
|
+
case "com.amazonaws.supportapp#InternalServerException":
|
|
721
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
722
|
+
case "ValidationException":
|
|
723
|
+
case "com.amazonaws.supportapp#ValidationException":
|
|
724
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
725
|
+
default:
|
|
726
|
+
const parsedBody = parsedOutput.body;
|
|
727
|
+
return throwDefaultError({
|
|
728
|
+
output,
|
|
729
|
+
parsedBody,
|
|
730
|
+
errorCode
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
}, "de_PutAccountAliasCommandError");
|
|
734
|
+
var de_RegisterSlackWorkspaceForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
735
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
736
|
+
return de_RegisterSlackWorkspaceForOrganizationCommandError(output, context);
|
|
737
|
+
}
|
|
738
|
+
const contents = (0, import_smithy_client.map)({
|
|
739
|
+
$metadata: deserializeMetadata(output)
|
|
740
|
+
});
|
|
741
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
742
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
743
|
+
accountType: import_smithy_client.expectString,
|
|
744
|
+
teamId: import_smithy_client.expectString,
|
|
745
|
+
teamName: import_smithy_client.expectString
|
|
746
|
+
});
|
|
747
|
+
Object.assign(contents, doc);
|
|
748
|
+
return contents;
|
|
749
|
+
}, "de_RegisterSlackWorkspaceForOrganizationCommand");
|
|
750
|
+
var de_RegisterSlackWorkspaceForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
751
|
+
const parsedOutput = {
|
|
752
|
+
...output,
|
|
753
|
+
body: await parseErrorBody(output.body, context)
|
|
754
|
+
};
|
|
755
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
756
|
+
switch (errorCode) {
|
|
757
|
+
case "AccessDeniedException":
|
|
758
|
+
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
759
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
760
|
+
case "ConflictException":
|
|
761
|
+
case "com.amazonaws.supportapp#ConflictException":
|
|
762
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
763
|
+
case "InternalServerException":
|
|
764
|
+
case "com.amazonaws.supportapp#InternalServerException":
|
|
765
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
766
|
+
case "ResourceNotFoundException":
|
|
767
|
+
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
768
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
769
|
+
case "ValidationException":
|
|
770
|
+
case "com.amazonaws.supportapp#ValidationException":
|
|
771
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
772
|
+
default:
|
|
773
|
+
const parsedBody = parsedOutput.body;
|
|
774
|
+
return throwDefaultError({
|
|
775
|
+
output,
|
|
776
|
+
parsedBody,
|
|
777
|
+
errorCode
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
}, "de_RegisterSlackWorkspaceForOrganizationCommandError");
|
|
781
|
+
var de_UpdateSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
782
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
783
|
+
return de_UpdateSlackChannelConfigurationCommandError(output, context);
|
|
784
|
+
}
|
|
785
|
+
const contents = (0, import_smithy_client.map)({
|
|
786
|
+
$metadata: deserializeMetadata(output)
|
|
787
|
+
});
|
|
788
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
789
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
790
|
+
channelId: import_smithy_client.expectString,
|
|
791
|
+
channelName: import_smithy_client.expectString,
|
|
792
|
+
channelRoleArn: import_smithy_client.expectString,
|
|
793
|
+
notifyOnAddCorrespondenceToCase: import_smithy_client.expectBoolean,
|
|
794
|
+
notifyOnCaseSeverity: import_smithy_client.expectString,
|
|
795
|
+
notifyOnCreateOrReopenCase: import_smithy_client.expectBoolean,
|
|
796
|
+
notifyOnResolveCase: import_smithy_client.expectBoolean,
|
|
797
|
+
teamId: import_smithy_client.expectString
|
|
798
|
+
});
|
|
799
|
+
Object.assign(contents, doc);
|
|
800
|
+
return contents;
|
|
801
|
+
}, "de_UpdateSlackChannelConfigurationCommand");
|
|
802
|
+
var de_UpdateSlackChannelConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
803
|
+
const parsedOutput = {
|
|
804
|
+
...output,
|
|
805
|
+
body: await parseErrorBody(output.body, context)
|
|
806
|
+
};
|
|
807
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
808
|
+
switch (errorCode) {
|
|
809
|
+
case "AccessDeniedException":
|
|
810
|
+
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
811
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
812
|
+
case "ConflictException":
|
|
813
|
+
case "com.amazonaws.supportapp#ConflictException":
|
|
814
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
815
|
+
case "InternalServerException":
|
|
816
|
+
case "com.amazonaws.supportapp#InternalServerException":
|
|
817
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
818
|
+
case "ResourceNotFoundException":
|
|
819
|
+
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
820
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
821
|
+
case "ValidationException":
|
|
822
|
+
case "com.amazonaws.supportapp#ValidationException":
|
|
823
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
824
|
+
default:
|
|
825
|
+
const parsedBody = parsedOutput.body;
|
|
826
|
+
return throwDefaultError({
|
|
827
|
+
output,
|
|
828
|
+
parsedBody,
|
|
829
|
+
errorCode
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
}, "de_UpdateSlackChannelConfigurationCommandError");
|
|
833
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(SupportAppServiceException);
|
|
834
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
835
|
+
const contents = (0, import_smithy_client.map)({});
|
|
836
|
+
const data = parsedOutput.body;
|
|
837
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
838
|
+
message: import_smithy_client.expectString
|
|
839
|
+
});
|
|
840
|
+
Object.assign(contents, doc);
|
|
841
|
+
const exception = new AccessDeniedException({
|
|
842
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
843
|
+
...contents
|
|
844
|
+
});
|
|
845
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
846
|
+
}, "de_AccessDeniedExceptionRes");
|
|
847
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
848
|
+
const contents = (0, import_smithy_client.map)({});
|
|
849
|
+
const data = parsedOutput.body;
|
|
850
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
851
|
+
message: import_smithy_client.expectString
|
|
852
|
+
});
|
|
853
|
+
Object.assign(contents, doc);
|
|
854
|
+
const exception = new ConflictException({
|
|
855
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
856
|
+
...contents
|
|
857
|
+
});
|
|
858
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
859
|
+
}, "de_ConflictExceptionRes");
|
|
860
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
861
|
+
const contents = (0, import_smithy_client.map)({});
|
|
862
|
+
const data = parsedOutput.body;
|
|
863
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
864
|
+
message: import_smithy_client.expectString
|
|
865
|
+
});
|
|
866
|
+
Object.assign(contents, doc);
|
|
867
|
+
const exception = new InternalServerException({
|
|
868
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
869
|
+
...contents
|
|
870
|
+
});
|
|
871
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
872
|
+
}, "de_InternalServerExceptionRes");
|
|
873
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
874
|
+
const contents = (0, import_smithy_client.map)({});
|
|
875
|
+
const data = parsedOutput.body;
|
|
876
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
877
|
+
message: import_smithy_client.expectString
|
|
878
|
+
});
|
|
879
|
+
Object.assign(contents, doc);
|
|
880
|
+
const exception = new ResourceNotFoundException({
|
|
881
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
882
|
+
...contents
|
|
883
|
+
});
|
|
884
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
885
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
886
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
887
|
+
const contents = (0, import_smithy_client.map)({});
|
|
888
|
+
const data = parsedOutput.body;
|
|
889
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
890
|
+
message: import_smithy_client.expectString
|
|
891
|
+
});
|
|
892
|
+
Object.assign(contents, doc);
|
|
893
|
+
const exception = new ServiceQuotaExceededException({
|
|
894
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
895
|
+
...contents
|
|
896
|
+
});
|
|
897
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
898
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
899
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
900
|
+
const contents = (0, import_smithy_client.map)({});
|
|
901
|
+
const data = parsedOutput.body;
|
|
902
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
903
|
+
message: import_smithy_client.expectString
|
|
904
|
+
});
|
|
905
|
+
Object.assign(contents, doc);
|
|
906
|
+
const exception = new ValidationException({
|
|
907
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
908
|
+
...contents
|
|
909
|
+
});
|
|
910
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
911
|
+
}, "de_ValidationExceptionRes");
|
|
912
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
913
|
+
httpStatusCode: output.statusCode,
|
|
914
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
915
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
916
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
917
|
+
}), "deserializeMetadata");
|
|
918
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
919
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
920
|
+
if (encoded.length) {
|
|
921
|
+
return JSON.parse(encoded);
|
|
922
|
+
}
|
|
923
|
+
return {};
|
|
924
|
+
}), "parseBody");
|
|
925
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
926
|
+
const value = await parseBody(errorBody, context);
|
|
927
|
+
value.message = value.message ?? value.Message;
|
|
928
|
+
return value;
|
|
929
|
+
}, "parseErrorBody");
|
|
930
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
931
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
932
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
933
|
+
let cleanValue = rawValue;
|
|
934
|
+
if (typeof cleanValue === "number") {
|
|
935
|
+
cleanValue = cleanValue.toString();
|
|
936
|
+
}
|
|
937
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
938
|
+
cleanValue = cleanValue.split(",")[0];
|
|
939
|
+
}
|
|
940
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
941
|
+
cleanValue = cleanValue.split(":")[0];
|
|
942
|
+
}
|
|
943
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
944
|
+
cleanValue = cleanValue.split("#")[1];
|
|
945
|
+
}
|
|
946
|
+
return cleanValue;
|
|
947
|
+
}, "sanitizeErrorCode");
|
|
948
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
949
|
+
if (headerKey !== void 0) {
|
|
950
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
951
|
+
}
|
|
952
|
+
if (data.code !== void 0) {
|
|
953
|
+
return sanitizeErrorCode(data.code);
|
|
954
|
+
}
|
|
955
|
+
if (data["__type"] !== void 0) {
|
|
956
|
+
return sanitizeErrorCode(data["__type"]);
|
|
957
|
+
}
|
|
958
|
+
}, "loadRestJsonErrorCode");
|
|
959
|
+
|
|
960
|
+
// src/commands/CreateSlackChannelConfigurationCommand.ts
|
|
961
|
+
var _CreateSlackChannelConfigurationCommand = class _CreateSlackChannelConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
962
|
+
...commonParams
|
|
963
|
+
}).m(function(Command, cs, config, o) {
|
|
964
|
+
return [
|
|
965
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
966
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
967
|
+
];
|
|
968
|
+
}).s("SupportApp", "CreateSlackChannelConfiguration", {}).n("SupportAppClient", "CreateSlackChannelConfigurationCommand").f(void 0, void 0).ser(se_CreateSlackChannelConfigurationCommand).de(de_CreateSlackChannelConfigurationCommand).build() {
|
|
969
|
+
};
|
|
970
|
+
__name(_CreateSlackChannelConfigurationCommand, "CreateSlackChannelConfigurationCommand");
|
|
971
|
+
var CreateSlackChannelConfigurationCommand = _CreateSlackChannelConfigurationCommand;
|
|
972
|
+
|
|
973
|
+
// src/commands/DeleteAccountAliasCommand.ts
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
var _DeleteAccountAliasCommand = class _DeleteAccountAliasCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
979
|
+
...commonParams
|
|
980
|
+
}).m(function(Command, cs, config, o) {
|
|
981
|
+
return [
|
|
982
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
983
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
984
|
+
];
|
|
985
|
+
}).s("SupportApp", "DeleteAccountAlias", {}).n("SupportAppClient", "DeleteAccountAliasCommand").f(void 0, void 0).ser(se_DeleteAccountAliasCommand).de(de_DeleteAccountAliasCommand).build() {
|
|
986
|
+
};
|
|
987
|
+
__name(_DeleteAccountAliasCommand, "DeleteAccountAliasCommand");
|
|
988
|
+
var DeleteAccountAliasCommand = _DeleteAccountAliasCommand;
|
|
989
|
+
|
|
990
|
+
// src/commands/DeleteSlackChannelConfigurationCommand.ts
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
var _DeleteSlackChannelConfigurationCommand = class _DeleteSlackChannelConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
996
|
+
...commonParams
|
|
997
|
+
}).m(function(Command, cs, config, o) {
|
|
998
|
+
return [
|
|
999
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1000
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1001
|
+
];
|
|
1002
|
+
}).s("SupportApp", "DeleteSlackChannelConfiguration", {}).n("SupportAppClient", "DeleteSlackChannelConfigurationCommand").f(void 0, void 0).ser(se_DeleteSlackChannelConfigurationCommand).de(de_DeleteSlackChannelConfigurationCommand).build() {
|
|
1003
|
+
};
|
|
1004
|
+
__name(_DeleteSlackChannelConfigurationCommand, "DeleteSlackChannelConfigurationCommand");
|
|
1005
|
+
var DeleteSlackChannelConfigurationCommand = _DeleteSlackChannelConfigurationCommand;
|
|
1006
|
+
|
|
1007
|
+
// src/commands/DeleteSlackWorkspaceConfigurationCommand.ts
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
var _DeleteSlackWorkspaceConfigurationCommand = class _DeleteSlackWorkspaceConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1013
|
+
...commonParams
|
|
1014
|
+
}).m(function(Command, cs, config, o) {
|
|
1015
|
+
return [
|
|
1016
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1017
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1018
|
+
];
|
|
1019
|
+
}).s("SupportApp", "DeleteSlackWorkspaceConfiguration", {}).n("SupportAppClient", "DeleteSlackWorkspaceConfigurationCommand").f(void 0, void 0).ser(se_DeleteSlackWorkspaceConfigurationCommand).de(de_DeleteSlackWorkspaceConfigurationCommand).build() {
|
|
1020
|
+
};
|
|
1021
|
+
__name(_DeleteSlackWorkspaceConfigurationCommand, "DeleteSlackWorkspaceConfigurationCommand");
|
|
1022
|
+
var DeleteSlackWorkspaceConfigurationCommand = _DeleteSlackWorkspaceConfigurationCommand;
|
|
1023
|
+
|
|
1024
|
+
// src/commands/GetAccountAliasCommand.ts
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
var _GetAccountAliasCommand = class _GetAccountAliasCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1030
|
+
...commonParams
|
|
1031
|
+
}).m(function(Command, cs, config, o) {
|
|
1032
|
+
return [
|
|
1033
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1034
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1035
|
+
];
|
|
1036
|
+
}).s("SupportApp", "GetAccountAlias", {}).n("SupportAppClient", "GetAccountAliasCommand").f(void 0, void 0).ser(se_GetAccountAliasCommand).de(de_GetAccountAliasCommand).build() {
|
|
1037
|
+
};
|
|
1038
|
+
__name(_GetAccountAliasCommand, "GetAccountAliasCommand");
|
|
1039
|
+
var GetAccountAliasCommand = _GetAccountAliasCommand;
|
|
1040
|
+
|
|
1041
|
+
// src/commands/ListSlackChannelConfigurationsCommand.ts
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
var _ListSlackChannelConfigurationsCommand = class _ListSlackChannelConfigurationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1047
|
+
...commonParams
|
|
1048
|
+
}).m(function(Command, cs, config, o) {
|
|
1049
|
+
return [
|
|
1050
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1051
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1052
|
+
];
|
|
1053
|
+
}).s("SupportApp", "ListSlackChannelConfigurations", {}).n("SupportAppClient", "ListSlackChannelConfigurationsCommand").f(void 0, void 0).ser(se_ListSlackChannelConfigurationsCommand).de(de_ListSlackChannelConfigurationsCommand).build() {
|
|
1054
|
+
};
|
|
1055
|
+
__name(_ListSlackChannelConfigurationsCommand, "ListSlackChannelConfigurationsCommand");
|
|
1056
|
+
var ListSlackChannelConfigurationsCommand = _ListSlackChannelConfigurationsCommand;
|
|
1057
|
+
|
|
1058
|
+
// src/commands/ListSlackWorkspaceConfigurationsCommand.ts
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
var _ListSlackWorkspaceConfigurationsCommand = class _ListSlackWorkspaceConfigurationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1064
|
+
...commonParams
|
|
1065
|
+
}).m(function(Command, cs, config, o) {
|
|
1066
|
+
return [
|
|
1067
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1068
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1069
|
+
];
|
|
1070
|
+
}).s("SupportApp", "ListSlackWorkspaceConfigurations", {}).n("SupportAppClient", "ListSlackWorkspaceConfigurationsCommand").f(void 0, void 0).ser(se_ListSlackWorkspaceConfigurationsCommand).de(de_ListSlackWorkspaceConfigurationsCommand).build() {
|
|
1071
|
+
};
|
|
1072
|
+
__name(_ListSlackWorkspaceConfigurationsCommand, "ListSlackWorkspaceConfigurationsCommand");
|
|
1073
|
+
var ListSlackWorkspaceConfigurationsCommand = _ListSlackWorkspaceConfigurationsCommand;
|
|
1074
|
+
|
|
1075
|
+
// src/commands/PutAccountAliasCommand.ts
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
var _PutAccountAliasCommand = class _PutAccountAliasCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1081
|
+
...commonParams
|
|
1082
|
+
}).m(function(Command, cs, config, o) {
|
|
1083
|
+
return [
|
|
1084
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1085
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1086
|
+
];
|
|
1087
|
+
}).s("SupportApp", "PutAccountAlias", {}).n("SupportAppClient", "PutAccountAliasCommand").f(void 0, void 0).ser(se_PutAccountAliasCommand).de(de_PutAccountAliasCommand).build() {
|
|
1088
|
+
};
|
|
1089
|
+
__name(_PutAccountAliasCommand, "PutAccountAliasCommand");
|
|
1090
|
+
var PutAccountAliasCommand = _PutAccountAliasCommand;
|
|
1091
|
+
|
|
1092
|
+
// src/commands/RegisterSlackWorkspaceForOrganizationCommand.ts
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
var _RegisterSlackWorkspaceForOrganizationCommand = class _RegisterSlackWorkspaceForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1098
|
+
...commonParams
|
|
1099
|
+
}).m(function(Command, cs, config, o) {
|
|
1100
|
+
return [
|
|
1101
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1102
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1103
|
+
];
|
|
1104
|
+
}).s("SupportApp", "RegisterSlackWorkspaceForOrganization", {}).n("SupportAppClient", "RegisterSlackWorkspaceForOrganizationCommand").f(void 0, void 0).ser(se_RegisterSlackWorkspaceForOrganizationCommand).de(de_RegisterSlackWorkspaceForOrganizationCommand).build() {
|
|
1105
|
+
};
|
|
1106
|
+
__name(_RegisterSlackWorkspaceForOrganizationCommand, "RegisterSlackWorkspaceForOrganizationCommand");
|
|
1107
|
+
var RegisterSlackWorkspaceForOrganizationCommand = _RegisterSlackWorkspaceForOrganizationCommand;
|
|
1108
|
+
|
|
1109
|
+
// src/commands/UpdateSlackChannelConfigurationCommand.ts
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
var _UpdateSlackChannelConfigurationCommand = class _UpdateSlackChannelConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1115
|
+
...commonParams
|
|
1116
|
+
}).m(function(Command, cs, config, o) {
|
|
1117
|
+
return [
|
|
1118
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1119
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1120
|
+
];
|
|
1121
|
+
}).s("SupportApp", "UpdateSlackChannelConfiguration", {}).n("SupportAppClient", "UpdateSlackChannelConfigurationCommand").f(void 0, void 0).ser(se_UpdateSlackChannelConfigurationCommand).de(de_UpdateSlackChannelConfigurationCommand).build() {
|
|
1122
|
+
};
|
|
1123
|
+
__name(_UpdateSlackChannelConfigurationCommand, "UpdateSlackChannelConfigurationCommand");
|
|
1124
|
+
var UpdateSlackChannelConfigurationCommand = _UpdateSlackChannelConfigurationCommand;
|
|
1125
|
+
|
|
1126
|
+
// src/SupportApp.ts
|
|
1127
|
+
var commands = {
|
|
1128
|
+
CreateSlackChannelConfigurationCommand,
|
|
1129
|
+
DeleteAccountAliasCommand,
|
|
1130
|
+
DeleteSlackChannelConfigurationCommand,
|
|
1131
|
+
DeleteSlackWorkspaceConfigurationCommand,
|
|
1132
|
+
GetAccountAliasCommand,
|
|
1133
|
+
ListSlackChannelConfigurationsCommand,
|
|
1134
|
+
ListSlackWorkspaceConfigurationsCommand,
|
|
1135
|
+
PutAccountAliasCommand,
|
|
1136
|
+
RegisterSlackWorkspaceForOrganizationCommand,
|
|
1137
|
+
UpdateSlackChannelConfigurationCommand
|
|
1138
|
+
};
|
|
1139
|
+
var _SupportApp = class _SupportApp extends SupportAppClient {
|
|
1140
|
+
};
|
|
1141
|
+
__name(_SupportApp, "SupportApp");
|
|
1142
|
+
var SupportApp = _SupportApp;
|
|
1143
|
+
(0, import_smithy_client.createAggregatedClient)(commands, SupportApp);
|
|
1144
|
+
|
|
1145
|
+
// src/pagination/ListSlackChannelConfigurationsPaginator.ts
|
|
1146
|
+
|
|
1147
|
+
var paginateListSlackChannelConfigurations = (0, import_core.createPaginator)(SupportAppClient, ListSlackChannelConfigurationsCommand, "nextToken", "nextToken", "");
|
|
1148
|
+
|
|
1149
|
+
// src/pagination/ListSlackWorkspaceConfigurationsPaginator.ts
|
|
1150
|
+
|
|
1151
|
+
var paginateListSlackWorkspaceConfigurations = (0, import_core.createPaginator)(SupportAppClient, ListSlackWorkspaceConfigurationsCommand, "nextToken", "nextToken", "");
|
|
1152
|
+
|
|
1153
|
+
// src/index.ts
|
|
1154
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1155
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1156
|
+
0 && (module.exports = {
|
|
1157
|
+
AccessDeniedException,
|
|
1158
|
+
AccountType,
|
|
1159
|
+
ConflictException,
|
|
1160
|
+
CreateSlackChannelConfigurationCommand,
|
|
1161
|
+
DeleteAccountAliasCommand,
|
|
1162
|
+
DeleteSlackChannelConfigurationCommand,
|
|
1163
|
+
DeleteSlackWorkspaceConfigurationCommand,
|
|
1164
|
+
GetAccountAliasCommand,
|
|
1165
|
+
InternalServerException,
|
|
1166
|
+
ListSlackChannelConfigurationsCommand,
|
|
1167
|
+
ListSlackWorkspaceConfigurationsCommand,
|
|
1168
|
+
NotificationSeverityLevel,
|
|
1169
|
+
PutAccountAliasCommand,
|
|
1170
|
+
RegisterSlackWorkspaceForOrganizationCommand,
|
|
1171
|
+
ResourceNotFoundException,
|
|
1172
|
+
ServiceQuotaExceededException,
|
|
1173
|
+
SupportApp,
|
|
1174
|
+
SupportAppClient,
|
|
1175
|
+
SupportAppServiceException,
|
|
1176
|
+
UpdateSlackChannelConfigurationCommand,
|
|
1177
|
+
ValidationException,
|
|
1178
|
+
__Client,
|
|
1179
|
+
paginateListSlackChannelConfigurations,
|
|
1180
|
+
paginateListSlackWorkspaceConfigurations
|
|
1181
|
+
});
|