@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
package/package.json
CHANGED
|
@@ -24,6 +24,7 @@ import { ProblemError } from '../problem-error';
|
|
|
24
24
|
* @summary Failed to get pull request attributes
|
|
25
25
|
* @category Fix
|
|
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
|
|
@@ -38,6 +39,7 @@ export declare class FailedToGetPullRequestAttributesError extends ProblemError
|
|
|
38
39
|
* @summary Not found
|
|
39
40
|
* @category Fix
|
|
40
41
|
* @param {string} details the specific details that causes this error
|
|
42
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
41
43
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
42
44
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
43
45
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -55,6 +57,7 @@ export declare class PullRequestTemplateNotFoundError extends ProblemError {
|
|
|
55
57
|
* @summary Failed to compile pull request template
|
|
56
58
|
* @category Fix
|
|
57
59
|
* @param {string} details the specific details that causes this error
|
|
60
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
58
61
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
59
62
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
60
63
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -72,6 +75,7 @@ export declare class FailedToCompilePrTemplateError extends ProblemError {
|
|
|
72
75
|
* @summary Failed to parse pull request attributes
|
|
73
76
|
* @category Fix
|
|
74
77
|
* @param {string} details the specific details that causes this error
|
|
78
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
75
79
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
76
80
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
77
81
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -89,6 +93,7 @@ export declare class FailedToParsePullRequestAttributesError extends ProblemErro
|
|
|
89
93
|
* @summary Failed to load YAML file after substituting Snyk variables
|
|
90
94
|
* @category Fix
|
|
91
95
|
* @param {string} details the specific details that causes this error
|
|
96
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
92
97
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
93
98
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
94
99
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -106,6 +111,7 @@ export declare class FailedToLoadCompiledYamlError extends ProblemError {
|
|
|
106
111
|
* @summary Failed to generate hash for custom PR template
|
|
107
112
|
* @category Fix
|
|
108
113
|
* @param {string} details the specific details that causes this error
|
|
114
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
109
115
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
110
116
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
111
117
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -123,6 +129,7 @@ export declare class FailedToGenerateHashError extends ProblemError {
|
|
|
123
129
|
* @summary Unable to create pull request template
|
|
124
130
|
* @category Fix
|
|
125
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
|
|
126
133
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
127
134
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
128
135
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -140,6 +147,7 @@ export declare class FailedToCreatePRTemplateError extends ProblemError {
|
|
|
140
147
|
* @summary Unable to get pull request template
|
|
141
148
|
* @category Fix
|
|
142
149
|
* @param {string} details the specific details that causes this error
|
|
150
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
143
151
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
144
152
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
145
153
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -157,6 +165,7 @@ export declare class FailedToReadPRTemplateError extends ProblemError {
|
|
|
157
165
|
* @summary Unable to delete pull request template
|
|
158
166
|
* @category Fix
|
|
159
167
|
* @param {string} details the specific details that causes this error
|
|
168
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
160
169
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
161
170
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
162
171
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -171,6 +180,7 @@ export declare class FailedToDeletePRTemplateError extends ProblemError {
|
|
|
171
180
|
* @summary Invalid payload
|
|
172
181
|
* @category Fix
|
|
173
182
|
* @param {string} details the specific details that causes this error
|
|
183
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
174
184
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
175
185
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
176
186
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -27,6 +27,7 @@ const problem_error_1 = require("../problem-error");
|
|
|
27
27
|
* @summary Failed to get pull request attributes
|
|
28
28
|
* @category Fix
|
|
29
29
|
* @param {string} details the specific details that causes this error
|
|
30
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
30
31
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
31
32
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
32
33
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -39,6 +40,7 @@ class FailedToGetPullRequestAttributesError extends problem_error_1.ProblemError
|
|
|
39
40
|
status: 500,
|
|
40
41
|
errorCode: 'SNYK-PR-TEMPLATE-0001',
|
|
41
42
|
level: 'error',
|
|
43
|
+
classification: 'UNEXPECTED',
|
|
42
44
|
instance,
|
|
43
45
|
}, details, Object.assign({ links: [
|
|
44
46
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
@@ -54,6 +56,7 @@ exports.FailedToGetPullRequestAttributesError = FailedToGetPullRequestAttributes
|
|
|
54
56
|
* @summary Not found
|
|
55
57
|
* @category Fix
|
|
56
58
|
* @param {string} details the specific details that causes this error
|
|
59
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
57
60
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
58
61
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
59
62
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -66,6 +69,7 @@ class PullRequestTemplateNotFoundError extends problem_error_1.ProblemError {
|
|
|
66
69
|
status: 404,
|
|
67
70
|
errorCode: 'SNYK-PR-TEMPLATE-0002',
|
|
68
71
|
level: 'error',
|
|
72
|
+
classification: 'ACTIONABLE',
|
|
69
73
|
instance,
|
|
70
74
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
71
75
|
this.name = this.constructor.name;
|
|
@@ -82,6 +86,7 @@ exports.PullRequestTemplateNotFoundError = PullRequestTemplateNotFoundError;
|
|
|
82
86
|
* @summary Failed to compile pull request template
|
|
83
87
|
* @category Fix
|
|
84
88
|
* @param {string} details the specific details that causes this error
|
|
89
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
85
90
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
86
91
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
87
92
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -94,6 +99,7 @@ class FailedToCompilePrTemplateError extends problem_error_1.ProblemError {
|
|
|
94
99
|
status: 400,
|
|
95
100
|
errorCode: 'SNYK-PR-TEMPLATE-0003',
|
|
96
101
|
level: 'error',
|
|
102
|
+
classification: 'UNEXPECTED',
|
|
97
103
|
instance,
|
|
98
104
|
}, details, Object.assign({ links: [
|
|
99
105
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
@@ -112,6 +118,7 @@ exports.FailedToCompilePrTemplateError = FailedToCompilePrTemplateError;
|
|
|
112
118
|
* @summary Failed to parse pull request attributes
|
|
113
119
|
* @category Fix
|
|
114
120
|
* @param {string} details the specific details that causes this error
|
|
121
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
115
122
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
116
123
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
117
124
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -124,6 +131,7 @@ class FailedToParsePullRequestAttributesError extends problem_error_1.ProblemErr
|
|
|
124
131
|
status: 500,
|
|
125
132
|
errorCode: 'SNYK-PR-TEMPLATE-0004',
|
|
126
133
|
level: 'error',
|
|
134
|
+
classification: 'UNEXPECTED',
|
|
127
135
|
instance,
|
|
128
136
|
}, details, Object.assign({ links: [
|
|
129
137
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
@@ -142,6 +150,7 @@ exports.FailedToParsePullRequestAttributesError = FailedToParsePullRequestAttrib
|
|
|
142
150
|
* @summary Failed to load YAML file after substituting Snyk variables
|
|
143
151
|
* @category Fix
|
|
144
152
|
* @param {string} details the specific details that causes this error
|
|
153
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
145
154
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
146
155
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
147
156
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -154,6 +163,7 @@ class FailedToLoadCompiledYamlError extends problem_error_1.ProblemError {
|
|
|
154
163
|
status: 400,
|
|
155
164
|
errorCode: 'SNYK-PR-TEMPLATE-0005',
|
|
156
165
|
level: 'error',
|
|
166
|
+
classification: 'UNEXPECTED',
|
|
157
167
|
instance,
|
|
158
168
|
}, details, Object.assign({ links: [
|
|
159
169
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
@@ -172,6 +182,7 @@ exports.FailedToLoadCompiledYamlError = FailedToLoadCompiledYamlError;
|
|
|
172
182
|
* @summary Failed to generate hash for custom PR template
|
|
173
183
|
* @category Fix
|
|
174
184
|
* @param {string} details the specific details that causes this error
|
|
185
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
175
186
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
176
187
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
177
188
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -184,6 +195,7 @@ class FailedToGenerateHashError extends problem_error_1.ProblemError {
|
|
|
184
195
|
status: 500,
|
|
185
196
|
errorCode: 'SNYK-PR-TEMPLATE-0006',
|
|
186
197
|
level: 'error',
|
|
198
|
+
classification: 'UNEXPECTED',
|
|
187
199
|
instance,
|
|
188
200
|
}, details, Object.assign({ links: [
|
|
189
201
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
@@ -202,6 +214,7 @@ exports.FailedToGenerateHashError = FailedToGenerateHashError;
|
|
|
202
214
|
* @summary Unable to create pull request template
|
|
203
215
|
* @category Fix
|
|
204
216
|
* @param {string} details the specific details that causes this error
|
|
217
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
205
218
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
206
219
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
207
220
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -214,6 +227,7 @@ class FailedToCreatePRTemplateError extends problem_error_1.ProblemError {
|
|
|
214
227
|
status: 500,
|
|
215
228
|
errorCode: 'SNYK-PR-TEMPLATE-0007',
|
|
216
229
|
level: 'error',
|
|
230
|
+
classification: 'UNEXPECTED',
|
|
217
231
|
instance,
|
|
218
232
|
}, details, Object.assign({ links: [
|
|
219
233
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
@@ -232,6 +246,7 @@ exports.FailedToCreatePRTemplateError = FailedToCreatePRTemplateError;
|
|
|
232
246
|
* @summary Unable to get pull request template
|
|
233
247
|
* @category Fix
|
|
234
248
|
* @param {string} details the specific details that causes this error
|
|
249
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
235
250
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
236
251
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
237
252
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -244,6 +259,7 @@ class FailedToReadPRTemplateError extends problem_error_1.ProblemError {
|
|
|
244
259
|
status: 500,
|
|
245
260
|
errorCode: 'SNYK-PR-TEMPLATE-0008',
|
|
246
261
|
level: 'error',
|
|
262
|
+
classification: 'UNEXPECTED',
|
|
247
263
|
instance,
|
|
248
264
|
}, details, Object.assign({ links: [
|
|
249
265
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
@@ -262,6 +278,7 @@ exports.FailedToReadPRTemplateError = FailedToReadPRTemplateError;
|
|
|
262
278
|
* @summary Unable to delete pull request template
|
|
263
279
|
* @category Fix
|
|
264
280
|
* @param {string} details the specific details that causes this error
|
|
281
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
265
282
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
266
283
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
267
284
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -274,6 +291,7 @@ class FailedToDeletePRTemplateError extends problem_error_1.ProblemError {
|
|
|
274
291
|
status: 500,
|
|
275
292
|
errorCode: 'SNYK-PR-TEMPLATE-0009',
|
|
276
293
|
level: 'error',
|
|
294
|
+
classification: 'UNEXPECTED',
|
|
277
295
|
instance,
|
|
278
296
|
}, details, Object.assign({ links: [
|
|
279
297
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
@@ -289,6 +307,7 @@ exports.FailedToDeletePRTemplateError = FailedToDeletePRTemplateError;
|
|
|
289
307
|
* @summary Invalid payload
|
|
290
308
|
* @category Fix
|
|
291
309
|
* @param {string} details the specific details that causes this error
|
|
310
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
292
311
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
293
312
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
294
313
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -301,6 +320,7 @@ class PRTemplateInvalidPayloadError extends problem_error_1.ProblemError {
|
|
|
301
320
|
status: 400,
|
|
302
321
|
errorCode: 'SNYK-PR-TEMPLATE-0010',
|
|
303
322
|
level: 'error',
|
|
323
|
+
classification: 'UNEXPECTED',
|
|
304
324
|
instance,
|
|
305
325
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
306
326
|
this.name = this.constructor.name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fix-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/Fix-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oDAAgD;AAEhD
|
|
1
|
+
{"version":3,"file":"Fix-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/Fix-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oDAAgD;AAEhD;;;;;;;;;;;;;;GAcG;AACH,MAAa,qCAAsC,SAAQ,4BAAY;IACrE,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,uCAAuC;YAC9C,IAAI,EAAE,oEAAoE;YAC1E,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,uBAAuB;YAClC,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,YAAY;YAC5B,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE;gBACP,mHAAmH;aAClH,IACE,cAAc,GAEnB,KAAK,CACN,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA5BD,sFA4BC;AAED;;;;;;;;;;;GAWG;AACH,MAAa,gCAAiC,SAAQ,4BAAY;IAChE,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,oEAAoE;YAC1E,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,uBAAuB;YAClC,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;C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;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,sEA0BC"}
|
|
@@ -24,6 +24,7 @@ import { ProblemError } from '../problem-error';
|
|
|
24
24
|
* @summary Invalid request
|
|
25
25
|
* @category IsolatedBuilds
|
|
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
|
|
@@ -38,6 +39,7 @@ export declare class InvalidRequestError extends ProblemError {
|
|
|
38
39
|
* @summary Build environment not found
|
|
39
40
|
* @category IsolatedBuilds
|
|
40
41
|
* @param {string} details the specific details that causes this error
|
|
42
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
41
43
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
42
44
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
43
45
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -48,13 +50,14 @@ export declare class BuildEnvironmentNotFoundError extends ProblemError {
|
|
|
48
50
|
/**
|
|
49
51
|
* @class
|
|
50
52
|
* @name UnsupportedEcosystemError
|
|
51
|
-
* @description The language or package manager is not supported.
|
|
53
|
+
* @description The language or package manager is not supported. Please refer to the supported package managers in the links.
|
|
52
54
|
*
|
|
53
55
|
* See more:
|
|
54
56
|
* - [https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/supported-languages-frameworks-and-feature-availability-overview#open-source-and-licensing-snyk-open-source](https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/supported-languages-frameworks-and-feature-availability-overview#open-source-and-licensing-snyk-open-source)
|
|
55
57
|
* @summary Unsupported Ecosystem
|
|
56
58
|
* @category IsolatedBuilds
|
|
57
59
|
* @param {string} details the specific details that causes this error
|
|
60
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
58
61
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
59
62
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
60
63
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -27,6 +27,7 @@ const problem_error_1 = require("../problem-error");
|
|
|
27
27
|
* @summary Invalid request
|
|
28
28
|
* @category IsolatedBuilds
|
|
29
29
|
* @param {string} details the specific details that causes this error
|
|
30
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
30
31
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
31
32
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
32
33
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -39,6 +40,7 @@ class InvalidRequestError extends problem_error_1.ProblemError {
|
|
|
39
40
|
status: 400,
|
|
40
41
|
errorCode: 'SNYK-OS-8001',
|
|
41
42
|
level: 'error',
|
|
43
|
+
classification: 'ACTIONABLE',
|
|
42
44
|
instance,
|
|
43
45
|
}, details, Object.assign({ links: [
|
|
44
46
|
'https://apidocs.snyk.io/',
|
|
@@ -54,6 +56,7 @@ exports.InvalidRequestError = InvalidRequestError;
|
|
|
54
56
|
* @summary Build environment not found
|
|
55
57
|
* @category IsolatedBuilds
|
|
56
58
|
* @param {string} details the specific details that causes this error
|
|
59
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
57
60
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
58
61
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
59
62
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -66,6 +69,7 @@ class BuildEnvironmentNotFoundError extends problem_error_1.ProblemError {
|
|
|
66
69
|
status: 404,
|
|
67
70
|
errorCode: 'SNYK-OS-8002',
|
|
68
71
|
level: 'warn',
|
|
72
|
+
classification: 'ACTIONABLE',
|
|
69
73
|
instance,
|
|
70
74
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
71
75
|
this.name = this.constructor.name;
|
|
@@ -75,13 +79,14 @@ exports.BuildEnvironmentNotFoundError = BuildEnvironmentNotFoundError;
|
|
|
75
79
|
/**
|
|
76
80
|
* @class
|
|
77
81
|
* @name UnsupportedEcosystemError
|
|
78
|
-
* @description The language or package manager is not supported.
|
|
82
|
+
* @description The language or package manager is not supported. Please refer to the supported package managers in the links.
|
|
79
83
|
*
|
|
80
84
|
* See more:
|
|
81
85
|
* - [https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/supported-languages-frameworks-and-feature-availability-overview#open-source-and-licensing-snyk-open-source](https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/supported-languages-frameworks-and-feature-availability-overview#open-source-and-licensing-snyk-open-source)
|
|
82
86
|
* @summary Unsupported Ecosystem
|
|
83
87
|
* @category IsolatedBuilds
|
|
84
88
|
* @param {string} details the specific details that causes this error
|
|
89
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
85
90
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
86
91
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
87
92
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -94,6 +99,7 @@ class UnsupportedEcosystemError extends problem_error_1.ProblemError {
|
|
|
94
99
|
status: 400,
|
|
95
100
|
errorCode: 'SNYK-OS-8003',
|
|
96
101
|
level: 'error',
|
|
102
|
+
classification: 'ACTIONABLE',
|
|
97
103
|
instance,
|
|
98
104
|
}, details, Object.assign({ links: [
|
|
99
105
|
'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/supported-languages-frameworks-and-feature-availability-overview#open-source-and-licensing-snyk-open-source',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsolatedBuilds-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/IsolatedBuilds-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oDAAgD;AAEhD
|
|
1
|
+
{"version":3,"file":"IsolatedBuilds-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/IsolatedBuilds-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oDAAgD;AAEhD;;;;;;;;;;;;;;GAcG;AACH,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,iBAAiB;YACxB,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;gBACP,0BAA0B;aACzB,IACE,cAAc,GAEnB,KAAK,CACN,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA5BD,kDA4BC;AAED;;;;;;;;;;;GAWG;AACH,MAAa,6BAA8B,SAAQ,4BAAY;IAC7D,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,6BAA6B;YACpC,IAAI,EAAE,2DAA2D;YACjE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,cAAc;YACzB,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,sEA0BC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAa,yBAA0B,SAAQ,4BAAY;IACzD,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,uBAAuB;YAC9B,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;gBACP,uLAAuL;aACtL,IACE,cAAc,GAEnB,KAAK,CACN,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA5BD,8DA4BC"}
|
|
@@ -24,6 +24,7 @@ import { ProblemError } from '../problem-error';
|
|
|
24
24
|
* @summary Bad request
|
|
25
25
|
* @category OpenAPI
|
|
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
|
|
@@ -34,10 +35,11 @@ export declare class BadRequestError extends ProblemError {
|
|
|
34
35
|
/**
|
|
35
36
|
* @class
|
|
36
37
|
* @name ForbiddenError
|
|
37
|
-
* @description Access to the requested resource is forbidden.
|
|
38
|
+
* @description Access to the requested resource is forbidden. Review the request, then try again.
|
|
38
39
|
* @summary Forbidden
|
|
39
40
|
* @category OpenAPI
|
|
40
41
|
* @param {string} details the specific details that causes this error
|
|
42
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
41
43
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
42
44
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
43
45
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -52,6 +54,7 @@ export declare class ForbiddenError extends ProblemError {
|
|
|
52
54
|
* @summary Not acceptable
|
|
53
55
|
* @category OpenAPI
|
|
54
56
|
* @param {string} details the specific details that causes this error
|
|
57
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
55
58
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
56
59
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
57
60
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -62,10 +65,11 @@ export declare class NotAcceptableError extends ProblemError {
|
|
|
62
65
|
/**
|
|
63
66
|
* @class
|
|
64
67
|
* @name NotFoundError
|
|
65
|
-
* @description The server cannot find the requested resource.
|
|
68
|
+
* @description The server cannot find the requested resource. Review the request, then try again.
|
|
66
69
|
* @summary Not found
|
|
67
70
|
* @category OpenAPI
|
|
68
71
|
* @param {string} details the specific details that causes this error
|
|
72
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
69
73
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
70
74
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
71
75
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -80,6 +84,7 @@ export declare class NotFoundError extends ProblemError {
|
|
|
80
84
|
* @summary Method not allowed
|
|
81
85
|
* @category OpenAPI
|
|
82
86
|
* @param {string} details the specific details that causes this error
|
|
87
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
83
88
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
84
89
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
85
90
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -90,10 +95,11 @@ export declare class MethodNotAllowedError extends ProblemError {
|
|
|
90
95
|
/**
|
|
91
96
|
* @class
|
|
92
97
|
* @name RequestEntityTooLargeError
|
|
93
|
-
* @description The request entity exceeds server limitations.
|
|
98
|
+
* @description The request entity exceeds server limitations. Reduce the size of the request entity, then try again.
|
|
94
99
|
* @summary Request entity too large
|
|
95
100
|
* @category OpenAPI
|
|
96
101
|
* @param {string} details the specific details that causes this error
|
|
102
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
97
103
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
98
104
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
99
105
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -104,13 +110,14 @@ export declare class RequestEntityTooLargeError extends ProblemError {
|
|
|
104
110
|
/**
|
|
105
111
|
* @class
|
|
106
112
|
* @name UnauthorizedError
|
|
107
|
-
* @description The request lacks authentication credentials for the requested resource.
|
|
113
|
+
* @description The request lacks authentication credentials for the requested resource. Ensure you are sending valid credentials, then try again.
|
|
108
114
|
*
|
|
109
115
|
* See more:
|
|
110
|
-
* - [https://docs.snyk.io/snyk-api-info/authentication-for-api
|
|
116
|
+
* - [https://docs.snyk.io/snyk-api-info/authentication-for-api](https://docs.snyk.io/snyk-api-info/authentication-for-api)
|
|
111
117
|
* @summary Unauthorized
|
|
112
118
|
* @category OpenAPI
|
|
113
119
|
* @param {string} details the specific details that causes this error
|
|
120
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
114
121
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
115
122
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
116
123
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -121,10 +128,11 @@ export declare class UnauthorizedError extends ProblemError {
|
|
|
121
128
|
/**
|
|
122
129
|
* @class
|
|
123
130
|
* @name UnsupportedMediaTypeError
|
|
124
|
-
* @description The media format of the request is not supported.
|
|
131
|
+
* @description The media format of the request is not supported. Change media format, then try again.
|
|
125
132
|
* @summary Unsupported media type
|
|
126
133
|
* @category OpenAPI
|
|
127
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
|
|
128
136
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
129
137
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
130
138
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -27,6 +27,7 @@ const problem_error_1 = require("../problem-error");
|
|
|
27
27
|
* @summary Bad request
|
|
28
28
|
* @category OpenAPI
|
|
29
29
|
* @param {string} details the specific details that causes this error
|
|
30
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
30
31
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
31
32
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
32
33
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -39,6 +40,7 @@ class BadRequestError extends problem_error_1.ProblemError {
|
|
|
39
40
|
status: 400,
|
|
40
41
|
errorCode: 'SNYK-OPENAPI-0001',
|
|
41
42
|
level: 'warn',
|
|
43
|
+
classification: 'ACTIONABLE',
|
|
42
44
|
instance,
|
|
43
45
|
}, details, Object.assign({ links: [
|
|
44
46
|
'https://docs.snyk.io/snyk-api-info/getting-started-using-snyk-rest-api ',
|
|
@@ -50,10 +52,11 @@ exports.BadRequestError = BadRequestError;
|
|
|
50
52
|
/**
|
|
51
53
|
* @class
|
|
52
54
|
* @name ForbiddenError
|
|
53
|
-
* @description Access to the requested resource is forbidden.
|
|
55
|
+
* @description Access to the requested resource is forbidden. Review the request, then try again.
|
|
54
56
|
* @summary Forbidden
|
|
55
57
|
* @category OpenAPI
|
|
56
58
|
* @param {string} details the specific details that causes this error
|
|
59
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
57
60
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
58
61
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
59
62
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -66,6 +69,7 @@ class ForbiddenError extends problem_error_1.ProblemError {
|
|
|
66
69
|
status: 403,
|
|
67
70
|
errorCode: 'SNYK-OPENAPI-0002',
|
|
68
71
|
level: 'warn',
|
|
72
|
+
classification: 'ACTIONABLE',
|
|
69
73
|
instance,
|
|
70
74
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
71
75
|
this.name = this.constructor.name;
|
|
@@ -79,6 +83,7 @@ exports.ForbiddenError = ForbiddenError;
|
|
|
79
83
|
* @summary Not acceptable
|
|
80
84
|
* @category OpenAPI
|
|
81
85
|
* @param {string} details the specific details that causes this error
|
|
86
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
82
87
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
83
88
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
84
89
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -91,6 +96,7 @@ class NotAcceptableError extends problem_error_1.ProblemError {
|
|
|
91
96
|
status: 406,
|
|
92
97
|
errorCode: 'SNYK-OPENAPI-0003',
|
|
93
98
|
level: 'warn',
|
|
99
|
+
classification: 'ACTIONABLE',
|
|
94
100
|
instance,
|
|
95
101
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
96
102
|
this.name = this.constructor.name;
|
|
@@ -100,10 +106,11 @@ exports.NotAcceptableError = NotAcceptableError;
|
|
|
100
106
|
/**
|
|
101
107
|
* @class
|
|
102
108
|
* @name NotFoundError
|
|
103
|
-
* @description The server cannot find the requested resource.
|
|
109
|
+
* @description The server cannot find the requested resource. Review the request, then try again.
|
|
104
110
|
* @summary Not found
|
|
105
111
|
* @category OpenAPI
|
|
106
112
|
* @param {string} details the specific details that causes this error
|
|
113
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
107
114
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
108
115
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
109
116
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -116,6 +123,7 @@ class NotFoundError extends problem_error_1.ProblemError {
|
|
|
116
123
|
status: 404,
|
|
117
124
|
errorCode: 'SNYK-OPENAPI-0004',
|
|
118
125
|
level: 'warn',
|
|
126
|
+
classification: 'ACTIONABLE',
|
|
119
127
|
instance,
|
|
120
128
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
121
129
|
this.name = this.constructor.name;
|
|
@@ -129,6 +137,7 @@ exports.NotFoundError = NotFoundError;
|
|
|
129
137
|
* @summary Method not allowed
|
|
130
138
|
* @category OpenAPI
|
|
131
139
|
* @param {string} details the specific details that causes this error
|
|
140
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
132
141
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
133
142
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
134
143
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -141,6 +150,7 @@ class MethodNotAllowedError extends problem_error_1.ProblemError {
|
|
|
141
150
|
status: 405,
|
|
142
151
|
errorCode: 'SNYK-OPENAPI-0005',
|
|
143
152
|
level: 'warn',
|
|
153
|
+
classification: 'ACTIONABLE',
|
|
144
154
|
instance,
|
|
145
155
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
146
156
|
this.name = this.constructor.name;
|
|
@@ -150,10 +160,11 @@ exports.MethodNotAllowedError = MethodNotAllowedError;
|
|
|
150
160
|
/**
|
|
151
161
|
* @class
|
|
152
162
|
* @name RequestEntityTooLargeError
|
|
153
|
-
* @description The request entity exceeds server limitations.
|
|
163
|
+
* @description The request entity exceeds server limitations. Reduce the size of the request entity, then try again.
|
|
154
164
|
* @summary Request entity too large
|
|
155
165
|
* @category OpenAPI
|
|
156
166
|
* @param {string} details the specific details that causes this error
|
|
167
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
157
168
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
158
169
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
159
170
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -166,6 +177,7 @@ class RequestEntityTooLargeError extends problem_error_1.ProblemError {
|
|
|
166
177
|
status: 413,
|
|
167
178
|
errorCode: 'SNYK-OPENAPI-0006',
|
|
168
179
|
level: 'warn',
|
|
180
|
+
classification: 'ACTIONABLE',
|
|
169
181
|
instance,
|
|
170
182
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
171
183
|
this.name = this.constructor.name;
|
|
@@ -175,13 +187,14 @@ exports.RequestEntityTooLargeError = RequestEntityTooLargeError;
|
|
|
175
187
|
/**
|
|
176
188
|
* @class
|
|
177
189
|
* @name UnauthorizedError
|
|
178
|
-
* @description The request lacks authentication credentials for the requested resource.
|
|
190
|
+
* @description The request lacks authentication credentials for the requested resource. Ensure you are sending valid credentials, then try again.
|
|
179
191
|
*
|
|
180
192
|
* See more:
|
|
181
|
-
* - [https://docs.snyk.io/snyk-api-info/authentication-for-api
|
|
193
|
+
* - [https://docs.snyk.io/snyk-api-info/authentication-for-api](https://docs.snyk.io/snyk-api-info/authentication-for-api)
|
|
182
194
|
* @summary Unauthorized
|
|
183
195
|
* @category OpenAPI
|
|
184
196
|
* @param {string} details the specific details that causes this error
|
|
197
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
185
198
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
186
199
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
187
200
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -194,9 +207,10 @@ class UnauthorizedError extends problem_error_1.ProblemError {
|
|
|
194
207
|
status: 401,
|
|
195
208
|
errorCode: 'SNYK-OPENAPI-0007',
|
|
196
209
|
level: 'warn',
|
|
210
|
+
classification: 'ACTIONABLE',
|
|
197
211
|
instance,
|
|
198
212
|
}, details, Object.assign({ links: [
|
|
199
|
-
'https://docs.snyk.io/snyk-api-info/authentication-for-api
|
|
213
|
+
'https://docs.snyk.io/snyk-api-info/authentication-for-api',
|
|
200
214
|
] }, additionalData), cause);
|
|
201
215
|
this.name = this.constructor.name;
|
|
202
216
|
}
|
|
@@ -205,10 +219,11 @@ exports.UnauthorizedError = UnauthorizedError;
|
|
|
205
219
|
/**
|
|
206
220
|
* @class
|
|
207
221
|
* @name UnsupportedMediaTypeError
|
|
208
|
-
* @description The media format of the request is not supported.
|
|
222
|
+
* @description The media format of the request is not supported. Change media format, then try again.
|
|
209
223
|
* @summary Unsupported media type
|
|
210
224
|
* @category OpenAPI
|
|
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 UnsupportedMediaTypeError extends problem_error_1.ProblemError {
|
|
|
221
236
|
status: 415,
|
|
222
237
|
errorCode: 'SNYK-OPENAPI-0008',
|
|
223
238
|
level: 'warn',
|
|
239
|
+
classification: 'ACTIONABLE',
|
|
224
240
|
instance,
|
|
225
241
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
226
242
|
this.name = this.constructor.name;
|