@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,290 @@
1
+ import { ProblemError } from '../problem-error';
2
+ /**
3
+ * @class
4
+ * @name OrganizationNotWhitelistedError
5
+ * @description You likely don’t have access to the features in Beta. To get access, you can request access to features in Beta through your account manager or team.
6
+ * @summary Your Organisation is not authorized to perform this action
7
+ * @category PurlVulnerabilityFetching
8
+ * @param {string} details the specific details that causes this error
9
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
10
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
11
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
12
+ */
13
+ export declare class OrganizationNotWhitelistedError extends ProblemError {
14
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
15
+ }
16
+ /**
17
+ * @class
18
+ * @name AuthorizationRequestFailureError
19
+ * @description Unexpected error when authenticating. Try again, and if the error still occurs, contact support.
20
+ * @summary Authorization request failure
21
+ * @category PurlVulnerabilityFetching
22
+ * @param {string} details the specific details that causes this error
23
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
24
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
25
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
26
+ */
27
+ export declare class AuthorizationRequestFailureError extends ProblemError {
28
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
29
+ }
30
+ /**
31
+ * @class
32
+ * @name InvalidPurlError
33
+ * @description Make sure that the purl is valid. See the Package URL specification link for further information.
34
+ *
35
+ * See more:
36
+ * - [https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst](https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst)
37
+ * @summary Invalid purl
38
+ * @category PurlVulnerabilityFetching
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 InvalidPurlError extends ProblemError {
45
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
46
+ }
47
+ /**
48
+ * @class
49
+ * @name NamespaceNotProvidedError
50
+ * @description You have requested a package type that requires a namespace (e.g. maven group id). Provide the namespace to retrieve the package.
51
+ *
52
+ * See more:
53
+ * - [https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst](https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst)
54
+ * @summary Namespace not specified
55
+ * @category PurlVulnerabilityFetching
56
+ * @param {string} details the specific details that causes this error
57
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
58
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
59
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
60
+ */
61
+ export declare class NamespaceNotProvidedError extends ProblemError {
62
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
63
+ }
64
+ /**
65
+ * @class
66
+ * @name UnsupportedEcosystemError
67
+ * @description The package type is not supported. Check the List issues for a package in Snyk API.
68
+ * @summary Unsupported ecosystem
69
+ * @category PurlVulnerabilityFetching
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 UnsupportedEcosystemError extends ProblemError {
76
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
77
+ }
78
+ /**
79
+ * @class
80
+ * @name MissingComponentError
81
+ * @description A list of components of the purl spec is required. The purl did not specify all the required components.
82
+ * @summary Purl components required
83
+ * @category PurlVulnerabilityFetching
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 MissingComponentError extends ProblemError {
90
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
91
+ }
92
+ /**
93
+ * @class
94
+ * @name ComponentNotSupportedError
95
+ * @description Remove the unsupported component and retry the request.
96
+ * @summary Unsupported purl components
97
+ * @category PurlVulnerabilityFetching
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 ComponentNotSupportedError extends ProblemError {
104
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
105
+ }
106
+ /**
107
+ * @class
108
+ * @name UnsupportedGoVersionFormatError
109
+ * @description Go pseudo versions are not supported.
110
+ * @summary Unsupported Go version format
111
+ * @category PurlVulnerabilityFetching
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 UnsupportedGoVersionFormatError extends ProblemError {
118
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
119
+ }
120
+ /**
121
+ * @class
122
+ * @name PackageNotFoundError
123
+ * @description The package you specified in the purl cannot be found in the vulnerability database. Check the package name, ecosystem, and version, then try again.
124
+ * @summary Requested package not found
125
+ * @category PurlVulnerabilityFetching
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 PackageNotFoundError extends ProblemError {
132
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
133
+ }
134
+ /**
135
+ * @class
136
+ * @name VulnerabilityServiceUnavailableError
137
+ * @description This issue is unexpected, and the service will recover shortly. If the error still occurs, contact support.
138
+ * @summary Vulnerability service not available
139
+ * @category PurlVulnerabilityFetching
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 VulnerabilityServiceUnavailableError extends ProblemError {
146
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
147
+ }
148
+ /**
149
+ * @class
150
+ * @name VulnDBInvalidResponseError
151
+ * @description An unexpected error occurred. Please try again, and if you continue to experience issues please contact support.
152
+ * @summary This issue is unexpected and the service should recover quickly if not please contact support
153
+ * @category PurlVulnerabilityFetching
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 VulnDBInvalidResponseError extends ProblemError {
160
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
161
+ }
162
+ /**
163
+ * @class
164
+ * @name VulndbNextError
165
+ * @description An unexpected error occurred with the vulnerability service. Please try again, and if you continue to experience issues please contact support.
166
+ * @summary This issue is unexpected and the service should recover quickly if not please contact support
167
+ * @category PurlVulnerabilityFetching
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 VulndbNextError extends ProblemError {
174
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
175
+ }
176
+ /**
177
+ * @class
178
+ * @name InternalServerError
179
+ * @description This issue is unexpected, and the service will recover shortly. If the error still occurs, contact support.
180
+ * @summary Request not processed due to unexpected error
181
+ * @category PurlVulnerabilityFetching
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 InternalServerError extends ProblemError {
188
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
189
+ }
190
+ /**
191
+ * @class
192
+ * @name InvalidPaginationParametersError
193
+ * @description The pagination limit is > 1 and ≤ 1000, and the offset is ≥0.
194
+ * @summary Invalid pagination parameters
195
+ * @category PurlVulnerabilityFetching
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 InvalidPaginationParametersError extends ProblemError {
202
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
203
+ }
204
+ /**
205
+ * @class
206
+ * @name TooManyPurlsError
207
+ * @description The number of purls sent in the request exceeds the limit of 1000 set by the service.
208
+ * @summary purls exceed limit
209
+ * @category PurlVulnerabilityFetching
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 TooManyPurlsError extends ProblemError {
216
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
217
+ }
218
+ /**
219
+ * @class
220
+ * @name TooManyIssuesError
221
+ * @description The number of issues found for the provided purls exceeds the limit defined by the API. Reduce the number of purls sent in a single request.
222
+ * @summary Number of issues exceeds limit
223
+ * @category PurlVulnerabilityFetching
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 TooManyIssuesError extends ProblemError {
230
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
231
+ }
232
+ /**
233
+ * @class
234
+ * @name UndefinedContainerDistroError
235
+ * @description The given Package URL does not have a required distro qualifier.
236
+ *
237
+ * See more:
238
+ * - [https://docs.snyk.io/scan-containers/how-snyk-container-works/supported-operating-system-distributions#debian](https://docs.snyk.io/scan-containers/how-snyk-container-works/supported-operating-system-distributions#debian)
239
+ * @summary Expected distro to be present
240
+ * @category PurlVulnerabilityFetching
241
+ * @param {string} details the specific details that causes this error
242
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
243
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
244
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
245
+ */
246
+ export declare class UndefinedContainerDistroError extends ProblemError {
247
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
248
+ }
249
+ /**
250
+ * @class
251
+ * @name UnsupportedDebianDistroError
252
+ * @description This Debian distro is currently not supported.
253
+ * @summary Unsupported Debian distro
254
+ * @category PurlVulnerabilityFetching
255
+ * @param {string} details the specific details that causes this error
256
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
257
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
258
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
259
+ */
260
+ export declare class UnsupportedDebianDistroError extends ProblemError {
261
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
262
+ }
263
+ /**
264
+ * @class
265
+ * @name UndefinedContainerVendorError
266
+ * @description The given Package URL does not have a required namespace.
267
+ * @summary Expected namespace to be present
268
+ * @category PurlVulnerabilityFetching
269
+ * @param {string} details the specific details that causes this error
270
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
271
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
272
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
273
+ */
274
+ export declare class UndefinedContainerVendorError extends ProblemError {
275
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
276
+ }
277
+ /**
278
+ * @class
279
+ * @name UnsupportedContainerVendorError
280
+ * @description The given Package URL does not contain a supported vendor.
281
+ * @summary Unsupported vendor
282
+ * @category PurlVulnerabilityFetching
283
+ * @param {string} details the specific details that causes this error
284
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
285
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
286
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
287
+ */
288
+ export declare class UnsupportedContainerVendorError extends ProblemError {
289
+ constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
290
+ }