@aws-sdk/client-rekognition 3.927.0 → 3.928.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 (99) hide show
  1. package/dist-cjs/index.js +3039 -3936
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/RekognitionClient.js +2 -0
  4. package/dist-es/commands/AssociateFacesCommand.js +3 -9
  5. package/dist-es/commands/CompareFacesCommand.js +3 -9
  6. package/dist-es/commands/CopyProjectVersionCommand.js +3 -9
  7. package/dist-es/commands/CreateCollectionCommand.js +3 -9
  8. package/dist-es/commands/CreateDatasetCommand.js +3 -9
  9. package/dist-es/commands/CreateFaceLivenessSessionCommand.js +3 -9
  10. package/dist-es/commands/CreateProjectCommand.js +3 -9
  11. package/dist-es/commands/CreateProjectVersionCommand.js +3 -9
  12. package/dist-es/commands/CreateStreamProcessorCommand.js +3 -9
  13. package/dist-es/commands/CreateUserCommand.js +3 -9
  14. package/dist-es/commands/DeleteCollectionCommand.js +3 -9
  15. package/dist-es/commands/DeleteDatasetCommand.js +3 -9
  16. package/dist-es/commands/DeleteFacesCommand.js +3 -9
  17. package/dist-es/commands/DeleteProjectCommand.js +3 -9
  18. package/dist-es/commands/DeleteProjectPolicyCommand.js +3 -9
  19. package/dist-es/commands/DeleteProjectVersionCommand.js +3 -9
  20. package/dist-es/commands/DeleteStreamProcessorCommand.js +3 -9
  21. package/dist-es/commands/DeleteUserCommand.js +3 -9
  22. package/dist-es/commands/DescribeCollectionCommand.js +3 -9
  23. package/dist-es/commands/DescribeDatasetCommand.js +3 -9
  24. package/dist-es/commands/DescribeProjectVersionsCommand.js +3 -9
  25. package/dist-es/commands/DescribeProjectsCommand.js +3 -9
  26. package/dist-es/commands/DescribeStreamProcessorCommand.js +3 -9
  27. package/dist-es/commands/DetectCustomLabelsCommand.js +3 -9
  28. package/dist-es/commands/DetectFacesCommand.js +3 -9
  29. package/dist-es/commands/DetectLabelsCommand.js +3 -9
  30. package/dist-es/commands/DetectModerationLabelsCommand.js +3 -9
  31. package/dist-es/commands/DetectProtectiveEquipmentCommand.js +3 -9
  32. package/dist-es/commands/DetectTextCommand.js +3 -9
  33. package/dist-es/commands/DisassociateFacesCommand.js +3 -9
  34. package/dist-es/commands/DistributeDatasetEntriesCommand.js +3 -9
  35. package/dist-es/commands/GetCelebrityInfoCommand.js +3 -9
  36. package/dist-es/commands/GetCelebrityRecognitionCommand.js +3 -9
  37. package/dist-es/commands/GetContentModerationCommand.js +3 -9
  38. package/dist-es/commands/GetFaceDetectionCommand.js +3 -9
  39. package/dist-es/commands/GetFaceLivenessSessionResultsCommand.js +3 -10
  40. package/dist-es/commands/GetFaceSearchCommand.js +3 -9
  41. package/dist-es/commands/GetLabelDetectionCommand.js +3 -9
  42. package/dist-es/commands/GetMediaAnalysisJobCommand.js +3 -9
  43. package/dist-es/commands/GetPersonTrackingCommand.js +3 -9
  44. package/dist-es/commands/GetSegmentDetectionCommand.js +3 -9
  45. package/dist-es/commands/GetTextDetectionCommand.js +3 -9
  46. package/dist-es/commands/IndexFacesCommand.js +3 -9
  47. package/dist-es/commands/ListCollectionsCommand.js +3 -9
  48. package/dist-es/commands/ListDatasetEntriesCommand.js +3 -9
  49. package/dist-es/commands/ListDatasetLabelsCommand.js +3 -9
  50. package/dist-es/commands/ListFacesCommand.js +3 -9
  51. package/dist-es/commands/ListMediaAnalysisJobsCommand.js +3 -9
  52. package/dist-es/commands/ListProjectPoliciesCommand.js +3 -9
  53. package/dist-es/commands/ListStreamProcessorsCommand.js +3 -9
  54. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  55. package/dist-es/commands/ListUsersCommand.js +3 -9
  56. package/dist-es/commands/PutProjectPolicyCommand.js +3 -9
  57. package/dist-es/commands/RecognizeCelebritiesCommand.js +3 -9
  58. package/dist-es/commands/SearchFacesByImageCommand.js +3 -9
  59. package/dist-es/commands/SearchFacesCommand.js +3 -9
  60. package/dist-es/commands/SearchUsersByImageCommand.js +3 -9
  61. package/dist-es/commands/SearchUsersCommand.js +3 -9
  62. package/dist-es/commands/StartCelebrityRecognitionCommand.js +3 -9
  63. package/dist-es/commands/StartContentModerationCommand.js +3 -9
  64. package/dist-es/commands/StartFaceDetectionCommand.js +3 -9
  65. package/dist-es/commands/StartFaceSearchCommand.js +3 -9
  66. package/dist-es/commands/StartLabelDetectionCommand.js +3 -9
  67. package/dist-es/commands/StartMediaAnalysisJobCommand.js +3 -9
  68. package/dist-es/commands/StartPersonTrackingCommand.js +3 -9
  69. package/dist-es/commands/StartProjectVersionCommand.js +3 -9
  70. package/dist-es/commands/StartSegmentDetectionCommand.js +3 -9
  71. package/dist-es/commands/StartStreamProcessorCommand.js +3 -9
  72. package/dist-es/commands/StartTextDetectionCommand.js +3 -9
  73. package/dist-es/commands/StopProjectVersionCommand.js +3 -9
  74. package/dist-es/commands/StopStreamProcessorCommand.js +3 -9
  75. package/dist-es/commands/TagResourceCommand.js +3 -9
  76. package/dist-es/commands/UntagResourceCommand.js +3 -9
  77. package/dist-es/commands/UpdateDatasetEntriesCommand.js +3 -9
  78. package/dist-es/commands/UpdateStreamProcessorCommand.js +3 -9
  79. package/dist-es/models/models_0.js +0 -10
  80. package/dist-es/runtimeConfig.shared.js +7 -0
  81. package/dist-es/schemas/schemas_0.js +2847 -0
  82. package/dist-types/RekognitionClient.d.ts +10 -1
  83. package/dist-types/models/models_0.d.ts +0 -8
  84. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  85. package/dist-types/runtimeConfig.d.ts +1 -0
  86. package/dist-types/runtimeConfig.native.d.ts +1 -0
  87. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  88. package/dist-types/schemas/schemas_0.d.ts +487 -0
  89. package/dist-types/ts3.4/RekognitionClient.d.ts +4 -0
  90. package/dist-types/ts3.4/models/models_0.d.ts +0 -4
  91. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  92. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  93. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  94. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  95. package/dist-types/ts3.4/schemas/schemas_0.d.ts +493 -0
  96. package/package.json +5 -6
  97. package/dist-es/protocols/Aws_json1_1.js +0 -3336
  98. package/dist-types/protocols/Aws_json1_1.d.ts +0 -677
  99. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -905
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StopProjectVersionCommand, se_StopProjectVersionCommand } from "../protocols/Aws_json1_1";
4
+ import { StopProjectVersion } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StopProjectVersionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("RekognitionService", "StopProjectVersion", {})
17
13
  .n("RekognitionClient", "StopProjectVersionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StopProjectVersionCommand)
20
- .de(de_StopProjectVersionCommand)
14
+ .sc(StopProjectVersion)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StopStreamProcessorCommand, se_StopStreamProcessorCommand } from "../protocols/Aws_json1_1";
4
+ import { StopStreamProcessor } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StopStreamProcessorCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("RekognitionService", "StopStreamProcessor", {})
17
13
  .n("RekognitionClient", "StopStreamProcessorCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StopStreamProcessorCommand)
20
- .de(de_StopStreamProcessorCommand)
14
+ .sc(StopStreamProcessor)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("RekognitionService", "TagResource", {})
17
13
  .n("RekognitionClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("RekognitionService", "UntagResource", {})
17
13
  .n("RekognitionClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateDatasetEntriesCommand, se_UpdateDatasetEntriesCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateDatasetEntries } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateDatasetEntriesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("RekognitionService", "UpdateDatasetEntries", {})
17
13
  .n("RekognitionClient", "UpdateDatasetEntriesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateDatasetEntriesCommand)
20
- .de(de_UpdateDatasetEntriesCommand)
14
+ .sc(UpdateDatasetEntries)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateStreamProcessorCommand, se_UpdateStreamProcessorCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateStreamProcessor } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateStreamProcessorCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("RekognitionService", "UpdateStreamProcessor", {})
17
13
  .n("RekognitionClient", "UpdateStreamProcessorCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateStreamProcessorCommand)
20
- .de(de_UpdateStreamProcessorCommand)
14
+ .sc(UpdateStreamProcessor)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING, } from "@smithy/smithy-client";
2
1
  import { RekognitionServiceException as __BaseException } from "./RekognitionServiceException";
3
2
  export class AccessDeniedException extends __BaseException {
4
3
  name = "AccessDeniedException";
@@ -658,12 +657,3 @@ export class InvalidManifestException extends __BaseException {
658
657
  export const LabelDetectionFeatureName = {
659
658
  GENERAL_LABELS: "GENERAL_LABELS",
660
659
  };
661
- export const AuditImageFilterSensitiveLog = (obj) => ({
662
- ...obj,
663
- ...(obj.Bytes && { Bytes: SENSITIVE_STRING }),
664
- });
665
- export const GetFaceLivenessSessionResultsResponseFilterSensitiveLog = (obj) => ({
666
- ...obj,
667
- ...(obj.ReferenceImage && { ReferenceImage: AuditImageFilterSensitiveLog(obj.ReferenceImage) }),
668
- ...(obj.AuditImages && { AuditImages: obj.AuditImages.map((item) => AuditImageFilterSensitiveLog(item)) }),
669
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_1Protocol({
28
+ defaultNamespace: "com.amazonaws.rekognition",
29
+ serviceTarget: "RekognitionService",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "Rekognition",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,