@snyk/error-catalog-nodejs-public 3.18.6 → 4.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.
@@ -15,39 +15,9 @@
15
15
  */
16
16
  "use strict";
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.UnableToReplaceBrokerURLError = exports.CouldNotFindBrokerURLError = exports.CouldNotParseNPMRegistryURLError = exports.NoRepoFoundForTheNPMPackageError = exports.CannotCreateGitHostError = exports.CannotGetBuildFileFromRepoError = exports.CannotResolveTargetPomFromRepoError = exports.CannotResolveTargetPomFromXmlError = exports.MissingProjectFromPomError = exports.PomFileNotFoundError = exports.SkippedGroupError = exports.InvalidCoordinatesError = exports.UnableToParseXMLError = exports.CyclicPropertyDetectedInPomFileError = exports.UnableToResolveVersionForPropertyError = exports.UnableToResolveValueForPropertyError = exports.MissingRequirementFromPomError = exports.IncompleteProjectError = exports.SsoReAuthRequiredError = exports.GoModFileMissingError = exports.PrivateModuleError = exports.UnsupportedTargetFrameworkError = exports.UnsupportedManifestFileError = exports.InvalidConfigurationError = exports.FailedToRelockError = exports.NoOutputFromIsolatedBuildsError = exports.MissingEnvironmentVariableError = exports.MissingSupportedFileError = exports.Base64DecodeError = exports.Base64EncodeError = exports.CouldNotParseJSONFileError = exports.MissingRequiredRequestHeaderError = exports.NoDependencyUpdatesError = exports.NoValidPackageUpgradesError = exports.ChildProcessExecutionError = exports.NoResultsFromForkerProcessesError = exports.UnknownBlobEncodingOnGithubError = exports.FailedToApplyDependencyUpdatesError = exports.TooManyManifestFilesError = exports.TimeoutWhenProcessingTheDepTreeError = exports.NoReleasedVersionForVersionsRangeError = exports.CannotGetFileFromSourceError = exports.SourceNotSupportedError = exports.UnprocessableFileError = exports.MissingPayloadError = exports.UnknownDependencyVersionError = exports.UnparseableLockFileError = exports.LockFileOutOfSyncError = exports.UnparseableManifestError = exports.UnsupportedEcosystemError = void 0;
19
- exports.UnsupportedRequirementsFileError = exports.BadNPMVersionError = void 0;
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;
20
20
  const problem_error_1 = require("../problem-error");
21
- /**
22
- * @class
23
- * @name UnsupportedEcosystemError
24
- * @description The language or package manager is not supported.
25
- *
26
- * See more:
27
- * - [https://docs.snyk.io/products/snyk-open-source/language-and-package-manager-support](https://docs.snyk.io/products/snyk-open-source/language-and-package-manager-support)
28
- * @summary Unsupported Ecosystem
29
- * @category OpenSourceEcosystems
30
- * @param {string} details the specific details that causes this error
31
- * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
32
- * @param {Error} [cause] the `Error` type that caused this error to be thrown
33
- * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
34
- */
35
- class UnsupportedEcosystemError extends problem_error_1.ProblemError {
36
- constructor(details, additionalData, cause, instance) {
37
- super({
38
- title: 'Unsupported Ecosystem',
39
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0001',
40
- status: 400,
41
- errorCode: 'SNYK-OS-0001',
42
- level: 'error',
43
- instance,
44
- }, details, Object.assign({ links: [
45
- 'https://docs.snyk.io/products/snyk-open-source/language-and-package-manager-support',
46
- ] }, additionalData), cause);
47
- this.name = this.constructor.name;
48
- }
49
- }
50
- exports.UnsupportedEcosystemError = UnsupportedEcosystemError;
51
21
  /**
52
22
  * @class
53
23
  * @name UnparseableManifestError
@@ -63,9 +33,9 @@ class UnparseableManifestError extends problem_error_1.ProblemError {
63
33
  constructor(details, additionalData, cause, instance) {
64
34
  super({
65
35
  title: 'Unable to parse manifest file',
66
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0002',
36
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0001',
67
37
  status: 400,
68
- errorCode: 'SNYK-OS-0002',
38
+ errorCode: 'SNYK-OS-0001',
69
39
  level: 'error',
70
40
  instance,
71
41
  }, details, Object.assign({ links: [] }, additionalData), cause);
@@ -73,31 +43,6 @@ class UnparseableManifestError extends problem_error_1.ProblemError {
73
43
  }
74
44
  }
75
45
  exports.UnparseableManifestError = UnparseableManifestError;
76
- /**
77
- * @class
78
- * @name LockFileOutOfSyncError
79
- * @description Some of the dependencies that are expected to be in the lock file are missing, usually indicating that the lock file is out of sync with the provided manifest file. Re-sync the lock file, then try again.
80
- * @summary Lock file out of sync with manifest file
81
- * @category OpenSourceEcosystems
82
- * @param {string} details the specific details that causes this error
83
- * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
84
- * @param {Error} [cause] the `Error` type that caused this error to be thrown
85
- * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
86
- */
87
- class LockFileOutOfSyncError extends problem_error_1.ProblemError {
88
- constructor(details, additionalData, cause, instance) {
89
- super({
90
- title: 'Lock file out of sync with manifest file',
91
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0003',
92
- status: 400,
93
- errorCode: 'SNYK-OS-0003',
94
- level: 'error',
95
- instance,
96
- }, details, Object.assign({ links: [] }, additionalData), cause);
97
- this.name = this.constructor.name;
98
- }
99
- }
100
- exports.LockFileOutOfSyncError = LockFileOutOfSyncError;
101
46
  /**
102
47
  * @class
103
48
  * @name UnparseableLockFileError
@@ -113,9 +58,9 @@ class UnparseableLockFileError extends problem_error_1.ProblemError {
113
58
  constructor(details, additionalData, cause, instance) {
114
59
  super({
115
60
  title: 'Unable to parse lock file',
116
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0004',
61
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0002',
117
62
  status: 400,
118
- errorCode: 'SNYK-OS-0004',
63
+ errorCode: 'SNYK-OS-0002',
119
64
  level: 'error',
120
65
  instance,
121
66
  }, details, Object.assign({ links: [] }, additionalData), cause);
@@ -141,9 +86,9 @@ class UnknownDependencyVersionError extends problem_error_1.ProblemError {
141
86
  constructor(details, additionalData, cause, instance) {
142
87
  super({
143
88
  title: 'Unknown dependency version',
144
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0005',
89
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0003',
145
90
  status: 404,
146
- errorCode: 'SNYK-OS-0005',
91
+ errorCode: 'SNYK-OS-0003',
147
92
  level: 'warn',
148
93
  instance,
149
94
  }, details, Object.assign({ links: [
@@ -155,79 +100,79 @@ class UnknownDependencyVersionError extends problem_error_1.ProblemError {
155
100
  exports.UnknownDependencyVersionError = UnknownDependencyVersionError;
156
101
  /**
157
102
  * @class
158
- * @name MissingPayloadError
159
- * @description The server could not process the request.
160
- * @summary Payload missing required elements
103
+ * @name MissingHeaderError
104
+ * @description The server encountered a request that is missing a mandatory request header.
105
+ * @summary Missing required request header
161
106
  * @category OpenSourceEcosystems
162
107
  * @param {string} details the specific details that causes this error
163
108
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
164
109
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
165
110
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
166
111
  */
