@aws-sdk/client-codeguru-security 3.758.0 → 3.774.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 (2) hide show
  1. package/dist-cjs/index.js +30 -31
  2. package/package.json +7 -7
package/dist-cjs/index.js CHANGED
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  AccessDeniedException: () => AccessDeniedException,
25
25
  AnalysisType: () => AnalysisType,
26
26
  BatchGetFindingsCommand: () => BatchGetFindingsCommand,
@@ -57,7 +57,7 @@ __export(src_exports, {
57
57
  paginateListFindingsMetrics: () => paginateListFindingsMetrics,
58
58
  paginateListScans: () => paginateListScans
59
59
  });
60
- module.exports = __toCommonJS(src_exports);
60
+ module.exports = __toCommonJS(index_exports);
61
61
 
62
62
  // src/CodeGuruSecurityClient.ts
63
63
  var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
@@ -184,9 +184,9 @@ var CodeGuruSecurityClient = class extends import_smithy_client.Client {
184
184
  this.middlewareStack.use(
185
185
  (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
186
186
  httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultCodeGuruSecurityHttpAuthSchemeParametersProvider,
187
- identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
187
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
188
188
  "aws.auth#sigv4": config.credentials
189
- })
189
+ }), "identityProviderConfigProvider")
190
190
  })
191
191
  );
192
192
  this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
@@ -437,8 +437,7 @@ var ConflictException = class _ConflictException extends CodeGuruSecurityService
437
437
  var ResourceId;
438
438
  ((ResourceId3) => {
439
439
  ResourceId3.visit = /* @__PURE__ */ __name((value, visitor) => {
440
- if (value.codeArtifactId !== void 0)
441
- return visitor.codeArtifactId(value.codeArtifactId);
440
+ if (value.codeArtifactId !== void 0) return visitor.codeArtifactId(value.codeArtifactId);
442
441
  return visitor._(value.$unknown[0], value.$unknown[1]);
443
442
  }, "visit");
444
443
  })(ResourceId || (ResourceId = {}));
@@ -503,7 +502,7 @@ var se_BatchGetFindingsCommand = /* @__PURE__ */ __name(async (input, context) =
503
502
  let body;
504
503
  body = JSON.stringify(
505
504
  (0, import_smithy_client.take)(input, {
506
- findingIdentifiers: (_) => (0, import_smithy_client._json)(_)
505
+ findingIdentifiers: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "findingIdentifiers")
507
506
  })
508
507
  );
509
508
  b.m("POST").h(headers).b(body);
@@ -520,10 +519,10 @@ var se_CreateScanCommand = /* @__PURE__ */ __name(async (input, context) => {
520
519
  (0, import_smithy_client.take)(input, {
521
520
  analysisType: [],
522
521
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
523
- resourceId: (_) => (0, import_smithy_client._json)(_),
522
+ resourceId: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "resourceId"),
524
523
  scanName: [],
525
524
  scanType: [],
526
- tags: (_) => (0, import_smithy_client._json)(_)
525
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
527
526
  })
528
527
  );
529
528
  b.m("POST").h(headers).b(body);
@@ -634,7 +633,7 @@ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
634
633
  let body;
635
634
  body = JSON.stringify(
636
635
  (0, import_smithy_client.take)(input, {
637
- tags: (_) => (0, import_smithy_client._json)(_)
636
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
638
637
  })
639
638
  );
640
639
  b.m("POST").h(headers).b(body);
