@snyk/error-catalog-nodejs-public 3.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +7 -0
  2. package/package.json +15 -0
  3. package/src/catalogs/Fix-error-catalog.d.ts +100 -0
  4. package/src/catalogs/Fix-error-catalog.js +180 -0
  5. package/src/catalogs/Fix-error-catalog.js.map +1 -0
  6. package/src/catalogs/IsolatedBuilds-error-catalog.d.ts +32 -0
  7. package/src/catalogs/IsolatedBuilds-error-catalog.js +60 -0
  8. package/src/catalogs/IsolatedBuilds-error-catalog.js.map +1 -0
  9. package/src/catalogs/OpenAPI-error-catalog.d.ts +119 -0
  10. package/src/catalogs/OpenAPI-error-catalog.js +215 -0
  11. package/src/catalogs/OpenAPI-error-catalog.js.map +1 -0
  12. package/src/catalogs/OpenSourceEcosystems-error-catalog.d.ts +771 -0
  13. package/src/catalogs/OpenSourceEcosystems-error-catalog.js +1371 -0
  14. package/src/catalogs/OpenSourceEcosystems-error-catalog.js.map +1 -0
  15. package/src/catalogs/OpenSourceProjectIssues-error-catalog.d.ts +71 -0
  16. package/src/catalogs/OpenSourceProjectIssues-error-catalog.js +130 -0
  17. package/src/catalogs/OpenSourceProjectIssues-error-catalog.js.map +1 -0
  18. package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.d.ts +71 -0
  19. package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js +130 -0
  20. package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js.map +1 -0
  21. package/src/catalogs/OpenSourceUnmanaged-error-catalog.d.ts +36 -0
  22. package/src/catalogs/OpenSourceUnmanaged-error-catalog.js +67 -0
  23. package/src/catalogs/OpenSourceUnmanaged-error-catalog.js.map +1 -0
  24. package/src/catalogs/PurlVulnerabilityFetching-error-catalog.d.ts +290 -0
  25. package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js +520 -0
  26. package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js.map +1 -0
  27. package/src/catalogs/SbomExport-error-catalog.d.ts +130 -0
  28. package/src/catalogs/SbomExport-error-catalog.js +235 -0
  29. package/src/catalogs/SbomExport-error-catalog.js.map +1 -0
  30. package/src/catalogs/Snyk-error-catalog.d.ts +94 -0
  31. package/src/catalogs/Snyk-error-catalog.js +170 -0
  32. package/src/catalogs/Snyk-error-catalog.js.map +1 -0
  33. package/src/catalogs/error-catalog.d.ts +10 -0
  34. package/src/catalogs/error-catalog.js +14 -0
  35. package/src/catalogs/error-catalog.js.map +1 -0
  36. package/src/catalogs/error-codes.d.ts +138 -0
  37. package/src/catalogs/error-codes.js +140 -0
  38. package/src/catalogs/error-codes.js.map +1 -0
  39. package/src/composite-error.d.ts +13 -0
  40. package/src/composite-error.js +27 -0
  41. package/src/composite-error.js.map +1 -0
  42. package/src/index.d.ts +3 -0
  43. package/src/index.js +7 -0
  44. package/src/index.js.map +1 -0
  45. package/src/problem-error.d.ts +20 -0
  46. package/src/problem-error.js +78 -0
  47. package/src/problem-error.js.map +1 -0
  48. package/src/types.d.ts +66 -0
  49. package/src/types.js +35 -0
  50. package/src/types.js.map +1 -0
  51. package/src/util/index.d.ts +1 -0
  52. package/src/util/index.js +5 -0
  53. package/src/util/index.js.map +1 -0
  54. package/src/util/json-api.d.ts +7 -0
  55. package/src/util/json-api.js +70 -0
  56. package/src/util/json-api.js.map +1 -0
