@fnlb-project/shared 1.5.15 → 1.5.17
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 +22 -22
- package/dist/http/index.d.ts +8 -8
- package/dist/types/index.d.ts +133 -192
- package/dist/types/index.js +1 -1
- package/package.json +1 -1
package/dist/errors/index.d.ts
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
+
export interface IBaseError {
|
|
4
|
+
message: string;
|
|
5
|
+
errorCode: ErrorCodes;
|
|
6
|
+
type: ErrorTypes;
|
|
7
|
+
}
|
|
8
|
+
export interface IGeneralError extends IBaseError {
|
|
9
|
+
errorCode: GeneralErrorCodes;
|
|
10
|
+
type: ErrorTypes.General;
|
|
11
|
+
}
|
|
12
|
+
export interface IInputError extends IBaseError {
|
|
13
|
+
errorCode: InputErrorCodes;
|
|
14
|
+
type: ErrorTypes.Input;
|
|
15
|
+
input: ErrorInputTypes;
|
|
16
|
+
}
|
|
17
|
+
export type IError = IInputError | IGeneralError;
|
|
18
|
+
export interface IErrorResponse {
|
|
19
|
+
type: "error";
|
|
20
|
+
errors: IError[];
|
|
21
|
+
}
|
|
22
|
+
export interface IParsedError extends IBaseError {
|
|
23
|
+
input?: ErrorInputTypes;
|
|
24
|
+
}
|
|
3
25
|
declare enum GeneralErrorCodes {
|
|
4
26
|
GenericUnknown = "net.fnlb.errors.generic.unknown",
|
|
5
27
|
GenericInternalError = "net.fnlb.errors.generic.internal_error",
|
|
@@ -77,28 +99,6 @@ declare enum ErrorTypes {
|
|
|
77
99
|
General = "general",
|
|
78
100
|
Input = "input"
|
|
79
101
|
}
|
|
80
|
-
export interface IBaseError {
|
|
81
|
-
message: string;
|
|
82
|
-
errorCode: ErrorCodes;
|
|
83
|
-
type: ErrorTypes;
|
|
84
|
-
}
|
|
85
|
-
export interface IGeneralError extends IBaseError {
|
|
86
|
-
errorCode: GeneralErrorCodes;
|
|
87
|
-
type: ErrorTypes.General;
|
|
88
|
-
}
|
|
89
|
-
export interface IInputError extends IBaseError {
|
|
90
|
-
errorCode: InputErrorCodes;
|
|
91
|
-
type: ErrorTypes.Input;
|
|
92
|
-
input: ErrorInputTypes;
|
|
93
|
-
}
|
|
94
|
-
export type IError = IInputError | IGeneralError;
|
|
95
|
-
export interface IErrorResponse {
|
|
96
|
-
type: "error";
|
|
97
|
-
errors: IError[];
|
|
98
|
-
}
|
|
99
|
-
export interface IParsedError extends IBaseError {
|
|
100
|
-
input?: ErrorInputTypes;
|
|
101
|
-
}
|
|
102
102
|
declare const errorMap: {
|
|
103
103
|
readonly "net.fnlb.errors.generic.unknown": {
|
|
104
104
|
readonly type: ErrorTypes.General;
|
package/dist/http/index.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
+
export interface IBaseError {
|
|
4
|
+
message: string;
|
|
5
|
+
errorCode: ErrorCodes;
|
|
6
|
+
type: ErrorTypes;
|
|
7
|
+
}
|
|
8
|
+
export interface IParsedError extends IBaseError {
|
|
9
|
+
input?: ErrorInputTypes;
|
|
10
|
+
}
|
|
3
11
|
declare enum GeneralErrorCodes {
|
|
4
12
|
GenericUnknown = "net.fnlb.errors.generic.unknown",
|
|
5
13
|
GenericInternalError = "net.fnlb.errors.generic.internal_error",
|
|
@@ -77,14 +85,6 @@ declare enum ErrorTypes {
|
|
|
77
85
|
General = "general",
|
|
78
86
|
Input = "input"
|
|
79
87
|
}
|
|
80
|
-
export interface IBaseError {
|
|
81
|
-
message: string;
|
|
82
|
-
errorCode: ErrorCodes;
|
|
83
|
-
type: ErrorTypes;
|
|
84
|
-
}
|
|
85
|
-
export interface IParsedError extends IBaseError {
|
|
86
|
-
input?: ErrorInputTypes;
|
|
87
|
-
}
|
|
88
88
|
export type RequestOptions = {
|
|
89
89
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
90
90
|
headers?: Record<string, string>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -52,101 +52,6 @@ export declare enum CategoryConfigTriggerAction {
|
|
|
52
52
|
Hide = 9,
|
|
53
53
|
Show = 10
|
|
54
54
|
}
|
|
55
|
-
export declare enum CommandParamType {
|
|
56
|
-
RequiredParam = 0,
|
|
57
|
-
OptionalParam = 1,
|
|
58
|
-
RequiredSelect = 2,
|
|
59
|
-
OptionalSelect = 3,
|
|
60
|
-
RequiredNumericParam = 4,
|
|
61
|
-
OptionalNumericParam = 5
|
|
62
|
-
}
|
|
63
|
-
export declare enum GeneralErrorCodes {
|
|
64
|
-
GenericUnknown = "net.fnlb.errors.generic.unknown",
|
|
65
|
-
GenericInternalError = "net.fnlb.errors.generic.internal_error",
|
|
66
|
-
GenericValidationFailed = "net.fnlb.errors.generic.validation_failed",
|
|
67
|
-
GenericParseFailed = "net.fnlb.errors.generic.parse_failed",
|
|
68
|
-
GenericNotFound = "net.fnlb.errors.generic.not_found",
|
|
69
|
-
GenericAlreadyExists = "net.fnlb.errors.generic.already_exists",
|
|
70
|
-
CommonInvalidRequest = "net.fnlb.errors.common.invalid_request",
|
|
71
|
-
CommonUnableToProcessRequest = "net.fnlb.errors.common.unable_to_process_request",
|
|
72
|
-
CommonInvalidFieldsLength = "net.fnlb.errors.common.invalid_body_fields_length",
|
|
73
|
-
CommonRateLimitExceeded = "net.fnlb.errors.common.rate_limit_exceeded",
|
|
74
|
-
CommonUnableToSaveToDatabase = "net.fnlb.errors.common.unable_to_save_to_database",
|
|
75
|
-
AuthInvalidToken = "net.fnlb.errors.auth.invalid_token",
|
|
76
|
-
AuthInvalidAPIToken = "net.fnlb.errors.auth.invalid_api_token",
|
|
77
|
-
AuthInvalidCaptchaToken = "net.fnlb.errors.auth.invalid_captcha_token",
|
|
78
|
-
AuthUnauthorized = "net.fnlb.errors.auth.unauthorized",
|
|
79
|
-
AuthForbidden = "net.fnlb.errors.auth.forbidden",
|
|
80
|
-
AuthUserBanned = "net.fnlb.errors.auth.user_banned",
|
|
81
|
-
Oauth2InvalidCode = "net.fnlb.errors.oauth2.invalid_code",
|
|
82
|
-
Oauth2InvalidScope = "net.fnlb.errors.oauth2.invalid_scope",
|
|
83
|
-
Oauth2TokenInvalid = "net.fnlb.errors.oauth2.token_invalid",
|
|
84
|
-
Oauth2UnableToFetchUser = "net.fnlb.errors.oauth2.unable_to_fetch_user",
|
|
85
|
-
Oauth2UnableToFetchConnections = "net.fnlb.errors.oauth2.unable_to_fetch_connections",
|
|
86
|
-
Oauth2UserWithoutConnection = "net.fnlb.errors.oauth2.user_without_connection",
|
|
87
|
-
Oauth2ConnectionNotVerified = "net.fnlb.errors.oauth2.connection_not_verified",
|
|
88
|
-
ReleaseNotFound = "net.fnlb.errors.release.no_release_found",
|
|
89
|
-
ReleaseVersionAlreadyExists = "net.fnlb.errors.release.version_already_exists"
|
|
90
|
-
}
|
|
91
|
-
export declare enum InputErrorCodes {
|
|
92
|
-
LoginInvalidCredentials = "net.fnlb.errors.login.invalid_credentials",
|
|
93
|
-
LoginInvalidEmail = "net.fnlb.errors.login.invalid_email",
|
|
94
|
-
LoginInvalidOrUsedEmail = "net.fnlb.errors.login.invalid_or_used_email",
|
|
95
|
-
AuthPasswordConfirmationInvalid = "net.fnlb.errors.auth.invalid_password_confirmation"
|
|
96
|
-
}
|
|
97
|
-
export type ErrorCodes = GeneralErrorCodes | InputErrorCodes;
|
|
98
|
-
export declare const ErrorCodes: {
|
|
99
|
-
readonly LoginInvalidCredentials: InputErrorCodes.LoginInvalidCredentials;
|
|
100
|
-
readonly LoginInvalidEmail: InputErrorCodes.LoginInvalidEmail;
|
|
101
|
-
readonly LoginInvalidOrUsedEmail: InputErrorCodes.LoginInvalidOrUsedEmail;
|
|
102
|
-
readonly AuthPasswordConfirmationInvalid: InputErrorCodes.AuthPasswordConfirmationInvalid;
|
|
103
|
-
readonly GenericUnknown: GeneralErrorCodes.GenericUnknown;
|
|
104
|
-
readonly GenericInternalError: GeneralErrorCodes.GenericInternalError;
|
|
105
|
-
readonly GenericValidationFailed: GeneralErrorCodes.GenericValidationFailed;
|
|
106
|
-
readonly GenericParseFailed: GeneralErrorCodes.GenericParseFailed;
|
|
107
|
-
readonly GenericNotFound: GeneralErrorCodes.GenericNotFound;
|
|
108
|
-
readonly GenericAlreadyExists: GeneralErrorCodes.GenericAlreadyExists;
|
|
109
|
-
readonly CommonInvalidRequest: GeneralErrorCodes.CommonInvalidRequest;
|
|
110
|
-
readonly CommonUnableToProcessRequest: GeneralErrorCodes.CommonUnableToProcessRequest;
|
|
111
|
-
readonly CommonInvalidFieldsLength: GeneralErrorCodes.CommonInvalidFieldsLength;
|
|
112
|
-
readonly CommonRateLimitExceeded: GeneralErrorCodes.CommonRateLimitExceeded;
|
|
113
|
-
readonly CommonUnableToSaveToDatabase: GeneralErrorCodes.CommonUnableToSaveToDatabase;
|
|
114
|
-
readonly AuthInvalidToken: GeneralErrorCodes.AuthInvalidToken;
|
|
115
|
-
readonly AuthInvalidAPIToken: GeneralErrorCodes.AuthInvalidAPIToken;
|
|
116
|
-
readonly AuthInvalidCaptchaToken: GeneralErrorCodes.AuthInvalidCaptchaToken;
|
|
117
|
-
readonly AuthUnauthorized: GeneralErrorCodes.AuthUnauthorized;
|
|
118
|
-
readonly AuthForbidden: GeneralErrorCodes.AuthForbidden;
|
|
119
|
-
readonly AuthUserBanned: GeneralErrorCodes.AuthUserBanned;
|
|
120
|
-
readonly Oauth2InvalidCode: GeneralErrorCodes.Oauth2InvalidCode;
|
|
121
|
-
readonly Oauth2InvalidScope: GeneralErrorCodes.Oauth2InvalidScope;
|
|
122
|
-
readonly Oauth2TokenInvalid: GeneralErrorCodes.Oauth2TokenInvalid;
|
|
123
|
-
readonly Oauth2UnableToFetchUser: GeneralErrorCodes.Oauth2UnableToFetchUser;
|
|
124
|
-
readonly Oauth2UnableToFetchConnections: GeneralErrorCodes.Oauth2UnableToFetchConnections;
|
|
125
|
-
readonly Oauth2UserWithoutConnection: GeneralErrorCodes.Oauth2UserWithoutConnection;
|
|
126
|
-
readonly Oauth2ConnectionNotVerified: GeneralErrorCodes.Oauth2ConnectionNotVerified;
|
|
127
|
-
readonly ReleaseNotFound: GeneralErrorCodes.ReleaseNotFound;
|
|
128
|
-
readonly ReleaseVersionAlreadyExists: GeneralErrorCodes.ReleaseVersionAlreadyExists;
|
|
129
|
-
};
|
|
130
|
-
export declare enum ErrorInputTypes {
|
|
131
|
-
Username = "username",
|
|
132
|
-
Email = "email",
|
|
133
|
-
Password = "password",
|
|
134
|
-
Shared = "shared"
|
|
135
|
-
}
|
|
136
|
-
export declare enum ErrorTypes {
|
|
137
|
-
General = "general",
|
|
138
|
-
Input = "input"
|
|
139
|
-
}
|
|
140
|
-
export declare enum Locales {
|
|
141
|
-
Default = "en",
|
|
142
|
-
De = "de",
|
|
143
|
-
Es = "es",
|
|
144
|
-
Fr = "fr",
|
|
145
|
-
It = "it",
|
|
146
|
-
Pl = "pl",
|
|
147
|
-
Pt = "pt",
|
|
148
|
-
Tr = "tr"
|
|
149
|
-
}
|
|
150
55
|
export type ConnectionSchema = {
|
|
151
56
|
id?: string;
|
|
152
57
|
username?: string;
|
|
@@ -237,12 +142,23 @@ export interface IConnectedClientBot extends IClientBot {
|
|
|
237
142
|
};
|
|
238
143
|
matches: number;
|
|
239
144
|
}
|
|
145
|
+
export interface ICategoryConfigUser {
|
|
146
|
+
id?: string;
|
|
147
|
+
name?: string;
|
|
148
|
+
}
|
|
240
149
|
export interface ICategoryConfigTrigger {
|
|
241
150
|
triggers?: string[];
|
|
242
151
|
matchingMethods?: CategoryConfigTriggerStringMatchingMethod[];
|
|
243
152
|
actions?: CategoryConfigTriggerAction[];
|
|
244
153
|
messages?: string[];
|
|
245
154
|
}
|
|
155
|
+
export interface ICategoryConfigCosmetic {
|
|
156
|
+
id?: string;
|
|
157
|
+
}
|
|
158
|
+
export interface ICategoryConfigCosmeticWithVariants {
|
|
159
|
+
id?: string;
|
|
160
|
+
variants?: number[];
|
|
161
|
+
}
|
|
246
162
|
export interface ICategoryConfig {
|
|
247
163
|
replyLangs?: Locales[];
|
|
248
164
|
searchLangs?: Locales[];
|
|
@@ -253,30 +169,12 @@ export interface ICategoryConfig {
|
|
|
253
169
|
statusInterval?: number;
|
|
254
170
|
level?: number[];
|
|
255
171
|
bpLevel?: number[];
|
|
256
|
-
extraOwners?:
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
name?: string;
|
|
263
|
-
}[];
|
|
264
|
-
whitelistUsers?: {
|
|
265
|
-
id?: string;
|
|
266
|
-
name?: string;
|
|
267
|
-
}[];
|
|
268
|
-
blacklistUsers?: {
|
|
269
|
-
id?: string;
|
|
270
|
-
name?: string;
|
|
271
|
-
}[];
|
|
272
|
-
excludedAutoAddFriends?: {
|
|
273
|
-
id?: string;
|
|
274
|
-
name?: string;
|
|
275
|
-
}[];
|
|
276
|
-
otherBots?: {
|
|
277
|
-
id?: string;
|
|
278
|
-
name?: string;
|
|
279
|
-
}[];
|
|
172
|
+
extraOwners?: ICategoryConfigUser[];
|
|
173
|
+
admins?: ICategoryConfigUser[];
|
|
174
|
+
whitelistUsers?: ICategoryConfigUser[];
|
|
175
|
+
blacklistUsers?: ICategoryConfigUser[];
|
|
176
|
+
excludedAutoAddFriends?: ICategoryConfigUser[];
|
|
177
|
+
otherBots?: ICategoryConfigUser[];
|
|
280
178
|
inviteTimeout?: number;
|
|
281
179
|
maxBotsPerLobby?: number;
|
|
282
180
|
maxBotsPerLobbyWithOwner?: number;
|
|
@@ -302,80 +200,27 @@ export interface ICategoryConfig {
|
|
|
302
200
|
onlyFriendsCommands?: string[];
|
|
303
201
|
onlyPartyMembersCommands?: string[];
|
|
304
202
|
onlyWhisperCommands?: string[];
|
|
305
|
-
startOutfit?:
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
id?: string;
|
|
326
|
-
}[];
|
|
327
|
-
joinOutfit?: {
|
|
328
|
-
id?: string;
|
|
329
|
-
variants?: number[];
|
|
330
|
-
}[];
|
|
331
|
-
joinBackpack?: {
|
|
332
|
-
id?: string;
|
|
333
|
-
variants?: number[];
|
|
334
|
-
}[];
|
|
335
|
-
joinPickaxe?: {
|
|
336
|
-
id?: string;
|
|
337
|
-
variants?: number[];
|
|
338
|
-
}[];
|
|
339
|
-
joinEmote?: {
|
|
340
|
-
id?: string;
|
|
341
|
-
}[];
|
|
342
|
-
joinShoes?: {
|
|
343
|
-
id?: string;
|
|
344
|
-
variants?: number[];
|
|
345
|
-
}[];
|
|
346
|
-
joinBanner?: {
|
|
347
|
-
id?: string;
|
|
348
|
-
}[];
|
|
349
|
-
joinBannerColor?: {
|
|
350
|
-
id?: string;
|
|
351
|
-
}[];
|
|
352
|
-
memberJoinOutfit?: {
|
|
353
|
-
id?: string;
|
|
354
|
-
variants?: number[];
|
|
355
|
-
}[];
|
|
356
|
-
memberJoinBackpack?: {
|
|
357
|
-
id?: string;
|
|
358
|
-
variants?: number[];
|
|
359
|
-
}[];
|
|
360
|
-
memberJoinPickaxe?: {
|
|
361
|
-
id?: string;
|
|
362
|
-
variants?: number[];
|
|
363
|
-
}[];
|
|
364
|
-
memberJoinEmote?: {
|
|
365
|
-
id?: string;
|
|
366
|
-
}[];
|
|
367
|
-
memberJoinShoes?: {
|
|
368
|
-
id?: string;
|
|
369
|
-
variants?: number[];
|
|
370
|
-
}[];
|
|
371
|
-
memberJoinBanner?: {
|
|
372
|
-
id?: string;
|
|
373
|
-
}[];
|
|
374
|
-
memberJoinBannerColor?: {
|
|
375
|
-
id?: string;
|
|
376
|
-
}[];
|
|
203
|
+
startOutfit?: ICategoryConfigCosmeticWithVariants[];
|
|
204
|
+
startBackpack?: ICategoryConfigCosmeticWithVariants[];
|
|
205
|
+
startPickaxe?: ICategoryConfigCosmeticWithVariants[];
|
|
206
|
+
startShoes?: ICategoryConfigCosmeticWithVariants[];
|
|
207
|
+
startBanner?: ICategoryConfigCosmetic[];
|
|
208
|
+
startBannerColor?: ICategoryConfigCosmetic[];
|
|
209
|
+
joinOutfit?: ICategoryConfigCosmeticWithVariants[];
|
|
210
|
+
joinBackpack?: ICategoryConfigCosmeticWithVariants[];
|
|
211
|
+
joinPickaxe?: ICategoryConfigCosmeticWithVariants[];
|
|
212
|
+
joinEmote?: ICategoryConfigCosmetic[];
|
|
213
|
+
joinShoes?: ICategoryConfigCosmeticWithVariants[];
|
|
214
|
+
joinBanner?: ICategoryConfigCosmetic[];
|
|
215
|
+
joinBannerColor?: ICategoryConfigCosmetic[];
|
|
216
|
+
memberJoinOutfit?: ICategoryConfigCosmeticWithVariants[];
|
|
217
|
+
memberJoinBackpack?: ICategoryConfigCosmeticWithVariants[];
|
|
218
|
+
memberJoinPickaxe?: ICategoryConfigCosmeticWithVariants[];
|
|
219
|
+
memberJoinEmote?: ICategoryConfigCosmetic[];
|
|
220
|
+
memberJoinShoes?: ICategoryConfigCosmeticWithVariants[];
|
|
221
|
+
memberJoinBanner?: ICategoryConfigCosmetic[];
|
|
222
|
+
memberJoinBannerColor?: ICategoryConfigCosmetic[];
|
|
377
223
|
}
|
|
378
|
-
export declare const defaultCategoryConfig: ICategoryConfig;
|
|
379
224
|
export interface IDBCategory {
|
|
380
225
|
id: string;
|
|
381
226
|
owner: string;
|
|
@@ -385,6 +230,14 @@ export interface IDBCategory {
|
|
|
385
230
|
}
|
|
386
231
|
export interface ICategory extends IDBCategory {
|
|
387
232
|
}
|
|
233
|
+
export declare enum CommandParamType {
|
|
234
|
+
RequiredParam = 0,
|
|
235
|
+
OptionalParam = 1,
|
|
236
|
+
RequiredSelect = 2,
|
|
237
|
+
OptionalSelect = 3,
|
|
238
|
+
RequiredNumericParam = 4,
|
|
239
|
+
OptionalNumericParam = 5
|
|
240
|
+
}
|
|
388
241
|
export interface ICommandBaseParam {
|
|
389
242
|
id: string;
|
|
390
243
|
type: CommandParamType;
|
|
@@ -496,5 +349,93 @@ export interface IClientUser extends IDBUser {
|
|
|
496
349
|
token: never;
|
|
497
350
|
password: never;
|
|
498
351
|
}
|
|
352
|
+
export declare const defaultCategoryConfig: ICategoryConfig;
|
|
353
|
+
export declare enum GeneralErrorCodes {
|
|
354
|
+
GenericUnknown = "net.fnlb.errors.generic.unknown",
|
|
355
|
+
GenericInternalError = "net.fnlb.errors.generic.internal_error",
|
|
356
|
+
GenericValidationFailed = "net.fnlb.errors.generic.validation_failed",
|
|
357
|
+
GenericParseFailed = "net.fnlb.errors.generic.parse_failed",
|
|
358
|
+
GenericNotFound = "net.fnlb.errors.generic.not_found",
|
|
359
|
+
GenericAlreadyExists = "net.fnlb.errors.generic.already_exists",
|
|
360
|
+
CommonInvalidRequest = "net.fnlb.errors.common.invalid_request",
|
|
361
|
+
CommonUnableToProcessRequest = "net.fnlb.errors.common.unable_to_process_request",
|
|
362
|
+
CommonInvalidFieldsLength = "net.fnlb.errors.common.invalid_body_fields_length",
|
|
363
|
+
CommonRateLimitExceeded = "net.fnlb.errors.common.rate_limit_exceeded",
|
|
364
|
+
CommonUnableToSaveToDatabase = "net.fnlb.errors.common.unable_to_save_to_database",
|
|
365
|
+
AuthInvalidToken = "net.fnlb.errors.auth.invalid_token",
|
|
366
|
+
AuthInvalidAPIToken = "net.fnlb.errors.auth.invalid_api_token",
|
|
367
|
+
AuthInvalidCaptchaToken = "net.fnlb.errors.auth.invalid_captcha_token",
|
|
368
|
+
AuthUnauthorized = "net.fnlb.errors.auth.unauthorized",
|
|
369
|
+
AuthForbidden = "net.fnlb.errors.auth.forbidden",
|
|
370
|
+
AuthUserBanned = "net.fnlb.errors.auth.user_banned",
|
|
371
|
+
Oauth2InvalidCode = "net.fnlb.errors.oauth2.invalid_code",
|
|
372
|
+
Oauth2InvalidScope = "net.fnlb.errors.oauth2.invalid_scope",
|
|
373
|
+
Oauth2TokenInvalid = "net.fnlb.errors.oauth2.token_invalid",
|
|
374
|
+
Oauth2UnableToFetchUser = "net.fnlb.errors.oauth2.unable_to_fetch_user",
|
|
375
|
+
Oauth2UnableToFetchConnections = "net.fnlb.errors.oauth2.unable_to_fetch_connections",
|
|
376
|
+
Oauth2UserWithoutConnection = "net.fnlb.errors.oauth2.user_without_connection",
|
|
377
|
+
Oauth2ConnectionNotVerified = "net.fnlb.errors.oauth2.connection_not_verified",
|
|
378
|
+
ReleaseNotFound = "net.fnlb.errors.release.no_release_found",
|
|
379
|
+
ReleaseVersionAlreadyExists = "net.fnlb.errors.release.version_already_exists"
|
|
380
|
+
}
|
|
381
|
+
export declare enum InputErrorCodes {
|
|
382
|
+
LoginInvalidCredentials = "net.fnlb.errors.login.invalid_credentials",
|
|
383
|
+
LoginInvalidEmail = "net.fnlb.errors.login.invalid_email",
|
|
384
|
+
LoginInvalidOrUsedEmail = "net.fnlb.errors.login.invalid_or_used_email",
|
|
385
|
+
AuthPasswordConfirmationInvalid = "net.fnlb.errors.auth.invalid_password_confirmation"
|
|
386
|
+
}
|
|
387
|
+
export type ErrorCodes = GeneralErrorCodes | InputErrorCodes;
|
|
388
|
+
export declare const ErrorCodes: {
|
|
389
|
+
readonly LoginInvalidCredentials: InputErrorCodes.LoginInvalidCredentials;
|
|
390
|
+
readonly LoginInvalidEmail: InputErrorCodes.LoginInvalidEmail;
|
|
391
|
+
readonly LoginInvalidOrUsedEmail: InputErrorCodes.LoginInvalidOrUsedEmail;
|
|
392
|
+
readonly AuthPasswordConfirmationInvalid: InputErrorCodes.AuthPasswordConfirmationInvalid;
|
|
393
|
+
readonly GenericUnknown: GeneralErrorCodes.GenericUnknown;
|
|
394
|
+
readonly GenericInternalError: GeneralErrorCodes.GenericInternalError;
|
|
395
|
+
readonly GenericValidationFailed: GeneralErrorCodes.GenericValidationFailed;
|
|
396
|
+
readonly GenericParseFailed: GeneralErrorCodes.GenericParseFailed;
|
|
397
|
+
readonly GenericNotFound: GeneralErrorCodes.GenericNotFound;
|
|
398
|
+
readonly GenericAlreadyExists: GeneralErrorCodes.GenericAlreadyExists;
|
|
399
|
+
readonly CommonInvalidRequest: GeneralErrorCodes.CommonInvalidRequest;
|
|
400
|
+
readonly CommonUnableToProcessRequest: GeneralErrorCodes.CommonUnableToProcessRequest;
|
|
401
|
+
readonly CommonInvalidFieldsLength: GeneralErrorCodes.CommonInvalidFieldsLength;
|
|
402
|
+
readonly CommonRateLimitExceeded: GeneralErrorCodes.CommonRateLimitExceeded;
|
|
403
|
+
readonly CommonUnableToSaveToDatabase: GeneralErrorCodes.CommonUnableToSaveToDatabase;
|
|
404
|
+
readonly AuthInvalidToken: GeneralErrorCodes.AuthInvalidToken;
|
|
405
|
+
readonly AuthInvalidAPIToken: GeneralErrorCodes.AuthInvalidAPIToken;
|
|
406
|
+
readonly AuthInvalidCaptchaToken: GeneralErrorCodes.AuthInvalidCaptchaToken;
|
|
407
|
+
readonly AuthUnauthorized: GeneralErrorCodes.AuthUnauthorized;
|
|
408
|
+
readonly AuthForbidden: GeneralErrorCodes.AuthForbidden;
|
|
409
|
+
readonly AuthUserBanned: GeneralErrorCodes.AuthUserBanned;
|
|
410
|
+
readonly Oauth2InvalidCode: GeneralErrorCodes.Oauth2InvalidCode;
|
|
411
|
+
readonly Oauth2InvalidScope: GeneralErrorCodes.Oauth2InvalidScope;
|
|
412
|
+
readonly Oauth2TokenInvalid: GeneralErrorCodes.Oauth2TokenInvalid;
|
|
413
|
+
readonly Oauth2UnableToFetchUser: GeneralErrorCodes.Oauth2UnableToFetchUser;
|
|
414
|
+
readonly Oauth2UnableToFetchConnections: GeneralErrorCodes.Oauth2UnableToFetchConnections;
|
|
415
|
+
readonly Oauth2UserWithoutConnection: GeneralErrorCodes.Oauth2UserWithoutConnection;
|
|
416
|
+
readonly Oauth2ConnectionNotVerified: GeneralErrorCodes.Oauth2ConnectionNotVerified;
|
|
417
|
+
readonly ReleaseNotFound: GeneralErrorCodes.ReleaseNotFound;
|
|
418
|
+
readonly ReleaseVersionAlreadyExists: GeneralErrorCodes.ReleaseVersionAlreadyExists;
|
|
419
|
+
};
|
|
420
|
+
export declare enum ErrorInputTypes {
|
|
421
|
+
Username = "username",
|
|
422
|
+
Email = "email",
|
|
423
|
+
Password = "password",
|
|
424
|
+
Shared = "shared"
|
|
425
|
+
}
|
|
426
|
+
export declare enum ErrorTypes {
|
|
427
|
+
General = "general",
|
|
428
|
+
Input = "input"
|
|
429
|
+
}
|
|
430
|
+
export declare enum Locales {
|
|
431
|
+
Default = "en",
|
|
432
|
+
De = "de",
|
|
433
|
+
Es = "es",
|
|
434
|
+
Fr = "fr",
|
|
435
|
+
It = "it",
|
|
436
|
+
Pl = "pl",
|
|
437
|
+
Pt = "pt",
|
|
438
|
+
Tr = "tr"
|
|
439
|
+
}
|
|
499
440
|
|
|
500
441
|
export {};
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var b;((i)=>{i[i.Public=0]="Public";i[i.Private=1]="Private"})(b||={});var c;((s)=>{s[s.Offline=0]="Offline";s[s.Booting=1]="Booting";s[s.Available=2]="Available";s[s.Busy=3]="Busy";s[s.Disconnected=4]="Disconnected"})(c||={});var h;((s)=>{s[s.Neutral=0]="Neutral";s[s.Success=1]="Success";s[s.Info=2]="Info";s[s.Warn=3]="Warn";s[s.Error=4]="Error"})(h||={});var f;((a)=>{a.Win="WIN";a.Mac="MAC";a.Psn="PSN";a.Xbl="XBL";a.Swt="SWT";a.Ios="IOS";a.And="AND";a.Ps5="PS5";a.Xsx="XSX"})(f||={});var m;((i)=>{i[i.Public=0]="Public";i[i.Private=1]="Private"})(m||={});var r;((l)=>{l[l.Equals=0]="Equals";l[l.Includes=1]="Includes";l[l.StartsWith=2]="StartsWith";l[l.EndsWith=3]="EndsWith"})(r||={});var v;((n)=>{n[n.Blacklist=0]="Blacklist";n[n.Whitelist=1]="Whitelist";n[n.Kick=2]="Kick";n[n.Block=3]="Block";n[n.RemoveFriend=4]="RemoveFriend";n[n.AddFriend=5]="AddFriend";n[n.Promote=6]="Promote";n[n.Copy=7]="Copy";n[n.Mimic=8]="Mimic";n[n.Hide=9]="Hide";n[n.Show=10]="Show"})(v||={});var o;((_)=>{_.Default="en";_.De="de";_.Es="es";_.Fr="fr";_.It="it";_.Pl="pl";_.Pt="pt";_.Tr="tr"})(o||={});var p={replyLangs:["en","es","de","fr","it","pt"],searchLangs:["en","es","de","fr","it","pt"],platform:["AND"],privacy:0,prefixes:["!",".","/"],statusText:[],statusInterval:void 0,level:[-999999999],bpLevel:[999999999],extraOwners:[],admins:[],whitelistUsers:[],blacklistUsers:[],excludedAutoAddFriends:[],otherBots:[],inviteTimeout:60,maxBotsPerLobby:8,maxBotsPerLobbyWithOwner:16,maxBotsPerLobbyWithAdmin:16,maxBotsPerLobbyWithWhitelistUser:16,allowMatchmaking:!0,disableMatchmakingChecks:!1,disableJoinMessages:!1,acceptFriendRequests:!1,sendFriendRequestOnJoinParty:!1,sendFriendRequestOnMemberJoinParty:!1,runCommandsWithoutPrefix:!0,setCosmeticsWithoutCommands:!0,usernameTriggers:[],messageContentTriggers:[],addFriendTriggers:[],memberJoinTriggers:[],changeCosmeticTriggers:[],onlyOwnerCommands:["send_number","send_all","remove_all_friends","decline_all_friends","accept_all_friends","unblock_all_users"],onlyAdminCommands:["add_friend","remove_friend","block_user","unblock_user"],onlyWhitelistUsersCommands:["send_party","send_shard","kick","kick_all","hide_all","message","whisper","accept_friend","decline_friend","say"],onlyFriendsCommands:[],onlyPartyMembersCommands:[],onlyWhisperCommands:[],startOutfit:[{id:"CID_030_Athena_Commando_M_Halloween",variants:[1,0]},{id:"CID_029_Athena_Commando_F_Halloween",variants:[2]},{id:"CID_434_Athena_Commando_F_StealthHonor",variants:[]},{id:"CID_175_Athena_Commando_M_Celestial",variants:[]}],startBackpack:[{id:"BID_138_Celestial",variants:[]},{id:"BID_004_BlackKnight",variants:[]}],startPickaxe:[{id:"Pickaxe_ID_116_Celestial",variants:[]},{id:"Pickaxe_ID_013_Teslacoil",variants:[]}],startShoes:[],startBanner:[],joinOutfit:[],joinBackpack:[],joinPickaxe:[],joinEmote:[{id:"EID_KPopDance03"}],joinShoes:[],joinBanner:[],memberJoinOutfit:[],memberJoinBackpack:[],memberJoinPickaxe:[],memberJoinEmote:[{id:"EID_KPopDance03"}],memberJoinShoes:[],memberJoinBanner:[]};var x;((t)=>{t[t.RequiredParam=0]="RequiredParam";t[t.OptionalParam=1]="OptionalParam";t[t.RequiredSelect=2]="RequiredSelect";t[t.OptionalSelect=3]="OptionalSelect";t[t.RequiredNumericParam=4]="RequiredNumericParam";t[t.OptionalNumericParam=5]="OptionalNumericParam"})(x||={});var u;((e)=>{e.GenericUnknown="net.fnlb.errors.generic.unknown";e.GenericInternalError="net.fnlb.errors.generic.internal_error";e.GenericValidationFailed="net.fnlb.errors.generic.validation_failed";e.GenericParseFailed="net.fnlb.errors.generic.parse_failed";e.GenericNotFound="net.fnlb.errors.generic.not_found";e.GenericAlreadyExists="net.fnlb.errors.generic.already_exists";e.CommonInvalidRequest="net.fnlb.errors.common.invalid_request";e.CommonUnableToProcessRequest="net.fnlb.errors.common.unable_to_process_request";e.CommonInvalidFieldsLength="net.fnlb.errors.common.invalid_body_fields_length";e.CommonRateLimitExceeded="net.fnlb.errors.common.rate_limit_exceeded";e.CommonUnableToSaveToDatabase="net.fnlb.errors.common.unable_to_save_to_database";e.AuthInvalidToken="net.fnlb.errors.auth.invalid_token";e.AuthInvalidAPIToken="net.fnlb.errors.auth.invalid_api_token";e.AuthInvalidCaptchaToken="net.fnlb.errors.auth.invalid_captcha_token";e.AuthUnauthorized="net.fnlb.errors.auth.unauthorized";e.AuthForbidden="net.fnlb.errors.auth.forbidden";e.AuthUserBanned="net.fnlb.errors.auth.user_banned";e.Oauth2InvalidCode="net.fnlb.errors.oauth2.invalid_code";e.Oauth2InvalidScope="net.fnlb.errors.oauth2.invalid_scope";e.Oauth2TokenInvalid="net.fnlb.errors.oauth2.token_invalid";e.Oauth2UnableToFetchUser="net.fnlb.errors.oauth2.unable_to_fetch_user";e.Oauth2UnableToFetchConnections="net.fnlb.errors.oauth2.unable_to_fetch_connections";e.Oauth2UserWithoutConnection="net.fnlb.errors.oauth2.user_without_connection";e.Oauth2ConnectionNotVerified="net.fnlb.errors.oauth2.connection_not_verified";e.ReleaseNotFound="net.fnlb.errors.release.no_release_found";e.ReleaseVersionAlreadyExists="net.fnlb.errors.release.version_already_exists"})(u||={});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 W={...u,...d};var k;((l)=>{l.Username="username";l.Email="email";l.Password="password";l.Shared="shared"})(k||={});var I;((i)=>{i.General="general";i.Input="input"})(I||={});export{p as defaultCategoryConfig,o as Locales,d as InputErrorCodes,u as GeneralErrorCodes,I as ErrorTypes,k as ErrorInputTypes,W as ErrorCodes,h as CommandReplyFormat,x as CommandParamType,r as CategoryConfigTriggerStringMatchingMethod,v as CategoryConfigTriggerAction,f as CategoryConfigSupportedPlatforms,m as CategoryConfigPartyPrivacy,b as BotTypes,c as BotStatus};
|