@aws-sdk/client-lex-runtime-service 3.986.0 → 3.988.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.
@@ -94,7 +94,7 @@ const _rA = "requestAttributes";
94
94
  const _rAS = "retryAfterSeconds";
95
95
  const _rC = "responseCard";
96
96
  const _rISV = "recentIntentSummaryView";
97
- const _s = "streaming";
97
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.lexruntimeservice";
98
98
  const _sA = "sessionAttributes";
99
99
  const _sI = "sessionId";
100
100
  const _sL = "sentimentLabel";
@@ -103,10 +103,10 @@ const _sS = "sentimentScore";
103
103
  const _sT = "subTitle";
104
104
  const _sTE = "slotToElicit";
105
105
  const _sc = "score";
106
- const _se = "sensitive";
107
- const _ser = "server";
106
+ const _se = "server";
107
+ const _sen = "sensitive";
108
108
  const _sl = "slots";
109
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.lexruntimeservice";
109
+ const _st = "streaming";
110
110
  const _t = "text";
111
111
  const _tTL = "timeToLive";
112
112
  const _tTLIS = "timeToLiveInSeconds";
@@ -137,11 +137,85 @@ const n0 = "com.amazonaws.lexruntimeservice";
137
137
  import { TypeRegistry } from "@smithy/core/schema";
138
138
  import { BadGatewayException, BadRequestException, ConflictException, DependencyFailedException, InternalFailureException, LimitExceededException, LoopDetectedException, NotAcceptableException, NotFoundException, RequestTimeoutException, UnsupportedMediaTypeException, } from "../models/errors";
139
139
  import { LexRuntimeServiceServiceException } from "../models/LexRuntimeServiceServiceException";
140
- var BlobStream = [0, n0, _BS, { [_s]: 1 }, 42];
140
+ const _s_registry = TypeRegistry.for(_s);
141
+ export var LexRuntimeServiceServiceException$ = [-3, _s, "LexRuntimeServiceServiceException", 0, [], []];
142
+ _s_registry.registerError(LexRuntimeServiceServiceException$, LexRuntimeServiceServiceException);
143
+ const n0_registry = TypeRegistry.for(n0);
144
+ export var BadGatewayException$ = [-3, n0, _BGE,
145
+ { [_e]: _se, [_hE]: 502 },
146
+ [_M],
147
+ [0]
148
+ ];
149
+ n0_registry.registerError(BadGatewayException$, BadGatewayException);
150
+ export var BadRequestException$ = [-3, n0, _BRE,
151
+ { [_e]: _c, [_hE]: 400 },
152
+ [_m],
153
+ [0]
154
+ ];
155
+ n0_registry.registerError(BadRequestException$, BadRequestException);
156
+ export var ConflictException$ = [-3, n0, _CE,
157
+ { [_e]: _c, [_hE]: 409 },
158
+ [_m],
159
+ [0]
160
+ ];
161
+ n0_registry.registerError(ConflictException$, ConflictException);
162
+ export var DependencyFailedException$ = [-3, n0, _DFE,
163
+ { [_e]: _c, [_hE]: 424 },
164
+ [_M],
165
+ [0]
166
+ ];
167
+ n0_registry.registerError(DependencyFailedException$, DependencyFailedException);
168
+ export var InternalFailureException$ = [-3, n0, _IFE,
169
+ { [_e]: _se, [_hE]: 500 },
170
+ [_m],
171
+ [0]
172
+ ];
173
+ n0_registry.registerError(InternalFailureException$, InternalFailureException);
174
+ export var LimitExceededException$ = [-3, n0, _LEE,
175
+ { [_e]: _c, [_hE]: 429 },
176
+ [_rAS, _m],
177
+ [[0, { [_hH]: _RA }], 0]
178
+ ];
179
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
180
+ export var LoopDetectedException$ = [-3, n0, _LDE,
181
+ { [_e]: _se, [_hE]: 508 },
182
+ [_M],
183
+ [0]
184
+ ];
185
+ n0_registry.registerError(LoopDetectedException$, LoopDetectedException);
186
+ export var NotAcceptableException$ = [-3, n0, _NAE,
187
+ { [_e]: _c, [_hE]: 406 },
188
+ [_m],
189
+ [0]
190
+ ];
191
+ n0_registry.registerError(NotAcceptableException$, NotAcceptableException);
192
+ export var NotFoundException$ = [-3, n0, _NFE,
193
+ { [_e]: _c, [_hE]: 404 },
194
+ [_m],
195
+ [0]
196
+ ];
197
+ n0_registry.registerError(NotFoundException$, NotFoundException);
198
+ export var RequestTimeoutException$ = [-3, n0, _RTE,
199
+ { [_e]: _c, [_hE]: 408 },
200
+ [_m],
201
+ [0]
202
+ ];
203
+ n0_registry.registerError(RequestTimeoutException$, RequestTimeoutException);
204
+ export var UnsupportedMediaTypeException$ = [-3, n0, _UMTE,
205
+ { [_e]: _c, [_hE]: 415 },
206
+ [_m],
207
+ [0]
208
+ ];
209
+ n0_registry.registerError(UnsupportedMediaTypeException$, UnsupportedMediaTypeException);
210
+ export const errorTypeRegistries = [
211
+ _s_registry,
212
+ n0_registry,
213
+ ];
214
+ var BlobStream = [0, n0, _BS, { [_st]: 1 }, 42];
141
215
  var SensitiveString = [0, n0, _SS, 8, 0];
