@snyk/error-catalog-nodejs-public 5.0.1 → 5.1.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.
- package/package.json +1 -1
- package/src/catalogs/Fix-error-catalog.d.ts +10 -10
- package/src/catalogs/Fix-error-catalog.js +21 -20
- package/src/catalogs/Fix-error-catalog.js.map +1 -1
- package/src/catalogs/IsolatedBuilds-error-catalog.d.ts +3 -3
- package/src/catalogs/IsolatedBuilds-error-catalog.js +7 -6
- package/src/catalogs/IsolatedBuilds-error-catalog.js.map +1 -1
- package/src/catalogs/OpenAPI-error-catalog.d.ts +8 -8
- package/src/catalogs/OpenAPI-error-catalog.js +17 -16
- package/src/catalogs/OpenAPI-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceEcosystems-error-catalog.d.ts +67 -52
- package/src/catalogs/OpenSourceEcosystems-error-catalog.js +133 -105
- package/src/catalogs/OpenSourceEcosystems-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.d.ts +5 -5
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.js +11 -10
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.d.ts +5 -5
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js +11 -10
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.d.ts +2 -2
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.js +5 -4
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.js.map +1 -1
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.d.ts +20 -20
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js +41 -40
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js.map +1 -1
- package/src/catalogs/SbomExport-error-catalog.d.ts +9 -9
- package/src/catalogs/SbomExport-error-catalog.js +19 -18
- package/src/catalogs/SbomExport-error-catalog.js.map +1 -1
- package/src/catalogs/Snyk-error-catalog.d.ts +6 -6
- package/src/catalogs/Snyk-error-catalog.js +13 -12
- package/src/catalogs/Snyk-error-catalog.js.map +1 -1
- package/src/catalogs/error-codes.d.ts +1 -0
- package/src/catalogs/error-codes.js +1 -0
- package/src/catalogs/error-codes.js.map +1 -1
- package/src/problem-error.js +1 -0
- package/src/problem-error.js.map +1 -1
- package/src/types.d.ts +7 -1
- package/src/types.js +7 -1
- package/src/types.js.map +1 -1
|
@@ -21,7 +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 {
|
|
24
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
25
25
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
26
26
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
27
27
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -36,7 +36,7 @@ export declare class InternalServerError extends ProblemError {
|
|
|
36
36
|
* @summary Dependency graph error
|
|
37
37
|
* @category SbomExport
|
|
38
38
|
* @param {string} details the specific details that causes this error
|
|
39
|
-
* @param {
|
|
39
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
40
40
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
41
41
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
42
42
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -51,7 +51,7 @@ export declare class UnexpectedDepGraphResponseError extends ProblemError {
|
|
|
51
51
|
* @summary Error parsing dependency graph
|
|
52
52
|
* @category SbomExport
|
|
53
53
|
* @param {string} details the specific details that causes this error
|
|
54
|
-
* @param {
|
|
54
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
55
55
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
56
56
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
57
57
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -66,7 +66,7 @@ export declare class UnexpectedParseDepGraphError extends ProblemError {
|
|
|
66
66
|
* @summary SBOM not supported due to project type
|
|
67
67
|
* @category SbomExport
|
|
68
68
|
* @param {string} details the specific details that causes this error
|
|
69
|
-
* @param {
|
|
69
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
70
70
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
71
71
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
72
72
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -81,7 +81,7 @@ export declare class IaCOrSASTProjectError extends ProblemError {
|
|
|
81
81
|
* @summary SBOM not supported
|
|
82
82
|
* @category SbomExport
|
|
83
83
|
* @param {string} details the specific details that causes this error
|
|
84
|
-
* @param {
|
|
84
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
85
85
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
86
86
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
87
87
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -96,7 +96,7 @@ export declare class UnsupportedProjectError extends ProblemError {
|
|
|
96
96
|
* @summary Dependency graph request cannot be processed
|
|
97
97
|
* @category SbomExport
|
|
98
98
|
* @param {string} details the specific details that causes this error
|
|
99
|
-
* @param {
|
|
99
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
100
100
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
101
101
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
102
102
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -114,7 +114,7 @@ export declare class DepGraphResponseError extends ProblemError {
|
|
|
114
114
|
* @summary Authorization failed due to missing API token
|
|
115
115
|
* @category SbomExport
|
|
116
116
|
* @param {string} details the specific details that causes this error
|
|
117
|
-
* @param {
|
|
117
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
118
118
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
119
119
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
120
120
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -129,7 +129,7 @@ export declare class MissingAuthTokenError extends ProblemError {
|
|
|
129
129
|
* @summary Client request cannot be processed
|
|
130
130
|
* @category SbomExport
|
|
131
131
|
* @param {string} details the specific details that causes this error
|
|
132
|
-
* @param {
|
|
132
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
133
133
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
134
134
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
135
135
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -144,7 +144,7 @@ export declare class EmptyRequestBodyError extends ProblemError {
|
|
|
144
144
|
* @summary Invalid dependency graph
|
|
145
145
|
* @category SbomExport
|
|
146
146
|
* @param {string} details the specific details that causes this error
|
|
147
|
-
* @param {
|
|
147
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
148
148
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
149
149
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
150
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,7 +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
|
|
27
|
-
* @param {
|
|
28
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
28
29
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
29
30
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
30
31
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -37,7 +38,7 @@ class InternalServerError extends problem_error_1.ProblemError {
|
|
|
37
38
|
status: 500,
|
|
38
39
|
errorCode: 'SNYK-OS-9000',
|
|
39
40
|
level: 'error',
|
|
40
|
-
classification:
|
|
41
|
+
classification: types_1.Classification.UNEXPECTED,
|
|
41
42
|
instance,
|
|
42
43
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
43
44
|
this.name = this.constructor.name;
|
|
@@ -51,7 +52,7 @@ exports.InternalServerError = InternalServerError;
|
|
|
51
52
|
* @summary Dependency graph error
|
|
52
53
|
* @category SbomExport
|
|
53
54
|
* @param {string} details the specific details that causes this error
|
|
54
|
-
* @param {
|
|
55
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
55
56
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
56
57
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
57
58
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -64,7 +65,7 @@ class UnexpectedDepGraphResponseError extends problem_error_1.ProblemError {
|
|
|
64
65
|
status: 500,
|
|
65
66
|
errorCode: 'SNYK-OS-9001',
|
|
66
67
|
level: 'error',
|
|
67
|
-
classification:
|
|
68
|
+
classification: types_1.Classification.UNEXPECTED,
|
|
68
69
|
instance,
|
|
69
70
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
70
71
|
this.name = this.constructor.name;
|
|
@@ -78,7 +79,7 @@ exports.UnexpectedDepGraphResponseError = UnexpectedDepGraphResponseError;
|
|
|
78
79
|
* @summary Error parsing dependency graph
|
|
79
80
|
* @category SbomExport
|
|
80
81
|
* @param {string} details the specific details that causes this error
|
|
81
|
-
* @param {
|
|
82
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
82
83
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
83
84
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
84
85
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -91,7 +92,7 @@ class UnexpectedParseDepGraphError extends problem_error_1.ProblemError {
|
|
|
91
92
|
status: 500,
|
|
92
93
|
errorCode: 'SNYK-OS-9002',
|
|
93
94
|
level: 'error',
|
|
94
|
-
classification:
|
|
95
|
+
classification: types_1.Classification.UNEXPECTED,
|
|
95
96
|
instance,
|
|
96
97
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
97
98
|
this.name = this.constructor.name;
|
|
@@ -105,7 +106,7 @@ exports.UnexpectedParseDepGraphError = UnexpectedParseDepGraphError;
|
|
|
105
106
|
* @summary SBOM not supported due to project type
|
|
106
107
|
* @category SbomExport
|
|
107
108
|
* @param {string} details the specific details that causes this error
|
|
108
|
-
* @param {
|
|
109
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
109
110
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
110
111
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
111
112
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -118,7 +119,7 @@ class IaCOrSASTProjectError extends problem_error_1.ProblemError {
|
|
|
118
119
|
status: 404,
|
|
119
120
|
errorCode: 'SNYK-OS-9003',
|
|
120
121
|
level: 'warn',
|
|
121
|
-
classification:
|
|
122
|
+
classification: types_1.Classification.UNSUPPORTED,
|
|
122
123
|
instance,
|
|
123
124
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
124
125
|
this.name = this.constructor.name;
|
|
@@ -132,7 +133,7 @@ exports.IaCOrSASTProjectError = IaCOrSASTProjectError;
|
|
|
132
133
|
* @summary SBOM not supported
|
|
133
134
|
* @category SbomExport
|
|
134
135
|
* @param {string} details the specific details that causes this error
|
|
135
|
-
* @param {
|
|
136
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
136
137
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
137
138
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
138
139
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -145,7 +146,7 @@ class UnsupportedProjectError extends problem_error_1.ProblemError {
|
|
|
145
146
|
status: 404,
|
|
146
147
|
errorCode: 'SNYK-OS-9004',
|
|
147
148
|
level: 'warn',
|
|
148
|
-
classification:
|
|
149
|
+
classification: types_1.Classification.UNSUPPORTED,
|
|
149
150
|
instance,
|
|
150
151
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
151
152
|
this.name = this.constructor.name;
|
|
@@ -159,7 +160,7 @@ exports.UnsupportedProjectError = UnsupportedProjectError;
|
|
|
159
160
|
* @summary Dependency graph request cannot be processed
|
|
160
161
|
* @category SbomExport
|
|
161
162
|
* @param {string} details the specific details that causes this error
|
|
162
|
-
* @param {
|
|
163
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
163
164
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
164
165
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
165
166
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -172,7 +173,7 @@ class DepGraphResponseError extends problem_error_1.ProblemError {
|
|
|
172
173
|
status: 404,
|
|
173
174
|
errorCode: 'SNYK-OS-9005',
|
|
174
175
|
level: 'warn',
|
|
175
|
-
classification:
|
|
176
|
+
classification: types_1.Classification.ACTIONABLE,
|
|
176
177
|
instance,
|
|
177
178
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
178
179
|
this.name = this.constructor.name;
|
|
@@ -189,7 +190,7 @@ exports.DepGraphResponseError = DepGraphResponseError;
|
|
|
189
190
|
* @summary Authorization failed due to missing API token
|
|
190
191
|
* @category SbomExport
|
|
191
192
|
* @param {string} details the specific details that causes this error
|
|
192
|
-
* @param {
|
|
193
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
193
194
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
194
195
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
195
196
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -202,7 +203,7 @@ class MissingAuthTokenError extends problem_error_1.ProblemError {
|
|
|
202
203
|
status: 401,
|
|
203
204
|
errorCode: 'SNYK-OS-9006',
|
|
204
205
|
level: 'warn',
|
|
205
|
-
classification:
|
|
206
|
+
classification: types_1.Classification.ACTIONABLE,
|
|
206
207
|
instance,
|
|
207
208
|
}, details, Object.assign({ links: [
|
|
208
209
|
'https://docs.snyk.io/snyk-api-info/revoking-and-regenerating-snyk-api-tokens',
|
|
@@ -218,7 +219,7 @@ exports.MissingAuthTokenError = MissingAuthTokenError;
|
|
|
218
219
|
* @summary Client request cannot be processed
|
|
219
220
|
* @category SbomExport
|
|
220
221
|
* @param {string} details the specific details that causes this error
|
|
221
|
-
* @param {
|
|
222
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
222
223
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
223
224
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
224
225
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -231,7 +232,7 @@ class EmptyRequestBodyError extends problem_error_1.ProblemError {
|
|
|
231
232
|
status: 400,
|
|
232
233
|
errorCode: 'SNYK-OS-9007',
|
|
233
234
|
level: 'warn',
|
|
234
|
-
classification:
|
|
235
|
+
classification: types_1.Classification.ACTIONABLE,
|
|
235
236
|
instance,
|
|
236
237
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
237
238
|
this.name = this.constructor.name;
|
|
@@ -245,7 +246,7 @@ exports.EmptyRequestBodyError = EmptyRequestBodyError;
|
|
|
245
246
|
* @summary Invalid dependency graph
|
|
246
247
|
* @category SbomExport
|
|
247
248
|
* @param {string} details the specific details that causes this error
|
|
248
|
-
* @param {
|
|
249
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
249
250
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
250
251
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
251
252
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -258,7 +259,7 @@ class InvalidDepGraphError extends problem_error_1.ProblemError {
|
|
|
258
259
|
status: 422,
|
|
259
260
|
errorCode: 'SNYK-OS-9008',
|
|
260
261
|
level: 'warn',
|
|
261
|
-
classification:
|
|
262
|
+
classification: types_1.Classification.ACTIONABLE,
|
|
262
263
|
instance,
|
|
263
264
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
264
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;;;;;;;;;;;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,
|
|
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,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,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;A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f,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,oCAAoC;YAC3C,IAAI,EAAE,2DAA2D;YACjE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,cAAc;YACzB,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,sDA0BC;AAED;;;;;;;;;;;GAWG;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,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,oDA0BC"}
|
|
@@ -21,7 +21,7 @@ import { ProblemError } from '../problem-error';
|
|
|
21
21
|
* @summary Service temporarily throttled
|
|
22
22
|
* @category Snyk
|
|
23
23
|
* @param {string} details the specific details that causes this error
|
|
24
|
-
* @param {
|
|
24
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
25
25
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
26
26
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
27
27
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -39,7 +39,7 @@ export declare class TooManyRequestsError extends ProblemError {
|
|
|
39
39
|
* @summary Server error response
|
|
40
40
|
* @category Snyk
|
|
41
41
|
* @param {string} details the specific details that causes this error
|
|
42
|
-
* @param {
|
|
42
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
43
43
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
44
44
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
45
45
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -54,7 +54,7 @@ export declare class NotImplementedError extends ProblemError {
|
|
|
54
54
|
* @summary Client request cannot be processed
|
|
55
55
|
* @category Snyk
|
|
56
56
|
* @param {string} details the specific details that causes this error
|
|
57
|
-
* @param {
|
|
57
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
58
58
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
59
59
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
60
60
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -72,7 +72,7 @@ export declare class BadRequestError extends ProblemError {
|
|
|
72
72
|
* @summary Server communication error
|
|
73
73
|
* @category Snyk
|
|
74
74
|
* @param {string} details the specific details that causes this error
|
|
75
|
-
* @param {
|
|
75
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
76
76
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
77
77
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
78
78
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -87,7 +87,7 @@ export declare class TimeoutError extends ProblemError {
|
|
|
87
87
|
* @summary Authentication error
|
|
88
88
|
* @category Snyk
|
|
89
89
|
* @param {string} details the specific details that causes this error
|
|
90
|
-
* @param {
|
|
90
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
91
91
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
92
92
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
93
93
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -105,7 +105,7 @@ export declare class UnauthorisedError extends ProblemError {
|
|
|
105
105
|
* @summary Request not fulfilled due to server error
|
|
106
106
|
* @category Snyk
|
|
107
107
|
* @param {string} details the specific details that causes this error
|
|
108
|
-
* @param {
|
|
108
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
109
109
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
110
110
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
111
111
|
* @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.ServerError = exports.UnauthorisedError = exports.TimeoutError = exports.BadRequestError = exports.NotImplementedError = exports.TooManyRequestsError = void 0;
|
|
19
|
+
const types_1 = require("../types");
|
|
19
20
|
const problem_error_1 = require("../problem-error");
|
|
20
21
|
/**
|
|
21
22
|
* @class
|
|
@@ -24,7 +25,7 @@ const problem_error_1 = require("../problem-error");
|
|
|
24
25
|
* @summary Service temporarily throttled
|
|
25
26
|
* @category Snyk
|
|
26
27
|
* @param {string} details the specific details that causes this error
|
|
27
|
-
* @param {
|
|
28
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
28
29
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
29
30
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
30
31
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -37,7 +38,7 @@ class TooManyRequestsError extends problem_error_1.ProblemError {
|
|
|
37
38
|
status: 429,
|
|
38
39
|
errorCode: 'SNYK-0001',
|
|
39
40
|
level: 'warn',
|
|
40
|
-
classification:
|
|
41
|
+
classification: types_1.Classification.ACTIONABLE,
|
|
41
42
|
instance,
|
|
42
43
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
43
44
|
this.name = this.constructor.name;
|
|
@@ -54,7 +55,7 @@ exports.TooManyRequestsError = TooManyRequestsError;
|
|
|
54
55
|
* @summary Server error response
|
|
55
56
|
* @category Snyk
|
|
56
57
|
* @param {string} details the specific details that causes this error
|
|
57
|
-
* @param {
|
|
58
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
58
59
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
59
60
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
60
61
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -67,7 +68,7 @@ class NotImplementedError extends problem_error_1.ProblemError {
|
|
|
67
68
|
status: 501,
|
|
68
69
|
errorCode: 'SNYK-0002',
|
|
69
70
|
level: 'error',
|
|
70
|
-
classification:
|
|
71
|
+
classification: types_1.Classification.UNSUPPORTED,
|
|
71
72
|
instance,
|
|
72
73
|
}, details, Object.assign({ links: [
|
|
73
74
|
'https://docs.snyk.io/snyk-api-info',
|
|
@@ -83,7 +84,7 @@ exports.NotImplementedError = NotImplementedError;
|
|
|
83
84
|
* @summary Client request cannot be processed
|
|
84
85
|
* @category Snyk
|
|
85
86
|
* @param {string} details the specific details that causes this error
|
|
86
|
-
* @param {
|
|
87
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
87
88
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
88
89
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
89
90
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -96,7 +97,7 @@ class BadRequestError extends problem_error_1.ProblemError {
|
|
|
96
97
|
status: 400,
|
|
97
98
|
errorCode: 'SNYK-0003',
|
|
98
99
|
level: 'error',
|
|
99
|
-
classification:
|
|
100
|
+
classification: types_1.Classification.ACTIONABLE,
|
|
100
101
|
instance,
|
|
101
102
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
102
103
|
this.name = this.constructor.name;
|
|
@@ -113,7 +114,7 @@ exports.BadRequestError = BadRequestError;
|
|
|
113
114
|
* @summary Server communication error
|
|
114
115
|
* @category Snyk
|
|
115
116
|
* @param {string} details the specific details that causes this error
|
|
116
|
-
* @param {
|
|
117
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
117
118
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
118
119
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
119
120
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -126,7 +127,7 @@ class TimeoutError extends problem_error_1.ProblemError {
|
|
|
126
127
|
status: 504,
|
|
127
128
|
errorCode: 'SNYK-0004',
|
|
128
129
|
level: 'error',
|
|
129
|
-
classification:
|
|
130
|
+
classification: types_1.Classification.UNEXPECTED,
|
|
130
131
|
instance,
|
|
131
132
|
}, details, Object.assign({ links: [
|
|
132
133
|
'https://status.snyk.io/',
|
|
@@ -142,7 +143,7 @@ exports.TimeoutError = TimeoutError;
|
|
|
142
143
|
* @summary Authentication error
|
|
143
144
|
* @category Snyk
|
|
144
145
|
* @param {string} details the specific details that causes this error
|
|
145
|
-
* @param {
|
|
146
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
146
147
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
147
148
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
148
149
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -155,7 +156,7 @@ class UnauthorisedError extends problem_error_1.ProblemError {
|
|
|
155
156
|
status: 401,
|
|
156
157
|
errorCode: 'SNYK-0005',
|
|
157
158
|
level: 'error',
|
|
158
|
-
classification:
|
|
159
|
+
classification: types_1.Classification.ACTIONABLE,
|
|
159
160
|
instance,
|
|
160
161
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
161
162
|
this.name = this.constructor.name;
|
|
@@ -172,7 +173,7 @@ exports.UnauthorisedError = UnauthorisedError;
|
|
|
172
173
|
* @summary Request not fulfilled due to server error
|
|
173
174
|
* @category Snyk
|
|
174
175
|
* @param {string} details the specific details that causes this error
|
|
175
|
-
* @param {
|
|
176
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
176
177
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
177
178
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
178
179
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -185,7 +186,7 @@ class ServerError extends problem_error_1.ProblemError {
|
|
|
185
186
|
status: 500,
|
|
186
187
|
errorCode: 'SNYK-9999',
|
|
187
188
|
level: 'error',
|
|
188
|
-
classification:
|
|
189
|
+
classification: types_1.Classification.UNEXPECTED,
|
|
189
190
|
instance,
|
|
190
191
|
}, details, Object.assign({ links: [
|
|
191
192
|
'https://status.snyk.io/',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Snyk-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/Snyk-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oDAAgD;AAEhD;;;;;;;;;;;GAWG;AACH,MAAa,oBAAqB,SAAQ,4BAAY;IACpD,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,+BAA+B;YACtC,IAAI,EAAE,wDAAwD;YAC9D,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,MAAM;YACb,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"Snyk-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/Snyk-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oC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,MAAa,WAAY,SAAQ,4BAAY;IAC3C,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,4CAA4C;YACnD,IAAI,EAAE,wDAAwD;YAC9D,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,sBAAc,CAAC,UAAU;YACzC,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE;gBACP,yBAAyB;aACxB,IACE,cAAc,GAEnB,KAAK,CACN,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA5BD,kCA4BC"}
|
|
@@ -77,6 +77,7 @@ exports.default = {
|
|
|
77
77
|
UnsupportedRequirementsFile: 'SNYK-OS-PIP-0001',
|
|
78
78
|
TooManyManifestFiles: 'SNYK-OS-PIP-0002',
|
|
79
79
|
FailedToApplyDependencyUpdates: 'SNYK-OS-PIP-0003',
|
|
80
|
+
NoMatchingDistribution: 'SNYK-OS-PIP-0004',
|
|
80
81
|
},
|
|
81
82
|
PurlVulnerabilityFetching: {
|
|
82
83
|
OrganizationNotWhitelisted: 'SNYK-OSSI-1040',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-codes.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/error-codes.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX,IAAI,EAAE;QACJ,eAAe,EAAE,WAAW;QAC5B,cAAc,EAAE,WAAW;QAC3B,UAAU,EAAE,WAAW;QACvB,OAAO,EAAE,WAAW;QACpB,YAAY,EAAE,WAAW;QACzB,MAAM,EAAE,WAAW;KACpB;IACD,oBAAoB,EAAE;QACpB,mBAAmB,EAAE,cAAc;QACnC,mBAAmB,EAAE,cAAc;QACnC,wBAAwB,EAAE,cAAc;QACxC,aAAa,EAAE,cAAc;QAC7B,c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,EAAE,qBAAqB;QAC3C,oBAAoB,EAAE,qBAAqB;QAC3C,2BAA2B,EAAE,kBAAkB;QAC/C,oBAAoB,EAAE,kBAAkB;QACxC,8BAA8B,EAAE,kBAAkB;
|
|
1
|
+
{"version":3,"file":"error-codes.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/error-codes.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX,IAAI,EAAE;QACJ,eAAe,EAAE,WAAW;QAC5B,cAAc,EAAE,WAAW;QAC3B,UAAU,EAAE,WAAW;QACvB,OAAO,EAAE,WAAW;QACpB,YAAY,EAAE,WAAW;QACzB,MAAM,EAAE,WAAW;KACpB;IACD,oBAAoB,EAAE;QACpB,mBAAmB,EAAE,cAAc;QACnC,mBAAmB,EAAE,cAAc;QACnC,wBAAwB,EAAE,cAAc;QACxC,aAAa,EAAE,cAAc;QAC7B,cAAc,EAAE,cAAc;QAC9B,iBAAiB,EAAE,cAAc;QACjC,uBAAuB,EAAE,cAAc;QACvC,0BAA0B,EAAE,cAAc;QAC1C,uBAAuB,EAAE,qBAAqB;QAC9C,0BAA0B,EAAE,qBAAqB;QACjD,yBAAyB,EAAE,qBAAqB;QAChD,aAAa,EAAE,qBAAqB;QACpC,aAAa,EAAE,iBAAiB;QAChC,gBAAgB,EAAE,iBAAiB;QACnC,iBAAiB,EAAE,iBAAiB;QACpC,iBAAiB,EAAE,iBAAiB;QACpC,qBAAqB,EAAE,iBAAiB;QACxC,oCAAoC,EAAE,iBAAiB;QACvD,yBAAyB,EAAE,oBAAoB;QAC/C,+BAA+B,EAAE,oBAAoB;QACrD,iCAAiC,EAAE,oBAAoB;QACvD,+BAA+B,EAAE,oBAAoB;QACrD,gBAAgB,EAAE,oBAAoB;QACtC,kBAAkB,EAAE,oBAAoB;QACxC,YAAY,EAAE,oBAAoB;QAClC,eAAe,EAAE,oBAAoB;QACrC,qBAAqB,EAAE,oBAAoB;QAC3C,6BAA6B,EAAE,oBAAoB;QACnD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BAAuB;QAC3D,wBAAwB,EAAE,uBAAuB;QACjD,oBAAoB,EAAE,uBAAuB;QAC7C,wBAAwB,EAAE,uBAAuB;QACjD,sBAAsB,EAAE,uBAAuB;QAC/C,wBAAwB,EAAE,uBAAuB;QACjD,wBAAwB,EAAE,uBAAuB;KAClD;CACJ,CAAA"}
|
package/src/problem-error.js
CHANGED
package/src/problem-error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"problem-error.js","sourceRoot":"","sources":["../../../../packages/error-catalog-nodejs-public/src/problem-error.ts"],"names":[],"mappings":";;;AAAA,mCAQiB;AACjB,+BAA0B;AAC1B,iCAAiD;AAEjD,MAAa,YAAa,SAAQ,KAAK;IAOrC,YACkB,QAAuB,EACvB,MAAc,EACd,cAAoC,EACpC,KAAa;QAE7B,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QALN,aAAQ,GAAR,QAAQ,CAAe;QACvB,WAAM,GAAN,MAAM,CAAQ;QACd,mBAAc,GAAd,cAAc,CAAsB;QACpC,UAAK,GAAL,KAAK,CAAQ;QAR/B,sLAAsL;QACtL,qJAAqJ;QACrI,wBAAmB,GAAG,IAAI,CAAC;QASzC,IAAI,cAAc,IAAI,cAAc,CAAC,iBAAiB,CAAC,EAAE;YACvD,IAAI,CAAC,EAAE,GAAG,cAAc,CAAC,iBAAiB,CAAC,CAAC;SAC7C;aAAM;YACL,IAAI,CAAC,EAAE,GAAG,IAAA,SAAE,GAAE,CAAC;SAChB;IACH,CAAC;IAED,MAAM,CAAC,QAAgB,EAAE,UAAwB;QAC/C,QAAQ,UAAU,EAAE;YAClB,KAAK,oBAAY,CAAC,OAAO;gBACvB,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YAClC,KAAK,oBAAY,CAAC,WAAW;gBAC3B,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YACtC;gBACE,MAAM,IAAI,KAAK,CAAC,qBAAqB,C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,CAAC;IAED,SAAS,CAAC,QAAiB;QACzB,MAAM,OAAO,GAAkB;YAC7B,OAAO,EAAE;gBACP,OAAO,EAAE,KAAK;aACf;YACD,MAAM,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;SAC9C,CAAC;QAEF,OAAO,IAAI,eAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"problem-error.js","sourceRoot":"","sources":["../../../../packages/error-catalog-nodejs-public/src/problem-error.ts"],"names":[],"mappings":";;;AAAA,mCAQiB;AACjB,+BAA0B;AAC1B,iCAAiD;AAEjD,MAAa,YAAa,SAAQ,KAAK;IAOrC,YACkB,QAAuB,EACvB,MAAc,EACd,cAAoC,EACpC,KAAa;QAE7B,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QALN,aAAQ,GAAR,QAAQ,CAAe;QACvB,WAAM,GAAN,MAAM,CAAQ;QACd,mBAAc,GAAd,cAAc,CAAsB;QACpC,UAAK,GAAL,KAAK,CAAQ;QAR/B,sLAAsL;QACtL,qJAAqJ;QACrI,wBAAmB,GAAG,IAAI,CAAC;QASzC,IAAI,cAAc,IAAI,cAAc,CAAC,iBAAiB,CAAC,EAAE;YACvD,IAAI,CAAC,EAAE,GAAG,cAAc,CAAC,iBAAiB,CAAC,CAAC;SAC7C;aAAM;YACL,IAAI,CAAC,EAAE,GAAG,IAAA,SAAE,GAAE,CAAC;SAChB;IACH,CAAC;IAED,MAAM,CAAC,QAAgB,EAAE,UAAwB;QAC/C,QAAQ,UAAU,EAAE;YAClB,KAAK,oBAAY,CAAC,OAAO;gBACvB,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YAClC,KAAK,oBAAY,CAAC,WAAW;gBAC3B,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YACtC;gBACE,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;SAC1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pC;QACD,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAED,SAAS,CAAC,QAAiB;QACzB,MAAM,OAAO,GAAkB;YAC7B,OAAO,EAAE;gBACP,OAAO,EAAE,KAAK;aACf;YACD,MAAM,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;SAC9C,CAAC;QAEF,OAAO,IAAI,eAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;CACF;AA5FD,oCA4FC"}
|
package/src/types.d.ts
CHANGED
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
export declare enum Classification {
|
|
17
|
+
UNEXPECTED = "UNEXPECTED",
|
|
18
|
+
ACTIONABLE = "ACTIONABLE",
|
|
19
|
+
UNSUPPORTED = "UNSUPPORTED"
|
|
20
|
+
}
|
|
16
21
|
export type Problem = {
|
|
17
22
|
/** A URI reference that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type. */
|
|
18
23
|
type: string;
|
|
@@ -29,7 +34,7 @@ export type Problem = {
|
|
|
29
34
|
/** The level of this error */
|
|
30
35
|
level?: string;
|
|
31
36
|
/** Determining whether this error is a failure of Snyk to handle an operation that it was expected to, or if it derives from a requesting service producing something that cannot be handled. */
|
|
32
|
-
classification:
|
|
37
|
+
classification: Classification;
|
|
33
38
|
/** Additional properties. */
|
|
34
39
|
[x: string]: any;
|
|
35
40
|
};
|
|
@@ -64,6 +69,7 @@ export type JsonApiErrorObject = {
|
|
|
64
69
|
code: string;
|
|
65
70
|
title: string;
|
|
66
71
|
detail: string;
|
|
72
|
+
classification: Classification;
|
|
67
73
|
source?: JsonApiErrorSource;
|
|
68
74
|
meta?: {
|
|
69
75
|
[x: string]: any;
|
package/src/types.js
CHANGED
|
@@ -15,7 +15,13 @@
|
|
|
15
15
|
*/
|
|
16
16
|
"use strict";
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.JsonApi = exports.ProblemJson = exports.ErrorFormats = void 0;
|
|
18
|
+
exports.JsonApi = exports.ProblemJson = exports.ErrorFormats = exports.Classification = void 0;
|
|
19
|
+
var Classification;
|
|
20
|
+
(function (Classification) {
|
|
21
|
+
Classification["UNEXPECTED"] = "UNEXPECTED";
|
|
22
|
+
Classification["ACTIONABLE"] = "ACTIONABLE";
|
|
23
|
+
Classification["UNSUPPORTED"] = "UNSUPPORTED";
|
|
24
|
+
})(Classification || (exports.Classification = Classification = {}));
|
|
19
25
|
var ErrorFormats;
|
|
20
26
|
(function (ErrorFormats) {
|
|
21
27
|
ErrorFormats[ErrorFormats["JsonApi"] = 0] = "JsonApi";
|
package/src/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../packages/error-catalog-nodejs-public/src/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../packages/error-catalog-nodejs-public/src/types.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,2CAAyB,CAAA;IACzB,2CAAyB,CAAA;IACzB,6CAA2B,CAAA;AAC7B,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB;AAkCD,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,qDAAO,CAAA;IACP,6DAAW,CAAA;AACb,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAQD,MAAa,WAAW;IACtB,YAA6B,OAAgB;QAAhB,YAAO,GAAP,OAAO,CAAS;IAAG,CAAC;IAEjD,OAAO;QACL,OAAO;YACL,cAAc,EAAE,2BAA2B;SAC5C,CAAC;IACJ,CAAC;IAED,IAAI;QACF,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF;AAZD,kCAYC;AA8BD,MAAa,OAAO;IAClB,YAA6B,OAAsB;QAAtB,YAAO,GAAP,OAAO,CAAe;IAAG,CAAC;IAEvD,OAAO;QACL,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI;QACF,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF;AAVD,0BAUC"}
|