@aws-sdk/client-lex-runtime-v2 3.52.0 → 3.53.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.
@@ -2,3 +2,4 @@ export * from "./LexRuntimeV2";
2
2
  export * from "./LexRuntimeV2Client";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { LexRuntimeV2ServiceException } from "./models/LexRuntimeV2ServiceException";
@@ -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 LexRuntimeV2 service.
4
+ */
5
+ export declare class LexRuntimeV2ServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,13 +1,17 @@
1
1
  /// <reference types="node" />
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
3
3
  import { Readable } from "stream";
4
+ import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException";
4
5
  /**
5
6
  * <p></p>
6
7
  */
7
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
8
- name: "AccessDeniedException";
9
- $fault: "client";
10
- message: string | undefined;
8
+ export declare class AccessDeniedException extends __BaseException {
9
+ readonly name: "AccessDeniedException";
10
+ readonly $fault: "client";
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
11
15
  }
12
16
  /**
13
17
  * <p>The time that a context is active. You can specify the time to live
@@ -140,10 +144,13 @@ export declare namespace AudioResponseEvent {
140
144
  /**
141
145
  * <p></p>
142
146
  */
143
- export interface ConflictException extends __SmithyException, $MetadataBearer {
144
- name: "ConflictException";
145
- $fault: "client";
146
- message: string | undefined;
147
+ export declare class ConflictException extends __BaseException {
148
+ readonly name: "ConflictException";
149
+ readonly $fault: "client";
150
+ /**
151
+ * @internal
152
+ */
153
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
147
154
  }
148
155
  export interface DeleteSessionRequest {
149
156
  /**
@@ -198,34 +205,46 @@ export declare namespace DeleteSessionResponse {
198
205
  /**
199
206
  * <p></p>
200
207
  */
201
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
202
- name: "InternalServerException";
203
- $fault: "server";
204
- message: string | undefined;
208
+ export declare class InternalServerException extends __BaseException {
209
+ readonly name: "InternalServerException";
210
+ readonly $fault: "server";
211
+ /**
212
+ * @internal
213
+ */
214
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
205
215
  }
206
216
  /**
207
217
  * <p></p>
208
218
  */
209
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
210
- name: "ResourceNotFoundException";
211
- $fault: "client";
212
- message: string | undefined;
219
+ export declare class ResourceNotFoundException extends __BaseException {
220
+ readonly name: "ResourceNotFoundException";
221
+ readonly $fault: "client";
222
+ /**
223
+ * @internal
224
+ */
225
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
213
226
  }
214
227
  /**
215
228
  * <p></p>
216
229
  */
217
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
218
- name: "ThrottlingException";
219
- $fault: "client";
220
- message: string | undefined;
230
+ export declare class ThrottlingException extends __BaseException {
231
+ readonly name: "ThrottlingException";
232
+ readonly $fault: "client";
233
+ /**
234
+ * @internal
235
+ */
236
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
221
237
  }
222
238
  /**
223
239
  * <p></p>
224
240
  */
225
- export interface ValidationException extends __SmithyException, $MetadataBearer {
226
- name: "ValidationException";
227
- $fault: "client";
228
- message: string | undefined;
241
+ export declare class ValidationException extends __BaseException {
242
+ readonly name: "ValidationException";
243
+ readonly $fault: "client";
244
+ /**
245
+ * @internal
246
+ */
247
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
229
248
  }
230
249
  export interface GetSessionRequest {
231
250
  /**
@@ -612,18 +631,24 @@ export declare namespace RuntimeHints {
612
631
  /**
613
632
  * <p></p>
614
633
  */
615
- export interface BadGatewayException extends __SmithyException, $MetadataBearer {
616
- name: "BadGatewayException";
617
- $fault: "server";
618
- message: string | undefined;
634
+ export declare class BadGatewayException extends __BaseException {
635
+ readonly name: "BadGatewayException";
636
+ readonly $fault: "server";
637
+ /**
638
+ * @internal
639
+ */
640
+ constructor(opts: __ExceptionOptionType<BadGatewayException, __BaseException>);
619
641
  }
620
642
  /**
621
643
  * <p></p>
622
644
  */
623
- export interface DependencyFailedException extends __SmithyException, $MetadataBearer {
624
- name: "DependencyFailedException";
625
- $fault: "client";
626
- message: string | undefined;
645
+ export declare class DependencyFailedException extends __BaseException {
646
+ readonly name: "DependencyFailedException";
647
+ readonly $fault: "client";
648
+ /**
649
+ * @internal
650
+ */
651
+ constructor(opts: __ExceptionOptionType<DependencyFailedException, __BaseException>);
627
652
  }
628
653
  export interface PutSessionResponse {
629
654
  /**
@@ -2,3 +2,4 @@ export * from "./LexRuntimeV2";
2
2
  export * from "./LexRuntimeV2Client";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { LexRuntimeV2ServiceException } from "./models/LexRuntimeV2ServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class LexRuntimeV2ServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,11 +1,13 @@
1
1
 
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
3
3
  import { Readable } from "stream";
4
+ import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException";
4
5
 
5
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
6
- name: "AccessDeniedException";
7
- $fault: "client";
8
- message: string | undefined;
6
+ export declare class AccessDeniedException extends __BaseException {
7
+ readonly name: "AccessDeniedException";
8
+ readonly $fault: "client";
9
+
10
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
9
11
  }
10
12
 
11
13
  export interface ActiveContextTimeToLive {
@@ -62,10 +64,11 @@ export declare namespace AudioResponseEvent {
62
64
  const filterSensitiveLog: (obj: AudioResponseEvent) => any;
63
65
  }
64
66
 
65
- export interface ConflictException extends __SmithyException, $MetadataBearer {
66
- name: "ConflictException";
67
- $fault: "client";
68
- message: string | undefined;
67
+ export declare class ConflictException extends __BaseException {
68
+ readonly name: "ConflictException";
69
+ readonly $fault: "client";
70
+
71
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
69
72
  }
70
73
  export interface DeleteSessionRequest {
71
74
 
@@ -96,28 +99,32 @@ export declare namespace DeleteSessionResponse {
96
99
  const filterSensitiveLog: (obj: DeleteSessionResponse) => any;
97
100
  }
98
101
 
99
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
100
- name: "InternalServerException";
101
- $fault: "server";
102
- message: string | undefined;
102
+ export declare class InternalServerException extends __BaseException {
103
+ readonly name: "InternalServerException";
104
+ readonly $fault: "server";
105
+
106
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
103
107
  }
104
108
 
105
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
106
- name: "ResourceNotFoundException";
107
- $fault: "client";
108
- message: string | undefined;
109
+ export declare class ResourceNotFoundException extends __BaseException {
110
+ readonly name: "ResourceNotFoundException";
111
+ readonly $fault: "client";
112
+
113
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
109
114
  }
110
115
 
111
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
112
- name: "ThrottlingException";
113
- $fault: "client";
114
- message: string | undefined;
116
+ export declare class ThrottlingException extends __BaseException {
117
+ readonly name: "ThrottlingException";
118
+ readonly $fault: "client";
119
+
120
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
115
121
  }
116
122
 
117
- export interface ValidationException extends __SmithyException, $MetadataBearer {
118
- name: "ValidationException";
119
- $fault: "client";
120
- message: string | undefined;
123
+ export declare class ValidationException extends __BaseException {
124
+ readonly name: "ValidationException";
125
+ readonly $fault: "client";
126
+
127
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
121
128
  }
122
129
  export interface GetSessionRequest {
123
130
 
@@ -307,16 +314,18 @@ export declare namespace RuntimeHints {
307
314
  const filterSensitiveLog: (obj: RuntimeHints) => any;
308
315
  }
309
316
 
310
- export interface BadGatewayException extends __SmithyException, $MetadataBearer {
311
- name: "BadGatewayException";
312
- $fault: "server";
313
- message: string | undefined;
317
+ export declare class BadGatewayException extends __BaseException {
318
+ readonly name: "BadGatewayException";
319
+ readonly $fault: "server";
320
+
321
+ constructor(opts: __ExceptionOptionType<BadGatewayException, __BaseException>);
314
322
  }
315
323
 
316
- export interface DependencyFailedException extends __SmithyException, $MetadataBearer {
317
- name: "DependencyFailedException";
318
- $fault: "client";
319
- message: string | undefined;
324
+ export declare class DependencyFailedException extends __BaseException {
325
+ readonly name: "DependencyFailedException";
326
+ readonly $fault: "client";
327
+
328
+ constructor(opts: __ExceptionOptionType<DependencyFailedException, __BaseException>);
320
329
  }
321
330
  export interface PutSessionResponse {
322
331
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lex-runtime-v2",
3
3
  "description": "AWS SDK for JavaScript Lex Runtime V2 Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.0",
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,39 +18,39 @@
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/eventstream-handler-node": "3.52.0",
25
- "@aws-sdk/eventstream-serde-browser": "3.52.0",
26
- "@aws-sdk/eventstream-serde-config-resolver": "3.52.0",
27
- "@aws-sdk/eventstream-serde-node": "3.52.0",
28
- "@aws-sdk/fetch-http-handler": "3.52.0",
29
- "@aws-sdk/hash-node": "3.52.0",
30
- "@aws-sdk/invalid-dependency": "3.52.0",
31
- "@aws-sdk/middleware-content-length": "3.52.0",
32
- "@aws-sdk/middleware-eventstream": "3.52.0",
33
- "@aws-sdk/middleware-host-header": "3.52.0",
34
- "@aws-sdk/middleware-logger": "3.52.0",
35
- "@aws-sdk/middleware-retry": "3.52.0",
36
- "@aws-sdk/middleware-serde": "3.52.0",
37
- "@aws-sdk/middleware-signing": "3.52.0",
38
- "@aws-sdk/middleware-stack": "3.52.0",
39
- "@aws-sdk/middleware-user-agent": "3.52.0",
40
- "@aws-sdk/node-config-provider": "3.52.0",
41
- "@aws-sdk/node-http-handler": "3.52.0",
42
- "@aws-sdk/protocol-http": "3.52.0",
43
- "@aws-sdk/smithy-client": "3.52.0",
44
- "@aws-sdk/types": "3.52.0",
45
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/eventstream-handler-node": "3.53.0",
25
+ "@aws-sdk/eventstream-serde-browser": "3.53.0",
26
+ "@aws-sdk/eventstream-serde-config-resolver": "3.53.0",
27
+ "@aws-sdk/eventstream-serde-node": "3.53.0",
28
+ "@aws-sdk/fetch-http-handler": "3.53.0",
29
+ "@aws-sdk/hash-node": "3.53.0",
30
+ "@aws-sdk/invalid-dependency": "3.53.0",
31
+ "@aws-sdk/middleware-content-length": "3.53.0",
32
+ "@aws-sdk/middleware-eventstream": "3.53.0",
33
+ "@aws-sdk/middleware-host-header": "3.53.0",
34
+ "@aws-sdk/middleware-logger": "3.53.0",
35
+ "@aws-sdk/middleware-retry": "3.53.0",
36
+ "@aws-sdk/middleware-serde": "3.53.0",
37
+ "@aws-sdk/middleware-signing": "3.53.0",
38
+ "@aws-sdk/middleware-stack": "3.53.0",
39
+ "@aws-sdk/middleware-user-agent": "3.53.0",
40
+ "@aws-sdk/node-config-provider": "3.53.0",
41
+ "@aws-sdk/node-http-handler": "3.53.0",
42
+ "@aws-sdk/protocol-http": "3.53.0",
43
+ "@aws-sdk/smithy-client": "3.53.0",
44
+ "@aws-sdk/types": "3.53.0",
45
+ "@aws-sdk/url-parser": "3.53.0",
46
46
  "@aws-sdk/util-base64-browser": "3.52.0",
47
47
  "@aws-sdk/util-base64-node": "3.52.0",
48
48
  "@aws-sdk/util-body-length-browser": "3.52.0",
49
49
  "@aws-sdk/util-body-length-node": "3.52.0",
50
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
51
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
52
- "@aws-sdk/util-user-agent-browser": "3.52.0",
53
- "@aws-sdk/util-user-agent-node": "3.52.0",
50
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
51
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
53
+ "@aws-sdk/util-user-agent-node": "3.53.0",
54
54
  "@aws-sdk/util-utf8-browser": "3.52.0",
55
55
  "@aws-sdk/util-utf8-node": "3.52.0",
56
56
  "tslib": "^2.3.0"