@aws-sdk/client-connect 3.1074.0 → 3.1076.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.
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: ConnectClientConfig) => {
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
15
15
  retryMode: string | import("@smithy/types").Provider<string>;
16
16
  sha256: import("@smithy/types").HashConstructor;
17
- streamCollector: import("@smithy/types").StreamCollector;
17
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
18
18
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
19
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
20
  cacheMiddleware?: boolean | undefined;
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: ConnectClientConfig) => {
15
15
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
16
16
  retryMode: string | import("@smithy/types").Provider<string>;
17
17
  sha256: import("@smithy/types").HashConstructor;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: ConnectClientConfig) => {
15
15
  apiVersion: string;
16
16
  urlParser: import("@smithy/types").UrlParser;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  base64Decoder: import("@smithy/types").Decoder;
20
20
  base64Encoder: (_input: Uint8Array | string) => string;
21
21
  utf8Decoder: import("@smithy/types").Decoder;
@@ -21,7 +21,13 @@ export declare const getRuntimeConfig: (config: ConnectClientConfig) => {
21
21
  | RequestHandler;
22
22
  retryMode: string | import("@smithy/types").Provider<string>;
23
23
  sha256: import("@smithy/types").HashConstructor;
24
- streamCollector: import("@smithy/types").StreamCollector;
24
+ streamCollector: (
25
+ stream:
26
+ | import("stream").Readable
27
+ | import("stream/web").ReadableStream
28
+ | ReadableStream
29
+ | Blob
30
+ ) => Promise<Uint8Array>;
25
31
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
26
32
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
27
33
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
@@ -22,7 +22,13 @@ export declare const getRuntimeConfig: (config: ConnectClientConfig) => {
22
22
  | import("@smithy/core/protocols").HttpHandler<any>;
23
23
  retryMode: string | import("@smithy/types").Provider<string>;
24
24
  sha256: import("@smithy/types").HashConstructor;
25
- streamCollector: import("@smithy/types").StreamCollector;
25
+ streamCollector: (
26
+ stream:
27
+ | import("stream").Readable
28
+ | import("stream/web").ReadableStream
29
+ | ReadableStream
30
+ | Blob
31
+ ) => Promise<Uint8Array>;
26
32
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
27
33
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
28
34
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -20,7 +20,13 @@ export declare const getRuntimeConfig: (config: ConnectClientConfig) => {
20
20
  apiVersion: string;
21
21
  urlParser: import("@smithy/types").UrlParser;
22
22
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
23
- streamCollector: import("@smithy/types").StreamCollector;
23
+ streamCollector: (
24
+ stream:
25
+ | import("stream").Readable
26
+ | import("stream/web").ReadableStream
27
+ | ReadableStream
28
+ | Blob
29
+ ) => Promise<Uint8Array>;
24
30
  base64Decoder: import("@smithy/types").Decoder;
25
31
  base64Encoder: (_input: Uint8Array | string) => string;
26
32
  utf8Decoder: import("@smithy/types").Decoder;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connect",
3
3
  "description": "AWS SDK for JavaScript Connect Client for Node.js, Browser and React Native",
4
- "version": "3.1074.0",
4
+ "version": "3.1076.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",
@@ -21,13 +21,13 @@
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.23",
25
- "@aws-sdk/credential-provider-node": "^3.972.58",
26
- "@aws-sdk/types": "^3.973.13",
27
- "@smithy/core": "^3.24.6",
28
- "@smithy/fetch-http-handler": "^5.4.6",
29
- "@smithy/node-http-handler": "^4.7.6",
30
- "@smithy/types": "^4.14.3",
24
+ "@aws-sdk/core": "^3.974.24",
25
+ "@aws-sdk/credential-provider-node": "^3.972.59",
26
+ "@aws-sdk/types": "^3.973.14",
27
+ "@smithy/core": "^3.27.0",
28
+ "@smithy/fetch-http-handler": "^5.6.0",
29
+ "@smithy/node-http-handler": "^4.9.0",
30
+ "@smithy/types": "^4.15.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
@@ -1,40 +0,0 @@
1
- const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
- exports.defaultConnectHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
- return {
5
- operation: getSmithyContext(context).operation,
6
- region: await normalizeProvider(config.region)() || (() => {
7
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
- })(),
9
- };
10
- };
11
- function createAwsAuthSigv4HttpAuthOption(authParameters) {
12
- return {
13
- schemeId: "aws.auth#sigv4",
14
- signingProperties: {
15
- name: "connect",
16
- region: authParameters.region,
17
- },
18
- propertiesExtractor: (config, context) => ({
19
- signingProperties: {
20
- config,
21
- context,
22
- },
23
- }),
24
- };
25
- }
26
- exports.defaultConnectHttpAuthSchemeProvider = (authParameters) => {
27
- const options = [];
28
- switch (authParameters.operation) {
29
- default: {
30
- options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
31
- }
32
- }
33
- return options;
34
- };
35
- exports.resolveHttpAuthSchemeConfig = (config) => {
36
- const config_0 = resolveAwsSdkSigV4Config(config);
37
- return Object.assign(config_0, {
38
- authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
- });
40
- };
@@ -1,49 +0,0 @@
1
- const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
2
- const k = "ref";
3
- const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
4
- const _data = {
5
- conditions: [
6
- [c, [g]],
7
- [c, j],
8
- ["aws.partition", j, d],
9
- [e, [{ [k]: "UseFIPS" }, b]],
10
- [e, [{ [k]: "UseDualStack" }, b]],
11
- [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
12
- [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
13
- ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
14
- ],
15
- results: [
16
- [a],
17
- [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
18
- [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
19
- [g, i],
20
- ["https://connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
21
- [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
22
- ["https://connect.{Region}.amazonaws.com", i],
23
- ["https://connect-fips.{Region}.{PartitionResult#dnsSuffix}", i],
24
- [a, "FIPS is enabled but this partition does not support FIPS"],
25
- ["https://connect.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
26
- [a, "DualStack is enabled but this partition does not support DualStack"],
27
- ["https://connect.{Region}.{PartitionResult#dnsSuffix}", i],
28
- [a, "Invalid Configuration: Missing Region"]
29
- ]
30
- };
31
- const root = 2;
32
- const r = 100_000_000;
33
- const nodes = new Int32Array([
34
- -1, 1, -1,
35
- 0, 13, 3,
36
- 1, 4, r + 12,
37
- 2, 5, r + 12,
38
- 3, 8, 6,
39
- 4, 7, r + 11,
40
- 5, r + 9, r + 10,
41
- 4, 11, 9,
42
- 6, 10, r + 8,
43
- 7, r + 6, r + 7,
44
- 5, 12, r + 5,
45
- 6, r + 4, r + 5,
46
- 3, r + 1, 14,
47
- 4, r + 2, r + 3,
48
- ]);
49
- exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,14 +0,0 @@
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({
5
- size: 50,
6
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
- });
8
- exports.defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
- endpointParams: endpointParams,
11
- logger: context.logger,
12
- }));
13
- };
14
- customEndpointFunctions.aws = awsEndpointFunctions;
@@ -1,8 +0,0 @@
1
- const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
- exports.__ServiceException = __ServiceException;
3
- exports.ConnectServiceException = class ConnectServiceException extends __ServiceException {
4
- constructor(options) {
5
- super(options);
6
- Object.setPrototypeOf(this, ConnectServiceException.prototype);
7
- }
8
- };
@@ -1,403 +0,0 @@
1
- const { ConnectServiceException: __BaseException } = require("./ConnectServiceException");
2
- exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- Message;
6
- constructor(opts) {
7
- super({
8
- name: "AccessDeniedException",
9
- $fault: "client",
10
- ...opts,
11
- });
12
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
- this.Message = opts.Message;
14
- }
15
- };
16
- exports.InternalServiceException = class InternalServiceException extends __BaseException {
17
- name = "InternalServiceException";
18
- $fault = "server";
19
- Message;
20
- constructor(opts) {
21
- super({
22
- name: "InternalServiceException",
23
- $fault: "server",
24
- ...opts,
25
- });
26
- Object.setPrototypeOf(this, InternalServiceException.prototype);
27
- this.Message = opts.Message;
28
- }
29
- };
30
- exports.InvalidParameterException = class InvalidParameterException extends __BaseException {
31
- name = "InvalidParameterException";
32
- $fault = "client";
33
- Message;
34
- constructor(opts) {
35
- super({
36
- name: "InvalidParameterException",
37
- $fault: "client",
38
- ...opts,
39
- });
40
- Object.setPrototypeOf(this, InvalidParameterException.prototype);
41
- this.Message = opts.Message;
42
- }
43
- };
44
- exports.ResourceConflictException = class ResourceConflictException extends __BaseException {
45
- name = "ResourceConflictException";
46
- $fault = "client";
47
- Message;
48
- constructor(opts) {
49
- super({
50
- name: "ResourceConflictException",
51
- $fault: "client",
52
- ...opts,
53
- });
54
- Object.setPrototypeOf(this, ResourceConflictException.prototype);
55
- this.Message = opts.Message;
56
- }
57
- };
58
- exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
59
- name = "ResourceNotFoundException";
60
- $fault = "client";
61
- Message;
62
- constructor(opts) {
63
- super({
64
- name: "ResourceNotFoundException",
65
- $fault: "client",
66
- ...opts,
67
- });
68
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
69
- this.Message = opts.Message;
70
- }
71
- };
72
- exports.ThrottlingException = class ThrottlingException extends __BaseException {
73
- name = "ThrottlingException";
74
- $fault = "client";
75
- Message;
76
- constructor(opts) {
77
- super({
78
- name: "ThrottlingException",
79
- $fault: "client",
80
- ...opts,
81
- });
82
- Object.setPrototypeOf(this, ThrottlingException.prototype);
83
- this.Message = opts.Message;
84
- }
85
- };
86
- exports.InvalidRequestException = class InvalidRequestException extends __BaseException {
87
- name = "InvalidRequestException";
88
- $fault = "client";
89
- Message;
90
- Reason;
91
- constructor(opts) {
92
- super({
93
- name: "InvalidRequestException",
94
- $fault: "client",
95
- ...opts,
96
- });
97
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
98
- this.Message = opts.Message;
99
- this.Reason = opts.Reason;
100
- }
101
- };
102
- exports.ServiceQuotaExceededException = class ServiceQuotaExceededException extends __BaseException {
103
- name = "ServiceQuotaExceededException";
104
- $fault = "client";
105
- Message;
106
- Reason;
107
- constructor(opts) {
108
- super({
109
- name: "ServiceQuotaExceededException",
110
- $fault: "client",
111
- ...opts,
112
- });
113
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
114
- this.Message = opts.Message;
115
- this.Reason = opts.Reason;
116
- }
117
- };
118
- exports.LimitExceededException = class LimitExceededException extends __BaseException {
119
- name = "LimitExceededException";
120
- $fault = "client";
121
- Message;
122
- constructor(opts) {
123
- super({
124
- name: "LimitExceededException",
125
- $fault: "client",
126
- ...opts,
127
- });
128
- Object.setPrototypeOf(this, LimitExceededException.prototype);
129
- this.Message = opts.Message;
130
- }
131
- };
132
- exports.IdempotencyException = class IdempotencyException extends __BaseException {
133
- name = "IdempotencyException";
134
- $fault = "client";
135
- Message;
136
- constructor(opts) {
137
- super({
138
- name: "IdempotencyException",
139
- $fault: "client",
140
- ...opts,
141
- });
142
- Object.setPrototypeOf(this, IdempotencyException.prototype);
143
- this.Message = opts.Message;
144
- }
145
- };
146
- exports.ConditionalOperationFailedException = class ConditionalOperationFailedException extends __BaseException {
147
- name = "ConditionalOperationFailedException";
148
- $fault = "client";
149
- Message;
150
- constructor(opts) {
151
- super({
152
- name: "ConditionalOperationFailedException",
153
- $fault: "client",
154
- ...opts,
155
- });
156
- Object.setPrototypeOf(this, ConditionalOperationFailedException.prototype);
157
- this.Message = opts.Message;
158
- }
159
- };
160
- exports.DuplicateResourceException = class DuplicateResourceException extends __BaseException {
161
- name = "DuplicateResourceException";
162
- $fault = "client";
163
- Message;
164
- constructor(opts) {
165
- super({
166
- name: "DuplicateResourceException",
167
- $fault: "client",
168
- ...opts,
169
- });
170
- Object.setPrototypeOf(this, DuplicateResourceException.prototype);
171
- this.Message = opts.Message;
172
- }
173
- };
174
- exports.ConflictException = class ConflictException extends __BaseException {
175
- name = "ConflictException";
176
- $fault = "client";
177
- Message;
178
- constructor(opts) {
179
- super({
180
- name: "ConflictException",
181
- $fault: "client",
182
- ...opts,
183
- });
184
- Object.setPrototypeOf(this, ConflictException.prototype);
185
- this.Message = opts.Message;
186
- }
187
- };
188
- exports.InvalidContactFlowException = class InvalidContactFlowException extends __BaseException {
189
- name = "InvalidContactFlowException";
190
- $fault = "client";
191
- problems;
192
- constructor(opts) {
193
- super({
194
- name: "InvalidContactFlowException",
195
- $fault: "client",
196
- ...opts,
197
- });
198
- Object.setPrototypeOf(this, InvalidContactFlowException.prototype);
199
- this.problems = opts.problems;
200
- }
201
- };
202
- exports.InvalidContactFlowModuleException = class InvalidContactFlowModuleException extends __BaseException {
203
- name = "InvalidContactFlowModuleException";
204
- $fault = "client";
205
- Problems;
206
- constructor(opts) {
207
- super({
208
- name: "InvalidContactFlowModuleException",
209
- $fault: "client",
210
- ...opts,
211
- });
212
- Object.setPrototypeOf(this, InvalidContactFlowModuleException.prototype);
213
- this.Problems = opts.Problems;
214
- }
215
- };
216
- exports.PropertyValidationException = class PropertyValidationException extends __BaseException {
217
- name = "PropertyValidationException";
218
- $fault = "client";
219
- Message;
220
- PropertyList;
221
- constructor(opts) {
222
- super({
223
- name: "PropertyValidationException",
224
- $fault: "client",
225
- ...opts,
226
- });
227
- Object.setPrototypeOf(this, PropertyValidationException.prototype);
228
- this.Message = opts.Message;
229
- this.PropertyList = opts.PropertyList;
230
- }
231
- };
232
- exports.InvalidTestCaseException = class InvalidTestCaseException extends __BaseException {
233
- name = "InvalidTestCaseException";
234
- $fault = "client";
235
- Problems;
236
- constructor(opts) {
237
- super({
238
- name: "InvalidTestCaseException",
239
- $fault: "client",
240
- ...opts,
241
- });
242
- Object.setPrototypeOf(this, InvalidTestCaseException.prototype);
243
- this.Problems = opts.Problems;
244
- }
245
- };
246
- exports.ResourceNotReadyException = class ResourceNotReadyException extends __BaseException {
247
- name = "ResourceNotReadyException";
248
- $fault = "client";
249
- Message;
250
- constructor(opts) {
251
- super({
252
- name: "ResourceNotReadyException",
253
- $fault: "client",
254
- ...opts,
255
- });
256
- Object.setPrototypeOf(this, ResourceNotReadyException.prototype);
257
- this.Message = opts.Message;
258
- }
259
- };
260
- exports.ResourceInUseException = class ResourceInUseException extends __BaseException {
261
- name = "ResourceInUseException";
262
- $fault = "client";
263
- Message;
264
- ResourceType;
265
- ResourceId;
266
- constructor(opts) {
267
- super({
268
- name: "ResourceInUseException",
269
- $fault: "client",
270
- ...opts,
271
- });
272
- Object.setPrototypeOf(this, ResourceInUseException.prototype);
273
- this.Message = opts.Message;
274
- this.ResourceType = opts.ResourceType;
275
- this.ResourceId = opts.ResourceId;
276
- }
277
- };
278
- exports.TooManyRequestsException = class TooManyRequestsException extends __BaseException {
279
- name = "TooManyRequestsException";
280
- $fault = "client";
281
- Message;
282
- constructor(opts) {
283
- super({
284
- name: "TooManyRequestsException",
285
- $fault: "client",
286
- ...opts,
287
- });
288
- Object.setPrototypeOf(this, TooManyRequestsException.prototype);
289
- this.Message = opts.Message;
290
- }
291
- };
292
- exports.ContactFlowNotPublishedException = class ContactFlowNotPublishedException extends __BaseException {
293
- name = "ContactFlowNotPublishedException";
294
- $fault = "client";
295
- Message;
296
- constructor(opts) {
297
- super({
298
- name: "ContactFlowNotPublishedException",
299
- $fault: "client",
300
- ...opts,
301
- });
302
- Object.setPrototypeOf(this, ContactFlowNotPublishedException.prototype);
303
- this.Message = opts.Message;
304
- }
305
- };
306
- exports.UserNotFoundException = class UserNotFoundException extends __BaseException {
307
- name = "UserNotFoundException";
308
- $fault = "client";
309
- Message;
310
- constructor(opts) {
311
- super({
312
- name: "UserNotFoundException",
313
- $fault: "client",
314
- ...opts,
315
- });
316
- Object.setPrototypeOf(this, UserNotFoundException.prototype);
317
- this.Message = opts.Message;
318
- }
319
- };
320
- exports.OutputTypeNotFoundException = class OutputTypeNotFoundException extends __BaseException {
321
- name = "OutputTypeNotFoundException";
322
- $fault = "client";
323
- Message;
324
- constructor(opts) {
325
- super({
326
- name: "OutputTypeNotFoundException",
327
- $fault: "client",
328
- ...opts,
329
- });
330
- Object.setPrototypeOf(this, OutputTypeNotFoundException.prototype);
331
- this.Message = opts.Message;
332
- }
333
- };
334
- exports.InvalidActiveRegionException = class InvalidActiveRegionException extends __BaseException {
335
- name = "InvalidActiveRegionException";
336
- $fault = "client";
337
- Message;
338
- constructor(opts) {
339
- super({
340
- name: "InvalidActiveRegionException",
341
- $fault: "client",
342
- ...opts,
343
- });
344
- Object.setPrototypeOf(this, InvalidActiveRegionException.prototype);
345
- this.Message = opts.Message;
346
- }
347
- };
348
- exports.MaximumResultReturnedException = class MaximumResultReturnedException extends __BaseException {
349
- name = "MaximumResultReturnedException";
350
- $fault = "client";
351
- Message;
352
- constructor(opts) {
353
- super({
354
- name: "MaximumResultReturnedException",
355
- $fault: "client",
356
- ...opts,
357
- });
358
- Object.setPrototypeOf(this, MaximumResultReturnedException.prototype);
359
- this.Message = opts.Message;
360
- }
361
- };
362
- exports.DestinationNotAllowedException = class DestinationNotAllowedException extends __BaseException {
363
- name = "DestinationNotAllowedException";
364
- $fault = "client";
365
- Message;
366
- constructor(opts) {
367
- super({
368
- name: "DestinationNotAllowedException",
369
- $fault: "client",
370
- ...opts,
371
- });
372
- Object.setPrototypeOf(this, DestinationNotAllowedException.prototype);
373
- this.Message = opts.Message;
374
- }
375
- };
376
- exports.OutboundContactNotPermittedException = class OutboundContactNotPermittedException extends __BaseException {
377
- name = "OutboundContactNotPermittedException";
378
- $fault = "client";
379
- Message;
380
- constructor(opts) {
381
- super({
382
- name: "OutboundContactNotPermittedException",
383
- $fault: "client",
384
- ...opts,
385
- });
386
- Object.setPrototypeOf(this, OutboundContactNotPermittedException.prototype);
387
- this.Message = opts.Message;
388
- }
389
- };
390
- exports.ContactNotFoundException = class ContactNotFoundException extends __BaseException {
391
- name = "ContactNotFoundException";
392
- $fault = "client";
393
- Message;
394
- constructor(opts) {
395
- super({
396
- name: "ContactNotFoundException",
397
- $fault: "client",
398
- ...opts,
399
- });
400
- Object.setPrototypeOf(this, ContactNotFoundException.prototype);
401
- this.Message = opts.Message;
402
- }
403
- };
@@ -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;