@@ -661,7 +660,7 @@ var se_UpdateAccountConfigurationCommand = /* @__PURE__ */ __name(async (input,
661
660
  let body;
662
661
  body = JSON.stringify(
663
662
  (0, import_smithy_client.take)(input, {
664
- encryptionConfig: (_) => (0, import_smithy_client._json)(_)
663
+ encryptionConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "encryptionConfig")
665
664
  })
666
665
  );
667
666
  b.m("PUT").h(headers).b(body);
@@ -677,7 +676,7 @@ var de_BatchGetFindingsCommand = /* @__PURE__ */ __name(async (output, context)
677
676
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
678
677
  const doc = (0, import_smithy_client.take)(data, {
679
678
  failedFindings: import_smithy_client._json,
680
- findings: (_) => de_Findings(_, context)
679
+ findings: /* @__PURE__ */ __name((_) => de_Findings(_, context), "findings")
681
680
  });
682
681
  Object.assign(contents, doc);
683
682
  return contents;
@@ -691,7 +690,7 @@ var de_CreateScanCommand = /* @__PURE__ */ __name(async (output, context) => {
691
690
  });
692
691
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
693
692
  const doc = (0, import_smithy_client.take)(data, {
694
- resourceId: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
693
+ resourceId: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "resourceId"),
695
694
  runId: import_smithy_client.expectString,
696
695
  scanName: import_smithy_client.expectString,
697
696
  scanNameArn: import_smithy_client.expectString,
@@ -739,7 +738,7 @@ var de_GetFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
739
738
  });
740
739
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
741
740
  const doc = (0, import_smithy_client.take)(data, {
742
- findings: (_) => de_Findings(_, context),
741
+ findings: /* @__PURE__ */ __name((_) => de_Findings(_, context), "findings"),
743
742
  nextToken: import_smithy_client.expectString
744
743
  });
745
744
  Object.assign(contents, doc);
@@ -754,7 +753,7 @@ var de_GetMetricsSummaryCommand = /* @__PURE__ */ __name(async (output, context)
754
753
  });
755
754
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
756
755
  const doc = (0, import_smithy_client.take)(data, {
757
- metricsSummary: (_) => de_MetricsSummary(_, context)
756
+ metricsSummary: /* @__PURE__ */ __name((_) => de_MetricsSummary(_, context), "metricsSummary")
758
757
  });
759
758
  Object.assign(contents, doc);
760
759
  return contents;
