@snyk/error-catalog-nodejs-public 4.0.4 → 5.0.1
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.
- package/package.json +1 -1
- package/src/catalogs/Fix-error-catalog.d.ts +10 -0
- package/src/catalogs/Fix-error-catalog.js +20 -0
- package/src/catalogs/Fix-error-catalog.js.map +1 -1
- package/src/catalogs/IsolatedBuilds-error-catalog.d.ts +4 -1
- package/src/catalogs/IsolatedBuilds-error-catalog.js +7 -1
- package/src/catalogs/IsolatedBuilds-error-catalog.js.map +1 -1
- package/src/catalogs/OpenAPI-error-catalog.d.ts +14 -6
- package/src/catalogs/OpenAPI-error-catalog.js +23 -7
- package/src/catalogs/OpenAPI-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceEcosystems-error-catalog.d.ts +54 -2
- package/src/catalogs/OpenSourceEcosystems-error-catalog.js +108 -4
- package/src/catalogs/OpenSourceEcosystems-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.d.ts +5 -0
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.js +10 -0
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.d.ts +5 -0
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js +10 -0
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.d.ts +3 -1
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.js +5 -1
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.js.map +1 -1
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.d.ts +22 -2
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js +42 -2
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js.map +1 -1
- package/src/catalogs/SbomExport-error-catalog.d.ts +10 -1
- package/src/catalogs/SbomExport-error-catalog.js +20 -2
- package/src/catalogs/SbomExport-error-catalog.js.map +1 -1
- package/src/catalogs/Snyk-error-catalog.d.ts +7 -1
- package/src/catalogs/Snyk-error-catalog.js +13 -1
- package/src/catalogs/Snyk-error-catalog.js.map +1 -1
- package/src/problem-error.js +1 -1
- package/src/problem-error.js.map +1 -1
- package/src/types.d.ts +3 -1
- package/src/types.js.map +1 -1
|
@@ -24,6 +24,7 @@ const problem_error_1 = require("../problem-error");
|
|
|
24
24
|
* @summary Your Organisation is not authorized to perform this action
|
|
25
25
|
* @category PurlVulnerabilityFetching
|
|
26
26
|
* @param {string} details the specific details that causes this error
|
|
27
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
27
28
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
28
29
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
29
30
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -36,6 +37,7 @@ class OrganizationNotWhitelistedError extends problem_error_1.ProblemError {
|
|
|
36
37
|
status: 403,
|
|
37
38
|
errorCode: 'SNYK-OSSI-1040',
|
|
38
39
|
level: 'warn',
|
|
40
|
+
classification: 'ACTIONABLE',
|
|
39
41
|
instance,
|
|
40
42
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
41
43
|
this.name = this.constructor.name;
|
|
@@ -49,6 +51,7 @@ exports.OrganizationNotWhitelistedError = OrganizationNotWhitelistedError;
|
|
|
49
51
|
* @summary Authorization request failure
|
|
50
52
|
* @category PurlVulnerabilityFetching
|
|
51
53
|
* @param {string} details the specific details that causes this error
|
|
54
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
52
55
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
53
56
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
54
57
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -61,6 +64,7 @@ class AuthorizationRequestFailureError extends problem_error_1.ProblemError {
|
|
|
61
64
|
status: 500,
|
|
62
65
|
errorCode: 'SNYK-OSSI-1050',
|
|
63
66
|
level: 'fatal',
|
|
67
|
+
classification: 'UNEXPECTED',
|
|
64
68
|
instance,
|
|
65
69
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
66
70
|
this.name = this.constructor.name;
|
|
@@ -77,6 +81,7 @@ exports.AuthorizationRequestFailureError = AuthorizationRequestFailureError;
|
|
|
77
81
|
* @summary Invalid purl
|
|
78
82
|
* @category PurlVulnerabilityFetching
|
|
79
83
|
* @param {string} details the specific details that causes this error
|
|
84
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
80
85
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
81
86
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
82
87
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -89,6 +94,7 @@ class InvalidPurlError extends problem_error_1.ProblemError {
|
|
|
89
94
|
status: 400,
|
|
90
95
|
errorCode: 'SNYK-OSSI-2010',
|
|
91
96
|
level: 'warn',
|
|
97
|
+
classification: 'ACTIONABLE',
|
|
92
98
|
instance,
|
|
93
99
|
}, details, Object.assign({ links: [
|
|
94
100
|
'https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst',
|
|
@@ -107,6 +113,7 @@ exports.InvalidPurlError = InvalidPurlError;
|
|
|
107
113
|
* @summary Namespace not specified
|
|
108
114
|
* @category PurlVulnerabilityFetching
|
|
109
115
|
* @param {string} details the specific details that causes this error
|
|
116
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
110
117
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
111
118
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
112
119
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -119,6 +126,7 @@ class NamespaceNotProvidedError extends problem_error_1.ProblemError {
|
|
|
119
126
|
status: 400,
|
|
120
127
|
errorCode: 'SNYK-OSSI-2011',
|
|
121
128
|
level: 'warn',
|
|
129
|
+
classification: 'ACTIONABLE',
|
|
122
130
|
instance,
|
|
123
131
|
}, details, Object.assign({ links: [
|
|
124
132
|
'https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst',
|
|
@@ -134,6 +142,7 @@ exports.NamespaceNotProvidedError = NamespaceNotProvidedError;
|
|
|
134
142
|
* @summary Unsupported ecosystem
|
|
135
143
|
* @category PurlVulnerabilityFetching
|
|
136
144
|
* @param {string} details the specific details that causes this error
|
|
145
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
137
146
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
138
147
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
139
148
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -146,6 +155,7 @@ class UnsupportedEcosystemError extends problem_error_1.ProblemError {
|
|
|
146
155
|
status: 400,
|
|
147
156
|
errorCode: 'SNYK-OSSI-2020',
|
|
148
157
|
level: 'warn',
|
|
158
|
+
classification: 'ACTIONABLE',
|
|
149
159
|
instance,
|
|
150
160
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
151
161
|
this.name = this.constructor.name;
|
|
@@ -155,10 +165,11 @@ exports.UnsupportedEcosystemError = UnsupportedEcosystemError;
|
|
|
155
165
|
/**
|
|
156
166
|
* @class
|
|
157
167
|
* @name MissingComponentError
|
|
158
|
-
* @description A list of components of the purl spec is required. The purl did not specify all the required components.
|
|
168
|
+
* @description A list of components of the purl spec is required. The purl did not specify all the required components. Please add the missing components to the purl and try again.
|
|
159
169
|
* @summary Purl components required
|
|
160
170
|
* @category PurlVulnerabilityFetching
|
|
161
171
|
* @param {string} details the specific details that causes this error
|
|
172
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
162
173
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
163
174
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
164
175
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -171,6 +182,7 @@ class MissingComponentError extends problem_error_1.ProblemError {
|
|
|
171
182
|
status: 400,
|
|
172
183
|
errorCode: 'SNYK-OSSI-2021',
|
|
173
184
|
level: 'warn',
|
|
185
|
+
classification: 'ACTIONABLE',
|
|
174
186
|
instance,
|
|
175
187
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
176
188
|
this.name = this.constructor.name;
|
|
@@ -184,6 +196,7 @@ exports.MissingComponentError = MissingComponentError;
|
|
|
184
196
|
* @summary Unsupported purl components
|
|
185
197
|
* @category PurlVulnerabilityFetching
|
|
186
198
|
* @param {string} details the specific details that causes this error
|
|
199
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
187
200
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
188
201
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
189
202
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -196,6 +209,7 @@ class ComponentNotSupportedError extends problem_error_1.ProblemError {
|
|
|
196
209
|
status: 400,
|
|
197
210
|
errorCode: 'SNYK-OSSI-2022',
|
|
198
211
|
level: 'warn',
|
|
212
|
+
classification: 'ACTIONABLE',
|
|
199
213
|
instance,
|
|
200
214
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
201
215
|
this.name = this.constructor.name;
|
|
@@ -209,6 +223,7 @@ exports.ComponentNotSupportedError = ComponentNotSupportedError;
|
|
|
209
223
|
* @summary Go version format not supported
|
|
210
224
|
* @category PurlVulnerabilityFetching
|
|
211
225
|
* @param {string} details the specific details that causes this error
|
|
226
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
212
227
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
213
228
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
214
229
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -221,6 +236,7 @@ class UnsupportedGoVersionFormatError extends problem_error_1.ProblemError {
|
|
|
221
236
|
status: 400,
|
|
222
237
|
errorCode: 'SNYK-OSSI-2023',
|
|
223
238
|
level: 'warn',
|
|
239
|
+
classification: 'UNSUPPORTED',
|
|
224
240
|
instance,
|
|
225
241
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
226
242
|
this.name = this.constructor.name;
|
|
@@ -234,6 +250,7 @@ exports.UnsupportedGoVersionFormatError = UnsupportedGoVersionFormatError;
|
|
|
234
250
|
* @summary Requested package not found
|
|
235
251
|
* @category PurlVulnerabilityFetching
|
|
236
252
|
* @param {string} details the specific details that causes this error
|
|
253
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
237
254
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
238
255
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
239
256
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -246,6 +263,7 @@ class PackageNotFoundError extends problem_error_1.ProblemError {
|
|
|
246
263
|
status: 404,
|
|
247
264
|
errorCode: 'SNYK-OSSI-2030',
|
|
248
265
|
level: 'warn',
|
|
266
|
+
classification: 'ACTIONABLE',
|
|
249
267
|
instance,
|
|
250
268
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
251
269
|
this.name = this.constructor.name;
|
|
@@ -259,6 +277,7 @@ exports.PackageNotFoundError = PackageNotFoundError;
|
|
|
259
277
|
* @summary Vulnerability service not available
|
|
260
278
|
* @category PurlVulnerabilityFetching
|
|
261
279
|
* @param {string} details the specific details that causes this error
|
|
280
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
262
281
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
263
282
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
264
283
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -271,6 +290,7 @@ class VulnerabilityServiceUnavailableError extends problem_error_1.ProblemError
|
|
|
271
290
|
status: 503,
|
|
272
291
|
errorCode: 'SNYK-OSSI-2031',
|
|
273
292
|
level: 'error',
|
|
293
|
+
classification: 'UNEXPECTED',
|
|
274
294
|
instance,
|
|
275
295
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
276
296
|
this.name = this.constructor.name;
|
|
@@ -284,6 +304,7 @@ exports.VulnerabilityServiceUnavailableError = VulnerabilityServiceUnavailableEr
|
|
|
284
304
|
* @summary This issue is unexpected and the service should recover quickly if not please contact support
|
|
285
305
|
* @category PurlVulnerabilityFetching
|
|
286
306
|
* @param {string} details the specific details that causes this error
|
|
307
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
287
308
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
288
309
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
289
310
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -296,6 +317,7 @@ class VulnDBInvalidResponseError extends problem_error_1.ProblemError {
|
|
|
296
317
|
status: 500,
|
|
297
318
|
errorCode: 'SNYK-OSSI-2032',
|
|
298
319
|
level: 'warn',
|
|
320
|
+
classification: 'UNEXPECTED',
|
|
299
321
|
instance,
|
|
300
322
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
301
323
|
this.name = this.constructor.name;
|
|
@@ -309,6 +331,7 @@ exports.VulnDBInvalidResponseError = VulnDBInvalidResponseError;
|
|
|
309
331
|
* @summary This issue is unexpected and the service should recover quickly if not please contact support
|
|
310
332
|
* @category PurlVulnerabilityFetching
|
|
311
333
|
* @param {string} details the specific details that causes this error
|
|
334
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
312
335
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
313
336
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
314
337
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -321,6 +344,7 @@ class VulndbNextError extends problem_error_1.ProblemError {
|
|
|
321
344
|
status: 500,
|
|
322
345
|
errorCode: 'SNYK-OSSI-2033',
|
|
323
346
|
level: 'error',
|
|
347
|
+
classification: 'UNEXPECTED',
|
|
324
348
|
instance,
|
|
325
349
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
326
350
|
this.name = this.constructor.name;
|
|
@@ -334,6 +358,7 @@ exports.VulndbNextError = VulndbNextError;
|
|
|
334
358
|
* @summary Request not processed due to unexpected error
|
|
335
359
|
* @category PurlVulnerabilityFetching
|
|
336
360
|
* @param {string} details the specific details that causes this error
|
|
361
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
337
362
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
338
363
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
339
364
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -346,6 +371,7 @@ class InternalServerError extends problem_error_1.ProblemError {
|
|
|
346
371
|
status: 500,
|
|
347
372
|
errorCode: 'SNYK-OSSI-2040',
|
|
348
373
|
level: 'error',
|
|
374
|
+
classification: 'UNEXPECTED',
|
|
349
375
|
instance,
|
|
350
376
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
351
377
|
this.name = this.constructor.name;
|
|
@@ -359,6 +385,7 @@ exports.InternalServerError = InternalServerError;
|
|
|
359
385
|
* @summary Invalid pagination parameters
|
|
360
386
|
* @category PurlVulnerabilityFetching
|
|
361
387
|
* @param {string} details the specific details that causes this error
|
|
388
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
362
389
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
363
390
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
364
391
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -371,6 +398,7 @@ class InvalidPaginationParametersError extends problem_error_1.ProblemError {
|
|
|
371
398
|
status: 400,
|
|
372
399
|
errorCode: 'SNYK-OSSI-2041',
|
|
373
400
|
level: 'warn',
|
|
401
|
+
classification: 'ACTIONABLE',
|
|
374
402
|
instance,
|
|
375
403
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
376
404
|
this.name = this.constructor.name;
|
|
@@ -384,6 +412,7 @@ exports.InvalidPaginationParametersError = InvalidPaginationParametersError;
|
|
|
384
412
|
* @summary purls exceed limit
|
|
385
413
|
* @category PurlVulnerabilityFetching
|
|
386
414
|
* @param {string} details the specific details that causes this error
|
|
415
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
387
416
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
388
417
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
389
418
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -396,6 +425,7 @@ class TooManyPurlsError extends problem_error_1.ProblemError {
|
|
|
396
425
|
status: 400,
|
|
397
426
|
errorCode: 'SNYK-OSSI-2042',
|
|
398
427
|
level: 'warn',
|
|
428
|
+
classification: 'UNSUPPORTED',
|
|
399
429
|
instance,
|
|
400
430
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
401
431
|
this.name = this.constructor.name;
|
|
@@ -409,6 +439,7 @@ exports.TooManyPurlsError = TooManyPurlsError;
|
|
|
409
439
|
* @summary Number of issues exceeds limit
|
|
410
440
|
* @category PurlVulnerabilityFetching
|
|
411
441
|
* @param {string} details the specific details that causes this error
|
|
442
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
412
443
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
413
444
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
414
445
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -421,6 +452,7 @@ class TooManyIssuesError extends problem_error_1.ProblemError {
|
|
|
421
452
|
status: 400,
|
|
422
453
|
errorCode: 'SNYK-OSSI-2043',
|
|
423
454
|
level: 'warn',
|
|
455
|
+
classification: 'UNSUPPORTED',
|
|
424
456
|
instance,
|
|
425
457
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
426
458
|
this.name = this.constructor.name;
|
|
@@ -437,6 +469,7 @@ exports.TooManyIssuesError = TooManyIssuesError;
|
|
|
437
469
|
* @summary Expected distro to be present
|
|
438
470
|
* @category PurlVulnerabilityFetching
|
|
439
471
|
* @param {string} details the specific details that causes this error
|
|
472
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
440
473
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
441
474
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
442
475
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -449,6 +482,7 @@ class UndefinedContainerDistroError extends problem_error_1.ProblemError {
|
|
|
449
482
|
status: 400,
|
|
450
483
|
errorCode: 'SNYK-OSSI-2044',
|
|
451
484
|
level: 'warn',
|
|
485
|
+
classification: 'UNSUPPORTED',
|
|
452
486
|
instance,
|
|
453
487
|
}, details, Object.assign({ links: [
|
|
454
488
|
'https://docs.snyk.io/scan-containers/how-snyk-container-works/supported-operating-system-distributions#debian',
|
|
@@ -464,6 +498,7 @@ exports.UndefinedContainerDistroError = UndefinedContainerDistroError;
|
|
|
464
498
|
* @summary Unsupported Debian distro
|
|
465
499
|
* @category PurlVulnerabilityFetching
|
|
466
500
|
* @param {string} details the specific details that causes this error
|
|
501
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
467
502
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
468
503
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
469
504
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -476,6 +511,7 @@ class UnsupportedDebianDistroError extends problem_error_1.ProblemError {
|
|
|
476
511
|
status: 400,
|
|
477
512
|
errorCode: 'SNYK-OSSI-2045',
|
|
478
513
|
level: 'warn',
|
|
514
|
+
classification: 'UNSUPPORTED',
|
|
479
515
|
instance,
|
|
480
516
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
481
517
|
this.name = this.constructor.name;
|
|
@@ -489,6 +525,7 @@ exports.UnsupportedDebianDistroError = UnsupportedDebianDistroError;
|
|
|
489
525
|
* @summary Expected namespace to be present
|
|
490
526
|
* @category PurlVulnerabilityFetching
|
|
491
527
|
* @param {string} details the specific details that causes this error
|
|
528
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
492
529
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
493
530
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
494
531
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -501,6 +538,7 @@ class UndefinedContainerVendorError extends problem_error_1.ProblemError {
|
|
|
501
538
|
status: 400,
|
|
502
539
|
errorCode: 'SNYK-OSSI-2046',
|
|
503
540
|
level: 'warn',
|
|
541
|
+
classification: 'ACTIONABLE',
|
|
504
542
|
instance,
|
|
505
543
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
506
544
|
this.name = this.constructor.name;
|
|
@@ -510,10 +548,11 @@ exports.UndefinedContainerVendorError = UndefinedContainerVendorError;
|
|
|
510
548
|
/**
|
|
511
549
|
* @class
|
|
512
550
|
* @name UnsupportedContainerVendorError
|
|
513
|
-
* @description The given Package URL does not contain a supported vendor.
|
|
551
|
+
* @description The given Package URL does not contain a supported vendor. Please use one of the listed vendors and try again.
|
|
514
552
|
* @summary Unsupported vendor
|
|
515
553
|
* @category PurlVulnerabilityFetching
|
|
516
554
|
* @param {string} details the specific details that causes this error
|
|
555
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
517
556
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
518
557
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
519
558
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -526,6 +565,7 @@ class UnsupportedContainerVendorError extends problem_error_1.ProblemError {
|
|
|
526
565
|
status: 400,
|
|
527
566
|
errorCode: 'SNYK-OSSI-2047',
|
|
528
567
|
level: 'warn',
|
|
568
|
+
classification: 'UNSUPPORTED',
|
|
529
569
|
instance,
|
|
530
570
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
531
571
|
this.name = this.constructor.name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PurlVulnerabilityFetching-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/PurlVulnerabilityFetching-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oDAAgD;AAEhD
|
|
1
|
+
{"version":3,"file":"PurlVulnerabilityFetching-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/PurlVulnerabilityFetching-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oDAAgD;AAEhD;;;;;;;;;;;GAWG;AACH,MAAa,+BAAgC,SAAQ,4BAAY;IAC/D,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,4DAA4D;YACnE,IAAI,EAAE,6DAA6D;YACnE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,gBAAgB;YAC3B,KAAK,EAAE,MAAM;YACb,cAAc,EAAE,YAAY;YAC5B,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE,EAAE,IACN,cAAc,GAEnB,KAAK,CACN,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA1BD,0EA0BC;AAED;;;;;;;;;;;GAWG;AACH,MAAa,gCAAiC,SAAQ,4BAAY;IAChE,YACI,OAAe,EACf,cAAoC,E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,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE,EAAE,IACN,cAAc,GAEnB,KAAK,CACN,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA1BD,0EA0BC"}
|
|
@@ -21,6 +21,7 @@ import { ProblemError } from '../problem-error';
|
|
|
21
21
|
* @summary SBOM generation export server error
|
|
22
22
|
* @category SbomExport
|
|
23
23
|
* @param {string} details the specific details that causes this error
|
|
24
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
24
25
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
25
26
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
26
27
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -35,6 +36,7 @@ export declare class InternalServerError extends ProblemError {
|
|
|
35
36
|
* @summary Dependency graph error
|
|
36
37
|
* @category SbomExport
|
|
37
38
|
* @param {string} details the specific details that causes this error
|
|
39
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
38
40
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
39
41
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
40
42
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -49,6 +51,7 @@ export declare class UnexpectedDepGraphResponseError extends ProblemError {
|
|
|
49
51
|
* @summary Error parsing dependency graph
|
|
50
52
|
* @category SbomExport
|
|
51
53
|
* @param {string} details the specific details that causes this error
|
|
54
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
52
55
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
53
56
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
54
57
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -63,6 +66,7 @@ export declare class UnexpectedParseDepGraphError extends ProblemError {
|
|
|
63
66
|
* @summary SBOM not supported due to project type
|
|
64
67
|
* @category SbomExport
|
|
65
68
|
* @param {string} details the specific details that causes this error
|
|
69
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
66
70
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
67
71
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
68
72
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -77,6 +81,7 @@ export declare class IaCOrSASTProjectError extends ProblemError {
|
|
|
77
81
|
* @summary SBOM not supported
|
|
78
82
|
* @category SbomExport
|
|
79
83
|
* @param {string} details the specific details that causes this error
|
|
84
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
80
85
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
81
86
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
82
87
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -91,6 +96,7 @@ export declare class UnsupportedProjectError extends ProblemError {
|
|
|
91
96
|
* @summary Dependency graph request cannot be processed
|
|
92
97
|
* @category SbomExport
|
|
93
98
|
* @param {string} details the specific details that causes this error
|
|
99
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
94
100
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
95
101
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
96
102
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -108,6 +114,7 @@ export declare class DepGraphResponseError extends ProblemError {
|
|
|
108
114
|
* @summary Authorization failed due to missing API token
|
|
109
115
|
* @category SbomExport
|
|
110
116
|
* @param {string} details the specific details that causes this error
|
|
117
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
111
118
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
112
119
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
113
120
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -122,6 +129,7 @@ export declare class MissingAuthTokenError extends ProblemError {
|
|
|
122
129
|
* @summary Client request cannot be processed
|
|
123
130
|
* @category SbomExport
|
|
124
131
|
* @param {string} details the specific details that causes this error
|
|
132
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
125
133
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
126
134
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
127
135
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -132,10 +140,11 @@ export declare class EmptyRequestBodyError extends ProblemError {
|
|
|
132
140
|
/**
|
|
133
141
|
* @class
|
|
134
142
|
* @name InvalidDepGraphError
|
|
135
|
-
* @description The
|
|
143
|
+
* @description The supplied dependency graph was not valid. Review the request, then try again.
|
|
136
144
|
* @summary Invalid dependency graph
|
|
137
145
|
* @category SbomExport
|
|
138
146
|
* @param {string} details the specific details that causes this error
|
|
147
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
139
148
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
140
149
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
141
150
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -24,6 +24,7 @@ const problem_error_1 = require("../problem-error");
|
|
|
24
24
|
* @summary SBOM generation export server error
|
|
25
25
|
* @category SbomExport
|
|
26
26
|
* @param {string} details the specific details that causes this error
|
|
27
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
27
28
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
28
29
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
29
30
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -36,6 +37,7 @@ class InternalServerError extends problem_error_1.ProblemError {
|
|
|
36
37
|
status: 500,
|
|
37
38
|
errorCode: 'SNYK-OS-9000',
|
|
38
39
|
level: 'error',
|
|
40
|
+
classification: 'UNEXPECTED',
|
|
39
41
|
instance,
|
|
40
42
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
41
43
|
this.name = this.constructor.name;
|
|
@@ -49,6 +51,7 @@ exports.InternalServerError = InternalServerError;
|
|
|
49
51
|
* @summary Dependency graph error
|
|
50
52
|
* @category SbomExport
|
|
51
53
|
* @param {string} details the specific details that causes this error
|
|
54
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
52
55
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
53
56
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
54
57
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -61,6 +64,7 @@ class UnexpectedDepGraphResponseError extends problem_error_1.ProblemError {
|
|
|
61
64
|
status: 500,
|
|
62
65
|
errorCode: 'SNYK-OS-9001',
|
|
63
66
|
level: 'error',
|
|
67
|
+
classification: 'UNEXPECTED',
|
|
64
68
|
instance,
|
|
65
69
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
66
70
|
this.name = this.constructor.name;
|
|
@@ -74,6 +78,7 @@ exports.UnexpectedDepGraphResponseError = UnexpectedDepGraphResponseError;
|
|
|
74
78
|
* @summary Error parsing dependency graph
|
|
75
79
|
* @category SbomExport
|
|
76
80
|
* @param {string} details the specific details that causes this error
|
|
81
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
77
82
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
78
83
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
79
84
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -86,6 +91,7 @@ class UnexpectedParseDepGraphError extends problem_error_1.ProblemError {
|
|
|
86
91
|
status: 500,
|
|
87
92
|
errorCode: 'SNYK-OS-9002',
|
|
88
93
|
level: 'error',
|
|
94
|
+
classification: 'UNEXPECTED',
|
|
89
95
|
instance,
|
|
90
96
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
91
97
|
this.name = this.constructor.name;
|
|
@@ -99,6 +105,7 @@ exports.UnexpectedParseDepGraphError = UnexpectedParseDepGraphError;
|
|
|
99
105
|
* @summary SBOM not supported due to project type
|
|
100
106
|
* @category SbomExport
|
|
101
107
|
* @param {string} details the specific details that causes this error
|
|
108
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
102
109
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
103
110
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
104
111
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -111,6 +118,7 @@ class IaCOrSASTProjectError extends problem_error_1.ProblemError {
|
|
|
111
118
|
status: 404,
|
|
112
119
|
errorCode: 'SNYK-OS-9003',
|
|
113
120
|
level: 'warn',
|
|
121
|
+
classification: 'UNSUPPORTED',
|
|
114
122
|
instance,
|
|
115
123
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
116
124
|
this.name = this.constructor.name;
|
|
@@ -124,6 +132,7 @@ exports.IaCOrSASTProjectError = IaCOrSASTProjectError;
|
|
|
124
132
|
* @summary SBOM not supported
|
|
125
133
|
* @category SbomExport
|
|
126
134
|
* @param {string} details the specific details that causes this error
|
|
135
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
127
136
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
128
137
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
129
138
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -136,6 +145,7 @@ class UnsupportedProjectError extends problem_error_1.ProblemError {
|
|
|
136
145
|
status: 404,
|
|
137
146
|
errorCode: 'SNYK-OS-9004',
|
|
138
147
|
level: 'warn',
|
|
148
|
+
classification: 'UNSUPPORTED',
|
|
139
149
|
instance,
|
|
140
150
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
141
151
|
this.name = this.constructor.name;
|
|
@@ -149,6 +159,7 @@ exports.UnsupportedProjectError = UnsupportedProjectError;
|
|
|
149
159
|
* @summary Dependency graph request cannot be processed
|
|
150
160
|
* @category SbomExport
|
|
151
161
|
* @param {string} details the specific details that causes this error
|
|
162
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
152
163
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
153
164
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
154
165
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -161,6 +172,7 @@ class DepGraphResponseError extends problem_error_1.ProblemError {
|
|
|
161
172
|
status: 404,
|
|
162
173
|
errorCode: 'SNYK-OS-9005',
|
|
163
174
|
level: 'warn',
|
|
175
|
+
classification: 'ACTIONABLE',
|
|
164
176
|
instance,
|
|
165
177
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
166
178
|
this.name = this.constructor.name;
|
|
@@ -177,6 +189,7 @@ exports.DepGraphResponseError = DepGraphResponseError;
|
|
|
177
189
|
* @summary Authorization failed due to missing API token
|
|
178
190
|
* @category SbomExport
|
|
179
191
|
* @param {string} details the specific details that causes this error
|
|
192
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
180
193
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
181
194
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
182
195
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -189,6 +202,7 @@ class MissingAuthTokenError extends problem_error_1.ProblemError {
|
|
|
189
202
|
status: 401,
|
|
190
203
|
errorCode: 'SNYK-OS-9006',
|
|
191
204
|
level: 'warn',
|
|
205
|
+
classification: 'ACTIONABLE',
|
|
192
206
|
instance,
|
|
193
207
|
}, details, Object.assign({ links: [
|
|
194
208
|
'https://docs.snyk.io/snyk-api-info/revoking-and-regenerating-snyk-api-tokens',
|
|
@@ -204,6 +218,7 @@ exports.MissingAuthTokenError = MissingAuthTokenError;
|
|
|
204
218
|
* @summary Client request cannot be processed
|
|
205
219
|
* @category SbomExport
|
|
206
220
|
* @param {string} details the specific details that causes this error
|
|
221
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
207
222
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
208
223
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
209
224
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -216,6 +231,7 @@ class EmptyRequestBodyError extends problem_error_1.ProblemError {
|
|
|
216
231
|
status: 400,
|
|
217
232
|
errorCode: 'SNYK-OS-9007',
|
|
218
233
|
level: 'warn',
|
|
234
|
+
classification: 'ACTIONABLE',
|
|
219
235
|
instance,
|
|
220
236
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
221
237
|
this.name = this.constructor.name;
|
|
@@ -225,10 +241,11 @@ exports.EmptyRequestBodyError = EmptyRequestBodyError;
|
|
|
225
241
|
/**
|
|
226
242
|
* @class
|
|
227
243
|
* @name InvalidDepGraphError
|
|
228
|
-
* @description The
|
|
244
|
+
* @description The supplied dependency graph was not valid. Review the request, then try again.
|
|
229
245
|
* @summary Invalid dependency graph
|
|
230
246
|
* @category SbomExport
|
|
231
247
|
* @param {string} details the specific details that causes this error
|
|
248
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
232
249
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
233
250
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
234
251
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -238,9 +255,10 @@ class InvalidDepGraphError extends problem_error_1.ProblemError {
|
|
|
238
255
|
super({
|
|
239
256
|
title: 'Invalid dependency graph',
|
|
240
257
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-9008',
|
|
241
|
-
status:
|
|
258
|
+
status: 422,
|
|
242
259
|
errorCode: 'SNYK-OS-9008',
|
|
243
260
|
level: 'warn',
|
|
261
|
+
classification: 'ACTIONABLE',
|
|
244
262
|
instance,
|
|
245
263
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
246
264
|
this.name = this.constructor.name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SbomExport-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/SbomExport-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oDAAgD;AAEhD
|
|
1
|
+
{"version":3,"file":"SbomExport-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/SbomExport-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oDAAgD;AAEhD;;;;;;;;;;;GAWG;AACH,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,qCAAqC;YAC5C,IAAI,EAAE,2DAA2D;YACjE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,cAAc;YACzB,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,YAAY;YAC5B,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE,EAAE,IACN,cAAc,GAEnB,KAAK,CACN,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA1BD,kDA0BC;AAED;;;;;;;;;;;GAWG;AACH,MAAa,+BAAgC,SAAQ,4BAAY;IAC/D,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,wBAAwB;YAC/B,IAAI,EAAE,2DAA2D;YACjE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,cAAc;YACzB,KAAK,EAAE,OAAO;YACd,cAAc,EA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