@fnlb-project/shared 1.5.9 → 1.5.10
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/dist/errors/index.d.ts +11 -0
- package/dist/errors/index.js +1 -1
- package/dist/http/index.d.ts +2 -0
- package/dist/http/index.js +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +1 -1
- package/package.json +1 -1
package/dist/errors/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ declare enum GeneralErrorCodes {
|
|
|
6
6
|
GenericValidationFailed = "net.fnlb.errors.generic.validation_failed",
|
|
7
7
|
GenericParseFailed = "net.fnlb.errors.generic.parse_failed",
|
|
8
8
|
GenericNotFound = "net.fnlb.errors.generic.not_found",
|
|
9
|
+
GenericAlreadyExists = "net.fnlb.errors.generic.already_exists",
|
|
9
10
|
CommonInvalidRequest = "net.fnlb.errors.common.invalid_request",
|
|
10
11
|
CommonUnableToProcessRequest = "net.fnlb.errors.common.unable_to_process_request",
|
|
11
12
|
CommonInvalidFieldsLength = "net.fnlb.errors.common.invalid_body_fields_length",
|
|
@@ -44,6 +45,7 @@ declare const ErrorCodes: {
|
|
|
44
45
|
readonly GenericValidationFailed: GeneralErrorCodes.GenericValidationFailed;
|
|
45
46
|
readonly GenericParseFailed: GeneralErrorCodes.GenericParseFailed;
|
|
46
47
|
readonly GenericNotFound: GeneralErrorCodes.GenericNotFound;
|
|
48
|
+
readonly GenericAlreadyExists: GeneralErrorCodes.GenericAlreadyExists;
|
|
47
49
|
readonly CommonInvalidRequest: GeneralErrorCodes.CommonInvalidRequest;
|
|
48
50
|
readonly CommonUnableToProcessRequest: GeneralErrorCodes.CommonUnableToProcessRequest;
|
|
49
51
|
readonly CommonInvalidFieldsLength: GeneralErrorCodes.CommonInvalidFieldsLength;
|
|
@@ -118,6 +120,10 @@ declare const errorMap: {
|
|
|
118
120
|
readonly type: ErrorTypes.General;
|
|
119
121
|
readonly message: "The requested resource does not exist.";
|
|
120
122
|
};
|
|
123
|
+
readonly "net.fnlb.errors.generic.already_exists": {
|
|
124
|
+
readonly type: ErrorTypes.General;
|
|
125
|
+
readonly message: "This resource already exists.";
|
|
126
|
+
};
|
|
121
127
|
readonly "net.fnlb.errors.common.invalid_request": {
|
|
122
128
|
readonly type: ErrorTypes.General;
|
|
123
129
|
readonly message: "The request is not valid.";
|
|
@@ -226,5 +232,10 @@ export declare abstract class ErrorHandler {
|
|
|
226
232
|
IErrorResponse
|
|
227
233
|
];
|
|
228
234
|
}
|
|
235
|
+
export declare abstract class GenericErrorSender {
|
|
236
|
+
abstract sendError(code: number, errors: GeneralErrorCodes | GeneralErrorCodes[]): unknown;
|
|
237
|
+
abstract sendError(code: number, errors: InputErrorCodes | InputErrorCodes[], input: ErrorInputTypes): unknown;
|
|
238
|
+
abstract sendError(code: number, errors: ErrorCodes | ErrorCodes[], input?: ErrorInputTypes): unknown;
|
|
239
|
+
}
|
|
229
240
|
|
|
230
241
|
export {};
|
package/dist/errors/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var h;((n)=>{n.GenericUnknown="net.fnlb.errors.generic.unknown";n.GenericInternalError="net.fnlb.errors.generic.internal_error";n.GenericValidationFailed="net.fnlb.errors.generic.validation_failed";n.GenericParseFailed="net.fnlb.errors.generic.parse_failed";n.GenericNotFound="net.fnlb.errors.generic.not_found";n.GenericAlreadyExists="net.fnlb.errors.generic.already_exists";n.CommonInvalidRequest="net.fnlb.errors.common.invalid_request";n.CommonUnableToProcessRequest="net.fnlb.errors.common.unable_to_process_request";n.CommonInvalidFieldsLength="net.fnlb.errors.common.invalid_body_fields_length";n.CommonRateLimitExceeded="net.fnlb.errors.common.rate_limit_exceeded";n.CommonUnableToSaveToDatabase="net.fnlb.errors.common.unable_to_save_to_database";n.AuthInvalidToken="net.fnlb.errors.auth.invalid_token";n.AuthInvalidAPIToken="net.fnlb.errors.auth.invalid_api_token";n.AuthInvalidCaptchaToken="net.fnlb.errors.auth.invalid_captcha_token";n.AuthUnauthorized="net.fnlb.errors.auth.unauthorized";n.AuthForbidden="net.fnlb.errors.auth.forbidden";n.AuthUserBanned="net.fnlb.errors.auth.user_banned";n.Oauth2InvalidCode="net.fnlb.errors.oauth2.invalid_code";n.Oauth2InvalidScope="net.fnlb.errors.oauth2.invalid_scope";n.Oauth2TokenInvalid="net.fnlb.errors.oauth2.token_invalid";n.Oauth2UnableToFetchUser="net.fnlb.errors.oauth2.unable_to_fetch_user";n.Oauth2UnableToFetchConnections="net.fnlb.errors.oauth2.unable_to_fetch_connections";n.Oauth2UserWithoutConnection="net.fnlb.errors.oauth2.user_without_connection";n.Oauth2ConnectionNotVerified="net.fnlb.errors.oauth2.connection_not_verified";n.ReleaseNotFound="net.fnlb.errors.release.no_release_found";n.ReleaseVersionAlreadyExists="net.fnlb.errors.release.version_already_exists"})(h||={});var d;((i)=>{i.LoginInvalidCredentials="net.fnlb.errors.login.invalid_credentials";i.LoginInvalidEmail="net.fnlb.errors.login.invalid_email";i.LoginInvalidOrUsedEmail="net.fnlb.errors.login.invalid_or_used_email";i.AuthPasswordConfirmationInvalid="net.fnlb.errors.auth.invalid_password_confirmation"})(d||={});var e={...h,...d};var u={[e.GenericUnknown]:{type:"general",message:"An unknown error occurred. Please try again later."},[e.GenericInternalError]:{type:"general",message:"An internal error occurred. Please try again later."},[e.GenericValidationFailed]:{type:"general",message:"Validation of the request data failed."},[e.GenericParseFailed]:{type:"general",message:"The request could not be parsed. This may be due to a malformed input or an unsupported data format."},[e.GenericNotFound]:{type:"general",message:"The requested resource does not exist."},[e.GenericAlreadyExists]:{type:"general",message:"This resource already exists."},[e.CommonInvalidRequest]:{type:"general",message:"The request is not valid."},[e.CommonUnableToProcessRequest]:{type:"general",message:"Unable to process the request. Please try again later."},[e.CommonInvalidFieldsLength]:{type:"general",message:"The body fields have an invalid length."},[e.CommonRateLimitExceeded]:{type:"general",message:"You are being rate limited."},[e.CommonUnableToSaveToDatabase]:{type:"general",message:"Unable to save changes. Please check all fields."},[e.AuthInvalidToken]:{type:"general",message:"Invalid token provided."},[e.AuthInvalidAPIToken]:{type:"general",message:"Invalid API token provided."},[e.AuthInvalidCaptchaToken]:{type:"general",message:"Sorry, the captcha was not resolved correctly. Please try again."},[e.AuthUnauthorized]:{type:"general",message:"You lack the necessary authorization to perform this action."},[e.AuthForbidden]:{type:"general",message:"You do not have permission to perform this action."},[e.AuthUserBanned]:{type:"general",message:"Your account is banned from the service."},[e.AuthPasswordConfirmationInvalid]:{type:"input",message:"Sorry, the password is invalid or does not match."},[e.LoginInvalidCredentials]:{type:"input",message:"The email or password is incorrect."},[e.LoginInvalidEmail]:{type:"input",message:"The email is invalid."},[e.LoginInvalidOrUsedEmail]:{type:"input",message:"The email is invalid or is already used."},[e.Oauth2InvalidCode]:{type:"general",message:"Unable to verify your request at this moment. Please try again later."},[e.Oauth2InvalidScope]:{type:"general",message:"Invalid scope provided."},[e.Oauth2TokenInvalid]:{type:"general",message:"Unable to verify Oauth2 token. Please try again later."},[e.Oauth2UnableToFetchUser]:{type:"general",message:"Unable to obtain user information. Please try again later."},[e.Oauth2UnableToFetchConnections]:{type:"general",message:"Unable to obtain connections. Please try again later."},[e.Oauth2UserWithoutConnection]:{type:"general",message:"No connections found. Please add a connection and try again later."},[e.Oauth2ConnectionNotVerified]:{type:"general",message:"The connection is not verified. Please try again later."},[e.ReleaseNotFound]:{type:"general",message:"Sorry, no release found. Please try again later."},[e.ReleaseVersionAlreadyExists]:{type:"general",message:"Release version already exists."}};class s{static getError(a){return u[a]??u[e.GenericUnknown]}static getErrorResponse(a,t){if(Array.isArray(a))return{type:"error",errors:a.map((l)=>s.parseErrorCode(l,t))};else return{type:"error",errors:[s.parseErrorCode(a,t)]}}static parseErrorResponse(a){if(!s.isErrorResponse(a))return null;return a.errors}static isErrorResponse(a){return a?.type==="error"}static parseErrorCode(a,t){let{type:l,message:o}=s.getError(a);if(l==="input"){if(t===void 0)throw new Error("Input is required for Input errors");return{type:l,message:o,errorCode:a,input:t}}else return{type:l,message:o,errorCode:a}}static handleErrors(a,t){switch(a){case"VALIDATION":return[400,s.getErrorResponse(e.GenericValidationFailed)];case"NOT_FOUND":return[404,s.getErrorResponse(e.GenericNotFound)];case"PARSE":return[400,s.getErrorResponse(e.GenericParseFailed)];case"INTERNAL_SERVER_ERROR":return console.error(t),[500,s.getErrorResponse(e.GenericInternalError)];default:return console.error(t),[500,s.getErrorResponse(e.GenericUnknown)]}}}class c{}export{c as GenericErrorSender,s as ErrorHandler};
|
package/dist/http/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ declare enum GeneralErrorCodes {
|
|
|
6
6
|
GenericValidationFailed = "net.fnlb.errors.generic.validation_failed",
|
|
7
7
|
GenericParseFailed = "net.fnlb.errors.generic.parse_failed",
|
|
8
8
|
GenericNotFound = "net.fnlb.errors.generic.not_found",
|
|
9
|
+
GenericAlreadyExists = "net.fnlb.errors.generic.already_exists",
|
|
9
10
|
CommonInvalidRequest = "net.fnlb.errors.common.invalid_request",
|
|
10
11
|
CommonUnableToProcessRequest = "net.fnlb.errors.common.unable_to_process_request",
|
|
11
12
|
CommonInvalidFieldsLength = "net.fnlb.errors.common.invalid_body_fields_length",
|
|
@@ -44,6 +45,7 @@ declare const ErrorCodes: {
|
|
|
44
45
|
readonly GenericValidationFailed: GeneralErrorCodes.GenericValidationFailed;
|
|
45
46
|
readonly GenericParseFailed: GeneralErrorCodes.GenericParseFailed;
|
|
46
47
|
readonly GenericNotFound: GeneralErrorCodes.GenericNotFound;
|
|
48
|
+
readonly GenericAlreadyExists: GeneralErrorCodes.GenericAlreadyExists;
|
|
47
49
|
readonly CommonInvalidRequest: GeneralErrorCodes.CommonInvalidRequest;
|
|
48
50
|
readonly CommonUnableToProcessRequest: GeneralErrorCodes.CommonUnableToProcessRequest;
|
|
49
51
|
readonly CommonInvalidFieldsLength: GeneralErrorCodes.CommonInvalidFieldsLength;
|
package/dist/http/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var r;((t)=>{t.GenericUnknown="net.fnlb.errors.generic.unknown";t.GenericInternalError="net.fnlb.errors.generic.internal_error";t.GenericValidationFailed="net.fnlb.errors.generic.validation_failed";t.GenericParseFailed="net.fnlb.errors.generic.parse_failed";t.GenericNotFound="net.fnlb.errors.generic.not_found";t.GenericAlreadyExists="net.fnlb.errors.generic.already_exists";t.CommonInvalidRequest="net.fnlb.errors.common.invalid_request";t.CommonUnableToProcessRequest="net.fnlb.errors.common.unable_to_process_request";t.CommonInvalidFieldsLength="net.fnlb.errors.common.invalid_body_fields_length";t.CommonRateLimitExceeded="net.fnlb.errors.common.rate_limit_exceeded";t.CommonUnableToSaveToDatabase="net.fnlb.errors.common.unable_to_save_to_database";t.AuthInvalidToken="net.fnlb.errors.auth.invalid_token";t.AuthInvalidAPIToken="net.fnlb.errors.auth.invalid_api_token";t.AuthInvalidCaptchaToken="net.fnlb.errors.auth.invalid_captcha_token";t.AuthUnauthorized="net.fnlb.errors.auth.unauthorized";t.AuthForbidden="net.fnlb.errors.auth.forbidden";t.AuthUserBanned="net.fnlb.errors.auth.user_banned";t.Oauth2InvalidCode="net.fnlb.errors.oauth2.invalid_code";t.Oauth2InvalidScope="net.fnlb.errors.oauth2.invalid_scope";t.Oauth2TokenInvalid="net.fnlb.errors.oauth2.token_invalid";t.Oauth2UnableToFetchUser="net.fnlb.errors.oauth2.unable_to_fetch_user";t.Oauth2UnableToFetchConnections="net.fnlb.errors.oauth2.unable_to_fetch_connections";t.Oauth2UserWithoutConnection="net.fnlb.errors.oauth2.user_without_connection";t.Oauth2ConnectionNotVerified="net.fnlb.errors.oauth2.connection_not_verified";t.ReleaseNotFound="net.fnlb.errors.release.no_release_found";t.ReleaseVersionAlreadyExists="net.fnlb.errors.release.version_already_exists"})(r||={});var d;((l)=>{l.LoginInvalidCredentials="net.fnlb.errors.login.invalid_credentials";l.LoginInvalidEmail="net.fnlb.errors.login.invalid_email";l.LoginInvalidOrUsedEmail="net.fnlb.errors.login.invalid_or_used_email";l.AuthPasswordConfirmationInvalid="net.fnlb.errors.auth.invalid_password_confirmation"})(d||={});var e={...r,...d};var u={[e.GenericUnknown]:{type:"general",message:"An unknown error occurred. Please try again later."},[e.GenericInternalError]:{type:"general",message:"An internal error occurred. Please try again later."},[e.GenericValidationFailed]:{type:"general",message:"Validation of the request data failed."},[e.GenericParseFailed]:{type:"general",message:"The request could not be parsed. This may be due to a malformed input or an unsupported data format."},[e.GenericNotFound]:{type:"general",message:"The requested resource does not exist."},[e.GenericAlreadyExists]:{type:"general",message:"This resource already exists."},[e.CommonInvalidRequest]:{type:"general",message:"The request is not valid."},[e.CommonUnableToProcessRequest]:{type:"general",message:"Unable to process the request. Please try again later."},[e.CommonInvalidFieldsLength]:{type:"general",message:"The body fields have an invalid length."},[e.CommonRateLimitExceeded]:{type:"general",message:"You are being rate limited."},[e.CommonUnableToSaveToDatabase]:{type:"general",message:"Unable to save changes. Please check all fields."},[e.AuthInvalidToken]:{type:"general",message:"Invalid token provided."},[e.AuthInvalidAPIToken]:{type:"general",message:"Invalid API token provided."},[e.AuthInvalidCaptchaToken]:{type:"general",message:"Sorry, the captcha was not resolved correctly. Please try again."},[e.AuthUnauthorized]:{type:"general",message:"You lack the necessary authorization to perform this action."},[e.AuthForbidden]:{type:"general",message:"You do not have permission to perform this action."},[e.AuthUserBanned]:{type:"general",message:"Your account is banned from the service."},[e.AuthPasswordConfirmationInvalid]:{type:"input",message:"Sorry, the password is invalid or does not match."},[e.LoginInvalidCredentials]:{type:"input",message:"The email or password is incorrect."},[e.LoginInvalidEmail]:{type:"input",message:"The email is invalid."},[e.LoginInvalidOrUsedEmail]:{type:"input",message:"The email is invalid or is already used."},[e.Oauth2InvalidCode]:{type:"general",message:"Unable to verify your request at this moment. Please try again later."},[e.Oauth2InvalidScope]:{type:"general",message:"Invalid scope provided."},[e.Oauth2TokenInvalid]:{type:"general",message:"Unable to verify Oauth2 token. Please try again later."},[e.Oauth2UnableToFetchUser]:{type:"general",message:"Unable to obtain user information. Please try again later."},[e.Oauth2UnableToFetchConnections]:{type:"general",message:"Unable to obtain connections. Please try again later."},[e.Oauth2UserWithoutConnection]:{type:"general",message:"No connections found. Please add a connection and try again later."},[e.Oauth2ConnectionNotVerified]:{type:"general",message:"The connection is not verified. Please try again later."},[e.ReleaseNotFound]:{type:"general",message:"Sorry, no release found. Please try again later."},[e.ReleaseVersionAlreadyExists]:{type:"general",message:"Release version already exists."}};class o{static getError(n){return u[n]??u[e.GenericUnknown]}static getErrorResponse(n,i){if(Array.isArray(n))return{type:"error",errors:n.map((s)=>o.parseErrorCode(s,i))};else return{type:"error",errors:[o.parseErrorCode(n,i)]}}static parseErrorResponse(n){if(!o.isErrorResponse(n))return null;return n.errors}static isErrorResponse(n){return n?.type==="error"}static parseErrorCode(n,i){let{type:s,message:a}=o.getError(n);if(s==="input"){if(i===void 0)throw new Error("Input is required for Input errors");return{type:s,message:a,errorCode:n,input:i}}else return{type:s,message:a,errorCode:n}}static handleErrors(n,i){switch(n){case"VALIDATION":return[400,o.getErrorResponse(e.GenericValidationFailed)];case"NOT_FOUND":return[404,o.getErrorResponse(e.GenericNotFound)];case"PARSE":return[400,o.getErrorResponse(e.GenericParseFailed)];case"INTERNAL_SERVER_ERROR":return console.error(i),[500,o.getErrorResponse(e.GenericInternalError)];default:return console.error(i),[500,o.getErrorResponse(e.GenericUnknown)]}}}class p{static get(n,i,s,a){return this.request(n,i,s,{...a,method:"GET"})}static post(n,i,s,a){return this.request(n,i,s,{...a,method:"POST"})}static put(n,i,s,a){return this.request(n,i,s,{...a,method:"PUT"})}static patch(n,i,s,a){return this.request(n,i,s,{...a,method:"PATCH"})}static delete(n,i,s,a){return this.request(n,i,s,{...a,method:"DELETE"})}static async request(n,i,s,a){let l={...a,body:a.body?JSON.stringify(a.body):void 0,headers:a.headers??{}};if(s)l.headers.Authorization=s;if(!l.headers["Content-Type"]&&l.body)l.headers["Content-Type"]="application/json";let c=await fetch(n+i,l);return p.parseResponse(c)}static async parseResponse(n){if(n.headers.get("Content-Type")?.includes("text/plain")){let s=await n.text(),a=o.parseErrorResponse(s);if(a)return{data:void 0,errors:a};if(!n.ok)throw new Error(`Request failed with status code ${n.status}: ${s}`);return{data:s,errors:void 0}}else{let s=await n.json(),a=o.parseErrorResponse(s);if(a)return{data:void 0,errors:a};if(!n.ok)throw new Error(`Request failed with status code ${n.status}: ${JSON.stringify(s,null,2)}`);return{data:s,errors:void 0}}}}export{p as HTTP};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export declare enum GeneralErrorCodes {
|
|
|
67
67
|
GenericValidationFailed = "net.fnlb.errors.generic.validation_failed",
|
|
68
68
|
GenericParseFailed = "net.fnlb.errors.generic.parse_failed",
|
|
69
69
|
GenericNotFound = "net.fnlb.errors.generic.not_found",
|
|
70
|
+
GenericAlreadyExists = "net.fnlb.errors.generic.already_exists",
|
|
70
71
|
CommonInvalidRequest = "net.fnlb.errors.common.invalid_request",
|
|
71
72
|
CommonUnableToProcessRequest = "net.fnlb.errors.common.unable_to_process_request",
|
|
72
73
|
CommonInvalidFieldsLength = "net.fnlb.errors.common.invalid_body_fields_length",
|
|
@@ -105,6 +106,7 @@ export declare const ErrorCodes: {
|
|
|
105
106
|
readonly GenericValidationFailed: GeneralErrorCodes.GenericValidationFailed;
|
|
106
107
|
readonly GenericParseFailed: GeneralErrorCodes.GenericParseFailed;
|
|
107
108
|
readonly GenericNotFound: GeneralErrorCodes.GenericNotFound;
|
|
109
|
+
readonly GenericAlreadyExists: GeneralErrorCodes.GenericAlreadyExists;
|
|
108
110
|
readonly CommonInvalidRequest: GeneralErrorCodes.CommonInvalidRequest;
|
|
109
111
|
readonly CommonUnableToProcessRequest: GeneralErrorCodes.CommonUnableToProcessRequest;
|
|
110
112
|
readonly CommonInvalidFieldsLength: GeneralErrorCodes.CommonInvalidFieldsLength;
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var f;((_)=>{_[_.Public=0]="Public";_[_.Private=1]="Private"})(f||={});var t;((e)=>{e[e.Offline=0]="Offline";e[e.Booting=1]="Booting";e[e.Available=2]="Available";e[e.Busy=3]="Busy";e[e.Disconnected=4]="Disconnected"})(t||={});var d;((e)=>{e[e.Neutral=0]="Neutral";e[e.Success=1]="Success";e[e.Info=2]="Info";e[e.Warn=3]="Warn";e[e.Error=4]="Error"})(d||={});var i;((s)=>{s.Win="WIN";s.Mac="MAC";s.Psn="PSN";s.Xbl="XBL";s.Swt="SWT";s.Ios="IOS";s.And="AND";s.Ps5="PS5";s.Xsx="XSX"})(i||={});var c;((_)=>{_[_.Public=0]="Public";_[_.Private=1]="Private"})(c||={});var O;((u)=>{u[u.Equals=0]="Equals";u[u.Includes=1]="Includes";u[u.StartsWith=2]="StartsWith";u[u.EndsWith=3]="EndsWith"})(O||={});var U;((l)=>{l[l.ChatBan=0]="ChatBan";l[l.Kick=1]="Kick";l[l.Block=2]="Block";l[l.RemoveFriend=3]="RemoveFriend";l[l.AddFriend=4]="AddFriend";l[l.Promote=5]="Promote";l[l.Copy=6]="Copy";l[l.Mimic=7]="Mimic";l[l.Hide=8]="Hide";l[l.Show=9]="Show";l[l.Blacklist=10]="Blacklist";l[l.Whitelist=11]="Whitelist"})(U||={});var k;((b)=>{b[b.RequiredParam=0]="RequiredParam";b[b.OptionalParam=1]="OptionalParam";b[b.RequiredSelect=2]="RequiredSelect";b[b.OptionalSelect=3]="OptionalSelect";b[b.RequiredNumericParam=4]="RequiredNumericParam";b[b.OptionalNumericParam=5]="OptionalNumericParam"})(k||={});var v;((n)=>{n.GenericUnknown="net.fnlb.errors.generic.unknown";n.GenericInternalError="net.fnlb.errors.generic.internal_error";n.GenericValidationFailed="net.fnlb.errors.generic.validation_failed";n.GenericParseFailed="net.fnlb.errors.generic.parse_failed";n.GenericNotFound="net.fnlb.errors.generic.not_found";n.GenericAlreadyExists="net.fnlb.errors.generic.already_exists";n.CommonInvalidRequest="net.fnlb.errors.common.invalid_request";n.CommonUnableToProcessRequest="net.fnlb.errors.common.unable_to_process_request";n.CommonInvalidFieldsLength="net.fnlb.errors.common.invalid_body_fields_length";n.CommonRateLimitExceeded="net.fnlb.errors.common.rate_limit_exceeded";n.CommonUnableToSaveToDatabase="net.fnlb.errors.common.unable_to_save_to_database";n.AuthInvalidToken="net.fnlb.errors.auth.invalid_token";n.AuthInvalidAPIToken="net.fnlb.errors.auth.invalid_api_token";n.AuthInvalidCaptchaToken="net.fnlb.errors.auth.invalid_captcha_token";n.AuthUnauthorized="net.fnlb.errors.auth.unauthorized";n.AuthForbidden="net.fnlb.errors.auth.forbidden";n.AuthUserBanned="net.fnlb.errors.auth.user_banned";n.Oauth2InvalidCode="net.fnlb.errors.oauth2.invalid_code";n.Oauth2InvalidScope="net.fnlb.errors.oauth2.invalid_scope";n.Oauth2TokenInvalid="net.fnlb.errors.oauth2.token_invalid";n.Oauth2UnableToFetchUser="net.fnlb.errors.oauth2.unable_to_fetch_user";n.Oauth2UnableToFetchConnections="net.fnlb.errors.oauth2.unable_to_fetch_connections";n.Oauth2UserWithoutConnection="net.fnlb.errors.oauth2.user_without_connection";n.Oauth2ConnectionNotVerified="net.fnlb.errors.oauth2.connection_not_verified";n.ReleaseNotFound="net.fnlb.errors.release.no_release_found";n.ReleaseVersionAlreadyExists="net.fnlb.errors.release.version_already_exists"})(v||={});var x;((u)=>{u.LoginInvalidCredentials="net.fnlb.errors.login.invalid_credentials";u.LoginInvalidEmail="net.fnlb.errors.login.invalid_email";u.LoginInvalidOrUsedEmail="net.fnlb.errors.login.invalid_or_used_email";u.AuthPasswordConfirmationInvalid="net.fnlb.errors.auth.invalid_password_confirmation"})(x||={});var p={...v,...x};var I;((u)=>{u.Username="username";u.Email="email";u.Password="password";u.Shared="shared"})(I||={});var q;((_)=>{_.General="general";_.Input="input"})(q||={});var w;((h)=>{h.Default="en";h.De="de";h.Es="es";h.Fr="fr";h.It="it";h.Pl="pl";h.Pt="pt";h.Tr="tr"})(w||={});export{w as Locales,x as InputErrorCodes,v as GeneralErrorCodes,q as ErrorTypes,I as ErrorInputTypes,p as ErrorCodes,d as CommandReplyFormat,k as CommandParamType,O as CategoryConfigTriggerStringDetectionMethod,U as CategoryConfigTriggerAction,i as CategoryConfigSupportedPlatforms,c as CategoryConfigPartyPrivacy,f as BotTypes,t as BotStatus};
|