@@ -0,0 +1,771 @@
1
+ import { ProblemError } from '../problem-error';
2
+ /**
3
+ * @class
4
+ * @name UnsupportedEcosystemError
5
+ * @description The language or package manager is not supported.
6
+ *
7
+ * See more:
8
+ * - [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)
9
+ * @summary Unsupported Ecosystem
10
+ * @category OpenSourceEcosystems
11
+ * @param {string} details the specific details that causes this error
12
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
13
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
14
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
15
+ */
16
+ export declare class UnsupportedEcosystemError extends ProblemError {
17
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
18
+ }
19
+ /**
20
+ * @class
21
+ * @name UnparseableManifestError
22
+ * @description The provided manifest file could not be parsed as it has invalid syntax or does not match the expected schema. Review the manifest file, then try again.
23
+ * @summary Unable to parse manifest file
24
+ * @category OpenSourceEcosystems
25
+ * @param {string} details the specific details that causes this error
26
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
27
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
28
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
29
+ */
30
+ export declare class UnparseableManifestError extends ProblemError {
31
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
32
+ }
33
+ /**
34
+ * @class
35
+ * @name LockFileOutOfSyncError
36
+ * @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.
37
+ * @summary Lock file out of sync with manifest file
38
+ * @category OpenSourceEcosystems
39
+ * @param {string} details the specific details that causes this error
40
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
41
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
42
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
43
+ */
44
+ export declare class LockFileOutOfSyncError extends ProblemError {
45
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
46
+ }
47
+ /**
48
+ * @class
49
+ * @name UnparseableLockFileError
50
+ * @description The provided lock file could not be parsed as it has invalid syntax or does not match the expected schema. Review the lock file, then try again.
51
+ * @summary Unable to parse lock file
52
+ * @category OpenSourceEcosystems
53
+ * @param {string} details the specific details that causes this error
54
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
55
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
56
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
57
+ */
58
+ export declare class UnparseableLockFileError extends ProblemError {
59
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
60
+ }
61
+ /**
62
+ * @class
63
+ * @name UnknownDependencyVersionError
64
+ * @description Dependency version could not be resolved.
65
+ *
66
+ * See more:
67
+ * - [https://support.snyk.io/hc/en-us/articles/360001373178-Could-not-determine-version-for-dependencies](https://support.snyk.io/hc/en-us/articles/360001373178-Could-not-determine-version-for-dependencies)
68
+ * @summary Unknown dependency version
69
+ * @category OpenSourceEcosystems
70
+ * @param {string} details the specific details that causes this error
71
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
72
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
73
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
74
+ */
75
+ export declare class UnknownDependencyVersionError extends ProblemError {
76
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
77
+ }
78
+ /**
79
+ * @class
80
+ * @name MissingPayloadError
81
+ * @description The server could not process the request.
82
+ * @summary Payload missing required elements
83
+ * @category OpenSourceEcosystems
84
+ * @param {string} details the specific details that causes this error
85
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
86
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
87
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
88
+ */
89
+ export declare class MissingPayloadError extends ProblemError {
90
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
91
+ }
92
+ /**
93
+ * @class
94
+ * @name UnprocessableFileError
95
+ * @description The dependency service could not process the files.
96
+ * @summary Files cannot be processed
97
+ * @category OpenSourceEcosystems
98
+ * @param {string} details the specific details that causes this error
99
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
100
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
101
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
102
+ */
103
+ export declare class UnprocessableFileError extends ProblemError {
104
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
105
+ }
106
+ /**
107
+ * @class
108
+ * @name SourceNotSupportedError
109
+ * @description The source used is not supported by fetcher. The supported sources are: github, bitbucket, gitlab.
110
+ * @summary Source is not supported
111
+ * @category OpenSourceEcosystems
112
+ * @param {string} details the specific details that causes this error
113
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
114
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
115
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
116
+ */
117
+ export declare class SourceNotSupportedError extends ProblemError {
118
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
119
+ }
120
+ /**
121
+ * @class
122
+ * @name CannotGetFileFromSourceError
123
+ * @description Could not get the file from the source URL.
124
+ * @summary Cannot get file from source
125
+ * @category OpenSourceEcosystems
126
+ * @param {string} details the specific details that causes this error
127
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
128
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
129
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
130
+ */
131
+ export declare class CannotGetFileFromSourceError extends ProblemError {
132
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
133
+ }
134
+ /**
135
+ * @class
136
+ * @name NoReleasedVersionForVersionsRangeError
137
+ * @description There was no version released for the specified versions range.
138
+ * @summary No released version for versions range
139
+ * @category OpenSourceEcosystems
140
+ * @param {string} details the specific details that causes this error
141
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
142
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
143
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
144
+ */
145
+ export declare class NoReleasedVersionForVersionsRangeError extends ProblemError {
146
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
147
+ }
148
+ /**
149
+ * @class
150
+ * @name TimeoutWhenProcessingTheDepTreeError
151
+ * @description There was an timeout when processing the dependecy tree.
152
+ * @summary Timeout when processing the dependency tree
153
+ * @category OpenSourceEcosystems
154
+ * @param {string} details the specific details that causes this error
155
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
156
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
157
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
158
+ */
159
+ export declare class TimeoutWhenProcessingTheDepTreeError extends ProblemError {
160
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
161
+ }
162
+ /**
163
+ * @class
164
+ * @name TooManyManifestFilesError
165
+ * @description Too many manifest files were provided in the request body.
166
+ * @summary Received more manifests than expected
167
+ * @category OpenSourceEcosystems
168
+ * @param {string} details the specific details that causes this error
169
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
170
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
171
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
172
+ */
173
+ export declare class TooManyManifestFilesError extends ProblemError {
174
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
175
+ }
176
+ /**
177
+ * @class
178
+ * @name FailedToApplyDependencyUpdatesError
179
+ * @description An error occured while updating dependencies.
180
+ * @summary Failed to apply dependency updates
181
+ * @category OpenSourceEcosystems
182
+ * @param {string} details the specific details that causes this error
183
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
184
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
185
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
186
+ */
187
+ export declare class FailedToApplyDependencyUpdatesError extends ProblemError {
188
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
189
+ }
190
+ /**
191
+ * @class
192
+ * @name UnknownBlobEncodingOnGithubError
193
+ * @description Unknown blob encoding on Github.
194
+ * @summary Unknown blob encoding on Github
195
+ * @category OpenSourceEcosystems
196
+ * @param {string} details the specific details that causes this error
197
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
198
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
199
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
200
+ */
201
+ export declare class UnknownBlobEncodingOnGithubError extends ProblemError {
202
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
203
+ }
204
+ /**
205
+ * @class
206
+ * @name NoResultsFromForkerProcessesError
207
+ * @description No result from forked process.
208
+ * @summary No result from forked process
209
+ * @category OpenSourceEcosystems
210
+ * @param {string} details the specific details that causes this error
211
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
212
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
213
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
214
+ */
215
+ export declare class NoResultsFromForkerProcessesError extends ProblemError {
216
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
217
+ }
218
+ /**
219
+ * @class
220
+ * @name ChildProcessExecutionError
221
+ * @description The child process encountered an error during execution.
222
+ * @summary Child Process Execution Error
223
+ * @category OpenSourceEcosystems
224
+ * @param {string} details the specific details that causes this error
225
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
226
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
227
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
228
+ */
229
+ export declare class ChildProcessExecutionError extends ProblemError {
230
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
231
+ }
232
+ /**
233
+ * @class
234
+ * @name NoValidPackageUpgradesError
235
+ * @description The system attempted to find valid upgrades for the packages specified in the lock file, but none were available.
236
+ * @summary No valid package upgrades
237
+ * @category OpenSourceEcosystems
238
+ * @param {string} details the specific details that causes this error
239
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
240
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
241
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
242
+ */
243
+ export declare class NoValidPackageUpgradesError extends ProblemError {
244
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
245
+ }
246
+ /**
247
+ * @class
248
+ * @name NoDependencyUpdatesError
249
+ * @description There are no available updates for the dependencies.
250
+ * @summary No dependency updates
251
+ * @category OpenSourceEcosystems
252
+ * @param {string} details the specific details that causes this error
253
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
254
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
255
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
256
+ */
257
+ export declare class NoDependencyUpdatesError extends ProblemError {
258
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
259
+ }
260
+ /**
261
+ * @class
262
+ * @name MissingRequiredRequestHeaderError
263
+ * @description The server encountered a request that is missing a mandatory request header.
264
+ * @summary Missing required request header
265
+ * @category OpenSourceEcosystems
266
+ * @param {string} details the specific details that causes this error
267
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
268
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
269
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
270
+ */
271
+ export declare class MissingRequiredRequestHeaderError extends ProblemError {
272
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
273
+ }
274
+ /**
275
+ * @class
276
+ * @name CouldNotParseJSONFileError
277
+ * @description An error occurred while attempting to parse a JSON file.
278
+ * @summary Could not parse JSON file
279
+ * @category OpenSourceEcosystems
280
+ * @param {string} details the specific details that causes this error
281
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
282
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
283
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
284
+ */
285
+ export declare class CouldNotParseJSONFileError extends ProblemError {
286
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
287
+ }
288
+ /**
289
+ * @class
290
+ * @name Base64EncodeError
291
+ * @description An error occurred while attempting to perform Base64 encoding.
292
+ * @summary Could not Base64 encode
293
+ * @category OpenSourceEcosystems
294
+ * @param {string} details the specific details that causes this error
295
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
296
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
297
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
298
+ */
299
+ export declare class Base64EncodeError extends ProblemError {
300
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
301
+ }
302
+ /**
303
+ * @class
304
+ * @name Base64DecodeError
305
+ * @description An error occurred while attempting to perform Base64 decoding.
306
+ * @summary Could not Base64 decode
307
+ * @category OpenSourceEcosystems
308
+ * @param {string} details the specific details that causes this error
309
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
310
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
311
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
312
+ */
313
+ export declare class Base64DecodeError extends ProblemError {
314
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
315
+ }
316
+ /**
317
+ * @class
318
+ * @name MissingSupportedFileError
319
+ * @description Could not find supported file.
320
+ * @summary Missing supported file
321
+ * @category OpenSourceEcosystems
322
+ * @param {string} details the specific details that causes this error
323
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
324
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
325
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
326
+ */
327
+ export declare class MissingSupportedFileError extends ProblemError {
328
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
329
+ }
330
+ /**
331
+ * @class
332
+ * @name MissingEnvironmentVariableError
333
+ * @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.
334
+ * @summary Missing environment variable
335
+ * @category OpenSourceEcosystems
336
+ * @param {string} details the specific details that causes this error
337
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
338
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
339
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
340
+ */
341
+ export declare class MissingEnvironmentVariableError extends ProblemError {
342
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
343
+ }
344
+ /**
345
+ * @class
346
+ * @name NoOutputFromIsolatedBuildsError
347
+ * @description The response from isolated builds had no output.
348
+ * @summary No output from isolated builds
349
+ * @category OpenSourceEcosystems
350
+ * @param {string} details the specific details that causes this error
351
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
352
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
353
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
354
+ */
355
+ export declare class NoOutputFromIsolatedBuildsError extends ProblemError {
356
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
357
+ }
358
+ /**
359
+ * @class
360
+ * @name FailedToRelockError
361
+ * @description An error occurred while attempting to relock.
362
+ * @summary Failed to relock
363
+ * @category OpenSourceEcosystems
364
+ * @param {string} details the specific details that causes this error
365
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
366
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
367
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
368
+ */
369
+ export declare class FailedToRelockError extends ProblemError {
370
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
371
+ }
372
+ /**
373
+ * @class
374
+ * @name InvalidConfigurationError
375
+ * @description The configuration parameter does not meet the expected data type. Please ensure the provided value is of the correct data type.
376
+ * @summary Invalid configuration
377
+ * @category OpenSourceEcosystems
378
+ * @param {string} details the specific details that causes this error
379
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
380
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
381
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
382
+ */
383
+ export declare class InvalidConfigurationError extends ProblemError {
384
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
385
+ }
386
+ /**
387
+ * @class
388
+ * @name UnsupportedManifestFileError
389
+ * @description The provided manifest file is not supported by Snyk for .NET.
390
+ *
391
+ * See more:
392
+ * - [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)
393
+ * - [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)
394
+ * - [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)
395
+ * - [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)
396
+ * @summary Unsupported manifest file type for remediation
397
+ * @category OpenSourceEcosystems
398
+ * @param {string} details the specific details that causes this error
399
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
400
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
401
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
402
+ */
403
+ export declare class UnsupportedManifestFileError extends ProblemError {
404
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
405
+ }
406
+ /**
407
+ * @class
408
+ * @name UnsupportedTargetFrameworkError
409
+ * @description The provided manifest file defines a `<TargetFramework>` or `<TargetFrameworks>` that is not currently supported by Snyk's .NET scanning solution.
410
+ * @summary Target framework not supported
411
+ * @category OpenSourceEcosystems
412
+ * @param {string} details the specific details that causes this error
413
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
414
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
415
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
416
+ */
417
+ export declare class UnsupportedTargetFrameworkError extends ProblemError {
418
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
419
+ }
420
+ /**
421
+ * @class
422
+ * @name PrivateModuleError
423
+ * @description Snyk could not access the private modules within your go.mod files.
424
+ *
425
+ * See more:
426
+ * - [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)
427
+ * - [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)
428
+ * @summary Failed to access private module
429
+ * @category OpenSourceEcosystems
430
+ * @param {string} details the specific details that causes this error
431
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
432
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
433
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
434
+ */
435
+ export declare class PrivateModuleError extends ProblemError {
436
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
437
+ }
438
+ /**
439
+ * @class
440
+ * @name GoModFileMissingError
441
+ * @description A go.mod file was not found in the current directory or any parent directory.
442
+ *
443
+ * See more:
444
+ * - [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)
445
+ * - [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)
446
+ * @summary Go mod file not found
447
+ * @category OpenSourceEcosystems
448
+ * @param {string} details the specific details that causes this error
449
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
450
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
451
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
452
+ */
453
+ export declare class GoModFileMissingError extends ProblemError {
454
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
455
+ }
456
+ /**
457
+ * @class
458
+ * @name SsoReAuthRequiredError
459
+ * @description Your code is cloned on an isolated environment using Git as it is required by Snyk to analyze its dependencies.
460
+ *
461
+ * Your Organization has enabled or enforced SAML SSO after you authorized Snyk to access your code, and a re-authentication is therefore required.
462
+ *
463
+ * The error you're seeing is usually reproducible by attempting to do a `git clone` of your repository with incorrectly configured credentials.
464
+ * Verify your authentication configuration with your Git cloud provider and try again.
465
+ *
466
+ * See more:
467
+ * - [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)
468
+ * @summary OAuth re-authorization required
469
+ * @category OpenSourceEcosystems
470
+ * @param {string} details the specific details that causes this error
471
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
472
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
473
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
474
+ */
475
+ export declare class SsoReAuthRequiredError extends ProblemError {
476
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
477
+ }
478
+ /**
479
+ * @class
480
+ * @name IncompleteProjectError
481
+ * @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.
482
+ *
483
+ * 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.
484
+ *
485
+ * 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.
486
+ *
487
+ * If Snyk cannot process your code successfully, insert the Snyk CLI as part of your deployment pipeline.
488
+ *
489
+ * See more:
490
+ * - [https://docs.snyk.io/snyk-cli](https://docs.snyk.io/snyk-cli)
491
+ * - [https://github.com/snyk/snyk-go-plugin](https://github.com/snyk/snyk-go-plugin)
492
+ * - [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)
493
+ * @summary Your project repository is missing required files
494
+ * @category OpenSourceEcosystems
495
+ * @param {string} details the specific details that causes this error
496
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
497
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
498
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
499
+ */
500
+ export declare class IncompleteProjectError extends ProblemError {
501
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
502
+ }
503
+ /**
504
+ * @class
505
+ * @name MissingRequirementFromPomError
506
+ * @description The required property is missing from the pom object.
507
+ * @summary Missing property
508
+ * @category OpenSourceEcosystems
509
+ * @param {string} details the specific details that causes this error
510
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
511
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
512
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
513
+ */
514
+ export declare class MissingRequirementFromPomError extends ProblemError {
515
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
516
+ }
517
+ /**
518
+ * @class
519
+ * @name UnableToResolveValueForPropertyError
520
+ * @description The targeted property could not be resolved with a valid value.
521
+ * @summary Unable to resolve value for property
522
+ * @category OpenSourceEcosystems
523
+ * @param {string} details the specific details that causes this error
524
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
525
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
526
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
527
+ */
528
+ export declare class UnableToResolveValueForPropertyError extends ProblemError {
529
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
530
+ }
531
+ /**
532
+ * @class
533
+ * @name UnableToResolveVersionForPropertyError
534
+ * @description The targeted property could not be resolved with a valid version.
535
+ * @summary Unable to resolve version for property
536
+ * @category OpenSourceEcosystems
537
+ * @param {string} details the specific details that causes this error
538
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
539
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
540
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
541
+ */
542
+ export declare class UnableToResolveVersionForPropertyError extends ProblemError {
543
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
544
+ }
545
+ /**
546
+ * @class
547
+ * @name CyclicPropertyDetectedInPomFileError
548
+ * @description There is circular dependency among properties in the Maven project's configuration file (POM), preventing proper resolution and causing an error.
549
+ * @summary Cyclic property detected in POM file
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
+ export declare class CyclicPropertyDetectedInPomFileError extends ProblemError {
557
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
558
+ }
559
+ /**
560
+ * @class
561
+ * @name UnableToParseXMLError
562
+ * @description There is an error parsing the XML file. This could be referring to either pom.xml or maven-metadata.xml.
563
+ * @summary Error parsing the XML file
564
+ * @category OpenSourceEcosystems
565
+ * @param {string} details the specific details that causes this error
566
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
567
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
568
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
569
+ */
570
+ export declare class UnableToParseXMLError extends ProblemError {
571
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
572
+ }
573
+ /**
574
+ * @class
575
+ * @name InvalidCoordinatesError
576
+ * @description The coordinates provided for a project were invalid.
577
+ * @summary Invalid coordinates provided
578
+ * @category OpenSourceEcosystems
579
+ * @param {string} details the specific details that causes this error
580
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
581
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
582
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
583
+ */
584
+ export declare class InvalidCoordinatesError extends ProblemError {
585
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
586
+ }
587
+ /**
588
+ * @class
589
+ * @name SkippedGroupError
590
+ * @description Skipping a specific groupId starting due to remapped coordinates.
591
+ * @summary Skipping group
592
+ * @category OpenSourceEcosystems
593
+ * @param {string} details the specific details that causes this error
594
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
595
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
596
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
597
+ */
598
+ export declare class SkippedGroupError extends ProblemError {
599
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
600
+ }
601
+ /**
602
+ * @class
603
+ * @name PomFileNotFoundError
604
+ * @description The pom file was not found in Maven repository.
605
+ * @summary Pom file not found
606
+ * @category OpenSourceEcosystems
607
+ * @param {string} details the specific details that causes this error
608
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
609
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
610
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
611
+ */
612
+ export declare class PomFileNotFoundError extends ProblemError {
613
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
614
+ }
615
+ /**
616
+ * @class
617
+ * @name MissingProjectFromPomError
618
+ * @description A project element is missing from POM.
619
+ * @summary Missing project from POM
620
+ * @category OpenSourceEcosystems
621
+ * @param {string} details the specific details that causes this error
622
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
623
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
624
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
625
+ */
626
+ export declare class MissingProjectFromPomError extends ProblemError {
627
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
628
+ }
629
+ /**
630
+ * @class
631
+ * @name CannotResolveTargetPomFromXmlError
632
+ * @description Cannot resolve the targeted POM from the input XML.
633
+ * @summary Cannot resolve the target POM from the input XML
634
+ * @category OpenSourceEcosystems
635
+ * @param {string} details the specific details that causes this error
636
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
637
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
638
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
639
+ */
640
+ export declare class CannotResolveTargetPomFromXmlError extends ProblemError {
641
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
642
+ }
643
+ /**
644
+ * @class
645
+ * @name CannotResolveTargetPomFromRepoError
646
+ * @description Cannot resolve the targeted POM from the repository.
647
+ * @summary Cannot resolve the target POM from the repository
648
+ * @category OpenSourceEcosystems
649
+ * @param {string} details the specific details that causes this error
650
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
651
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
652
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
653
+ */
654
+ export declare class CannotResolveTargetPomFromRepoError extends ProblemError {
655
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
656
+ }
657
+ /**
658
+ * @class
659
+ * @name CannotGetBuildFileFromRepoError
660
+ * @description Cannot get the build file repository.
661
+ * @summary Cannot get the build file repository
662
+ * @category OpenSourceEcosystems
663
+ * @param {string} details the specific details that causes this error
664
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
665
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
666
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
667
+ */
668
+ export declare class CannotGetBuildFileFromRepoError extends ProblemError {
669
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
670
+ }
671
+ /**
672
+ * @class
673
+ * @name CannotCreateGitHostError
674
+ * @description Cannot create source URL.
675
+ * @summary Unable to create hosted git info
676
+ * @category OpenSourceEcosystems
677
+ * @param {string} details the specific details that causes this error
678
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
679
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
680
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
681
+ */
682
+ export declare class CannotCreateGitHostError extends ProblemError {
683
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
684
+ }
685
+ /**
686
+ * @class
687
+ * @name NoRepoFoundForTheNPMPackageError
688
+ * @description No repository found for the NPM package.
689
+ * @summary No repository found for A NPM package
690
+ * @category OpenSourceEcosystems
691
+ * @param {string} details the specific details that causes this error
692
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
693
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
694
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
695
+ */
696
+ export declare class NoRepoFoundForTheNPMPackageError extends ProblemError {
697
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
698
+ }
699
+ /**
700
+ * @class
701
+ * @name CouldNotParseNPMRegistryURLError
702
+ * @description Could not parse NPM registry URL.
703
+ * @summary Could not parse NPM registry URL
704
+ * @category OpenSourceEcosystems
705
+ * @param {string} details the specific details that causes this error
706
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
707
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
708
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
709
+ */
710
+ export declare class CouldNotParseNPMRegistryURLError extends ProblemError {
711
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
712
+ }
713
+ /**
714
+ * @class
715
+ * @name CouldNotFindBrokerURLError
716
+ * @description Could not find a broker resolved URL.
717
+ * @summary Could not find a broker resolved URL
718
+ * @category OpenSourceEcosystems
719
+ * @param {string} details the specific details that causes this error
720
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
721
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
722
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
723
+ */
724
+ export declare class CouldNotFindBrokerURLError extends ProblemError {
725
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
726
+ }
727
+ /**
728
+ * @class
729
+ * @name UnableToReplaceBrokerURLError
730
+ * @description Unable to replace all broker urls in lock file.
731
+ * @summary Unable to replace broker URL
732
+ * @category OpenSourceEcosystems
733
+ * @param {string} details the specific details that causes this error
734
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
735
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
736
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
737
+ */
738
+ export declare class UnableToReplaceBrokerURLError extends ProblemError {
739
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
740
+ }
741
+ /**
742
+ * @class
743
+ * @name BadNPMVersionError
744
+ * @description The NPM version is not supported.
745
+ * @summary Bad NPM version
746
+ * @category OpenSourceEcosystems
747
+ * @param {string} details the specific details that causes this error
748
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
749
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
750
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
751
+ */
752
+ export declare class BadNPMVersionError extends ProblemError {
753
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
754
+ }
755
+ /**
756
+ * @class
757
+ * @name UnsupportedRequirementsFileError
758
+ * @description The provided requirements file is not supported by Snyk for Python.
759
+ *
760
+ * See more:
761
+ * - [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)
762
+ * @summary Unsupported manifest file type for remediation
763
+ * @category OpenSourceEcosystems
764
+ * @param {string} details the specific details that causes this error
765
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
766
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
767
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
768
+ */
769
+ export declare class UnsupportedRequirementsFileError extends ProblemError {
770
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
771
+ }