@snyk/error-catalog-nodejs-public 5.0.0 → 5.0.2

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 (36) hide show
  1. package/package.json +1 -1
  2. package/src/catalogs/Fix-error-catalog.d.ts +10 -0
  3. package/src/catalogs/Fix-error-catalog.js +21 -0
  4. package/src/catalogs/Fix-error-catalog.js.map +1 -1
  5. package/src/catalogs/IsolatedBuilds-error-catalog.d.ts +3 -0
  6. package/src/catalogs/IsolatedBuilds-error-catalog.js +7 -0
  7. package/src/catalogs/IsolatedBuilds-error-catalog.js.map +1 -1
  8. package/src/catalogs/OpenAPI-error-catalog.d.ts +8 -0
  9. package/src/catalogs/OpenAPI-error-catalog.js +17 -0
  10. package/src/catalogs/OpenAPI-error-catalog.js.map +1 -1
  11. package/src/catalogs/OpenSourceEcosystems-error-catalog.d.ts +52 -0
  12. package/src/catalogs/OpenSourceEcosystems-error-catalog.js +105 -0
  13. package/src/catalogs/OpenSourceEcosystems-error-catalog.js.map +1 -1
  14. package/src/catalogs/OpenSourceProjectIssues-error-catalog.d.ts +5 -0
  15. package/src/catalogs/OpenSourceProjectIssues-error-catalog.js +11 -0
  16. package/src/catalogs/OpenSourceProjectIssues-error-catalog.js.map +1 -1
  17. package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.d.ts +5 -0
  18. package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js +11 -0
  19. package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js.map +1 -1
  20. package/src/catalogs/OpenSourceUnmanaged-error-catalog.d.ts +2 -0
  21. package/src/catalogs/OpenSourceUnmanaged-error-catalog.js +5 -0
  22. package/src/catalogs/OpenSourceUnmanaged-error-catalog.js.map +1 -1
  23. package/src/catalogs/PurlVulnerabilityFetching-error-catalog.d.ts +20 -0
  24. package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js +41 -0
  25. package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js.map +1 -1
  26. package/src/catalogs/SbomExport-error-catalog.d.ts +9 -0
  27. package/src/catalogs/SbomExport-error-catalog.js +19 -0
  28. package/src/catalogs/SbomExport-error-catalog.js.map +1 -1
  29. package/src/catalogs/Snyk-error-catalog.d.ts +6 -0
  30. package/src/catalogs/Snyk-error-catalog.js +13 -0
  31. package/src/catalogs/Snyk-error-catalog.js.map +1 -1
  32. package/src/problem-error.js +2 -1
  33. package/src/problem-error.js.map +1 -1
  34. package/src/types.d.ts +9 -1
  35. package/src/types.js +7 -1
  36. package/src/types.js.map +1 -1
@@ -17,6 +17,7 @@
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
19
  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,6 +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
29
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
28
30
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
29
31
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
30
32
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -37,6 +39,7 @@ class UnparseableManifestError extends problem_error_1.ProblemError {
37
39
  status: 400,
38
40
  errorCode: 'SNYK-OS-0001',
39
41
  level: 'error',
42
+ classification: types_1.Classification.ACTIONABLE,
40
43
  instance,
41
44
  }, details, Object.assign({ links: [] }, additionalData), cause);
42
45
  this.name = this.constructor.name;
@@ -50,6 +53,7 @@ exports.UnparseableManifestError = UnparseableManifestError;
50
53
  * @summary Unable to parse lock file
51
54
  * @category OpenSourceEcosystems
52
55
  * @param {string} details the specific details that causes this error
56
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
53
57
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
54
58
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
55
59
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -62,6 +66,7 @@ class UnparseableLockFileError extends problem_error_1.ProblemError {
62
66
  status: 400,
63
67
  errorCode: 'SNYK-OS-0002',
64
68
  level: 'error',
69
+ classification: types_1.Classification.ACTIONABLE,
65
70
  instance,
66
71
  }, details, Object.assign({ links: [] }, additionalData), cause);
67
72
  this.name = this.constructor.name;
@@ -78,6 +83,7 @@ exports.UnparseableLockFileError = UnparseableLockFileError;
78
83
  * @summary Unknown dependency version
79
84
  * @category OpenSourceEcosystems
80
85
  * @param {string} details the specific details that causes this error
