snyk 1.1237.0 → 1.1238.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.
@@ -231527,15 +231527,25 @@ async function inspect(root, targetFile, options) {
231527
231527
  This should be considered experimental and not relied upon for production use.
231528
231528
  Please report issues with this beta feature by submitting a support ticket, and attach the output of running this command
231529
231529
  with the debug (-d) flag at \x1b[4mhttps://support.snyk.io/hc/en-us/requests/new\x1b[0m.`);
231530
- const result = await nugetParser.buildDepGraphFromFiles(root, targetFile, manifestType, options['assets-project-name'], options['project-name-prefix'], options['dotnet-target-framework']);
231531
- return {
231532
- dependencyGraph: result.dependencyGraph,
231530
+ const results = await nugetParser.buildDepGraphFromFiles(root, targetFile, manifestType, options['assets-project-name'], options['project-name-prefix'], options['dotnet-target-framework']);
231531
+ // Construct a MultiProjectResult to send to either the CLI or the SCM scanner.
231532
+ const multiProjectResult = {
231533
231533
  plugin: {
231534
231534
  name: 'snyk-nuget-plugin',
231535
231535
  targetFile,
231536
- targetRuntime: result.targetFramework,
231537
231536
  },
231537
+ scannedProjects: [],
231538
231538
  };
231539
+ for (const result of results) {
231540
+ multiProjectResult.scannedProjects.push({
231541
+ targetFile: targetFile,
231542
+ depGraph: result.dependencyGraph,
231543
+ meta: {
231544
+ targetRuntime: result.targetFramework,
231545
+ },
231546
+ });
231547
+ }
231548
+ return multiProjectResult;
231539
231549
  }
231540
231550
  return nugetParser
231541
231551
  .buildDepTreeFromFiles(root, targetFile, options.packagesFolder, manifestType, options['assets-project-name'], options['project-name-prefix'])
@@ -231633,7 +231643,7 @@ async function publish(projectPath, targetFramework) {
231633
231643
  // E.g., something like:
231634
231644
  // dotnet_6 -> /foo/bar/project/bin/Debug/net6.0/osx-arm64/project_name.dll
231635
231645
  // Either way, since we're forcing a publish of a self-contained project, all .dlls should be placed there.
231636
- // This logic does seem a bit popsicle and duct-tape ish, but I have yet to find a more stable solution. PRs welcome!
231646
+ // PRs are welcome!
231637
231647
  .find((line) => line.endsWith('.dll') || line.endsWith('.exe'));
231638
231648
  if (!publishDirLine) {
231639
231649
  const err = `Could not find a valid publish path while reading stdout: ${response.stdout}`;
@@ -232016,40 +232026,44 @@ Will attempt to build dependency graph anyway, but the operation might fail.`);
232016
232026
  debug(`project.assets.json file doesn't contain a value for 'projectName'. Using default value: ${resolvedProjectName}`);
232017
232027
  }
232018
232028
  }
232019
- // TODO: OSM-347 - return vulnerability scans for all
232020
- let decidedTargetFramework;
232021
- if (!targetFramework) {
232022
- console.log(`No targetFramework supplied, defaulting to using the first in the list of the manifest (\x1b[1m${targetFrameworks[0]}\x1b[0m).
232023
- Supply a targetFramework by using the \x1b[1m--dotnet-target-framework\x1b[0m argument.`);
232024
- decidedTargetFramework = targetFrameworks[0];
232029
+ // If a specific targetFramework has been requested, only query that, otherwise try to do them all
232030
+ const decidedTargetFrameworks = targetFramework
232031
+ ? [targetFramework]
232032
+ : targetFrameworks.filter((framework) => {
232033
+ if (!depsParser.isSupportedByV2GraphGeneration(framework)) {
232034
+ console.log(`\x1b[33m⚠ WARNING\x1b[0m: The runtime resolution flag is currently only supported for the following TargetFrameworks: .NET versions 5 and higher, all versions of .NET Core and all versions of .NET Standard. Detected a TargetFramework: \x1b[1m${framework}\x1b[0m, which will be skipped.`);
232035
+ return false;
232036
+ }
232037
+ return true;
232038
+ });
232039
+ if (decidedTargetFrameworks.length == 0) {
232040
+ throw new errors_1.InvalidManifestError(`Was not able to find any supported TargetFrameworks to scan, aborting`);
232025
232041
  }
232026
- else {
232027
- decidedTargetFramework = targetFramework;
232028
- }
232029
- if (!depsParser.isSupportedByV2GraphGeneration(decidedTargetFramework)) {
232030
- throw new errors_1.FileNotProcessableError(`runtime resolution flag is currently only supported for: .NET versions 5 and higher, all versions of .NET Core and all versions of .NET Standard projects. Supplied versions was parsed as: ${decidedTargetFramework}.`);
232031
- }
232032
- // Ensure `dotnet` is installed on the system or fail trying.
232033
- await dotnet.validate();
232034
- // Run `dotnet publish` to create a self-contained publishable binary with included .dlls for assembly version inspection.
232035
- const publishDir = await dotnet.publish(projectRootFolder, decidedTargetFramework);
232036
- // Then inspect the dependency graph for the runtimepackage's assembly versions.
232037
- const depsFile = path.resolve(publishDir, `${projectNameFromManifestFile}.deps.json`);
232038
- const assemblyVersions = runtimeAssembly.generateRuntimeAssemblies(depsFile);
232039
- // Parse the TargetFramework using Nuget.Frameworks itself, instead of trying to reinvent the wheel, thus ensuring
232040
- // we have maximum context to use later when building the depGraph.
232041
- const location = nugetFrameworksParser.generate();
232042
- await dotnet.restore(location);
232043
- const response = await dotnet.run(location, [decidedTargetFramework]);
232044
- const targetFrameworkInfo = JSON.parse(response);
232045
- if (targetFrameworkInfo.IsUnsupported) {
232046
- throw new errors_1.InvalidManifestError(`dotnet was not able to parse the target framework ${decidedTargetFramework}, it was reported unsupported by the dotnet runtime`);
232047
- }
232048
- const depGraph = parser.depParser.parse(resolvedProjectName, manifest, assemblyVersions, targetFrameworkInfo);
232049
- return {
232050
- dependencyGraph: depGraph,
232051
- targetFramework: decidedTargetFramework,
232052
- };
232042
+ const results = [];
232043
+ for (const decidedTargetFramework of decidedTargetFrameworks) {
232044
+ // Ensure `dotnet` is installed on the system or fail trying.
232045
+ await dotnet.validate();
232046
+ // Run `dotnet publish` to create a self-contained publishable binary with included .dlls for assembly version inspection.
232047
+ const publishDir = await dotnet.publish(projectRootFolder, decidedTargetFramework);
232048
+ // Then inspect the dependency graph for the runtimepackage's assembly versions.
232049
+ const depsFile = path.resolve(publishDir, `${projectNameFromManifestFile}.deps.json`);
232050
+ const assemblyVersions = runtimeAssembly.generateRuntimeAssemblies(depsFile);
232051
+ // Parse the TargetFramework using Nuget.Frameworks itself, instead of trying to reinvent the wheel, thus ensuring
232052
+ // we have maximum context to use later when building the depGraph.
232053
+ const location = nugetFrameworksParser.generate();
232054
+ await dotnet.restore(location);
232055
+ const response = await dotnet.run(location, [decidedTargetFramework]);
232056
+ const targetFrameworkInfo = JSON.parse(response);
232057
+ if (targetFrameworkInfo.IsUnsupported) {
232058
+ throw new errors_1.InvalidManifestError(`dotnet was not able to parse the target framework ${decidedTargetFramework}, it was reported unsupported by the dotnet runtime`);
232059
+ }
232060
+ const depGraph = parser.depParser.parse(resolvedProjectName, manifest, assemblyVersions, targetFrameworkInfo);
232061
+ results.push({
232062
+ dependencyGraph: depGraph,
232063
+ targetFramework: decidedTargetFramework,
232064
+ });
232065
+ }
232066
+ return results;
232053
232067
  }
232054
232068
  exports.buildDepGraphFromFiles = buildDepGraphFromFiles;
232055
232069
  async function buildDepTreeFromFiles(root, targetFile, packagesFolderPath, manifestType, useProjectNameFromAssetsFile, projectNamePrefix) {
@@ -232092,7 +232106,8 @@ async function buildDepTreeFromFiles(root, targetFile, packagesFolderPath, manif
232092
232106
  catch (error) {
232093
232107
  return Promise.reject(error);
232094
232108
  }
232095
- // TODO: OSM-347 - use more than just the first one we find
232109
+ // Only supports the first targetFramework we find.
232110
+ // Use the newer `buildDepGraphFromFiles` for better support for multiple target frameworks.
232096
232111
  const targetFramework = targetFrameworks.length > 0 ? targetFrameworks[0].original : undefined;
232097
232112
  tree.meta = {
232098
232113
  targetFramework: targetFramework,
@@ -232468,6 +232483,10 @@ function buildGraph(projectName, projectAssets, runtimeAssembly, targetFramework
232468
232483
  }
232469
232484
  // Access all top-level dependencies from the right target point in the project.assets.json, or fail trying.
232470
232485
  const directDepsMoniker = findTargetFrameworkMonikerInManifest(targetFrameworkInfo, projectAssets.project.frameworks);
232486
+ // Potentially we're scanning a project that really has no dependencies
232487
+ if (!projectAssets.project.frameworks[directDepsMoniker].dependencies) {
232488
+ return depGraphBuilder.build();
232489
+ }
232471
232490
  // Those dependencies are referenced in the 'targets' member in the same assets file.
232472
232491
  const topLevelDeps = Object.keys(projectAssets.project.frameworks[directDepsMoniker].dependencies);
232473
232492
  // The list of targets gets decorated differently depending on version of the TargetFramework, (.NET 5+ versions
@@ -284548,7 +284567,7 @@ function extend() {
284548
284567
  */
284549
284568
 
284550
284569
  Object.defineProperty(exports, "__esModule", ({ value: true }));
284551
- exports.FailedToGenerateHashError = exports.FailedToLoadCompiledYamlError = exports.FailedToParsePullRequestAttributesError = exports.FailedToCompilePrTemplateError = exports.PullRequestTemplateNotFoundError = exports.FailedToGetPullRequestAttributesError = void 0;
284570
+ exports.PRTemplateInvalidPayloadError = exports.FailedToDeletePRTemplateError = exports.FailedToReadPRTemplateError = exports.FailedToCreatePRTemplateError = exports.FailedToGenerateHashError = exports.FailedToLoadCompiledYamlError = exports.FailedToParsePullRequestAttributesError = exports.FailedToCompilePrTemplateError = exports.PullRequestTemplateNotFoundError = exports.FailedToGetPullRequestAttributesError = void 0;
284552
284571
  const problem_error_1 = __webpack_require__(83649);
284553
284572
  /**
284554
284573
  * @class
@@ -284725,330 +284744,126 @@ class FailedToGenerateHashError extends problem_error_1.ProblemError {
284725
284744
  }
284726
284745
  }
284727
284746
  exports.FailedToGenerateHashError = FailedToGenerateHashError;
284728
- //# sourceMappingURL=Fix-error-catalog.js.map
284729
-
284730
- /***/ }),
284731
-
284732
- /***/ 56697:
284733
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
284734
-
284735
- "use strict";
284736
- /*
284737
- * © 2023 Snyk Limited
284738
- *
284739
- * Licensed under the Apache License, Version 2.0 (the 'License');
284740
- * you may not use this file except in compliance with the License.
284741
- * You may obtain a copy of the License at
284742
- *
284743
- * https://www.apache.org/licenses/LICENSE-2.0
284744
- *
284745
- * Unless required by applicable law or agreed to in writing, software
284746
- * distributed under the License is distributed on an 'AS IS' BASIS,
284747
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
284748
- * See the License for the specific language governing permissions and
284749
- * limitations under the License.
284750
- */
284751
-
284752
- Object.defineProperty(exports, "__esModule", ({ value: true }));
284753
- exports.BuildEnvironmentNotFoundError = exports.InvalidRequestError = void 0;
284754
- const problem_error_1 = __webpack_require__(83649);
284755
284747
  /**
284756
284748
  * @class
284757
- * @name InvalidRequestError
284758
- * @description The provided request payload is not valid for the selected ecosystem. Please review the API documentation.
284749
+ * @name FailedToCreatePRTemplateError
284750
+ * @description Snyk could not create pull request template.
284759
284751
  *
284760
284752
  * See more:
284761
- * - [https://apidocs.snyk.io/](https://apidocs.snyk.io/)
284762
- * @summary Invalid request
284763
- * @category IsolatedBuilds
284753
+ * - [https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta](https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta)
284754
+ * @summary Unable to create pull request template
284755
+ * @category Fix
284764
284756
  * @param {string} details the specific details that causes this error
284765
284757
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
284766
284758
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
284767
284759
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
284768
284760
  */
284769
- class InvalidRequestError extends problem_error_1.ProblemError {
284761
+ class FailedToCreatePRTemplateError extends problem_error_1.ProblemError {
284770
284762
  constructor(details, additionalData, cause, instance) {
284771
284763
  super({
284772
- title: 'Invalid request',
284773
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-8001',
284774
- status: 400,
284775
- errorCode: 'SNYK-OS-8001',
284764
+ title: 'Unable to create pull request template',
284765
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-template-0007',
284766
+ status: 500,
284767
+ errorCode: 'SNYK-PR-TEMPLATE-0007',
284776
284768
  level: 'error',
284777
284769
  instance,
284778
284770
  }, details, Object.assign({ links: [
284779
- 'https://apidocs.snyk.io/',
284771
+ 'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
284780
284772
  ] }, additionalData), cause);
284781
284773
  this.name = this.constructor.name;
284782
284774
  }
284783
284775
  }
284784
- exports.InvalidRequestError = InvalidRequestError;
284776
+ exports.FailedToCreatePRTemplateError = FailedToCreatePRTemplateError;
284785
284777
  /**
284786
284778
  * @class
284787
- * @name BuildEnvironmentNotFoundError
284788
- * @description The build environment for the provided context could not be found. Please ensure you have created the build environment first.
284789
- * @summary Build environment not found
284790
- * @category IsolatedBuilds
284791
- * @param {string} details the specific details that causes this error
284792
- * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
284793
- * @param {Error} [cause] the `Error` type that caused this error to be thrown
284794
- * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
284795
- */
284796
- class BuildEnvironmentNotFoundError extends problem_error_1.ProblemError {
284797
- constructor(details, additionalData, cause, instance) {
284798
- super({
284799
- title: 'Build environment not found',
284800
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-8002',
284801
- status: 404,
284802
- errorCode: 'SNYK-OS-8002',
284803
- level: 'warn',
284804
- instance,
284805
- }, details, Object.assign({ links: [] }, additionalData), cause);
284806
- this.name = this.constructor.name;
284807
- }
284808
- }
284809
- exports.BuildEnvironmentNotFoundError = BuildEnvironmentNotFoundError;
284810
- //# sourceMappingURL=IsolatedBuilds-error-catalog.js.map
284811
-
284812
- /***/ }),
284813
-
284814
- /***/ 11014:
284815
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
284816
-
284817
- "use strict";
284818
- /*
284819
- * © 2023 Snyk Limited
284820
- *
284821
- * Licensed under the Apache License, Version 2.0 (the 'License');
284822
- * you may not use this file except in compliance with the License.
284823
- * You may obtain a copy of the License at
284824
- *
284825
- * https://www.apache.org/licenses/LICENSE-2.0
284826
- *
284827
- * Unless required by applicable law or agreed to in writing, software
284828
- * distributed under the License is distributed on an 'AS IS' BASIS,
284829
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
284830
- * See the License for the specific language governing permissions and
284831
- * limitations under the License.
284832
- */
284833
-
284834
- Object.defineProperty(exports, "__esModule", ({ value: true }));
284835
- exports.UnsupportedMediaTypeError = exports.UnauthorizedError = exports.RequestEntityTooLargeError = exports.MethodNotAllowedError = exports.NotFoundError = exports.NotAcceptableError = exports.ForbiddenError = exports.BadRequestError = void 0;
284836
- const problem_error_1 = __webpack_require__(83649);
284837
- /**
284838
- * @class
284839
- * @name BadRequestError
284840
- * @description The server cannot process the request due to invalid or corrupt data. Review the request, then try again.
284779
+ * @name FailedToReadPRTemplateError
284780
+ * @description Snyk could not get pull request template.
284841
284781
  *
284842
284782
  * See more:
284843
- * - [https://docs.snyk.io/snyk-api-info/getting-started-using-snyk-rest-api ](https://docs.snyk.io/snyk-api-info/getting-started-using-snyk-rest-api )
284844
- * @summary Bad request
284845
- * @category OpenAPI
284783
+ * - [https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta](https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta)
284784
+ * @summary Unable to get pull request template
284785
+ * @category Fix
284846
284786
  * @param {string} details the specific details that causes this error
284847
284787
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
284848
284788
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
284849
284789
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
284850
284790
  */
284851
- class BadRequestError extends problem_error_1.ProblemError {
284791
+ class FailedToReadPRTemplateError extends problem_error_1.ProblemError {
284852
284792
  constructor(details, additionalData, cause, instance) {
284853
284793
  super({
284854
- title: 'Bad request',
284855
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0001',
284856
- status: 400,
284857
- errorCode: 'SNYK-OPENAPI-0001',
284858
- level: 'warn',
284794
+ title: 'Unable to get pull request template',
284795
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-template-0008',
284796
+ status: 500,
284797
+ errorCode: 'SNYK-PR-TEMPLATE-0008',
284798
+ level: 'error',
284859
284799
  instance,
284860
284800
  }, details, Object.assign({ links: [
284861
- 'https://docs.snyk.io/snyk-api-info/getting-started-using-snyk-rest-api ',
284801
+ 'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
284862
284802
  ] }, additionalData), cause);
284863
284803
  this.name = this.constructor.name;
284864
284804
  }
284865
284805
  }
284866
- exports.BadRequestError = BadRequestError;
284806
+ exports.FailedToReadPRTemplateError = FailedToReadPRTemplateError;
284867
284807
  /**
284868
284808
  * @class
284869
- * @name ForbiddenError
284870
- * @description Access to the requested resource is forbidden.
284871
- * @summary Forbidden
284872
- * @category OpenAPI
284873
- * @param {string} details the specific details that causes this error
284874
- * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
284875
- * @param {Error} [cause] the `Error` type that caused this error to be thrown
284876
- * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
284877
- */
284878
- class ForbiddenError extends problem_error_1.ProblemError {
284879
- constructor(details, additionalData, cause, instance) {
284880
- super({
284881
- title: 'Forbidden',
284882
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0002',
284883
- status: 403,
284884
- errorCode: 'SNYK-OPENAPI-0002',
284885
- level: 'warn',
284886
- instance,
284887
- }, details, Object.assign({ links: [] }, additionalData), cause);
284888
- this.name = this.constructor.name;
284889
- }
284890
- }
284891
- exports.ForbiddenError = ForbiddenError;
284892
- /**
284893
- * @class
284894
- * @name NotAcceptableError
284895
- * @description The server cannot provide a response that matches the provided accept headers. Review the request, then try again.
284896
- * @summary Not acceptable
284897
- * @category OpenAPI
284898
- * @param {string} details the specific details that causes this error
284899
- * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
284900
- * @param {Error} [cause] the `Error` type that caused this error to be thrown
284901
- * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
284902
- */
284903
- class NotAcceptableError extends problem_error_1.ProblemError {
284904
- constructor(details, additionalData, cause, instance) {
284905
- super({
284906
- title: 'Not acceptable',
284907
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0003',
284908
- status: 406,
284909
- errorCode: 'SNYK-OPENAPI-0003',
284910
- level: 'warn',
284911
- instance,
284912
- }, details, Object.assign({ links: [] }, additionalData), cause);
284913
- this.name = this.constructor.name;
284914
- }
284915
- }
284916
- exports.NotAcceptableError = NotAcceptableError;
284917
- /**
284918
- * @class
284919
- * @name NotFoundError
284920
- * @description The server cannot find the requested resource.
284921
- * @summary Not found
284922
- * @category OpenAPI
284923
- * @param {string} details the specific details that causes this error
284924
- * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
284925
- * @param {Error} [cause] the `Error` type that caused this error to be thrown
284926
- * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
284927
- */
284928
- class NotFoundError extends problem_error_1.ProblemError {
284929
- constructor(details, additionalData, cause, instance) {
284930
- super({
284931
- title: 'Not found',
284932
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0004',
284933
- status: 404,
284934
- errorCode: 'SNYK-OPENAPI-0004',
284935
- level: 'warn',
284936
- instance,
284937
- }, details, Object.assign({ links: [] }, additionalData), cause);
284938
- this.name = this.constructor.name;
284939
- }
284940
- }
284941
- exports.NotFoundError = NotFoundError;
284942
- /**
284943
- * @class
284944
- * @name MethodNotAllowedError
284945
- * @description The target endpoint does not support your request method. Review the request, then try again.
284946
- * @summary Method not allowed
284947
- * @category OpenAPI
284948
- * @param {string} details the specific details that causes this error
284949
- * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
284950
- * @param {Error} [cause] the `Error` type that caused this error to be thrown
284951
- * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
284952
- */
284953
- class MethodNotAllowedError extends problem_error_1.ProblemError {
284954
- constructor(details, additionalData, cause, instance) {
284955
- super({
284956
- title: 'Method not allowed',
284957
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0005',
284958
- status: 405,
284959
- errorCode: 'SNYK-OPENAPI-0005',
284960
- level: 'warn',
284961
- instance,
284962
- }, details, Object.assign({ links: [] }, additionalData), cause);
284963
- this.name = this.constructor.name;
284964
- }
284965
- }
284966
- exports.MethodNotAllowedError = MethodNotAllowedError;
284967
- /**
284968
- * @class
284969
- * @name RequestEntityTooLargeError
284970
- * @description The request entity exceeds server limitations.
284971
- * @summary Request entity too large
284972
- * @category OpenAPI
284973
- * @param {string} details the specific details that causes this error
284974
- * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
284975
- * @param {Error} [cause] the `Error` type that caused this error to be thrown
284976
- * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
284977
- */
284978
- class RequestEntityTooLargeError extends problem_error_1.ProblemError {
284979
- constructor(details, additionalData, cause, instance) {
284980
- super({
284981
- title: 'Request entity too large',
284982
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0006',
284983
- status: 413,
284984
- errorCode: 'SNYK-OPENAPI-0006',
284985
- level: 'warn',
284986
- instance,
284987
- }, details, Object.assign({ links: [] }, additionalData), cause);
284988
- this.name = this.constructor.name;
284989
- }
284990
- }
284991
- exports.RequestEntityTooLargeError = RequestEntityTooLargeError;
284992
- /**
284993
- * @class
284994
- * @name UnauthorizedError
284995
- * @description The request lacks authentication credentials for the requested resource.
284809
+ * @name FailedToDeletePRTemplateError
284810
+ * @description Snyk could not delete pull request template.
284996
284811
  *
284997
284812
  * See more:
284998
- * - [https://docs.snyk.io/snyk-api-info/authentication-for-api ](https://docs.snyk.io/snyk-api-info/authentication-for-api )
284999
- * @summary Unauthorized
285000
- * @category OpenAPI
284813
+ * - [https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta](https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta)
284814
+ * @summary Unable to delete pull request template
284815
+ * @category Fix
285001
284816
  * @param {string} details the specific details that causes this error
285002
284817
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285003
284818
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285004
284819
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285005
284820
  */
285006
- class UnauthorizedError extends problem_error_1.ProblemError {
284821
+ class FailedToDeletePRTemplateError extends problem_error_1.ProblemError {
285007
284822
  constructor(details, additionalData, cause, instance) {
285008
284823
  super({
285009
- title: 'Unauthorized',
285010
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0007',
285011
- status: 401,
285012
- errorCode: 'SNYK-OPENAPI-0007',
285013
- level: 'warn',
284824
+ title: 'Unable to delete pull request template',
284825
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-template-0009',
284826
+ status: 500,
284827
+ errorCode: 'SNYK-PR-TEMPLATE-0009',
284828
+ level: 'error',
285014
284829
  instance,
285015
284830
  }, details, Object.assign({ links: [
285016
- 'https://docs.snyk.io/snyk-api-info/authentication-for-api ',
284831
+ 'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
285017
284832
  ] }, additionalData), cause);
285018
284833
  this.name = this.constructor.name;
285019
284834
  }
285020
284835
  }
285021
- exports.UnauthorizedError = UnauthorizedError;
284836
+ exports.FailedToDeletePRTemplateError = FailedToDeletePRTemplateError;
285022
284837
  /**
285023
284838
  * @class
285024
- * @name UnsupportedMediaTypeError
285025
- * @description The media format of the request is not supported.
285026
- * @summary Unsupported media type
285027
- * @category OpenAPI
284839
+ * @name PRTemplateInvalidPayloadError
284840
+ * @description The pull request template payload is invalid.
284841
+ * @summary Invalid payload
284842
+ * @category Fix
285028
284843
  * @param {string} details the specific details that causes this error
285029
284844
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285030
284845
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285031
284846
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285032
284847
  */
285033
- class UnsupportedMediaTypeError extends problem_error_1.ProblemError {
284848
+ class PRTemplateInvalidPayloadError extends problem_error_1.ProblemError {
285034
284849
  constructor(details, additionalData, cause, instance) {
285035
284850
  super({
285036
- title: 'Unsupported media type',
285037
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0008',
285038
- status: 415,
285039
- errorCode: 'SNYK-OPENAPI-0008',
285040
- level: 'warn',
284851
+ title: 'Invalid payload',
284852
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-template-0010',
284853
+ status: 400,
284854
+ errorCode: 'SNYK-PR-TEMPLATE-0010',
284855
+ level: 'error',
285041
284856
  instance,
285042
284857
  }, details, Object.assign({ links: [] }, additionalData), cause);
285043
284858
  this.name = this.constructor.name;
285044
284859
  }
285045
284860
  }
285046
- exports.UnsupportedMediaTypeError = UnsupportedMediaTypeError;
285047
- //# sourceMappingURL=OpenAPI-error-catalog.js.map
284861
+ exports.PRTemplateInvalidPayloadError = PRTemplateInvalidPayloadError;
284862
+ //# sourceMappingURL=Fix-error-catalog.js.map
285048
284863
 
285049
284864
  /***/ }),
285050
284865
 
285051
- /***/ 76242:
284866
+ /***/ 56697:
285052
284867
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
285053
284868
 
285054
284869
  "use strict";
@@ -285069,472 +284884,441 @@ exports.UnsupportedMediaTypeError = UnsupportedMediaTypeError;
285069
284884
  */
285070
284885
 
285071
284886
  Object.defineProperty(exports, "__esModule", ({ value: true }));
285072
- exports.UnableToReplaceBrokerURLError = exports.CouldNotFindBrokerURLError = exports.CouldNotParseNPMRegistryURLError = exports.NoRepoFoundForTheNPMPackageError = exports.CannotCreateGitHostError = exports.CannotGetBuildFileFromRepoError = exports.CannotResolveTargetPomFromRepoError = exports.CannotResolveTargetPomFromXmlError = exports.MissingProjectFromPomError = exports.PomFileNotFoundError = exports.SkippedGroupError = exports.InvalidCoordinatesError = exports.UnableToParseXMLError = exports.CyclicPropertyDetectedInPomFileError = exports.UnableToResolveVersionForPropertyError = exports.UnableToResolveValueForPropertyError = exports.MissingRequirementFromPomError = exports.IncompleteProjectError = exports.SsoReAuthRequiredError = exports.GoModFileMissingError = exports.PrivateModuleError = exports.UnsupportedTargetFrameworkError = exports.UnsupportedManifestFileError = exports.InvalidConfigurationError = exports.FailedToRelockError = exports.NoOutputFromIsolatedBuildsError = exports.MissingEnvironmentVariableError = exports.MissingSupportedFileError = exports.Base64DecodeError = exports.Base64EncodeError = exports.CouldNotParseJSONFileError = exports.MissingRequiredRequestHeaderError = exports.NoDependencyUpdatesError = exports.NoValidPackageUpgradesError = exports.ChildProcessExecutionError = exports.NoResultsFromForkerProcessesError = exports.UnknownBlobEncodingOnGithubError = exports.FailedToApplyDependencyUpdatesError = exports.TooManyManifestFilesError = exports.TimeoutWhenProcessingTheDepTreeError = exports.NoReleasedVersionForVersionsRangeError = exports.CannotGetFileFromSourceError = exports.SourceNotSupportedError = exports.UnprocessableFileError = exports.MissingPayloadError = exports.UnknownDependencyVersionError = exports.UnparseableLockFileError = exports.LockFileOutOfSyncError = exports.UnparseableManifestError = exports.UnsupportedEcosystemError = void 0;
285073
- exports.UnsupportedRequirementsFileError = exports.BadNPMVersionError = void 0;
284887
+ exports.UnsupportedEcosystemError = exports.BuildEnvironmentNotFoundError = exports.InvalidRequestError = void 0;
285074
284888
  const problem_error_1 = __webpack_require__(83649);
285075
284889
  /**
285076
284890
  * @class
285077
- * @name UnsupportedEcosystemError
285078
- * @description The language or package manager is not supported.
284891
+ * @name InvalidRequestError
284892
+ * @description The provided request payload is not valid for the selected ecosystem. Please review the API documentation.
285079
284893
  *
285080
284894
  * See more:
285081
- * - [https://docs.snyk.io/products/snyk-open-source/language-and-package-manager-support](https://docs.snyk.io/products/snyk-open-source/language-and-package-manager-support)
285082
- * @summary Unsupported Ecosystem
285083
- * @category OpenSourceEcosystems
284895
+ * - [https://apidocs.snyk.io/](https://apidocs.snyk.io/)
284896
+ * @summary Invalid request
284897
+ * @category IsolatedBuilds
285084
284898
  * @param {string} details the specific details that causes this error
285085
284899
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285086
284900
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285087
284901
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285088
284902
  */
285089
- class UnsupportedEcosystemError extends problem_error_1.ProblemError {
284903
+ class InvalidRequestError extends problem_error_1.ProblemError {
285090
284904
  constructor(details, additionalData, cause, instance) {
285091
284905
  super({
285092
- title: 'Unsupported Ecosystem',
285093
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0001',
284906
+ title: 'Invalid request',
284907
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-8001',
285094
284908
  status: 400,
285095
- errorCode: 'SNYK-OS-0001',
284909
+ errorCode: 'SNYK-OS-8001',
285096
284910
  level: 'error',
285097
284911
  instance,
285098
284912
  }, details, Object.assign({ links: [
285099
- 'https://docs.snyk.io/products/snyk-open-source/language-and-package-manager-support',
284913
+ 'https://apidocs.snyk.io/',
285100
284914
  ] }, additionalData), cause);
285101
284915
  this.name = this.constructor.name;
285102
284916
  }
285103
284917
  }
285104
- exports.UnsupportedEcosystemError = UnsupportedEcosystemError;
284918
+ exports.InvalidRequestError = InvalidRequestError;
285105
284919
  /**
285106
284920
  * @class
285107
- * @name UnparseableManifestError
285108
- * @description The provided manifest file could not be parsed as it has invalid syntax or does not match the expected schema. Review the manifest file, then try again.
285109
- * @summary Unable to parse manifest file
285110
- * @category OpenSourceEcosystems
284921
+ * @name BuildEnvironmentNotFoundError
284922
+ * @description The build environment for the provided context could not be found. Please ensure you have created the build environment first.
284923
+ * @summary Build environment not found
284924
+ * @category IsolatedBuilds
285111
284925
  * @param {string} details the specific details that causes this error
285112
284926
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285113
284927
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285114
284928
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285115
284929
  */
285116
- class UnparseableManifestError extends problem_error_1.ProblemError {
284930
+ class BuildEnvironmentNotFoundError extends problem_error_1.ProblemError {
285117
284931
  constructor(details, additionalData, cause, instance) {
285118
284932
  super({
285119
- title: 'Unable to parse manifest file',
285120
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0002',
285121
- status: 400,
285122
- errorCode: 'SNYK-OS-0002',
285123
- level: 'error',
284933
+ title: 'Build environment not found',
284934
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-8002',
284935
+ status: 404,
284936
+ errorCode: 'SNYK-OS-8002',
284937
+ level: 'warn',
285124
284938
  instance,
285125
284939
  }, details, Object.assign({ links: [] }, additionalData), cause);
285126
284940
  this.name = this.constructor.name;
285127
284941
  }
285128
284942
  }
285129
- exports.UnparseableManifestError = UnparseableManifestError;
284943
+ exports.BuildEnvironmentNotFoundError = BuildEnvironmentNotFoundError;
285130
284944
  /**
285131
284945
  * @class
285132
- * @name LockFileOutOfSyncError
285133
- * @description Some of the dependencies that are expected to be in the lock file are missing, usually indicating that the lock file is out of sync with the provided manifest file. Re-sync the lock file, then try again.
285134
- * @summary Lock file out of sync with manifest file
285135
- * @category OpenSourceEcosystems
284946
+ * @name UnsupportedEcosystemError
284947
+ * @description The language or package manager is not supported.
284948
+ *
284949
+ * See more:
284950
+ * - [https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/supported-languages-frameworks-and-feature-availability-overview#open-source-and-licensing-snyk-open-source](https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/supported-languages-frameworks-and-feature-availability-overview#open-source-and-licensing-snyk-open-source)
284951
+ * @summary Unsupported Ecosystem
284952
+ * @category IsolatedBuilds
285136
284953
  * @param {string} details the specific details that causes this error
285137
284954
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285138
284955
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285139
284956
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285140
284957
  */
285141
- class LockFileOutOfSyncError extends problem_error_1.ProblemError {
284958
+ class UnsupportedEcosystemError extends problem_error_1.ProblemError {
285142
284959
  constructor(details, additionalData, cause, instance) {
285143
284960
  super({
285144
- title: 'Lock file out of sync with manifest file',
285145
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0003',
284961
+ title: 'Unsupported Ecosystem',
284962
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-8003',
285146
284963
  status: 400,
285147
- errorCode: 'SNYK-OS-0003',
284964
+ errorCode: 'SNYK-OS-8003',
285148
284965
  level: 'error',
285149
284966
  instance,
285150
- }, details, Object.assign({ links: [] }, additionalData), cause);
284967
+ }, details, Object.assign({ links: [
284968
+ 'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/supported-languages-frameworks-and-feature-availability-overview#open-source-and-licensing-snyk-open-source',
284969
+ ] }, additionalData), cause);
285151
284970
  this.name = this.constructor.name;
285152
284971
  }
285153
284972
  }
285154
- exports.LockFileOutOfSyncError = LockFileOutOfSyncError;
285155
- /**
285156
- * @class
285157
- * @name UnparseableLockFileError
285158
- * @description The provided lock file could not be parsed as it has invalid syntax or does not match the expected schema. Review the lock file, then try again.
285159
- * @summary Unable to parse lock file
285160
- * @category OpenSourceEcosystems
285161
- * @param {string} details the specific details that causes this error
285162
- * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285163
- * @param {Error} [cause] the `Error` type that caused this error to be thrown
285164
- * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
284973
+ exports.UnsupportedEcosystemError = UnsupportedEcosystemError;
284974
+ //# sourceMappingURL=IsolatedBuilds-error-catalog.js.map
284975
+
284976
+ /***/ }),
284977
+
284978
+ /***/ 11014:
284979
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
284980
+
284981
+ "use strict";
284982
+ /*
284983
+ * © 2023 Snyk Limited
284984
+ *
284985
+ * Licensed under the Apache License, Version 2.0 (the 'License');
284986
+ * you may not use this file except in compliance with the License.
284987
+ * You may obtain a copy of the License at
284988
+ *
284989
+ * https://www.apache.org/licenses/LICENSE-2.0
284990
+ *
284991
+ * Unless required by applicable law or agreed to in writing, software
284992
+ * distributed under the License is distributed on an 'AS IS' BASIS,
284993
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
284994
+ * See the License for the specific language governing permissions and
284995
+ * limitations under the License.
285165
284996
  */
285166
- class UnparseableLockFileError extends problem_error_1.ProblemError {
285167
- constructor(details, additionalData, cause, instance) {
285168
- super({
285169
- title: 'Unable to parse lock file',
285170
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0004',
285171
- status: 400,
285172
- errorCode: 'SNYK-OS-0004',
285173
- level: 'error',
285174
- instance,
285175
- }, details, Object.assign({ links: [] }, additionalData), cause);
285176
- this.name = this.constructor.name;
285177
- }
285178
- }
285179
- exports.UnparseableLockFileError = UnparseableLockFileError;
284997
+
284998
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
284999
+ exports.UnsupportedMediaTypeError = exports.UnauthorizedError = exports.RequestEntityTooLargeError = exports.MethodNotAllowedError = exports.NotFoundError = exports.NotAcceptableError = exports.ForbiddenError = exports.BadRequestError = void 0;
285000
+ const problem_error_1 = __webpack_require__(83649);
285180
285001
  /**
285181
285002
  * @class
285182
- * @name UnknownDependencyVersionError
285183
- * @description Dependency version could not be resolved.
285003
+ * @name BadRequestError
285004
+ * @description The server cannot process the request due to invalid or corrupt data. Review the request, then try again.
285184
285005
  *
285185
285006
  * See more:
285186
- * - [https://support.snyk.io/hc/en-us/articles/360001373178-Could-not-determine-version-for-dependencies](https://support.snyk.io/hc/en-us/articles/360001373178-Could-not-determine-version-for-dependencies)
285187
- * @summary Unknown dependency version
285188
- * @category OpenSourceEcosystems
285007
+ * - [https://docs.snyk.io/snyk-api-info/getting-started-using-snyk-rest-api ](https://docs.snyk.io/snyk-api-info/getting-started-using-snyk-rest-api )
285008
+ * @summary Bad request
285009
+ * @category OpenAPI
285189
285010
  * @param {string} details the specific details that causes this error
285190
285011
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285191
285012
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285192
285013
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285193
285014
  */
285194
- class UnknownDependencyVersionError extends problem_error_1.ProblemError {
285015
+ class BadRequestError extends problem_error_1.ProblemError {
285195
285016
  constructor(details, additionalData, cause, instance) {
285196
285017
  super({
285197
- title: 'Unknown dependency version',
285198
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0005',
285199
- status: 404,
285200
- errorCode: 'SNYK-OS-0005',
285018
+ title: 'Bad request',
285019
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0001',
285020
+ status: 400,
285021
+ errorCode: 'SNYK-OPENAPI-0001',
285201
285022
  level: 'warn',
285202
285023
  instance,
285203
285024
  }, details, Object.assign({ links: [
285204
- 'https://support.snyk.io/hc/en-us/articles/360001373178-Could-not-determine-version-for-dependencies',
285025
+ 'https://docs.snyk.io/snyk-api-info/getting-started-using-snyk-rest-api ',
285205
285026
  ] }, additionalData), cause);
285206
285027
  this.name = this.constructor.name;
285207
285028
  }
285208
285029
  }
285209
- exports.UnknownDependencyVersionError = UnknownDependencyVersionError;
285210
- /**
285211
- * @class
285212
- * @name MissingPayloadError
285213
- * @description The server could not process the request.
285214
- * @summary Payload missing required elements
285215
- * @category OpenSourceEcosystems
285216
- * @param {string} details the specific details that causes this error
285217
- * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285218
- * @param {Error} [cause] the `Error` type that caused this error to be thrown
285219
- * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285220
- */
285221
- class MissingPayloadError extends problem_error_1.ProblemError {
285222
- constructor(details, additionalData, cause, instance) {
285223
- super({
285224
- title: 'Payload missing required elements',
285225
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0006',
285226
- status: 422,
285227
- errorCode: 'SNYK-OS-0006',
285228
- level: 'error',
285229
- instance,
285230
- }, details, Object.assign({ links: [] }, additionalData), cause);
285231
- this.name = this.constructor.name;
285232
- }
285233
- }
285234
- exports.MissingPayloadError = MissingPayloadError;
285235
- /**
285236
- * @class
285237
- * @name UnprocessableFileError
285238
- * @description The dependency service could not process the files.
285239
- * @summary Files cannot be processed
285240
- * @category OpenSourceEcosystems
285241
- * @param {string} details the specific details that causes this error
285242
- * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285243
- * @param {Error} [cause] the `Error` type that caused this error to be thrown
285244
- * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285245
- */
285246
- class UnprocessableFileError extends problem_error_1.ProblemError {
285247
- constructor(details, additionalData, cause, instance) {
285248
- super({
285249
- title: 'Files cannot be processed',
285250
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0007',
285251
- status: 422,
285252
- errorCode: 'SNYK-OS-0007',
285253
- level: 'error',
285254
- instance,
285255
- }, details, Object.assign({ links: [] }, additionalData), cause);
285256
- this.name = this.constructor.name;
285257
- }
285258
- }
285259
- exports.UnprocessableFileError = UnprocessableFileError;
285030
+ exports.BadRequestError = BadRequestError;
285260
285031
  /**
285261
285032
  * @class
285262
- * @name SourceNotSupportedError
285263
- * @description The source used is not supported by fetcher. The supported sources are: github, bitbucket, gitlab.
285264
- * @summary Source is not supported
285265
- * @category OpenSourceEcosystems
285033
+ * @name ForbiddenError
285034
+ * @description Access to the requested resource is forbidden.
285035
+ * @summary Forbidden
285036
+ * @category OpenAPI
285266
285037
  * @param {string} details the specific details that causes this error
285267
285038
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285268
285039
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285269
285040
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285270
285041
  */
285271
- class SourceNotSupportedError extends problem_error_1.ProblemError {
285042
+ class ForbiddenError extends problem_error_1.ProblemError {
285272
285043
  constructor(details, additionalData, cause, instance) {
285273
285044
  super({
285274
- title: 'Source is not supported',
285275
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0008',
285276
- status: 422,
285277
- errorCode: 'SNYK-OS-0008',
285278
- level: 'error',
285045
+ title: 'Forbidden',
285046
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0002',
285047
+ status: 403,
285048
+ errorCode: 'SNYK-OPENAPI-0002',
285049
+ level: 'warn',
285279
285050
  instance,
285280
285051
  }, details, Object.assign({ links: [] }, additionalData), cause);
285281
285052
  this.name = this.constructor.name;
285282
285053
  }
285283
285054
  }
285284
- exports.SourceNotSupportedError = SourceNotSupportedError;
285055
+ exports.ForbiddenError = ForbiddenError;
285285
285056
  /**
285286
285057
  * @class
285287
- * @name CannotGetFileFromSourceError
285288
- * @description Could not get the file from the source URL.
285289
- * @summary Cannot get file from source
285290
- * @category OpenSourceEcosystems
285058
+ * @name NotAcceptableError
285059
+ * @description The server cannot provide a response that matches the provided accept headers. Review the request, then try again.
285060
+ * @summary Not acceptable
285061
+ * @category OpenAPI
285291
285062
  * @param {string} details the specific details that causes this error
285292
285063
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285293
285064
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285294
285065
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285295
285066
  */
285296
- class CannotGetFileFromSourceError extends problem_error_1.ProblemError {
285067
+ class NotAcceptableError extends problem_error_1.ProblemError {
285297
285068
  constructor(details, additionalData, cause, instance) {
285298
285069
  super({
285299
- title: 'Cannot get file from source',
285300
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0009',
285301
- status: 500,
285302
- errorCode: 'SNYK-OS-0009',
285303
- level: 'error',
285070
+ title: 'Not acceptable',
285071
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0003',
285072
+ status: 406,
285073
+ errorCode: 'SNYK-OPENAPI-0003',
285074
+ level: 'warn',
285304
285075
  instance,
285305
285076
  }, details, Object.assign({ links: [] }, additionalData), cause);
285306
285077
  this.name = this.constructor.name;
285307
285078
  }
285308
285079
  }
285309
- exports.CannotGetFileFromSourceError = CannotGetFileFromSourceError;
285080
+ exports.NotAcceptableError = NotAcceptableError;
285310
285081
  /**
285311
285082
  * @class
285312
- * @name NoReleasedVersionForVersionsRangeError
285313
- * @description There was no version released for the specified versions range.
285314
- * @summary No released version for versions range
285315
- * @category OpenSourceEcosystems
285083
+ * @name NotFoundError
285084
+ * @description The server cannot find the requested resource.
285085
+ * @summary Not found
285086
+ * @category OpenAPI
285316
285087
  * @param {string} details the specific details that causes this error
285317
285088
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285318
285089
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285319
285090
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285320
285091
  */
285321
- class NoReleasedVersionForVersionsRangeError extends problem_error_1.ProblemError {
285092
+ class NotFoundError extends problem_error_1.ProblemError {
285322
285093
  constructor(details, additionalData, cause, instance) {
285323
285094
  super({
285324
- title: 'No released version for versions range',
285325
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0010',
285326
- status: 422,
285327
- errorCode: 'SNYK-OS-0010',
285328
- level: 'error',
285095
+ title: 'Not found',
285096
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0004',
285097
+ status: 404,
285098
+ errorCode: 'SNYK-OPENAPI-0004',
285099
+ level: 'warn',
285329
285100
  instance,
285330
285101
  }, details, Object.assign({ links: [] }, additionalData), cause);
285331
285102
  this.name = this.constructor.name;
285332
285103
  }
285333
285104
  }
285334
- exports.NoReleasedVersionForVersionsRangeError = NoReleasedVersionForVersionsRangeError;
285105
+ exports.NotFoundError = NotFoundError;
285335
285106
  /**
285336
285107
  * @class
285337
- * @name TimeoutWhenProcessingTheDepTreeError
285338
- * @description There was an timeout when processing the dependecy tree.
285339
- * @summary Timeout when processing the dependency tree
285340
- * @category OpenSourceEcosystems
285108
+ * @name MethodNotAllowedError
285109
+ * @description The target endpoint does not support your request method. Review the request, then try again.
285110
+ * @summary Method not allowed
285111
+ * @category OpenAPI
285341
285112
  * @param {string} details the specific details that causes this error
285342
285113
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285343
285114
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285344
285115
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285345
285116
  */
285346
- class TimeoutWhenProcessingTheDepTreeError extends problem_error_1.ProblemError {
285117
+ class MethodNotAllowedError extends problem_error_1.ProblemError {
285347
285118
  constructor(details, additionalData, cause, instance) {
285348
285119
  super({
285349
- title: 'Timeout when processing the dependency tree',
285350
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0011',
285351
- status: 422,
285352
- errorCode: 'SNYK-OS-0011',
285353
- level: 'error',
285120
+ title: 'Method not allowed',
285121
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0005',
285122
+ status: 405,
285123
+ errorCode: 'SNYK-OPENAPI-0005',
285124
+ level: 'warn',
285354
285125
  instance,
285355
285126
  }, details, Object.assign({ links: [] }, additionalData), cause);
285356
285127
  this.name = this.constructor.name;
285357
285128
  }
285358
285129
  }
285359
- exports.TimeoutWhenProcessingTheDepTreeError = TimeoutWhenProcessingTheDepTreeError;
285130
+ exports.MethodNotAllowedError = MethodNotAllowedError;
285360
285131
  /**
285361
285132
  * @class
285362
- * @name TooManyManifestFilesError
285363
- * @description Too many manifest files were provided in the request body.
285364
- * @summary Received more manifests than expected
285365
- * @category OpenSourceEcosystems
285133
+ * @name RequestEntityTooLargeError
285134
+ * @description The request entity exceeds server limitations.
285135
+ * @summary Request entity too large
285136
+ * @category OpenAPI
285366
285137
  * @param {string} details the specific details that causes this error
285367
285138
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285368
285139
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285369
285140
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285370
285141
  */
285371
- class TooManyManifestFilesError extends problem_error_1.ProblemError {
285142
+ class RequestEntityTooLargeError extends problem_error_1.ProblemError {
285372
285143
  constructor(details, additionalData, cause, instance) {
285373
285144
  super({
285374
- title: 'Received more manifests than expected',
285375
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0012',
285376
- status: 422,
285377
- errorCode: 'SNYK-OS-0012',
285378
- level: 'error',
285145
+ title: 'Request entity too large',
285146
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0006',
285147
+ status: 413,
285148
+ errorCode: 'SNYK-OPENAPI-0006',
285149
+ level: 'warn',
285379
285150
  instance,
285380
285151
  }, details, Object.assign({ links: [] }, additionalData), cause);
285381
285152
  this.name = this.constructor.name;
285382
285153
  }
285383
285154
  }
285384
- exports.TooManyManifestFilesError = TooManyManifestFilesError;
285155
+ exports.RequestEntityTooLargeError = RequestEntityTooLargeError;
285385
285156
  /**
285386
285157
  * @class
285387
- * @name FailedToApplyDependencyUpdatesError
285388
- * @description An error occured while updating dependencies.
285389
- * @summary Failed to apply dependency updates
285390
- * @category OpenSourceEcosystems
285158
+ * @name UnauthorizedError
285159
+ * @description The request lacks authentication credentials for the requested resource.
285160
+ *
285161
+ * See more:
285162
+ * - [https://docs.snyk.io/snyk-api-info/authentication-for-api ](https://docs.snyk.io/snyk-api-info/authentication-for-api )
285163
+ * @summary Unauthorized
285164
+ * @category OpenAPI
285391
285165
  * @param {string} details the specific details that causes this error
285392
285166
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285393
285167
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285394
285168
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285395
285169
  */
285396
- class FailedToApplyDependencyUpdatesError extends problem_error_1.ProblemError {
285170
+ class UnauthorizedError extends problem_error_1.ProblemError {
285397
285171
  constructor(details, additionalData, cause, instance) {
285398
285172
  super({
285399
- title: 'Failed to apply dependency updates',
285400
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0013',
285401
- status: 422,
285402
- errorCode: 'SNYK-OS-0013',
285403
- level: 'error',
285173
+ title: 'Unauthorized',
285174
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0007',
285175
+ status: 401,
285176
+ errorCode: 'SNYK-OPENAPI-0007',
285177
+ level: 'warn',
285404
285178
  instance,
285405
- }, details, Object.assign({ links: [] }, additionalData), cause);
285179
+ }, details, Object.assign({ links: [
285180
+ 'https://docs.snyk.io/snyk-api-info/authentication-for-api ',
285181
+ ] }, additionalData), cause);
285406
285182
  this.name = this.constructor.name;
285407
285183
  }
285408
285184
  }
285409
- exports.FailedToApplyDependencyUpdatesError = FailedToApplyDependencyUpdatesError;
285185
+ exports.UnauthorizedError = UnauthorizedError;
285410
285186
  /**
285411
285187
  * @class
285412
- * @name UnknownBlobEncodingOnGithubError
285413
- * @description Unknown blob encoding on Github.
285414
- * @summary Unknown blob encoding on Github
285415
- * @category OpenSourceEcosystems
285188
+ * @name UnsupportedMediaTypeError
285189
+ * @description The media format of the request is not supported.
285190
+ * @summary Unsupported media type
285191
+ * @category OpenAPI
285416
285192
  * @param {string} details the specific details that causes this error
285417
285193
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285418
285194
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285419
285195
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285420
285196
  */
285421
- class UnknownBlobEncodingOnGithubError extends problem_error_1.ProblemError {
285197
+ class UnsupportedMediaTypeError extends problem_error_1.ProblemError {
285422
285198
  constructor(details, additionalData, cause, instance) {
285423
285199
  super({
285424
- title: 'Unknown blob encoding on Github',
285425
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0014',
285426
- status: 422,
285427
- errorCode: 'SNYK-OS-0014',
285428
- level: 'error',
285200
+ title: 'Unsupported media type',
285201
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-openapi-0008',
285202
+ status: 415,
285203
+ errorCode: 'SNYK-OPENAPI-0008',
285204
+ level: 'warn',
285429
285205
  instance,
285430
285206
  }, details, Object.assign({ links: [] }, additionalData), cause);
285431
285207
  this.name = this.constructor.name;
285432
285208
  }
285433
285209
  }
285434
- exports.UnknownBlobEncodingOnGithubError = UnknownBlobEncodingOnGithubError;
285435
- /**
285436
- * @class
285437
- * @name NoResultsFromForkerProcessesError
285438
- * @description No result from forked process.
285439
- * @summary No result from forked process
285440
- * @category OpenSourceEcosystems
285441
- * @param {string} details the specific details that causes this error
285442
- * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285443
- * @param {Error} [cause] the `Error` type that caused this error to be thrown
285444
- * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285210
+ exports.UnsupportedMediaTypeError = UnsupportedMediaTypeError;
285211
+ //# sourceMappingURL=OpenAPI-error-catalog.js.map
285212
+
285213
+ /***/ }),
285214
+
285215
+ /***/ 76242:
285216
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
285217
+
285218
+ "use strict";
285219
+ /*
285220
+ * © 2023 Snyk Limited
285221
+ *
285222
+ * Licensed under the Apache License, Version 2.0 (the 'License');
285223
+ * you may not use this file except in compliance with the License.
285224
+ * You may obtain a copy of the License at
285225
+ *
285226
+ * https://www.apache.org/licenses/LICENSE-2.0
285227
+ *
285228
+ * Unless required by applicable law or agreed to in writing, software
285229
+ * distributed under the License is distributed on an 'AS IS' BASIS,
285230
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
285231
+ * See the License for the specific language governing permissions and
285232
+ * limitations under the License.
285445
285233
  */
285446
- class NoResultsFromForkerProcessesError extends problem_error_1.ProblemError {
285447
- constructor(details, additionalData, cause, instance) {
285448
- super({
285449
- title: 'No result from forked process',
285450
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0015',
285451
- status: 500,
285452
- errorCode: 'SNYK-OS-0015',
285453
- level: 'error',
285454
- instance,
285455
- }, details, Object.assign({ links: [] }, additionalData), cause);
285456
- this.name = this.constructor.name;
285457
- }
285458
- }
285459
- exports.NoResultsFromForkerProcessesError = NoResultsFromForkerProcessesError;
285234
+
285235
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
285236
+ exports.UnsupportedRequirementsFileError = exports.InvalidConfigurationError = exports.MissingSupportedFileError = exports.Base64DecodeError = exports.Base64EncodeError = exports.CouldNotParseJSONFileError = exports.NoDependencyUpdatesError = exports.NoValidPackageUpgradesError = exports.ChildProcessExecutionError = exports.NoResultsFromForkerProcessesError = exports.UnknownBlobEncodingOnGithubError = exports.BadNPMVersionError = exports.UnableToReplaceBrokerURLError = exports.CouldNotFindBrokerURLError = exports.CouldNotParseNPMRegistryURLError = exports.NoRepoFoundForTheNPMPackageError = exports.TimeoutWhenProcessingTheDepTreeError = exports.SourceNotSupportedError = exports.NoReleasedVersionForVersionsRangeError = exports.CannotCreateGitHostError = exports.CannotGetBuildFileFromRepoError = exports.CannotResolveTargetPomFromRepoError = exports.CannotResolveTargetPomFromXmlError = exports.MissingProjectFromPomError = exports.PomFileNotFoundError = exports.SkippedGroupError = exports.InvalidCoordinatesError = exports.UnableToParseXMLError = exports.CyclicPropertyDetectedInPomFileError = exports.UnableToResolveVersionForPropertyError = exports.UnableToResolveValueForPropertyError = exports.MissingRequirementFromPomError = exports.UnsupportedExternalFileGenerationSCMError = exports.InconsistentVendoringError = exports.IncompleteProjectError = exports.SsoReAuthRequiredError = exports.GoModFileMissingError = exports.PrivateModuleError = exports.PublishFailedError = exports.MissingStaticMainFunctionError = exports.UnsupportedTargetFrameworkError = exports.UnsupportedManifestFileError = exports.MissingEnvironmentVariableError = exports.CannotGetFileFromSourceError = exports.UnprocessableFileError = exports.MissingPayloadError = exports.MissingHeaderError = exports.UnknownDependencyVersionError = exports.UnparseableLockFileError = exports.UnparseableManifestError = void 0;
285237
+ exports.FailedToApplyDependencyUpdatesError = exports.TooManyManifestFilesError = void 0;
285238
+ const problem_error_1 = __webpack_require__(83649);
285460
285239
  /**
285461
285240
  * @class
285462
- * @name ChildProcessExecutionError
285463
- * @description The child process encountered an error during execution.
285464
- * @summary Child Process Execution Error
285241
+ * @name UnparseableManifestError
285242
+ * @description The provided manifest file could not be parsed as it has invalid syntax or does not match the expected schema. Review the manifest file, then try again.
285243
+ * @summary Unable to parse manifest file
285465
285244
  * @category OpenSourceEcosystems
285466
285245
  * @param {string} details the specific details that causes this error
285467
285246
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285468
285247
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285469
285248
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285470
285249
  */
285471
- class ChildProcessExecutionError extends problem_error_1.ProblemError {
285250
+ class UnparseableManifestError extends problem_error_1.ProblemError {
285472
285251
  constructor(details, additionalData, cause, instance) {
285473
285252
  super({
285474
- title: 'Child Process Execution Error',
285475
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0016',
285476
- status: 500,
285477
- errorCode: 'SNYK-OS-0016',
285253
+ title: 'Unable to parse manifest file',
285254
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0001',
285255
+ status: 400,
285256
+ errorCode: 'SNYK-OS-0001',
285478
285257
  level: 'error',
285479
285258
  instance,
285480
285259
  }, details, Object.assign({ links: [] }, additionalData), cause);
285481
285260
  this.name = this.constructor.name;
285482
285261
  }
285483
285262
  }
285484
- exports.ChildProcessExecutionError = ChildProcessExecutionError;
285263
+ exports.UnparseableManifestError = UnparseableManifestError;
285485
285264
  /**
285486
285265
  * @class
285487
- * @name NoValidPackageUpgradesError
285488
- * @description The system attempted to find valid upgrades for the packages specified in the lock file, but none were available.
285489
- * @summary No valid package upgrades
285266
+ * @name UnparseableLockFileError
285267
+ * @description The provided lock file could not be parsed as it has invalid syntax or does not match the expected schema. Review the lock file, then try again.
285268
+ * @summary Unable to parse lock file
285490
285269
  * @category OpenSourceEcosystems
285491
285270
  * @param {string} details the specific details that causes this error
285492
285271
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285493
285272
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285494
285273
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285495
285274
  */
285496
- class NoValidPackageUpgradesError extends problem_error_1.ProblemError {
285275
+ class UnparseableLockFileError extends problem_error_1.ProblemError {
285497
285276
  constructor(details, additionalData, cause, instance) {
285498
285277
  super({
285499
- title: 'No valid package upgrades',
285500
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0017',
285501
- status: 422,
285502
- errorCode: 'SNYK-OS-0017',
285278
+ title: 'Unable to parse lock file',
285279
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0002',
285280
+ status: 400,
285281
+ errorCode: 'SNYK-OS-0002',
285503
285282
  level: 'error',
285504
285283
  instance,
285505
285284
  }, details, Object.assign({ links: [] }, additionalData), cause);
285506
285285
  this.name = this.constructor.name;
285507
285286
  }
285508
285287
  }
285509
- exports.NoValidPackageUpgradesError = NoValidPackageUpgradesError;
285288
+ exports.UnparseableLockFileError = UnparseableLockFileError;
285510
285289
  /**
285511
285290
  * @class
285512
- * @name NoDependencyUpdatesError
285513
- * @description There are no available updates for the dependencies.
285514
- * @summary No dependency updates
285291
+ * @name UnknownDependencyVersionError
285292
+ * @description Dependency version could not be resolved.
285293
+ *
285294
+ * See more:
285295
+ * - [https://support.snyk.io/hc/en-us/articles/360001373178-Could-not-determine-version-for-dependencies](https://support.snyk.io/hc/en-us/articles/360001373178-Could-not-determine-version-for-dependencies)
285296
+ * @summary Unknown dependency version
285515
285297
  * @category OpenSourceEcosystems
285516
285298
  * @param {string} details the specific details that causes this error
285517
285299
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285518
285300
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285519
285301
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285520
285302
  */
285521
- class NoDependencyUpdatesError extends problem_error_1.ProblemError {
285303
+ class UnknownDependencyVersionError extends problem_error_1.ProblemError {
285522
285304
  constructor(details, additionalData, cause, instance) {
285523
285305
  super({
285524
- title: 'No dependency updates',
285525
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0018',
285526
- status: 422,
285527
- errorCode: 'SNYK-OS-0018',
285528
- level: 'error',
285306
+ title: 'Unknown dependency version',
285307
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0003',
285308
+ status: 404,
285309
+ errorCode: 'SNYK-OS-0003',
285310
+ level: 'warn',
285529
285311
  instance,
285530
- }, details, Object.assign({ links: [] }, additionalData), cause);
285312
+ }, details, Object.assign({ links: [
285313
+ 'https://support.snyk.io/hc/en-us/articles/360001373178-Could-not-determine-version-for-dependencies',
285314
+ ] }, additionalData), cause);
285531
285315
  this.name = this.constructor.name;
285532
285316
  }
285533
285317
  }
285534
- exports.NoDependencyUpdatesError = NoDependencyUpdatesError;
285318
+ exports.UnknownDependencyVersionError = UnknownDependencyVersionError;
285535
285319
  /**
285536
285320
  * @class
285537
- * @name MissingRequiredRequestHeaderError
285321
+ * @name MissingHeaderError
285538
285322
  * @description The server encountered a request that is missing a mandatory request header.
285539
285323
  * @summary Missing required request header
285540
285324
  * @category OpenSourceEcosystems
@@ -285543,120 +285327,95 @@ exports.NoDependencyUpdatesError = NoDependencyUpdatesError;
285543
285327
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285544
285328
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285545
285329
  */
285546
- class MissingRequiredRequestHeaderError extends problem_error_1.ProblemError {
285330
+ class MissingHeaderError extends problem_error_1.ProblemError {
285547
285331
  constructor(details, additionalData, cause, instance) {
285548
285332
  super({
285549
285333
  title: 'Missing required request header',
285550
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0019',
285551
- status: 422,
285552
- errorCode: 'SNYK-OS-0019',
285553
- level: 'error',
285554
- instance,
285555
- }, details, Object.assign({ links: [] }, additionalData), cause);
285556
- this.name = this.constructor.name;
285557
- }
285558
- }
285559
- exports.MissingRequiredRequestHeaderError = MissingRequiredRequestHeaderError;
285560
- /**
285561
- * @class
285562
- * @name CouldNotParseJSONFileError
285563
- * @description An error occurred while attempting to parse a JSON file.
285564
- * @summary Could not parse JSON file
285565
- * @category OpenSourceEcosystems
285566
- * @param {string} details the specific details that causes this error
285567
- * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285568
- * @param {Error} [cause] the `Error` type that caused this error to be thrown
285569
- * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285570
- */
285571
- class CouldNotParseJSONFileError extends problem_error_1.ProblemError {
285572
- constructor(details, additionalData, cause, instance) {
285573
- super({
285574
- title: 'Could not parse JSON file',
285575
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0020',
285334
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0004',
285576
285335
  status: 422,
285577
- errorCode: 'SNYK-OS-0020',
285336
+ errorCode: 'SNYK-OS-0004',
285578
285337
  level: 'error',
285579
285338
  instance,
285580
285339
  }, details, Object.assign({ links: [] }, additionalData), cause);
285581
285340
  this.name = this.constructor.name;
285582
285341
  }
285583
285342
  }
285584
- exports.CouldNotParseJSONFileError = CouldNotParseJSONFileError;
285343
+ exports.MissingHeaderError = MissingHeaderError;
285585
285344
  /**
285586
285345
  * @class
285587
- * @name Base64EncodeError
285588
- * @description An error occurred while attempting to perform Base64 encoding.
285589
- * @summary Could not Base64 encode
285346
+ * @name MissingPayloadError
285347
+ * @description The server could not process the request.
285348
+ * @summary Payload missing required elements
285590
285349
  * @category OpenSourceEcosystems
285591
285350
  * @param {string} details the specific details that causes this error
285592
285351
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285593
285352
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285594
285353
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285595
285354
  */
285596
- class Base64EncodeError extends problem_error_1.ProblemError {
285355
+ class MissingPayloadError extends problem_error_1.ProblemError {
285597
285356
  constructor(details, additionalData, cause, instance) {
285598
285357
  super({
285599
- title: 'Could not Base64 encode',
285600
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0021',
285358
+ title: 'Payload missing required elements',
285359
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0005',
285601
285360
  status: 422,
285602
- errorCode: 'SNYK-OS-0021',
285361
+ errorCode: 'SNYK-OS-0005',
285603
285362
  level: 'error',
285604
285363
  instance,
285605
285364
  }, details, Object.assign({ links: [] }, additionalData), cause);
285606
285365
  this.name = this.constructor.name;
285607
285366
  }
285608
285367
  }
285609
- exports.Base64EncodeError = Base64EncodeError;
285368
+ exports.MissingPayloadError = MissingPayloadError;
285610
285369
  /**
285611
285370
  * @class
285612
- * @name Base64DecodeError
285613
- * @description An error occurred while attempting to perform Base64 decoding.
285614
- * @summary Could not Base64 decode
285371
+ * @name UnprocessableFileError
285372
+ * @description The dependency service could not process the files.
285373
+ * @summary Files cannot be processed
285615
285374
  * @category OpenSourceEcosystems
285616
285375
  * @param {string} details the specific details that causes this error
285617
285376
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285618
285377
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285619
285378
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285620
285379
  */
285621
- class Base64DecodeError extends problem_error_1.ProblemError {
285380
+ class UnprocessableFileError extends problem_error_1.ProblemError {
285622
285381
  constructor(details, additionalData, cause, instance) {
285623
285382
  super({
285624
- title: 'Could not Base64 decode',
285625
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0022',
285383
+ title: 'Files cannot be processed',
285384
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0006',
285626
285385
  status: 422,
285627
- errorCode: 'SNYK-OS-0022',
285386
+ errorCode: 'SNYK-OS-0006',
285628
285387
  level: 'error',
285629
285388
  instance,
285630
285389
  }, details, Object.assign({ links: [] }, additionalData), cause);
285631
285390
  this.name = this.constructor.name;
285632
285391
  }
285633
285392
  }
285634
- exports.Base64DecodeError = Base64DecodeError;
285393
+ exports.UnprocessableFileError = UnprocessableFileError;
285635
285394
  /**
285636
285395
  * @class
285637
- * @name MissingSupportedFileError
285638
- * @description Could not find supported file.
285639
- * @summary Missing supported file
285396
+ * @name CannotGetFileFromSourceError
285397
+ * @description Could not get the file from the source URL.
285398
+ * @summary Cannot get file from source
285640
285399
  * @category OpenSourceEcosystems
285641
285400
  * @param {string} details the specific details that causes this error
285642
285401
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285643
285402
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285644
285403
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285645
285404
  */
285646
- class MissingSupportedFileError extends problem_error_1.ProblemError {
285405
+ class CannotGetFileFromSourceError extends problem_error_1.ProblemError {
285647
285406
  constructor(details, additionalData, cause, instance) {
285648
285407
  super({
285649
- title: 'Missing supported file',
285650
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0023',
285651
- status: 400,
285652
- errorCode: 'SNYK-OS-0023',
285408
+ title: 'Cannot get file from source',
285409
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0007',
285410
+ status: 500,
285411
+ errorCode: 'SNYK-OS-0007',
285653
285412
  level: 'error',
285654
285413
  instance,
285655
285414
  }, details, Object.assign({ links: [] }, additionalData), cause);
285656
285415
  this.name = this.constructor.name;
285657
285416
  }
285658
285417
  }
285659
- exports.MissingSupportedFileError = MissingSupportedFileError;
285418
+ exports.CannotGetFileFromSourceError = CannotGetFileFromSourceError;
285660
285419
  /**
285661
285420
  * @class
285662
285421
  * @name MissingEnvironmentVariableError
@@ -285672,9 +285431,9 @@ class MissingEnvironmentVariableError extends problem_error_1.ProblemError {
285672
285431
  constructor(details, additionalData, cause, instance) {
285673
285432
  super({
285674
285433
  title: 'Missing environment variable',
285675
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0024',
285434
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0008',
285676
285435
  status: 500,
285677
- errorCode: 'SNYK-OS-0024',
285436
+ errorCode: 'SNYK-OS-0008',
285678
285437
  level: 'error',
285679
285438
  instance,
285680
285439
  }, details, Object.assign({ links: [] }, additionalData), cause);
@@ -285684,148 +285443,153 @@ class MissingEnvironmentVariableError extends problem_error_1.ProblemError {
285684
285443
  exports.MissingEnvironmentVariableError = MissingEnvironmentVariableError;
285685
285444
  /**
285686
285445
  * @class
285687
- * @name NoOutputFromIsolatedBuildsError
285688
- * @description The response from isolated builds had no output.
285689
- * @summary No output from isolated builds
285690
- * @category OpenSourceEcosystems
285691
- * @param {string} details the specific details that causes this error
285692
- * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285693
- * @param {Error} [cause] the `Error` type that caused this error to be thrown
285694
- * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285695
- */
285696
- class NoOutputFromIsolatedBuildsError extends problem_error_1.ProblemError {
285697
- constructor(details, additionalData, cause, instance) {
285698
- super({
285699
- title: 'No output from isolated builds',
285700
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0025',
285701
- status: 500,
285702
- errorCode: 'SNYK-OS-0025',
285703
- level: 'warn',
285704
- instance,
285705
- }, details, Object.assign({ links: [] }, additionalData), cause);
285706
- this.name = this.constructor.name;
285707
- }
285708
- }
285709
- exports.NoOutputFromIsolatedBuildsError = NoOutputFromIsolatedBuildsError;
285710
- /**
285711
- * @class
285712
- * @name FailedToRelockError
285713
- * @description An error occurred while attempting to relock.
285714
- * @summary Failed to relock
285446
+ * @name UnsupportedManifestFileError
285447
+ * @description The provided manifest file is not supported by Snyk for .NET.
285448
+ *
285449
+ * See more:
285450
+ * - [https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/.net](https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/.net)
285451
+ * @summary Unsupported manifest file type for remediation
285715
285452
  * @category OpenSourceEcosystems
285716
285453
  * @param {string} details the specific details that causes this error
285717
285454
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285718
285455
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285719
285456
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285720
285457
  */
285721
- class FailedToRelockError extends problem_error_1.ProblemError {
285458
+ class UnsupportedManifestFileError extends problem_error_1.ProblemError {
285722
285459
  constructor(details, additionalData, cause, instance) {
285723
285460
  super({
285724
- title: 'Failed to relock',
285725
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0026',
285726
- status: 500,
285727
- errorCode: 'SNYK-OS-0026',
285728
- level: 'warn',
285461
+ title: 'Unsupported manifest file type for remediation',
285462
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-dotnet-0001',
285463
+ status: 400,
285464
+ errorCode: 'SNYK-OS-DOTNET-0001',
285465
+ level: 'error',
285729
285466
  instance,
285730
- }, details, Object.assign({ links: [] }, additionalData), cause);
285467
+ }, details, Object.assign({ links: [
285468
+ 'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/.net',
285469
+ ] }, additionalData), cause);
285731
285470
  this.name = this.constructor.name;
285732
285471
  }
285733
285472
  }
285734
- exports.FailedToRelockError = FailedToRelockError;
285473
+ exports.UnsupportedManifestFileError = UnsupportedManifestFileError;
285735
285474
  /**
285736
285475
  * @class
285737
- * @name InvalidConfigurationError
285738
- * @description The configuration parameter does not meet the expected data type. Please ensure the provided value is of the correct data type.
285739
- * @summary Invalid configuration
285476
+ * @name UnsupportedTargetFrameworkError
285477
+ * @description The provided manifest file defines a `<TargetFramework>` or `<TargetFrameworks>` that is not currently supported by Snyk's .NET scanning solution.
285478
+ * @summary Target framework not supported
285740
285479
  * @category OpenSourceEcosystems
285741
285480
  * @param {string} details the specific details that causes this error
285742
285481
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285743
285482
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285744
285483
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285745
285484
  */
285746
- class InvalidConfigurationError extends problem_error_1.ProblemError {
285485
+ class UnsupportedTargetFrameworkError extends problem_error_1.ProblemError {
285747
285486
  constructor(details, additionalData, cause, instance) {
285748
285487
  super({
285749
- title: 'Invalid configuration',
285750
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0027',
285751
- status: 400,
285752
- errorCode: 'SNYK-OS-0027',
285753
- level: 'warn',
285488
+ title: 'Target framework not supported',
285489
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-dotnet-0002',
285490
+ status: 422,
285491
+ errorCode: 'SNYK-OS-DOTNET-0002',
285492
+ level: 'error',
285754
285493
  instance,
285755
285494
  }, details, Object.assign({ links: [] }, additionalData), cause);
285756
285495
  this.name = this.constructor.name;
285757
285496
  }
285758
285497
  }
285759
- exports.InvalidConfigurationError = InvalidConfigurationError;
285498
+ exports.UnsupportedTargetFrameworkError = UnsupportedTargetFrameworkError;
285760
285499
  /**
285761
285500
  * @class
285762
- * @name UnsupportedManifestFileError
285763
- * @description The provided manifest file is not supported by Snyk for .NET.
285501
+ * @name MissingStaticMainFunctionError
285502
+ * @description This error occurs when no static Main method with a correct signature is found in the code that produces an executable file.
285503
+ * It also occurs if the entry point function, `Main`, is defined with the wrong case, such as lower-case main.
285504
+ *
285505
+ * In order to fix this issue, ensure that your program has a .cs file that contains a main function, such as
285506
+ * ```c#
285507
+ * namespace Example
285508
+ * {
285509
+ * class Program
285510
+ * {
285511
+ * static void Main(string[] args)
285512
+ * {
285513
+ * Console.WriteLine("hello world");
285514
+ * }
285515
+ * }
285516
+ * }
285517
+ * ```
285764
285518
  *
285765
285519
  * See more:
285766
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#git-services-for-.net-projects](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#git-services-for-.net-projects)
285767
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packagereference](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packagereference)
285768
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packages.config](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packages.config)
285769
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#paket-dependencies-managed-by-paket](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#paket-dependencies-managed-by-paket)
285770
- * @summary Unsupported manifest file type for remediation
285520
+ * - [https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs5001](https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs5001)
285521
+ * @summary Your C# code is missing a static Main function
285771
285522
  * @category OpenSourceEcosystems
285772
285523
  * @param {string} details the specific details that causes this error
285773
285524
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285774
285525
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285775
285526
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285776
285527
  */
285777
- class UnsupportedManifestFileError extends problem_error_1.ProblemError {
285528
+ class MissingStaticMainFunctionError extends problem_error_1.ProblemError {
285778
285529
  constructor(details, additionalData, cause, instance) {
285779
285530
  super({
285780
- title: 'Unsupported manifest file type for remediation',
285781
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-dotnet-0001',
285782
- status: 400,
285783
- errorCode: 'SNYK-OS-DOTNET-0001',
285531
+ title: 'Your C# code is missing a static Main function',
285532
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-dotnet-0003',
285533
+ status: 422,
285534
+ errorCode: 'SNYK-OS-DOTNET-0003',
285784
285535
  level: 'error',
285785
285536
  instance,
285786
285537
  }, details, Object.assign({ links: [
285787
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#git-services-for-.net-projects',
285788
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packagereference',
285789
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packages.config',
285790
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#paket-dependencies-managed-by-paket',
285538
+ 'https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs5001',
285791
285539
  ] }, additionalData), cause);
285792
285540
  this.name = this.constructor.name;
285793
285541
  }
285794
285542
  }
285795
- exports.UnsupportedManifestFileError = UnsupportedManifestFileError;
285543
+ exports.MissingStaticMainFunctionError = MissingStaticMainFunctionError;
285796
285544
  /**
285797
285545
  * @class
285798
- * @name UnsupportedTargetFrameworkError
285799
- * @description The provided manifest file defines a `<TargetFramework>` or `<TargetFrameworks>` that is not currently supported by Snyk's .NET scanning solution.
285800
- * @summary Target framework not supported
285546
+ * @name PublishFailedError
285547
+ * @description This error occurs when running `dotnet publish --sc --framework <your-target-framework>` fails to generate a
285548
+ * self-contained binary. Snyk needs to run this command in order to adequately determine the dependency tree for your project. If this command fails, Snyk cannot continue.
285549
+ *
285550
+ * Steps to determine why this happened:
285551
+ *
285552
+ * * Checkout a clean version of your project in a temporary folder
285553
+ * * Run `dotnet publish --sc --framework <your-target-framework> ` on your project, and confirm this step fails.
285554
+ *
285555
+ * If this step is successful locally, it is possible that Snyk is running another version of the .NET SDK. To tell Snyk which version of the .NET SDK to use, consider using the [global.json](https://learn.microsoft.com/en-us/dotnet/core/tools/global-json) solution provided by Microsoft.
285556
+ *
285557
+ * See more:
285558
+ * - [https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/](https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/)
285559
+ * - [https://learn.microsoft.com/en-us/dotnet/core/tools/global-json](https://learn.microsoft.com/en-us/dotnet/core/tools/global-json)
285560
+ * - [https://github.com/snyk/snyk-nuget-plugin/blob/885486aa656c28d3db465c8d22710770d5cc6773/lib/nuget-parser/cli/dotnet.ts#L67](https://github.com/snyk/snyk-nuget-plugin/blob/885486aa656c28d3db465c8d22710770d5cc6773/lib/nuget-parser/cli/dotnet.ts#L67)
285561
+ * @summary The dotnet CLI is unable to generate a self-contained binary
285801
285562
  * @category OpenSourceEcosystems
285802
285563
  * @param {string} details the specific details that causes this error
285803
285564
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285804
285565
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
285805
285566
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285806
285567
  */
285807
- class UnsupportedTargetFrameworkError extends problem_error_1.ProblemError {
285568
+ class PublishFailedError extends problem_error_1.ProblemError {
285808
285569
  constructor(details, additionalData, cause, instance) {
285809
285570
  super({
285810
- title: 'Target framework not supported',
285811
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-dotnet-0002',
285571
+ title: 'The dotnet CLI is unable to generate a self-contained binary',
285572
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-dotnet-0004',
285812
285573
  status: 422,
285813
- errorCode: 'SNYK-OS-DOTNET-0002',
285574
+ errorCode: 'SNYK-OS-DOTNET-0004',
285814
285575
  level: 'error',
285815
285576
  instance,
285816
- }, details, Object.assign({ links: [] }, additionalData), cause);
285577
+ }, details, Object.assign({ links: [
285578
+ 'https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/',
285579
+ 'https://learn.microsoft.com/en-us/dotnet/core/tools/global-json',
285580
+ 'https://github.com/snyk/snyk-nuget-plugin/blob/885486aa656c28d3db465c8d22710770d5cc6773/lib/nuget-parser/cli/dotnet.ts#L67',
285581
+ ] }, additionalData), cause);
285817
285582
  this.name = this.constructor.name;
285818
285583
  }
285819
285584
  }
285820
- exports.UnsupportedTargetFrameworkError = UnsupportedTargetFrameworkError;
285585
+ exports.PublishFailedError = PublishFailedError;
285821
285586
  /**
285822
285587
  * @class
285823
285588
  * @name PrivateModuleError
285824
285589
  * @description Snyk could not access the private modules within your go.mod files.
285825
285590
  *
285826
285591
  * See more:
285827
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli)
285828
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git)
285592
+ * - [https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go](https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go)
285829
285593
  * @summary Failed to access private module
285830
285594
  * @category OpenSourceEcosystems
285831
285595
  * @param {string} details the specific details that causes this error
@@ -285843,8 +285607,7 @@ class PrivateModuleError extends problem_error_1.ProblemError {
285843
285607
  level: 'error',
285844
285608
  instance,
285845
285609
  }, details, Object.assign({ links: [
285846
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli',
285847
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git',
285610
+ 'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go',
285848
285611
  ] }, additionalData), cause);
285849
285612
  this.name = this.constructor.name;
285850
285613
  }
@@ -285856,8 +285619,7 @@ exports.PrivateModuleError = PrivateModuleError;
285856
285619
  * @description A go.mod file was not found in the current directory or any parent directory.
285857
285620
  *
285858
285621
  * See more:
285859
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli)
285860
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git)
285622
+ * - [https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go](https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go)
285861
285623
  * @summary Go mod file not found
285862
285624
  * @category OpenSourceEcosystems
285863
285625
  * @param {string} details the specific details that causes this error
@@ -285875,8 +285637,7 @@ class GoModFileMissingError extends problem_error_1.ProblemError {
285875
285637
  level: 'error',
285876
285638
  instance,
285877
285639
  }, details, Object.assign({ links: [
285878
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli',
285879
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git',
285640
+ 'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go',
285880
285641
  ] }, additionalData), cause);
285881
285642
  this.name = this.constructor.name;
285882
285643
  }
@@ -285920,11 +285681,11 @@ exports.SsoReAuthRequiredError = SsoReAuthRequiredError;
285920
285681
  /**
285921
285682
  * @class
285922
285683
  * @name IncompleteProjectError
285923
- * @description Generating the dependency graph requires Snyk to run go list `go list -deps -json` inside the Project. If the operation fails, creating a full dependency graph cannot continue.
285684
+ * @description Generating the dependency graph requires Snyk to run go list `go list -deps -json` inside the project. If the operation fails, creating a full dependency graph cannot continue.
285924
285685
  *
285925
- * This error usually means that you need some cleanup, such as `go mod tidy`) or your Project deployment process contains a code generation step such as `protobuf` or something similar that is not currently supported by Snyk.
285686
+ * This error means that you need some cleanup, such as `go mod tidy`) or your project deployment process contains a code generation step such as `protobuf` or similar that is not currently supported by Snyk.
285926
285687
  *
285927
- * To verify if this is the case, clone your Project in a clean environment, run go list `go list -deps -json` and verify whether the operation fails.
285688
+ * To verify if this is the case, clone your project in a clean environment, run go list `go list -deps -json` and verify whether the operation fails.
285928
285689
  *
285929
285690
  * If Snyk cannot process your code successfully, insert the Snyk CLI as part of your deployment pipeline.
285930
285691
  *
@@ -285957,6 +285718,73 @@ class IncompleteProjectError extends problem_error_1.ProblemError {
285957
285718
  }
285958
285719
  }
285959
285720
  exports.IncompleteProjectError = IncompleteProjectError;
285721
+ /**
285722
+ * @class
285723
+ * @name InconsistentVendoringError
285724
+ * @description Generating the dependency graph requires Snyk to run `go list -deps -json` inside the project. If the operation fails, creating a full dependency graph cannot continue.
285725
+ *
285726
+ * This error means that there is inconsistency between your `vendor/modules.txt` file and your `go.mod` file. To remediate, you need to:
285727
+ *
285728
+ * * `go mod vendor`
285729
+ * * `go mod tidy`
285730
+ *
285731
+ * Next, commit those changes to your repo. Snyk does not manipulate with your code on our end by design, which is why this is not done automatically.
285732
+ *
285733
+ * To verify if this is the case, clone your project in a clean environment, run go list `go list -deps -json` and verify whether the operation fails.
285734
+ * Then try and run the above mentioned commands and see if your SCM system reports changes in files.
285735
+ *
285736
+ * See more:
285737
+ * - [https://go.dev/ref/mod#go-mod-vendor](https://go.dev/ref/mod#go-mod-vendor)
285738
+ * @summary Your project repository has inconsistent vendoring information
285739
+ * @category OpenSourceEcosystems
285740
+ * @param {string} details the specific details that causes this error
285741
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285742
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
285743
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285744
+ */
285745
+ class InconsistentVendoringError extends problem_error_1.ProblemError {
285746
+ constructor(details, additionalData, cause, instance) {
285747
+ super({
285748
+ title: 'Your project repository has inconsistent vendoring information',
285749
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0005',
285750
+ status: 422,
285751
+ errorCode: 'SNYK-OS-GO-0005',
285752
+ level: 'error',
285753
+ instance,
285754
+ }, details, Object.assign({ links: [
285755
+ 'https://go.dev/ref/mod#go-mod-vendor',
285756
+ ] }, additionalData), cause);
285757
+ this.name = this.constructor.name;
285758
+ }
285759
+ }
285760
+ exports.InconsistentVendoringError = InconsistentVendoringError;
285761
+ /**
285762
+ * @class
285763
+ * @name UnsupportedExternalFileGenerationSCMError
285764
+ * @description Snyk currently does not support external file generation in your project. This limitation is due to Snyk's lack of visibility into the third-party generator tools you may be using and the specific commands required to generate these files.
285765
+ *
285766
+ * Snyk can only work with the files available in your repository and does not have insight into the generation process for external files.
285767
+ * @summary Unsupported external file generation
285768
+ * @category OpenSourceEcosystems
285769
+ * @param {string} details the specific details that causes this error
285770
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285771
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
285772
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
285773
+ */
285774
+ class UnsupportedExternalFileGenerationSCMError extends problem_error_1.ProblemError {
285775
+ constructor(details, additionalData, cause, instance) {
285776
+ super({
285777
+ title: 'Unsupported external file generation',
285778
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0006',
285779
+ status: 422,
285780
+ errorCode: 'SNYK-OS-GO-0006',
285781
+ level: 'error',
285782
+ instance,
285783
+ }, details, Object.assign({ links: [] }, additionalData), cause);
285784
+ this.name = this.constructor.name;
285785
+ }
285786
+ }
285787
+ exports.UnsupportedExternalFileGenerationSCMError = UnsupportedExternalFileGenerationSCMError;
285960
285788
  /**
285961
285789
  * @class
285962
285790
  * @name MissingRequirementFromPomError
@@ -286282,6 +286110,81 @@ class CannotCreateGitHostError extends problem_error_1.ProblemError {
286282
286110
  }
286283
286111
  }
286284
286112
  exports.CannotCreateGitHostError = CannotCreateGitHostError;
286113
+ /**
286114
+ * @class
286115
+ * @name NoReleasedVersionForVersionsRangeError
286116
+ * @description There was no version released for the specified versions range.
286117
+ * @summary No released version for versions range
286118
+ * @category OpenSourceEcosystems
286119
+ * @param {string} details the specific details that causes this error
286120
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
286121
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286122
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
286123
+ */
286124
+ class NoReleasedVersionForVersionsRangeError extends problem_error_1.ProblemError {
286125
+ constructor(details, additionalData, cause, instance) {
286126
+ super({
286127
+ title: 'No released version for versions range',
286128
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0014',
286129
+ status: 422,
286130
+ errorCode: 'SNYK-OS-MAVEN-0014',
286131
+ level: 'error',
286132
+ instance,
286133
+ }, details, Object.assign({ links: [] }, additionalData), cause);
286134
+ this.name = this.constructor.name;
286135
+ }
286136
+ }
286137
+ exports.NoReleasedVersionForVersionsRangeError = NoReleasedVersionForVersionsRangeError;
286138
+ /**
286139
+ * @class
286140
+ * @name SourceNotSupportedError
286141
+ * @description The source used is not supported by fetcher. The supported sources are: github, bitbucket, gitlab.
286142
+ * @summary Source is not supported
286143
+ * @category OpenSourceEcosystems
286144
+ * @param {string} details the specific details that causes this error
286145
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
286146
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286147
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
286148
+ */
286149
+ class SourceNotSupportedError extends problem_error_1.ProblemError {
286150
+ constructor(details, additionalData, cause, instance) {
286151
+ super({
286152
+ title: 'Source is not supported',
286153
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0015',
286154
+ status: 422,
286155
+ errorCode: 'SNYK-OS-MAVEN-0015',
286156
+ level: 'error',
286157
+ instance,
286158
+ }, details, Object.assign({ links: [] }, additionalData), cause);
286159
+ this.name = this.constructor.name;
286160
+ }
286161
+ }
286162
+ exports.SourceNotSupportedError = SourceNotSupportedError;
286163
+ /**
286164
+ * @class
286165
+ * @name TimeoutWhenProcessingTheDepTreeError
286166
+ * @description There was an timeout when processing the dependecy tree.
286167
+ * @summary Timeout when processing the dependency tree
286168
+ * @category OpenSourceEcosystems
286169
+ * @param {string} details the specific details that causes this error
286170
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
286171
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286172
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
286173
+ */
286174
+ class TimeoutWhenProcessingTheDepTreeError extends problem_error_1.ProblemError {
286175
+ constructor(details, additionalData, cause, instance) {
286176
+ super({
286177
+ title: 'Timeout when processing the dependency tree',
286178
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0016',
286179
+ status: 422,
286180
+ errorCode: 'SNYK-OS-MAVEN-0016',
286181
+ level: 'error',
286182
+ instance,
286183
+ }, details, Object.assign({ links: [] }, additionalData), cause);
286184
+ this.name = this.constructor.name;
286185
+ }
286186
+ }
286187
+ exports.TimeoutWhenProcessingTheDepTreeError = TimeoutWhenProcessingTheDepTreeError;
286285
286188
  /**
286286
286189
  * @class
286287
286190
  * @name NoRepoFoundForTheNPMPackageError
@@ -286407,13 +286310,263 @@ class BadNPMVersionError extends problem_error_1.ProblemError {
286407
286310
  }
286408
286311
  }
286409
286312
  exports.BadNPMVersionError = BadNPMVersionError;
286313
+ /**
286314
+ * @class
286315
+ * @name UnknownBlobEncodingOnGithubError
286316
+ * @description Unknown blob encoding on Github.
286317
+ * @summary Unknown blob encoding on Github
286318
+ * @category OpenSourceEcosystems
286319
+ * @param {string} details the specific details that causes this error
286320
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
286321
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286322
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
286323
+ */
286324
+ class UnknownBlobEncodingOnGithubError extends problem_error_1.ProblemError {
286325
+ constructor(details, additionalData, cause, instance) {
286326
+ super({
286327
+ title: 'Unknown blob encoding on Github',
286328
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0006',
286329
+ status: 422,
286330
+ errorCode: 'SNYK-OS-NODEJS-0006',
286331
+ level: 'error',
286332
+ instance,
286333
+ }, details, Object.assign({ links: [] }, additionalData), cause);
286334
+ this.name = this.constructor.name;
286335
+ }
286336
+ }
286337
+ exports.UnknownBlobEncodingOnGithubError = UnknownBlobEncodingOnGithubError;
286338
+ /**
286339
+ * @class
286340
+ * @name NoResultsFromForkerProcessesError
286341
+ * @description No result from forked process.
286342
+ * @summary No result from forked process
286343
+ * @category OpenSourceEcosystems
286344
+ * @param {string} details the specific details that causes this error
286345
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
286346
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286347
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
286348
+ */
286349
+ class NoResultsFromForkerProcessesError extends problem_error_1.ProblemError {
286350
+ constructor(details, additionalData, cause, instance) {
286351
+ super({
286352
+ title: 'No result from forked process',
286353
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0007',
286354
+ status: 500,
286355
+ errorCode: 'SNYK-OS-NODEJS-0007',
286356
+ level: 'error',
286357
+ instance,
286358
+ }, details, Object.assign({ links: [] }, additionalData), cause);
286359
+ this.name = this.constructor.name;
286360
+ }
286361
+ }
286362
+ exports.NoResultsFromForkerProcessesError = NoResultsFromForkerProcessesError;
286363
+ /**
286364
+ * @class
286365
+ * @name ChildProcessExecutionError
286366
+ * @description The child process encountered an error during execution.
286367
+ * @summary Child Process Execution Error
286368
+ * @category OpenSourceEcosystems
286369
+ * @param {string} details the specific details that causes this error
286370
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
286371
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286372
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
286373
+ */
286374
+ class ChildProcessExecutionError extends problem_error_1.ProblemError {
286375
+ constructor(details, additionalData, cause, instance) {
286376
+ super({
286377
+ title: 'Child Process Execution Error',
286378
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0008',
286379
+ status: 500,
286380
+ errorCode: 'SNYK-OS-NODEJS-0008',
286381
+ level: 'error',
286382
+ instance,
286383
+ }, details, Object.assign({ links: [] }, additionalData), cause);
286384
+ this.name = this.constructor.name;
286385
+ }
286386
+ }
286387
+ exports.ChildProcessExecutionError = ChildProcessExecutionError;
286388
+ /**
286389
+ * @class
286390
+ * @name NoValidPackageUpgradesError
286391
+ * @description The system attempted to find valid upgrades for the packages specified in the lock file, but none were available.
286392
+ * @summary No valid package upgrades
286393
+ * @category OpenSourceEcosystems
286394
+ * @param {string} details the specific details that causes this error
286395
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
286396
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286397
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
286398
+ */
286399
+ class NoValidPackageUpgradesError extends problem_error_1.ProblemError {
286400
+ constructor(details, additionalData, cause, instance) {
286401
+ super({
286402
+ title: 'No valid package upgrades',
286403
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0009',
286404
+ status: 422,
286405
+ errorCode: 'SNYK-OS-NODEJS-0009',
286406
+ level: 'error',
286407
+ instance,
286408
+ }, details, Object.assign({ links: [] }, additionalData), cause);
286409
+ this.name = this.constructor.name;
286410
+ }
286411
+ }
286412
+ exports.NoValidPackageUpgradesError = NoValidPackageUpgradesError;
286413
+ /**
286414
+ * @class
286415
+ * @name NoDependencyUpdatesError
286416
+ * @description There are no available updates for the dependencies.
286417
+ * @summary No dependency updates
286418
+ * @category OpenSourceEcosystems
286419
+ * @param {string} details the specific details that causes this error
286420
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
286421
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286422
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
286423
+ */
286424
+ class NoDependencyUpdatesError extends problem_error_1.ProblemError {
286425
+ constructor(details, additionalData, cause, instance) {
286426
+ super({
286427
+ title: 'No dependency updates',
286428
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0010',
286429
+ status: 422,
286430
+ errorCode: 'SNYK-OS-NODEJS-0010',
286431
+ level: 'error',
286432
+ instance,
286433
+ }, details, Object.assign({ links: [] }, additionalData), cause);
286434
+ this.name = this.constructor.name;
286435
+ }
286436
+ }
286437
+ exports.NoDependencyUpdatesError = NoDependencyUpdatesError;
286438
+ /**
286439
+ * @class
286440
+ * @name CouldNotParseJSONFileError
286441
+ * @description An error occurred while attempting to parse a JSON file.
286442
+ * @summary Could not parse JSON file
286443
+ * @category OpenSourceEcosystems
286444
+ * @param {string} details the specific details that causes this error
286445
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
286446
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286447
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
286448
+ */
286449
+ class CouldNotParseJSONFileError extends problem_error_1.ProblemError {
286450
+ constructor(details, additionalData, cause, instance) {
286451
+ super({
286452
+ title: 'Could not parse JSON file',
286453
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0011',
286454
+ status: 422,
286455
+ errorCode: 'SNYK-OS-NODEJS-0011',
286456
+ level: 'error',
286457
+ instance,
286458
+ }, details, Object.assign({ links: [] }, additionalData), cause);
286459
+ this.name = this.constructor.name;
286460
+ }
286461
+ }
286462
+ exports.CouldNotParseJSONFileError = CouldNotParseJSONFileError;
286463
+ /**
286464
+ * @class
286465
+ * @name Base64EncodeError
286466
+ * @description An error occurred while attempting to perform Base64 encoding.
286467
+ * @summary Could not Base64 encode
286468
+ * @category OpenSourceEcosystems
286469
+ * @param {string} details the specific details that causes this error
286470
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
286471
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286472
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
286473
+ */
286474
+ class Base64EncodeError extends problem_error_1.ProblemError {
286475
+ constructor(details, additionalData, cause, instance) {
286476
+ super({
286477
+ title: 'Could not Base64 encode',
286478
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0012',
286479
+ status: 422,
286480
+ errorCode: 'SNYK-OS-NODEJS-0012',
286481
+ level: 'error',
286482
+ instance,
286483
+ }, details, Object.assign({ links: [] }, additionalData), cause);
286484
+ this.name = this.constructor.name;
286485
+ }
286486
+ }
286487
+ exports.Base64EncodeError = Base64EncodeError;
286488
+ /**
286489
+ * @class
286490
+ * @name Base64DecodeError
286491
+ * @description An error occurred while attempting to perform Base64 decoding.
286492
+ * @summary Could not Base64 decode
286493
+ * @category OpenSourceEcosystems
286494
+ * @param {string} details the specific details that causes this error
286495
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
286496
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286497
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
286498
+ */
286499
+ class Base64DecodeError extends problem_error_1.ProblemError {
286500
+ constructor(details, additionalData, cause, instance) {
286501
+ super({
286502
+ title: 'Could not Base64 decode',
286503
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0013',
286504
+ status: 422,
286505
+ errorCode: 'SNYK-OS-NODEJS-0013',
286506
+ level: 'error',
286507
+ instance,
286508
+ }, details, Object.assign({ links: [] }, additionalData), cause);
286509
+ this.name = this.constructor.name;
286510
+ }
286511
+ }
286512
+ exports.Base64DecodeError = Base64DecodeError;
286513
+ /**
286514
+ * @class
286515
+ * @name MissingSupportedFileError
286516
+ * @description Could not find supported file.
286517
+ * @summary Missing supported file
286518
+ * @category OpenSourceEcosystems
286519
+ * @param {string} details the specific details that causes this error
286520
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
286521
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286522
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
286523
+ */
286524
+ class MissingSupportedFileError extends problem_error_1.ProblemError {
286525
+ constructor(details, additionalData, cause, instance) {
286526
+ super({
286527
+ title: 'Missing supported file',
286528
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0014',
286529
+ status: 400,
286530
+ errorCode: 'SNYK-OS-NODEJS-0014',
286531
+ level: 'error',
286532
+ instance,
286533
+ }, details, Object.assign({ links: [] }, additionalData), cause);
286534
+ this.name = this.constructor.name;
286535
+ }
286536
+ }
286537
+ exports.MissingSupportedFileError = MissingSupportedFileError;
286538
+ /**
286539
+ * @class
286540
+ * @name InvalidConfigurationError
286541
+ * @description The configuration parameter does not meet the expected data type. Please ensure the provided value is of the correct data type.
286542
+ * @summary Invalid configuration
286543
+ * @category OpenSourceEcosystems
286544
+ * @param {string} details the specific details that causes this error
286545
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
286546
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286547
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
286548
+ */
286549
+ class InvalidConfigurationError extends problem_error_1.ProblemError {
286550
+ constructor(details, additionalData, cause, instance) {
286551
+ super({
286552
+ title: 'Invalid configuration',
286553
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0015',
286554
+ status: 400,
286555
+ errorCode: 'SNYK-OS-NODEJS-0015',
286556
+ level: 'warn',
286557
+ instance,
286558
+ }, details, Object.assign({ links: [] }, additionalData), cause);
286559
+ this.name = this.constructor.name;
286560
+ }
286561
+ }
286562
+ exports.InvalidConfigurationError = InvalidConfigurationError;
286410
286563
  /**
286411
286564
  * @class
286412
286565
  * @name UnsupportedRequirementsFileError
286413
286566
  * @description The provided requirements file is not supported by Snyk for Python.
286414
286567
  *
286415
286568
  * See more:
286416
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-python#git-services-for-pip-projects](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-python#git-services-for-pip-projects)
286569
+ * - [https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/python](https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/python)
286417
286570
  * @summary Unsupported manifest file type for remediation
286418
286571
  * @category OpenSourceEcosystems
286419
286572
  * @param {string} details the specific details that causes this error
@@ -286431,12 +286584,62 @@ class UnsupportedRequirementsFileError extends problem_error_1.ProblemError {
286431
286584
  level: 'error',
286432
286585
  instance,
286433
286586
  }, details, Object.assign({ links: [
286434
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-python#git-services-for-pip-projects',
286587
+ 'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/python',
286435
286588
  ] }, additionalData), cause);
286436
286589
  this.name = this.constructor.name;
286437
286590
  }
286438
286591
  }
286439
286592
  exports.UnsupportedRequirementsFileError = UnsupportedRequirementsFileError;
286593
+ /**
286594
+ * @class
286595
+ * @name TooManyManifestFilesError
286596
+ * @description Too many manifest files were provided in the request body.
286597
+ * @summary Received more manifests than expected
286598
+ * @category OpenSourceEcosystems
286599
+ * @param {string} details the specific details that causes this error
286600
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
286601
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286602
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
286603
+ */
286604
+ class TooManyManifestFilesError extends problem_error_1.ProblemError {
286605
+ constructor(details, additionalData, cause, instance) {
286606
+ super({
286607
+ title: 'Received more manifests than expected',
286608
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-pip-0002',
286609
+ status: 422,
286610
+ errorCode: 'SNYK-OS-PIP-0002',
286611
+ level: 'error',
286612
+ instance,
286613
+ }, details, Object.assign({ links: [] }, additionalData), cause);
286614
+ this.name = this.constructor.name;
286615
+ }
286616
+ }
286617
+ exports.TooManyManifestFilesError = TooManyManifestFilesError;
286618
+ /**
286619
+ * @class
286620
+ * @name FailedToApplyDependencyUpdatesError
286621
+ * @description An error occured while updating dependencies.
286622
+ * @summary Failed to apply dependency updates
286623
+ * @category OpenSourceEcosystems
286624
+ * @param {string} details the specific details that causes this error
286625
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
286626
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286627
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
286628
+ */
286629
+ class FailedToApplyDependencyUpdatesError extends problem_error_1.ProblemError {
286630
+ constructor(details, additionalData, cause, instance) {
286631
+ super({
286632
+ title: 'Failed to apply dependency updates',
286633
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-pip-0003',
286634
+ status: 422,
286635
+ errorCode: 'SNYK-OS-PIP-0003',
286636
+ level: 'error',
286637
+ instance,
286638
+ }, details, Object.assign({ links: [] }, additionalData), cause);
286639
+ this.name = this.constructor.name;
286640
+ }
286641
+ }
286642
+ exports.FailedToApplyDependencyUpdatesError = FailedToApplyDependencyUpdatesError;
286440
286643
  //# sourceMappingURL=OpenSourceEcosystems-error-catalog.js.map
286441
286644
 
286442
286645
  /***/ }),