@aws-sdk/client-codeguru-reviewer 3.1076.0 → 3.1078.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 (62) hide show
  1. package/dist-cjs/index.js +25 -145
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/AssociateRepositoryCommand.js +2 -14
  4. package/dist-es/commands/CreateCodeReviewCommand.js +2 -14
  5. package/dist-es/commands/DescribeCodeReviewCommand.js +2 -14
  6. package/dist-es/commands/DescribeRecommendationFeedbackCommand.js +2 -14
  7. package/dist-es/commands/DescribeRepositoryAssociationCommand.js +2 -14
  8. package/dist-es/commands/DisassociateRepositoryCommand.js +2 -14
  9. package/dist-es/commands/ListCodeReviewsCommand.js +2 -14
  10. package/dist-es/commands/ListRecommendationFeedbackCommand.js +2 -14
  11. package/dist-es/commands/ListRecommendationsCommand.js +2 -14
  12. package/dist-es/commands/ListRepositoryAssociationsCommand.js +2 -14
  13. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  14. package/dist-es/commands/PutRecommendationFeedbackCommand.js +2 -14
  15. package/dist-es/commands/TagResourceCommand.js +2 -14
  16. package/dist-es/commands/UntagResourceCommand.js +2 -14
  17. package/dist-es/index.js +1 -0
  18. package/dist-es/runtimeConfig.browser.js +0 -2
  19. package/dist-es/runtimeConfig.js +1 -2
  20. package/dist-es/runtimeConfig.native.js +0 -2
  21. package/dist-es/runtimeConfig.shared.js +2 -0
  22. package/dist-types/commandBuilder.d.ts +18 -0
  23. package/dist-types/commands/AssociateRepositoryCommand.d.ts +3 -8
  24. package/dist-types/commands/CreateCodeReviewCommand.d.ts +3 -8
  25. package/dist-types/commands/DescribeCodeReviewCommand.d.ts +3 -8
  26. package/dist-types/commands/DescribeRecommendationFeedbackCommand.d.ts +3 -8
  27. package/dist-types/commands/DescribeRepositoryAssociationCommand.d.ts +3 -8
  28. package/dist-types/commands/DisassociateRepositoryCommand.d.ts +3 -8
  29. package/dist-types/commands/ListCodeReviewsCommand.d.ts +3 -8
  30. package/dist-types/commands/ListRecommendationFeedbackCommand.d.ts +3 -8
  31. package/dist-types/commands/ListRecommendationsCommand.d.ts +3 -8
  32. package/dist-types/commands/ListRepositoryAssociationsCommand.d.ts +3 -8
  33. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  34. package/dist-types/commands/PutRecommendationFeedbackCommand.d.ts +3 -8
  35. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  36. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  37. package/dist-types/index.d.ts +1 -0
  38. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  39. package/dist-types/runtimeConfig.d.ts +1 -1
  40. package/dist-types/runtimeConfig.native.d.ts +1 -1
  41. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  42. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  43. package/dist-types/ts3.4/commands/AssociateRepositoryCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/CreateCodeReviewCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/DescribeCodeReviewCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/DescribeRecommendationFeedbackCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/DescribeRepositoryAssociationCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/DisassociateRepositoryCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/ListCodeReviewsCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/ListRecommendationFeedbackCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/ListRepositoryAssociationsCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/PutRecommendationFeedbackCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/index.d.ts +1 -0
  58. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  59. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  60. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  61. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  62. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultCodeGuruReviewerHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -793,6 +795,7 @@ const getRuntimeConfig$1 = (config) => {
793
795
  serviceTarget: "AWSGuruFrontendService",
794
796
  },
795
797
  serviceId: config?.serviceId ?? "CodeGuru Reviewer",
798
+ sha256: config?.sha256 ?? Sha256,
796
799
  urlParser: config?.urlParser ?? parseUrl,
797
800
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
798
801
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -826,7 +829,6 @@ const getRuntimeConfig = (config) => {
826
829
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
827
830
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
828
831
  }, config),
829
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
830
832
  streamCollector: config?.streamCollector ?? streamCollector,
831
833
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
832
834
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -914,172 +916,50 @@ class CodeGuruReviewerClient extends Client {
914
916
  }
915
917
  }
916
918
 
