@aws-sdk/client-chatbot 3.1068.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 +151 -171
- package/dist-cjs/models/ChatbotServiceException.js +4 -8
- package/dist-cjs/models/errors.js +65 -100
- 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 +327 -217
- package/package.json +8 -8
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ChatbotServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class ChatbotServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.ChatbotServiceException = class ChatbotServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, ChatbotServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.ChatbotServiceException = ChatbotServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.UpdateSlackChannelConfigurationException = exports.UpdateTeamsChannelConfigurationException = exports.UpdateChimeWebhookConfigurationException = exports.UpdateAccountPreferencesException = exports.TooManyTagsException = exports.ServiceUnavailableException = exports.ListMicrosoftTeamsUserIdentitiesException = exports.ListMicrosoftTeamsConfiguredTeamsException = exports.ListTeamsChannelConfigurationsException = exports.GetTeamsChannelConfigurationException = exports.GetAccountPreferencesException = exports.DescribeSlackWorkspacesException = exports.DescribeSlackUserIdentitiesException = exports.DescribeSlackChannelConfigurationsException = exports.DescribeChimeWebhookConfigurationsException = exports.DeleteSlackWorkspaceAuthorizationFault = exports.DeleteSlackUserIdentityException = exports.DeleteSlackChannelConfigurationException = exports.DeleteMicrosoftTeamsUserIdentityException = exports.DeleteTeamsConfiguredTeamException = exports.DeleteTeamsChannelConfigurationException = exports.DeleteChimeWebhookConfigurationException = exports.ResourceNotFoundException = exports.CreateSlackChannelConfigurationException = exports.CreateTeamsChannelConfigurationException = exports.LimitExceededException = exports.InvalidParameterException = exports.CreateChimeWebhookConfigurationException = exports.ConflictException = exports.UnauthorizedException = exports.InvalidRequestException = exports.InternalServiceError = void 0;
|
|
4
|
-
const ChatbotServiceException_1 = require("./ChatbotServiceException");
|
|
5
|
-
class InternalServiceError extends ChatbotServiceException_1.ChatbotServiceException {
|
|
1
|
+
const { ChatbotServiceException: __BaseException } = require("./ChatbotServiceException");
|
|
2
|
+
exports.InternalServiceError = class InternalServiceError extends __BaseException {
|
|
6
3
|
name = "InternalServiceError";
|
|
7
4
|
$fault = "server";
|
|
8
5
|
Message;
|
|
@@ -15,9 +12,8 @@ class InternalServiceError extends ChatbotServiceException_1.ChatbotServiceExcep
|
|
|
15
12
|
Object.setPrototypeOf(this, InternalServiceError.prototype);
|
|
16
13
|
this.Message = opts.Message;
|
|
17
14
|
}
|
|
18
|
-
}
|
|
19
|
-
exports.
|
|
20
|
-
class InvalidRequestException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
15
|
+
};
|
|
16
|
+
exports.InvalidRequestException = class InvalidRequestException extends __BaseException {
|
|
21
17
|
name = "InvalidRequestException";
|
|
22
18
|
$fault = "client";
|
|
23
19
|
constructor(opts) {
|
|
@@ -28,9 +24,8 @@ class InvalidRequestException extends ChatbotServiceException_1.ChatbotServiceEx
|
|
|
28
24
|
});
|
|
29
25
|
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
30
26
|
}
|
|
31
|
-
}
|
|
32
|
-
exports.
|
|
33
|
-
class UnauthorizedException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
27
|
+
};
|
|
28
|
+
exports.UnauthorizedException = class UnauthorizedException extends __BaseException {
|
|
34
29
|
name = "UnauthorizedException";
|
|
35
30
|
$fault = "client";
|
|
36
31
|
constructor(opts) {
|
|
@@ -41,9 +36,8 @@ class UnauthorizedException extends ChatbotServiceException_1.ChatbotServiceExce
|
|
|
41
36
|
});
|
|
42
37
|
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
43
38
|
}
|
|
44
|
-
}
|
|
45
|
-
exports.
|
|
46
|
-
class ConflictException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
39
|
+
};
|
|
40
|
+
exports.ConflictException = class ConflictException extends __BaseException {
|
|
47
41
|
name = "ConflictException";
|
|
48
42
|
$fault = "client";
|
|
49
43
|
constructor(opts) {
|
|
@@ -54,9 +48,8 @@ class ConflictException extends ChatbotServiceException_1.ChatbotServiceExceptio
|
|
|
54
48
|
});
|
|
55
49
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
56
50
|
}
|
|
57
|
-
}
|
|
58
|
-
exports.
|
|
59
|
-
class CreateChimeWebhookConfigurationException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
51
|
+
};
|
|
52
|
+
exports.CreateChimeWebhookConfigurationException = class CreateChimeWebhookConfigurationException extends __BaseException {
|
|
60
53
|
name = "CreateChimeWebhookConfigurationException";
|
|
61
54
|
$fault = "server";
|
|
62
55
|
Message;
|
|
@@ -69,9 +62,8 @@ class CreateChimeWebhookConfigurationException extends ChatbotServiceException_1
|
|
|
69
62
|
Object.setPrototypeOf(this, CreateChimeWebhookConfigurationException.prototype);
|
|
70
63
|
this.Message = opts.Message;
|
|
71
64
|
}
|
|
72
|
-
}
|
|
73
|
-
exports.
|
|
74
|
-
class InvalidParameterException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
65
|
+
};
|
|
66
|
+
exports.InvalidParameterException = class InvalidParameterException extends __BaseException {
|
|
75
67
|
name = "InvalidParameterException";
|
|
76
68
|
$fault = "client";
|
|
77
69
|
constructor(opts) {
|
|
@@ -82,9 +74,8 @@ class InvalidParameterException extends ChatbotServiceException_1.ChatbotService
|
|
|
82
74
|
});
|
|
83
75
|
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
84
76
|
}
|
|
85
|
-
}
|
|
86
|
-
exports.
|
|
87
|
-
class LimitExceededException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
77
|
+
};
|
|
78
|
+
exports.LimitExceededException = class LimitExceededException extends __BaseException {
|
|
88
79
|
name = "LimitExceededException";
|
|
89
80
|
$fault = "client";
|
|
90
81
|
constructor(opts) {
|
|
@@ -95,9 +86,8 @@ class LimitExceededException extends ChatbotServiceException_1.ChatbotServiceExc
|
|
|
95
86
|
});
|
|
96
87
|
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
97
88
|
}
|
|
98
|
-
}
|
|
99
|
-
exports.
|
|
100
|
-
class CreateTeamsChannelConfigurationException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
89
|
+
};
|
|
90
|
+
exports.CreateTeamsChannelConfigurationException = class CreateTeamsChannelConfigurationException extends __BaseException {
|
|
101
91
|
name = "CreateTeamsChannelConfigurationException";
|
|
102
92
|
$fault = "server";
|
|
103
93
|
Message;
|
|
@@ -110,9 +100,8 @@ class CreateTeamsChannelConfigurationException extends ChatbotServiceException_1
|
|
|
110
100
|
Object.setPrototypeOf(this, CreateTeamsChannelConfigurationException.prototype);
|
|
111
101
|
this.Message = opts.Message;
|
|
112
102
|
}
|
|
113
|
-
}
|
|
114
|
-
exports.
|
|
115
|
-
class CreateSlackChannelConfigurationException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
103
|
+
};
|
|
104
|
+
exports.CreateSlackChannelConfigurationException = class CreateSlackChannelConfigurationException extends __BaseException {
|
|
116
105
|
name = "CreateSlackChannelConfigurationException";
|
|
117
106
|
$fault = "server";
|
|
118
107
|
Message;
|
|
@@ -125,9 +114,8 @@ class CreateSlackChannelConfigurationException extends ChatbotServiceException_1
|
|
|
125
114
|
Object.setPrototypeOf(this, CreateSlackChannelConfigurationException.prototype);
|
|
126
115
|
this.Message = opts.Message;
|
|
127
116
|
}
|
|
128
|
-
}
|
|
129
|
-
exports.
|
|
130
|
-
class ResourceNotFoundException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
117
|
+
};
|
|
118
|
+
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
131
119
|
name = "ResourceNotFoundException";
|
|
132
120
|
$fault = "client";
|
|
133
121
|
Message;
|
|
@@ -140,9 +128,8 @@ class ResourceNotFoundException extends ChatbotServiceException_1.ChatbotService
|
|
|
140
128
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
141
129
|
this.Message = opts.Message;
|
|
142
130
|
}
|
|
143
|
-
}
|
|
144
|
-
exports.
|
|
145
|
-
class DeleteChimeWebhookConfigurationException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
131
|
+
};
|
|
132
|
+
exports.DeleteChimeWebhookConfigurationException = class DeleteChimeWebhookConfigurationException extends __BaseException {
|
|
146
133
|
name = "DeleteChimeWebhookConfigurationException";
|
|
147
134
|
$fault = "server";
|
|
148
135
|
Message;
|
|
@@ -155,9 +142,8 @@ class DeleteChimeWebhookConfigurationException extends ChatbotServiceException_1
|
|
|
155
142
|
Object.setPrototypeOf(this, DeleteChimeWebhookConfigurationException.prototype);
|
|
156
143
|
this.Message = opts.Message;
|
|
157
144
|
}
|
|
158
|
-
}
|
|
159
|
-
exports.
|
|
160
|
-
class DeleteTeamsChannelConfigurationException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
145
|
+
};
|
|
146
|
+
exports.DeleteTeamsChannelConfigurationException = class DeleteTeamsChannelConfigurationException extends __BaseException {
|
|
161
147
|
name = "DeleteTeamsChannelConfigurationException";
|
|
162
148
|
$fault = "server";
|
|
163
149
|
Message;
|
|
@@ -170,9 +156,8 @@ class DeleteTeamsChannelConfigurationException extends ChatbotServiceException_1
|
|
|
170
156
|
Object.setPrototypeOf(this, DeleteTeamsChannelConfigurationException.prototype);
|
|
171
157
|
this.Message = opts.Message;
|
|
172
158
|
}
|
|
173
|
-
}
|
|
174
|
-
exports.
|
|
175
|
-
class DeleteTeamsConfiguredTeamException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
159
|
+
};
|
|
160
|
+
exports.DeleteTeamsConfiguredTeamException = class DeleteTeamsConfiguredTeamException extends __BaseException {
|
|
176
161
|
name = "DeleteTeamsConfiguredTeamException";
|
|
177
162
|
$fault = "server";
|
|
178
163
|
Message;
|
|
@@ -185,9 +170,8 @@ class DeleteTeamsConfiguredTeamException extends ChatbotServiceException_1.Chatb
|
|
|
185
170
|
Object.setPrototypeOf(this, DeleteTeamsConfiguredTeamException.prototype);
|
|
186
171
|
this.Message = opts.Message;
|
|
187
172
|
}
|
|
188
|
-
}
|
|
189
|
-
exports.
|
|
190
|
-
class DeleteMicrosoftTeamsUserIdentityException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
173
|
+
};
|
|
174
|
+
exports.DeleteMicrosoftTeamsUserIdentityException = class DeleteMicrosoftTeamsUserIdentityException extends __BaseException {
|
|
191
175
|
name = "DeleteMicrosoftTeamsUserIdentityException";
|
|
192
176
|
$fault = "server";
|
|
193
177
|
Message;
|
|
@@ -200,9 +184,8 @@ class DeleteMicrosoftTeamsUserIdentityException extends ChatbotServiceException_
|
|
|
200
184
|
Object.setPrototypeOf(this, DeleteMicrosoftTeamsUserIdentityException.prototype);
|
|
201
185
|
this.Message = opts.Message;
|
|
202
186
|
}
|
|
203
|
-
}
|
|
204
|
-
exports.
|
|
205
|
-
class DeleteSlackChannelConfigurationException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
187
|
+
};
|
|
188
|
+
exports.DeleteSlackChannelConfigurationException = class DeleteSlackChannelConfigurationException extends __BaseException {
|
|
206
189
|
name = "DeleteSlackChannelConfigurationException";
|
|
207
190
|
$fault = "server";
|
|
208
191
|
Message;
|
|
@@ -215,9 +198,8 @@ class DeleteSlackChannelConfigurationException extends ChatbotServiceException_1
|
|
|
215
198
|
Object.setPrototypeOf(this, DeleteSlackChannelConfigurationException.prototype);
|
|
216
199
|
this.Message = opts.Message;
|
|
217
200
|
}
|
|
218
|
-
}
|
|
219
|
-
exports.
|
|
220
|
-
class DeleteSlackUserIdentityException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
201
|
+
};
|
|
202
|
+
exports.DeleteSlackUserIdentityException = class DeleteSlackUserIdentityException extends __BaseException {
|
|
221
203
|
name = "DeleteSlackUserIdentityException";
|
|
222
204
|
$fault = "server";
|
|
223
205
|
Message;
|
|
@@ -230,9 +212,8 @@ class DeleteSlackUserIdentityException extends ChatbotServiceException_1.Chatbot
|
|
|
230
212
|
Object.setPrototypeOf(this, DeleteSlackUserIdentityException.prototype);
|
|
231
213
|
this.Message = opts.Message;
|
|
232
214
|
}
|
|
233
|
-
}
|
|
234
|
-
exports.
|
|
235
|
-
class DeleteSlackWorkspaceAuthorizationFault extends ChatbotServiceException_1.ChatbotServiceException {
|
|
215
|
+
};
|
|
216
|
+
exports.DeleteSlackWorkspaceAuthorizationFault = class DeleteSlackWorkspaceAuthorizationFault extends __BaseException {
|
|
236
217
|
name = "DeleteSlackWorkspaceAuthorizationFault";
|
|
237
218
|
$fault = "server";
|
|
238
219
|
Message;
|
|
@@ -245,9 +226,8 @@ class DeleteSlackWorkspaceAuthorizationFault extends ChatbotServiceException_1.C
|
|
|
245
226
|
Object.setPrototypeOf(this, DeleteSlackWorkspaceAuthorizationFault.prototype);
|
|
246
227
|
this.Message = opts.Message;
|
|
247
228
|
}
|
|
248
|
-
}
|
|
249
|
-
exports.
|
|
250
|
-
class DescribeChimeWebhookConfigurationsException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
229
|
+
};
|
|
230
|
+
exports.DescribeChimeWebhookConfigurationsException = class DescribeChimeWebhookConfigurationsException extends __BaseException {
|
|
251
231
|
name = "DescribeChimeWebhookConfigurationsException";
|
|
252
232
|
$fault = "server";
|
|
253
233
|
Message;
|
|
@@ -260,9 +240,8 @@ class DescribeChimeWebhookConfigurationsException extends ChatbotServiceExceptio
|
|
|
260
240
|
Object.setPrototypeOf(this, DescribeChimeWebhookConfigurationsException.prototype);
|
|
261
241
|
this.Message = opts.Message;
|
|
262
242
|
}
|
|
263
|
-
}
|
|
264
|
-
exports.
|
|
265
|
-
class DescribeSlackChannelConfigurationsException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
243
|
+
};
|
|
244
|
+
exports.DescribeSlackChannelConfigurationsException = class DescribeSlackChannelConfigurationsException extends __BaseException {
|
|
266
245
|
name = "DescribeSlackChannelConfigurationsException";
|
|
267
246
|
$fault = "server";
|
|
268
247
|
Message;
|
|
@@ -275,9 +254,8 @@ class DescribeSlackChannelConfigurationsException extends ChatbotServiceExceptio
|
|
|
275
254
|
Object.setPrototypeOf(this, DescribeSlackChannelConfigurationsException.prototype);
|
|
276
255
|
this.Message = opts.Message;
|
|
277
256
|
}
|
|
278
|
-
}
|
|
279
|
-
exports.
|
|
280
|
-
class DescribeSlackUserIdentitiesException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
257
|
+
};
|
|
258
|
+
exports.DescribeSlackUserIdentitiesException = class DescribeSlackUserIdentitiesException extends __BaseException {
|
|
281
259
|
name = "DescribeSlackUserIdentitiesException";
|
|
282
260
|
$fault = "server";
|
|
283
261
|
Message;
|
|
@@ -290,9 +268,8 @@ class DescribeSlackUserIdentitiesException extends ChatbotServiceException_1.Cha
|
|
|
290
268
|
Object.setPrototypeOf(this, DescribeSlackUserIdentitiesException.prototype);
|
|
291
269
|
this.Message = opts.Message;
|
|
292
270
|
}
|
|
293
|
-
}
|
|
294
|
-
exports.
|
|
295
|
-
class DescribeSlackWorkspacesException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
271
|
+
};
|
|
272
|
+
exports.DescribeSlackWorkspacesException = class DescribeSlackWorkspacesException extends __BaseException {
|
|
296
273
|
name = "DescribeSlackWorkspacesException";
|
|
297
274
|
$fault = "server";
|
|
298
275
|
Message;
|
|
@@ -305,9 +282,8 @@ class DescribeSlackWorkspacesException extends ChatbotServiceException_1.Chatbot
|
|
|
305
282
|
Object.setPrototypeOf(this, DescribeSlackWorkspacesException.prototype);
|
|
306
283
|
this.Message = opts.Message;
|
|
307
284
|
}
|
|
308
|
-
}
|
|
309
|
-
exports.
|
|
310
|
-
class GetAccountPreferencesException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
285
|
+
};
|
|
286
|
+
exports.GetAccountPreferencesException = class GetAccountPreferencesException extends __BaseException {
|
|
311
287
|
name = "GetAccountPreferencesException";
|
|
312
288
|
$fault = "server";
|
|
313
289
|
Message;
|
|
@@ -320,9 +296,8 @@ class GetAccountPreferencesException extends ChatbotServiceException_1.ChatbotSe
|
|
|
320
296
|
Object.setPrototypeOf(this, GetAccountPreferencesException.prototype);
|
|
321
297
|
this.Message = opts.Message;
|
|
322
298
|
}
|
|
323
|
-
}
|
|
324
|
-
exports.
|
|
325
|
-
class GetTeamsChannelConfigurationException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
299
|
+
};
|
|
300
|
+
exports.GetTeamsChannelConfigurationException = class GetTeamsChannelConfigurationException extends __BaseException {
|
|
326
301
|
name = "GetTeamsChannelConfigurationException";
|
|
327
302
|
$fault = "server";
|
|
328
303
|
Message;
|
|
@@ -335,9 +310,8 @@ class GetTeamsChannelConfigurationException extends ChatbotServiceException_1.Ch
|
|
|
335
310
|
Object.setPrototypeOf(this, GetTeamsChannelConfigurationException.prototype);
|
|
336
311
|
this.Message = opts.Message;
|
|
337
312
|
}
|
|
338
|
-
}
|
|
339
|
-
exports.
|
|
340
|
-
class ListTeamsChannelConfigurationsException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
313
|
+
};
|
|
314
|
+
exports.ListTeamsChannelConfigurationsException = class ListTeamsChannelConfigurationsException extends __BaseException {
|
|
341
315
|
name = "ListTeamsChannelConfigurationsException";
|
|
342
316
|
$fault = "server";
|
|
343
317
|
Message;
|
|
@@ -350,9 +324,8 @@ class ListTeamsChannelConfigurationsException extends ChatbotServiceException_1.
|
|
|
350
324
|
Object.setPrototypeOf(this, ListTeamsChannelConfigurationsException.prototype);
|
|
351
325
|
this.Message = opts.Message;
|
|
352
326
|
}
|
|
353
|
-
}
|
|
354
|
-
exports.
|
|
355
|
-
class ListMicrosoftTeamsConfiguredTeamsException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
327
|
+
};
|
|
328
|
+
exports.ListMicrosoftTeamsConfiguredTeamsException = class ListMicrosoftTeamsConfiguredTeamsException extends __BaseException {
|
|
356
329
|
name = "ListMicrosoftTeamsConfiguredTeamsException";
|
|
357
330
|
$fault = "server";
|
|
358
331
|
Message;
|
|
@@ -365,9 +338,8 @@ class ListMicrosoftTeamsConfiguredTeamsException extends ChatbotServiceException
|
|
|
365
338
|
Object.setPrototypeOf(this, ListMicrosoftTeamsConfiguredTeamsException.prototype);
|
|
366
339
|
this.Message = opts.Message;
|
|
367
340
|
}
|
|
368
|
-
}
|
|
369
|
-
exports.
|
|
370
|
-
class ListMicrosoftTeamsUserIdentitiesException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
341
|
+
};
|
|
342
|
+
exports.ListMicrosoftTeamsUserIdentitiesException = class ListMicrosoftTeamsUserIdentitiesException extends __BaseException {
|
|
371
343
|
name = "ListMicrosoftTeamsUserIdentitiesException";
|
|
372
344
|
$fault = "server";
|
|
373
345
|
Message;
|
|
@@ -380,9 +352,8 @@ class ListMicrosoftTeamsUserIdentitiesException extends ChatbotServiceException_
|
|
|
380
352
|
Object.setPrototypeOf(this, ListMicrosoftTeamsUserIdentitiesException.prototype);
|
|
381
353
|
this.Message = opts.Message;
|
|
382
354
|
}
|
|
383
|
-
}
|
|
384
|
-
exports.
|
|
385
|
-
class ServiceUnavailableException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
355
|
+
};
|
|
356
|
+
exports.ServiceUnavailableException = class ServiceUnavailableException extends __BaseException {
|
|
386
357
|
name = "ServiceUnavailableException";
|
|
387
358
|
$fault = "client";
|
|
388
359
|
constructor(opts) {
|
|
@@ -393,9 +364,8 @@ class ServiceUnavailableException extends ChatbotServiceException_1.ChatbotServi
|
|
|
393
364
|
});
|
|
394
365
|
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
395
366
|
}
|
|
396
|
-
}
|
|
397
|
-
exports.
|
|
398
|
-
class TooManyTagsException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
367
|
+
};
|
|
368
|
+
exports.TooManyTagsException = class TooManyTagsException extends __BaseException {
|
|
399
369
|
name = "TooManyTagsException";
|
|
400
370
|
$fault = "client";
|
|
401
371
|
constructor(opts) {
|
|
@@ -406,9 +376,8 @@ class TooManyTagsException extends ChatbotServiceException_1.ChatbotServiceExcep
|
|
|
406
376
|
});
|
|
407
377
|
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
408
378
|
}
|
|
409
|
-
}
|
|
410
|
-
exports.
|
|
411
|
-
class UpdateAccountPreferencesException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
379
|
+
};
|
|
380
|
+
exports.UpdateAccountPreferencesException = class UpdateAccountPreferencesException extends __BaseException {
|
|
412
381
|
name = "UpdateAccountPreferencesException";
|
|
413
382
|
$fault = "server";
|
|
414
383
|
Message;
|
|
@@ -421,9 +390,8 @@ class UpdateAccountPreferencesException extends ChatbotServiceException_1.Chatbo
|
|
|
421
390
|
Object.setPrototypeOf(this, UpdateAccountPreferencesException.prototype);
|
|
422
391
|
this.Message = opts.Message;
|
|
423
392
|
}
|
|
424
|
-
}
|
|
425
|
-
exports.
|
|
426
|
-
class UpdateChimeWebhookConfigurationException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
393
|
+
};
|
|
394
|
+
exports.UpdateChimeWebhookConfigurationException = class UpdateChimeWebhookConfigurationException extends __BaseException {
|
|
427
395
|
name = "UpdateChimeWebhookConfigurationException";
|
|
428
396
|
$fault = "server";
|
|
429
397
|
Message;
|
|
@@ -436,9 +404,8 @@ class UpdateChimeWebhookConfigurationException extends ChatbotServiceException_1
|
|
|
436
404
|
Object.setPrototypeOf(this, UpdateChimeWebhookConfigurationException.prototype);
|
|
437
405
|
this.Message = opts.Message;
|
|
438
406
|
}
|
|
439
|
-
}
|
|
440
|
-
exports.
|
|
441
|
-
class UpdateTeamsChannelConfigurationException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
407
|
+
};
|
|
408
|
+
exports.UpdateTeamsChannelConfigurationException = class UpdateTeamsChannelConfigurationException extends __BaseException {
|
|
442
409
|
name = "UpdateTeamsChannelConfigurationException";
|
|
443
410
|
$fault = "server";
|
|
444
411
|
Message;
|
|
@@ -451,9 +418,8 @@ class UpdateTeamsChannelConfigurationException extends ChatbotServiceException_1
|
|
|
451
418
|
Object.setPrototypeOf(this, UpdateTeamsChannelConfigurationException.prototype);
|
|
452
419
|
this.Message = opts.Message;
|
|
453
420
|
}
|
|
454
|
-
}
|
|
455
|
-
exports.
|
|
456
|
-
class UpdateSlackChannelConfigurationException extends ChatbotServiceException_1.ChatbotServiceException {
|
|
421
|
+
};
|
|
422
|
+
exports.UpdateSlackChannelConfigurationException = class UpdateSlackChannelConfigurationException extends __BaseException {
|
|
457
423
|
name = "UpdateSlackChannelConfigurationException";
|
|
458
424
|
$fault = "server";
|
|
459
425
|
Message;
|
|
@@ -466,5 +432,4 @@ class UpdateSlackChannelConfigurationException extends ChatbotServiceException_1
|
|
|
466
432
|
Object.setPrototypeOf(this, UpdateSlackChannelConfigurationException.prototype);
|
|
467
433
|
this.Message = opts.Message;
|
|
468
434
|
}
|
|
469
|
-
}
|
|
470
|
-
exports.UpdateSlackChannelConfigurationException = UpdateSlackChannelConfigurationException;
|
|
435
|
+
};
|
|
@@ -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,43 +1,39 @@
|
|
|
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 { defaultChatbotHttpAuthSchemeProvider } = 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: "2017-10-11",
|
|
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 ?? defaultChatbotHttpAuthSchemeProvider,
|
|
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.chatbot",
|
|
32
|
-
errorTypeRegistries
|
|
29
|
+
errorTypeRegistries,
|
|
33
30
|
xmlNamespace: "http://wheatley.amazonaws.com/orchestration/2017-10-11/",
|
|
34
31
|
version: "2017-10-11",
|
|
35
32
|
serviceTarget: "WheatleyOrchestration_20171011",
|
|
36
33
|
},
|
|
37
34
|
serviceId: config?.serviceId ?? "chatbot",
|
|
38
|
-
urlParser: config?.urlParser ??
|
|
39
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
40
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
35
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
36
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
37
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
41
38
|
};
|
|
42
39
|
};
|
|
43
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|