86
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
81
87
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
82
88
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
83
89
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -90,6 +96,7 @@ class UnknownDependencyVersionError extends problem_error_1.ProblemError {
90
96
  status: 404,
91
97
  errorCode: 'SNYK-OS-0003',
92
98
  level: 'warn',
99
+ classification: types_1.Classification.ACTIONABLE,
93
100
  instance,
94
101
  }, details, Object.assign({ links: [
95
102
  'https://support.snyk.io/hc/en-us/articles/360001373178-Could-not-determine-version-for-dependencies',
@@ -105,6 +112,7 @@ exports.UnknownDependencyVersionError = UnknownDependencyVersionError;
105
112
  * @summary Missing required request header
106
113
  * @category OpenSourceEcosystems
107
114
  * @param {string} details the specific details that causes this error
115
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
108
116
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
109
117
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
110
118
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -117,6 +125,7 @@ class MissingHeaderError extends problem_error_1.ProblemError {
117
125
  status: 422,
118
126
  errorCode: 'SNYK-OS-0004',
119
127
  level: 'error',
128
+ classification: types_1.Classification.ACTIONABLE,
120
129
  instance,
121
130
  }, details, Object.assign({ links: [] }, additionalData), cause);
122
131
  this.name = this.constructor.name;
@@ -130,6 +139,7 @@ exports.MissingHeaderError = MissingHeaderError;
130
139
  * @summary Payload missing required elements
131
140
  * @category OpenSourceEcosystems
132
141
  * @param {string} details the specific details that causes this error
142
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
133
143
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
134
144
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
135
145
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -142,6 +152,7 @@ class MissingPayloadError extends problem_error_1.ProblemError {
142
152
  status: 422,
143
153
  errorCode: 'SNYK-OS-0005',
144
154
  level: 'error',
155
+ classification: types_1.Classification.ACTIONABLE,
145
156
  instance,
146
157
  }, details, Object.assign({ links: [] }, additionalData), cause);
147
158
  this.name = this.constructor.name;
@@ -155,6 +166,7 @@ exports.MissingPayloadError = MissingPayloadError;
155
166
  * @summary Files cannot be processed
156
167
  * @category OpenSourceEcosystems
157
168
  * @param {string} details the specific details that causes this error
169
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
158
170
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
159
171
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
160
172
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -167,6 +179,7 @@ class UnprocessableFileError extends problem_error_1.ProblemError {
167
179
  status: 422,
168
180
  errorCode: 'SNYK-OS-0006',
169
181
  level: 'error',
182
+ classification: types_1.Classification.ACTIONABLE,
170
183
  instance,
171
184
  }, details, Object.assign({ links: [] }, additionalData), cause);
172
185
  this.name = this.constructor.name;
@@ -180,6 +193,7 @@ exports.UnprocessableFileError = UnprocessableFileError;
180
193
  * @summary Cannot get file from source
181
194
  * @category OpenSourceEcosystems
182
195
  * @param {string} details the specific details that causes this error
196
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
183
197
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
184
198
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
185
199
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -192,6 +206,7 @@ class CannotGetFileFromSourceError extends problem_error_1.ProblemError {
192
206
  status: 500,
193
207
  errorCode: 'SNYK-OS-0007',
194
208
  level: 'error',
209
+ classification: types_1.Classification.UNEXPECTED,
195
210
  instance,
196
211
  }, details, Object.assign({ links: [] }, additionalData), cause);
197
212
  this.name = this.constructor.name;
@@ -205,6 +220,7 @@ exports.CannotGetFileFromSourceError = CannotGetFileFromSourceError;
205
220
  * @summary Missing environment variable
206
221
  * @category OpenSourceEcosystems
207
222
  * @param {string} details the specific details that causes this error
223
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
208
224
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
209
225
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
210
226
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -217,6 +233,7 @@ class MissingEnvironmentVariableError extends problem_error_1.ProblemError {
217
233
  status: 500,
218
234
  errorCode: 'SNYK-OS-0008',
219
235
  level: 'error',
236
+ classification: types_1.Classification.UNEXPECTED,
220
237
  instance,
221
238
  }, details, Object.assign({ links: [] }, additionalData), cause);
222
239
  this.name = this.constructor.name;
@@ -233,6 +250,7 @@ exports.MissingEnvironmentVariableError = MissingEnvironmentVariableError;
233
250
  * @summary Unsupported manifest file type for remediation
234
251
  * @category OpenSourceEcosystems
235
252
  * @param {string} details the specific details that causes this error
