@snyk/error-catalog-nodejs-public 5.0.1 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/package.json +1 -1
  2. package/src/catalogs/Fix-error-catalog.d.ts +10 -10
  3. package/src/catalogs/Fix-error-catalog.js +21 -20
  4. package/src/catalogs/Fix-error-catalog.js.map +1 -1
  5. package/src/catalogs/IsolatedBuilds-error-catalog.d.ts +3 -3
  6. package/src/catalogs/IsolatedBuilds-error-catalog.js +7 -6
  7. package/src/catalogs/IsolatedBuilds-error-catalog.js.map +1 -1
  8. package/src/catalogs/OpenAPI-error-catalog.d.ts +8 -8
  9. package/src/catalogs/OpenAPI-error-catalog.js +17 -16
  10. package/src/catalogs/OpenAPI-error-catalog.js.map +1 -1
  11. package/src/catalogs/OpenSourceEcosystems-error-catalog.d.ts +67 -52
  12. package/src/catalogs/OpenSourceEcosystems-error-catalog.js +133 -105
  13. package/src/catalogs/OpenSourceEcosystems-error-catalog.js.map +1 -1
  14. package/src/catalogs/OpenSourceProjectIssues-error-catalog.d.ts +5 -5
  15. package/src/catalogs/OpenSourceProjectIssues-error-catalog.js +11 -10
  16. package/src/catalogs/OpenSourceProjectIssues-error-catalog.js.map +1 -1
  17. package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.d.ts +5 -5
  18. package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js +11 -10
  19. package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js.map +1 -1
  20. package/src/catalogs/OpenSourceUnmanaged-error-catalog.d.ts +2 -2
  21. package/src/catalogs/OpenSourceUnmanaged-error-catalog.js +5 -4
  22. package/src/catalogs/OpenSourceUnmanaged-error-catalog.js.map +1 -1
  23. package/src/catalogs/PurlVulnerabilityFetching-error-catalog.d.ts +20 -20
  24. package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js +41 -40
  25. package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js.map +1 -1
  26. package/src/catalogs/SbomExport-error-catalog.d.ts +9 -9
  27. package/src/catalogs/SbomExport-error-catalog.js +19 -18
  28. package/src/catalogs/SbomExport-error-catalog.js.map +1 -1
  29. package/src/catalogs/Snyk-error-catalog.d.ts +6 -6
  30. package/src/catalogs/Snyk-error-catalog.js +13 -12
  31. package/src/catalogs/Snyk-error-catalog.js.map +1 -1
  32. package/src/catalogs/error-codes.d.ts +1 -0
  33. package/src/catalogs/error-codes.js +1 -0
  34. package/src/catalogs/error-codes.js.map +1 -1
  35. package/src/problem-error.js +1 -0
  36. package/src/problem-error.js.map +1 -1
  37. package/src/types.d.ts +7 -1
  38. package/src/types.js +7 -1
  39. package/src/types.js.map +1 -1
@@ -16,7 +16,8 @@
16
16
  "use strict";
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  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;
19
- exports.FailedToApplyDependencyUpdatesError = exports.TooManyManifestFilesError = void 0;
19
+ exports.NoMatchingDistributionError = exports.FailedToApplyDependencyUpdatesError = exports.TooManyManifestFilesError = void 0;
20
+ const types_1 = require("../types");
20
21
  const problem_error_1 = require("../problem-error");