167
- class MissingPayloadError extends problem_error_1.ProblemError {
112
+ class MissingHeaderError extends problem_error_1.ProblemError {
168
113
  constructor(details, additionalData, cause, instance) {
169
114
  super({
170
- title: 'Payload missing required elements',
171
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0006',
115
+ title: 'Missing required request header',
116
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0004',
172
117
  status: 422,
173
- errorCode: 'SNYK-OS-0006',
118
+ errorCode: 'SNYK-OS-0004',
174
119
  level: 'error',
175
120
  instance,
176
121
  }, details, Object.assign({ links: [] }, additionalData), cause);
177
122
  this.name = this.constructor.name;
178
123
  }
179
124
  }
180
- exports.MissingPayloadError = MissingPayloadError;
125
+ exports.MissingHeaderError = MissingHeaderError;
181
126
  /**
182
127
  * @class
183
- * @name UnprocessableFileError
184
- * @description The dependency service could not process the files.
185
- * @summary Files cannot be processed
128
+ * @name MissingPayloadError
129
+ * @description The server could not process the request.
130
+ * @summary Payload missing required elements
186
131
  * @category OpenSourceEcosystems
187
132
  * @param {string} details the specific details that causes this error
188
133
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
189
134
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
190
135
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
191
136
  */
192
- class UnprocessableFileError extends problem_error_1.ProblemError {
137
+ class MissingPayloadError extends problem_error_1.ProblemError {
193
138
  constructor(details, additionalData, cause, instance) {
194
139
  super({
195
- title: 'Files cannot be processed',
196
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0007',
140
+ title: 'Payload missing required elements',
141
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0005',
197
142
  status: 422,
198
- errorCode: 'SNYK-OS-0007',
143
+ errorCode: 'SNYK-OS-0005',
199
144
  level: 'error',
200
145
  instance,
201
146
  }, details, Object.assign({ links: [] }, additionalData), cause);
202
147
  this.name = this.constructor.name;
203
148
  }
204
149
  }
205
- exports.UnprocessableFileError = UnprocessableFileError;
150
+ exports.MissingPayloadError = MissingPayloadError;
206
151
  /**
207
152
  * @class
208
- * @name SourceNotSupportedError
209
- * @description The source used is not supported by fetcher. The supported sources are: github, bitbucket, gitlab.
210
- * @summary Source is not supported
153
+ * @name UnprocessableFileError
154
+ * @description The dependency service could not process the files.
155
+ * @summary Files cannot be processed
211
156
  * @category OpenSourceEcosystems
212
157
  * @param {string} details the specific details that causes this error
213
158
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
214
159
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
215
160
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
216
161
  */
217
- class SourceNotSupportedError extends problem_error_1.ProblemError {
162
+ class UnprocessableFileError extends problem_error_1.ProblemError {
218
163
  constructor(details, additionalData, cause, instance) {
219
164
  super({
220
- title: 'Source is not supported',
221
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0008',
165
+ title: 'Files cannot be processed',
166
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0006',
222
167
  status: 422,
223
- errorCode: 'SNYK-OS-0008',
168
+ errorCode: 'SNYK-OS-0006',
224
169
  level: 'error',
225
170
  instance,
226
171
  }, details, Object.assign({ links: [] }, additionalData), cause);
227
172
  this.name = this.constructor.name;
228
173
  }
229
174
  }
230
- exports.SourceNotSupportedError = SourceNotSupportedError;
175
+ exports.UnprocessableFileError = UnprocessableFileError;
231
176
  /**
232
177
  * @class
233
178
  * @name CannotGetFileFromSourceError
@@ -243,9 +188,9 @@ class CannotGetFileFromSourceError extends problem_error_1.ProblemError {
243
188
  constructor(details, additionalData, cause, instance) {
244
189
  super({
245
190
  title: 'Cannot get file from source',
246
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0009',
191
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0007',
247
192
  status: 500,
248
- errorCode: 'SNYK-OS-0009',
193
+ errorCode: 'SNYK-OS-0007',
249
194
  level: 'error',
250
195
  instance,
251
196
  }, details, Object.assign({ links: [] }, additionalData), cause);
@@ -255,1132 +200,1226 @@ class CannotGetFileFromSourceError extends problem_error_1.ProblemError {
255
200
  exports.CannotGetFileFromSourceError = CannotGetFileFromSourceError;
256
201
  /**
257
202
  * @class
258
- * @name NoReleasedVersionForVersionsRangeError
259
- * @description There was no version released for the specified versions range.
260
- * @summary No released version for versions range
203
+ * @name MissingEnvironmentVariableError
204
+ * @description The server encountered a critical operation that requires a specific environment variable, but the variable is not set or is not accessible within the current environment.
205
+ * @summary Missing environment variable
261
206
  * @category OpenSourceEcosystems
262
207
  * @param {string} details the specific details that causes this error
263
208
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
264
209
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
265
210
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
266
211
  */
267
- class NoReleasedVersionForVersionsRangeError extends problem_error_1.ProblemError {
212
+ class MissingEnvironmentVariableError extends problem_error_1.ProblemError {
268
213
  constructor(details, additionalData, cause, instance) {
269
214
  super({
270
- title: 'No released version for versions range',
271
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0010',
272
- status: 422,
273
- errorCode: 'SNYK-OS-0010',
215
+ title: 'Missing environment variable',
216
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0008',
217
+ status: 500,
218
+ errorCode: 'SNYK-OS-0008',
274
219
  level: 'error',
275
220
  instance,
276
221
  }, details, Object.assign({ links: [] }, additionalData), cause);
277
222
  this.name = this.constructor.name;
278
223
  }
279
224
  }
280
- exports.NoReleasedVersionForVersionsRangeError = NoReleasedVersionForVersionsRangeError;
225
+ exports.MissingEnvironmentVariableError = MissingEnvironmentVariableError;
281
226
  /**
282
227
  * @class
283
- * @name TimeoutWhenProcessingTheDepTreeError
284
- * @description There was an timeout when processing the dependecy tree.
285
- * @summary Timeout when processing the dependency tree
228
+ * @name UnsupportedManifestFileError
229
+ * @description The provided manifest file is not supported by Snyk for .NET.
230
+ *
231
+ * See more:
232
+ * - [https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/.net](https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/.net)
233
+ * @summary Unsupported manifest file type for remediation
286
234
  * @category OpenSourceEcosystems
287
235
  * @param {string} details the specific details that causes this error
288
236
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
289
237
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
290
238
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
291
239
  */
292
- class TimeoutWhenProcessingTheDepTreeError extends problem_error_1.ProblemError {
240
+ class UnsupportedManifestFileError extends problem_error_1.ProblemError {
293
241
  constructor(details, additionalData, cause, instance) {
294
242
  super({
295
- title: 'Timeout when processing the dependency tree',
296
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0011',
297
- status: 422,
298
- errorCode: 'SNYK-OS-0011',
243
+ title: 'Unsupported manifest file type for remediation',
244
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-dotnet-0001',
245
+ status: 400,
246
+ errorCode: 'SNYK-OS-DOTNET-0001',
299
247
  level: 'error',
300
248
  instance,
301
- }, details, Object.assign({ links: [] }, additionalData), cause);
249
+ }, details, Object.assign({ links: [
250
+ 'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/.net',
251
+ ] }, additionalData), cause);
302
252
  this.name = this.constructor.name;
303
253
  }
304
254
  }
305
- exports.TimeoutWhenProcessingTheDepTreeError = TimeoutWhenProcessingTheDepTreeError;
255
+ exports.UnsupportedManifestFileError = UnsupportedManifestFileError;
306
256
  /**
307
257
  * @class
308
- * @name TooManyManifestFilesError
309
- * @description Too many manifest files were provided in the request body.
310
- * @summary Received more manifests than expected
258
+ * @name UnsupportedTargetFrameworkError
259
+ * @description The provided manifest file defines a `<TargetFramework>` or `<TargetFrameworks>` that is not currently supported by Snyk's .NET scanning solution.
260
+ * @summary Target framework not supported
311
261
  * @category OpenSourceEcosystems
312
262
  * @param {string} details the specific details that causes this error
313
263
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
314
264
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
315
265
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
316
266
  */
317
- class TooManyManifestFilesError extends problem_error_1.ProblemError {
267
+ class UnsupportedTargetFrameworkError extends problem_error_1.ProblemError {
318
268
  constructor(details, additionalData, cause, instance) {
319
269
  super({
320
- title: 'Received more manifests than expected',
321
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0012',
270
+ title: 'Target framework not supported',
271
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-dotnet-0002',
322
272
  status: 422,
323
- errorCode: 'SNYK-OS-0012',
273
+ errorCode: 'SNYK-OS-DOTNET-0002',
324
274
  level: 'error',
325
275
  instance,
326
276
  }, details, Object.assign({ links: [] }, additionalData), cause);
327
277
  this.name = this.constructor.name;
328
278
  }
329
279
  }
330
- exports.TooManyManifestFilesError = TooManyManifestFilesError;
280
+ exports.UnsupportedTargetFrameworkError = UnsupportedTargetFrameworkError;
331
281
  /**
332
282
  * @class
333
- * @name FailedToApplyDependencyUpdatesError
334
- * @description An error occured while updating dependencies.
335
- * @summary Failed to apply dependency updates
283
+ * @name MissingStaticMainFunctionError
284
+ * @description This error occurs when no static Main method with a correct signature is found in the code that produces an executable file.
285
+ * It also occurs if the entry point function, `Main`, is defined with the wrong case, such as lower-case main.
286
+ *
287
+ * In order to fix this issue, ensure that your program has a .cs file that contains a main function, such as
288
+ * ```c#
289
+ * namespace Example
290
+ * {
291
+ * class Program
292
+ * {
293
+ * static void Main(string[] args)
294
+ * {
295
+ * Console.WriteLine("hello world");
296
+ * }
297
+ * }
298
+ * }
299
+ * ```
300
+ *
301
+ * See more:
302
+ * - [https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs5001](https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs5001)
303
+ * @summary Your C# code is missing a static Main function
336
304
  * @category OpenSourceEcosystems
337
305
  * @param {string} details the specific details that causes this error
338
306
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
339
307
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
340
308
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
341
309
  */
342
- class FailedToApplyDependencyUpdatesError extends problem_error_1.ProblemError {
310
+ class MissingStaticMainFunctionError extends problem_error_1.ProblemError {
343
311
  constructor(details, additionalData, cause, instance) {
344
312
  super({
345
- title: 'Failed to apply dependency updates',
346
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0013',
313
+ title: 'Your C# code is missing a static Main function',
314
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-dotnet-0003',
347
315
  status: 422,
348
- errorCode: 'SNYK-OS-0013',
316
+ errorCode: 'SNYK-OS-DOTNET-0003',
349
317
  level: 'error',
350
318
  instance,
351
- }, details, Object.assign({ links: [] }, additionalData), cause);
319
+ }, details, Object.assign({ links: [
320
+ 'https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs5001',
321
+ ] }, additionalData), cause);
352
322
  this.name = this.constructor.name;
353
323
  }
354
324
  }
355
- exports.FailedToApplyDependencyUpdatesError = FailedToApplyDependencyUpdatesError;
325
+ exports.MissingStaticMainFunctionError = MissingStaticMainFunctionError;
356
326
  /**
357
327
  * @class
358
- * @name UnknownBlobEncodingOnGithubError
359
- * @description Unknown blob encoding on Github.
360
- * @summary Unknown blob encoding on Github
328
+ * @name PublishFailedError
329
+ * @description This error occurs when running `dotnet publish --sc --framework <your-target-framework>` fails to generate a
330
+ * self-contained binary. Snyk needs to run this command in order to adequately determine the dependency tree for your project. If this command fails, Snyk cannot continue.
331
+ *
332
+ * Steps to determine why this happened:
333
+ *
334
+ * * Checkout a clean version of your project in a temporary folder
335
+ * * Run `dotnet publish --sc --framework <your-target-framework> ` on your project, and confirm this step fails.
336
+ *
337
+ * If this step is successful locally, it is possible that Snyk is running another version of the .NET SDK. To tell Snyk which version of the .NET SDK to use, consider using the [global.json](https://learn.microsoft.com/en-us/dotnet/core/tools/global-json) solution provided by Microsoft.
338
+ *
339
+ * See more:
340
+ * - [https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/](https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/)
341
+ * - [https://learn.microsoft.com/en-us/dotnet/core/tools/global-json](https://learn.microsoft.com/en-us/dotnet/core/tools/global-json)
342
+ * - [https://github.com/snyk/snyk-nuget-plugin/blob/885486aa656c28d3db465c8d22710770d5cc6773/lib/nuget-parser/cli/dotnet.ts#L67](https://github.com/snyk/snyk-nuget-plugin/blob/885486aa656c28d3db465c8d22710770d5cc6773/lib/nuget-parser/cli/dotnet.ts#L67)
343
+ * @summary The dotnet CLI is unable to generate a self-contained binary
361
344
  * @category OpenSourceEcosystems
362
345
  * @param {string} details the specific details that causes this error
363
346
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
364
347
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
365
348
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
366
349
  */
367
- class UnknownBlobEncodingOnGithubError extends problem_error_1.ProblemError {
350
+ class PublishFailedError extends problem_error_1.ProblemError {
368
351
  constructor(details, additionalData, cause, instance) {
369
352
  super({
370
- title: 'Unknown blob encoding on Github',
371
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0014',
353
+ title: 'The dotnet CLI is unable to generate a self-contained binary',
354
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-dotnet-0004',
372
355
  status: 422,
373
- errorCode: 'SNYK-OS-0014',
356
+ errorCode: 'SNYK-OS-DOTNET-0004',
374
357
  level: 'error',
375
358
  instance,
376
- }, details, Object.assign({ links: [] }, additionalData), cause);
359
+ }, details, Object.assign({ links: [
360
+ 'https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/',
361
+ 'https://learn.microsoft.com/en-us/dotnet/core/tools/global-json',
362
+ 'https://github.com/snyk/snyk-nuget-plugin/blob/885486aa656c28d3db465c8d22710770d5cc6773/lib/nuget-parser/cli/dotnet.ts#L67',
363
+ ] }, additionalData), cause);
377
364
  this.name = this.constructor.name;
378
365
  }
379
366
  }
380
- exports.UnknownBlobEncodingOnGithubError = UnknownBlobEncodingOnGithubError;
367
+ exports.PublishFailedError = PublishFailedError;
381
368
  /**
382
369
  * @class
383
- * @name NoResultsFromForkerProcessesError
384
- * @description No result from forked process.
385
- * @summary No result from forked process
370
+ * @name PrivateModuleError
371
+ * @description Snyk could not access the private modules within your go.mod files.
372
+ *
373
+ * See more:
374
+ * - [https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go](https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go)
375
+ * @summary Failed to access private module
386
376
  * @category OpenSourceEcosystems
387
377
  * @param {string} details the specific details that causes this error
388
378
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
389
379
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
390
380
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
391
381
  */
392
- class NoResultsFromForkerProcessesError extends problem_error_1.ProblemError {
382
+ class PrivateModuleError extends problem_error_1.ProblemError {
393
383
  constructor(details, additionalData, cause, instance) {
394
384
  super({
395
- title: 'No result from forked process',
396
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0015',
397
- status: 500,
398
- errorCode: 'SNYK-OS-0015',
385
+ title: 'Failed to access private module',
386
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0001',
387
+ status: 400,
388
+ errorCode: 'SNYK-OS-GO-0001',
399
389
  level: 'error',
400
390
  instance,
401
- }, details, Object.assign({ links: [] }, additionalData), cause);
391
+ }, details, Object.assign({ links: [
392
+ 'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go',
393
+ ] }, additionalData), cause);
402
394
  this.name = this.constructor.name;
403
395
  }
404
396
  }
405
- exports.NoResultsFromForkerProcessesError = NoResultsFromForkerProcessesError;
397
+ exports.PrivateModuleError = PrivateModuleError;
406
398
  /**
407
399
  * @class
408
- * @name ChildProcessExecutionError
409
- * @description The child process encountered an error during execution.
410
- * @summary Child Process Execution Error
400
+ * @name GoModFileMissingError
401
+ * @description A go.mod file was not found in the current directory or any parent directory.
402
+ *
403
+ * See more:
404
+ * - [https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go](https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go)
405
+ * @summary Go mod file not found
411
406
  * @category OpenSourceEcosystems
412
407
  * @param {string} details the specific details that causes this error
413
408
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
414
409
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
415
410
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
416
411
  */
417
- class ChildProcessExecutionError extends problem_error_1.ProblemError {
412
+ class GoModFileMissingError extends problem_error_1.ProblemError {
418
413
  constructor(details, additionalData, cause, instance) {
419
414
  super({
420
- title: 'Child Process Execution Error',
421
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0016',
422
- status: 500,
423
- errorCode: 'SNYK-OS-0016',
415
+ title: 'Go mod file not found',
416
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0002',
417
+ status: 400,
418
+ errorCode: 'SNYK-OS-GO-0002',
424
419
  level: 'error',
425
420
  instance,
426
- }, details, Object.assign({ links: [] }, additionalData), cause);
421
+ }, details, Object.assign({ links: [
422
+ 'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go',
423
+ ] }, additionalData), cause);
427
424
  this.name = this.constructor.name;
428
425
  }
429
426
  }