253
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
236
254
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
237
255
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
238
256
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -245,6 +263,7 @@ class UnsupportedManifestFileError extends problem_error_1.ProblemError {
245
263
  status: 400,
246
264
  errorCode: 'SNYK-OS-DOTNET-0001',
247
265
  level: 'error',
266
+ classification: types_1.Classification.UNSUPPORTED,
248
267
  instance,
249
268
  }, details, Object.assign({ links: [
250
269
  'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/.net',
@@ -260,6 +279,7 @@ exports.UnsupportedManifestFileError = UnsupportedManifestFileError;
260
279
  * @summary Target framework not supported
261
280
  * @category OpenSourceEcosystems
262
281
  * @param {string} details the specific details that causes this error
282
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
263
283
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
264
284
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
265
285
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -272,6 +292,7 @@ class UnsupportedTargetFrameworkError extends problem_error_1.ProblemError {
272
292
  status: 422,
273
293
  errorCode: 'SNYK-OS-DOTNET-0002',
274
294
  level: 'error',
295
+ classification: types_1.Classification.UNSUPPORTED,
275
296
  instance,
276
297
  }, details, Object.assign({ links: [] }, additionalData), cause);
277
298
  this.name = this.constructor.name;
@@ -303,6 +324,7 @@ exports.UnsupportedTargetFrameworkError = UnsupportedTargetFrameworkError;
303
324
  * @summary Your C# code is missing a static Main function
304
325
  * @category OpenSourceEcosystems
305
326
  * @param {string} details the specific details that causes this error
327
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
306
328
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
307
329
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
308
330
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -315,6 +337,7 @@ class MissingStaticMainFunctionError extends problem_error_1.ProblemError {
315
337
  status: 422,
316
338
  errorCode: 'SNYK-OS-DOTNET-0003',
317
339
  level: 'error',
340
+ classification: types_1.Classification.ACTIONABLE,
318
341
  instance,
319
342
  }, details, Object.assign({ links: [
320
343
  'https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs5001',
@@ -343,6 +366,7 @@ exports.MissingStaticMainFunctionError = MissingStaticMainFunctionError;
343
366
  * @summary The dotnet CLI is unable to generate a self-contained binary
344
367
  * @category OpenSourceEcosystems
345
368
  * @param {string} details the specific details that causes this error
369
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
346
370
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
347
371
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
348
372
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -355,6 +379,7 @@ class PublishFailedError extends problem_error_1.ProblemError {
355
379
  status: 422,
356
380
  errorCode: 'SNYK-OS-DOTNET-0004',
357
381
  level: 'error',
382
+ classification: types_1.Classification.ACTIONABLE,
358
383
  instance,
359
384
  }, details, Object.assign({ links: [
360
385
  'https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/',
@@ -375,6 +400,7 @@ exports.PublishFailedError = PublishFailedError;
375
400
  * @summary Failed to access private module
376
401
  * @category OpenSourceEcosystems
377
402
  * @param {string} details the specific details that causes this error
403
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
378
404
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
379
405
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
380
406
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -387,6 +413,7 @@ class PrivateModuleError extends problem_error_1.ProblemError {
387
413
  status: 400,
388
414
  errorCode: 'SNYK-OS-GO-0001',
389
415
  level: 'error',
416
+ classification: types_1.Classification.ACTIONABLE,
390
417
  instance,
391
418
  }, details, Object.assign({ links: [
392
419
  'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go',
@@ -405,6 +432,7 @@ exports.PrivateModuleError = PrivateModuleError;
405
432
  * @summary Go mod file not found
406
433
  * @category OpenSourceEcosystems
407
434
  * @param {string} details the specific details that causes this error
435
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
408
436
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
409
437
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
410
438
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -417,6 +445,7 @@ class GoModFileMissingError extends problem_error_1.ProblemError {
417
445
  status: 400,
418
446
  errorCode: 'SNYK-OS-GO-0002',
419
447
  level: 'error',
448
+ classification: types_1.Classification.ACTIONABLE,
420
449
  instance,
421
450
  }, details, Object.assign({ links: [
422
451
  'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go',
@@ -440,6 +469,7 @@ exports.GoModFileMissingError = GoModFileMissingError;
440
469
  * @summary OAuth re-authorization required
441
470
  * @category OpenSourceEcosystems
442
471
  * @param {string} details the specific details that causes this error
472
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
443
473
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
444
474
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
445
475
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -452,6 +482,7 @@ class SsoReAuthRequiredError extends problem_error_1.ProblemError {
452
482
  status: 422,
453
483
  errorCode: 'SNYK-OS-GO-0003',
454
484
  level: 'error',
485
+ classification: types_1.Classification.ACTIONABLE,
455
486
  instance,
456
487
  }, details, Object.assign({ links: [
457
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',
@@ -478,6 +509,7 @@ exports.SsoReAuthRequiredError = SsoReAuthRequiredError;
478
509
  * @summary Your project repository is missing required files
479
510
  * @category OpenSourceEcosystems
480
511
  * @param {string} details the specific details that causes this error
512
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
481
513
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
482
514
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
483
515
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -490,6 +522,7 @@ class IncompleteProjectError extends problem_error_1.ProblemError {
490
522
  status: 422,
491
523
  errorCode: 'SNYK-OS-GO-0004',
492
524
  level: 'error',
525
+ classification: types_1.Classification.ACTIONABLE,
493
526
  instance,
494
527
  }, details, Object.assign({ links: [
495
528
  'https://docs.snyk.io/snyk-cli',
@@ -520,6 +553,7 @@ exports.IncompleteProjectError = IncompleteProjectError;
520
553
  * @summary Your project repository has inconsistent vendoring information
521
554
  * @category OpenSourceEcosystems
522
555
  * @param {string} details the specific details that causes this error
556
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
523
557
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
524
558
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
525
559
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -532,6 +566,7 @@ class InconsistentVendoringError extends problem_error_1.ProblemError {
532
566
  status: 422,
533
567
  errorCode: 'SNYK-OS-GO-0005',
534
568
  level: 'error',
569
+ classification: types_1.Classification.ACTIONABLE,
535
570
  instance,
536
571
  }, details, Object.assign({ links: [
537
572
  'https://go.dev/ref/mod#go-mod-vendor',
@@ -549,6 +584,7 @@ exports.InconsistentVendoringError = InconsistentVendoringError;
549
584
  * @summary Unsupported external file generation
550
585
  * @category OpenSourceEcosystems
551
586
  * @param {string} details the specific details that causes this error
587
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
552
588
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
553
589
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
554
590
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -561,6 +597,7 @@ class UnsupportedExternalFileGenerationSCMError extends problem_error_1.ProblemE
561
597
  status: 422,
562
598
  errorCode: 'SNYK-OS-GO-0006',
563
599
  level: 'error',
600
+ classification: types_1.Classification.UNSUPPORTED,
564
601
  instance,
565
602
  }, details, Object.assign({ links: [] }, additionalData), cause);
566
603
  this.name = this.constructor.name;
@@ -574,6 +611,7 @@ exports.UnsupportedExternalFileGenerationSCMError = UnsupportedExternalFileGener
574
611
  * @summary Missing property
575
612
  * @category OpenSourceEcosystems
576
613
  * @param {string} details the specific details that causes this error
614
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
577
615
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
578
616
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
579
617
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -586,6 +624,7 @@ class MissingRequirementFromPomError extends problem_error_1.ProblemError {
586
624
  status: 422,
587
625
  errorCode: 'SNYK-OS-MAVEN-0001',
588
626
  level: 'error',
627
+ classification: types_1.Classification.ACTIONABLE,
589
628
  instance,
590
629
  }, details, Object.assign({ links: [] }, additionalData), cause);
591
630
  this.name = this.constructor.name;
@@ -599,6 +638,7 @@ exports.MissingRequirementFromPomError = MissingRequirementFromPomError;
599
638
  * @summary Unable to resolve value for property
600
639
  * @category OpenSourceEcosystems
601
640
  * @param {string} details the specific details that causes this error
641
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
602
642
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
603
643
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
604
644
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -611,6 +651,7 @@ class UnableToResolveValueForPropertyError extends problem_error_1.ProblemError
611
651
  status: 422,
612
652
  errorCode: 'SNYK-OS-MAVEN-0002',
613
653
  level: 'error',
654
+ classification: types_1.Classification.ACTIONABLE,
614
655
  instance,
615
656
  }, details, Object.assign({ links: [] }, additionalData), cause);
616
657
  this.name = this.constructor.name;
@@ -624,6 +665,7 @@ exports.UnableToResolveValueForPropertyError = UnableToResolveValueForPropertyEr
624
665
  * @summary Unable to resolve version for property
625
666
  * @category OpenSourceEcosystems
626
667
  * @param {string} details the specific details that causes this error
668
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
627
669
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
628
670
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
629
671
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -636,6 +678,7 @@ class UnableToResolveVersionForPropertyError extends problem_error_1.ProblemErro
636
678
  status: 500,
637
679
  errorCode: 'SNYK-OS-MAVEN-0003',
638
680
  level: 'error',
681
+ classification: types_1.Classification.UNEXPECTED,
639
682
  instance,
640
683
  }, details, Object.assign({ links: [] }, additionalData), cause);
641
684
  this.name = this.constructor.name;
@@ -649,6 +692,7 @@ exports.UnableToResolveVersionForPropertyError = UnableToResolveVersionForProper
649
692
  * @summary Cyclic property detected in POM file
650
693
  * @category OpenSourceEcosystems
651
694
  * @param {string} details the specific details that causes this error
695
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
652
696
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
653
697
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
654
698
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -661,6 +705,7 @@ class CyclicPropertyDetectedInPomFileError extends problem_error_1.ProblemError
661
705
  status: 422,
662
706
  errorCode: 'SNYK-OS-MAVEN-0004',
663
707
  level: 'error',
708
+ classification: types_1.Classification.ACTIONABLE,
664
709
  instance,
665
710
  }, details, Object.assign({ links: [] }, additionalData), cause);
666
711
  this.name = this.constructor.name;
@@ -674,6 +719,7 @@ exports.CyclicPropertyDetectedInPomFileError = CyclicPropertyDetectedInPomFileEr
674
719
  * @summary Error parsing the XML file
675
720
  * @category OpenSourceEcosystems
676
721
  * @param {string} details the specific details that causes this error
722
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
677
723
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
678
724
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
679
725
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -686,6 +732,7 @@ class UnableToParseXMLError extends problem_error_1.ProblemError {
686
732
  status: 422,
687
733
  errorCode: 'SNYK-OS-MAVEN-0005',
688
734
  level: 'error',
735
+ classification: types_1.Classification.ACTIONABLE,
689
736
  instance,
690
737
  }, details, Object.assign({ links: [] }, additionalData), cause);
691
738
  this.name = this.constructor.name;
@@ -699,6 +746,7 @@ exports.UnableToParseXMLError = UnableToParseXMLError;
699
746
  * @summary Invalid coordinates provided
700
747
  * @category OpenSourceEcosystems
701
748
  * @param {string} details the specific details that causes this error
749
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
702
750
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
703
751
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
704
752
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -711,6 +759,7 @@ class InvalidCoordinatesError extends problem_error_1.ProblemError {
711
759
  status: 422,
712
760
  errorCode: 'SNYK-OS-MAVEN-0006',
713
761
  level: 'error',
762
+ classification: types_1.Classification.ACTIONABLE,
714
763
  instance,
715
764
  }, details, Object.assign({ links: [] }, additionalData), cause);
716
765
  this.name = this.constructor.name;
@@ -724,6 +773,7 @@ exports.InvalidCoordinatesError = InvalidCoordinatesError;
724
773
  * @summary Skipping group
725
774
  * @category OpenSourceEcosystems
726
775
  * @param {string} details the specific details that causes this error
776
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
727
777
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
728
778
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
729
779
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -736,6 +786,7 @@ class SkippedGroupError extends problem_error_1.ProblemError {
736
786
  status: 422,
737
787
  errorCode: 'SNYK-OS-MAVEN-0007',
738
788
  level: 'error',
789
+ classification: types_1.Classification.ACTIONABLE,
739
790
  instance,
740
791
  }, details, Object.assign({ links: [] }, additionalData), cause);
741
792
  this.name = this.constructor.name;
@@ -749,6 +800,7 @@ exports.SkippedGroupError = SkippedGroupError;
749
800
  * @summary Pom file not found
750
801
  * @category OpenSourceEcosystems
751
802
  * @param {string} details the specific details that causes this error
803
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
752
804
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
753
805
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
754
806
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -761,6 +813,7 @@ class PomFileNotFoundError extends problem_error_1.ProblemError {
761
813
  status: 422,
762
814
  errorCode: 'SNYK-OS-MAVEN-0008',
763
815
  level: 'error',
816
+ classification: types_1.Classification.ACTIONABLE,
764
817
  instance,
765
818
  }, details, Object.assign({ links: [] }, additionalData), cause);
766
819
  this.name = this.constructor.name;
@@ -774,6 +827,7 @@ exports.PomFileNotFoundError = PomFileNotFoundError;
774
827
  * @summary Missing project from POM
775
828
  * @category OpenSourceEcosystems
776
829
  * @param {string} details the specific details that causes this error
830
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
777
831
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
778
832
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
779
833
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -786,6 +840,7 @@ class MissingProjectFromPomError extends problem_error_1.ProblemError {
786
840
  status: 422,
787
841
  errorCode: 'SNYK-OS-MAVEN-0009',
788
842
  level: 'error',
843
+ classification: types_1.Classification.ACTIONABLE,
789
844
  instance,
790
845
  }, details, Object.assign({ links: [] }, additionalData), cause);
791
846
  this.name = this.constructor.name;
@@ -799,6 +854,7 @@ exports.MissingProjectFromPomError = MissingProjectFromPomError;
799
854
  * @summary Cannot resolve the target POM from the input XML
800
855
  * @category OpenSourceEcosystems
801
856
  * @param {string} details the specific details that causes this error
857
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
802
858
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
803
859
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
804
860
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -811,6 +867,7 @@ class CannotResolveTargetPomFromXmlError extends problem_error_1.ProblemError {
811
867
  status: 422,
812
868
  errorCode: 'SNYK-OS-MAVEN-0010',
813
869
  level: 'error',
870
+ classification: types_1.Classification.ACTIONABLE,
814
871
  instance,
815
872
  }, details, Object.assign({ links: [] }, additionalData), cause);
816
873
  this.name = this.constructor.name;
@@ -824,6 +881,7 @@ exports.CannotResolveTargetPomFromXmlError = CannotResolveTargetPomFromXmlError;
824
881
  * @summary Cannot resolve the target POM from the repository
825
882
  * @category OpenSourceEcosystems
826
883
  * @param {string} details the specific details that causes this error
884
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
827
885
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
828
886
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
829
887
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -836,6 +894,7 @@ class CannotResolveTargetPomFromRepoError extends problem_error_1.ProblemError {
836
894
  status: 404,
837
895
  errorCode: 'SNYK-OS-MAVEN-0011',
838
896
  level: 'error',
897
+ classification: types_1.Classification.ACTIONABLE,
839
898
  instance,
840
899
  }, details, Object.assign({ links: [] }, additionalData), cause);
841
900
  this.name = this.constructor.name;
@@ -849,6 +908,7 @@ exports.CannotResolveTargetPomFromRepoError = CannotResolveTargetPomFromRepoErro
849
908
  * @summary Cannot get the build file repository
850
909
  * @category OpenSourceEcosystems
851
910
  * @param {string} details the specific details that causes this error
911
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
852
912
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
853
913
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
854
914
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -861,6 +921,7 @@ class CannotGetBuildFileFromRepoError extends problem_error_1.ProblemError {
861
921
  status: 404,
862
922
  errorCode: 'SNYK-OS-MAVEN-0012',
863
923
  level: 'error',
924
+ classification: types_1.Classification.ACTIONABLE,
864
925
  instance,
865
926
  }, details, Object.assign({ links: [] }, additionalData), cause);
866
927
  this.name = this.constructor.name;
@@ -874,6 +935,7 @@ exports.CannotGetBuildFileFromRepoError = CannotGetBuildFileFromRepoError;
874
935
  * @summary Unable to create hosted git info
875
936
  * @category OpenSourceEcosystems
876
937
  * @param {string} details the specific details that causes this error
938
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
877
939
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
878
940
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
879
941
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -886,6 +948,7 @@ class CannotCreateGitHostError extends problem_error_1.ProblemError {
886
948
  status: 500,
887
949
  errorCode: 'SNYK-OS-MAVEN-0013',
888
950
  level: 'error',
951
+ classification: types_1.Classification.UNEXPECTED,
889
952
  instance,
890
953
  }, details, Object.assign({ links: [] }, additionalData), cause);
891
954
  this.name = this.constructor.name;
@@ -899,6 +962,7 @@ exports.CannotCreateGitHostError = CannotCreateGitHostError;
899
962
  * @summary No released version for versions range
900
963
  * @category OpenSourceEcosystems
901
964
  * @param {string} details the specific details that causes this error
965
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
902
966
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
903
967
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
904
968
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -911,6 +975,7 @@ class NoReleasedVersionForVersionsRangeError extends problem_error_1.ProblemErro
911
975
  status: 422,
912
976
  errorCode: 'SNYK-OS-MAVEN-0014',
913
977
  level: 'error',
978
+ classification: types_1.Classification.ACTIONABLE,
914
979
  instance,
915
980
  }, details, Object.assign({ links: [] }, additionalData), cause);
916
981
  this.name = this.constructor.name;
@@ -924,6 +989,7 @@ exports.NoReleasedVersionForVersionsRangeError = NoReleasedVersionForVersionsRan
924
989
  * @summary Source is not supported
925
990
  * @category OpenSourceEcosystems
926
991
  * @param {string} details the specific details that causes this error
992
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
927
993
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
928
994
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
929
995
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -936,6 +1002,7 @@ class SourceNotSupportedError extends problem_error_1.ProblemError {
936
1002
  status: 422,
937
1003
  errorCode: 'SNYK-OS-MAVEN-0015',
938
1004
  level: 'error',
1005
+ classification: types_1.Classification.UNSUPPORTED,
939
1006
  instance,
940
1007
  }, details, Object.assign({ links: [] }, additionalData), cause);
941
1008
  this.name = this.constructor.name;
@@ -949,6 +1016,7 @@ exports.SourceNotSupportedError = SourceNotSupportedError;
949
1016
  * @summary Timeout when processing the dependency tree
950
1017
  * @category OpenSourceEcosystems
951
1018
  * @param {string} details the specific details that causes this error
1019
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
952
1020
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
953
1021
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
954
1022
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -961,6 +1029,7 @@ class TimeoutWhenProcessingTheDepTreeError extends problem_error_1.ProblemError
961
1029
  status: 422,
962
1030
  errorCode: 'SNYK-OS-MAVEN-0016',
963
1031
  level: 'error',
1032
+ classification: types_1.Classification.UNEXPECTED,
964
1033
  instance,
965
1034
  }, details, Object.assign({ links: [] }, additionalData), cause);
