@aws-sdk/client-support-app 3.1067.0 → 3.1069.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/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +72 -92
- package/dist-cjs/models/SupportAppServiceException.js +4 -8
- package/dist-cjs/models/errors.js +13 -22
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +82 -56
- package/package.json +8 -8
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const client_1 = require("@smithy/core/client");
|
|
6
|
-
const defaultSupportAppHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
1
|
+
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
+
exports.defaultSupportAppHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
4
|
return {
|
|
8
|
-
operation:
|
|
9
|
-
region: await
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
10
7
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
8
|
})(),
|
|
12
9
|
};
|
|
13
10
|
};
|
|
14
|
-
exports.defaultSupportAppHttpAuthSchemeParametersProvider = defaultSupportAppHttpAuthSchemeParametersProvider;
|
|
15
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
16
12
|
return {
|
|
17
13
|
schemeId: "aws.auth#sigv4",
|
|
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
27
23
|
}),
|
|
28
24
|
};
|
|
29
25
|
}
|
|
30
|
-
|
|
26
|
+
exports.defaultSupportAppHttpAuthSchemeProvider = (authParameters) => {
|
|
31
27
|
const options = [];
|
|
32
28
|
switch (authParameters.operation) {
|
|
33
29
|
default: {
|
|
@@ -36,11 +32,9 @@ const defaultSupportAppHttpAuthSchemeProvider = (authParameters) => {
|
|
|
36
32
|
}
|
|
37
33
|
return options;
|
|
38
34
|
};
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
35
|
+
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
42
37
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference:
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
44
39
|
});
|
|
45
40
|
};
|
|
46
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
1
|
+
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
5
2
|
const k = "ref";
|
|
6
3
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
4
|
const _data = {
|
|
@@ -46,4 +43,4 @@ const nodes = new Int32Array([
|
|
|
46
43
|
3, r + 1, 13,
|
|
47
44
|
4, r + 2, r + 3,
|
|
48
45
|
]);
|
|
49
|
-
exports.bdd =
|
|
46
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new endpoints_1.EndpointCache({
|
|
1
|
+
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
+
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
+
const { bdd } = require("./bdd");
|
|
4
|
+
const cache = new EndpointCache({
|
|
8
5
|
size: 50,
|
|
9
6
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
8
|
+
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
13
10
|
endpointParams: endpointParams,
|
|
14
11
|
logger: context.logger,
|
|
15
12
|
}));
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = Command;
|
|
6
|
+
exports.__Client = Client;
|
|
7
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
+
const { resolveHttpAuthSchemeConfig, defaultSupportAppHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
13
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
14
|
+
const { CreateSlackChannelConfiguration$, DeleteAccountAlias$, DeleteSlackChannelConfiguration$, DeleteSlackWorkspaceConfiguration$, GetAccountAlias$, ListSlackChannelConfigurations$, ListSlackWorkspaceConfigurations$, PutAccountAlias$, RegisterSlackWorkspaceForOrganization$, UpdateSlackChannelConfiguration$ } = require("./schemas/schemas_0");
|
|
15
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
16
|
+
__exportStar(require("./models/errors"), exports);
|
|
17
|
+
const { SupportAppServiceException } = require("./models/SupportAppServiceException");
|
|
18
|
+
exports.SupportAppServiceException = SupportAppServiceException;
|
|
16
19
|
|
|
17
20
|
const resolveClientEndpointParameters = (options) => {
|
|
18
21
|
return Object.assign(options, {
|
|
@@ -68,169 +71,169 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
68
71
|
};
|
|
69
72
|
|
|
70
73
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
71
|
-
const extensionConfiguration = Object.assign(
|
|
74
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
72
75
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
73
|
-
return Object.assign(runtimeConfig,
|
|
76
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
74
77
|
};
|
|
75
78
|
|
|
76
|
-
class SupportAppClient extends
|
|
79
|
+
class SupportAppClient extends Client {
|
|
77
80
|
config;
|
|
78
81
|
constructor(...[configuration]) {
|
|
79
|
-
const _config_0 =
|
|
82
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
80
83
|
super(_config_0);
|
|
81
84
|
this.initConfig = _config_0;
|
|
82
85
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
83
|
-
const _config_2 =
|
|
84
|
-
const _config_3 =
|
|
85
|
-
const _config_4 =
|
|
86
|
-
const _config_5 =
|
|
87
|
-
const _config_6 =
|
|
88
|
-
const _config_7 =
|
|
86
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
89
92
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
90
93
|
this.config = _config_8;
|
|
91
|
-
this.middlewareStack.use(
|
|
92
|
-
this.middlewareStack.use(
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
httpAuthSchemeParametersProvider:
|
|
100
|
-
identityProviderConfigProvider: async (config) => new
|
|
94
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: defaultSupportAppHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
101
104
|
"aws.auth#sigv4": config.credentials,
|
|
102
105
|
}),
|
|
103
106
|
}));
|
|
104
|
-
this.middlewareStack.use(
|
|
107
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
105
108
|
}
|
|
106
109
|
destroy() {
|
|
107
110
|
super.destroy();
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
class CreateSlackChannelConfigurationCommand extends
|
|
114
|
+
class CreateSlackChannelConfigurationCommand extends Command
|
|
112
115
|
.classBuilder()
|
|
113
116
|
.ep(commonParams)
|
|
114
117
|
.m(function (Command, cs, config, o) {
|
|
115
|
-
return [
|
|
118
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
116
119
|
})
|
|
117
120
|
.s("SupportApp", "CreateSlackChannelConfiguration", {})
|
|
118
121
|
.n("SupportAppClient", "CreateSlackChannelConfigurationCommand")
|
|
119
|
-
.sc(
|
|
122
|
+
.sc(CreateSlackChannelConfiguration$)
|
|
120
123
|
.build() {
|
|
121
124
|
}
|
|
122
125
|
|
|
123
|
-
class DeleteAccountAliasCommand extends
|
|
126
|
+
class DeleteAccountAliasCommand extends Command
|
|
124
127
|
.classBuilder()
|
|
125
128
|
.ep(commonParams)
|
|
126
129
|
.m(function (Command, cs, config, o) {
|
|
127
|
-
return [
|
|
130
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
128
131
|
})
|
|
129
132
|
.s("SupportApp", "DeleteAccountAlias", {})
|
|
130
133
|
.n("SupportAppClient", "DeleteAccountAliasCommand")
|
|
131
|
-
.sc(
|
|
134
|
+
.sc(DeleteAccountAlias$)
|
|
132
135
|
.build() {
|
|
133
136
|
}
|
|
134
137
|
|
|
135
|
-
class DeleteSlackChannelConfigurationCommand extends
|
|
138
|
+
class DeleteSlackChannelConfigurationCommand extends Command
|
|
136
139
|
.classBuilder()
|
|
137
140
|
.ep(commonParams)
|
|
138
141
|
.m(function (Command, cs, config, o) {
|
|
139
|
-
return [
|
|
142
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
140
143
|
})
|
|
141
144
|
.s("SupportApp", "DeleteSlackChannelConfiguration", {})
|
|
142
145
|
.n("SupportAppClient", "DeleteSlackChannelConfigurationCommand")
|
|
143
|
-
.sc(
|
|
146
|
+
.sc(DeleteSlackChannelConfiguration$)
|
|
144
147
|
.build() {
|
|
145
148
|
}
|
|
146
149
|
|
|
147
|
-
class DeleteSlackWorkspaceConfigurationCommand extends
|
|
150
|
+
class DeleteSlackWorkspaceConfigurationCommand extends Command
|
|
148
151
|
.classBuilder()
|
|
149
152
|
.ep(commonParams)
|
|
150
153
|
.m(function (Command, cs, config, o) {
|
|
151
|
-
return [
|
|
154
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
152
155
|
})
|
|
153
156
|
.s("SupportApp", "DeleteSlackWorkspaceConfiguration", {})
|
|
154
157
|
.n("SupportAppClient", "DeleteSlackWorkspaceConfigurationCommand")
|
|
155
|
-
.sc(
|
|
158
|
+
.sc(DeleteSlackWorkspaceConfiguration$)
|
|
156
159
|
.build() {
|
|
157
160
|
}
|
|
158
161
|
|
|
159
|
-
class GetAccountAliasCommand extends
|
|
162
|
+
class GetAccountAliasCommand extends Command
|
|
160
163
|
.classBuilder()
|
|
161
164
|
.ep(commonParams)
|
|
162
165
|
.m(function (Command, cs, config, o) {
|
|
163
|
-
return [
|
|
166
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
164
167
|
})
|
|
165
168
|
.s("SupportApp", "GetAccountAlias", {})
|
|
166
169
|
.n("SupportAppClient", "GetAccountAliasCommand")
|
|
167
|
-
.sc(
|
|
170
|
+
.sc(GetAccountAlias$)
|
|
168
171
|
.build() {
|
|
169
172
|
}
|
|
170
173
|
|
|
171
|
-
class ListSlackChannelConfigurationsCommand extends
|
|
174
|
+
class ListSlackChannelConfigurationsCommand extends Command
|
|
172
175
|
.classBuilder()
|
|
173
176
|
.ep(commonParams)
|
|
174
177
|
.m(function (Command, cs, config, o) {
|
|
175
|
-
return [
|
|
178
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
176
179
|
})
|
|
177
180
|
.s("SupportApp", "ListSlackChannelConfigurations", {})
|
|
178
181
|
.n("SupportAppClient", "ListSlackChannelConfigurationsCommand")
|
|
179
|
-
.sc(
|
|
182
|
+
.sc(ListSlackChannelConfigurations$)
|
|
180
183
|
.build() {
|
|
181
184
|
}
|
|
182
185
|
|
|
183
|
-
class ListSlackWorkspaceConfigurationsCommand extends
|
|
186
|
+
class ListSlackWorkspaceConfigurationsCommand extends Command
|
|
184
187
|
.classBuilder()
|
|
185
188
|
.ep(commonParams)
|
|
186
189
|
.m(function (Command, cs, config, o) {
|
|
187
|
-
return [
|
|
190
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
188
191
|
})
|
|
189
192
|
.s("SupportApp", "ListSlackWorkspaceConfigurations", {})
|
|
190
193
|
.n("SupportAppClient", "ListSlackWorkspaceConfigurationsCommand")
|
|
191
|
-
.sc(
|
|
194
|
+
.sc(ListSlackWorkspaceConfigurations$)
|
|
192
195
|
.build() {
|
|
193
196
|
}
|
|
194
197
|
|
|
195
|
-
class PutAccountAliasCommand extends
|
|
198
|
+
class PutAccountAliasCommand extends Command
|
|
196
199
|
.classBuilder()
|
|
197
200
|
.ep(commonParams)
|
|
198
201
|
.m(function (Command, cs, config, o) {
|
|
199
|
-
return [
|
|
202
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
200
203
|
})
|
|
201
204
|
.s("SupportApp", "PutAccountAlias", {})
|
|
202
205
|
.n("SupportAppClient", "PutAccountAliasCommand")
|
|
203
|
-
.sc(
|
|
206
|
+
.sc(PutAccountAlias$)
|
|
204
207
|
.build() {
|
|
205
208
|
}
|
|
206
209
|
|
|
207
|
-
class RegisterSlackWorkspaceForOrganizationCommand extends
|
|
210
|
+
class RegisterSlackWorkspaceForOrganizationCommand extends Command
|
|
208
211
|
.classBuilder()
|
|
209
212
|
.ep(commonParams)
|
|
210
213
|
.m(function (Command, cs, config, o) {
|
|
211
|
-
return [
|
|
214
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
212
215
|
})
|
|
213
216
|
.s("SupportApp", "RegisterSlackWorkspaceForOrganization", {})
|
|
214
217
|
.n("SupportAppClient", "RegisterSlackWorkspaceForOrganizationCommand")
|
|
215
|
-
.sc(
|
|
218
|
+
.sc(RegisterSlackWorkspaceForOrganization$)
|
|
216
219
|
.build() {
|
|
217
220
|
}
|
|
218
221
|
|
|
219
|
-
class UpdateSlackChannelConfigurationCommand extends
|
|
222
|
+
class UpdateSlackChannelConfigurationCommand extends Command
|
|
220
223
|
.classBuilder()
|
|
221
224
|
.ep(commonParams)
|
|
222
225
|
.m(function (Command, cs, config, o) {
|
|
223
|
-
return [
|
|
226
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
224
227
|
})
|
|
225
228
|
.s("SupportApp", "UpdateSlackChannelConfiguration", {})
|
|
226
229
|
.n("SupportAppClient", "UpdateSlackChannelConfigurationCommand")
|
|
227
|
-
.sc(
|
|
230
|
+
.sc(UpdateSlackChannelConfiguration$)
|
|
228
231
|
.build() {
|
|
229
232
|
}
|
|
230
233
|
|
|
231
|
-
const paginateListSlackChannelConfigurations =
|
|
234
|
+
const paginateListSlackChannelConfigurations = createPaginator(SupportAppClient, ListSlackChannelConfigurationsCommand, "nextToken", "nextToken", "");
|
|
232
235
|
|
|
233
|
-
const paginateListSlackWorkspaceConfigurations =
|
|
236
|
+
const paginateListSlackWorkspaceConfigurations = createPaginator(SupportAppClient, ListSlackWorkspaceConfigurationsCommand, "nextToken", "nextToken", "");
|
|
234
237
|
|
|
235
238
|
const commands = {
|
|
236
239
|
CreateSlackChannelConfigurationCommand,
|
|
@@ -250,7 +253,7 @@ const paginators = {
|
|
|
250
253
|
};
|
|
251
254
|
class SupportApp extends SupportAppClient {
|
|
252
255
|
}
|
|
253
|
-
|
|
256
|
+
createAggregatedClient(commands, SupportApp, { paginators });
|
|
254
257
|
|
|
255
258
|
const AccountType = {
|
|
256
259
|
MANAGEMENT: "management",
|
|
@@ -262,9 +265,6 @@ const NotificationSeverityLevel = {
|
|
|
262
265
|
NONE: "none",
|
|
263
266
|
};
|
|
264
267
|
|
|
265
|
-
exports.$Command = client.Command;
|
|
266
|
-
exports.__Client = client.Client;
|
|
267
|
-
exports.SupportAppServiceException = SupportAppServiceException.SupportAppServiceException;
|
|
268
268
|
exports.AccountType = AccountType;
|
|
269
269
|
exports.CreateSlackChannelConfigurationCommand = CreateSlackChannelConfigurationCommand;
|
|
270
270
|
exports.DeleteAccountAliasCommand = DeleteAccountAliasCommand;
|
|
@@ -281,23 +281,3 @@ exports.SupportAppClient = SupportAppClient;
|
|
|
281
281
|
exports.UpdateSlackChannelConfigurationCommand = UpdateSlackChannelConfigurationCommand;
|
|
282
282
|
exports.paginateListSlackChannelConfigurations = paginateListSlackChannelConfigurations;
|
|
283
283
|
exports.paginateListSlackWorkspaceConfigurations = paginateListSlackWorkspaceConfigurations;
|
|
284
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
285
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
286
|
-
Object.defineProperty(exports, '__proto__', {
|
|
287
|
-
enumerable: true,
|
|
288
|
-
value: schemas_0['__proto__']
|
|
289
|
-
});
|
|
290
|
-
|
|
291
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
292
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
293
|
-
});
|
|
294
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
295
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
296
|
-
Object.defineProperty(exports, '__proto__', {
|
|
297
|
-
enumerable: true,
|
|
298
|
-
value: errors['__proto__']
|
|
299
|
-
});
|
|
300
|
-
|
|
301
|
-
Object.keys(errors).forEach(function (k) {
|
|
302
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
303
|
-
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.SupportAppServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class SupportAppServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.SupportAppServiceException = class SupportAppServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, SupportAppServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.SupportAppServiceException = SupportAppServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ResourceNotFoundException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const SupportAppServiceException_1 = require("./SupportAppServiceException");
|
|
5
|
-
class AccessDeniedException extends SupportAppServiceException_1.SupportAppServiceException {
|
|
1
|
+
const { SupportAppServiceException: __BaseException } = require("./SupportAppServiceException");
|
|
2
|
+
exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
|
|
6
3
|
name = "AccessDeniedException";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
constructor(opts) {
|
|
@@ -13,9 +10,8 @@ class AccessDeniedException extends SupportAppServiceException_1.SupportAppServi
|
|
|
13
10
|
});
|
|
14
11
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
12
|
}
|
|
16
|
-
}
|
|
17
|
-
exports.
|
|
18
|
-
class ConflictException extends SupportAppServiceException_1.SupportAppServiceException {
|
|
13
|
+
};
|
|
14
|
+
exports.ConflictException = class ConflictException extends __BaseException {
|
|
19
15
|
name = "ConflictException";
|
|
20
16
|
$fault = "client";
|
|
21
17
|
constructor(opts) {
|
|
@@ -26,9 +22,8 @@ class ConflictException extends SupportAppServiceException_1.SupportAppServiceEx
|
|
|
26
22
|
});
|
|
27
23
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
28
24
|
}
|
|
29
|
-
}
|
|
30
|
-
exports.
|
|
31
|
-
class InternalServerException extends SupportAppServiceException_1.SupportAppServiceException {
|
|
25
|
+
};
|
|
26
|
+
exports.InternalServerException = class InternalServerException extends __BaseException {
|
|
32
27
|
name = "InternalServerException";
|
|
33
28
|
$fault = "server";
|
|
34
29
|
constructor(opts) {
|
|
@@ -39,9 +34,8 @@ class InternalServerException extends SupportAppServiceException_1.SupportAppSer
|
|
|
39
34
|
});
|
|
40
35
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
41
36
|
}
|
|
42
|
-
}
|
|
43
|
-
exports.
|
|
44
|
-
class ServiceQuotaExceededException extends SupportAppServiceException_1.SupportAppServiceException {
|
|
37
|
+
};
|
|
38
|
+
exports.ServiceQuotaExceededException = class ServiceQuotaExceededException extends __BaseException {
|
|
45
39
|
name = "ServiceQuotaExceededException";
|
|
46
40
|
$fault = "client";
|
|
47
41
|
constructor(opts) {
|
|
@@ -52,9 +46,8 @@ class ServiceQuotaExceededException extends SupportAppServiceException_1.Support
|
|
|
52
46
|
});
|
|
53
47
|
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
54
48
|
}
|
|
55
|
-
}
|
|
56
|
-
exports.
|
|
57
|
-
class ValidationException extends SupportAppServiceException_1.SupportAppServiceException {
|
|
49
|
+
};
|
|
50
|
+
exports.ValidationException = class ValidationException extends __BaseException {
|
|
58
51
|
name = "ValidationException";
|
|
59
52
|
$fault = "client";
|
|
60
53
|
constructor(opts) {
|
|
@@ -65,9 +58,8 @@ class ValidationException extends SupportAppServiceException_1.SupportAppService
|
|
|
65
58
|
});
|
|
66
59
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
67
60
|
}
|
|
68
|
-
}
|
|
69
|
-
exports.
|
|
70
|
-
class ResourceNotFoundException extends SupportAppServiceException_1.SupportAppServiceException {
|
|
61
|
+
};
|
|
62
|
+
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
71
63
|
name = "ResourceNotFoundException";
|
|
72
64
|
$fault = "client";
|
|
73
65
|
constructor(opts) {
|
|
@@ -78,5 +70,4 @@ class ResourceNotFoundException extends SupportAppServiceException_1.SupportAppS
|
|
|
78
70
|
});
|
|
79
71
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
80
72
|
}
|
|
81
|
-
}
|
|
82
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
73
|
+
};
|
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const retry_1 = require("@smithy/core/retry");
|
|
11
|
-
const serde_1 = require("@smithy/core/serde");
|
|
12
|
-
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
13
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
+
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
+
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
+
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
+
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
+
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
+
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
14
10
|
const getRuntimeConfig = (config) => {
|
|
15
|
-
const defaultsMode =
|
|
16
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
17
|
-
const clientSharedValues = (
|
|
11
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
14
|
return {
|
|
19
15
|
...clientSharedValues,
|
|
20
16
|
...config,
|
|
21
17
|
runtime: "browser",
|
|
22
18
|
defaultsMode,
|
|
23
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
19
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
24
20
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
25
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
26
|
-
maxAttempts: config?.maxAttempts ??
|
|
27
|
-
region: config?.region ??
|
|
28
|
-
requestHandler:
|
|
29
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
30
|
-
sha256: config?.sha256 ??
|
|
31
|
-
streamCollector: config?.streamCollector ??
|
|
32
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
33
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
21
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
+
sha256: config?.sha256 ?? Sha256,
|
|
27
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
34
30
|
};
|
|
35
31
|
};
|
|
36
32
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const retry_1 = require("@smithy/core/retry");
|
|
12
|
-
const serde_1 = require("@smithy/core/serde");
|
|
13
|
-
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
14
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
+
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
+
const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
5
|
+
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
6
|
+
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
7
|
+
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
8
|
+
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
9
|
+
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
10
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
15
11
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
|
|
17
|
-
const defaultsMode =
|
|
18
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
19
|
-
const clientSharedValues = (
|
|
20
|
-
(
|
|
12
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
awsCheckVersion(process.version);
|
|
21
17
|
const loaderConfig = {
|
|
22
18
|
profile: config?.profile,
|
|
23
19
|
logger: clientSharedValues.logger,
|
|
@@ -27,23 +23,23 @@ const getRuntimeConfig = (config) => {
|
|
|
27
23
|
...config,
|
|
28
24
|
runtime: "node",
|
|
29
25
|
defaultsMode,
|
|
30
|
-
authSchemePreference: config?.authSchemePreference ?? (
|
|
31
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
32
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ??
|
|
33
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
-
maxAttempts: config?.maxAttempts ?? (
|
|
35
|
-
region: config?.region ?? (
|
|
36
|
-
requestHandler:
|
|
26
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
32
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
37
33
|
retryMode: config?.retryMode ??
|
|
38
|
-
(
|
|
39
|
-
...
|
|
40
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
34
|
+
loadNodeConfig({
|
|
35
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
41
37
|
}, config),
|
|
42
|
-
sha256: config?.sha256 ??
|
|
43
|
-
streamCollector: config?.streamCollector ??
|
|
44
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (
|
|
45
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (
|
|
46
|
-
userAgentAppId: config?.userAgentAppId ?? (
|
|
38
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
42
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
47
43
|
};
|
|
48
44
|
};
|
|
49
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
-
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
1
|
+
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
+
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
6
3
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
const browserDefaults = (
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
8
5
|
return {
|
|
9
6
|
...browserDefaults,
|
|
10
7
|
...config,
|
|
11
8
|
runtime: "react-native",
|
|
12
|
-
sha256: config?.sha256 ??
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
13
10
|
};
|
|
14
11
|
};
|
|
15
12
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,42 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
11
|
-
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
|
-
const getRuntimeConfig = (config) => {
|
|
1
|
+
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
3
|
+
const { NoOpLogger } = require("@smithy/core/client");
|
|
4
|
+
const { parseUrl } = require("@smithy/core/protocols");
|
|
5
|
+
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
6
|
+
const { defaultSupportAppHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
+
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
+
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
+
exports.getRuntimeConfig = (config) => {
|
|
13
10
|
return {
|
|
14
11
|
apiVersion: "2021-08-20",
|
|
15
|
-
base64Decoder: config?.base64Decoder ??
|
|
16
|
-
base64Encoder: config?.base64Encoder ??
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
17
14
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
18
|
-
endpointProvider: config?.endpointProvider ??
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
19
16
|
extensions: config?.extensions ?? [],
|
|
20
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ??
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSupportAppHttpAuthSchemeProvider,
|
|
21
18
|
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
22
19
|
{
|
|
23
20
|
schemeId: "aws.auth#sigv4",
|
|
24
21
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
25
|
-
signer: new
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
26
23
|
},
|
|
27
24
|
],
|
|
28
|
-
logger: config?.logger ?? new
|
|
29
|
-
protocol: config?.protocol ??
|
|
25
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
30
27
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
28
|
defaultNamespace: "com.amazonaws.supportapp",
|
|
32
|
-
errorTypeRegistries
|
|
29
|
+
errorTypeRegistries,
|
|
33
30
|
version: "2021-08-20",
|
|
34
31
|
serviceTarget: "SupportApp",
|
|
35
32
|
},
|
|
36
33
|
serviceId: config?.serviceId ?? "Support App",
|
|
37
|
-
urlParser: config?.urlParser ??
|
|
38
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
39
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
34
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
35
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
40
37
|
};
|
|
41
38
|
};
|
|
42
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateSlackChannelConfiguration$ = exports.RegisterSlackWorkspaceForOrganization$ = exports.PutAccountAlias$ = exports.ListSlackWorkspaceConfigurations$ = exports.ListSlackChannelConfigurations$ = exports.GetAccountAlias$ = exports.DeleteSlackWorkspaceConfiguration$ = exports.DeleteSlackChannelConfiguration$ = exports.DeleteAccountAlias$ = exports.CreateSlackChannelConfiguration$ = exports.UpdateSlackChannelConfigurationResult$ = exports.UpdateSlackChannelConfigurationRequest$ = exports.SlackWorkspaceConfiguration$ = exports.SlackChannelConfiguration$ = exports.RegisterSlackWorkspaceForOrganizationResult$ = exports.RegisterSlackWorkspaceForOrganizationRequest$ = exports.PutAccountAliasResult$ = exports.PutAccountAliasRequest$ = exports.ListSlackWorkspaceConfigurationsResult$ = exports.ListSlackWorkspaceConfigurationsRequest$ = exports.ListSlackChannelConfigurationsResult$ = exports.ListSlackChannelConfigurationsRequest$ = exports.GetAccountAliasResult$ = exports.GetAccountAliasRequest$ = exports.DeleteSlackWorkspaceConfigurationResult$ = exports.DeleteSlackWorkspaceConfigurationRequest$ = exports.DeleteSlackChannelConfigurationResult$ = exports.DeleteSlackChannelConfigurationRequest$ = exports.DeleteAccountAliasResult$ = exports.DeleteAccountAliasRequest$ = exports.CreateSlackChannelConfigurationResult$ = exports.CreateSlackChannelConfigurationRequest$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ServiceQuotaExceededException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.SupportAppServiceException$ = void 0;
|
|
4
1
|
const _ADE = "AccessDeniedException";
|
|
5
2
|
const _CE = "ConflictException";
|
|
6
3
|
const _CSCC = "CreateSlackChannelConfiguration";
|
|
@@ -64,196 +61,225 @@ const _se = "server";
|
|
|
64
61
|
const _tI = "teamId";
|
|
65
62
|
const _tN = "teamName";
|
|
66
63
|
const n0 = "com.amazonaws.supportapp";
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
const _s_registry =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
64
|
+
const { TypeRegistry } = require("@smithy/core/schema");
|
|
65
|
+
const { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException } = require("../models/errors");
|
|
66
|
+
const { SupportAppServiceException } = require("../models/SupportAppServiceException");
|
|
67
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
68
|
+
const SupportAppServiceException$ = [-3, _s, "SupportAppServiceException", 0, [], []];
|
|
69
|
+
exports.SupportAppServiceException$ = SupportAppServiceException$;
|
|
70
|
+
_s_registry.registerError(SupportAppServiceException$, SupportAppServiceException);
|
|
71
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
72
|
+
const AccessDeniedException$ = [-3, n0, _ADE,
|
|
75
73
|
{ [_e]: _c, [_hE]: 403 },
|
|
76
74
|
[_m],
|
|
77
75
|
[0]
|
|
78
76
|
];
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
78
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
79
|
+
const ConflictException$ = [-3, n0, _CE,
|
|
81
80
|
{ [_e]: _c, [_hE]: 409 },
|
|
82
81
|
[_m],
|
|
83
82
|
[0]
|
|
84
83
|
];
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
exports.ConflictException$ = ConflictException$;
|
|
85
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
86
|
+
const InternalServerException$ = [-3, n0, _ISE,
|
|
87
87
|
{ [_e]: _se, [_hE]: 500 },
|
|
88
88
|
[_m],
|
|
89
89
|
[0]
|
|
90
90
|
];
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
92
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
93
|
+
const ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
93
94
|
{ [_e]: _c, [_hE]: 404 },
|
|
94
95
|
[_m],
|
|
95
96
|
[0]
|
|
96
97
|
];
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
99
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
100
|
+
const ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
99
101
|
{ [_e]: _c, [_hE]: 402 },
|
|
100
102
|
[_m],
|
|
101
103
|
[0]
|
|
102
104
|
];
|
|
103
|
-
|
|
104
|
-
|
|
105
|
+
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
106
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
107
|
+
const ValidationException$ = [-3, n0, _VE,
|
|
105
108
|
{ [_e]: _c, [_hE]: 400 },
|
|
106
109
|
[_m],
|
|
107
110
|
[0]
|
|
108
111
|
];
|
|
109
|
-
|
|
112
|
+
exports.ValidationException$ = ValidationException$;
|
|
113
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
110
114
|
exports.errorTypeRegistries = [
|
|
111
115
|
_s_registry,
|
|
112
116
|
n0_registry,
|
|
113
117
|
];
|
|
114
|
-
|
|
118
|
+
const CreateSlackChannelConfigurationRequest$ = [3, n0, _CSCCR,
|
|
115
119
|
0,
|
|
116
120
|
[_tI, _cI, _nOCS, _cRA, _cN, _nOCORC, _nOACTC, _nORC],
|
|
117
121
|
[0, 0, 0, 0, 0, 2, 2, 2], 4
|
|
118
122
|
];
|
|
119
|
-
exports.
|
|
123
|
+
exports.CreateSlackChannelConfigurationRequest$ = CreateSlackChannelConfigurationRequest$;
|
|
124
|
+
const CreateSlackChannelConfigurationResult$ = [3, n0, _CSCCRr,
|
|
120
125
|
0,
|
|
121
126
|
[],
|
|
122
127
|
[]
|
|
123
128
|
];
|
|
124
|
-
exports.
|
|
129
|
+
exports.CreateSlackChannelConfigurationResult$ = CreateSlackChannelConfigurationResult$;
|
|
130
|
+
const DeleteAccountAliasRequest$ = [3, n0, _DAAR,
|
|
125
131
|
0,
|
|
126
132
|
[],
|
|
127
133
|
[]
|
|
128
134
|
];
|
|
129
|
-
exports.
|
|
135
|
+
exports.DeleteAccountAliasRequest$ = DeleteAccountAliasRequest$;
|
|
136
|
+
const DeleteAccountAliasResult$ = [3, n0, _DAARe,
|
|
130
137
|
0,
|
|
131
138
|
[],
|
|
132
139
|
[]
|
|
133
140
|
];
|
|
134
|
-
exports.
|
|
141
|
+
exports.DeleteAccountAliasResult$ = DeleteAccountAliasResult$;
|
|
142
|
+
const DeleteSlackChannelConfigurationRequest$ = [3, n0, _DSCCR,
|
|
135
143
|
0,
|
|
136
144
|
[_tI, _cI],
|
|
137
145
|
[0, 0], 2
|
|
138
146
|
];
|
|
139
|
-
exports.
|
|
147
|
+
exports.DeleteSlackChannelConfigurationRequest$ = DeleteSlackChannelConfigurationRequest$;
|
|
148
|
+
const DeleteSlackChannelConfigurationResult$ = [3, n0, _DSCCRe,
|
|
140
149
|
0,
|
|
141
150
|
[],
|
|
142
151
|
[]
|
|
143
152
|
];
|
|
144
|
-
exports.
|
|
153
|
+
exports.DeleteSlackChannelConfigurationResult$ = DeleteSlackChannelConfigurationResult$;
|
|
154
|
+
const DeleteSlackWorkspaceConfigurationRequest$ = [3, n0, _DSWCR,
|
|
145
155
|
0,
|
|
146
156
|
[_tI],
|
|
147
157
|
[0], 1
|
|
148
158
|
];
|
|
149
|
-
exports.
|
|
159
|
+
exports.DeleteSlackWorkspaceConfigurationRequest$ = DeleteSlackWorkspaceConfigurationRequest$;
|
|
160
|
+
const DeleteSlackWorkspaceConfigurationResult$ = [3, n0, _DSWCRe,
|
|
150
161
|
0,
|
|
151
162
|
[],
|
|
152
163
|
[]
|
|
153
164
|
];
|
|
154
|
-
exports.
|
|
165
|
+
exports.DeleteSlackWorkspaceConfigurationResult$ = DeleteSlackWorkspaceConfigurationResult$;
|
|
166
|
+
const GetAccountAliasRequest$ = [3, n0, _GAAR,
|
|
155
167
|
0,
|
|
156
168
|
[],
|
|
157
169
|
[]
|
|
158
170
|
];
|
|
159
|
-
exports.
|
|
171
|
+
exports.GetAccountAliasRequest$ = GetAccountAliasRequest$;
|
|
172
|
+
const GetAccountAliasResult$ = [3, n0, _GAARe,
|
|
160
173
|
0,
|
|
161
174
|
[_aA],
|
|
162
175
|
[0]
|
|
163
176
|
];
|
|
164
|
-
exports.
|
|
177
|
+
exports.GetAccountAliasResult$ = GetAccountAliasResult$;
|
|
178
|
+
const ListSlackChannelConfigurationsRequest$ = [3, n0, _LSCCR,
|
|
165
179
|
0,
|
|
166
180
|
[_nT],
|
|
167
181
|
[0]
|
|
168
182
|
];
|
|
169
|
-
exports.
|
|
183
|
+
exports.ListSlackChannelConfigurationsRequest$ = ListSlackChannelConfigurationsRequest$;
|
|
184
|
+
const ListSlackChannelConfigurationsResult$ = [3, n0, _LSCCRi,
|
|
170
185
|
0,
|
|
171
186
|
[_sCC, _nT],
|
|
172
187
|
[() => slackChannelConfigurationList, 0], 1
|
|
173
188
|
];
|
|
174
|
-
exports.
|
|
189
|
+
exports.ListSlackChannelConfigurationsResult$ = ListSlackChannelConfigurationsResult$;
|
|
190
|
+
const ListSlackWorkspaceConfigurationsRequest$ = [3, n0, _LSWCR,
|
|
175
191
|
0,
|
|
176
192
|
[_nT],
|
|
177
193
|
[0]
|
|
178
194
|
];
|
|
179
|
-
exports.
|
|
195
|
+
exports.ListSlackWorkspaceConfigurationsRequest$ = ListSlackWorkspaceConfigurationsRequest$;
|
|
196
|
+
const ListSlackWorkspaceConfigurationsResult$ = [3, n0, _LSWCRi,
|
|
180
197
|
0,
|
|
181
198
|
[_nT, _sWC],
|
|
182
199
|
[0, () => SlackWorkspaceConfigurationList]
|
|
183
200
|
];
|
|
184
|
-
exports.
|
|
201
|
+
exports.ListSlackWorkspaceConfigurationsResult$ = ListSlackWorkspaceConfigurationsResult$;
|
|
202
|
+
const PutAccountAliasRequest$ = [3, n0, _PAAR,
|
|
185
203
|
0,
|
|
186
204
|
[_aA],
|
|
187
205
|
[0], 1
|
|
188
206
|
];
|
|
189
|
-
exports.
|
|
207
|
+
exports.PutAccountAliasRequest$ = PutAccountAliasRequest$;
|
|
208
|
+
const PutAccountAliasResult$ = [3, n0, _PAARu,
|
|
190
209
|
0,
|
|
191
210
|
[],
|
|
192
211
|
[]
|
|
193
212
|
];
|
|
194
|
-
exports.
|
|
213
|
+
exports.PutAccountAliasResult$ = PutAccountAliasResult$;
|
|
214
|
+
const RegisterSlackWorkspaceForOrganizationRequest$ = [3, n0, _RSWFOR,
|
|
195
215
|
0,
|
|
196
216
|
[_tI],
|
|
197
217
|
[0], 1
|
|
198
218
|
];
|
|
199
|
-
exports.
|
|
219
|
+
exports.RegisterSlackWorkspaceForOrganizationRequest$ = RegisterSlackWorkspaceForOrganizationRequest$;
|
|
220
|
+
const RegisterSlackWorkspaceForOrganizationResult$ = [3, n0, _RSWFORe,
|
|
200
221
|
0,
|
|
201
222
|
[_tI, _tN, _aT],
|
|
202
223
|
[0, 0, 0]
|
|
203
224
|
];
|
|
204
|
-
exports.
|
|
225
|
+
exports.RegisterSlackWorkspaceForOrganizationResult$ = RegisterSlackWorkspaceForOrganizationResult$;
|
|
226
|
+
const SlackChannelConfiguration$ = [3, n0, _SCC,
|
|
205
227
|
0,
|
|
206
228
|
[_tI, _cI, _cN, _nOCORC, _nOACTC, _nORC, _nOCS, _cRA],
|
|
207
229
|
[0, 0, 0, 2, 2, 2, 0, 0], 2
|
|
208
230
|
];
|
|
209
|
-
exports.
|
|
231
|
+
exports.SlackChannelConfiguration$ = SlackChannelConfiguration$;
|
|
232
|
+
const SlackWorkspaceConfiguration$ = [3, n0, _SWC,
|
|
210
233
|
0,
|
|
211
234
|
[_tI, _tN, _aOMA],
|
|
212
235
|
[0, 0, 2], 1
|
|
213
236
|
];
|
|
214
|
-
exports.
|
|
237
|
+
exports.SlackWorkspaceConfiguration$ = SlackWorkspaceConfiguration$;
|
|
238
|
+
const UpdateSlackChannelConfigurationRequest$ = [3, n0, _USCCR,
|
|
215
239
|
0,
|
|
216
240
|
[_tI, _cI, _cN, _nOCORC, _nOACTC, _nORC, _nOCS, _cRA],
|
|
217
241
|
[0, 0, 0, 2, 2, 2, 0, 0], 2
|
|
218
242
|
];
|
|
219
|
-
exports.
|
|
243
|
+
exports.UpdateSlackChannelConfigurationRequest$ = UpdateSlackChannelConfigurationRequest$;
|
|
244
|
+
const UpdateSlackChannelConfigurationResult$ = [3, n0, _USCCRp,
|
|
220
245
|
0,
|
|
221
246
|
[_tI, _cI, _cN, _nOCORC, _nOACTC, _nORC, _nOCS, _cRA],
|
|
222
247
|
[0, 0, 0, 2, 2, 2, 0, 0]
|
|
223
248
|
];
|
|
249
|
+
exports.UpdateSlackChannelConfigurationResult$ = UpdateSlackChannelConfigurationResult$;
|
|
224
250
|
var slackChannelConfigurationList = [1, n0, _sCCL,
|
|
225
|
-
0, () =>
|
|
251
|
+
0, () => SlackChannelConfiguration$
|
|
226
252
|
];
|
|
227
253
|
var SlackWorkspaceConfigurationList = [1, n0, _SWCL,
|
|
228
|
-
0, () =>
|
|
254
|
+
0, () => SlackWorkspaceConfiguration$
|
|
229
255
|
];
|
|
230
256
|
exports.CreateSlackChannelConfiguration$ = [9, n0, _CSCC,
|
|
231
|
-
{ [_h]: ["POST", "/control/create-slack-channel-configuration", 200] }, () =>
|
|
257
|
+
{ [_h]: ["POST", "/control/create-slack-channel-configuration", 200] }, () => CreateSlackChannelConfigurationRequest$, () => CreateSlackChannelConfigurationResult$
|
|
232
258
|
];
|
|
233
259
|
exports.DeleteAccountAlias$ = [9, n0, _DAA,
|
|
234
|
-
{ [_h]: ["POST", "/control/delete-account-alias", 200] }, () =>
|
|
260
|
+
{ [_h]: ["POST", "/control/delete-account-alias", 200] }, () => DeleteAccountAliasRequest$, () => DeleteAccountAliasResult$
|
|
235
261
|
];
|
|
236
262
|
exports.DeleteSlackChannelConfiguration$ = [9, n0, _DSCC,
|
|
237
|
-
{ [_h]: ["POST", "/control/delete-slack-channel-configuration", 200] }, () =>
|
|
263
|
+
{ [_h]: ["POST", "/control/delete-slack-channel-configuration", 200] }, () => DeleteSlackChannelConfigurationRequest$, () => DeleteSlackChannelConfigurationResult$
|
|
238
264
|
];
|
|
239
265
|
exports.DeleteSlackWorkspaceConfiguration$ = [9, n0, _DSWC,
|
|
240
|
-
{ [_h]: ["POST", "/control/delete-slack-workspace-configuration", 200] }, () =>
|
|
266
|
+
{ [_h]: ["POST", "/control/delete-slack-workspace-configuration", 200] }, () => DeleteSlackWorkspaceConfigurationRequest$, () => DeleteSlackWorkspaceConfigurationResult$
|
|
241
267
|
];
|
|
242
268
|
exports.GetAccountAlias$ = [9, n0, _GAA,
|
|
243
|
-
{ [_h]: ["POST", "/control/get-account-alias", 200] }, () =>
|
|
269
|
+
{ [_h]: ["POST", "/control/get-account-alias", 200] }, () => GetAccountAliasRequest$, () => GetAccountAliasResult$
|
|
244
270
|
];
|
|
245
271
|
exports.ListSlackChannelConfigurations$ = [9, n0, _LSCC,
|
|
246
|
-
{ [_h]: ["POST", "/control/list-slack-channel-configurations", 200] }, () =>
|
|
272
|
+
{ [_h]: ["POST", "/control/list-slack-channel-configurations", 200] }, () => ListSlackChannelConfigurationsRequest$, () => ListSlackChannelConfigurationsResult$
|
|
247
273
|
];
|
|
248
274
|
exports.ListSlackWorkspaceConfigurations$ = [9, n0, _LSWC,
|
|
249
|
-
{ [_h]: ["POST", "/control/list-slack-workspace-configurations", 200] }, () =>
|
|
275
|
+
{ [_h]: ["POST", "/control/list-slack-workspace-configurations", 200] }, () => ListSlackWorkspaceConfigurationsRequest$, () => ListSlackWorkspaceConfigurationsResult$
|
|
250
276
|
];
|
|
251
277
|
exports.PutAccountAlias$ = [9, n0, _PAA,
|
|
252
|
-
{ [_h]: ["POST", "/control/put-account-alias", 200] }, () =>
|
|
278
|
+
{ [_h]: ["POST", "/control/put-account-alias", 200] }, () => PutAccountAliasRequest$, () => PutAccountAliasResult$
|
|
253
279
|
];
|
|
254
280
|
exports.RegisterSlackWorkspaceForOrganization$ = [9, n0, _RSWFO,
|
|
255
|
-
{ [_h]: ["POST", "/control/register-slack-workspace-for-organization", 200] }, () =>
|
|
281
|
+
{ [_h]: ["POST", "/control/register-slack-workspace-for-organization", 200] }, () => RegisterSlackWorkspaceForOrganizationRequest$, () => RegisterSlackWorkspaceForOrganizationResult$
|
|
256
282
|
];
|
|
257
283
|
exports.UpdateSlackChannelConfiguration$ = [9, n0, _USCC,
|
|
258
|
-
{ [_h]: ["POST", "/control/update-slack-channel-configuration", 200] }, () =>
|
|
284
|
+
{ [_h]: ["POST", "/control/update-slack-channel-configuration", 200] }, () => UpdateSlackChannelConfigurationRequest$, () => UpdateSlackChannelConfigurationResult$
|
|
259
285
|
];
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-support-app",
|
|
3
3
|
"description": "AWS SDK for JavaScript Support App Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1069.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
8
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
8
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
10
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
10
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
12
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
|
-
"generate:client": "node ../../scripts/generate-clients/single-service
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service",
|
|
15
15
|
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
16
16
|
},
|
|
17
17
|
"main": "./dist-cjs/index.js",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/types": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.974.21",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.56",
|
|
26
|
+
"@aws-sdk/types": "^3.973.13",
|
|
27
27
|
"@smithy/core": "^3.24.6",
|
|
28
28
|
"@smithy/fetch-http-handler": "^5.4.6",
|
|
29
29
|
"@smithy/node-http-handler": "^4.7.6",
|