430
- exports.ChildProcessExecutionError = ChildProcessExecutionError;
427
+ exports.GoModFileMissingError = GoModFileMissingError;
431
428
  /**
432
429
  * @class
433
- * @name NoValidPackageUpgradesError
434
- * @description The system attempted to find valid upgrades for the packages specified in the lock file, but none were available.
435
- * @summary No valid package upgrades
430
+ * @name SsoReAuthRequiredError
431
+ * @description Your code is cloned on an isolated environment using Git as it is required by Snyk to analyze its dependencies.
432
+ *
433
+ * Your Organization has enabled or enforced SAML SSO after you authorized Snyk to access your code, and a re-authentication is therefore required.
434
+ *
435
+ * The error you're seeing is usually reproducible by attempting to do a `git clone` of your repository with incorrectly configured credentials.
436
+ * Verify your authentication configuration with your Git cloud provider and try again.
437
+ *
438
+ * See more:
439
+ * - [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](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)
440
+ * @summary OAuth re-authorization required
436
441
  * @category OpenSourceEcosystems
437
442
  * @param {string} details the specific details that causes this error
438
443
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
439
444
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
440
445
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
441
446
  */
442
- class NoValidPackageUpgradesError extends problem_error_1.ProblemError {
447
+ class SsoReAuthRequiredError extends problem_error_1.ProblemError {
443
448
  constructor(details, additionalData, cause, instance) {
444
449
  super({
445
- title: 'No valid package upgrades',
446
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0017',
450
+ title: 'OAuth re-authorization required',
451
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0003',
447
452
  status: 422,
448
- errorCode: 'SNYK-OS-0017',
453
+ errorCode: 'SNYK-OS-GO-0003',
449
454
  level: 'error',
450
455
  instance,
451
- }, details, Object.assign({ links: [] }, additionalData), cause);
456
+ }, details, Object.assign({ links: [
457
+ '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',
458
+ ] }, additionalData), cause);
452
459
  this.name = this.constructor.name;
453
460
  }
454
461
  }
