@aws-sdk/client-comprehend 3.948.0 → 3.953.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.
Files changed (105) hide show
  1. package/dist-cjs/index.js +1239 -871
  2. package/dist-cjs/runtimeConfig.shared.js +6 -6
  3. package/dist-es/commands/BatchDetectDominantLanguageCommand.js +2 -2
  4. package/dist-es/commands/BatchDetectEntitiesCommand.js +2 -2
  5. package/dist-es/commands/BatchDetectKeyPhrasesCommand.js +2 -2
  6. package/dist-es/commands/BatchDetectSentimentCommand.js +2 -2
  7. package/dist-es/commands/BatchDetectSyntaxCommand.js +2 -2
  8. package/dist-es/commands/BatchDetectTargetedSentimentCommand.js +2 -2
  9. package/dist-es/commands/ClassifyDocumentCommand.js +2 -2
  10. package/dist-es/commands/ContainsPiiEntitiesCommand.js +2 -2
  11. package/dist-es/commands/CreateDatasetCommand.js +2 -2
  12. package/dist-es/commands/CreateDocumentClassifierCommand.js +2 -2
  13. package/dist-es/commands/CreateEndpointCommand.js +2 -2
  14. package/dist-es/commands/CreateEntityRecognizerCommand.js +2 -2
  15. package/dist-es/commands/CreateFlywheelCommand.js +2 -2
  16. package/dist-es/commands/DeleteDocumentClassifierCommand.js +2 -2
  17. package/dist-es/commands/DeleteEndpointCommand.js +2 -2
  18. package/dist-es/commands/DeleteEntityRecognizerCommand.js +2 -2
  19. package/dist-es/commands/DeleteFlywheelCommand.js +2 -2
  20. package/dist-es/commands/DeleteResourcePolicyCommand.js +2 -2
  21. package/dist-es/commands/DescribeDatasetCommand.js +2 -2
  22. package/dist-es/commands/DescribeDocumentClassificationJobCommand.js +2 -2
  23. package/dist-es/commands/DescribeDocumentClassifierCommand.js +2 -2
  24. package/dist-es/commands/DescribeDominantLanguageDetectionJobCommand.js +2 -2
  25. package/dist-es/commands/DescribeEndpointCommand.js +2 -2
  26. package/dist-es/commands/DescribeEntitiesDetectionJobCommand.js +2 -2
  27. package/dist-es/commands/DescribeEntityRecognizerCommand.js +2 -2
  28. package/dist-es/commands/DescribeEventsDetectionJobCommand.js +2 -2
  29. package/dist-es/commands/DescribeFlywheelCommand.js +2 -2
  30. package/dist-es/commands/DescribeFlywheelIterationCommand.js +2 -2
  31. package/dist-es/commands/DescribeKeyPhrasesDetectionJobCommand.js +2 -2
  32. package/dist-es/commands/DescribePiiEntitiesDetectionJobCommand.js +2 -2
  33. package/dist-es/commands/DescribeResourcePolicyCommand.js +2 -2
  34. package/dist-es/commands/DescribeSentimentDetectionJobCommand.js +2 -2
  35. package/dist-es/commands/DescribeTargetedSentimentDetectionJobCommand.js +2 -2
  36. package/dist-es/commands/DescribeTopicsDetectionJobCommand.js +2 -2
  37. package/dist-es/commands/DetectDominantLanguageCommand.js +2 -2
  38. package/dist-es/commands/DetectEntitiesCommand.js +2 -2
  39. package/dist-es/commands/DetectKeyPhrasesCommand.js +2 -2
  40. package/dist-es/commands/DetectPiiEntitiesCommand.js +2 -2
  41. package/dist-es/commands/DetectSentimentCommand.js +2 -2
  42. package/dist-es/commands/DetectSyntaxCommand.js +2 -2
  43. package/dist-es/commands/DetectTargetedSentimentCommand.js +2 -2
  44. package/dist-es/commands/DetectToxicContentCommand.js +2 -2
  45. package/dist-es/commands/ImportModelCommand.js +2 -2
  46. package/dist-es/commands/ListDatasetsCommand.js +2 -2
  47. package/dist-es/commands/ListDocumentClassificationJobsCommand.js +2 -2
  48. package/dist-es/commands/ListDocumentClassifierSummariesCommand.js +2 -2
  49. package/dist-es/commands/ListDocumentClassifiersCommand.js +2 -2
  50. package/dist-es/commands/ListDominantLanguageDetectionJobsCommand.js +2 -2
  51. package/dist-es/commands/ListEndpointsCommand.js +2 -2
  52. package/dist-es/commands/ListEntitiesDetectionJobsCommand.js +2 -2
  53. package/dist-es/commands/ListEntityRecognizerSummariesCommand.js +2 -2
  54. package/dist-es/commands/ListEntityRecognizersCommand.js +2 -2
  55. package/dist-es/commands/ListEventsDetectionJobsCommand.js +2 -2
  56. package/dist-es/commands/ListFlywheelIterationHistoryCommand.js +2 -2
  57. package/dist-es/commands/ListFlywheelsCommand.js +2 -2
  58. package/dist-es/commands/ListKeyPhrasesDetectionJobsCommand.js +2 -2
  59. package/dist-es/commands/ListPiiEntitiesDetectionJobsCommand.js +2 -2
  60. package/dist-es/commands/ListSentimentDetectionJobsCommand.js +2 -2
  61. package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
  62. package/dist-es/commands/ListTargetedSentimentDetectionJobsCommand.js +2 -2
  63. package/dist-es/commands/ListTopicsDetectionJobsCommand.js +2 -2
  64. package/dist-es/commands/PutResourcePolicyCommand.js +2 -2
  65. package/dist-es/commands/StartDocumentClassificationJobCommand.js +2 -2
  66. package/dist-es/commands/StartDominantLanguageDetectionJobCommand.js +2 -2
  67. package/dist-es/commands/StartEntitiesDetectionJobCommand.js +2 -2
  68. package/dist-es/commands/StartEventsDetectionJobCommand.js +2 -2
  69. package/dist-es/commands/StartFlywheelIterationCommand.js +2 -2
  70. package/dist-es/commands/StartKeyPhrasesDetectionJobCommand.js +2 -2
  71. package/dist-es/commands/StartPiiEntitiesDetectionJobCommand.js +2 -2
  72. package/dist-es/commands/StartSentimentDetectionJobCommand.js +2 -2
  73. package/dist-es/commands/StartTargetedSentimentDetectionJobCommand.js +2 -2
  74. package/dist-es/commands/StartTopicsDetectionJobCommand.js +2 -2
  75. package/dist-es/commands/StopDominantLanguageDetectionJobCommand.js +2 -2
  76. package/dist-es/commands/StopEntitiesDetectionJobCommand.js +2 -2
  77. package/dist-es/commands/StopEventsDetectionJobCommand.js +2 -2
  78. package/dist-es/commands/StopKeyPhrasesDetectionJobCommand.js +2 -2
  79. package/dist-es/commands/StopPiiEntitiesDetectionJobCommand.js +2 -2
  80. package/dist-es/commands/StopSentimentDetectionJobCommand.js +2 -2
  81. package/dist-es/commands/StopTargetedSentimentDetectionJobCommand.js +2 -2
  82. package/dist-es/commands/StopTrainingDocumentClassifierCommand.js +2 -2
  83. package/dist-es/commands/StopTrainingEntityRecognizerCommand.js +2 -2
  84. package/dist-es/commands/TagResourceCommand.js +2 -2
  85. package/dist-es/commands/UntagResourceCommand.js +2 -2
  86. package/dist-es/commands/UpdateEndpointCommand.js +2 -2
  87. package/dist-es/commands/UpdateFlywheelCommand.js +2 -2
  88. package/dist-es/index.js +1 -0
  89. package/dist-es/runtimeConfig.shared.js +6 -6
  90. package/dist-es/schemas/schemas_0.js +748 -757
  91. package/dist-types/ComprehendClient.d.ts +1 -10
  92. package/dist-types/index.d.ts +1 -0
  93. package/dist-types/runtimeConfig.browser.d.ts +6 -2
  94. package/dist-types/runtimeConfig.d.ts +6 -2
  95. package/dist-types/runtimeConfig.native.d.ts +6 -2
  96. package/dist-types/runtimeConfig.shared.d.ts +6 -1
  97. package/dist-types/schemas/schemas_0.d.ts +378 -442
  98. package/dist-types/ts3.4/ComprehendClient.d.ts +0 -4
  99. package/dist-types/ts3.4/index.d.ts +1 -0
  100. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -5
  101. package/dist-types/ts3.4/runtimeConfig.d.ts +9 -5
  102. package/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -5
  103. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +9 -4
  104. package/dist-types/ts3.4/schemas/schemas_0.d.ts +377 -443
  105. package/package.json +34 -34
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StartTopicsDetectionJob } from "../schemas/schemas_0";
4
+ import { StartTopicsDetectionJob$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StartTopicsDetectionJobCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StartTopicsDetectionJobCommand extends $Command
11
11
  })