@@ -769,14 +768,14 @@ var de_GetScanCommand = /* @__PURE__ */ __name(async (output, context) => {
769
768
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
770
769
  const doc = (0, import_smithy_client.take)(data, {
771
770
  analysisType: import_smithy_client.expectString,
772
- createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
771
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
773
772
  errorMessage: import_smithy_client.expectString,
774
773
  numberOfRevisions: import_smithy_client.expectLong,
775
774
  runId: import_smithy_client.expectString,
776
775
  scanName: import_smithy_client.expectString,
777
776
  scanNameArn: import_smithy_client.expectString,
778
777
  scanState: import_smithy_client.expectString,
779
- updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
778
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
780
779
  });
781
780
  Object.assign(contents, doc);
782
781
  return contents;
@@ -790,7 +789,7 @@ var de_ListFindingsMetricsCommand = /* @__PURE__ */ __name(async (output, contex
790
789
  });
791
790
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
792
791
  const doc = (0, import_smithy_client.take)(data, {
793
- findingsMetrics: (_) => de_FindingsMetricList(_, context),
792
+ findingsMetrics: /* @__PURE__ */ __name((_) => de_FindingsMetricList(_, context), "findingsMetrics"),
794
793
  nextToken: import_smithy_client.expectString
795
794
  });
796
795
  Object.assign(contents, doc);
@@ -806,7 +805,7 @@ var de_ListScansCommand = /* @__PURE__ */ __name(async (output, context) => {
806
805
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
807
806
  const doc = (0, import_smithy_client.take)(data, {
808
807
  nextToken: import_smithy_client.expectString,
809
- summaries: (_) => de_ScanSummaries(_, context)
808
+ summaries: /* @__PURE__ */ __name((_) => de_ScanSummaries(_, context), "summaries")
810
809
  });
811
810
  Object.assign(contents, doc);
812
811
  return contents;
@@ -990,16 +989,16 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
990
989
  }, "de_ValidationExceptionRes");
991
990
  var de_AccountFindingsMetric = /* @__PURE__ */ __name((output, context) => {
992
991
  return (0, import_smithy_client.take)(output, {
993
- closedFindings: (_) => de_FindingMetricsValuePerSeverity(_, context),
994
- date: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
995
- meanTimeToClose: (_) => de_FindingMetricsValuePerSeverity(_, context),
996
- newFindings: (_) => de_FindingMetricsValuePerSeverity(_, context),
997
- openFindings: (_) => de_FindingMetricsValuePerSeverity(_, context)
992
+ closedFindings: /* @__PURE__ */ __name((_) => de_FindingMetricsValuePerSeverity(_, context), "closedFindings"),
993
+ date: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "date"),
994
+ meanTimeToClose: /* @__PURE__ */ __name((_) => de_FindingMetricsValuePerSeverity(_, context), "meanTimeToClose"),
995
+ newFindings: /* @__PURE__ */ __name((_) => de_FindingMetricsValuePerSeverity(_, context), "newFindings"),
996
+ openFindings: /* @__PURE__ */ __name((_) => de_FindingMetricsValuePerSeverity(_, context), "openFindings")
998
997
  });
999
998
  }, "de_AccountFindingsMetric");
1000
999
  var de_Finding = /* @__PURE__ */ __name((output, context) => {
1001
1000
  return (0, import_smithy_client.take)(output, {
1002
- createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1001
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1003
1002
  description: import_smithy_client.expectString,
1004
1003
  detectorId: import_smithy_client.expectString,
1005
1004
  detectorName: import_smithy_client.expectString,
@@ -1013,7 +1012,7 @@ var de_Finding = /* @__PURE__ */ __name((output, context) => {
1013
1012
  status: import_smithy_client.expectString,
1014
1013
  title: import_smithy_client.expectString,
1015
1014
  type: import_smithy_client.expectString,
1016
- updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1015
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt"),
1017
1016
  vulnerability: import_smithy_client._json
1018
1017
  });
1019
1018
  }, "de_Finding");
@@ -1041,8 +1040,8 @@ var de_FindingsMetricList = /* @__PURE__ */ __name((output, context) => {
1041
1040
  var de_MetricsSummary = /* @__PURE__ */ __name((output, context) => {
1042
1041
  return (0, import_smithy_client.take)(output, {
1043
1042
  categoriesWithMostFindings: import_smithy_client._json,
1044
- date: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1045
- openFindings: (_) => de_FindingMetricsValuePerSeverity(_, context),
1043
+ date: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "date"),
1044
+ openFindings: /* @__PURE__ */ __name((_) => de_FindingMetricsValuePerSeverity(_, context), "openFindings"),
1046
1045
  scansWithMostOpenCriticalFindings: import_smithy_client._json,
1047
1046
  scansWithMostOpenFindings: import_smithy_client._json
1048
1047
  });
@@ -1055,12 +1054,12 @@ var de_ScanSummaries = /* @__PURE__ */ __name((output, context) => {
1055
1054
  }, "de_ScanSummaries");
1056
1055
  var de_ScanSummary = /* @__PURE__ */ __name((output, context) => {
1057
1056
  return (0, import_smithy_client.take)(output, {
1058
- createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1057
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1059
1058
  runId: import_smithy_client.expectString,
1060
1059
  scanName: import_smithy_client.expectString,
1061
1060
  scanNameArn: import_smithy_client.expectString,
1062
1061
  scanState: import_smithy_client.expectString,
1063
- updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1062
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
1064
1063
  });
1065
1064
  }, "de_ScanSummary");
1066
1065
  var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codeguru-security",
3
3
  "description": "AWS SDK for JavaScript Codeguru Security Client for Node.js, Browser and React Native",
4
- "version": "3.758.0",
4
+ "version": "3.774.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-codeguru-security",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.758.0",
24
- "@aws-sdk/credential-provider-node": "3.758.0",
25
- "@aws-sdk/middleware-host-header": "3.734.0",
23
+ "@aws-sdk/core": "3.774.0",
24
+ "@aws-sdk/credential-provider-node": "3.774.0",
25
+ "@aws-sdk/middleware-host-header": "3.774.0",
26
26
  "@aws-sdk/middleware-logger": "3.734.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.734.0",
28
- "@aws-sdk/middleware-user-agent": "3.758.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.772.0",
28
+ "@aws-sdk/middleware-user-agent": "3.774.0",
29
29
  "@aws-sdk/region-config-resolver": "3.734.0",
30
30
  "@aws-sdk/types": "3.734.0",
31
31
  "@aws-sdk/util-endpoints": "3.743.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.734.0",
33
- "@aws-sdk/util-user-agent-node": "3.758.0",
33
+ "@aws-sdk/util-user-agent-node": "3.774.0",
34
34
  "@smithy/config-resolver": "^4.0.1",
35
35
  "@smithy/core": "^3.1.5",
36
36
  "@smithy/fetch-http-handler": "^5.0.1",