966
1035
  this.name = this.constructor.name;
@@ -974,6 +1043,7 @@ exports.TimeoutWhenProcessingTheDepTreeError = TimeoutWhenProcessingTheDepTreeEr
974
1043
  * @summary No repository found for A NPM package
975
1044
  * @category OpenSourceEcosystems
976
1045
  * @param {string} details the specific details that causes this error
1046
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
977
1047
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
978
1048
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
979
1049
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -986,6 +1056,7 @@ class NoRepoFoundForTheNPMPackageError extends problem_error_1.ProblemError {
986
1056
  status: 422,
987
1057
  errorCode: 'SNYK-OS-NODEJS-0001',
988
1058
  level: 'error',
1059
+ classification: types_1.Classification.ACTIONABLE,
989
1060
  instance,
990
1061
  }, details, Object.assign({ links: [] }, additionalData), cause);
991
1062
  this.name = this.constructor.name;
@@ -999,6 +1070,7 @@ exports.NoRepoFoundForTheNPMPackageError = NoRepoFoundForTheNPMPackageError;
999
1070
  * @summary Could not parse NPM registry URL
1000
1071
  * @category OpenSourceEcosystems
1001
1072
  * @param {string} details the specific details that causes this error
1073
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1002
1074
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1003
1075
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1004
1076
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1011,6 +1083,7 @@ class CouldNotParseNPMRegistryURLError extends problem_error_1.ProblemError {
1011
1083
  status: 422,
1012
1084
  errorCode: 'SNYK-OS-NODEJS-0002',
1013
1085
  level: 'error',
1086
+ classification: types_1.Classification.ACTIONABLE,
1014
1087
  instance,
1015
1088
  }, details, Object.assign({ links: [] }, additionalData), cause);
