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

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