917
- class AssociateRepositoryCommand extends Command
918
- .classBuilder()
919
- .ep(commonParams)
920
- .m(function (Command, cs, config, o) {
921
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
922
- })
923
- .s("AWSGuruFrontendService", "AssociateRepository", {})
924
- .n("CodeGuruReviewerClient", "AssociateRepositoryCommand")
925
- .sc(AssociateRepository$)
926
- .build() {
919
+ const command = makeBuilder(commonParams, "AWSGuruFrontendService", "CodeGuruReviewerClient", getEndpointPlugin);
920
+ const _ep0 = {};
921
+ const _mw0 = (Command, cs, config, o) => [];
922
+
923
+ class AssociateRepositoryCommand extends command(_ep0, _mw0, "AssociateRepository", AssociateRepository$) {
927
924
  }
928
925
 
929
- class CreateCodeReviewCommand extends Command
930
- .classBuilder()
931
- .ep(commonParams)
932
- .m(function (Command, cs, config, o) {
933
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
934
- })
935
- .s("AWSGuruFrontendService", "CreateCodeReview", {})
936
- .n("CodeGuruReviewerClient", "CreateCodeReviewCommand")
937
- .sc(CreateCodeReview$)
938
- .build() {
926
+ class CreateCodeReviewCommand extends command(_ep0, _mw0, "CreateCodeReview", CreateCodeReview$) {
939
927
  }
940
928
 
941
- class DescribeCodeReviewCommand extends Command
942
- .classBuilder()
943
- .ep(commonParams)
944
- .m(function (Command, cs, config, o) {
945
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
946
- })
947
- .s("AWSGuruFrontendService", "DescribeCodeReview", {})
948
- .n("CodeGuruReviewerClient", "DescribeCodeReviewCommand")
949
- .sc(DescribeCodeReview$)
950
- .build() {
929
+ class DescribeCodeReviewCommand extends command(_ep0, _mw0, "DescribeCodeReview", DescribeCodeReview$) {
951
930
  }
952
931
 
953
- class DescribeRecommendationFeedbackCommand extends Command
954
- .classBuilder()
955
- .ep(commonParams)
956
- .m(function (Command, cs, config, o) {
957
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
958
- })
959
- .s("AWSGuruFrontendService", "DescribeRecommendationFeedback", {})
960
- .n("CodeGuruReviewerClient", "DescribeRecommendationFeedbackCommand")
961
- .sc(DescribeRecommendationFeedback$)
962
- .build() {
932
+ class DescribeRecommendationFeedbackCommand extends command(_ep0, _mw0, "DescribeRecommendationFeedback", DescribeRecommendationFeedback$) {
963
933
  }
964
934
 
965
- class DescribeRepositoryAssociationCommand extends Command
966
- .classBuilder()
967
- .ep(commonParams)
968
- .m(function (Command, cs, config, o) {
969
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
970
- })
971
- .s("AWSGuruFrontendService", "DescribeRepositoryAssociation", {})
972
- .n("CodeGuruReviewerClient", "DescribeRepositoryAssociationCommand")
973
- .sc(DescribeRepositoryAssociation$)
974
- .build() {
935
+ class DescribeRepositoryAssociationCommand extends command(_ep0, _mw0, "DescribeRepositoryAssociation", DescribeRepositoryAssociation$) {
975
936
  }
976
937
 
977
- class DisassociateRepositoryCommand extends Command
978
- .classBuilder()
979
- .ep(commonParams)
980
- .m(function (Command, cs, config, o) {
981
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
982
- })
983
- .s("AWSGuruFrontendService", "DisassociateRepository", {})
984
- .n("CodeGuruReviewerClient", "DisassociateRepositoryCommand")
985
- .sc(DisassociateRepository$)
986
- .build() {
938
+ class DisassociateRepositoryCommand extends command(_ep0, _mw0, "DisassociateRepository", DisassociateRepository$) {
987
939
  }
988
940
 
989
- class ListCodeReviewsCommand extends Command
990
- .classBuilder()
991
- .ep(commonParams)
992
- .m(function (Command, cs, config, o) {
993
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
994
- })
995
- .s("AWSGuruFrontendService", "ListCodeReviews", {})
996
- .n("CodeGuruReviewerClient", "ListCodeReviewsCommand")
997
- .sc(ListCodeReviews$)
998
- .build() {
941
+ class ListCodeReviewsCommand extends command(_ep0, _mw0, "ListCodeReviews", ListCodeReviews$) {
999
942
  }
1000
943
 
1001
- class ListRecommendationFeedbackCommand extends Command
1002
- .classBuilder()
1003
- .ep(commonParams)
1004
- .m(function (Command, cs, config, o) {
1005
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1006
- })
1007
- .s("AWSGuruFrontendService", "ListRecommendationFeedback", {})
1008
- .n("CodeGuruReviewerClient", "ListRecommendationFeedbackCommand")
1009
- .sc(ListRecommendationFeedback$)
1010
- .build() {
944
+ class ListRecommendationFeedbackCommand extends command(_ep0, _mw0, "ListRecommendationFeedback", ListRecommendationFeedback$) {
1011
945
  }
1012
946
 
1013
- class ListRecommendationsCommand extends Command
1014
- .classBuilder()
1015
- .ep(commonParams)
1016
- .m(function (Command, cs, config, o) {
1017
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1018
- })
1019
- .s("AWSGuruFrontendService", "ListRecommendations", {})
1020
- .n("CodeGuruReviewerClient", "ListRecommendationsCommand")
1021
- .sc(ListRecommendations$)
1022
- .build() {
947
+ class ListRecommendationsCommand extends command(_ep0, _mw0, "ListRecommendations", ListRecommendations$) {
1023
948
  }
1024
949
 
1025
- class ListRepositoryAssociationsCommand extends Command
1026
- .classBuilder()
1027
- .ep(commonParams)
1028
- .m(function (Command, cs, config, o) {
1029
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1030
- })
1031
- .s("AWSGuruFrontendService", "ListRepositoryAssociations", {})
1032
- .n("CodeGuruReviewerClient", "ListRepositoryAssociationsCommand")
1033
- .sc(ListRepositoryAssociations$)
1034
- .build() {
950
+ class ListRepositoryAssociationsCommand extends command(_ep0, _mw0, "ListRepositoryAssociations", ListRepositoryAssociations$) {
1035
951
  }
1036
952
 
1037
- class ListTagsForResourceCommand extends Command
1038
- .classBuilder()
1039
- .ep(commonParams)
1040
- .m(function (Command, cs, config, o) {
1041
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1042
- })
1043
- .s("AWSGuruFrontendService", "ListTagsForResource", {})
1044
- .n("CodeGuruReviewerClient", "ListTagsForResourceCommand")
1045
- .sc(ListTagsForResource$)
1046
- .build() {
953
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1047
954
  }
1048
955
 
1049
- class PutRecommendationFeedbackCommand extends Command
1050
- .classBuilder()
1051
- .ep(commonParams)
1052
- .m(function (Command, cs, config, o) {
1053
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1054
- })
1055
- .s("AWSGuruFrontendService", "PutRecommendationFeedback", {})
1056
- .n("CodeGuruReviewerClient", "PutRecommendationFeedbackCommand")
1057
- .sc(PutRecommendationFeedback$)
1058
- .build() {
956
+ class PutRecommendationFeedbackCommand extends command(_ep0, _mw0, "PutRecommendationFeedback", PutRecommendationFeedback$) {
1059
957
  }
1060
958
 
1061
- class TagResourceCommand extends Command
1062
- .classBuilder()
1063
- .ep(commonParams)
1064
- .m(function (Command, cs, config, o) {
1065
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1066
- })
1067
- .s("AWSGuruFrontendService", "TagResource", {})
1068
- .n("CodeGuruReviewerClient", "TagResourceCommand")
1069
- .sc(TagResource$)
1070
- .build() {
959
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1071
960
  }
1072
961
 
1073
- class UntagResourceCommand extends Command
1074
- .classBuilder()
1075
- .ep(commonParams)
1076
- .m(function (Command, cs, config, o) {
1077
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1078
- })
1079
- .s("AWSGuruFrontendService", "UntagResource", {})
1080
- .n("CodeGuruReviewerClient", "UntagResourceCommand")
1081
- .sc(UntagResource$)
1082
- .build() {
962
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1083
963
  }
1084
964
 
1085
965
  const paginateListCodeReviews = createPaginator(CodeGuruReviewerClient, ListCodeReviewsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "AWSGuruFrontendService", "CodeGuruReviewerClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AssociateRepository$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AssociateRepositoryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSGuruFrontendService", "AssociateRepository", {})
13
- .n("CodeGuruReviewerClient", "AssociateRepositoryCommand")
14
- .sc(AssociateRepository$)
15
- .build() {
3
+ export class AssociateRepositoryCommand extends command(_ep0, _mw0, "AssociateRepository", AssociateRepository$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateCodeReview$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateCodeReviewCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSGuruFrontendService", "CreateCodeReview", {})
13
- .n("CodeGuruReviewerClient", "CreateCodeReviewCommand")
14
- .sc(CreateCodeReview$)
15
- .build() {
3
+ export class CreateCodeReviewCommand extends command(_ep0, _mw0, "CreateCodeReview", CreateCodeReview$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeCodeReview$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeCodeReviewCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSGuruFrontendService", "DescribeCodeReview", {})
13
- .n("CodeGuruReviewerClient", "DescribeCodeReviewCommand")
14
- .sc(DescribeCodeReview$)
15
- .build() {
3
+ export class DescribeCodeReviewCommand extends command(_ep0, _mw0, "DescribeCodeReview", DescribeCodeReview$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeRecommendationFeedback$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeRecommendationFeedbackCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSGuruFrontendService", "DescribeRecommendationFeedback", {})
13
- .n("CodeGuruReviewerClient", "DescribeRecommendationFeedbackCommand")
14
- .sc(DescribeRecommendationFeedback$)
15
- .build() {
3
+ export class DescribeRecommendationFeedbackCommand extends command(_ep0, _mw0, "DescribeRecommendationFeedback", DescribeRecommendationFeedback$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeRepositoryAssociation$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeRepositoryAssociationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSGuruFrontendService", "DescribeRepositoryAssociation", {})
13
- .n("CodeGuruReviewerClient", "DescribeRepositoryAssociationCommand")
14
- .sc(DescribeRepositoryAssociation$)
15
- .build() {
3
+ export class DescribeRepositoryAssociationCommand extends command(_ep0, _mw0, "DescribeRepositoryAssociation", DescribeRepositoryAssociation$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DisassociateRepository$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DisassociateRepositoryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSGuruFrontendService", "DisassociateRepository", {})
13
- .n("CodeGuruReviewerClient", "DisassociateRepositoryCommand")
14
- .sc(DisassociateRepository$)
15
- .build() {
3
+ export class DisassociateRepositoryCommand extends command(_ep0, _mw0, "DisassociateRepository", DisassociateRepository$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListCodeReviews$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListCodeReviewsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSGuruFrontendService", "ListCodeReviews", {})
13
- .n("CodeGuruReviewerClient", "ListCodeReviewsCommand")
14
- .sc(ListCodeReviews$)
15
- .build() {
3
+ export class ListCodeReviewsCommand extends command(_ep0, _mw0, "ListCodeReviews", ListCodeReviews$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListRecommendationFeedback$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListRecommendationFeedbackCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSGuruFrontendService", "ListRecommendationFeedback", {})
13
- .n("CodeGuruReviewerClient", "ListRecommendationFeedbackCommand")
14
- .sc(ListRecommendationFeedback$)
15
- .build() {
3
+ export class ListRecommendationFeedbackCommand extends command(_ep0, _mw0, "ListRecommendationFeedback", ListRecommendationFeedback$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListRecommendations$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListRecommendationsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSGuruFrontendService", "ListRecommendations", {})
13
- .n("CodeGuruReviewerClient", "ListRecommendationsCommand")
14
- .sc(ListRecommendations$)
15
- .build() {
3
+ export class ListRecommendationsCommand extends command(_ep0, _mw0, "ListRecommendations", ListRecommendations$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListRepositoryAssociations$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListRepositoryAssociationsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSGuruFrontendService", "ListRepositoryAssociations", {})
13
- .n("CodeGuruReviewerClient", "ListRepositoryAssociationsCommand")
14
- .sc(ListRepositoryAssociations$)
15
- .build() {
3
+ export class ListRepositoryAssociationsCommand extends command(_ep0, _mw0, "ListRepositoryAssociations", ListRepositoryAssociations$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSGuruFrontendService", "ListTagsForResource", {})
13
- .n("CodeGuruReviewerClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PutRecommendationFeedback$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutRecommendationFeedbackCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSGuruFrontendService", "PutRecommendationFeedback", {})
13
- .n("CodeGuruReviewerClient", "PutRecommendationFeedbackCommand")
14
- .sc(PutRecommendationFeedback$)
15
- .build() {
3
+ export class PutRecommendationFeedbackCommand extends command(_ep0, _mw0, "PutRecommendationFeedback", PutRecommendationFeedback$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSGuruFrontendService", "TagResource", {})
13
- .n("CodeGuruReviewerClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UntagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSGuruFrontendService", "UntagResource", {})
13
- .n("CodeGuruReviewerClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./CodeGuruReviewerClient";
2
2
  export * from "./CodeGuruReviewer";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./waiters";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "AWSGuruFrontendService",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "CodeGuru Reviewer",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { CodeGuruReviewerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./CodeGuruReviewerClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, CodeGuruReviewerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, CodeGuruReviewerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];