@snyk/error-catalog-nodejs-public 5.33.0 → 5.34.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/CLI-error-catalog.d.ts +3 -0
- package/src/catalogs/CLI-error-catalog.js +8 -0
- package/src/catalogs/CLI-error-catalog.js.map +1 -1
- package/src/catalogs/Code-error-catalog.d.ts +11 -0
- package/src/catalogs/Code-error-catalog.js +42 -0
- package/src/catalogs/Code-error-catalog.js.map +1 -1
- package/src/catalogs/CustomBaseImages-error-catalog.d.ts +19 -0
- package/src/catalogs/CustomBaseImages-error-catalog.js +43 -0
- package/src/catalogs/CustomBaseImages-error-catalog.js.map +1 -1
- package/src/catalogs/Fix-error-catalog.d.ts +22 -0
- package/src/catalogs/Fix-error-catalog.js +44 -0
- package/src/catalogs/Fix-error-catalog.js.map +1 -1
- package/src/catalogs/Integration-error-catalog.d.ts +1 -0
- package/src/catalogs/Integration-error-catalog.js +2 -0
- package/src/catalogs/Integration-error-catalog.js.map +1 -1
- package/src/catalogs/IsolatedBuilds-error-catalog.d.ts +4 -0
- package/src/catalogs/IsolatedBuilds-error-catalog.js +13 -0
- package/src/catalogs/IsolatedBuilds-error-catalog.js.map +1 -1
- package/src/catalogs/OpenAPI-error-catalog.d.ts +8 -0
- package/src/catalogs/OpenAPI-error-catalog.js +16 -0
- package/src/catalogs/OpenAPI-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceEcosystems-error-catalog.d.ts +77 -0
- package/src/catalogs/OpenSourceEcosystems-error-catalog.js +352 -0
- 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 +2 -0
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.js +4 -0
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.js.map +1 -1
- package/src/catalogs/PRChecks-error-catalog.d.ts +11 -0
- package/src/catalogs/PRChecks-error-catalog.js +61 -0
- package/src/catalogs/PRChecks-error-catalog.js.map +1 -1
- package/src/catalogs/Policies-error-catalog.d.ts +1 -0
- package/src/catalogs/Policies-error-catalog.js +3 -0
- package/src/catalogs/Policies-error-catalog.js.map +1 -1
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.d.ts +20 -0
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js +40 -0
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js.map +1 -1
- package/src/catalogs/SCM-error-catalog.d.ts +6 -0
- package/src/catalogs/SCM-error-catalog.js +16 -0
- package/src/catalogs/SCM-error-catalog.js.map +1 -1
- package/src/catalogs/SbomExport-error-catalog.d.ts +9 -0
- package/src/catalogs/SbomExport-error-catalog.js +18 -0
- package/src/catalogs/SbomExport-error-catalog.js.map +1 -1
- package/src/catalogs/SbomTest-error-catalog.d.ts +10 -0
- package/src/catalogs/SbomTest-error-catalog.js +29 -0
- package/src/catalogs/SbomTest-error-catalog.js.map +1 -1
- package/src/catalogs/Snyk-error-catalog.d.ts +8 -0
- package/src/catalogs/Snyk-error-catalog.js +22 -0
- package/src/catalogs/Snyk-error-catalog.js.map +1 -1
- package/src/catalogs/Target-error-catalog.d.ts +2 -0
- package/src/catalogs/Target-error-catalog.js +4 -0
- package/src/catalogs/Target-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 +2 -1
- package/src/types.js.map +1 -1
|
@@ -28,6 +28,7 @@ const problem_error_1 = require("../problem-error");
|
|
|
28
28
|
* @summary Bad request
|
|
29
29
|
* @category OpenAPI
|
|
30
30
|
* @param {string} details the specific details that causes this error
|
|
31
|
+
* @param {string} description the general description for this error
|
|
31
32
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
32
33
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
33
34
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -39,6 +40,7 @@ class BadRequestError extends problem_error_1.ProblemError {
|
|
|
39
40
|
title: 'Bad request',
|
|
40
41
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0001',
|
|
41
42
|
status: 400,
|
|
43
|
+
description: `The server cannot process the request due to invalid or corrupt data. Review the request, then try again.`,
|
|
42
44
|
errorCode: 'SNYK-OPENAPI-0001',
|
|
43
45
|
level: 'warn',
|
|
44
46
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -57,6 +59,7 @@ exports.BadRequestError = BadRequestError;
|
|
|
57
59
|
* @summary Forbidden
|
|
58
60
|
* @category OpenAPI
|
|
59
61
|
* @param {string} details the specific details that causes this error
|
|
62
|
+
* @param {string} description the general description for this error
|
|
60
63
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
61
64
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
62
65
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -68,6 +71,7 @@ class ForbiddenError extends problem_error_1.ProblemError {
|
|
|
68
71
|
title: 'Forbidden',
|
|
69
72
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0002',
|
|
70
73
|
status: 403,
|
|
74
|
+
description: `Access to the requested resource is forbidden. Review the request, then try again.`,
|
|
71
75
|
errorCode: 'SNYK-OPENAPI-0002',
|
|
72
76
|
level: 'warn',
|
|
73
77
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -84,6 +88,7 @@ exports.ForbiddenError = ForbiddenError;
|
|
|
84
88
|
* @summary Not acceptable
|
|
85
89
|
* @category OpenAPI
|
|
86
90
|
* @param {string} details the specific details that causes this error
|
|
91
|
+
* @param {string} description the general description for this error
|
|
87
92
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
88
93
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
89
94
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -95,6 +100,7 @@ class NotAcceptableError extends problem_error_1.ProblemError {
|
|
|
95
100
|
title: 'Not acceptable',
|
|
96
101
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0003',
|
|
97
102
|
status: 406,
|
|
103
|
+
description: `The server cannot provide a response that matches the provided accept headers. Review the request, then try again.`,
|
|
98
104
|
errorCode: 'SNYK-OPENAPI-0003',
|
|
99
105
|
level: 'warn',
|
|
100
106
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -111,6 +117,7 @@ exports.NotAcceptableError = NotAcceptableError;
|
|
|
111
117
|
* @summary Not found
|
|
112
118
|
* @category OpenAPI
|
|
113
119
|
* @param {string} details the specific details that causes this error
|
|
120
|
+
* @param {string} description the general description for this error
|
|
114
121
|
* @param {Classification} 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
|
|
@@ -122,6 +129,7 @@ class NotFoundError extends problem_error_1.ProblemError {
|
|
|
122
129
|
title: 'Not found',
|
|
123
130
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0004',
|
|
124
131
|
status: 404,
|
|
132
|
+
description: `The server cannot find the requested resource. Review the request, then try again.`,
|
|
125
133
|
errorCode: 'SNYK-OPENAPI-0004',
|
|
126
134
|
level: 'warn',
|
|
127
135
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -138,6 +146,7 @@ exports.NotFoundError = NotFoundError;
|
|
|
138
146
|
* @summary Method not allowed
|
|
139
147
|
* @category OpenAPI
|
|
140
148
|
* @param {string} details the specific details that causes this error
|
|
149
|
+
* @param {string} description the general description for this error
|
|
141
150
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
142
151
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
143
152
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -149,6 +158,7 @@ class MethodNotAllowedError extends problem_error_1.ProblemError {
|
|
|
149
158
|
title: 'Method not allowed',
|
|
150
159
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0005',
|
|
151
160
|
status: 405,
|
|
161
|
+
description: `The target endpoint does not support your request method. Review the request, then try again.`,
|
|
152
162
|
errorCode: 'SNYK-OPENAPI-0005',
|
|
153
163
|
level: 'warn',
|
|
154
164
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -165,6 +175,7 @@ exports.MethodNotAllowedError = MethodNotAllowedError;
|
|
|
165
175
|
* @summary Request entity too large
|
|
166
176
|
* @category OpenAPI
|
|
167
177
|
* @param {string} details the specific details that causes this error
|
|
178
|
+
* @param {string} description the general description for this error
|
|
168
179
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
169
180
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
170
181
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -176,6 +187,7 @@ class RequestEntityTooLargeError extends problem_error_1.ProblemError {
|
|
|
176
187
|
title: 'Request entity too large',
|
|
177
188
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0006',
|
|
178
189
|
status: 413,
|
|
190
|
+
description: `The request entity exceeds server limitations. Reduce the size of the request entity, then try again.`,
|
|
179
191
|
errorCode: 'SNYK-OPENAPI-0006',
|
|
180
192
|
level: 'warn',
|
|
181
193
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -195,6 +207,7 @@ exports.RequestEntityTooLargeError = RequestEntityTooLargeError;
|
|
|
195
207
|
* @summary Unauthorized
|
|
196
208
|
* @category OpenAPI
|
|
197
209
|
* @param {string} details the specific details that causes this error
|
|
210
|
+
* @param {string} description the general description for this error
|
|
198
211
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
199
212
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
200
213
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -206,6 +219,7 @@ class UnauthorizedError extends problem_error_1.ProblemError {
|
|
|
206
219
|
title: 'Unauthorized',
|
|
207
220
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0007',
|
|
208
221
|
status: 401,
|
|
222
|
+
description: `The request lacks authentication credentials for the requested resource. Ensure you are sending valid credentials, then try again.`,
|
|
209
223
|
errorCode: 'SNYK-OPENAPI-0007',
|
|
210
224
|
level: 'warn',
|
|
211
225
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -224,6 +238,7 @@ exports.UnauthorizedError = UnauthorizedError;
|
|
|
224
238
|
* @summary Unsupported media type
|
|
225
239
|
* @category OpenAPI
|
|
226
240
|
* @param {string} details the specific details that causes this error
|
|
241
|
+
* @param {string} description the general description for this error
|
|
227
242
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
228
243
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
229
244
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -235,6 +250,7 @@ class UnsupportedMediaTypeError extends problem_error_1.ProblemError {
|
|
|
235
250
|
title: 'Unsupported media type',
|
|
236
251
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0008',
|
|
237
252
|
status: 415,
|
|
253
|
+
description: `The media format of the request is not supported. Change media format, then try again.`,
|
|
238
254
|
errorCode: 'SNYK-OPENAPI-0008',
|
|
239
255
|
level: 'warn',
|
|
240
256
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenAPI-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/OpenAPI-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,oDAAgD;AAEhD
|
|
1
|
+
{"version":3,"file":"OpenAPI-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/OpenAPI-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,oDAAgD;AAEhD;;;;;;;;;;;;;;;GAeG;AACH,MAAa,eAAgB,SAAQ,4BAAY;IAC/C,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB,EACjB,IAAe;QAEjB,KAAK,CACH;YACE,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,qEAAqE;YAC3E,MAAM,EAAE,GAAG;YACX,WAAW,EAAE,2GAA2G;YACxH,SAAS,EAAE,mBAAmB;YAC9B,KAAK,EAAE,MAAM;YACb,cAAc,EAAE,sBAAc,CAAC,UAAU;YACzC,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE;gBACP,yEAAyE;aACxE,IACE,cAAc,GAEnB,KAAK,EACL,IAAI,CACL,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA/BD,0CA+BC;AAED;;;;;;;;;;;;GAYG;AACH,MAAa,cAAe,SAAQ,4BAAY;IAC9C,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB,EACjB,IAAe;QAEjB,KAAK,CACH;YACE,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,qEAAqE;YAC3E,MAAM,EAAE,GAAG;YACX,WAAW,EAAE,oFAAoF;YACjG,SAAS,EAAE,mBAAmB;YAC9B,KAAK,EAAE,MAAM;YACb,cAAc,EAAE,sBAAc,CAAC,UAAU;YACzC,QAAQ;SACT,EACD,OAAO,kBAEL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