1016
1089
  this.name = this.constructor.name;
@@ -1024,6 +1097,7 @@ exports.CouldNotParseNPMRegistryURLError = CouldNotParseNPMRegistryURLError;
1024
1097
  * @summary Could not find a broker resolved URL
1025
1098
  * @category OpenSourceEcosystems
1026
1099
  * @param {string} details the specific details that causes this error
1100
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1027
1101
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1028
1102
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1029
1103
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1036,6 +1110,7 @@ class CouldNotFindBrokerURLError extends problem_error_1.ProblemError {
1036
1110
  status: 422,
1037
1111
  errorCode: 'SNYK-OS-NODEJS-0003',
1038
1112
  level: 'error',
1113
+ classification: types_1.Classification.ACTIONABLE,
1039
1114
  instance,
1040
1115
  }, details, Object.assign({ links: [] }, additionalData), cause);
1041
1116
  this.name = this.constructor.name;
@@ -1049,6 +1124,7 @@ exports.CouldNotFindBrokerURLError = CouldNotFindBrokerURLError;
1049
1124
  * @summary Unable to replace broker URL
1050
1125
  * @category OpenSourceEcosystems
1051
1126
  * @param {string} details the specific details that causes this error
1127
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1052
1128
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1053
1129
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1054
1130
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1061,6 +1137,7 @@ class UnableToReplaceBrokerURLError extends problem_error_1.ProblemError {
1061
1137
  status: 422,
1062
1138
  errorCode: 'SNYK-OS-NODEJS-0004',
1063
1139
  level: 'error',
1140
+ classification: types_1.Classification.UNEXPECTED,
1064
1141
  instance,
1065
1142
  }, details, Object.assign({ links: [] }, additionalData), cause);
