@aws-sdk/client-connectparticipant 3.52.0 → 3.54.1

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.
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CompleteAttachmentUploadCommandInput, CompleteAttachmentUploadCommandOutput } from "./commands/CompleteAttachmentUploadCommand";
10
10
  import { CreateParticipantConnectionCommandInput, CreateParticipantConnectionCommandOutput } from "./commands/CreateParticipantConnectionCommand";
11
11
  import { DisconnectParticipantCommandInput, DisconnectParticipantCommandOutput } from "./commands/DisconnectParticipantCommand";
@@ -36,7 +36,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
36
36
  * A function that can calculate the length of a request body.
37
37
  * @internal
38
38
  */
39
- bodyLengthChecker?: (body: any) => number | undefined;
39
+ bodyLengthChecker?: __BodyLengthCalculator;
40
40
  /**
41
41
  * A function that converts a stream into an array of bytes.
42
42
  * @internal
@@ -3,3 +3,4 @@ export * from "./ConnectParticipantClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { ConnectParticipantServiceException } from "./models/ConnectParticipantServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from ConnectParticipant service.
4
+ */
5
+ export declare class ConnectParticipantServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,11 +1,16 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { ConnectParticipantServiceException as __BaseException } from "./ConnectParticipantServiceException";
2
3
  /**
3
4
  * <p>You do not have sufficient access to perform this action.</p>
4
5
  */
5
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
6
- name: "AccessDeniedException";
7
- $fault: "client";
6
+ export declare class AccessDeniedException extends __BaseException {
7
+ readonly name: "AccessDeniedException";
8
+ readonly $fault: "client";
8
9
  Message: string | undefined;
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
9
14
  }
10
15
  export interface CompleteAttachmentUploadRequest {
11
16
  /**
@@ -39,42 +44,62 @@ export declare namespace CompleteAttachmentUploadResponse {
39
44
  /**
40
45
  * <p>An attachment with that identifier is already being uploaded.</p>
41
46
  */
42
- export interface ConflictException extends __SmithyException, $MetadataBearer {
43
- name: "ConflictException";
44
- $fault: "client";
47
+ export declare class ConflictException extends __BaseException {
48
+ readonly name: "ConflictException";
49
+ readonly $fault: "client";
45
50
  Message: string | undefined;
51
+ /**
52
+ * @internal
53
+ */
54
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
46
55
  }
47
56
  /**
48
57
  * <p>This exception occurs when there is an internal failure in the Amazon Connect service.</p>
49
58
  */
50
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
51
- name: "InternalServerException";
52
- $fault: "server";
59
+ export declare class InternalServerException extends __BaseException {
60
+ readonly name: "InternalServerException";
61
+ readonly $fault: "server";
53
62
  Message: string | undefined;
63
+ /**
64
+ * @internal
65
+ */
66
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
54
67
  }
55
68
  /**
56
69
  * <p>The number of attachments per contact exceeds the quota.</p>
57
70
  */
58
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
59
- name: "ServiceQuotaExceededException";
60
- $fault: "client";
71
+ export declare class ServiceQuotaExceededException extends __BaseException {
72
+ readonly name: "ServiceQuotaExceededException";
73
+ readonly $fault: "client";
61
74
  Message: string | undefined;
75
+ /**
76
+ * @internal
77
+ */
78
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
62
79
  }
63
80
  /**
64
81
  * <p>The request was denied due to request throttling.</p>
65
82
  */
66
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
67
- name: "ThrottlingException";
68
- $fault: "client";
83
+ export declare class ThrottlingException extends __BaseException {
84
+ readonly name: "ThrottlingException";
85
+ readonly $fault: "client";
69
86
  Message: string | undefined;
87
+ /**
88
+ * @internal
89
+ */
90
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
70
91
  }
71
92
  /**
72
93
  * <p>The input fails to satisfy the constraints specified by Amazon Connect.</p>
73
94
  */
74
- export interface ValidationException extends __SmithyException, $MetadataBearer {
75
- name: "ValidationException";
76
- $fault: "client";
95
+ export declare class ValidationException extends __BaseException {
96
+ readonly name: "ValidationException";
97
+ readonly $fault: "client";
77
98
  Message: string | undefined;
99
+ /**
100
+ * @internal
101
+ */
102
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
78
103
  }
79
104
  export declare enum ConnectionType {
80
105
  CONNECTION_CREDENTIALS = "CONNECTION_CREDENTIALS",
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: ConnectParticipantClientConfig)
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: ConnectParticipantClientConfig)
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: ConnectParticipantClientConfig)
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CompleteAttachmentUploadCommandInput, CompleteAttachmentUploadCommandOutput } from "./commands/CompleteAttachmentUploadCommand";
10
10
  import { CreateParticipantConnectionCommandInput, CreateParticipantConnectionCommandOutput } from "./commands/CreateParticipantConnectionCommand";
11
11
  import { DisconnectParticipantCommandInput, DisconnectParticipantCommandOutput } from "./commands/DisconnectParticipantCommand";
