@constructive-io/errors 0.7.2 → 0.8.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/esm/registry.d.ts +2 -0
- package/esm/registry.js +12 -0
- package/package.json +2 -2
- package/registry.d.ts +2 -0
- package/registry.js +12 -0
package/esm/registry.d.ts
CHANGED
|
@@ -44,6 +44,8 @@ export declare const registry: {
|
|
|
44
44
|
readonly INVITE_LIMIT: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
45
45
|
readonly INVITE_EMAIL_NOT_FOUND: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
46
46
|
readonly UNAUTHENTICATED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
47
|
+
readonly CAPTCHA_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
48
|
+
readonly CAPTCHA_FAILED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
47
49
|
readonly FORBIDDEN: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
48
50
|
readonly STEP_UP_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
49
51
|
readonly MFA_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
package/esm/registry.js
CHANGED
|
@@ -223,6 +223,18 @@ export const registry = {
|
|
|
223
223
|
http: 401,
|
|
224
224
|
message: 'You must be signed in to do that.'
|
|
225
225
|
}),
|
|
226
|
+
CAPTCHA_REQUIRED: defineError({
|
|
227
|
+
code: 'CAPTCHA_REQUIRED',
|
|
228
|
+
class: 'public',
|
|
229
|
+
http: 400,
|
|
230
|
+
message: 'Please complete the CAPTCHA challenge.'
|
|
231
|
+
}),
|
|
232
|
+
CAPTCHA_FAILED: defineError({
|
|
233
|
+
code: 'CAPTCHA_FAILED',
|
|
234
|
+
class: 'public',
|
|
235
|
+
http: 403,
|
|
236
|
+
message: 'CAPTCHA verification failed. Please try again.'
|
|
237
|
+
}),
|
|
226
238
|
FORBIDDEN: defineError({
|
|
227
239
|
code: 'FORBIDDEN',
|
|
228
240
|
class: 'public',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/errors",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Canonical Constructive error system: registry, codes, i18n messages, and cross-source (PostgreSQL/GraphQL/client) parsing. Zero runtime dependencies.",
|
|
6
6
|
"main": "index.js",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"makage": "^0.3.0",
|
|
42
42
|
"ts-node": "^10.9.2"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "b8d21445e1336136aacf826b178a06bec2b8a4c7"
|
|
45
45
|
}
|
package/registry.d.ts
CHANGED
|
@@ -44,6 +44,8 @@ export declare const registry: {
|
|
|
44
44
|
readonly INVITE_LIMIT: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
45
45
|
readonly INVITE_EMAIL_NOT_FOUND: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
46
46
|
readonly UNAUTHENTICATED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
47
|
+
readonly CAPTCHA_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
48
|
+
readonly CAPTCHA_FAILED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
47
49
|
readonly FORBIDDEN: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
48
50
|
readonly STEP_UP_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
49
51
|
readonly MFA_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
package/registry.js
CHANGED
|
@@ -229,6 +229,18 @@ exports.registry = {
|
|
|
229
229
|
http: 401,
|
|
230
230
|
message: 'You must be signed in to do that.'
|
|
231
231
|
}),
|
|
232
|
+
CAPTCHA_REQUIRED: (0, define_1.defineError)({
|
|
233
|
+
code: 'CAPTCHA_REQUIRED',
|
|
234
|
+
class: 'public',
|
|
235
|
+
http: 400,
|
|
236
|
+
message: 'Please complete the CAPTCHA challenge.'
|
|
237
|
+
}),
|
|
238
|
+
CAPTCHA_FAILED: (0, define_1.defineError)({
|
|
239
|
+
code: 'CAPTCHA_FAILED',
|
|
240
|
+
class: 'public',
|
|
241
|
+
http: 403,
|
|
242
|
+
message: 'CAPTCHA verification failed. Please try again.'
|
|
243
|
+
}),
|
|
232
244
|
FORBIDDEN: (0, define_1.defineError)({
|
|
233
245
|
code: 'FORBIDDEN',
|
|
234
246
|
class: 'public',
|