1066
1143
  this.name = this.constructor.name;
@@ -1074,6 +1151,7 @@ exports.UnableToReplaceBrokerURLError = UnableToReplaceBrokerURLError;
1074
1151
  * @summary Bad NPM version
1075
1152
  * @category OpenSourceEcosystems
1076
1153
  * @param {string} details the specific details that causes this error
1154
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1077
1155
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1078
1156
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1079
1157
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1086,6 +1164,7 @@ class BadNPMVersionError extends problem_error_1.ProblemError {
1086
1164
  status: 422,
1087
1165
  errorCode: 'SNYK-OS-NODEJS-0005',
1088
1166
  level: 'error',
1167
+ classification: types_1.Classification.UNSUPPORTED,
1089
1168
  instance,
1090
1169
  }, details, Object.assign({ links: [] }, additionalData), cause);
1091
1170
  this.name = this.constructor.name;
@@ -1099,6 +1178,7 @@ exports.BadNPMVersionError = BadNPMVersionError;
1099
1178
  * @summary Unknown blob encoding on Github
1100
1179
  * @category OpenSourceEcosystems
1101
1180
  * @param {string} details the specific details that causes this error
1181
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1102
1182
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1103
1183
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1104
1184
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1111,6 +1191,7 @@ class UnknownBlobEncodingOnGithubError extends problem_error_1.ProblemError {
1111
1191
  status: 422,
1112
1192
  errorCode: 'SNYK-OS-NODEJS-0006',
1113
1193
  level: 'error',
1194
+ classification: types_1.Classification.UNEXPECTED,
1114
1195
  instance,
1115
1196
  }, details, Object.assign({ links: [] }, additionalData), cause);
