@aws-sdk/client-comprehendmedical 3.987.0 → 3.989.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultComprehendMedicalHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2018-10-30",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_1Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.comprehendmedical",
30
+ errorTypeRegistries,
29
31
  version: "2018-10-30",
30
32
  serviceTarget: "ComprehendMedical_20181030",
31
33
  },
@@ -170,12 +170,68 @@ const _VE = "ValidationException";
170
170
  const _c = "client";
171
171
  const _e = "error";
172
172
  const _hE = "httpError";
173
- const _s = "server";
174
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.comprehendmedical";
173
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.comprehendmedical";
174
+ const _se = "server";
175
175
  const n0 = "com.amazonaws.comprehendmedical";
176
176
  import { TypeRegistry } from "@smithy/core/schema";
177
177
  import { ComprehendMedicalServiceException } from "../models/ComprehendMedicalServiceException";
178
178
  import { InternalServerException, InvalidEncodingException, InvalidRequestException, ResourceNotFoundException, ServiceUnavailableException, TextSizeLimitExceededException, TooManyRequestsException, ValidationException, } from "../models/errors";
179
+ const _s_registry = TypeRegistry.for(_s);
180
+ export var ComprehendMedicalServiceException$ = [-3, _s, "ComprehendMedicalServiceException", 0, [], []];
181
+ _s_registry.registerError(ComprehendMedicalServiceException$, ComprehendMedicalServiceException);
182
+ const n0_registry = TypeRegistry.for(n0);
183
+ export var InternalServerException$ = [-3, n0, _ISE,
184
+ { [_e]: _se, [_hE]: 500 },
185
+ [_M],
186
+ [0]
187
+ ];
188
+ n0_registry.registerError(InternalServerException$, InternalServerException);
189
+ export var InvalidEncodingException$ = [-3, n0, _IEE,
190
+ { [_e]: _c, [_hE]: 400 },
191
+ [_M],
192
+ [0]
193
+ ];
194
+ n0_registry.registerError(InvalidEncodingException$, InvalidEncodingException);
195
+ export var InvalidRequestException$ = [-3, n0, _IRE,
196
+ { [_e]: _c, [_hE]: 400 },
197
+ [_M],
198
+ [0]
199
+ ];
200
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
201
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
202
+ { [_e]: _c, [_hE]: 404 },
203
+ [_M],
204
+ [0]
205
+ ];
206
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
207
+ export var ServiceUnavailableException$ = [-3, n0, _SUE,
208
+ { [_e]: _se, [_hE]: 503 },
209
+ [_M],
210
+ [0]
211
+ ];
212
+ n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
213
+ export var TextSizeLimitExceededException$ = [-3, n0, _TSLEE,
214
+ { [_e]: _c, [_hE]: 400 },
215
+ [_M],
216
+ [0]
217
+ ];
218
+ n0_registry.registerError(TextSizeLimitExceededException$, TextSizeLimitExceededException);
219
+ export var TooManyRequestsException$ = [-3, n0, _TMRE,
220
+ { [_e]: _c, [_hE]: 429 },
221
+ [_M],
222
+ [0]
223
+ ];
224
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
225
+ export var ValidationException$ = [-3, n0, _VE,
226
+ { [_e]: _c, [_hE]: 400 },
227
+ [_M],
228
+ [0]
229
+ ];
230
+ n0_registry.registerError(ValidationException$, ValidationException);
231
+ export const errorTypeRegistries = [
232
+ _s_registry,
233
+ n0_registry,
234
+ ];
179
235
  export var Attribute$ = [3, n0, _A,
180
236
  0,
181
237
  [_T, _S, _RS, _RT, _I, _BO, _EO, _Te, _C, _Tr],
@@ -336,24 +392,6 @@ export var InputDataConfig$ = [3, n0, _IDC,
336
392
  [_SB, _SK],
337
393
  [0, 0], 1
338
394
  ];
339
- export var InternalServerException$ = [-3, n0, _ISE,
340
- { [_e]: _s, [_hE]: 500 },
341
- [_M],
342
- [0]
343
- ];
344
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
345
- export var InvalidEncodingException$ = [-3, n0, _IEE,
346
- { [_e]: _c, [_hE]: 400 },
347
- [_M],
348
- [0]
349
- ];
350
- TypeRegistry.for(n0).registerError(InvalidEncodingException$, InvalidEncodingException);
351
- export var InvalidRequestException$ = [-3, n0, _IRE,
352
- { [_e]: _c, [_hE]: 400 },
353
- [_M],
354
- [0]
355
- ];
356
- TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
357
395
  export var ListEntitiesDetectionV2JobsRequest$ = [3, n0, _LEDVJR,
358
396
  0,
359
397
  [_F, _NT, _MR],
@@ -409,12 +447,6 @@ export var OutputDataConfig$ = [3, n0, _ODC,
409
447
  [_SB, _SK],
410
448
  [0, 0], 1
411
449
  ];
412
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
413
- { [_e]: _c, [_hE]: 404 },
414
- [_M],
415
- [0]
416
- ];
417
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
418
450
  export var RxNormAttribute$ = [3, n0, _RNA,
419
451
  0,
420
452
  [_T, _S, _RS, _I, _BO, _EO, _Te, _Tr],
@@ -435,12 +467,6 @@ export var RxNormTrait$ = [3, n0, _RNT,
435
467
  [_N, _S],
436
468
  [0, 1]
437
469
  ];
438
- export var ServiceUnavailableException$ = [-3, n0, _SUE,
439
- { [_e]: _s, [_hE]: 503 },
440
- [_M],
441
- [0]
442
- ];
443
- TypeRegistry.for(n0).registerError(ServiceUnavailableException$, ServiceUnavailableException);
444
470
  export var SNOMEDCTAttribute$ = [3, n0, _SNOMEDCTA,
445
471
  0,
446
472
  [_C, _T, _S, _RS, _RT, _I, _BO, _EO, _Te, _Tr, _SNOMEDCTC],
@@ -566,18 +592,6 @@ export var StopSNOMEDCTInferenceJobResponse$ = [3, n0, _SSNOMEDCTIJRtop,
566
592
  [_JI],
567
593
  [0]
568
594
  ];
569
- export var TextSizeLimitExceededException$ = [-3, n0, _TSLEE,
570
- { [_e]: _c, [_hE]: 400 },
571
- [_M],
572
- [0]
573
- ];
574
- TypeRegistry.for(n0).registerError(TextSizeLimitExceededException$, TextSizeLimitExceededException);
575
- export var TooManyRequestsException$ = [-3, n0, _TMRE,
576
- { [_e]: _c, [_hE]: 429 },
577
- [_M],
578
- [0]
579
- ];
580
- TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);
581
595
  export var Trait$ = [3, n0, _Tra,
582
596
  0,
583
597
  [_N, _S],
@@ -588,14 +602,6 @@ export var UnmappedAttribute$ = [3, n0, _UAn,
588
602
  [_T, _A],
589
603
  [0, () => Attribute$]
590
604
  ];
591
- export var ValidationException$ = [-3, n0, _VE,
592
- { [_e]: _c, [_hE]: 400 },
593
- [_M],
594
- [0]
595
- ];
596
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
597
- export var ComprehendMedicalServiceException$ = [-3, _sm, "ComprehendMedicalServiceException", 0, [], []];
598
- TypeRegistry.for(_sm).registerError(ComprehendMedicalServiceException$, ComprehendMedicalServiceException);
599
605
  var AttributeList = [1, n0, _AL,
600
606
  0, () => Attribute$
601
607
  ];
@@ -1,4 +1,20 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var ComprehendMedicalServiceException$: StaticErrorSchema;
4
+ export declare var InternalServerException$: StaticErrorSchema;
5
+ export declare var InvalidEncodingException$: StaticErrorSchema;
6
+ export declare var InvalidRequestException$: StaticErrorSchema;
7
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
8
+ export declare var ServiceUnavailableException$: StaticErrorSchema;
9
+ export declare var TextSizeLimitExceededException$: StaticErrorSchema;
10
+ export declare var TooManyRequestsException$: StaticErrorSchema;
11
+ export declare var ValidationException$: StaticErrorSchema;
12
+ /**
13
+ * TypeRegistry instances containing modeled errors.
14
+ * @internal
15
+ *
16
+ */
17
+ export declare const errorTypeRegistries: TypeRegistry[];
2
18
  export declare var Attribute$: StaticStructureSchema;
3
19
  export declare var Characters$: StaticStructureSchema;
4
20
  export declare var ComprehendMedicalAsyncJobFilter$: StaticStructureSchema;
@@ -31,9 +47,6 @@ export declare var InferRxNormResponse$: StaticStructureSchema;
31
47
  export declare var InferSNOMEDCTRequest$: StaticStructureSchema;
32
48
  export declare var InferSNOMEDCTResponse$: StaticStructureSchema;
33
49
  export declare var InputDataConfig$: StaticStructureSchema;
34
- export declare var InternalServerException$: StaticErrorSchema;
35
- export declare var InvalidEncodingException$: StaticErrorSchema;
36
- export declare var InvalidRequestException$: StaticErrorSchema;
37
50
  export declare var ListEntitiesDetectionV2JobsRequest$: StaticStructureSchema;
38
51
  export declare var ListEntitiesDetectionV2JobsResponse$: StaticStructureSchema;
39
52
  export declare var ListICD10CMInferenceJobsRequest$: StaticStructureSchema;
@@ -45,12 +58,10 @@ export declare var ListRxNormInferenceJobsResponse$: StaticStructureSchema;
45
58
  export declare var ListSNOMEDCTInferenceJobsRequest$: StaticStructureSchema;
46
59
  export declare var ListSNOMEDCTInferenceJobsResponse$: StaticStructureSchema;
47
60
  export declare var OutputDataConfig$: StaticStructureSchema;
48
- export declare var ResourceNotFoundException$: StaticErrorSchema;
49
61
  export declare var RxNormAttribute$: StaticStructureSchema;
50
62
  export declare var RxNormConcept$: StaticStructureSchema;
51
63
  export declare var RxNormEntity$: StaticStructureSchema;
52
64
  export declare var RxNormTrait$: StaticStructureSchema;
53
- export declare var ServiceUnavailableException$: StaticErrorSchema;
54
65
  export declare var SNOMEDCTAttribute$: StaticStructureSchema;
55
66
  export declare var SNOMEDCTConcept$: StaticStructureSchema;
56
67
  export declare var SNOMEDCTDetails$: StaticStructureSchema;
@@ -76,12 +87,8 @@ export declare var StopRxNormInferenceJobRequest$: StaticStructureSchema;
76
87
  export declare var StopRxNormInferenceJobResponse$: StaticStructureSchema;
77
88
  export declare var StopSNOMEDCTInferenceJobRequest$: StaticStructureSchema;
78
89
  export declare var StopSNOMEDCTInferenceJobResponse$: StaticStructureSchema;
79
- export declare var TextSizeLimitExceededException$: StaticErrorSchema;
80
- export declare var TooManyRequestsException$: StaticErrorSchema;
81
90
  export declare var Trait$: StaticStructureSchema;
82
91
  export declare var UnmappedAttribute$: StaticStructureSchema;
83
- export declare var ValidationException$: StaticErrorSchema;
84
- export declare var ComprehendMedicalServiceException$: StaticErrorSchema;
85
92
  export declare var DescribeEntitiesDetectionV2Job$: StaticOperationSchema;
86
93
  export declare var DescribeICD10CMInferenceJob$: StaticOperationSchema;
87
94
  export declare var DescribePHIDetectionJob$: StaticOperationSchema;
@@ -1,8 +1,19 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var ComprehendMedicalServiceException$: StaticErrorSchema;
8
+ export declare var InternalServerException$: StaticErrorSchema;
9
+ export declare var InvalidEncodingException$: StaticErrorSchema;
10
+ export declare var InvalidRequestException$: StaticErrorSchema;
11
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
12
+ export declare var ServiceUnavailableException$: StaticErrorSchema;
13
+ export declare var TextSizeLimitExceededException$: StaticErrorSchema;
14
+ export declare var TooManyRequestsException$: StaticErrorSchema;
15
+ export declare var ValidationException$: StaticErrorSchema;
16
+ export declare const errorTypeRegistries: TypeRegistry[];
6
17
  export declare var Attribute$: StaticStructureSchema;
7
18
  export declare var Characters$: StaticStructureSchema;
8
19
  export declare var ComprehendMedicalAsyncJobFilter$: StaticStructureSchema;
@@ -35,9 +46,6 @@ export declare var InferRxNormResponse$: StaticStructureSchema;
35
46
  export declare var InferSNOMEDCTRequest$: StaticStructureSchema;
36
47
  export declare var InferSNOMEDCTResponse$: StaticStructureSchema;
37
48
  export declare var InputDataConfig$: StaticStructureSchema;
38
- export declare var InternalServerException$: StaticErrorSchema;
39
- export declare var InvalidEncodingException$: StaticErrorSchema;
40
- export declare var InvalidRequestException$: StaticErrorSchema;
41
49
  export declare var ListEntitiesDetectionV2JobsRequest$: StaticStructureSchema;
42
50
  export declare var ListEntitiesDetectionV2JobsResponse$: StaticStructureSchema;
43
51
  export declare var ListICD10CMInferenceJobsRequest$: StaticStructureSchema;
@@ -49,12 +57,10 @@ export declare var ListRxNormInferenceJobsResponse$: StaticStructureSchema;
49
57
  export declare var ListSNOMEDCTInferenceJobsRequest$: StaticStructureSchema;
50
58
  export declare var ListSNOMEDCTInferenceJobsResponse$: StaticStructureSchema;
51
59
  export declare var OutputDataConfig$: StaticStructureSchema;
52
- export declare var ResourceNotFoundException$: StaticErrorSchema;
53
60
  export declare var RxNormAttribute$: StaticStructureSchema;
54
61
  export declare var RxNormConcept$: StaticStructureSchema;
55
62
  export declare var RxNormEntity$: StaticStructureSchema;
56
63
  export declare var RxNormTrait$: StaticStructureSchema;
57
- export declare var ServiceUnavailableException$: StaticErrorSchema;
58
64
  export declare var SNOMEDCTAttribute$: StaticStructureSchema;
59
65
  export declare var SNOMEDCTConcept$: StaticStructureSchema;
60
66
  export declare var SNOMEDCTDetails$: StaticStructureSchema;
@@ -80,12 +86,8 @@ export declare var StopRxNormInferenceJobRequest$: StaticStructureSchema;
80
86
  export declare var StopRxNormInferenceJobResponse$: StaticStructureSchema;
81
87
  export declare var StopSNOMEDCTInferenceJobRequest$: StaticStructureSchema;
82
88
  export declare var StopSNOMEDCTInferenceJobResponse$: StaticStructureSchema;
83
- export declare var TextSizeLimitExceededException$: StaticErrorSchema;
84
- export declare var TooManyRequestsException$: StaticErrorSchema;
85
89
  export declare var Trait$: StaticStructureSchema;
86
90
  export declare var UnmappedAttribute$: StaticStructureSchema;
87
- export declare var ValidationException$: StaticErrorSchema;
88
- export declare var ComprehendMedicalServiceException$: StaticErrorSchema;
89
91
  export declare var DescribeEntitiesDetectionV2Job$: StaticOperationSchema;
90
92
  export declare var DescribeICD10CMInferenceJob$: StaticOperationSchema;
91
93
  export declare var DescribePHIDetectionJob$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-comprehendmedical",
3
3
  "description": "AWS SDK for JavaScript Comprehendmedical Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.989.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-comprehendmedical",
@@ -21,38 +21,38 @@
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.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.9",
25
+ "@aws-sdk/credential-provider-node": "^3.972.8",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.9",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.989.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.7",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",