12
12
  .s("Comprehend_20171127", "StartTopicsDetectionJob", {})
13
13
  .n("ComprehendClient", "StartTopicsDetectionJobCommand")
14
- .sc(StartTopicsDetectionJob)
14
+ .sc(StartTopicsDetectionJob$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StopDominantLanguageDetectionJob } from "../schemas/schemas_0";
4
+ import { StopDominantLanguageDetectionJob$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StopDominantLanguageDetectionJobCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StopDominantLanguageDetectionJobCommand extends $Command
11
11
  })
12
12
  .s("Comprehend_20171127", "StopDominantLanguageDetectionJob", {})
13
13
  .n("ComprehendClient", "StopDominantLanguageDetectionJobCommand")
14
- .sc(StopDominantLanguageDetectionJob)
14
+ .sc(StopDominantLanguageDetectionJob$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StopEntitiesDetectionJob } from "../schemas/schemas_0";
4
+ import { StopEntitiesDetectionJob$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StopEntitiesDetectionJobCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StopEntitiesDetectionJobCommand extends $Command
11
11
  })
12
12
  .s("Comprehend_20171127", "StopEntitiesDetectionJob", {})
13
13
  .n("ComprehendClient", "StopEntitiesDetectionJobCommand")
14
- .sc(StopEntitiesDetectionJob)
14
+ .sc(StopEntitiesDetectionJob$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StopEventsDetectionJob } from "../schemas/schemas_0";
4
+ import { StopEventsDetectionJob$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StopEventsDetectionJobCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StopEventsDetectionJobCommand extends $Command
11
11
  })