142
216
  var SensitiveStringUnbounded = [0, n0, _SSU, 8, 0];
143
- var SynthesizedJsonActiveContextsString = [0, n0, _SJACS, { [_mT]: _a, [_se]: 1 }, 0];
144
- var SynthesizedJsonAttributesString = [0, n0, _SJAS, { [_mT]: _a, [_se]: 1 }, 0];
217
+ var SynthesizedJsonActiveContextsString = [0, n0, _SJACS, { [_mT]: _a, [_sen]: 1 }, 0];
218
+ var SynthesizedJsonAttributesString = [0, n0, _SJAS, { [_mT]: _a, [_sen]: 1 }, 0];
145
219
  var SynthesizedJsonString = [0, n0, _SJS, { [_mT]: _a }, 0];
146
220
  var Text = [0, n0, _T, 8, 0];
147
221
  export var ActiveContext$ = [3, n0, _AC,
@@ -154,29 +228,11 @@ export var ActiveContextTimeToLive$ = [3, n0, _ACTTL,
154
228
  [_tTLIS, _tTLu],
155
229
  [1, 1]
156
230
  ];
157
- export var BadGatewayException$ = [-3, n0, _BGE,
158
- { [_e]: _ser, [_hE]: 502 },
159
- [_M],
160
- [0]
161
- ];
162
- TypeRegistry.for(n0).registerError(BadGatewayException$, BadGatewayException);
163
- export var BadRequestException$ = [-3, n0, _BRE,
164
- { [_e]: _c, [_hE]: 400 },
165
- [_m],
166
- [0]
167
- ];
168
- TypeRegistry.for(n0).registerError(BadRequestException$, BadRequestException);
169
231
  export var Button$ = [3, n0, _B,
170
232
  0,
171
233
  [_t, _v],
172
234
  [0, 0], 2
173
235
  ];
174
- export var ConflictException$ = [-3, n0, _CE,
175
- { [_e]: _c, [_hE]: 409 },
176
- [_m],
177
- [0]
178
- ];
179
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
180
236
  export var DeleteSessionRequest$ = [3, n0, _DSR,
181
237
  0,
182
238
  [_bN, _bA, _uI],
@@ -187,12 +243,6 @@ export var DeleteSessionResponse$ = [3, n0, _DSRe,
187
243
  [_bN, _bA, _uI, _sI],
188
244
  [0, 0, 0, 0]
189
245
  ];
190
- export var DependencyFailedException$ = [-3, n0, _DFE,
191
- { [_e]: _c, [_hE]: 424 },
192
- [_M],
193
- [0]
194
- ];
195
- TypeRegistry.for(n0).registerError(DependencyFailedException$, DependencyFailedException);
196
246
  export var DialogAction$ = [3, n0, _DA,
197
247
  0,
198
248
  [_ty, _iN, _sl, _sTE, _fS, _m, _mF],
@@ -223,36 +273,6 @@ export var IntentSummary$ = [3, n0, _IS,
223
273
  [_dAT, _iN, _cL, _sl, _cS, _fS, _sTE],
224
274
  [0, 0, 0, [() => StringMap, 0], 0, 0, 0], 1
225
275
  ];
226
- export var InternalFailureException$ = [-3, n0, _IFE,
227
- { [_e]: _ser, [_hE]: 500 },
228
- [_m],
229
- [0]
230
- ];
231
- TypeRegistry.for(n0).registerError(InternalFailureException$, InternalFailureException);
232
- export var LimitExceededException$ = [-3, n0, _LEE,
233
- { [_e]: _c, [_hE]: 429 },
234
- [_rAS, _m],
235
- [[0, { [_hH]: _RA }], 0]
236
- ];
237
- TypeRegistry.for(n0).registerError(LimitExceededException$, LimitExceededException);
238
- export var LoopDetectedException$ = [-3, n0, _LDE,
239
- { [_e]: _ser, [_hE]: 508 },
240
- [_M],
241
- [0]
242
- ];
243
- TypeRegistry.for(n0).registerError(LoopDetectedException$, LoopDetectedException);
244
- export var NotAcceptableException$ = [-3, n0, _NAE,
245
- { [_e]: _c, [_hE]: 406 },
246
- [_m],
247
- [0]
248
- ];
249
- TypeRegistry.for(n0).registerError(NotAcceptableException$, NotAcceptableException);
250
- export var NotFoundException$ = [-3, n0, _NFE,
251
- { [_e]: _c, [_hE]: 404 },
252
- [_m],
253
- [0]
254
- ];
255
- TypeRegistry.for(n0).registerError(NotFoundException$, NotFoundException);
256
276
  export var PostContentRequest$ = [3, n0, _PCR,
257
277
  0,
258
278
  [_bN, _bA, _uI, _cT, _iS, _sA, _rA, _ac, _aC],
@@ -288,12 +308,6 @@ export var PutSessionResponse$ = [3, n0, _PSRu,
288
308
  [_cT, _iN, _sl, _sA, _m, _eM, _mF, _dS, _sTE, _aS, _sI, _aC],
289
309
  [[0, { [_hH]: _CT }], [0, { [_hH]: _xalin }], [() => SynthesizedJsonString, { [_hH]: _xals }], [() => SynthesizedJsonString, { [_hH]: _xalsa }], [() => Text, { [_hH]: _xalm }], [() => SensitiveString, { [_hH]: _xalem }], [0, { [_hH]: _xalmf }], [0, { [_hH]: _xalds }], [0, { [_hH]: _xalste }], [() => BlobStream, 16], [0, { [_hH]: _xalsi }], [() => SynthesizedJsonActiveContextsString, { [_hH]: _xalac }]]
290
310
  ];
291
- export var RequestTimeoutException$ = [-3, n0, _RTE,
292
- { [_e]: _c, [_hE]: 408 },
293
- [_m],
294
- [0]
295
- ];
296
- TypeRegistry.for(n0).registerError(RequestTimeoutException$, RequestTimeoutException);
297
311
  export var ResponseCard$ = [3, n0, _RC,
298
312
  0,
299
313
  [_ve, _cT, _gA],
@@ -304,14 +318,6 @@ export var SentimentResponse$ = [3, n0, _SR,
304
318
  [_sL, _sS],
305
319
  [0, 0]
306
320
  ];
307
- export var UnsupportedMediaTypeException$ = [-3, n0, _UMTE,
308
- { [_e]: _c, [_hE]: 415 },
309
- [_m],
310
- [0]
311
- ];
312
- TypeRegistry.for(n0).registerError(UnsupportedMediaTypeException$, UnsupportedMediaTypeException);
313
- export var LexRuntimeServiceServiceException$ = [-3, _sm, "LexRuntimeServiceServiceException", 0, [], []];
314
- TypeRegistry.for(_sm).registerError(LexRuntimeServiceServiceException$, LexRuntimeServiceServiceException);
315
321
  var ActiveContextsList = [1, n0, _ACL,
316
322
  8, [() => ActiveContext$,
317
323
  0]
@@ -1,24 +1,34 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
- export declare var ActiveContext$: StaticStructureSchema;
3
- export declare var ActiveContextTimeToLive$: StaticStructureSchema;
3
+ export declare var LexRuntimeServiceServiceException$: StaticErrorSchema;
4
4
  export declare var BadGatewayException$: StaticErrorSchema;
5
5
  export declare var BadRequestException$: StaticErrorSchema;
6
- export declare var Button$: StaticStructureSchema;
7
6
  export declare var ConflictException$: StaticErrorSchema;
7
+ export declare var DependencyFailedException$: StaticErrorSchema;
8
+ export declare var InternalFailureException$: StaticErrorSchema;
9
+ export declare var LimitExceededException$: StaticErrorSchema;
10
+ export declare var LoopDetectedException$: StaticErrorSchema;
11
+ export declare var NotAcceptableException$: StaticErrorSchema;
12
+ export declare var NotFoundException$: StaticErrorSchema;
13
+ export declare var RequestTimeoutException$: StaticErrorSchema;
14
+ export declare var UnsupportedMediaTypeException$: StaticErrorSchema;
15
+ /**
16
+ * TypeRegistry instances containing modeled errors.
17
+ * @internal
18
+ *
19
+ */
20
+ export declare const errorTypeRegistries: TypeRegistry[];
21
+ export declare var ActiveContext$: StaticStructureSchema;
22
+ export declare var ActiveContextTimeToLive$: StaticStructureSchema;
23
+ export declare var Button$: StaticStructureSchema;
8
24
  export declare var DeleteSessionRequest$: StaticStructureSchema;
9
25
  export declare var DeleteSessionResponse$: StaticStructureSchema;
10
- export declare var DependencyFailedException$: StaticErrorSchema;
11
26
  export declare var DialogAction$: StaticStructureSchema;
12
27
  export declare var GenericAttachment$: StaticStructureSchema;
13
28
  export declare var GetSessionRequest$: StaticStructureSchema;
14
29
  export declare var GetSessionResponse$: StaticStructureSchema;
15
30
  export declare var IntentConfidence$: StaticStructureSchema;
16
31
  export declare var IntentSummary$: StaticStructureSchema;
17
- export declare var InternalFailureException$: StaticErrorSchema;
18
- export declare var LimitExceededException$: StaticErrorSchema;
19
- export declare var LoopDetectedException$: StaticErrorSchema;
20
- export declare var NotAcceptableException$: StaticErrorSchema;
21
- export declare var NotFoundException$: StaticErrorSchema;
22
32
  export declare var PostContentRequest$: StaticStructureSchema;
23
33
  export declare var PostContentResponse$: StaticStructureSchema;
24
34
  export declare var PostTextRequest$: StaticStructureSchema;
@@ -26,11 +36,8 @@ export declare var PostTextResponse$: StaticStructureSchema;
26
36
  export declare var PredictedIntent$: StaticStructureSchema;
27
37
  export declare var PutSessionRequest$: StaticStructureSchema;
28
38
  export declare var PutSessionResponse$: StaticStructureSchema;
29
- export declare var RequestTimeoutException$: StaticErrorSchema;
30
39
  export declare var ResponseCard$: StaticStructureSchema;
31
40
  export declare var SentimentResponse$: StaticStructureSchema;
32
- export declare var UnsupportedMediaTypeException$: StaticErrorSchema;
33
- export declare var LexRuntimeServiceServiceException$: StaticErrorSchema;
34
41
  export declare var DeleteSession$: StaticOperationSchema;
35
42
  export declare var GetSession$: StaticOperationSchema;
36
43
  export declare var PostContent$: StaticOperationSchema;
@@ -1,28 +1,33 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
6
- export declare var ActiveContext$: StaticStructureSchema;
7
- export declare var ActiveContextTimeToLive$: StaticStructureSchema;
7
+ export declare var LexRuntimeServiceServiceException$: StaticErrorSchema;
8
8
  export declare var BadGatewayException$: StaticErrorSchema;
9
9
  export declare var BadRequestException$: StaticErrorSchema;
10
- export declare var Button$: StaticStructureSchema;
11
10
  export declare var ConflictException$: StaticErrorSchema;
11
+ export declare var DependencyFailedException$: StaticErrorSchema;
12
+ export declare var InternalFailureException$: StaticErrorSchema;
13
+ export declare var LimitExceededException$: StaticErrorSchema;
14
+ export declare var LoopDetectedException$: StaticErrorSchema;
15
+ export declare var NotAcceptableException$: StaticErrorSchema;
16
+ export declare var NotFoundException$: StaticErrorSchema;
17
+ export declare var RequestTimeoutException$: StaticErrorSchema;
18
+ export declare var UnsupportedMediaTypeException$: StaticErrorSchema;
19
+ export declare const errorTypeRegistries: TypeRegistry[];
20
+ export declare var ActiveContext$: StaticStructureSchema;
21
+ export declare var ActiveContextTimeToLive$: StaticStructureSchema;
22
+ export declare var Button$: StaticStructureSchema;
12
23
  export declare var DeleteSessionRequest$: StaticStructureSchema;
13
24
  export declare var DeleteSessionResponse$: StaticStructureSchema;
14
- export declare var DependencyFailedException$: StaticErrorSchema;
15
25
  export declare var DialogAction$: StaticStructureSchema;
16
26
  export declare var GenericAttachment$: StaticStructureSchema;
17
27
  export declare var GetSessionRequest$: StaticStructureSchema;
18
28
  export declare var GetSessionResponse$: StaticStructureSchema;
19
29
  export declare var IntentConfidence$: StaticStructureSchema;
20
30
  export declare var IntentSummary$: StaticStructureSchema;
21
- export declare var InternalFailureException$: StaticErrorSchema;
22
- export declare var LimitExceededException$: StaticErrorSchema;
23
- export declare var LoopDetectedException$: StaticErrorSchema;
24
- export declare var NotAcceptableException$: StaticErrorSchema;
25
- export declare var NotFoundException$: StaticErrorSchema;
26
31
  export declare var PostContentRequest$: StaticStructureSchema;
27
32
  export declare var PostContentResponse$: StaticStructureSchema;
28
33
  export declare var PostTextRequest$: StaticStructureSchema;
@@ -30,11 +35,8 @@ export declare var PostTextResponse$: StaticStructureSchema;
30
35
  export declare var PredictedIntent$: StaticStructureSchema;
31
36
  export declare var PutSessionRequest$: StaticStructureSchema;
32
37
  export declare var PutSessionResponse$: StaticStructureSchema;
33
- export declare var RequestTimeoutException$: StaticErrorSchema;
34
38
  export declare var ResponseCard$: StaticStructureSchema;
35
39
  export declare var SentimentResponse$: StaticStructureSchema;
36
- export declare var UnsupportedMediaTypeException$: StaticErrorSchema;
37
- export declare var LexRuntimeServiceServiceException$: StaticErrorSchema;
38
40
  export declare var DeleteSession$: StaticOperationSchema;
39
41
  export declare var GetSession$: StaticOperationSchema;
40
42
  export declare var PostContent$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lex-runtime-service",
3
3
  "description": "AWS SDK for JavaScript Lex Runtime Service Client for Node.js, Browser and React Native",
4
- "version": "3.986.0",
4
+ "version": "3.988.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 client-lex-runtime-service",
@@ -23,42 +23,42 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
- "@aws-sdk/core": "^3.973.7",
27
- "@aws-sdk/credential-provider-node": "^3.972.6",
26
+ "@aws-sdk/core": "^3.973.8",
27
+ "@aws-sdk/credential-provider-node": "^3.972.7",
28
28
  "@aws-sdk/middleware-host-header": "^3.972.3",
29
29
  "@aws-sdk/middleware-logger": "^3.972.3",
30
30
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
31
- "@aws-sdk/middleware-user-agent": "^3.972.7",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
32
32
  "@aws-sdk/region-config-resolver": "^3.972.3",
33
33
  "@aws-sdk/types": "^3.973.1",
34
- "@aws-sdk/util-endpoints": "3.986.0",
34
+ "@aws-sdk/util-endpoints": "3.988.0",
35
35
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
36
- "@aws-sdk/util-user-agent-node": "^3.972.5",
36
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
37
37
  "@smithy/config-resolver": "^4.4.6",
38
- "@smithy/core": "^3.22.1",
38
+ "@smithy/core": "^3.23.0",
39
39
  "@smithy/fetch-http-handler": "^5.3.9",
40
40
  "@smithy/hash-node": "^4.2.8",
41
41
  "@smithy/invalid-dependency": "^4.2.8",
42
42
  "@smithy/middleware-content-length": "^4.2.8",
43
- "@smithy/middleware-endpoint": "^4.4.13",
44
- "@smithy/middleware-retry": "^4.4.30",
43
+ "@smithy/middleware-endpoint": "^4.4.14",
44
+ "@smithy/middleware-retry": "^4.4.31",
45
45
  "@smithy/middleware-serde": "^4.2.9",
46
46
  "@smithy/middleware-stack": "^4.2.8",
47
47
  "@smithy/node-config-provider": "^4.3.8",
48
- "@smithy/node-http-handler": "^4.4.9",
48
+ "@smithy/node-http-handler": "^4.4.10",
49
49
  "@smithy/protocol-http": "^5.3.8",
50
- "@smithy/smithy-client": "^4.11.2",
50
+ "@smithy/smithy-client": "^4.11.3",
51
51
  "@smithy/types": "^4.12.0",
52
52
  "@smithy/url-parser": "^4.2.8",
53
53
  "@smithy/util-base64": "^4.3.0",
54
54
  "@smithy/util-body-length-browser": "^4.2.0",
55
55
  "@smithy/util-body-length-node": "^4.2.1",
56
- "@smithy/util-defaults-mode-browser": "^4.3.29",
57
- "@smithy/util-defaults-mode-node": "^4.2.32",
56
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
57
+ "@smithy/util-defaults-mode-node": "^4.2.33",
58
58
  "@smithy/util-endpoints": "^3.2.8",
59
59
  "@smithy/util-middleware": "^4.2.8",
60
60
  "@smithy/util-retry": "^4.2.8",
61
- "@smithy/util-stream": "^4.5.11",
61
+ "@smithy/util-stream": "^4.5.12",
62
62
  "@smithy/util-utf8": "^4.2.0",
63
63
  "tslib": "^2.6.2"
64
64
  },