1116
1197
  this.name = this.constructor.name;
@@ -1124,6 +1205,7 @@ exports.UnknownBlobEncodingOnGithubError = UnknownBlobEncodingOnGithubError;
1124
1205
  * @summary No result from forked process
1125
1206
  * @category OpenSourceEcosystems
1126
1207
  * @param {string} details the specific details that causes this error
1208
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1127
1209
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1128
1210
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1129
1211
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1136,6 +1218,7 @@ class NoResultsFromForkerProcessesError extends problem_error_1.ProblemError {
1136
1218
  status: 500,
1137
1219
  errorCode: 'SNYK-OS-NODEJS-0007',
1138
1220
  level: 'error',
1221
+ classification: types_1.Classification.UNEXPECTED,
1139
1222
  instance,
1140
1223
  }, details, Object.assign({ links: [] }, additionalData), cause);
1141
1224
  this.name = this.constructor.name;
@@ -1149,6 +1232,7 @@ exports.NoResultsFromForkerProcessesError = NoResultsFromForkerProcessesError;
1149
1232
  * @summary Child Process Execution Error
1150
1233
  * @category OpenSourceEcosystems
1151
1234
  * @param {string} details the specific details that causes this error
1235
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1152
1236
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1153
1237
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1154
1238
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1161,6 +1245,7 @@ class ChildProcessExecutionError extends problem_error_1.ProblemError {
1161
1245
  status: 500,
1162
1246
  errorCode: 'SNYK-OS-NODEJS-0008',
1163
1247
  level: 'error',
1248
+ classification: types_1.Classification.UNEXPECTED,
1164
1249
  instance,
1165
1250
  }, details, Object.assign({ links: [] }, additionalData), cause);
1166
1251
  this.name = this.constructor.name;
@@ -1174,6 +1259,7 @@ exports.ChildProcessExecutionError = ChildProcessExecutionError;
1174
1259
  * @summary No valid package upgrades
1175
1260
  * @category OpenSourceEcosystems
1176
1261
  * @param {string} details the specific details that causes this error
1262
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1177
1263
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1178
1264
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1179
1265
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1186,6 +1272,7 @@ class NoValidPackageUpgradesError extends problem_error_1.ProblemError {
1186
1272
  status: 422,
1187
1273
  errorCode: 'SNYK-OS-NODEJS-0009',
1188
1274
  level: 'error',
1275
+ classification: types_1.Classification.ACTIONABLE,
1189
1276
  instance,
1190
1277
  }, details, Object.assign({ links: [] }, additionalData), cause);
1191
1278
  this.name = this.constructor.name;
@@ -1199,6 +1286,7 @@ exports.NoValidPackageUpgradesError = NoValidPackageUpgradesError;
1199
1286
  * @summary No dependency updates
1200
1287
  * @category OpenSourceEcosystems
1201
1288
  * @param {string} details the specific details that causes this error
1289
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1202
1290
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1203
1291
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1204
1292
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1211,6 +1299,7 @@ class NoDependencyUpdatesError extends problem_error_1.ProblemError {
1211
1299
  status: 422,
1212
1300
  errorCode: 'SNYK-OS-NODEJS-0010',
1213
1301
  level: 'error',
1302
+ classification: types_1.Classification.ACTIONABLE,
1214
1303
  instance,
1215
1304
  }, details, Object.assign({ links: [] }, additionalData), cause);
1216
1305
  this.name = this.constructor.name;
@@ -1224,6 +1313,7 @@ exports.NoDependencyUpdatesError = NoDependencyUpdatesError;
1224
1313
  * @summary Could not parse JSON file
1225
1314
  * @category OpenSourceEcosystems
1226
1315
  * @param {string} details the specific details that causes this error
1316
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1227
1317
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1228
1318
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1229
1319
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1236,6 +1326,7 @@ class CouldNotParseJSONFileError extends problem_error_1.ProblemError {
1236
1326
  status: 422,
1237
1327
  errorCode: 'SNYK-OS-NODEJS-0011',
1238
1328
  level: 'error',
1329
+ classification: types_1.Classification.ACTIONABLE,
1239
1330
  instance,
1240
1331
  }, details, Object.assign({ links: [] }, additionalData), cause);
1241
1332
  this.name = this.constructor.name;
@@ -1249,6 +1340,7 @@ exports.CouldNotParseJSONFileError = CouldNotParseJSONFileError;
1249
1340
  * @summary Could not Base64 encode
1250
1341
  * @category OpenSourceEcosystems
1251
1342
  * @param {string} details the specific details that causes this error