455
- exports.NoValidPackageUpgradesError = NoValidPackageUpgradesError;
462
+ exports.SsoReAuthRequiredError = SsoReAuthRequiredError;
456
463
  /**
457
464
  * @class
458
- * @name NoDependencyUpdatesError
459
- * @description There are no available updates for the dependencies.
460
- * @summary No dependency updates
461
- * @category OpenSourceEcosystems
462
- * @param {string} details the specific details that causes this error
463
- * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
464
- * @param {Error} [cause] the `Error` type that caused this error to be thrown
465
- * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
466
- */
467
- class NoDependencyUpdatesError extends problem_error_1.ProblemError {
468
- constructor(details, additionalData, cause, instance) {
465
+ * @name IncompleteProjectError
466
+ * @description Generating the dependency graph requires Snyk to run go list `go list -deps -json` inside the project. If the operation fails, creating a full dependency graph cannot continue.
467
+ *
468
+ * This error means that you need some cleanup, such as `go mod tidy`) or your project deployment process contains a code generation step such as `protobuf` or similar that is not currently supported by Snyk.
469
+ *
470
+ * To verify if this is the case, clone your project in a clean environment, run go list `go list -deps -json` and verify whether the operation fails.
471
+ *
472
+ * If Snyk cannot process your code successfully, insert the Snyk CLI as part of your deployment pipeline.
473
+ *
474
+ * See more:
475
+ * - [https://docs.snyk.io/snyk-cli](https://docs.snyk.io/snyk-cli)
476
+ * - [https://github.com/snyk/snyk-go-plugin](https://github.com/snyk/snyk-go-plugin)
477
+ * - [https://github.com/golang/go/blob/master/src/cmd/go/internal/list/list.go](https://github.com/golang/go/blob/master/src/cmd/go/internal/list/list.go)
478
+ * @summary Your project repository is missing required files
479
+ * @category OpenSourceEcosystems
480
+ * @param {string} details the specific details that causes this error
481
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
482
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
483
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
484
+ */
485
+ class IncompleteProjectError extends problem_error_1.ProblemError {
486
+ constructor(details, additionalData, cause, instance) {
469
487
  super({
470
- title: 'No dependency updates',
471
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0018',
488
+ title: 'Your project repository is missing required files',
489
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0004',
472
490
  status: 422,
473
- errorCode: 'SNYK-OS-0018',
491
+ errorCode: 'SNYK-OS-GO-0004',
474
492
  level: 'error',
475
493
  instance,
476
- }, details, Object.assign({ links: [] }, additionalData), cause);
494
+ }, details, Object.assign({ links: [
495
+ 'https://docs.snyk.io/snyk-cli',
496
+ 'https://github.com/snyk/snyk-go-plugin',
497
+ 'https://github.com/golang/go/blob/master/src/cmd/go/internal/list/list.go',
498
+ ] }, additionalData), cause);
477
499
  this.name = this.constructor.name;
478
500
  }
479
501
  }
480
- exports.NoDependencyUpdatesError = NoDependencyUpdatesError;
502
+ exports.IncompleteProjectError = IncompleteProjectError;
481
503
  /**
482
504
  * @class
483
- * @name MissingRequiredRequestHeaderError
484
- * @description The server encountered a request that is missing a mandatory request header.
485
- * @summary Missing required request header
505
+ * @name InconsistentVendoringError
506
+ * @description Generating the dependency graph requires Snyk to run `go list -deps -json` inside the project. If the operation fails, creating a full dependency graph cannot continue.
507
+ *
508
+ * This error means that there is inconsistency between your `vendor/modules.txt` file and your `go.mod` file. To remediate, you need to:
509
+ *
510
+ * * `go mod vendor`
511
+ * * `go mod tidy`
512
+ *
513
+ * Next, commit those changes to your repo. Snyk does not manipulate with your code on our end by design, which is why this is not done automatically.
514
+ *
515
+ * To verify if this is the case, clone your project in a clean environment, run go list `go list -deps -json` and verify whether the operation fails.
516
+ * Then try and run the above mentioned commands and see if your SCM system reports changes in files.
517
+ *
518
+ * See more:
519
+ * - [https://go.dev/ref/mod#go-mod-vendor](https://go.dev/ref/mod#go-mod-vendor)
520
+ * @summary Your project repository has inconsistent vendoring information
486
521
  * @category OpenSourceEcosystems
487
522
  * @param {string} details the specific details that causes this error
488
523
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
489
524
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
490
525
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
491
526
  */
492
- class MissingRequiredRequestHeaderError extends problem_error_1.ProblemError {
527
+ class InconsistentVendoringError extends problem_error_1.ProblemError {
493
528
  constructor(details, additionalData, cause, instance) {
494
529
  super({
495
- title: 'Missing required request header',
496
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0019',
530
+ title: 'Your project repository has inconsistent vendoring information',
531
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0005',
497
532
  status: 422,
498
- errorCode: 'SNYK-OS-0019',
533
+ errorCode: 'SNYK-OS-GO-0005',
534
+ level: 'error',
535
+ instance,
536
+ }, details, Object.assign({ links: [
537
+ 'https://go.dev/ref/mod#go-mod-vendor',
538
+ ] }, additionalData), cause);
539
+ this.name = this.constructor.name;
540
+ }
541
+ }
542
+ exports.InconsistentVendoringError = InconsistentVendoringError;
543
+ /**
544
+ * @class
545
+ * @name UnsupportedExternalFileGenerationSCMError
546
+ * @description Snyk currently does not support external file generation in your project. This limitation is due to Snyk's lack of visibility into the third-party generator tools you may be using and the specific commands required to generate these files.
547
+ *
548
+ * Snyk can only work with the files available in your repository and does not have insight into the generation process for external files.
549
+ * @summary Unsupported external file generation
550
+ * @category OpenSourceEcosystems
551
+ * @param {string} details the specific details that causes this error
552
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
553
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
554
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
555
+ */
556
+ class UnsupportedExternalFileGenerationSCMError extends problem_error_1.ProblemError {
557
+ constructor(details, additionalData, cause, instance) {
558
+ super({
559
+ title: 'Unsupported external file generation',
560
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0006',
561
+ status: 422,
562
+ errorCode: 'SNYK-OS-GO-0006',
499
563
  level: 'error',
500
564
  instance,
501
565
  }, details, Object.assign({ links: [] }, additionalData), cause);
502
566
  this.name = this.constructor.name;
503
567
  }
504
568
  }
505
- exports.MissingRequiredRequestHeaderError = MissingRequiredRequestHeaderError;
569
+ exports.UnsupportedExternalFileGenerationSCMError = UnsupportedExternalFileGenerationSCMError;
506
570
  /**
507
571
  * @class
508
- * @name CouldNotParseJSONFileError
509
- * @description An error occurred while attempting to parse a JSON file.
510
- * @summary Could not parse JSON file
572
+ * @name MissingRequirementFromPomError
573
+ * @description The required property is missing from the pom object.
574
+ * @summary Missing property
511
575
  * @category OpenSourceEcosystems
512
576
  * @param {string} details the specific details that causes this error
513
577
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
514
578
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
515
579
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
516
580
  */
517
- class CouldNotParseJSONFileError extends problem_error_1.ProblemError {
581
+ class MissingRequirementFromPomError extends problem_error_1.ProblemError {
518
582
  constructor(details, additionalData, cause, instance) {
519
583
  super({
520
- title: 'Could not parse JSON file',
521
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0020',
584
+ title: 'Missing property',
585
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0001',
522
586
  status: 422,
523
- errorCode: 'SNYK-OS-0020',
587
+ errorCode: 'SNYK-OS-MAVEN-0001',
524
588
  level: 'error',
525
589
  instance,
526
590
  }, details, Object.assign({ links: [] }, additionalData), cause);
527
591
  this.name = this.constructor.name;
528
592
  }
529
593
  }
530
- exports.CouldNotParseJSONFileError = CouldNotParseJSONFileError;
594
+ exports.MissingRequirementFromPomError = MissingRequirementFromPomError;
531
595
  /**
532
596
  * @class
533
- * @name Base64EncodeError
534
- * @description An error occurred while attempting to perform Base64 encoding.
535
- * @summary Could not Base64 encode
597
+ * @name UnableToResolveValueForPropertyError
598
+ * @description The targeted property could not be resolved with a valid value.
599
+ * @summary Unable to resolve value for property
536
600
  * @category OpenSourceEcosystems
537
601
  * @param {string} details the specific details that causes this error
538
602
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
539
603
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
540
604
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
541
605
  */
542
- class Base64EncodeError extends problem_error_1.ProblemError {
606
+ class UnableToResolveValueForPropertyError extends problem_error_1.ProblemError {
543
607
  constructor(details, additionalData, cause, instance) {
544
608
  super({
545
- title: 'Could not Base64 encode',
546
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0021',
609
+ title: 'Unable to resolve value for property',
610
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0002',
547
611
  status: 422,
548
- errorCode: 'SNYK-OS-0021',
612
+ errorCode: 'SNYK-OS-MAVEN-0002',
549
613
  level: 'error',
550
614
  instance,
551
615
  }, details, Object.assign({ links: [] }, additionalData), cause);
552
616
  this.name = this.constructor.name;
553
617
  }
554
618
  }
555
- exports.Base64EncodeError = Base64EncodeError;
619
+ exports.UnableToResolveValueForPropertyError = UnableToResolveValueForPropertyError;
556
620
  /**
557
621
  * @class
558
- * @name Base64DecodeError
559
- * @description An error occurred while attempting to perform Base64 decoding.
560
- * @summary Could not Base64 decode
622
+ * @name UnableToResolveVersionForPropertyError
623
+ * @description The targeted property could not be resolved with a valid version.
624
+ * @summary Unable to resolve version for property
561
625
  * @category OpenSourceEcosystems
562
626
  * @param {string} details the specific details that causes this error
563
627
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
564
628
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
565
629
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
566
630
  */
567
- class Base64DecodeError extends problem_error_1.ProblemError {
631
+ class UnableToResolveVersionForPropertyError extends problem_error_1.ProblemError {
568
632
  constructor(details, additionalData, cause, instance) {
569
633
  super({
570
- title: 'Could not Base64 decode',
571
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0022',
634
+ title: 'Unable to resolve version for property',
635
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0003',
572
636
  status: 422,
573
- errorCode: 'SNYK-OS-0022',
637
+ errorCode: 'SNYK-OS-MAVEN-0003',
574
638
  level: 'error',
575
639
  instance,
576
640
  }, details, Object.assign({ links: [] }, additionalData), cause);
577
641
  this.name = this.constructor.name;
578
642
  }
579
643
  }
580
- exports.Base64DecodeError = Base64DecodeError;
644
+ exports.UnableToResolveVersionForPropertyError = UnableToResolveVersionForPropertyError;
581
645
  /**
582
646
  * @class
583
- * @name MissingSupportedFileError
584
- * @description Could not find supported file.
585
- * @summary Missing supported file
647
+ * @name CyclicPropertyDetectedInPomFileError
648
+ * @description There is circular dependency among properties in the Maven project's configuration file (POM), preventing proper resolution and causing an error.
649
+ * @summary Cyclic property detected in POM file
586
650
  * @category OpenSourceEcosystems
587
651
  * @param {string} details the specific details that causes this error
588
652
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
589
653
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
590
654
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
591
655
  */
592
- class MissingSupportedFileError extends problem_error_1.ProblemError {
656
+ class CyclicPropertyDetectedInPomFileError extends problem_error_1.ProblemError {
593
657
  constructor(details, additionalData, cause, instance) {
594
658
  super({
595
- title: 'Missing supported file',
596
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0023',
597
- status: 400,
598
- errorCode: 'SNYK-OS-0023',
659
+ title: 'Cyclic property detected in POM file',
660
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0004',
661
+ status: 422,
662
+ errorCode: 'SNYK-OS-MAVEN-0004',
599
663
  level: 'error',
600
664
  instance,
601
665
  }, details, Object.assign({ links: [] }, additionalData), cause);
602
666
  this.name = this.constructor.name;
603
667
  }
604
668
  }
605
- exports.MissingSupportedFileError = MissingSupportedFileError;
669
+ exports.CyclicPropertyDetectedInPomFileError = CyclicPropertyDetectedInPomFileError;
606
670
  /**
607
671
  * @class
608
- * @name MissingEnvironmentVariableError
609
- * @description The server encountered a critical operation that requires a specific environment variable, but the variable is not set or is not accessible within the current environment.
610
- * @summary Missing environment variable
672
+ * @name UnableToParseXMLError
673
+ * @description There is an error parsing the XML file. This could be referring to either pom.xml or maven-metadata.xml.
674
+ * @summary Error parsing the XML file
611
675
  * @category OpenSourceEcosystems
612
676
  * @param {string} details the specific details that causes this error
613
677
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
614
678
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
615
679
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
616
680
  */
617
- class MissingEnvironmentVariableError extends problem_error_1.ProblemError {
681
+ class UnableToParseXMLError extends problem_error_1.ProblemError {
618
682
  constructor(details, additionalData, cause, instance) {
619
683
  super({
620
- title: 'Missing environment variable',
621
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0024',
684
+ title: 'Error parsing the XML file',
685
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0005',
622
686
  status: 500,
623
- errorCode: 'SNYK-OS-0024',
687
+ errorCode: 'SNYK-OS-MAVEN-0005',
624
688
  level: 'error',
625
689
  instance,
626
690
  }, details, Object.assign({ links: [] }, additionalData), cause);
627
691
  this.name = this.constructor.name;
628
692
  }
629
693
  }
630
- exports.MissingEnvironmentVariableError = MissingEnvironmentVariableError;
694
+ exports.UnableToParseXMLError = UnableToParseXMLError;
631
695
  /**
632
696
  * @class
633
- * @name NoOutputFromIsolatedBuildsError
634
- * @description The response from isolated builds had no output.
635
- * @summary No output from isolated builds
697
+ * @name InvalidCoordinatesError
698
+ * @description The coordinates provided for a project were invalid.
699
+ * @summary Invalid coordinates provided
636
700
  * @category OpenSourceEcosystems
637
701
  * @param {string} details the specific details that causes this error
638
702
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
639
703
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
640
704
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
641
705
  */
642
- class NoOutputFromIsolatedBuildsError extends problem_error_1.ProblemError {
706
+ class InvalidCoordinatesError extends problem_error_1.ProblemError {
643
707
  constructor(details, additionalData, cause, instance) {
644
708
  super({
645
- title: 'No output from isolated builds',
646
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0025',
647
- status: 500,
648
- errorCode: 'SNYK-OS-0025',
649
- level: 'warn',
709
+ title: 'Invalid coordinates provided',
710
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0006',
711
+ status: 422,
712
+ errorCode: 'SNYK-OS-MAVEN-0006',
713
+ level: 'error',
650
714
  instance,
651
715
  }, details, Object.assign({ links: [] }, additionalData), cause);
652
716
  this.name = this.constructor.name;
653
717
  }
654
718
  }
655
- exports.NoOutputFromIsolatedBuildsError = NoOutputFromIsolatedBuildsError;
719
+ exports.InvalidCoordinatesError = InvalidCoordinatesError;
656
720
  /**
657
721
  * @class
658
- * @name FailedToRelockError
659
- * @description An error occurred while attempting to relock.
660
- * @summary Failed to relock
722
+ * @name SkippedGroupError
723
+ * @description Skipping a specific groupId starting due to remapped coordinates.
724
+ * @summary Skipping group
661
725
  * @category OpenSourceEcosystems
662
726
  * @param {string} details the specific details that causes this error
663
727
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
664
728
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
665
729
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
666
730
  */
667
- class FailedToRelockError extends problem_error_1.ProblemError {
731
+ class SkippedGroupError extends problem_error_1.ProblemError {
668
732
  constructor(details, additionalData, cause, instance) {
669
733
  super({
670
- title: 'Failed to relock',
671
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0026',
672
- status: 500,
673
- errorCode: 'SNYK-OS-0026',
674
- level: 'warn',
734
+ title: 'Skipping group',
735
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0007',
736
+ status: 422,
737
+ errorCode: 'SNYK-OS-MAVEN-0007',
738
+ level: 'error',
675
739
  instance,
676
740
  }, details, Object.assign({ links: [] }, additionalData), cause);
677
741
  this.name = this.constructor.name;
678
742
  }
679
743
  }
680
- exports.FailedToRelockError = FailedToRelockError;
744
+ exports.SkippedGroupError = SkippedGroupError;
681
745
  /**
682
746
  * @class
683
- * @name InvalidConfigurationError
684
- * @description The configuration parameter does not meet the expected data type. Please ensure the provided value is of the correct data type.
685
- * @summary Invalid configuration
747
+ * @name PomFileNotFoundError
748
+ * @description The pom file was not found in Maven repository.
749
+ * @summary Pom file not found
686
750
  * @category OpenSourceEcosystems
687
751
  * @param {string} details the specific details that causes this error
688
752
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
689
753
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
690
754
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
691
755
  */
692
- class InvalidConfigurationError extends problem_error_1.ProblemError {
756
+ class PomFileNotFoundError extends problem_error_1.ProblemError {
693
757
  constructor(details, additionalData, cause, instance) {
694
758
  super({
695
- title: 'Invalid configuration',
696
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0027',
697
- status: 400,
698
- errorCode: 'SNYK-OS-0027',
699
- level: 'warn',
759
+ title: 'Pom file not found',
760
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0008',
761
+ status: 422,
762
+ errorCode: 'SNYK-OS-MAVEN-0008',
763
+ level: 'error',
700
764
  instance,
701
765
  }, details, Object.assign({ links: [] }, additionalData), cause);
702
766
  this.name = this.constructor.name;
703
767
  }
704
768
  }
705
- exports.InvalidConfigurationError = InvalidConfigurationError;
769
+ exports.PomFileNotFoundError = PomFileNotFoundError;
706
770
  /**
707
771
  * @class
708
- * @name UnsupportedManifestFileError
709
- * @description The provided manifest file is not supported by Snyk for .NET.
710
- *
711
- * See more:
712
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#git-services-for-.net-projects](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#git-services-for-.net-projects)
713
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packagereference](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packagereference)
714
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packages.config](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packages.config)
715
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#paket-dependencies-managed-by-paket](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#paket-dependencies-managed-by-paket)
716
- * @summary Unsupported manifest file type for remediation
772
+ * @name MissingProjectFromPomError
773
+ * @description A project element is missing from POM.
774
+ * @summary Missing project from POM
717
775
  * @category OpenSourceEcosystems
718
776
  * @param {string} details the specific details that causes this error
719
777
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
720
778
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
721
779
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
722
780
  */
723
- class UnsupportedManifestFileError extends problem_error_1.ProblemError {
781
+ class MissingProjectFromPomError extends problem_error_1.ProblemError {
724
782
  constructor(details, additionalData, cause, instance) {
725
783
  super({
726
- title: 'Unsupported manifest file type for remediation',
727
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-dotnet-0001',
728
- status: 400,
729
- errorCode: 'SNYK-OS-DOTNET-0001',
784
+ title: 'Missing project from POM',
785
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0009',
786
+ status: 422,
787
+ errorCode: 'SNYK-OS-MAVEN-0009',
730
788
  level: 'error',
731
789
  instance,
732
- }, details, Object.assign({ links: [
733
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#git-services-for-.net-projects',
734
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packagereference',
735
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packages.config',
736
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#paket-dependencies-managed-by-paket',
737
- ] }, additionalData), cause);
790
+ }, details, Object.assign({ links: [] }, additionalData), cause);
738
791
  this.name = this.constructor.name;
739
792
  }
740
793
  }
741
- exports.UnsupportedManifestFileError = UnsupportedManifestFileError;
794
+ exports.MissingProjectFromPomError = MissingProjectFromPomError;
742
795
  /**
743
796
  * @class
744
- * @name UnsupportedTargetFrameworkError
745
- * @description The provided manifest file defines a `<TargetFramework>` or `<TargetFrameworks>` that is not currently supported by Snyk's .NET scanning solution.
746
- * @summary Target framework not supported
797
+ * @name CannotResolveTargetPomFromXmlError
798
+ * @description Cannot resolve the targeted POM from the input XML.
799
+ * @summary Cannot resolve the target POM from the input XML
747
800
  * @category OpenSourceEcosystems
748
801
  * @param {string} details the specific details that causes this error
749
802
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
750
803
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
751
804
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
752
805
  */
753
- class UnsupportedTargetFrameworkError extends problem_error_1.ProblemError {
806
+ class CannotResolveTargetPomFromXmlError extends problem_error_1.ProblemError {
754
807
  constructor(details, additionalData, cause, instance) {
755
808
  super({
756
- title: 'Target framework not supported',
757
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-dotnet-0002',
809
+ title: 'Cannot resolve the target POM from the input XML',
810
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0010',
758
811
  status: 422,
759
- errorCode: 'SNYK-OS-DOTNET-0002',
812
+ errorCode: 'SNYK-OS-MAVEN-0010',
760
813
  level: 'error',
761
814
  instance,
762
815
  }, details, Object.assign({ links: [] }, additionalData), cause);
763
816
  this.name = this.constructor.name;
764
817
  }
765
818
  }
766
- exports.UnsupportedTargetFrameworkError = UnsupportedTargetFrameworkError;
819
+ exports.CannotResolveTargetPomFromXmlError = CannotResolveTargetPomFromXmlError;
767
820
  /**
768
821
  * @class
769
- * @name PrivateModuleError
770
- * @description Snyk could not access the private modules within your go.mod files.
771
- *
772
- * See more:
773
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli)
774
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git)
775
- * @summary Failed to access private module
822
+ * @name CannotResolveTargetPomFromRepoError
823
+ * @description Cannot resolve the targeted POM from the repository.
824
+ * @summary Cannot resolve the target POM from the repository
776
825
  * @category OpenSourceEcosystems
777
826
  * @param {string} details the specific details that causes this error
778
827
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
779
828
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
780
829
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
781
830
  */
782
- class PrivateModuleError extends problem_error_1.ProblemError {
831
+ class CannotResolveTargetPomFromRepoError extends problem_error_1.ProblemError {
783
832
  constructor(details, additionalData, cause, instance) {
784
833
  super({
785
- title: 'Failed to access private module',
786
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0001',
787
- status: 400,
788
- errorCode: 'SNYK-OS-GO-0001',
834
+ title: 'Cannot resolve the target POM from the repository',
835
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0011',
836
+ status: 404,
837
+ errorCode: 'SNYK-OS-MAVEN-0011',
789
838
  level: 'error',
790
839
  instance,
791
- }, details, Object.assign({ links: [
792
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli',
793
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git',
794
- ] }, additionalData), cause);
840
+ }, details, Object.assign({ links: [] }, additionalData), cause);
795
841
  this.name = this.constructor.name;
796
842
  }
797
843
  }
798
- exports.PrivateModuleError = PrivateModuleError;
844
+ exports.CannotResolveTargetPomFromRepoError = CannotResolveTargetPomFromRepoError;
799
845
  /**
800
846
  * @class
801
- * @name GoModFileMissingError
802
- * @description A go.mod file was not found in the current directory or any parent directory.
803
- *
804
- * See more:
805
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli)
806
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git)
807
- * @summary Go mod file not found
847
+ * @name CannotGetBuildFileFromRepoError
848
+ * @description Cannot get the build file repository.
849
+ * @summary Cannot get the build file repository
808
850
  * @category OpenSourceEcosystems
809
851
  * @param {string} details the specific details that causes this error
810
852
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
811
853
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
812
854
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
813
855
  */
814
- class GoModFileMissingError extends problem_error_1.ProblemError {
856
+ class CannotGetBuildFileFromRepoError extends problem_error_1.ProblemError {
815
857
  constructor(details, additionalData, cause, instance) {
816
858
  super({
817
- title: 'Go mod file not found',
818
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0002',
819
- status: 400,
820
- errorCode: 'SNYK-OS-GO-0002',
859
+ title: 'Cannot get the build file repository',
860
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0012',
861
+ status: 404,
862
+ errorCode: 'SNYK-OS-MAVEN-0012',
821
863
  level: 'error',
822
864
  instance,
823
- }, details, Object.assign({ links: [
824
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli',
825
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git',
826
- ] }, additionalData), cause);
865
+ }, details, Object.assign({ links: [] }, additionalData), cause);
827
866
  this.name = this.constructor.name;
828
867
  }
829
868
  }
830
- exports.GoModFileMissingError = GoModFileMissingError;
869
+ exports.CannotGetBuildFileFromRepoError = CannotGetBuildFileFromRepoError;
831
870
  /**
832
871
  * @class
833
- * @name SsoReAuthRequiredError
834
- * @description Your code is cloned on an isolated environment using Git as it is required by Snyk to analyze its dependencies.
835
- *
836
- * Your Organization has enabled or enforced SAML SSO after you authorized Snyk to access your code, and a re-authentication is therefore required.
837
- *
838
- * The error you're seeing is usually reproducible by attempting to do a `git clone` of your repository with incorrectly configured credentials.
839
- * Verify your authentication configuration with your Git cloud provider and try again.
840
- *
841
- * See more:
842
- * - [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](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)
843
- * @summary OAuth re-authorization required
872
+ * @name CannotCreateGitHostError
873
+ * @description Cannot create source URL.
874
+ * @summary Unable to create hosted git info
844
875
  * @category OpenSourceEcosystems
845
876
  * @param {string} details the specific details that causes this error
846
877
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
847
878
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
848
879
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
849
880
  */
850
- class SsoReAuthRequiredError extends problem_error_1.ProblemError {
881
+ class CannotCreateGitHostError extends problem_error_1.ProblemError {
851
882
  constructor(details, additionalData, cause, instance) {
852
883
  super({
853
- title: 'OAuth re-authorization required',
854
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0003',
884
+ title: 'Unable to create hosted git info',
885
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0013',
886
+ status: 500,
887
+ errorCode: 'SNYK-OS-MAVEN-0013',
888
+ level: 'error',
889
+ instance,
890
+ }, details, Object.assign({ links: [] }, additionalData), cause);
891
+ this.name = this.constructor.name;
892
+ }
893
+ }
894
+ exports.CannotCreateGitHostError = CannotCreateGitHostError;
895
+ /**
896
+ * @class
897
+ * @name NoReleasedVersionForVersionsRangeError
898
+ * @description There was no version released for the specified versions range.
899
+ * @summary No released version for versions range
900
+ * @category OpenSourceEcosystems
901
+ * @param {string} details the specific details that causes this error
902
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
903
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
904
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
905
+ */
906
+ class NoReleasedVersionForVersionsRangeError extends problem_error_1.ProblemError {
907
+ constructor(details, additionalData, cause, instance) {
908
+ super({
909
+ title: 'No released version for versions range',
910
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0014',
855
911
  status: 422,
856
- errorCode: 'SNYK-OS-GO-0003',
912
+ errorCode: 'SNYK-OS-MAVEN-0014',
857
913
  level: 'error',
858
914
  instance,
859
- }, details, Object.assign({ links: [
860
- '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',
861
- ] }, additionalData), cause);
915
+ }, details, Object.assign({ links: [] }, additionalData), cause);
862
916
  this.name = this.constructor.name;
863
917
  }
864
918
  }
865
- exports.SsoReAuthRequiredError = SsoReAuthRequiredError;
919
+ exports.NoReleasedVersionForVersionsRangeError = NoReleasedVersionForVersionsRangeError;
866
920
  /**
867
921
  * @class
868
- * @name IncompleteProjectError
869
- * @description Generating the dependency graph requires Snyk to run go list `go list -deps -json` inside the Project. If the operation fails, creating a full dependency graph cannot continue.
870
- *
871
- * This error usually means that you need some cleanup, such as `go mod tidy`) or your Project deployment process contains a code generation step such as `protobuf` or something similar that is not currently supported by Snyk.
872
- *
873
- * To verify if this is the case, clone your Project in a clean environment, run go list `go list -deps -json` and verify whether the operation fails.
874
- *
875
- * If Snyk cannot process your code successfully, insert the Snyk CLI as part of your deployment pipeline.
876
- *
877
- * See more:
878
- * - [https://docs.snyk.io/snyk-cli](https://docs.snyk.io/snyk-cli)
879
- * - [https://github.com/snyk/snyk-go-plugin](https://github.com/snyk/snyk-go-plugin)
880
- * - [https://github.com/golang/go/blob/master/src/cmd/go/internal/list/list.go](https://github.com/golang/go/blob/master/src/cmd/go/internal/list/list.go)
881
- * @summary Your project repository is missing required files
922
+ * @name SourceNotSupportedError
923
+ * @description The source used is not supported by fetcher. The supported sources are: github, bitbucket, gitlab.
924
+ * @summary Source is not supported
882
925
  * @category OpenSourceEcosystems
883
926
  * @param {string} details the specific details that causes this error
884
927
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
885
928
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
886
929
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
887
930
  */
888
- class IncompleteProjectError extends problem_error_1.ProblemError {
931
+ class SourceNotSupportedError extends problem_error_1.ProblemError {
889
932
  constructor(details, additionalData, cause, instance) {
890
933
  super({
891
- title: 'Your project repository is missing required files',
892
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0004',
934
+ title: 'Source is not supported',
935
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0015',
893
936
  status: 422,
894
- errorCode: 'SNYK-OS-GO-0004',
937
+ errorCode: 'SNYK-OS-MAVEN-0015',
895
938
  level: 'error',
896
939
  instance,
897
- }, details, Object.assign({ links: [
898
- 'https://docs.snyk.io/snyk-cli',
899
- 'https://github.com/snyk/snyk-go-plugin',
900
- 'https://github.com/golang/go/blob/master/src/cmd/go/internal/list/list.go',
901
- ] }, additionalData), cause);
940
+ }, details, Object.assign({ links: [] }, additionalData), cause);
902
941
  this.name = this.constructor.name;
903
942
  }
904
943
  }
905
- exports.IncompleteProjectError = IncompleteProjectError;
944
+ exports.SourceNotSupportedError = SourceNotSupportedError;
906
945
  /**
907
946
  * @class
908
- * @name MissingRequirementFromPomError
909
- * @description The required property is missing from the pom object.
910
- * @summary Missing property
947
+ * @name TimeoutWhenProcessingTheDepTreeError
948
+ * @description There was an timeout when processing the dependecy tree.
949
+ * @summary Timeout when processing the dependency tree
911
950
  * @category OpenSourceEcosystems
912
951
  * @param {string} details the specific details that causes this error
913
952
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
914
953
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
915
954
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
916
955
  */
917
- class MissingRequirementFromPomError extends problem_error_1.ProblemError {
956
+ class TimeoutWhenProcessingTheDepTreeError extends problem_error_1.ProblemError {
918
957
  constructor(details, additionalData, cause, instance) {
919
958
  super({
920
- title: 'Missing property',
921
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0001',
959
+ title: 'Timeout when processing the dependency tree',
960
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0016',
922
961
  status: 422,
923
- errorCode: 'SNYK-OS-MAVEN-0001',
962
+ errorCode: 'SNYK-OS-MAVEN-0016',
924
963
  level: 'error',
925
964
  instance,
926
965
  }, details, Object.assign({ links: [] }, additionalData), cause);
927
966
  this.name = this.constructor.name;
928
967
  }
929
968
  }
930
- exports.MissingRequirementFromPomError = MissingRequirementFromPomError;
969
+ exports.TimeoutWhenProcessingTheDepTreeError = TimeoutWhenProcessingTheDepTreeError;
931
970
  /**
932
971
  * @class
933
- * @name UnableToResolveValueForPropertyError
934
- * @description The targeted property could not be resolved with a valid value.
935
- * @summary Unable to resolve value for property
972
+ * @name NoRepoFoundForTheNPMPackageError
973
+ * @description No repository found for the NPM package.
974
+ * @summary No repository found for A NPM package
936
975
  * @category OpenSourceEcosystems
937
976
  * @param {string} details the specific details that causes this error
938
977
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
939
978
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
940
979
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
941
980
  */
942
- class UnableToResolveValueForPropertyError extends problem_error_1.ProblemError {
981
+ class NoRepoFoundForTheNPMPackageError extends problem_error_1.ProblemError {
943
982
  constructor(details, additionalData, cause, instance) {
944
983
  super({
945
- title: 'Unable to resolve value for property',
946
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0002',
984
+ title: 'No repository found for A NPM package',
985
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0001',
947
986
  status: 422,
948
- errorCode: 'SNYK-OS-MAVEN-0002',
987
+ errorCode: 'SNYK-OS-NODEJS-0001',
949
988
  level: 'error',
950
989
  instance,
951
990
  }, details, Object.assign({ links: [] }, additionalData), cause);
952
991
  this.name = this.constructor.name;
953
992
  }
954
993
  }
955
- exports.UnableToResolveValueForPropertyError = UnableToResolveValueForPropertyError;
994
+ exports.NoRepoFoundForTheNPMPackageError = NoRepoFoundForTheNPMPackageError;
956
995
  /**
957
996
  * @class
958
- * @name UnableToResolveVersionForPropertyError
959
- * @description The targeted property could not be resolved with a valid version.
960
- * @summary Unable to resolve version for property
997
+ * @name CouldNotParseNPMRegistryURLError
998
+ * @description Could not parse NPM registry URL.
999
+ * @summary Could not parse NPM registry URL
961
1000
  * @category OpenSourceEcosystems
962
1001
  * @param {string} details the specific details that causes this error
963
1002
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
964
1003
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
965
1004
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
966
1005
  */
967
- class UnableToResolveVersionForPropertyError extends problem_error_1.ProblemError {
1006
+ class CouldNotParseNPMRegistryURLError extends problem_error_1.ProblemError {
968
1007
  constructor(details, additionalData, cause, instance) {
969
1008
  super({
970
- title: 'Unable to resolve version for property',
971
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0003',
1009
+ title: 'Could not parse NPM registry URL',
1010
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0002',
972
1011
  status: 422,
973
- errorCode: 'SNYK-OS-MAVEN-0003',
1012
+ errorCode: 'SNYK-OS-NODEJS-0002',
974
1013
  level: 'error',
975
1014
  instance,
976
1015
  }, details, Object.assign({ links: [] }, additionalData), cause);
977
1016
  this.name = this.constructor.name;
978
1017
  }
979
1018
  }
980
- exports.UnableToResolveVersionForPropertyError = UnableToResolveVersionForPropertyError;
1019
+ exports.CouldNotParseNPMRegistryURLError = CouldNotParseNPMRegistryURLError;
981
1020
  /**
982
1021
  * @class
983
- * @name CyclicPropertyDetectedInPomFileError
984
- * @description There is circular dependency among properties in the Maven project's configuration file (POM), preventing proper resolution and causing an error.
985
- * @summary Cyclic property detected in POM file
1022
+ * @name CouldNotFindBrokerURLError
1023
+ * @description Could not find a broker resolved URL.
1024
+ * @summary Could not find a broker resolved URL
986
1025
  * @category OpenSourceEcosystems
987
1026
  * @param {string} details the specific details that causes this error
988
1027
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
989
1028
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
990
1029
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
991
1030
  */
992
- class CyclicPropertyDetectedInPomFileError extends problem_error_1.ProblemError {
1031
+ class CouldNotFindBrokerURLError extends problem_error_1.ProblemError {
993
1032
  constructor(details, additionalData, cause, instance) {
994
1033
  super({
995
- title: 'Cyclic property detected in POM file',
996
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0004',
1034
+ title: 'Could not find a broker resolved URL',
1035
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0003',
997
1036
  status: 422,
998
- errorCode: 'SNYK-OS-MAVEN-0004',
1037
+ errorCode: 'SNYK-OS-NODEJS-0003',
999
1038
  level: 'error',
1000
1039
  instance,
1001
1040
  }, details, Object.assign({ links: [] }, additionalData), cause);
1002
1041
  this.name = this.constructor.name;
1003
1042
  }
1004
1043
  }
1005
- exports.CyclicPropertyDetectedInPomFileError = CyclicPropertyDetectedInPomFileError;
1044
+ exports.CouldNotFindBrokerURLError = CouldNotFindBrokerURLError;
1006
1045
  /**
1007
1046
  * @class
1008
- * @name UnableToParseXMLError
1009
- * @description There is an error parsing the XML file. This could be referring to either pom.xml or maven-metadata.xml.
1010
- * @summary Error parsing the XML file
1047
+ * @name UnableToReplaceBrokerURLError
1048
+ * @description Unable to replace all broker urls in lock file.
1049
+ * @summary Unable to replace broker URL
1011
1050
  * @category OpenSourceEcosystems
1012
1051
  * @param {string} details the specific details that causes this error
1013
1052
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1014
1053
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1015
1054
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1016
1055
  */
1017
- class UnableToParseXMLError extends problem_error_1.ProblemError {
1056
+ class UnableToReplaceBrokerURLError extends problem_error_1.ProblemError {
1018
1057
  constructor(details, additionalData, cause, instance) {
1019
1058
  super({
1020
- title: 'Error parsing the XML file',
1021
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0005',
1022
- status: 500,
1023
- errorCode: 'SNYK-OS-MAVEN-0005',
1059
+ title: 'Unable to replace broker URL',
1060
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0004',
1061
+ status: 422,
1062
+ errorCode: 'SNYK-OS-NODEJS-0004',
1024
1063
  level: 'error',
1025
1064
  instance,
1026
1065
  }, details, Object.assign({ links: [] }, additionalData), cause);
1027
1066
  this.name = this.constructor.name;
1028
1067
  }
1029
1068
  }
1030
- exports.UnableToParseXMLError = UnableToParseXMLError;
1069
+ exports.UnableToReplaceBrokerURLError = UnableToReplaceBrokerURLError;
1031
1070
  /**
1032
1071
  * @class
1033
- * @name InvalidCoordinatesError
1034
- * @description The coordinates provided for a project were invalid.
1035
- * @summary Invalid coordinates provided
1072
+ * @name BadNPMVersionError
1073
+ * @description The NPM version is not supported.
1074
+ * @summary Bad NPM version
1036
1075
  * @category OpenSourceEcosystems
1037
1076
  * @param {string} details the specific details that causes this error
1038
1077
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1039
1078
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1040
1079
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1041
1080
  */
1042
- class InvalidCoordinatesError extends problem_error_1.ProblemError {
1081
+ class BadNPMVersionError extends problem_error_1.ProblemError {
1043
1082
  constructor(details, additionalData, cause, instance) {
1044
1083
  super({
1045
- title: 'Invalid coordinates provided',
1046
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0006',
1084
+ title: 'Bad NPM version',
1085
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0005',
1047
1086
  status: 422,
1048
- errorCode: 'SNYK-OS-MAVEN-0006',
1087
+ errorCode: 'SNYK-OS-NODEJS-0005',
1049
1088
  level: 'error',
1050
1089
  instance,
1051
1090
  }, details, Object.assign({ links: [] }, additionalData), cause);
1052
1091
  this.name = this.constructor.name;
1053
1092
  }
1054
1093
  }
1055
- exports.InvalidCoordinatesError = InvalidCoordinatesError;
1094
+ exports.BadNPMVersionError = BadNPMVersionError;
1056
1095
  /**
1057
1096
  * @class
1058
- * @name SkippedGroupError
1059
- * @description Skipping a specific groupId starting due to remapped coordinates.
1060
- * @summary Skipping group
1097
+ * @name UnknownBlobEncodingOnGithubError
1098
+ * @description Unknown blob encoding on Github.
1099
+ * @summary Unknown blob encoding on Github
1061
1100
  * @category OpenSourceEcosystems
1062
1101
  * @param {string} details the specific details that causes this error
1063
1102
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1064
1103
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1065
1104
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1066
1105
  */
1067
- class SkippedGroupError extends problem_error_1.ProblemError {
1106
+ class UnknownBlobEncodingOnGithubError extends problem_error_1.ProblemError {
1068
1107
  constructor(details, additionalData, cause, instance) {
1069
1108
  super({
1070
- title: 'Skipping group',
1071
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0007',
1109
+ title: 'Unknown blob encoding on Github',
1110
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0006',
1072
1111
  status: 422,
1073
- errorCode: 'SNYK-OS-MAVEN-0007',
1112
+ errorCode: 'SNYK-OS-NODEJS-0006',
1074
1113
  level: 'error',
1075
1114
  instance,
1076
1115
  }, details, Object.assign({ links: [] }, additionalData), cause);
1077
1116
  this.name = this.constructor.name;
1078
1117
  }
1079
1118
  }
1080
- exports.SkippedGroupError = SkippedGroupError;
1119
+ exports.UnknownBlobEncodingOnGithubError = UnknownBlobEncodingOnGithubError;
1081
1120
  /**
1082
1121
  * @class
1083
- * @name PomFileNotFoundError
1084
- * @description The pom file was not found in Maven repository.
1085
- * @summary Pom file not found
1122
+ * @name NoResultsFromForkerProcessesError
1123
+ * @description No result from forked process.
1124
+ * @summary No result from forked process
1086
1125
  * @category OpenSourceEcosystems
1087
1126
  * @param {string} details the specific details that causes this error
1088
1127
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1089
1128
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1090
1129
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1091
1130
  */
1092
- class PomFileNotFoundError extends problem_error_1.ProblemError {
1131
+ class NoResultsFromForkerProcessesError extends problem_error_1.ProblemError {
1093
1132
  constructor(details, additionalData, cause, instance) {
1094
1133
  super({
1095
- title: 'Pom file not found',
1096
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0008',
1097
- status: 422,
1098
- errorCode: 'SNYK-OS-MAVEN-0008',
1134
+ title: 'No result from forked process',
1135
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0007',
1136
+ status: 500,
1137
+ errorCode: 'SNYK-OS-NODEJS-0007',
1099
1138
  level: 'error',
1100
1139
  instance,
1101
1140
  }, details, Object.assign({ links: [] }, additionalData), cause);
1102
1141
  this.name = this.constructor.name;
1103
1142
  }
1104
1143
  }
1105
- exports.PomFileNotFoundError = PomFileNotFoundError;
1144
+ exports.NoResultsFromForkerProcessesError = NoResultsFromForkerProcessesError;
1106
1145
  /**
1107
1146
  * @class
1108
- * @name MissingProjectFromPomError
1109
- * @description A project element is missing from POM.
1110
- * @summary Missing project from POM
1147
+ * @name ChildProcessExecutionError
1148
+ * @description The child process encountered an error during execution.
1149
+ * @summary Child Process Execution Error
1111
1150
  * @category OpenSourceEcosystems
1112
1151
  * @param {string} details the specific details that causes this error
1113
1152
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1114
1153
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1115
1154
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1116
1155
  */
1117
- class MissingProjectFromPomError extends problem_error_1.ProblemError {
1156
+ class ChildProcessExecutionError extends problem_error_1.ProblemError {
1118
1157
  constructor(details, additionalData, cause, instance) {
1119
1158
  super({
1120
- title: 'Missing project from POM',
1121
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0009',
1122
- status: 422,
1123
- errorCode: 'SNYK-OS-MAVEN-0009',
1159
+ title: 'Child Process Execution Error',
1160
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0008',
1161
+ status: 500,
1162
+ errorCode: 'SNYK-OS-NODEJS-0008',
1124
1163
  level: 'error',
1125
1164
  instance,
1126
1165
  }, details, Object.assign({ links: [] }, additionalData), cause);
1127
1166
  this.name = this.constructor.name;
1128
1167
  }
1129
1168
  }
1130
- exports.MissingProjectFromPomError = MissingProjectFromPomError;
1169
+ exports.ChildProcessExecutionError = ChildProcessExecutionError;
1131
1170
  /**
1132
1171
  * @class
1133
- * @name CannotResolveTargetPomFromXmlError
1134
- * @description Cannot resolve the targeted POM from the input XML.
1135
- * @summary Cannot resolve the target POM from the input XML
1172
+ * @name NoValidPackageUpgradesError
1173
+ * @description The system attempted to find valid upgrades for the packages specified in the lock file, but none were available.
1174
+ * @summary No valid package upgrades
1136
1175
  * @category OpenSourceEcosystems
1137
1176
  * @param {string} details the specific details that causes this error
1138
1177
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1139
1178
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1140
1179
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1141
1180
  */
1142
- class CannotResolveTargetPomFromXmlError extends problem_error_1.ProblemError {
1181
+ class NoValidPackageUpgradesError extends problem_error_1.ProblemError {
1143
1182
  constructor(details, additionalData, cause, instance) {
1144
1183
  super({
1145
- title: 'Cannot resolve the target POM from the input XML',
1146
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0010',
1184
+ title: 'No valid package upgrades',
1185
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0009',
1147
1186
  status: 422,
1148
- errorCode: 'SNYK-OS-MAVEN-0010',
1187
+ errorCode: 'SNYK-OS-NODEJS-0009',
1149
1188
  level: 'error',
1150
1189
  instance,
1151
1190
  }, details, Object.assign({ links: [] }, additionalData), cause);
1152
1191
  this.name = this.constructor.name;
1153
1192
  }
1154
1193
  }
1155
- exports.CannotResolveTargetPomFromXmlError = CannotResolveTargetPomFromXmlError;
1194
+ exports.NoValidPackageUpgradesError = NoValidPackageUpgradesError;
1156
1195
  /**
1157
1196
  * @class
1158
- * @name CannotResolveTargetPomFromRepoError
1159
- * @description Cannot resolve the targeted POM from the repository.
1160
- * @summary Cannot resolve the target POM from the repository
1197
+ * @name NoDependencyUpdatesError
1198
+ * @description There are no available updates for the dependencies.
1199
+ * @summary No dependency updates
1161
1200
  * @category OpenSourceEcosystems
1162
1201
  * @param {string} details the specific details that causes this error
1163
1202
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1164
1203
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1165
1204
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1166
1205
  */
1167
- class CannotResolveTargetPomFromRepoError extends problem_error_1.ProblemError {
1206
+ class NoDependencyUpdatesError extends problem_error_1.ProblemError {
1168
1207
  constructor(details, additionalData, cause, instance) {
1169
1208
  super({
1170
- title: 'Cannot resolve the target POM from the repository',
1171
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0011',
1172
- status: 404,
1173
- errorCode: 'SNYK-OS-MAVEN-0011',
1209
+ title: 'No dependency updates',
1210
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0010',
1211
+ status: 422,
1212
+ errorCode: 'SNYK-OS-NODEJS-0010',
1174
1213
  level: 'error',
1175
1214
  instance,
1176
1215
  }, details, Object.assign({ links: [] }, additionalData), cause);
1177
1216
  this.name = this.constructor.name;
1178
1217
  }
1179
1218
  }
1180
- exports.CannotResolveTargetPomFromRepoError = CannotResolveTargetPomFromRepoError;
1219
+ exports.NoDependencyUpdatesError = NoDependencyUpdatesError;
1181
1220
  /**
1182
1221
  * @class
1183
- * @name CannotGetBuildFileFromRepoError
1184
- * @description Cannot get the build file repository.
1185
- * @summary Cannot get the build file repository
1222
+ * @name CouldNotParseJSONFileError
1223
+ * @description An error occurred while attempting to parse a JSON file.
1224
+ * @summary Could not parse JSON file
1186
1225
  * @category OpenSourceEcosystems
1187
1226
  * @param {string} details the specific details that causes this error
1188
1227
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1189
1228
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1190
1229
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1191
1230
  */
1192
- class CannotGetBuildFileFromRepoError extends problem_error_1.ProblemError {
1231
+ class CouldNotParseJSONFileError extends problem_error_1.ProblemError {
1193
1232
  constructor(details, additionalData, cause, instance) {
1194
1233
  super({
1195
- title: 'Cannot get the build file repository',
1196
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0012',
1197
- status: 404,
1198
- errorCode: 'SNYK-OS-MAVEN-0012',
1234
+ title: 'Could not parse JSON file',
1235
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0011',
1236
+ status: 422,
1237
+ errorCode: 'SNYK-OS-NODEJS-0011',
1199
1238
  level: 'error',
1200
1239
  instance,
1201
1240
  }, details, Object.assign({ links: [] }, additionalData), cause);
1202
1241
  this.name = this.constructor.name;
1203
1242
  }
1204
1243
  }
1205
- exports.CannotGetBuildFileFromRepoError = CannotGetBuildFileFromRepoError;
1244
+ exports.CouldNotParseJSONFileError = CouldNotParseJSONFileError;
1206
1245
  /**
1207
1246
  * @class
1208
- * @name CannotCreateGitHostError
1209
- * @description Cannot create source URL.
1210
- * @summary Unable to create hosted git info
1247
+ * @name Base64EncodeError
1248
+ * @description An error occurred while attempting to perform Base64 encoding.
1249
+ * @summary Could not Base64 encode
1211
1250
  * @category OpenSourceEcosystems
1212
1251
  * @param {string} details the specific details that causes this error
1213
1252
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1214
1253
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1215
1254
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1216
1255
  */
1217
- class CannotCreateGitHostError extends problem_error_1.ProblemError {
1256
+ class Base64EncodeError extends problem_error_1.ProblemError {
1218
1257
  constructor(details, additionalData, cause, instance) {
1219
1258
  super({
1220
- title: 'Unable to create hosted git info',
1221
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0013',
1222
- status: 500,
1223
- errorCode: 'SNYK-OS-MAVEN-0013',
1259
+ title: 'Could not Base64 encode',
1260
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0012',
1261
+ status: 422,
1262
+ errorCode: 'SNYK-OS-NODEJS-0012',
1224
1263
  level: 'error',
1225
1264
  instance,
1226
1265
  }, details, Object.assign({ links: [] }, additionalData), cause);
1227
1266
  this.name = this.constructor.name;
1228
1267
  }
1229
1268
  }
1230
- exports.CannotCreateGitHostError = CannotCreateGitHostError;
1269
+ exports.Base64EncodeError = Base64EncodeError;
1231
1270
  /**
1232
1271
  * @class
1233
- * @name NoRepoFoundForTheNPMPackageError
1234
- * @description No repository found for the NPM package.
1235
- * @summary No repository found for A NPM package
1272
+ * @name Base64DecodeError
1273
+ * @description An error occurred while attempting to perform Base64 decoding.
1274
+ * @summary Could not Base64 decode
1236
1275
  * @category OpenSourceEcosystems
1237
1276
  * @param {string} details the specific details that causes this error
1238
1277
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1239
1278
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1240
1279
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1241
1280
  */
1242
- class NoRepoFoundForTheNPMPackageError extends problem_error_1.ProblemError {
1281
+ class Base64DecodeError extends problem_error_1.ProblemError {
1243
1282
  constructor(details, additionalData, cause, instance) {
1244
1283
  super({
1245
- title: 'No repository found for A NPM package',
1246
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0001',
1284
+ title: 'Could not Base64 decode',
1285
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0013',
1247
1286
  status: 422,
1248
- errorCode: 'SNYK-OS-NODEJS-0001',
1287
+ errorCode: 'SNYK-OS-NODEJS-0013',
1249
1288
  level: 'error',
1250
1289
  instance,
1251
1290
  }, details, Object.assign({ links: [] }, additionalData), cause);
1252
1291
  this.name = this.constructor.name;
1253
1292
  }
1254
1293
  }
1255
- exports.NoRepoFoundForTheNPMPackageError = NoRepoFoundForTheNPMPackageError;
1294
+ exports.Base64DecodeError = Base64DecodeError;
1256
1295
  /**
1257
1296
  * @class
1258
- * @name CouldNotParseNPMRegistryURLError
1259
- * @description Could not parse NPM registry URL.
1260
- * @summary Could not parse NPM registry URL
1297
+ * @name MissingSupportedFileError
1298
+ * @description Could not find supported file.
1299
+ * @summary Missing supported file
1261
1300
  * @category OpenSourceEcosystems
1262
1301
  * @param {string} details the specific details that causes this error
1263
1302
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1264
1303
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1265
1304
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1266
1305
  */
1267
- class CouldNotParseNPMRegistryURLError extends problem_error_1.ProblemError {
1306
+ class MissingSupportedFileError extends problem_error_1.ProblemError {
1268
1307
  constructor(details, additionalData, cause, instance) {
1269
1308
  super({
1270
- title: 'Could not parse NPM registry URL',
1271
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0002',
1272
- status: 422,
1273
- errorCode: 'SNYK-OS-NODEJS-0002',
1309
+ title: 'Missing supported file',
1310
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0014',
1311
+ status: 400,
1312
+ errorCode: 'SNYK-OS-NODEJS-0014',
1274
1313
  level: 'error',
1275
1314
  instance,
1276
1315
  }, details, Object.assign({ links: [] }, additionalData), cause);
1277
1316
  this.name = this.constructor.name;
1278
1317
  }
1279
1318
  }
1280
- exports.CouldNotParseNPMRegistryURLError = CouldNotParseNPMRegistryURLError;
1319
+ exports.MissingSupportedFileError = MissingSupportedFileError;
1281
1320
  /**
1282
1321
  * @class
1283
- * @name CouldNotFindBrokerURLError
1284
- * @description Could not find a broker resolved URL.
1285
- * @summary Could not find a broker resolved URL
1322
+ * @name InvalidConfigurationError
1323
+ * @description The configuration parameter does not meet the expected data type. Please ensure the provided value is of the correct data type.
1324
+ * @summary Invalid configuration
1286
1325
  * @category OpenSourceEcosystems
1287
1326
  * @param {string} details the specific details that causes this error
1288
1327
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1289
1328
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1290
1329
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1291
1330
  */
1292
- class CouldNotFindBrokerURLError extends problem_error_1.ProblemError {
1331
+ class InvalidConfigurationError extends problem_error_1.ProblemError {
1293
1332
  constructor(details, additionalData, cause, instance) {
1294
1333
  super({
1295
- title: 'Could not find a broker resolved URL',
1296
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0003',
1297
- status: 422,
1298
- errorCode: 'SNYK-OS-NODEJS-0003',
1299
- level: 'error',
1334
+ title: 'Invalid configuration',
1335
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0015',
1336
+ status: 400,
1337
+ errorCode: 'SNYK-OS-NODEJS-0015',
1338
+ level: 'warn',
1300
1339
  instance,
1301
1340
  }, details, Object.assign({ links: [] }, additionalData), cause);
1302
1341
  this.name = this.constructor.name;
1303
1342
  }
1304
1343
  }
1305
- exports.CouldNotFindBrokerURLError = CouldNotFindBrokerURLError;
1344
+ exports.InvalidConfigurationError = InvalidConfigurationError;
1306
1345
  /**
1307
1346
  * @class
1308
- * @name UnableToReplaceBrokerURLError
1309
- * @description Unable to replace all broker urls in lock file.
1310
- * @summary Unable to replace broker URL
1347
+ * @name UnsupportedRequirementsFileError
1348
+ * @description The provided requirements file is not supported by Snyk for Python.
1349
+ *
1350
+ * See more:
1351
+ * - [https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/python](https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/python)
1352
+ * @summary Unsupported manifest file type for remediation
1311
1353
  * @category OpenSourceEcosystems
1312
1354
  * @param {string} details the specific details that causes this error
1313
1355
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1314
1356
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1315
1357
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1316
1358
  */
1317
- class UnableToReplaceBrokerURLError extends problem_error_1.ProblemError {
1359
+ class UnsupportedRequirementsFileError extends problem_error_1.ProblemError {
1318
1360
  constructor(details, additionalData, cause, instance) {
1319
1361
  super({
1320
- title: 'Unable to replace broker URL',
1321
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0004',
1362
+ title: 'Unsupported manifest file type for remediation',
1363
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-pip-0001',
1322
1364
  status: 422,
1323
- errorCode: 'SNYK-OS-NODEJS-0004',
1365
+ errorCode: 'SNYK-OS-PIP-0001',
1324
1366
  level: 'error',
1325
1367
  instance,
1326
- }, details, Object.assign({ links: [] }, additionalData), cause);
1368
+ }, details, Object.assign({ links: [
1369
+ 'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/python',
1370
+ ] }, additionalData), cause);
1327
1371
  this.name = this.constructor.name;
1328
1372
  }
1329
1373
  }
1330
- exports.UnableToReplaceBrokerURLError = UnableToReplaceBrokerURLError;
1374
+ exports.UnsupportedRequirementsFileError = UnsupportedRequirementsFileError;
1331
1375
  /**
1332
1376
  * @class
1333
- * @name BadNPMVersionError
1334
- * @description The NPM version is not supported.
1335
- * @summary Bad NPM version
1377
+ * @name TooManyManifestFilesError
1378
+ * @description Too many manifest files were provided in the request body.
1379
+ * @summary Received more manifests than expected
1336
1380
  * @category OpenSourceEcosystems
1337
1381
  * @param {string} details the specific details that causes this error
1338
1382
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1339
1383
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1340
1384
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1341
1385
  */
1342
- class BadNPMVersionError extends problem_error_1.ProblemError {
1386
+ class TooManyManifestFilesError extends problem_error_1.ProblemError {
1343
1387
  constructor(details, additionalData, cause, instance) {
1344
1388
  super({
1345
- title: 'Bad NPM version',
1346
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0005',
1389
+ title: 'Received more manifests than expected',
1390
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-pip-0002',
1347
1391
  status: 422,
1348
- errorCode: 'SNYK-OS-NODEJS-0005',
1392
+ errorCode: 'SNYK-OS-PIP-0002',
1349
1393
  level: 'error',
1350
1394
  instance,
1351
1395
  }, details, Object.assign({ links: [] }, additionalData), cause);
1352
1396
  this.name = this.constructor.name;
1353
1397
  }
1354
1398
  }
1355
- exports.BadNPMVersionError = BadNPMVersionError;
1399
+ exports.TooManyManifestFilesError = TooManyManifestFilesError;
1356
1400
  /**
1357
1401
  * @class
1358
- * @name UnsupportedRequirementsFileError
1359
- * @description The provided requirements file is not supported by Snyk for Python.
1360
- *
1361
- * See more:
1362
- * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-python#git-services-for-pip-projects](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-python#git-services-for-pip-projects)
1363
- * @summary Unsupported manifest file type for remediation
1402
+ * @name FailedToApplyDependencyUpdatesError
1403
+ * @description An error occured while updating dependencies.
1404
+ * @summary Failed to apply dependency updates
1364
1405
  * @category OpenSourceEcosystems
1365
1406
  * @param {string} details the specific details that causes this error
1366
1407
  * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1367
1408
  * @param {Error} [cause] the `Error` type that caused this error to be thrown
1368
1409
  * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1369
1410
  */
1370
- class UnsupportedRequirementsFileError extends problem_error_1.ProblemError {
1411
+ class FailedToApplyDependencyUpdatesError extends problem_error_1.ProblemError {
1371
1412
  constructor(details, additionalData, cause, instance) {
1372
1413
  super({
1373
- title: 'Unsupported manifest file type for remediation',
1374
- type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-pip-0001',
1414
+ title: 'Failed to apply dependency updates',
1415
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-pip-0003',
1375
1416
  status: 422,
1376
- errorCode: 'SNYK-OS-PIP-0001',
1417
+ errorCode: 'SNYK-OS-PIP-0003',
1377
1418
  level: 'error',
1378
1419
  instance,
1379
- }, details, Object.assign({ links: [
1380
- 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-python#git-services-for-pip-projects',
1381
- ] }, additionalData), cause);
1420
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1382
1421
  this.name = this.constructor.name;
1383
1422
  }
1384
1423
  }
1385
- exports.UnsupportedRequirementsFileError = UnsupportedRequirementsFileError;
1424
+ exports.FailedToApplyDependencyUpdatesError = FailedToApplyDependencyUpdatesError;
1386
1425
  //# sourceMappingURL=OpenSourceEcosystems-error-catalog.js.map