@aws-sdk/client-chatbot 3.1075.0 → 3.1077.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.
@@ -1,435 +0,0 @@
1
- const { ChatbotServiceException: __BaseException } = require("./ChatbotServiceException");
2
- exports.InternalServiceError = class InternalServiceError extends __BaseException {
3
- name = "InternalServiceError";
4
- $fault = "server";
5
- Message;
6
- constructor(opts) {
7
- super({
8
- name: "InternalServiceError",
9
- $fault: "server",
10
- ...opts,
11
- });
12
- Object.setPrototypeOf(this, InternalServiceError.prototype);
13
- this.Message = opts.Message;
14
- }
15
- };
16
- exports.InvalidRequestException = class InvalidRequestException extends __BaseException {
17
- name = "InvalidRequestException";
18
- $fault = "client";
19
- constructor(opts) {
20
- super({
21
- name: "InvalidRequestException",
22
- $fault: "client",
23
- ...opts,
24
- });
25
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
26
- }
27
- };
28
- exports.UnauthorizedException = class UnauthorizedException extends __BaseException {
29
- name = "UnauthorizedException";
30
- $fault = "client";
31
- constructor(opts) {
32
- super({
33
- name: "UnauthorizedException",
34
- $fault: "client",
35
- ...opts,
36
- });
37
- Object.setPrototypeOf(this, UnauthorizedException.prototype);
38
- }
39
- };
40
- exports.ConflictException = class ConflictException extends __BaseException {
41
- name = "ConflictException";
42
- $fault = "client";
43
- constructor(opts) {
44
- super({
45
- name: "ConflictException",
46
- $fault: "client",
47
- ...opts,
48
- });
49
- Object.setPrototypeOf(this, ConflictException.prototype);
50
- }
51
- };
52
- exports.CreateChimeWebhookConfigurationException = class CreateChimeWebhookConfigurationException extends __BaseException {
53
- name = "CreateChimeWebhookConfigurationException";
54
- $fault = "server";
55
- Message;
56
- constructor(opts) {
57
- super({
58
- name: "CreateChimeWebhookConfigurationException",
59
- $fault: "server",
60
- ...opts,
61
- });
62
- Object.setPrototypeOf(this, CreateChimeWebhookConfigurationException.prototype);
63
- this.Message = opts.Message;
64
- }
65
- };
66
- exports.InvalidParameterException = class InvalidParameterException extends __BaseException {
67
- name = "InvalidParameterException";
68
- $fault = "client";
69
- constructor(opts) {
70
- super({
71
- name: "InvalidParameterException",
72
- $fault: "client",
73
- ...opts,
74
- });
75
- Object.setPrototypeOf(this, InvalidParameterException.prototype);
76
- }
77
- };
78
- exports.LimitExceededException = class LimitExceededException extends __BaseException {
79
- name = "LimitExceededException";
80
- $fault = "client";
81
- constructor(opts) {
82
- super({
83
- name: "LimitExceededException",
84
- $fault: "client",
85
- ...opts,
86
- });
87
- Object.setPrototypeOf(this, LimitExceededException.prototype);
88
- }
89
- };
90
- exports.CreateTeamsChannelConfigurationException = class CreateTeamsChannelConfigurationException extends __BaseException {
91
- name = "CreateTeamsChannelConfigurationException";
92
- $fault = "server";
93
- Message;
94
- constructor(opts) {
95
- super({
96
- name: "CreateTeamsChannelConfigurationException",
97
- $fault: "server",
98
- ...opts,
99
- });
100
- Object.setPrototypeOf(this, CreateTeamsChannelConfigurationException.prototype);
101
- this.Message = opts.Message;
102
- }
103
- };
104
- exports.CreateSlackChannelConfigurationException = class CreateSlackChannelConfigurationException extends __BaseException {
105
- name = "CreateSlackChannelConfigurationException";
106
- $fault = "server";
107
- Message;
108
- constructor(opts) {
109
- super({
110
- name: "CreateSlackChannelConfigurationException",
111
- $fault: "server",
112
- ...opts,
113
- });
114
- Object.setPrototypeOf(this, CreateSlackChannelConfigurationException.prototype);
115
- this.Message = opts.Message;
116
- }
117
- };
118
- exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
119
- name = "ResourceNotFoundException";
120
- $fault = "client";
121
- Message;
122
- constructor(opts) {
123
- super({
124
- name: "ResourceNotFoundException",
125
- $fault: "client",
126
- ...opts,
127
- });
128
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
129
- this.Message = opts.Message;
130
- }
131
- };
132
- exports.DeleteChimeWebhookConfigurationException = class DeleteChimeWebhookConfigurationException extends __BaseException {
133
- name = "DeleteChimeWebhookConfigurationException";
134
- $fault = "server";
135
- Message;
136
- constructor(opts) {
137
- super({
138
- name: "DeleteChimeWebhookConfigurationException",
139
- $fault: "server",
140
- ...opts,
141
- });
142
- Object.setPrototypeOf(this, DeleteChimeWebhookConfigurationException.prototype);
143
- this.Message = opts.Message;
144
- }
145
- };
146
- exports.DeleteTeamsChannelConfigurationException = class DeleteTeamsChannelConfigurationException extends __BaseException {
147
- name = "DeleteTeamsChannelConfigurationException";
148
- $fault = "server";
149
- Message;
150
- constructor(opts) {
151
- super({
152
- name: "DeleteTeamsChannelConfigurationException",
153
- $fault: "server",
154
- ...opts,
155
- });
156
- Object.setPrototypeOf(this, DeleteTeamsChannelConfigurationException.prototype);
157
- this.Message = opts.Message;
158
- }
159
- };
160
- exports.DeleteTeamsConfiguredTeamException = class DeleteTeamsConfiguredTeamException extends __BaseException {
161
- name = "DeleteTeamsConfiguredTeamException";
162
- $fault = "server";
163
- Message;
164
- constructor(opts) {
165
- super({
166
- name: "DeleteTeamsConfiguredTeamException",
167
- $fault: "server",
168
- ...opts,
169
- });
170
- Object.setPrototypeOf(this, DeleteTeamsConfiguredTeamException.prototype);
171
- this.Message = opts.Message;
172
- }
173
- };
174
- exports.DeleteMicrosoftTeamsUserIdentityException = class DeleteMicrosoftTeamsUserIdentityException extends __BaseException {
175
- name = "DeleteMicrosoftTeamsUserIdentityException";
176
- $fault = "server";
177
- Message;
178
- constructor(opts) {
179
- super({
180
- name: "DeleteMicrosoftTeamsUserIdentityException",
181
- $fault: "server",
182
- ...opts,
183
- });
184
- Object.setPrototypeOf(this, DeleteMicrosoftTeamsUserIdentityException.prototype);
185
- this.Message = opts.Message;
186
- }
187
- };
188
- exports.DeleteSlackChannelConfigurationException = class DeleteSlackChannelConfigurationException extends __BaseException {
189
- name = "DeleteSlackChannelConfigurationException";
190
- $fault = "server";
191
- Message;
192
- constructor(opts) {
193
- super({
194
- name: "DeleteSlackChannelConfigurationException",
195
- $fault: "server",
196
- ...opts,
197
- });
198
- Object.setPrototypeOf(this, DeleteSlackChannelConfigurationException.prototype);
199
- this.Message = opts.Message;
200
- }
201
- };
202
- exports.DeleteSlackUserIdentityException = class DeleteSlackUserIdentityException extends __BaseException {
203
- name = "DeleteSlackUserIdentityException";
204
- $fault = "server";
205
- Message;
206
- constructor(opts) {
207
- super({
208
- name: "DeleteSlackUserIdentityException",
209
- $fault: "server",
210
- ...opts,
211
- });
212
- Object.setPrototypeOf(this, DeleteSlackUserIdentityException.prototype);
213
- this.Message = opts.Message;
214
- }
215
- };
216
- exports.DeleteSlackWorkspaceAuthorizationFault = class DeleteSlackWorkspaceAuthorizationFault extends __BaseException {
217
- name = "DeleteSlackWorkspaceAuthorizationFault";
218
- $fault = "server";
219
- Message;
220
- constructor(opts) {
221
- super({
222
- name: "DeleteSlackWorkspaceAuthorizationFault",
223
- $fault: "server",
224
- ...opts,
225
- });
226
- Object.setPrototypeOf(this, DeleteSlackWorkspaceAuthorizationFault.prototype);
227
- this.Message = opts.Message;
228
- }
229
- };
230
- exports.DescribeChimeWebhookConfigurationsException = class DescribeChimeWebhookConfigurationsException extends __BaseException {
231
- name = "DescribeChimeWebhookConfigurationsException";
232
- $fault = "server";
233
- Message;
234
- constructor(opts) {
235
- super({
236
- name: "DescribeChimeWebhookConfigurationsException",
237
- $fault: "server",
238
- ...opts,
239
- });
240
- Object.setPrototypeOf(this, DescribeChimeWebhookConfigurationsException.prototype);
241
- this.Message = opts.Message;
242
- }
243
- };
244
- exports.DescribeSlackChannelConfigurationsException = class DescribeSlackChannelConfigurationsException extends __BaseException {
245
- name = "DescribeSlackChannelConfigurationsException";
246
- $fault = "server";
247
- Message;
248
- constructor(opts) {
249
- super({
250
- name: "DescribeSlackChannelConfigurationsException",
251
- $fault: "server",
252
- ...opts,
253
- });
254
- Object.setPrototypeOf(this, DescribeSlackChannelConfigurationsException.prototype);
255
- this.Message = opts.Message;
256
- }
257
- };
258
- exports.DescribeSlackUserIdentitiesException = class DescribeSlackUserIdentitiesException extends __BaseException {
259
- name = "DescribeSlackUserIdentitiesException";
260
- $fault = "server";
261
- Message;
262
- constructor(opts) {
263
- super({
264
- name: "DescribeSlackUserIdentitiesException",
265
- $fault: "server",
266
- ...opts,
267
- });
268
- Object.setPrototypeOf(this, DescribeSlackUserIdentitiesException.prototype);
269
- this.Message = opts.Message;
270
- }
271
- };
272
- exports.DescribeSlackWorkspacesException = class DescribeSlackWorkspacesException extends __BaseException {
273
- name = "DescribeSlackWorkspacesException";
274
- $fault = "server";
275
- Message;
276
- constructor(opts) {
277
- super({
278
- name: "DescribeSlackWorkspacesException",
279
- $fault: "server",
280
- ...opts,
281
- });
282
- Object.setPrototypeOf(this, DescribeSlackWorkspacesException.prototype);
283
- this.Message = opts.Message;
284
- }
285
- };
286
- exports.GetAccountPreferencesException = class GetAccountPreferencesException extends __BaseException {
287
- name = "GetAccountPreferencesException";
288
- $fault = "server";
289
- Message;
290
- constructor(opts) {
291
- super({
292
- name: "GetAccountPreferencesException",
293
- $fault: "server",
294
- ...opts,
295
- });
296
- Object.setPrototypeOf(this, GetAccountPreferencesException.prototype);
297
- this.Message = opts.Message;
298
- }
299
- };
300
- exports.GetTeamsChannelConfigurationException = class GetTeamsChannelConfigurationException extends __BaseException {
301
- name = "GetTeamsChannelConfigurationException";
302
- $fault = "server";
303
- Message;
304
- constructor(opts) {
305
- super({
306
- name: "GetTeamsChannelConfigurationException",
307
- $fault: "server",
308
- ...opts,
309
- });
310
- Object.setPrototypeOf(this, GetTeamsChannelConfigurationException.prototype);
311
- this.Message = opts.Message;
312
- }
313
- };
314
- exports.ListTeamsChannelConfigurationsException = class ListTeamsChannelConfigurationsException extends __BaseException {
315
- name = "ListTeamsChannelConfigurationsException";
316
- $fault = "server";
317
- Message;
318
- constructor(opts) {
319
- super({
320
- name: "ListTeamsChannelConfigurationsException",
321
- $fault: "server",
322
- ...opts,
323
- });
324
- Object.setPrototypeOf(this, ListTeamsChannelConfigurationsException.prototype);
325
- this.Message = opts.Message;
326
- }
327
- };
328
- exports.ListMicrosoftTeamsConfiguredTeamsException = class ListMicrosoftTeamsConfiguredTeamsException extends __BaseException {
329
- name = "ListMicrosoftTeamsConfiguredTeamsException";
330
- $fault = "server";
331
- Message;
332
- constructor(opts) {
333
- super({
334
- name: "ListMicrosoftTeamsConfiguredTeamsException",
335
- $fault: "server",
336
- ...opts,
337
- });
338
- Object.setPrototypeOf(this, ListMicrosoftTeamsConfiguredTeamsException.prototype);
339
- this.Message = opts.Message;
340
- }
341
- };
342
- exports.ListMicrosoftTeamsUserIdentitiesException = class ListMicrosoftTeamsUserIdentitiesException extends __BaseException {
343
- name = "ListMicrosoftTeamsUserIdentitiesException";
344
- $fault = "server";
345
- Message;
346
- constructor(opts) {
347
- super({
348
- name: "ListMicrosoftTeamsUserIdentitiesException",
349
- $fault: "server",
350
- ...opts,
351
- });
352
- Object.setPrototypeOf(this, ListMicrosoftTeamsUserIdentitiesException.prototype);
353
- this.Message = opts.Message;
354
- }
355
- };
356
- exports.ServiceUnavailableException = class ServiceUnavailableException extends __BaseException {
357
- name = "ServiceUnavailableException";
358
- $fault = "client";
359
- constructor(opts) {
360
- super({
361
- name: "ServiceUnavailableException",
362
- $fault: "client",
363
- ...opts,
364
- });
365
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
366
- }
367
- };
368
- exports.TooManyTagsException = class TooManyTagsException extends __BaseException {
369
- name = "TooManyTagsException";
370
- $fault = "client";
371
- constructor(opts) {
372
- super({
373
- name: "TooManyTagsException",
374
- $fault: "client",
375
- ...opts,
376
- });
377
- Object.setPrototypeOf(this, TooManyTagsException.prototype);
378
- }
379
- };
380
- exports.UpdateAccountPreferencesException = class UpdateAccountPreferencesException extends __BaseException {
381
- name = "UpdateAccountPreferencesException";
382
- $fault = "server";
383
- Message;
384
- constructor(opts) {
385
- super({
386
- name: "UpdateAccountPreferencesException",
387
- $fault: "server",
388
- ...opts,
389
- });
390
- Object.setPrototypeOf(this, UpdateAccountPreferencesException.prototype);
391
- this.Message = opts.Message;
392
- }
393
- };
394
- exports.UpdateChimeWebhookConfigurationException = class UpdateChimeWebhookConfigurationException extends __BaseException {
395
- name = "UpdateChimeWebhookConfigurationException";
396
- $fault = "server";
397
- Message;
398
- constructor(opts) {
399
- super({
400
- name: "UpdateChimeWebhookConfigurationException",
401
- $fault: "server",
402
- ...opts,
403
- });
404
- Object.setPrototypeOf(this, UpdateChimeWebhookConfigurationException.prototype);
405
- this.Message = opts.Message;
406
- }
407
- };
408
- exports.UpdateTeamsChannelConfigurationException = class UpdateTeamsChannelConfigurationException extends __BaseException {
409
- name = "UpdateTeamsChannelConfigurationException";
410
- $fault = "server";
411
- Message;
412
- constructor(opts) {
413
- super({
414
- name: "UpdateTeamsChannelConfigurationException",
415
- $fault: "server",
416
- ...opts,
417
- });
418
- Object.setPrototypeOf(this, UpdateTeamsChannelConfigurationException.prototype);
419
- this.Message = opts.Message;
420
- }
421
- };
422
- exports.UpdateSlackChannelConfigurationException = class UpdateSlackChannelConfigurationException extends __BaseException {
423
- name = "UpdateSlackChannelConfigurationException";
424
- $fault = "server";
425
- Message;
426
- constructor(opts) {
427
- super({
428
- name: "UpdateSlackChannelConfigurationException",
429
- $fault: "server",
430
- ...opts,
431
- });
432
- Object.setPrototypeOf(this, UpdateSlackChannelConfigurationException.prototype);
433
- this.Message = opts.Message;
434
- }
435
- };
@@ -1,32 +0,0 @@
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");
10
- const getRuntimeConfig = (config) => {
11
- const defaultsMode = resolveDefaultsModeConfig(config);
12
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
13
- const clientSharedValues = getSharedRuntimeConfig(config);
14
- return {
15
- ...clientSharedValues,
16
- ...config,
17
- runtime: "browser",
18
- defaultsMode,
19
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
20
- credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
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)),
30
- };
31
- };
32
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,45 +0,0 @@
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");
11
- const getRuntimeConfig = (config) => {
12
- emitWarningIfUnsupportedVersion(process.version);
13
- const defaultsMode = resolveDefaultsModeConfig(config);
14
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
- const clientSharedValues = getSharedRuntimeConfig(config);
16
- awsCheckVersion(process.version);
17
- const loaderConfig = {
18
- profile: config?.profile,
19
- logger: clientSharedValues.logger,
20
- };
21
- return {
22
- ...clientSharedValues,
23
- ...config,
24
- runtime: "node",
25
- defaultsMode,
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),
33
- retryMode: config?.retryMode ??
34
- loadNodeConfig({
35
- ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
- default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
- }, config),
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),
43
- };
44
- };
45
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,12 +0,0 @@
1
- const { Sha256 } = require("@aws-crypto/sha256-js");
2
- const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
3
- const getRuntimeConfig = (config) => {
4
- const browserDefaults = getBrowserRuntimeConfig(config);
5
- return {
6
- ...browserDefaults,
7
- ...config,
8
- runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
- };
11
- };
12
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,39 +0,0 @@
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 { defaultChatbotHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
7
- const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
8
- const { errorTypeRegistries } = require("./schemas/schemas_0");
9
- exports.getRuntimeConfig = (config) => {
10
- return {
11
- apiVersion: "2017-10-11",
12
- base64Decoder: config?.base64Decoder ?? fromBase64,
13
- base64Encoder: config?.base64Encoder ?? toBase64,
14
- disableHostPrefix: config?.disableHostPrefix ?? false,
15
- endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
16
- extensions: config?.extensions ?? [],
17
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultChatbotHttpAuthSchemeProvider,
18
- httpAuthSchemes: config?.httpAuthSchemes ?? [
19
- {
20
- schemeId: "aws.auth#sigv4",
21
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
22
- signer: new AwsSdkSigV4Signer(),
23
- },
24
- ],
25
- logger: config?.logger ?? new NoOpLogger(),
26
- protocol: config?.protocol ?? AwsRestJsonProtocol,
27
- protocolSettings: config?.protocolSettings ?? {
28
- defaultNamespace: "com.amazonaws.chatbot",
29
- errorTypeRegistries,
30
- xmlNamespace: "http://wheatley.amazonaws.com/orchestration/2017-10-11/",
31
- version: "2017-10-11",
32
- serviceTarget: "WheatleyOrchestration_20171011",
33
- },
34
- serviceId: config?.serviceId ?? "chatbot",
35
- urlParser: config?.urlParser ?? parseUrl,
36
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
37
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
38
- };
39
- };