1343
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1252
1344
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1253
1345
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1254
1346
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1261,6 +1353,7 @@ class Base64EncodeError extends problem_error_1.ProblemError {
1261
1353
  status: 422,
1262
1354
  errorCode: 'SNYK-OS-NODEJS-0012',
1263
1355
  level: 'error',
1356
+ classification: types_1.Classification.UNEXPECTED,
1264
1357
  instance,
1265
1358
  }, details, Object.assign({ links: [] }, additionalData), cause);
1266
1359
  this.name = this.constructor.name;
@@ -1274,6 +1367,7 @@ exports.Base64EncodeError = Base64EncodeError;
1274
1367
  * @summary Could not Base64 decode
1275
1368
  * @category OpenSourceEcosystems
1276
1369
  * @param {string} details the specific details that causes this error
1370
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1277
1371
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1278
1372
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1279
1373
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1286,6 +1380,7 @@ class Base64DecodeError extends problem_error_1.ProblemError {
1286
1380
  status: 422,
1287
1381
  errorCode: 'SNYK-OS-NODEJS-0013',
1288
1382
  level: 'error',
1383
+ classification: types_1.Classification.UNEXPECTED,
1289
1384
  instance,
1290
1385
  }, details, Object.assign({ links: [] }, additionalData), cause);
1291
1386
  this.name = this.constructor.name;
@@ -1299,6 +1394,7 @@ exports.Base64DecodeError = Base64DecodeError;
1299
1394
  * @summary Missing supported file
1300
1395
  * @category OpenSourceEcosystems
1301
1396
  * @param {string} details the specific details that causes this error
1397
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1302
1398
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1303
1399
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1304
1400
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1311,6 +1407,7 @@ class MissingSupportedFileError extends problem_error_1.ProblemError {
1311
1407
  status: 400,
1312
1408
  errorCode: 'SNYK-OS-NODEJS-0014',
1313
1409
  level: 'error',
1410
+ classification: types_1.Classification.ACTIONABLE,
1314
1411
  instance,
1315
1412
  }, details, Object.assign({ links: [] }, additionalData), cause);
1316
1413
  this.name = this.constructor.name;
@@ -1324,6 +1421,7 @@ exports.MissingSupportedFileError = MissingSupportedFileError;
1324
1421
  * @summary Invalid configuration
1325
1422
  * @category OpenSourceEcosystems
1326
1423
  * @param {string} details the specific details that causes this error
1424
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1327
1425
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1328
1426
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1329
1427
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1336,6 +1434,7 @@ class InvalidConfigurationError extends problem_error_1.ProblemError {
1336
1434
  status: 400,
1337
1435
  errorCode: 'SNYK-OS-NODEJS-0015',
1338
1436
  level: 'warn',
1437
+ classification: types_1.Classification.ACTIONABLE,
1339
1438
  instance,
1340
1439
  }, details, Object.assign({ links: [] }, additionalData), cause);
1341
1440
  this.name = this.constructor.name;
@@ -1352,6 +1451,7 @@ exports.InvalidConfigurationError = InvalidConfigurationError;
1352
1451
  * @summary Unsupported manifest file type for remediation
1353
1452
  * @category OpenSourceEcosystems
1354
1453
  * @param {string} details the specific details that causes this error
1454
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1355
1455
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1356
1456
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1357
1457
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1364,6 +1464,7 @@ class UnsupportedRequirementsFileError extends problem_error_1.ProblemError {
1364
1464
  status: 422,
1365
1465
  errorCode: 'SNYK-OS-PIP-0001',
1366
1466
  level: 'error',
1467
+ classification: types_1.Classification.UNSUPPORTED,
1367
1468
  instance,
1368
1469
  }, details, Object.assign({ links: [
1369
1470
  'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/python',
@@ -1379,6 +1480,7 @@ exports.UnsupportedRequirementsFileError = UnsupportedRequirementsFileError;
1379
1480
  * @summary Received more manifests than expected
1380
1481
  * @category OpenSourceEcosystems
1381
1482
  * @param {string} details the specific details that causes this error
1483
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1382
1484
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1383
1485
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1384
1486
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1391,6 +1493,7 @@ class TooManyManifestFilesError extends problem_error_1.ProblemError {
1391
1493
  status: 422,
1392
1494
  errorCode: 'SNYK-OS-PIP-0002',
1393
1495
  level: 'error',
1496
+ classification: types_1.Classification.UNSUPPORTED,
1394
1497
  instance,
1395
1498
  }, details, Object.assign({ links: [] }, additionalData), cause);
1396
1499
  this.name = this.constructor.name;
@@ -1404,6 +1507,7 @@ exports.TooManyManifestFilesError = TooManyManifestFilesError;
1404
1507
  * @summary Failed to apply dependency updates
1405
1508
  * @category OpenSourceEcosystems
1406
1509
  * @param {string} details the specific details that causes this error
1510
+ * @param {Classification} classification the error classification determining if the error is user-actionable or not
1407
1511
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1408
1512
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1409
1513
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
@@ -1416,6 +1520,7 @@ class FailedToApplyDependencyUpdatesError extends problem_error_1.ProblemError {
1416
1520
  status: 422,
1417
1521
  errorCode: 'SNYK-OS-PIP-0003',
1418
1522
  level: 'error',
1523
+ classification: types_1.Classification.UNEXPECTED,
1419
1524
  instance,
1420
1525
  }, details, Object.assign({ links: [] }, additionalData), cause);
1421
1526
  this.name = this.constructor.name;