@fnlb-project/shared 1.5.13 → 1.5.15
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/types/index.d.ts +37 -46
- package/dist/types/index.js +1 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -33,25 +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
|
|
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
|
|
55
54
|
}
|
|
56
55
|
export declare enum CommandParamType {
|
|
57
56
|
RequiredParam = 0,
|
|
@@ -203,6 +202,7 @@ export interface ICosmeticVariants {
|
|
|
203
202
|
outfit?: ICosmeticVariantMeta[];
|
|
204
203
|
backpack?: ICosmeticVariantMeta[];
|
|
205
204
|
pickaxe?: ICosmeticVariantMeta[];
|
|
205
|
+
shoes?: ICosmeticVariantMeta[];
|
|
206
206
|
}
|
|
207
207
|
export interface IPartyMember {
|
|
208
208
|
id: string;
|
|
@@ -237,6 +237,12 @@ export interface IConnectedClientBot extends IClientBot {
|
|
|
237
237
|
};
|
|
238
238
|
matches: number;
|
|
239
239
|
}
|
|
240
|
+
export interface ICategoryConfigTrigger {
|
|
241
|
+
triggers?: string[];
|
|
242
|
+
matchingMethods?: CategoryConfigTriggerStringMatchingMethod[];
|
|
243
|
+
actions?: CategoryConfigTriggerAction[];
|
|
244
|
+
messages?: string[];
|
|
245
|
+
}
|
|
240
246
|
export interface ICategoryConfig {
|
|
241
247
|
replyLangs?: Locales[];
|
|
242
248
|
searchLangs?: Locales[];
|
|
@@ -271,50 +277,25 @@ export interface ICategoryConfig {
|
|
|
271
277
|
id?: string;
|
|
272
278
|
name?: string;
|
|
273
279
|
}[];
|
|
274
|
-
disableMatchmakingChecks?: boolean;
|
|
275
|
-
disableJoinMessages?: boolean;
|
|
276
|
-
disableAutomaticMessages?: boolean;
|
|
277
280
|
inviteTimeout?: number;
|
|
278
281
|
maxBotsPerLobby?: number;
|
|
279
282
|
maxBotsPerLobbyWithOwner?: number;
|
|
280
283
|
maxBotsPerLobbyWithAdmin?: number;
|
|
281
284
|
maxBotsPerLobbyWithWhitelistUser?: number;
|
|
282
285
|
allowMatchmaking?: boolean;
|
|
286
|
+
disableMatchmakingChecks?: boolean;
|
|
287
|
+
disableJoinMessages?: boolean;
|
|
288
|
+
disableAutomaticMessages?: boolean;
|
|
283
289
|
acceptFriendRequests?: boolean;
|
|
284
290
|
sendFriendRequestOnJoinParty?: boolean;
|
|
285
291
|
sendFriendRequestOnMemberJoinParty?: boolean;
|
|
286
292
|
runCommandsWithoutPrefix?: boolean;
|
|
287
293
|
setCosmeticsWithoutCommands?: boolean;
|
|
288
|
-
usernameTriggers?:
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}[];
|
|
294
|
-
messageContentTriggers?: {
|
|
295
|
-
triggers?: string[];
|
|
296
|
-
detectionMethods?: CategoryConfigTriggerStringDetectionMethod[];
|
|
297
|
-
actions?: CategoryConfigTriggerAction[];
|
|
298
|
-
messages?: string[];
|
|
299
|
-
}[];
|
|
300
|
-
cosmeticTriggers?: {
|
|
301
|
-
triggers?: string[];
|
|
302
|
-
detectionMethods?: CategoryConfigTriggerStringDetectionMethod[];
|
|
303
|
-
actions?: CategoryConfigTriggerAction[];
|
|
304
|
-
messages?: string[];
|
|
305
|
-
}[];
|
|
306
|
-
addFriendTrigger?: {
|
|
307
|
-
actions?: CategoryConfigTriggerAction[];
|
|
308
|
-
messages?: string[];
|
|
309
|
-
};
|
|
310
|
-
memberJoinTrigger?: {
|
|
311
|
-
actions?: CategoryConfigTriggerAction[];
|
|
312
|
-
messages?: string[];
|
|
313
|
-
};
|
|
314
|
-
changeCosmeticTrigger?: {
|
|
315
|
-
actions?: CategoryConfigTriggerAction[];
|
|
316
|
-
messages?: string[];
|
|
317
|
-
};
|
|
294
|
+
usernameTriggers?: ICategoryConfigTrigger[];
|
|
295
|
+
messageContentTriggers?: ICategoryConfigTrigger[];
|
|
296
|
+
addFriendTriggers?: ICategoryConfigTrigger[];
|
|
297
|
+
memberJoinTriggers?: ICategoryConfigTrigger[];
|
|
298
|
+
changeCosmeticTriggers?: ICategoryConfigTrigger[];
|
|
318
299
|
onlyOwnerCommands?: string[];
|
|
319
300
|
onlyAdminCommands?: string[];
|
|
320
301
|
onlyWhitelistUsersCommands?: string[];
|
|
@@ -340,6 +321,9 @@ export interface ICategoryConfig {
|
|
|
340
321
|
startBanner?: {
|
|
341
322
|
id?: string;
|
|
342
323
|
}[];
|
|
324
|
+
startBannerColor?: {
|
|
325
|
+
id?: string;
|
|
326
|
+
}[];
|
|
343
327
|
joinOutfit?: {
|
|
344
328
|
id?: string;
|
|
345
329
|
variants?: number[];
|
|
@@ -362,6 +346,9 @@ export interface ICategoryConfig {
|
|
|
362
346
|
joinBanner?: {
|
|
363
347
|
id?: string;
|
|
364
348
|
}[];
|
|
349
|
+
joinBannerColor?: {
|
|
350
|
+
id?: string;
|
|
351
|
+
}[];
|
|
365
352
|
memberJoinOutfit?: {
|
|
366
353
|
id?: string;
|
|
367
354
|
variants?: number[];
|
|
@@ -384,7 +371,11 @@ export interface ICategoryConfig {
|
|
|
384
371
|
memberJoinBanner?: {
|
|
385
372
|
id?: string;
|
|
386
373
|
}[];
|
|
374
|
+
memberJoinBannerColor?: {
|
|
375
|
+
id?: string;
|
|
376
|
+
}[];
|
|
387
377
|
}
|
|
378
|
+
export declare const defaultCategoryConfig: ICategoryConfig;
|
|
388
379
|
export interface IDBCategory {
|
|
389
380
|
id: string;
|
|
390
381
|
owner: string;
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var t;((_)=>{_[_.Public=0]="Public";_[_.Private=1]="Private"})(t||={});var f;((l)=>{l[l.Offline=0]="Offline";l[l.Booting=1]="Booting";l[l.Available=2]="Available";l[l.Busy=3]="Busy";l[l.Disconnected=4]="Disconnected"})(f||={});var x;((l)=>{l[l.Neutral=0]="Neutral";l[l.Success=1]="Success";l[l.Info=2]="Info";l[l.Warn=3]="Warn";l[l.Error=4]="Error"})(x||={});var d;((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"})(d||={});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;((e)=>{e[e.Blacklist=0]="Blacklist";e[e.Whitelist=1]="Whitelist";e[e.Kick=2]="Kick";e[e.Block=3]="Block";e[e.RemoveFriend=4]="RemoveFriend";e[e.AddFriend=5]="AddFriend";e[e.Promote=6]="Promote";e[e.Copy=7]="Copy";e[e.Mimic=8]="Mimic";e[e.Hide=9]="Hide";e[e.Show=10]="Show"})(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 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 i;((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"})(i||={});var P={...h,...i};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;((v)=>{v.Default="en";v.De="de";v.Es="es";v.Fr="fr";v.It="it";v.Pl="pl";v.Pt="pt";v.Tr="tr"})(w||={});export{w as Locales,i as InputErrorCodes,h as GeneralErrorCodes,q as ErrorTypes,I as ErrorInputTypes,P as ErrorCodes,x as CommandReplyFormat,k as CommandParamType,O as CategoryConfigTriggerStringMatchingMethod,U as CategoryConfigTriggerAction,d as CategoryConfigSupportedPlatforms,c as CategoryConfigPartyPrivacy,t as BotTypes,f as BotStatus};
|