21
22
  /**
22
23
  * @class
@@ -25,7 +26,7 @@ const problem_error_1 = require("../problem-error");
25
26
  * @summary Unable to parse manifest file
26
27
  * @category OpenSourceEcosystems
27
28
  * @param {string} details the specific details that causes this error
28
- * @param {string} classification the error classification determining if the error is user-actionable or not
29
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
29
30
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
30
31
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
31
32
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -38,7 +39,7 @@ class UnparseableManifestError extends problem_error_1.ProblemError {
38
39
  status: 400,
39
40
  errorCode: 'SNYK-OS-0001',
40
41
  level: 'error',
41
- classification: 'ACTIONABLE',
42
+ classification: types_1.Classification.ACTIONABLE,
42
43
  instance,
43
44
  }, details, Object.assign({ links: [] }, additionalData), cause);
44
45
  this.name = this.constructor.name;
@@ -52,7 +53,7 @@ exports.UnparseableManifestError = UnparseableManifestError;
52
53
  * @summary Unable to parse lock file
53
54
  * @category OpenSourceEcosystems
54
55
  * @param {string} details the specific details that causes this error
55
- * @param {string} classification the error classification determining if the error is user-actionable or not
56
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
56
57
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
57
58
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
58
59
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -65,7 +66,7 @@ class UnparseableLockFileError extends problem_error_1.ProblemError {
65
66
  status: 400,
66
67
  errorCode: 'SNYK-OS-0002',
67
68
  level: 'error',
68
- classification: 'ACTIONABLE',
69
+ classification: types_1.Classification.ACTIONABLE,
69
70
  instance,
70
71
  }, details, Object.assign({ links: [] }, additionalData), cause);
71
72
  this.name = this.constructor.name;
@@ -82,7 +83,7 @@ exports.UnparseableLockFileError = UnparseableLockFileError;
82
83
  * @summary Unknown dependency version
83
84
  * @category OpenSourceEcosystems
84
85
  * @param {string} details the specific details that causes this error
85
- * @param {string} classification the error classification determining if the error is user-actionable or not
86
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
86
87
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
87
88
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
88
89
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -95,7 +96,7 @@ class UnknownDependencyVersionError extends problem_error_1.ProblemError {
95
96
  status: 404,
96
97
  errorCode: 'SNYK-OS-0003',
97
98
  level: 'warn',
98
- classification: 'ACTIONABLE',
99
+ classification: types_1.Classification.ACTIONABLE,
99
100
  instance,
100
101
  }, details, Object.assign({ links: [
101
102
  'https://support.snyk.io/hc/en-us/articles/360001373178-Could-not-determine-version-for-dependencies',
@@ -111,7 +112,7 @@ exports.UnknownDependencyVersionError = UnknownDependencyVersionError;
111
112
  * @summary Missing required request header
112
113
  * @category OpenSourceEcosystems
113
114
  * @param {string} details the specific details that causes this error
114
- * @param {string} classification the error classification determining if the error is user-actionable or not
115
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
115
116
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
116
117
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
117
118
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -124,7 +125,7 @@ class MissingHeaderError extends problem_error_1.ProblemError {
124
125
  status: 422,
125
126
  errorCode: 'SNYK-OS-0004',
126
127
  level: 'error',
127
- classification: 'ACTIONABLE',
128
+ classification: types_1.Classification.ACTIONABLE,
128
129
  instance,
129
130
  }, details, Object.assign({ links: [] }, additionalData), cause);
130
131
  this.name = this.constructor.name;
@@ -138,7 +139,7 @@ exports.MissingHeaderError = MissingHeaderError;
138
139
  * @summary Payload missing required elements
139
140
  * @category OpenSourceEcosystems
140
141
  * @param {string} details the specific details that causes this error
141
- * @param {string} classification the error classification determining if the error is user-actionable or not
142
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
142
143
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
143
144
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
144
145
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -151,7 +152,7 @@ class MissingPayloadError extends problem_error_1.ProblemError {
151
152
  status: 422,
152
153
  errorCode: 'SNYK-OS-0005',
153
154
  level: 'error',
154
- classification: 'ACTIONABLE',
155
+ classification: types_1.Classification.ACTIONABLE,
155
156
  instance,
156
157
  }, details, Object.assign({ links: [] }, additionalData), cause);
157
158
  this.name = this.constructor.name;
@@ -165,7 +166,7 @@ exports.MissingPayloadError = MissingPayloadError;
165
166
  * @summary Files cannot be processed
166
167
  * @category OpenSourceEcosystems
167
168
  * @param {string} details the specific details that causes this error
168
- * @param {string} classification the error classification determining if the error is user-actionable or not
169
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
169
170
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
170
171
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
171
172
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -178,7 +179,7 @@ class UnprocessableFileError extends problem_error_1.ProblemError {
178
179
  status: 422,
179
180
  errorCode: 'SNYK-OS-0006',
180
181
  level: 'error',
181
- classification: 'ACTIONABLE',
182
+ classification: types_1.Classification.ACTIONABLE,
182
183
  instance,
183
184
  }, details, Object.assign({ links: [] }, additionalData), cause);
184
185
  this.name = this.constructor.name;
@@ -192,7 +193,7 @@ exports.UnprocessableFileError = UnprocessableFileError;
192
193
  * @summary Cannot get file from source
193
194
  * @category OpenSourceEcosystems
194
195
  * @param {string} details the specific details that causes this error
195
- * @param {string} classification the error classification determining if the error is user-actionable or not
196
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
196
197
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
197
198
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
198
199
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -205,7 +206,7 @@ class CannotGetFileFromSourceError extends problem_error_1.ProblemError {
205
206
  status: 500,
206
207
  errorCode: 'SNYK-OS-0007',
207
208
  level: 'error',
208
- classification: 'UNEXPECTED',
209
+ classification: types_1.Classification.UNEXPECTED,
209
210
  instance,
210
211
  }, details, Object.assign({ links: [] }, additionalData), cause);
211
212
  this.name = this.constructor.name;
@@ -219,7 +220,7 @@ exports.CannotGetFileFromSourceError = CannotGetFileFromSourceError;
219
220
  * @summary Missing environment variable
220
221
  * @category OpenSourceEcosystems
221
222
  * @param {string} details the specific details that causes this error
222
- * @param {string} classification the error classification determining if the error is user-actionable or not
223
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
223
224
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
224
225
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
225
226
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -232,7 +233,7 @@ class MissingEnvironmentVariableError extends problem_error_1.ProblemError {
232
233
  status: 500,
233
234
  errorCode: 'SNYK-OS-0008',
234
235
  level: 'error',
235
- classification: 'UNEXPECTED',
236
+ classification: types_1.Classification.UNEXPECTED,
236
237
  instance,
237
238
  }, details, Object.assign({ links: [] }, additionalData), cause);
238
239
  this.name = this.constructor.name;
@@ -249,7 +250,7 @@ exports.MissingEnvironmentVariableError = MissingEnvironmentVariableError;
249
250
  * @summary Unsupported manifest file type for remediation
250
251
  * @category OpenSourceEcosystems
251
252
  * @param {string} details the specific details that causes this error
252
- * @param {string} classification the error classification determining if the error is user-actionable or not
253
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
253
254
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
254
255
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
255
256
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -262,7 +263,7 @@ class UnsupportedManifestFileError extends problem_error_1.ProblemError {
262
263
  status: 400,
263
264
  errorCode: 'SNYK-OS-DOTNET-0001',
264
265
  level: 'error',
265
- classification: 'UNSUPPORTED',
266
+ classification: types_1.Classification.UNSUPPORTED,
266
267
  instance,
267
268
  }, details, Object.assign({ links: [
268
269
  'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/.net',
@@ -278,7 +279,7 @@ exports.UnsupportedManifestFileError = UnsupportedManifestFileError;
278
279
  * @summary Target framework not supported
279
280
  * @category OpenSourceEcosystems
280
281
  * @param {string} details the specific details that causes this error
281
- * @param {string} classification the error classification determining if the error is user-actionable or not
282
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
282
283
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
283
284
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
284
285
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -291,7 +292,7 @@ class UnsupportedTargetFrameworkError extends problem_error_1.ProblemError {
291
292
  status: 422,
292
293
  errorCode: 'SNYK-OS-DOTNET-0002',
293
294
  level: 'error',
294
- classification: 'UNSUPPORTED',
295
+ classification: types_1.Classification.UNSUPPORTED,
295
296
  instance,
296
297
  }, details, Object.assign({ links: [] }, additionalData), cause);
297
298
  this.name = this.constructor.name;
@@ -323,7 +324,7 @@ exports.UnsupportedTargetFrameworkError = UnsupportedTargetFrameworkError;
323
324
  * @summary Your C# code is missing a static Main function
324
325
  * @category OpenSourceEcosystems
325
326
  * @param {string} details the specific details that causes this error
326
- * @param {string} classification the error classification determining if the error is user-actionable or not
327
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
327
328
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
328
329
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
329
330
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -336,7 +337,7 @@ class MissingStaticMainFunctionError extends problem_error_1.ProblemError {
336
337
  status: 422,
337
338
  errorCode: 'SNYK-OS-DOTNET-0003',
338
339
  level: 'error',
339
- classification: 'ACTIONABLE',
340
+ classification: types_1.Classification.ACTIONABLE,
340
341
  instance,
341
342
  }, details, Object.assign({ links: [
342
343
  'https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs5001',
@@ -365,7 +366,7 @@ exports.MissingStaticMainFunctionError = MissingStaticMainFunctionError;
365
366
  * @summary The dotnet CLI is unable to generate a self-contained binary
366
367
  * @category OpenSourceEcosystems
367
368
  * @param {string} details the specific details that causes this error
368
- * @param {string} classification the error classification determining if the error is user-actionable or not
369
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
369
370
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
370
371
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
371
372
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -378,7 +379,7 @@ class PublishFailedError extends problem_error_1.ProblemError {
378
379
  status: 422,
379
380
  errorCode: 'SNYK-OS-DOTNET-0004',
380
381
  level: 'error',
381
- classification: 'ACTIONABLE',
382
+ classification: types_1.Classification.ACTIONABLE,
382
383
  instance,
383
384
  }, details, Object.assign({ links: [
384
385
  'https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/',
@@ -399,7 +400,7 @@ exports.PublishFailedError = PublishFailedError;
399
400
  * @summary Failed to access private module
400
401
  * @category OpenSourceEcosystems
401
402
  * @param {string} details the specific details that causes this error
402
- * @param {string} classification the error classification determining if the error is user-actionable or not
403
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
403
404
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
404
405
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
405
406
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -412,7 +413,7 @@ class PrivateModuleError extends problem_error_1.ProblemError {
412
413
  status: 400,
413
414
  errorCode: 'SNYK-OS-GO-0001',
414
415
  level: 'error',
415
- classification: 'ACTIONABLE',
416
+ classification: types_1.Classification.ACTIONABLE,
416
417
  instance,
417
418
  }, details, Object.assign({ links: [
418
419
  'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go',
@@ -431,7 +432,7 @@ exports.PrivateModuleError = PrivateModuleError;
431
432
  * @summary Go mod file not found
432
433
  * @category OpenSourceEcosystems
433
434
  * @param {string} details the specific details that causes this error
434
- * @param {string} classification the error classification determining if the error is user-actionable or not
435
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
435
436
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
436
437
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
437
438
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -444,7 +445,7 @@ class GoModFileMissingError extends problem_error_1.ProblemError {
444
445
  status: 400,
445
446
  errorCode: 'SNYK-OS-GO-0002',
446
447
  level: 'error',
447
- classification: 'ACTIONABLE',
448
+ classification: types_1.Classification.ACTIONABLE,
448
449
  instance,
449
450
  }, details, Object.assign({ links: [
450
451
  'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go',
@@ -468,7 +469,7 @@ exports.GoModFileMissingError = GoModFileMissingError;
468
469
  * @summary OAuth re-authorization required
469
470
  * @category OpenSourceEcosystems
470
471
  * @param {string} details the specific details that causes this error
471
- * @param {string} classification the error classification determining if the error is user-actionable or not
472
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
472
473
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
473
474
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
474
475
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -481,7 +482,7 @@ class SsoReAuthRequiredError extends problem_error_1.ProblemError {
481
482
  status: 422,
482
483
  errorCode: 'SNYK-OS-GO-0003',
483
484
  level: 'error',
484
- classification: 'ACTIONABLE',
485
+ classification: types_1.Classification.ACTIONABLE,
485
486
  instance,
486
487
  }, details, Object.assign({ links: [
487
488
  'https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on#about-oauth-apps-github-apps-and-saml-sso',
@@ -508,7 +509,7 @@ exports.SsoReAuthRequiredError = SsoReAuthRequiredError;
508
509
  * @summary Your project repository is missing required files
509
510
  * @category OpenSourceEcosystems
510
511
  * @param {string} details the specific details that causes this error
511
- * @param {string} classification the error classification determining if the error is user-actionable or not
512
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
512
513
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
513
514
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
514
515
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -521,7 +522,7 @@ class IncompleteProjectError extends problem_error_1.ProblemError {
521
522
  status: 422,
522
523
  errorCode: 'SNYK-OS-GO-0004',
523
524
  level: 'error',
524
- classification: 'ACTIONABLE',
525
+ classification: types_1.Classification.ACTIONABLE,
525
526
  instance,
526
527
  }, details, Object.assign({ links: [
527
528
  'https://docs.snyk.io/snyk-cli',
@@ -552,7 +553,7 @@ exports.IncompleteProjectError = IncompleteProjectError;
552
553
  * @summary Your project repository has inconsistent vendoring information
553
554
  * @category OpenSourceEcosystems
554
555
  * @param {string} details the specific details that causes this error
555
- * @param {string} classification the error classification determining if the error is user-actionable or not
556
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
556
557
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
557
558
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
558
559
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -565,7 +566,7 @@ class InconsistentVendoringError extends problem_error_1.ProblemError {
565
566
  status: 422,
566
567
  errorCode: 'SNYK-OS-GO-0005',
567
568
  level: 'error',
568
- classification: 'ACTIONABLE',
569
+ classification: types_1.Classification.ACTIONABLE,
569
570
  instance,
570
571
  }, details, Object.assign({ links: [
571
572
  'https://go.dev/ref/mod#go-mod-vendor',
@@ -583,7 +584,7 @@ exports.InconsistentVendoringError = InconsistentVendoringError;
583
584
  * @summary Unsupported external file generation
584
585
  * @category OpenSourceEcosystems
585
586
  * @param {string} details the specific details that causes this error
586
- * @param {string} classification the error classification determining if the error is user-actionable or not
587
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
587
588
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
588
589
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
589
590
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -596,7 +597,7 @@ class UnsupportedExternalFileGenerationSCMError extends problem_error_1.ProblemE
596
597
  status: 422,
597
598
  errorCode: 'SNYK-OS-GO-0006',
598
599
  level: 'error',
599
- classification: 'UNSUPPORTED',
600
+ classification: types_1.Classification.UNSUPPORTED,
600
601
  instance,
601
602
  }, details, Object.assign({ links: [] }, additionalData), cause);
602
603
  this.name = this.constructor.name;
@@ -610,7 +611,7 @@ exports.UnsupportedExternalFileGenerationSCMError = UnsupportedExternalFileGener
610
611
  * @summary Missing property
611
612
  * @category OpenSourceEcosystems
612
613
  * @param {string} details the specific details that causes this error
613
- * @param {string} classification the error classification determining if the error is user-actionable or not
614
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
614
615
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
615
616
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
616
617
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -623,7 +624,7 @@ class MissingRequirementFromPomError extends problem_error_1.ProblemError {
623
624
  status: 422,
624
625
  errorCode: 'SNYK-OS-MAVEN-0001',
625
626
  level: 'error',
626
- classification: 'ACTIONABLE',
627
+ classification: types_1.Classification.ACTIONABLE,
627
628
  instance,
628
629
  }, details, Object.assign({ links: [] }, additionalData), cause);
629
630
  this.name = this.constructor.name;
@@ -637,7 +638,7 @@ exports.MissingRequirementFromPomError = MissingRequirementFromPomError;
637
638
  * @summary Unable to resolve value for property
638
639
  * @category OpenSourceEcosystems
639
640
  * @param {string} details the specific details that causes this error
640
- * @param {string} classification the error classification determining if the error is user-actionable or not
641
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
641
642
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
642
643
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
643
644
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -650,7 +651,7 @@ class UnableToResolveValueForPropertyError extends problem_error_1.ProblemError
650
651
  status: 422,
651
652
  errorCode: 'SNYK-OS-MAVEN-0002',
652
653
  level: 'error',
653
- classification: 'ACTIONABLE',
654
+ classification: types_1.Classification.ACTIONABLE,
654
655
  instance,
655
656
  }, details, Object.assign({ links: [] }, additionalData), cause);
656
657
  this.name = this.constructor.name;
@@ -664,7 +665,7 @@ exports.UnableToResolveValueForPropertyError = UnableToResolveValueForPropertyEr
664
665
  * @summary Unable to resolve version for property
665
666
  * @category OpenSourceEcosystems
666
667
  * @param {string} details the specific details that causes this error
667
- * @param {string} classification the error classification determining if the error is user-actionable or not
668
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
668
669
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
669
670
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
670
671
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -677,7 +678,7 @@ class UnableToResolveVersionForPropertyError extends problem_error_1.ProblemErro
677
678
  status: 500,
678
679
  errorCode: 'SNYK-OS-MAVEN-0003',
679
680
  level: 'error',
680
- classification: 'UNEXPECTED',
681
+ classification: types_1.Classification.UNEXPECTED,
681
682
  instance,
682
683
  }, details, Object.assign({ links: [] }, additionalData), cause);
683
684
  this.name = this.constructor.name;
@@ -691,7 +692,7 @@ exports.UnableToResolveVersionForPropertyError = UnableToResolveVersionForProper
691
692
  * @summary Cyclic property detected in POM file
692
693
  * @category OpenSourceEcosystems
693
694
  * @param {string} details the specific details that causes this error
694
- * @param {string} classification the error classification determining if the error is user-actionable or not
695
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
695
696
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
696
697
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
697
698
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -704,7 +705,7 @@ class CyclicPropertyDetectedInPomFileError extends problem_error_1.ProblemError
704
705
  status: 422,
705
706
  errorCode: 'SNYK-OS-MAVEN-0004',
706
707
  level: 'error',
707
- classification: 'ACTIONABLE',
708
+ classification: types_1.Classification.ACTIONABLE,
708
709
  instance,
709
710
  }, details, Object.assign({ links: [] }, additionalData), cause);
710
711
  this.name = this.constructor.name;
@@ -718,7 +719,7 @@ exports.CyclicPropertyDetectedInPomFileError = CyclicPropertyDetectedInPomFileEr
718
719
  * @summary Error parsing the XML file
719
720
  * @category OpenSourceEcosystems
720
721
  * @param {string} details the specific details that causes this error
721
- * @param {string} classification the error classification determining if the error is user-actionable or not
722
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
722
723
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
723
724
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
724
725
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -731,7 +732,7 @@ class UnableToParseXMLError extends problem_error_1.ProblemError {
731
732
  status: 422,
732
733
  errorCode: 'SNYK-OS-MAVEN-0005',
733
734
  level: 'error',
734
- classification: 'ACTIONABLE',
735
+ classification: types_1.Classification.ACTIONABLE,
735
736
  instance,
736
737
  }, details, Object.assign({ links: [] }, additionalData), cause);
737
738
  this.name = this.constructor.name;
@@ -745,7 +746,7 @@ exports.UnableToParseXMLError = UnableToParseXMLError;
745
746
  * @summary Invalid coordinates provided
746
747
  * @category OpenSourceEcosystems
747
748
  * @param {string} details the specific details that causes this error
748
- * @param {string} classification the error classification determining if the error is user-actionable or not
749
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
749
750
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
750
751
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
751
752
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -758,7 +759,7 @@ class InvalidCoordinatesError extends problem_error_1.ProblemError {
758
759
  status: 422,
759
760
  errorCode: 'SNYK-OS-MAVEN-0006',
760
761
  level: 'error',
761
- classification: 'ACTIONABLE',
762
+ classification: types_1.Classification.ACTIONABLE,
762
763
  instance,
763
764
  }, details, Object.assign({ links: [] }, additionalData), cause);
764
765
  this.name = this.constructor.name;
@@ -772,7 +773,7 @@ exports.InvalidCoordinatesError = InvalidCoordinatesError;
772
773
  * @summary Skipping group
773
774
  * @category OpenSourceEcosystems
774
775
  * @param {string} details the specific details that causes this error
775
- * @param {string} classification the error classification determining if the error is user-actionable or not
776
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
776
777
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
777
778
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
778
779
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -785,7 +786,7 @@ class SkippedGroupError extends problem_error_1.ProblemError {
785
786
  status: 422,
786
787
  errorCode: 'SNYK-OS-MAVEN-0007',
787
788
  level: 'error',
788
- classification: 'ACTIONABLE',
789
+ classification: types_1.Classification.ACTIONABLE,
789
790
  instance,
790
791
  }, details, Object.assign({ links: [] }, additionalData), cause);
791
792
  this.name = this.constructor.name;
@@ -799,7 +800,7 @@ exports.SkippedGroupError = SkippedGroupError;
799
800
  * @summary Pom file not found
800
801
  * @category OpenSourceEcosystems
801
802
  * @param {string} details the specific details that causes this error
802
- * @param {string} classification the error classification determining if the error is user-actionable or not
803
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
803
804
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
804
805
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
805
806
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -812,7 +813,7 @@ class PomFileNotFoundError extends problem_error_1.ProblemError {
812
813
  status: 422,
813
814
  errorCode: 'SNYK-OS-MAVEN-0008',
814
815
  level: 'error',
815
- classification: 'ACTIONABLE',
816
+ classification: types_1.Classification.ACTIONABLE,
816
817
  instance,
817
818
  }, details, Object.assign({ links: [] }, additionalData), cause);
818
819
  this.name = this.constructor.name;
@@ -826,7 +827,7 @@ exports.PomFileNotFoundError = PomFileNotFoundError;
826
827
  * @summary Missing project from POM
827
828
  * @category OpenSourceEcosystems
828
829
  * @param {string} details the specific details that causes this error
829
- * @param {string} classification the error classification determining if the error is user-actionable or not
830
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
830
831
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
831
832
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
832
833
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -839,7 +840,7 @@ class MissingProjectFromPomError extends problem_error_1.ProblemError {
839
840
  status: 422,
840
841
  errorCode: 'SNYK-OS-MAVEN-0009',
841
842
  level: 'error',
842
- classification: 'ACTIONABLE',
843
+ classification: types_1.Classification.ACTIONABLE,
843
844
  instance,
844
845
  }, details, Object.assign({ links: [] }, additionalData), cause);
845
846
  this.name = this.constructor.name;
@@ -853,7 +854,7 @@ exports.MissingProjectFromPomError = MissingProjectFromPomError;
853
854
  * @summary Cannot resolve the target POM from the input XML
854
855
  * @category OpenSourceEcosystems
855
856
  * @param {string} details the specific details that causes this error
856
- * @param {string} classification the error classification determining if the error is user-actionable or not
857
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
857
858
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
858
859
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
859
860
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -866,7 +867,7 @@ class CannotResolveTargetPomFromXmlError extends problem_error_1.ProblemError {
866
867
  status: 422,
867
868
  errorCode: 'SNYK-OS-MAVEN-0010',
868
869
  level: 'error',
869
- classification: 'ACTIONABLE',
870
+ classification: types_1.Classification.ACTIONABLE,
870
871
  instance,
871
872
  }, details, Object.assign({ links: [] }, additionalData), cause);
872
873
  this.name = this.constructor.name;
@@ -880,7 +881,7 @@ exports.CannotResolveTargetPomFromXmlError = CannotResolveTargetPomFromXmlError;
880
881
  * @summary Cannot resolve the target POM from the repository
881
882
  * @category OpenSourceEcosystems
882
883
  * @param {string} details the specific details that causes this error
883
- * @param {string} classification the error classification determining if the error is user-actionable or not
884
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
884
885
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
885
886
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
886
887
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -893,7 +894,7 @@ class CannotResolveTargetPomFromRepoError extends problem_error_1.ProblemError {
893
894
  status: 404,
894
895
  errorCode: 'SNYK-OS-MAVEN-0011',
895
896
  level: 'error',
896
- classification: 'ACTIONABLE',
897
+ classification: types_1.Classification.ACTIONABLE,
897
898
  instance,
898
899
  }, details, Object.assign({ links: [] }, additionalData), cause);
899
900
  this.name = this.constructor.name;
@@ -907,7 +908,7 @@ exports.CannotResolveTargetPomFromRepoError = CannotResolveTargetPomFromRepoErro
907
908
  * @summary Cannot get the build file repository
908
909
  * @category OpenSourceEcosystems
909
910
  * @param {string} details the specific details that causes this error
910
- * @param {string} classification the error classification determining if the error is user-actionable or not
911
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
911
912
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
912
913
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
913
914
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -920,7 +921,7 @@ class CannotGetBuildFileFromRepoError extends problem_error_1.ProblemError {
920
921
  status: 404,
921
922
  errorCode: 'SNYK-OS-MAVEN-0012',
922
923
  level: 'error',
923
- classification: 'ACTIONABLE',
924
+ classification: types_1.Classification.ACTIONABLE,
924
925
  instance,
925
926
  }, details, Object.assign({ links: [] }, additionalData), cause);
926
927
  this.name = this.constructor.name;
@@ -934,7 +935,7 @@ exports.CannotGetBuildFileFromRepoError = CannotGetBuildFileFromRepoError;
934
935
  * @summary Unable to create hosted git info
935
936
  * @category OpenSourceEcosystems
936
937
  * @param {string} details the specific details that causes this error
937
- * @param {string} classification the error classification determining if the error is user-actionable or not
938
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
938
939
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
939
940
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
940
941
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -947,7 +948,7 @@ class CannotCreateGitHostError extends problem_error_1.ProblemError {
947
948
  status: 500,
948
949
  errorCode: 'SNYK-OS-MAVEN-0013',
949
950
  level: 'error',
950
- classification: 'UNEXPECTED',
951
+ classification: types_1.Classification.UNEXPECTED,
951
952
  instance,
952
953
  }, details, Object.assign({ links: [] }, additionalData), cause);
953
954
  this.name = this.constructor.name;
@@ -961,7 +962,7 @@ exports.CannotCreateGitHostError = CannotCreateGitHostError;
961
962
  * @summary No released version for versions range
962
963
  * @category OpenSourceEcosystems
963
964
  * @param {string} details the specific details that causes this error
964
- * @param {string} classification the error classification determining if the error is user-actionable or not
965
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
965
966
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
966
967
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
967
968
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -974,7 +975,7 @@ class NoReleasedVersionForVersionsRangeError extends problem_error_1.ProblemErro
974
975
  status: 422,
975
976
  errorCode: 'SNYK-OS-MAVEN-0014',
976
977
  level: 'error',
977
- classification: 'ACTIONABLE',
978
+ classification: types_1.Classification.ACTIONABLE,
978
979
  instance,
979
980
  }, details, Object.assign({ links: [] }, additionalData), cause);
980
981
  this.name = this.constructor.name;
@@ -988,7 +989,7 @@ exports.NoReleasedVersionForVersionsRangeError = NoReleasedVersionForVersionsRan
988
989
  * @summary Source is not supported
989
990
  * @category OpenSourceEcosystems
990
991
  * @param {string} details the specific details that causes this error
991
- * @param {string} classification the error classification determining if the error is user-actionable or not
992
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
992
993
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
993
994
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
994
995
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1001,7 +1002,7 @@ class SourceNotSupportedError extends problem_error_1.ProblemError {
1001
1002
  status: 422,
1002
1003
  errorCode: 'SNYK-OS-MAVEN-0015',
1003
1004
  level: 'error',
1004
- classification: 'UNSUPPORTED',
1005
+ classification: types_1.Classification.UNSUPPORTED,
1005
1006
  instance,
1006
1007
  }, details, Object.assign({ links: [] }, additionalData), cause);
1007
1008
  this.name = this.constructor.name;
@@ -1015,7 +1016,7 @@ exports.SourceNotSupportedError = SourceNotSupportedError;
1015
1016
  * @summary Timeout when processing the dependency tree
1016
1017
  * @category OpenSourceEcosystems
1017
1018
  * @param {string} details the specific details that causes this error
1018
- * @param {string} classification the error classification determining if the error is user-actionable or not
1019
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1019
1020
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1020
1021
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1021
1022
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1028,7 +1029,7 @@ class TimeoutWhenProcessingTheDepTreeError extends problem_error_1.ProblemError
1028
1029
  status: 422,
1029
1030
  errorCode: 'SNYK-OS-MAVEN-0016',
1030
1031
  level: 'error',
1031
- classification: 'UNEXPECTED',
1032
+ classification: types_1.Classification.UNEXPECTED,
1032
1033
  instance,
1033
1034
  }, details, Object.assign({ links: [] }, additionalData), cause);
1034
1035
  this.name = this.constructor.name;
@@ -1042,7 +1043,7 @@ exports.TimeoutWhenProcessingTheDepTreeError = TimeoutWhenProcessingTheDepTreeEr
1042
1043
  * @summary No repository found for A NPM package
1043
1044
  * @category OpenSourceEcosystems
1044
1045
  * @param {string} details the specific details that causes this error
1045
- * @param {string} classification the error classification determining if the error is user-actionable or not
1046
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1046
1047
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1047
1048
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1048
1049
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1055,7 +1056,7 @@ class NoRepoFoundForTheNPMPackageError extends problem_error_1.ProblemError {
1055
1056
  status: 422,
1056
1057
  errorCode: 'SNYK-OS-NODEJS-0001',
1057
1058
  level: 'error',
1058
- classification: 'ACTIONABLE',
1059
+ classification: types_1.Classification.ACTIONABLE,
1059
1060
  instance,
1060
1061
  }, details, Object.assign({ links: [] }, additionalData), cause);
1061
1062
  this.name = this.constructor.name;
@@ -1069,7 +1070,7 @@ exports.NoRepoFoundForTheNPMPackageError = NoRepoFoundForTheNPMPackageError;
1069
1070
  * @summary Could not parse NPM registry URL
1070
1071
  * @category OpenSourceEcosystems
1071
1072
  * @param {string} details the specific details that causes this error
1072
- * @param {string} classification the error classification determining if the error is user-actionable or not
1073
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1073
1074
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1074
1075
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1075
1076
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1082,7 +1083,7 @@ class CouldNotParseNPMRegistryURLError extends problem_error_1.ProblemError {
1082
1083
  status: 422,
1083
1084
  errorCode: 'SNYK-OS-NODEJS-0002',
1084
1085
  level: 'error',
1085
- classification: 'ACTIONABLE',
1086
+ classification: types_1.Classification.ACTIONABLE,
1086
1087
  instance,
1087
1088
  }, details, Object.assign({ links: [] }, additionalData), cause);
1088
1089
  this.name = this.constructor.name;
@@ -1096,7 +1097,7 @@ exports.CouldNotParseNPMRegistryURLError = CouldNotParseNPMRegistryURLError;
1096
1097
  * @summary Could not find a broker resolved URL
1097
1098
  * @category OpenSourceEcosystems
1098
1099
  * @param {string} details the specific details that causes this error
1099
- * @param {string} classification the error classification determining if the error is user-actionable or not
1100
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1100
1101
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1101
1102
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1102
1103
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1109,7 +1110,7 @@ class CouldNotFindBrokerURLError extends problem_error_1.ProblemError {
1109
1110
  status: 422,
1110
1111
  errorCode: 'SNYK-OS-NODEJS-0003',
1111
1112
  level: 'error',
1112
- classification: 'ACTIONABLE',
1113
+ classification: types_1.Classification.ACTIONABLE,
1113
1114
  instance,
1114
1115
  }, details, Object.assign({ links: [] }, additionalData), cause);
1115
1116
  this.name = this.constructor.name;
@@ -1123,7 +1124,7 @@ exports.CouldNotFindBrokerURLError = CouldNotFindBrokerURLError;
1123
1124
  * @summary Unable to replace broker URL
1124
1125
  * @category OpenSourceEcosystems
1125
1126
  * @param {string} details the specific details that causes this error
1126
- * @param {string} classification the error classification determining if the error is user-actionable or not
1127
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1127
1128
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1128
1129
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1129
1130
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1136,7 +1137,7 @@ class UnableToReplaceBrokerURLError extends problem_error_1.ProblemError {
1136
1137
  status: 422,
1137
1138
  errorCode: 'SNYK-OS-NODEJS-0004',
1138
1139
  level: 'error',
1139
- classification: 'UNEXPECTED',
1140
+ classification: types_1.Classification.UNEXPECTED,
1140
1141
  instance,
1141
1142
  }, details, Object.assign({ links: [] }, additionalData), cause);
1142
1143
  this.name = this.constructor.name;
@@ -1150,7 +1151,7 @@ exports.UnableToReplaceBrokerURLError = UnableToReplaceBrokerURLError;
1150
1151
  * @summary Bad NPM version
1151
1152
  * @category OpenSourceEcosystems
1152
1153
  * @param {string} details the specific details that causes this error
1153
- * @param {string} classification the error classification determining if the error is user-actionable or not
1154
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1154
1155
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1155
1156
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1156
1157
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1163,7 +1164,7 @@ class BadNPMVersionError extends problem_error_1.ProblemError {
1163
1164
  status: 422,
1164
1165
  errorCode: 'SNYK-OS-NODEJS-0005',
1165
1166
  level: 'error',
1166
- classification: 'UNSUPPORTED',
1167
+ classification: types_1.Classification.UNSUPPORTED,
1167
1168
  instance,
1168
1169
  }, details, Object.assign({ links: [] }, additionalData), cause);
1169
1170
  this.name = this.constructor.name;
@@ -1177,7 +1178,7 @@ exports.BadNPMVersionError = BadNPMVersionError;
1177
1178
  * @summary Unknown blob encoding on Github
1178
1179
  * @category OpenSourceEcosystems
1179
1180
  * @param {string} details the specific details that causes this error
1180
- * @param {string} classification the error classification determining if the error is user-actionable or not
1181
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1181
1182
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1182
1183
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1183
1184
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1190,7 +1191,7 @@ class UnknownBlobEncodingOnGithubError extends problem_error_1.ProblemError {
1190
1191
  status: 422,
1191
1192
  errorCode: 'SNYK-OS-NODEJS-0006',
1192
1193
  level: 'error',
1193
- classification: 'UNEXPECTED',
1194
+ classification: types_1.Classification.UNEXPECTED,
1194
1195
  instance,
1195
1196
  }, details, Object.assign({ links: [] }, additionalData), cause);
1196
1197
  this.name = this.constructor.name;
@@ -1204,7 +1205,7 @@ exports.UnknownBlobEncodingOnGithubError = UnknownBlobEncodingOnGithubError;
1204
1205
  * @summary No result from forked process
1205
1206
  * @category OpenSourceEcosystems
1206
1207
  * @param {string} details the specific details that causes this error
1207
- * @param {string} classification the error classification determining if the error is user-actionable or not
1208
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1208
1209
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1209
1210
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1210
1211
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1217,7 +1218,7 @@ class NoResultsFromForkerProcessesError extends problem_error_1.ProblemError {
1217
1218
  status: 500,
1218
1219
  errorCode: 'SNYK-OS-NODEJS-0007',
1219
1220
  level: 'error',
1220
- classification: 'UNEXPECTED',
1221
+ classification: types_1.Classification.UNEXPECTED,
1221
1222
  instance,
1222
1223
  }, details, Object.assign({ links: [] }, additionalData), cause);
1223
1224
  this.name = this.constructor.name;
@@ -1231,7 +1232,7 @@ exports.NoResultsFromForkerProcessesError = NoResultsFromForkerProcessesError;
1231
1232
  * @summary Child Process Execution Error
1232
1233
  * @category OpenSourceEcosystems
1233
1234
  * @param {string} details the specific details that causes this error
1234
- * @param {string} classification the error classification determining if the error is user-actionable or not
1235
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1235
1236
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1236
1237
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1237
1238
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1244,7 +1245,7 @@ class ChildProcessExecutionError extends problem_error_1.ProblemError {
1244
1245
  status: 500,
1245
1246
  errorCode: 'SNYK-OS-NODEJS-0008',
1246
1247
  level: 'error',
1247
- classification: 'UNEXPECTED',
1248
+ classification: types_1.Classification.UNEXPECTED,
1248
1249
  instance,
1249
1250
  }, details, Object.assign({ links: [] }, additionalData), cause);
1250
1251
  this.name = this.constructor.name;
@@ -1258,7 +1259,7 @@ exports.ChildProcessExecutionError = ChildProcessExecutionError;
1258
1259
  * @summary No valid package upgrades
1259
1260
  * @category OpenSourceEcosystems
1260
1261
  * @param {string} details the specific details that causes this error
1261
- * @param {string} classification the error classification determining if the error is user-actionable or not
1262
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1262
1263
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1263
1264
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1264
1265
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1271,7 +1272,7 @@ class NoValidPackageUpgradesError extends problem_error_1.ProblemError {
1271
1272
  status: 422,
1272
1273
  errorCode: 'SNYK-OS-NODEJS-0009',
1273
1274
  level: 'error',
1274
- classification: 'ACTIONABLE',
1275
+ classification: types_1.Classification.ACTIONABLE,
1275
1276
  instance,
1276
1277
  }, details, Object.assign({ links: [] }, additionalData), cause);
1277
1278
  this.name = this.constructor.name;
@@ -1285,7 +1286,7 @@ exports.NoValidPackageUpgradesError = NoValidPackageUpgradesError;
1285
1286
  * @summary No dependency updates
1286
1287
  * @category OpenSourceEcosystems
1287
1288
  * @param {string} details the specific details that causes this error
1288
- * @param {string} classification the error classification determining if the error is user-actionable or not
1289
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1289
1290
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1290
1291
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1291
1292
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1298,7 +1299,7 @@ class NoDependencyUpdatesError extends problem_error_1.ProblemError {
1298
1299
  status: 422,
1299
1300
  errorCode: 'SNYK-OS-NODEJS-0010',
1300
1301
  level: 'error',
1301
- classification: 'ACTIONABLE',
1302
+ classification: types_1.Classification.ACTIONABLE,
1302
1303
  instance,
1303
1304
  }, details, Object.assign({ links: [] }, additionalData), cause);
1304
1305
  this.name = this.constructor.name;
@@ -1312,7 +1313,7 @@ exports.NoDependencyUpdatesError = NoDependencyUpdatesError;
1312
1313
  * @summary Could not parse JSON file
1313
1314
  * @category OpenSourceEcosystems
1314
1315
  * @param {string} details the specific details that causes this error
1315
- * @param {string} classification the error classification determining if the error is user-actionable or not
1316
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1316
1317
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1317
1318
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1318
1319
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1325,7 +1326,7 @@ class CouldNotParseJSONFileError extends problem_error_1.ProblemError {
1325
1326
  status: 422,
1326
1327
  errorCode: 'SNYK-OS-NODEJS-0011',
1327
1328
  level: 'error',
1328
- classification: 'ACTIONABLE',
1329
+ classification: types_1.Classification.ACTIONABLE,
1329
1330
  instance,
1330
1331
  }, details, Object.assign({ links: [] }, additionalData), cause);
1331
1332
  this.name = this.constructor.name;
@@ -1339,7 +1340,7 @@ exports.CouldNotParseJSONFileError = CouldNotParseJSONFileError;
1339
1340
  * @summary Could not Base64 encode
1340
1341
  * @category OpenSourceEcosystems
1341
1342
  * @param {string} details the specific details that causes this error
1342
- * @param {string} classification the error classification determining if the error is user-actionable or not
1343
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1343
1344
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1344
1345
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1345
1346
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1352,7 +1353,7 @@ class Base64EncodeError extends problem_error_1.ProblemError {
1352
1353
  status: 422,
1353
1354
  errorCode: 'SNYK-OS-NODEJS-0012',
1354
1355
  level: 'error',
1355
- classification: 'UNEXPECTED',
1356
+ classification: types_1.Classification.UNEXPECTED,
1356
1357
  instance,
1357
1358
  }, details, Object.assign({ links: [] }, additionalData), cause);
1358
1359
  this.name = this.constructor.name;
@@ -1366,7 +1367,7 @@ exports.Base64EncodeError = Base64EncodeError;
1366
1367
  * @summary Could not Base64 decode
1367
1368
  * @category OpenSourceEcosystems
1368
1369
  * @param {string} details the specific details that causes this error
1369
- * @param {string} classification the error classification determining if the error is user-actionable or not
1370
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1370
1371
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1371
1372
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1372
1373
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1379,7 +1380,7 @@ class Base64DecodeError extends problem_error_1.ProblemError {
1379
1380
  status: 422,
1380
1381
  errorCode: 'SNYK-OS-NODEJS-0013',
1381
1382
  level: 'error',
1382
- classification: 'UNEXPECTED',
1383
+ classification: types_1.Classification.UNEXPECTED,
1383
1384
  instance,
1384
1385
  }, details, Object.assign({ links: [] }, additionalData), cause);
1385
1386
  this.name = this.constructor.name;
@@ -1393,7 +1394,7 @@ exports.Base64DecodeError = Base64DecodeError;
1393
1394
  * @summary Missing supported file
1394
1395
  * @category OpenSourceEcosystems
1395
1396
  * @param {string} details the specific details that causes this error
1396
- * @param {string} classification the error classification determining if the error is user-actionable or not
1397
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1397
1398
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1398
1399
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1399
1400
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1406,7 +1407,7 @@ class MissingSupportedFileError extends problem_error_1.ProblemError {
1406
1407
  status: 400,
1407
1408
  errorCode: 'SNYK-OS-NODEJS-0014',
1408
1409
  level: 'error',
1409
- classification: 'ACTIONABLE',
1410
+ classification: types_1.Classification.ACTIONABLE,
1410
1411
  instance,
1411
1412
  }, details, Object.assign({ links: [] }, additionalData), cause);
1412
1413
  this.name = this.constructor.name;
@@ -1420,7 +1421,7 @@ exports.MissingSupportedFileError = MissingSupportedFileError;
1420
1421
  * @summary Invalid configuration
1421
1422
  * @category OpenSourceEcosystems
1422
1423
  * @param {string} details the specific details that causes this error
1423
- * @param {string} classification the error classification determining if the error is user-actionable or not
1424
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1424
1425
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1425
1426
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1426
1427
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1433,7 +1434,7 @@ class InvalidConfigurationError extends problem_error_1.ProblemError {
1433
1434
  status: 400,
1434
1435
  errorCode: 'SNYK-OS-NODEJS-0015',
1435
1436
  level: 'warn',
1436
- classification: 'ACTIONABLE',
1437
+ classification: types_1.Classification.ACTIONABLE,
1437
1438
  instance,
1438
1439
  }, details, Object.assign({ links: [] }, additionalData), cause);
1439
1440
  this.name = this.constructor.name;
@@ -1450,7 +1451,7 @@ exports.InvalidConfigurationError = InvalidConfigurationError;
1450
1451
  * @summary Unsupported manifest file type for remediation
1451
1452
  * @category OpenSourceEcosystems
1452
1453
  * @param {string} details the specific details that causes this error
1453
- * @param {string} classification the error classification determining if the error is user-actionable or not
1454
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1454
1455
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1455
1456
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1456
1457
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1463,7 +1464,7 @@ class UnsupportedRequirementsFileError extends problem_error_1.ProblemError {
1463
1464
  status: 422,
1464
1465
  errorCode: 'SNYK-OS-PIP-0001',
1465
1466
  level: 'error',
1466
- classification: 'UNSUPPORTED',
1467
+ classification: types_1.Classification.UNSUPPORTED,
1467
1468
  instance,
1468
1469
  }, details, Object.assign({ links: [
1469
1470
  'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/python',
@@ -1479,7 +1480,7 @@ exports.UnsupportedRequirementsFileError = UnsupportedRequirementsFileError;
1479
1480
  * @summary Received more manifests than expected
1480
1481
  * @category OpenSourceEcosystems
1481
1482
  * @param {string} details the specific details that causes this error
1482
- * @param {string} classification the error classification determining if the error is user-actionable or not
1483
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1483
1484
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1484
1485
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1485
1486
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1492,7 +1493,7 @@ class TooManyManifestFilesError extends problem_error_1.ProblemError {
1492
1493
  status: 422,
1493
1494
  errorCode: 'SNYK-OS-PIP-0002',
1494
1495
  level: 'error',
1495
- classification: 'UNSUPPORTED',
1496
+ classification: types_1.Classification.UNSUPPORTED,
1496
1497
  instance,
1497
1498
  }, details, Object.assign({ links: [] }, additionalData), cause);
1498
1499
  this.name = this.constructor.name;
@@ -1506,7 +1507,7 @@ exports.TooManyManifestFilesError = TooManyManifestFilesError;
1506
1507
  * @summary Failed to apply dependency updates
1507
1508
  * @category OpenSourceEcosystems
1508
1509
  * @param {string} details the specific details that causes this error
1509
- * @param {string} classification the error classification determining if the error is user-actionable or not
1510
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1510
1511
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1511
1512
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1512
1513
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1519,11 +1520,38 @@ class FailedToApplyDependencyUpdatesError extends problem_error_1.ProblemError {
1519
1520
  status: 422,
1520
1521
  errorCode: 'SNYK-OS-PIP-0003',
1521
1522
  level: 'error',
1522
- classification: 'UNEXPECTED',
1523
+ classification: types_1.Classification.UNEXPECTED,
1523
1524
  instance,
1524
1525
  }, details, Object.assign({ links: [] }, additionalData), cause);
1525
1526
  this.name = this.constructor.name;
1526
1527
  }
1527
1528
  }
1528
1529
  exports.FailedToApplyDependencyUpdatesError = FailedToApplyDependencyUpdatesError;
1530
+ /**
1531
+ * @class
1532
+ * @name NoMatchingDistributionError
1533
+ * @description One or more of the packages require a different Python version.
1534
+ * @summary No matching distribution found for one or more of the packages
1535
+ * @category OpenSourceEcosystems
1536
+ * @param {string} details the specific details that causes this error
1537
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1538
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1539
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1540
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1541
+ */
1542
+ class NoMatchingDistributionError extends problem_error_1.ProblemError {
1543
+ constructor(details, additionalData, cause, instance) {
1544
+ super({
1545
+ title: 'No matching distribution found for one or more of the packages',
1546
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-pip-0004',
1547
+ status: 422,
1548
+ errorCode: 'SNYK-OS-PIP-0004',
1549
+ level: 'error',
1550
+ classification: types_1.Classification.UNSUPPORTED,
1551
+ instance,
1552
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1553
+ this.name = this.constructor.name;
1554
+ }
1555
+ }
1556
+ exports.NoMatchingDistributionError = NoMatchingDistributionError;
1529
1557
  //# sourceMappingURL=OpenSourceEcosystems-error-catalog.js.map