@@ -24,7 +24,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
24
24
 
25
25
  urlParser?: __UrlParser;
26
26
 
27
- bodyLengthChecker?: (body: any) => number | undefined;
27
+ bodyLengthChecker?: __BodyLengthCalculator;
28
28
 
29
29
  streamCollector?: __StreamCollector;
30
30
 
@@ -3,3 +3,4 @@ export * from "./ConnectParticipantClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { ConnectParticipantServiceException } from "./models/ConnectParticipantServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class ConnectParticipantServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,9 +1,12 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { ConnectParticipantServiceException as __BaseException } from "./ConnectParticipantServiceException";
2
3
 
3
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
4
- name: "AccessDeniedException";
5
- $fault: "client";
4
+ export declare class AccessDeniedException extends __BaseException {
5
+ readonly name: "AccessDeniedException";
6
+ readonly $fault: "client";
6
7
  Message: string | undefined;
8
+
9
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
7
10
  }
8
11
  export interface CompleteAttachmentUploadRequest {
9
12
 
@@ -24,34 +27,44 @@ export declare namespace CompleteAttachmentUploadResponse {
24
27
  const filterSensitiveLog: (obj: CompleteAttachmentUploadResponse) => any;
25
28
  }
26
29
 
27
- export interface ConflictException extends __SmithyException, $MetadataBearer {
28
- name: "ConflictException";
29
- $fault: "client";
30
+ export declare class ConflictException extends __BaseException {
31
+ readonly name: "ConflictException";
32
+ readonly $fault: "client";
30
33
  Message: string | undefined;
34
+
35
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
31
36
  }
32
37
 
33
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
34
- name: "InternalServerException";
35
- $fault: "server";
38
+ export declare class InternalServerException extends __BaseException {
39
+ readonly name: "InternalServerException";
40
+ readonly $fault: "server";
36
41
  Message: string | undefined;
42
+
43
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
37
44
  }
38
45
 
39
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
40
- name: "ServiceQuotaExceededException";
41
- $fault: "client";
46
+ export declare class ServiceQuotaExceededException extends __BaseException {
47
+ readonly name: "ServiceQuotaExceededException";
48
+ readonly $fault: "client";
42
49
  Message: string | undefined;
50
+
51
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
43
52
  }
44
53
 
45
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
46
- name: "ThrottlingException";
47
- $fault: "client";
54
+ export declare class ThrottlingException extends __BaseException {
55
+ readonly name: "ThrottlingException";
56
+ readonly $fault: "client";
48
57
  Message: string | undefined;
58
+
59
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
49
60
  }
50
61
 
51
- export interface ValidationException extends __SmithyException, $MetadataBearer {
52
- name: "ValidationException";
53
- $fault: "client";
62
+ export declare class ValidationException extends __BaseException {
63
+ readonly name: "ValidationException";
64
+ readonly $fault: "client";
54
65
  Message: string | undefined;
66
+
67
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
55
68
  }
56
69
  export declare enum ConnectionType {
57
70
  CONNECTION_CREDENTIALS = "CONNECTION_CREDENTIALS",
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: ConnectParticipantClientConfig)
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: ConnectParticipantClientConfig)
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: ConnectParticipantClientConfig)
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connectparticipant",
3
3
  "description": "AWS SDK for JavaScript Connectparticipant Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.54.1",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.54.1",
22
+ "@aws-sdk/config-resolver": "3.54.1",
23
+ "@aws-sdk/credential-provider-node": "3.54.1",
24
+ "@aws-sdk/fetch-http-handler": "3.54.1",
25
+ "@aws-sdk/hash-node": "3.54.1",
26
+ "@aws-sdk/invalid-dependency": "3.54.1",
27
+ "@aws-sdk/middleware-content-length": "3.54.1",
28
+ "@aws-sdk/middleware-host-header": "3.54.1",
29
+ "@aws-sdk/middleware-logger": "3.54.1",
30
+ "@aws-sdk/middleware-retry": "3.54.1",
31
+ "@aws-sdk/middleware-serde": "3.54.1",
32
+ "@aws-sdk/middleware-signing": "3.54.1",
33
+ "@aws-sdk/middleware-stack": "3.54.1",
34
+ "@aws-sdk/middleware-user-agent": "3.54.1",
35
+ "@aws-sdk/node-config-provider": "3.54.1",
36
+ "@aws-sdk/node-http-handler": "3.54.1",
37
+ "@aws-sdk/protocol-http": "3.54.1",
38
+ "@aws-sdk/smithy-client": "3.54.1",
39
+ "@aws-sdk/types": "3.54.1",
40
+ "@aws-sdk/url-parser": "3.54.1",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.52.0",
44
- "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
43
+ "@aws-sdk/util-body-length-browser": "3.54.0",
44
+ "@aws-sdk/util-body-length-node": "3.54.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.54.1",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.1",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.1",
48
+ "@aws-sdk/util-user-agent-node": "3.54.1",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0",