@fnlb-project/shared 1.5.14 → 1.5.16
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 +159 -228
- 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
|
@@ -33,120 +33,24 @@ export declare enum CategoryConfigPartyPrivacy {
|
|
|
33
33
|
Public = 0,
|
|
34
34
|
Private = 1
|
|
35
35
|
}
|
|
36
|
-
export declare enum
|
|
36
|
+
export declare enum CategoryConfigTriggerStringMatchingMethod {
|
|
37
37
|
Equals = 0,
|
|
38
38
|
Includes = 1,
|
|
39
39
|
StartsWith = 2,
|
|
40
40
|
EndsWith = 3
|
|
41
41
|
}
|
|
42
42
|
export declare enum CategoryConfigTriggerAction {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
Whitelist = 11
|
|
55
|
-
}
|
|
56
|
-
export declare enum CommandParamType {
|
|
57
|
-
RequiredParam = 0,
|
|
58
|
-
OptionalParam = 1,
|
|
59
|
-
RequiredSelect = 2,
|
|
60
|
-
OptionalSelect = 3,
|
|
61
|
-
RequiredNumericParam = 4,
|
|
62
|
-
OptionalNumericParam = 5
|
|
63
|
-
}
|
|
64
|
-
export declare enum GeneralErrorCodes {
|
|
65
|
-
GenericUnknown = "net.fnlb.errors.generic.unknown",
|
|
66
|
-
GenericInternalError = "net.fnlb.errors.generic.internal_error",
|
|
67
|
-
GenericValidationFailed = "net.fnlb.errors.generic.validation_failed",
|
|
68
|
-
GenericParseFailed = "net.fnlb.errors.generic.parse_failed",
|
|
69
|
-
GenericNotFound = "net.fnlb.errors.generic.not_found",
|
|
70
|
-
GenericAlreadyExists = "net.fnlb.errors.generic.already_exists",
|
|
71
|
-
CommonInvalidRequest = "net.fnlb.errors.common.invalid_request",
|
|
72
|
-
CommonUnableToProcessRequest = "net.fnlb.errors.common.unable_to_process_request",
|
|
73
|
-
CommonInvalidFieldsLength = "net.fnlb.errors.common.invalid_body_fields_length",
|
|
74
|
-
CommonRateLimitExceeded = "net.fnlb.errors.common.rate_limit_exceeded",
|
|
75
|
-
CommonUnableToSaveToDatabase = "net.fnlb.errors.common.unable_to_save_to_database",
|
|
76
|
-
AuthInvalidToken = "net.fnlb.errors.auth.invalid_token",
|
|
77
|
-
AuthInvalidAPIToken = "net.fnlb.errors.auth.invalid_api_token",
|
|
78
|
-
AuthInvalidCaptchaToken = "net.fnlb.errors.auth.invalid_captcha_token",
|
|
79
|
-
AuthUnauthorized = "net.fnlb.errors.auth.unauthorized",
|
|
80
|
-
AuthForbidden = "net.fnlb.errors.auth.forbidden",
|
|
81
|
-
AuthUserBanned = "net.fnlb.errors.auth.user_banned",
|
|
82
|
-
Oauth2InvalidCode = "net.fnlb.errors.oauth2.invalid_code",
|
|
83
|
-
Oauth2InvalidScope = "net.fnlb.errors.oauth2.invalid_scope",
|
|
84
|
-
Oauth2TokenInvalid = "net.fnlb.errors.oauth2.token_invalid",
|
|
85
|
-
Oauth2UnableToFetchUser = "net.fnlb.errors.oauth2.unable_to_fetch_user",
|
|
86
|
-
Oauth2UnableToFetchConnections = "net.fnlb.errors.oauth2.unable_to_fetch_connections",
|
|
87
|
-
Oauth2UserWithoutConnection = "net.fnlb.errors.oauth2.user_without_connection",
|
|
88
|
-
Oauth2ConnectionNotVerified = "net.fnlb.errors.oauth2.connection_not_verified",
|
|
89
|
-
ReleaseNotFound = "net.fnlb.errors.release.no_release_found",
|
|
90
|
-
ReleaseVersionAlreadyExists = "net.fnlb.errors.release.version_already_exists"
|
|
91
|
-
}
|
|
92
|
-
export declare enum InputErrorCodes {
|
|
93
|
-
LoginInvalidCredentials = "net.fnlb.errors.login.invalid_credentials",
|
|
94
|
-
LoginInvalidEmail = "net.fnlb.errors.login.invalid_email",
|
|
95
|
-
LoginInvalidOrUsedEmail = "net.fnlb.errors.login.invalid_or_used_email",
|
|
96
|
-
AuthPasswordConfirmationInvalid = "net.fnlb.errors.auth.invalid_password_confirmation"
|
|
97
|
-
}
|
|
98
|
-
export type ErrorCodes = GeneralErrorCodes | InputErrorCodes;
|
|
99
|
-
export declare const ErrorCodes: {
|
|
100
|
-
readonly LoginInvalidCredentials: InputErrorCodes.LoginInvalidCredentials;
|
|
101
|
-
readonly LoginInvalidEmail: InputErrorCodes.LoginInvalidEmail;
|
|
102
|
-
readonly LoginInvalidOrUsedEmail: InputErrorCodes.LoginInvalidOrUsedEmail;
|
|
103
|
-
readonly AuthPasswordConfirmationInvalid: InputErrorCodes.AuthPasswordConfirmationInvalid;
|
|
104
|
-
readonly GenericUnknown: GeneralErrorCodes.GenericUnknown;
|
|
105
|
-
readonly GenericInternalError: GeneralErrorCodes.GenericInternalError;
|
|
106
|
-
readonly GenericValidationFailed: GeneralErrorCodes.GenericValidationFailed;
|
|
107
|
-
readonly GenericParseFailed: GeneralErrorCodes.GenericParseFailed;
|
|
108
|
-
readonly GenericNotFound: GeneralErrorCodes.GenericNotFound;
|
|
109
|
-
readonly GenericAlreadyExists: GeneralErrorCodes.GenericAlreadyExists;
|
|
110
|
-
readonly CommonInvalidRequest: GeneralErrorCodes.CommonInvalidRequest;
|
|
111
|
-
readonly CommonUnableToProcessRequest: GeneralErrorCodes.CommonUnableToProcessRequest;
|
|
112
|
-
readonly CommonInvalidFieldsLength: GeneralErrorCodes.CommonInvalidFieldsLength;
|
|
113
|
-
readonly CommonRateLimitExceeded: GeneralErrorCodes.CommonRateLimitExceeded;
|
|
114
|
-
readonly CommonUnableToSaveToDatabase: GeneralErrorCodes.CommonUnableToSaveToDatabase;
|
|
115
|
-
readonly AuthInvalidToken: GeneralErrorCodes.AuthInvalidToken;
|
|
116
|
-
readonly AuthInvalidAPIToken: GeneralErrorCodes.AuthInvalidAPIToken;
|
|
117
|
-
readonly AuthInvalidCaptchaToken: GeneralErrorCodes.AuthInvalidCaptchaToken;
|
|
118
|
-
readonly AuthUnauthorized: GeneralErrorCodes.AuthUnauthorized;
|
|
119
|
-
readonly AuthForbidden: GeneralErrorCodes.AuthForbidden;
|
|
120
|
-
readonly AuthUserBanned: GeneralErrorCodes.AuthUserBanned;
|
|
121
|
-
readonly Oauth2InvalidCode: GeneralErrorCodes.Oauth2InvalidCode;
|
|
122
|
-
readonly Oauth2InvalidScope: GeneralErrorCodes.Oauth2InvalidScope;
|
|
123
|
-
readonly Oauth2TokenInvalid: GeneralErrorCodes.Oauth2TokenInvalid;
|
|
124
|
-
readonly Oauth2UnableToFetchUser: GeneralErrorCodes.Oauth2UnableToFetchUser;
|
|
125
|
-
readonly Oauth2UnableToFetchConnections: GeneralErrorCodes.Oauth2UnableToFetchConnections;
|
|
126
|
-
readonly Oauth2UserWithoutConnection: GeneralErrorCodes.Oauth2UserWithoutConnection;
|
|
127
|
-
readonly Oauth2ConnectionNotVerified: GeneralErrorCodes.Oauth2ConnectionNotVerified;
|
|
128
|
-
readonly ReleaseNotFound: GeneralErrorCodes.ReleaseNotFound;
|
|
129
|
-
readonly ReleaseVersionAlreadyExists: GeneralErrorCodes.ReleaseVersionAlreadyExists;
|
|
130
|
-
};
|
|
131
|
-
export declare enum ErrorInputTypes {
|
|
132
|
-
Username = "username",
|
|
133
|
-
Email = "email",
|
|
134
|
-
Password = "password",
|
|
135
|
-
Shared = "shared"
|
|
136
|
-
}
|
|
137
|
-
export declare enum ErrorTypes {
|
|
138
|
-
General = "general",
|
|
139
|
-
Input = "input"
|
|
140
|
-
}
|
|
141
|
-
export declare enum Locales {
|
|
142
|
-
Default = "en",
|
|
143
|
-
De = "de",
|
|
144
|
-
Es = "es",
|
|
145
|
-
Fr = "fr",
|
|
146
|
-
It = "it",
|
|
147
|
-
Pl = "pl",
|
|
148
|
-
Pt = "pt",
|
|
149
|
-
Tr = "tr"
|
|
43
|
+
Blacklist = 0,
|
|
44
|
+
Whitelist = 1,
|
|
45
|
+
Kick = 2,
|
|
46
|
+
Block = 3,
|
|
47
|
+
RemoveFriend = 4,
|
|
48
|
+
AddFriend = 5,
|
|
49
|
+
Promote = 6,
|
|
50
|
+
Copy = 7,
|
|
51
|
+
Mimic = 8,
|
|
52
|
+
Hide = 9,
|
|
53
|
+
Show = 10
|
|
150
54
|
}
|
|
151
55
|
export type ConnectionSchema = {
|
|
152
56
|
id?: string;
|
|
@@ -238,6 +142,23 @@ export interface IConnectedClientBot extends IClientBot {
|
|
|
238
142
|
};
|
|
239
143
|
matches: number;
|
|
240
144
|
}
|
|
145
|
+
export interface ICategoryConfigUser {
|
|
146
|
+
id?: string;
|
|
147
|
+
name?: string;
|
|
148
|
+
}
|
|
149
|
+
export interface ICategoryConfigTrigger {
|
|
150
|
+
triggers?: string[];
|
|
151
|
+
matchingMethods?: CategoryConfigTriggerStringMatchingMethod[];
|
|
152
|
+
actions?: CategoryConfigTriggerAction[];
|
|
153
|
+
messages?: string[];
|
|
154
|
+
}
|
|
155
|
+
export interface ICategoryConfigCosmetic {
|
|
156
|
+
id?: string;
|
|
157
|
+
}
|
|
158
|
+
export interface ICategoryConfigCosmeticWithVariants {
|
|
159
|
+
id?: string;
|
|
160
|
+
variants?: number[];
|
|
161
|
+
}
|
|
241
162
|
export interface ICategoryConfig {
|
|
242
163
|
replyLangs?: Locales[];
|
|
243
164
|
searchLangs?: Locales[];
|
|
@@ -248,143 +169,57 @@ export interface ICategoryConfig {
|
|
|
248
169
|
statusInterval?: number;
|
|
249
170
|
level?: number[];
|
|
250
171
|
bpLevel?: number[];
|
|
251
|
-
extraOwners?:
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
name?: string;
|
|
258
|
-
}[];
|
|
259
|
-
whitelistUsers?: {
|
|
260
|
-
id?: string;
|
|
261
|
-
name?: string;
|
|
262
|
-
}[];
|
|
263
|
-
blacklistUsers?: {
|
|
264
|
-
id?: string;
|
|
265
|
-
name?: string;
|
|
266
|
-
}[];
|
|
267
|
-
excludedAutoAddFriends?: {
|
|
268
|
-
id?: string;
|
|
269
|
-
name?: string;
|
|
270
|
-
}[];
|
|
271
|
-
otherBots?: {
|
|
272
|
-
id?: string;
|
|
273
|
-
name?: string;
|
|
274
|
-
}[];
|
|
275
|
-
disableMatchmakingChecks?: boolean;
|
|
276
|
-
disableJoinMessages?: boolean;
|
|
277
|
-
disableAutomaticMessages?: boolean;
|
|
172
|
+
extraOwners?: ICategoryConfigUser[];
|
|
173
|
+
admins?: ICategoryConfigUser[];
|
|
174
|
+
whitelistUsers?: ICategoryConfigUser[];
|
|
175
|
+
blacklistUsers?: ICategoryConfigUser[];
|
|
176
|
+
excludedAutoAddFriends?: ICategoryConfigUser[];
|
|
177
|
+
otherBots?: ICategoryConfigUser[];
|
|
278
178
|
inviteTimeout?: number;
|
|
279
179
|
maxBotsPerLobby?: number;
|
|
280
180
|
maxBotsPerLobbyWithOwner?: number;
|
|
281
181
|
maxBotsPerLobbyWithAdmin?: number;
|
|
282
182
|
maxBotsPerLobbyWithWhitelistUser?: number;
|
|
283
183
|
allowMatchmaking?: boolean;
|
|
184
|
+
disableMatchmakingChecks?: boolean;
|
|
185
|
+
disableJoinMessages?: boolean;
|
|
186
|
+
disableAutomaticMessages?: boolean;
|
|
284
187
|
acceptFriendRequests?: boolean;
|
|
285
188
|
sendFriendRequestOnJoinParty?: boolean;
|
|
286
189
|
sendFriendRequestOnMemberJoinParty?: boolean;
|
|
287
190
|
runCommandsWithoutPrefix?: boolean;
|
|
288
191
|
setCosmeticsWithoutCommands?: boolean;
|
|
289
|
-
usernameTriggers?:
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
}[];
|
|
295
|
-
messageContentTriggers?: {
|
|
296
|
-
triggers?: string[];
|
|
297
|
-
detectionMethods?: CategoryConfigTriggerStringDetectionMethod[];
|
|
298
|
-
actions?: CategoryConfigTriggerAction[];
|
|
299
|
-
messages?: string[];
|
|
300
|
-
}[];
|
|
301
|
-
cosmeticTriggers?: {
|
|
302
|
-
triggers?: string[];
|
|
303
|
-
detectionMethods?: CategoryConfigTriggerStringDetectionMethod[];
|
|
304
|
-
actions?: CategoryConfigTriggerAction[];
|
|
305
|
-
messages?: string[];
|
|
306
|
-
}[];
|
|
307
|
-
addFriendTrigger?: {
|
|
308
|
-
actions?: CategoryConfigTriggerAction[];
|
|
309
|
-
messages?: string[];
|
|
310
|
-
};
|
|
311
|
-
memberJoinTrigger?: {
|
|
312
|
-
actions?: CategoryConfigTriggerAction[];
|
|
313
|
-
messages?: string[];
|
|
314
|
-
};
|
|
315
|
-
changeCosmeticTrigger?: {
|
|
316
|
-
actions?: CategoryConfigTriggerAction[];
|
|
317
|
-
messages?: string[];
|
|
318
|
-
};
|
|
192
|
+
usernameTriggers?: ICategoryConfigTrigger[];
|
|
193
|
+
messageContentTriggers?: ICategoryConfigTrigger[];
|
|
194
|
+
addFriendTriggers?: ICategoryConfigTrigger[];
|
|
195
|
+
memberJoinTriggers?: ICategoryConfigTrigger[];
|
|
196
|
+
changeCosmeticTriggers?: ICategoryConfigTrigger[];
|
|
319
197
|
onlyOwnerCommands?: string[];
|
|
320
198
|
onlyAdminCommands?: string[];
|
|
321
199
|
onlyWhitelistUsersCommands?: string[];
|
|
322
200
|
onlyFriendsCommands?: string[];
|
|
323
201
|
onlyPartyMembersCommands?: string[];
|
|
324
202
|
onlyWhisperCommands?: string[];
|
|
325
|
-
startOutfit?:
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
id?: string;
|
|
346
|
-
variants?: number[];
|
|
347
|
-
}[];
|
|
348
|
-
joinBackpack?: {
|
|
349
|
-
id?: string;
|
|
350
|
-
variants?: number[];
|
|
351
|
-
}[];
|
|
352
|
-
joinPickaxe?: {
|
|
353
|
-
id?: string;
|
|
354
|
-
variants?: number[];
|
|
355
|
-
}[];
|
|
356
|
-
joinEmote?: {
|
|
357
|
-
id?: string;
|
|
358
|
-
}[];
|
|
359
|
-
joinShoes?: {
|
|
360
|
-
id?: string;
|
|
361
|
-
variants?: number[];
|
|
362
|
-
}[];
|
|
363
|
-
joinBanner?: {
|
|
364
|
-
id?: string;
|
|
365
|
-
}[];
|
|
366
|
-
memberJoinOutfit?: {
|
|
367
|
-
id?: string;
|
|
368
|
-
variants?: number[];
|
|
369
|
-
}[];
|
|
370
|
-
memberJoinBackpack?: {
|
|
371
|
-
id?: string;
|
|
372
|
-
variants?: number[];
|
|
373
|
-
}[];
|
|
374
|
-
memberJoinPickaxe?: {
|
|
375
|
-
id?: string;
|
|
376
|
-
variants?: number[];
|
|
377
|
-
}[];
|
|
378
|
-
memberJoinEmote?: {
|
|
379
|
-
id?: string;
|
|
380
|
-
}[];
|
|
381
|
-
memberJoinShoes?: {
|
|
382
|
-
id?: string;
|
|
383
|
-
variants?: number[];
|
|
384
|
-
}[];
|
|
385
|
-
memberJoinBanner?: {
|
|
386
|
-
id?: string;
|
|
387
|
-
}[];
|
|
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[];
|
|
388
223
|
}
|
|
389
224
|
export interface IDBCategory {
|
|
390
225
|
id: string;
|
|
@@ -395,6 +230,14 @@ export interface IDBCategory {
|
|
|
395
230
|
}
|
|
396
231
|
export interface ICategory extends IDBCategory {
|
|
397
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
|
+
}
|
|
398
241
|
export interface ICommandBaseParam {
|
|
399
242
|
id: string;
|
|
400
243
|
type: CommandParamType;
|
|
@@ -506,5 +349,93 @@ export interface IClientUser extends IDBUser {
|
|
|
506
349
|
token: never;
|
|
507
350
|
password: never;
|
|
508
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
|
+
}
|
|
509
440
|
|
|
510
441
|
export {};
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var d;((i)=>{i[i.Public=0]="Public";i[i.Private=1]="Private"})(d||={});var h;((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"})(h||={});var c;((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"})(c||={});var v;((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"})(v||={});var f;((i)=>{i[i.Public=0]="Public";i[i.Private=1]="Private"})(f||={});var x;((t)=>{t[t.Equals=0]="Equals";t[t.Includes=1]="Includes";t[t.StartsWith=2]="StartsWith";t[t.EndsWith=3]="EndsWith"})(x||={});var m;((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"})(m||={});var k;((_)=>{_.Default="en";_.De="de";_.Es="es";_.Fr="fr";_.It="it";_.Pl="pl";_.Pt="pt";_.Tr="tr"})(k||={});var q={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:[],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 o;((l)=>{l[l.RequiredParam=0]="RequiredParam";l[l.OptionalParam=1]="OptionalParam";l[l.RequiredSelect=2]="RequiredSelect";l[l.OptionalSelect=3]="OptionalSelect";l[l.RequiredNumericParam=4]="RequiredNumericParam";l[l.OptionalNumericParam=5]="OptionalNumericParam"})(o||={});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 b;((t)=>{t.LoginInvalidCredentials="net.fnlb.errors.login.invalid_credentials";t.LoginInvalidEmail="net.fnlb.errors.login.invalid_email";t.LoginInvalidOrUsedEmail="net.fnlb.errors.login.invalid_or_used_email";t.AuthPasswordConfirmationInvalid="net.fnlb.errors.auth.invalid_password_confirmation"})(b||={});var W={...u,...b};var I;((t)=>{t.Username="username";t.Email="email";t.Password="password";t.Shared="shared"})(I||={});var r;((i)=>{i.General="general";i.Input="input"})(r||={});export{q as defaultCategoryConfig,k as Locales,b as InputErrorCodes,u as GeneralErrorCodes,r as ErrorTypes,I as ErrorInputTypes,W as ErrorCodes,c as CommandReplyFormat,o as CommandParamType,x as CategoryConfigTriggerStringMatchingMethod,m as CategoryConfigTriggerAction,v as CategoryConfigSupportedPlatforms,f as CategoryConfigPartyPrivacy,d as BotTypes,h as BotStatus};
|