12
12
  .s("Comprehend_20171127", "StopEventsDetectionJob", {})
13
13
  .n("ComprehendClient", "StopEventsDetectionJobCommand")
14
- .sc(StopEventsDetectionJob)
14
+ .sc(StopEventsDetectionJob$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StopKeyPhrasesDetectionJob } from "../schemas/schemas_0";
4
+ import { StopKeyPhrasesDetectionJob$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StopKeyPhrasesDetectionJobCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StopKeyPhrasesDetectionJobCommand extends $Command
11
11
  })
12
12
  .s("Comprehend_20171127", "StopKeyPhrasesDetectionJob", {})
13
13
  .n("ComprehendClient", "StopKeyPhrasesDetectionJobCommand")
14
- .sc(StopKeyPhrasesDetectionJob)
14
+ .sc(StopKeyPhrasesDetectionJob$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StopPiiEntitiesDetectionJob } from "../schemas/schemas_0";
4
+ import { StopPiiEntitiesDetectionJob$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StopPiiEntitiesDetectionJobCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StopPiiEntitiesDetectionJobCommand extends $Command
11
11
  })
12
12
  .s("Comprehend_20171127", "StopPiiEntitiesDetectionJob", {})
13
13
  .n("ComprehendClient", "StopPiiEntitiesDetectionJobCommand")
14
- .sc(StopPiiEntitiesDetectionJob)
14
+ .sc(StopPiiEntitiesDetectionJob$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StopSentimentDetectionJob } from "../schemas/schemas_0";
4
+ import { StopSentimentDetectionJob$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StopSentimentDetectionJobCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StopSentimentDetectionJobCommand extends $Command
11
11
  })
12
12
  .s("Comprehend_20171127", "StopSentimentDetectionJob", {})
13
13
  .n("ComprehendClient", "StopSentimentDetectionJobCommand")
14
- .sc(StopSentimentDetectionJob)
14
+ .sc(StopSentimentDetectionJob$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StopTargetedSentimentDetectionJob } from "../schemas/schemas_0";
4
+ import { StopTargetedSentimentDetectionJob$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StopTargetedSentimentDetectionJobCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StopTargetedSentimentDetectionJobCommand extends $Command
11
11
  })
12
12
  .s("Comprehend_20171127", "StopTargetedSentimentDetectionJob", {})
13
13
  .n("ComprehendClient", "StopTargetedSentimentDetectionJobCommand")
14
- .sc(StopTargetedSentimentDetectionJob)
14
+ .sc(StopTargetedSentimentDetectionJob$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StopTrainingDocumentClassifier } from "../schemas/schemas_0";
4
+ import { StopTrainingDocumentClassifier$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StopTrainingDocumentClassifierCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StopTrainingDocumentClassifierCommand extends $Command
11
11
  })
12
12
  .s("Comprehend_20171127", "StopTrainingDocumentClassifier", {})
13
13
  .n("ComprehendClient", "StopTrainingDocumentClassifierCommand")
14
- .sc(StopTrainingDocumentClassifier)
14
+ .sc(StopTrainingDocumentClassifier$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StopTrainingEntityRecognizer } from "../schemas/schemas_0";
4
+ import { StopTrainingEntityRecognizer$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StopTrainingEntityRecognizerCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StopTrainingEntityRecognizerCommand extends $Command
11
11
  })
12
12
  .s("Comprehend_20171127", "StopTrainingEntityRecognizer", {})
13
13
  .n("ComprehendClient", "StopTrainingEntityRecognizerCommand")
14
- .sc(StopTrainingEntityRecognizer)
14
+ .sc(StopTrainingEntityRecognizer$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { TagResource } from "../schemas/schemas_0";
4
+ import { TagResource$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class TagResourceCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class TagResourceCommand extends $Command
11
11
  })
12
12
  .s("Comprehend_20171127", "TagResource", {})
13
13
  .n("ComprehendClient", "TagResourceCommand")
14
- .sc(TagResource)
14
+ .sc(TagResource$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { UntagResource } from "../schemas/schemas_0";
4
+ import { UntagResource$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class UntagResourceCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class UntagResourceCommand extends $Command
11
11
  })
12
12
  .s("Comprehend_20171127", "UntagResource", {})
13
13
  .n("ComprehendClient", "UntagResourceCommand")
14
- .sc(UntagResource)
14
+ .sc(UntagResource$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { UpdateEndpoint } from "../schemas/schemas_0";
4
+ import { UpdateEndpoint$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class UpdateEndpointCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class UpdateEndpointCommand extends $Command
11
11
  })
12
12
  .s("Comprehend_20171127", "UpdateEndpoint", {})
13
13
  .n("ComprehendClient", "UpdateEndpointCommand")
14
- .sc(UpdateEndpoint)
14
+ .sc(UpdateEndpoint$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { UpdateFlywheel } from "../schemas/schemas_0";
4
+ import { UpdateFlywheel$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class UpdateFlywheelCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class UpdateFlywheelCommand extends $Command
11
11
  })
12
12
  .s("Comprehend_20171127", "UpdateFlywheel", {})
13
13
  .n("ComprehendClient", "UpdateFlywheelCommand")
14
- .sc(UpdateFlywheel)
14
+ .sc(UpdateFlywheel$)
15
15
  .build() {
16
16
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./ComprehendClient";
2
2
  export * from "./Comprehend";
3
3
  export * from "./commands";
4
+ export * from "./schemas/schemas_0";
4
5
  export * from "./pagination";
5
6
  export * from "./models/enums";
6
7
  export * from "./models/errors";
@@ -23,12 +23,12 @@ export const getRuntimeConfig = (config) => {
23
23
  },
24
24
  ],
25
25
  logger: config?.logger ?? new NoOpLogger(),
26
- protocol: config?.protocol ??
27
- new AwsJson1_1Protocol({
28
- defaultNamespace: "com.amazonaws.comprehend",
29
- serviceTarget: "Comprehend_20171127",
30
- awsQueryCompatible: false,
31
- }),
26
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
27
+ protocolSettings: config?.protocolSettings ?? {
28
+ defaultNamespace: "com.amazonaws.comprehend",
29
+ version: "2017-11-27",
30
+ serviceTarget: "Comprehend_20171127",
31
+ },
32
32
  serviceId: config?.serviceId ?? "Comprehend",
33
33
  urlParser: config?.urlParser ?? parseUrl,
34
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,