@fnlb-project/shared 1.5.84 → 1.5.85
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 +22 -29
- package/dist/types/index.js +1 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -35,24 +35,11 @@ export declare enum CategoryConfigStatusType {
|
|
|
35
35
|
Online = 1,
|
|
36
36
|
Away = 2
|
|
37
37
|
}
|
|
38
|
-
export declare enum
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
export declare enum CategoryConfigTriggerAction {
|
|
45
|
-
Blacklist = 0,
|
|
46
|
-
Whitelist = 1,
|
|
47
|
-
Kick = 2,
|
|
48
|
-
Block = 3,
|
|
49
|
-
RemoveFriend = 4,
|
|
50
|
-
AddFriend = 5,
|
|
51
|
-
Promote = 6,
|
|
52
|
-
Copy = 7,
|
|
53
|
-
Mimic = 8,
|
|
54
|
-
Hide = 9,
|
|
55
|
-
Show = 10
|
|
38
|
+
export declare enum ICategoryConfigTriggerType {
|
|
39
|
+
Event = 0
|
|
40
|
+
}
|
|
41
|
+
export declare enum ICategoryConfigTriggerActionType {
|
|
42
|
+
RunCommand = 0
|
|
56
43
|
}
|
|
57
44
|
export type ConnectionSchema = {
|
|
58
45
|
id?: string;
|
|
@@ -150,16 +137,13 @@ export interface IConnectedClientBot extends IClientBot {
|
|
|
150
137
|
};
|
|
151
138
|
matches: number;
|
|
152
139
|
}
|
|
140
|
+
declare enum TriggerFlags {
|
|
141
|
+
Disabled = 1
|
|
142
|
+
}
|
|
153
143
|
export interface ICategoryConfigUser {
|
|
154
144
|
id?: string;
|
|
155
145
|
name?: string;
|
|
156
146
|
}
|
|
157
|
-
export interface ICategoryConfigTrigger {
|
|
158
|
-
triggers?: string[];
|
|
159
|
-
matchingMethods?: CategoryConfigTriggerStringMatchingMethod[];
|
|
160
|
-
actions?: CategoryConfigTriggerAction[];
|
|
161
|
-
messages?: string[];
|
|
162
|
-
}
|
|
163
147
|
export interface ICategoryConfigCosmetic {
|
|
164
148
|
id?: string;
|
|
165
149
|
}
|
|
@@ -167,6 +151,19 @@ export interface ICategoryConfigCosmeticWithVariants {
|
|
|
167
151
|
id?: string;
|
|
168
152
|
variants?: number[];
|
|
169
153
|
}
|
|
154
|
+
export type ICategoryConfigTriggerActionNode = {
|
|
155
|
+
type: ICategoryConfigTriggerActionType.RunCommand;
|
|
156
|
+
command: string;
|
|
157
|
+
args?: string[];
|
|
158
|
+
};
|
|
159
|
+
export type ICategoryConfigTrigger = {
|
|
160
|
+
name: string;
|
|
161
|
+
flags: TriggerFlags;
|
|
162
|
+
actions: ICategoryConfigTriggerActionNode[];
|
|
163
|
+
} & {
|
|
164
|
+
type: ICategoryConfigTriggerType.Event;
|
|
165
|
+
event: string;
|
|
166
|
+
};
|
|
170
167
|
export interface ICategoryConfig {
|
|
171
168
|
searchLangs?: APILocales[];
|
|
172
169
|
platform?: `${CategoryConfigSupportedPlatforms}`[];
|
|
@@ -202,11 +199,7 @@ export interface ICategoryConfig {
|
|
|
202
199
|
setCosmeticsWithPrefix?: boolean;
|
|
203
200
|
acceptInvites?: boolean;
|
|
204
201
|
startBannedBots?: boolean;
|
|
205
|
-
|
|
206
|
-
messageContentTriggers?: ICategoryConfigTrigger[];
|
|
207
|
-
addFriendTriggers?: ICategoryConfigTrigger[];
|
|
208
|
-
memberJoinTriggers?: ICategoryConfigTrigger[];
|
|
209
|
-
changeCosmeticTriggers?: ICategoryConfigTrigger[];
|
|
202
|
+
triggers: ICategoryConfigTrigger[];
|
|
210
203
|
onlyOwnerCommands?: string[];
|
|
211
204
|
onlyAdminCommands?: string[];
|
|
212
205
|
onlyWhitelistUsersCommands?: string[];
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var l;((t)=>{t[t.Offline=0]="Offline";t[t.Booting=1]="Booting";t[t.Available=2]="Available";t[t.Busy=3]="Busy";t[t.Disconnected=4]="Disconnected"})(l||={});var b;((t)=>{t[t.Neutral=0]="Neutral";t[t.Success=1]="Success";t[t.Info=2]="Info";t[t.Warn=3]="Warn";t[t.Error=4]="Error"})(b||={});var m;((_)=>{_.Win="WIN";_.Mac="MAC";_.Psn="PSN";_.Xbl="XBL";_.Swt="SWT";_.Swt2="SWT2";_.Ios="IOS";_.And="AND";_.Ps5="PS5";_.Xsx="XSX"})(m||={});var c;((a)=>{a[a.Public=0]="Public";a[a.Private=1]="Private"})(c||={});var v;((o)=>{o[o.Auto=0]="Auto";o[o.Online=1]="Online";o[o.Away=2]="Away"})(v||={});var x;((s)=>s[s.Event=0]="Event")(x||={});var k;((s)=>s[s.RunCommand=0]="RunCommand")(k||={});var p;((i)=>{i.Default="en";i.EnUS="en-US";i.Es="es";i.Es419="es-419";i.Ar="ar";i.De="de";i.Fr="fr";i.He="he";i.Id="id";i.It="it";i.Ja="ja";i.Ko="ko";i.Pl="pl";i.Pt="pt";i.PtBR="pt-BR";i.Ru="ru";i.Th="th";i.Tr="tr";i.Vi="vi";i.Zh="zh";i.ZhHant="zh-Hant"})(p||={});var D;((r)=>{r.Default="en";r.Ar="ar";r.De="de";r.Es="es";r.Es419="es-419";r.Fr="fr";r.Id="id";r.It="it";r.Ja="ja";r.Ko="ko";r.Pl="pl";r.PtBR="pt-BR";r.Ru="ru";r.Th="th";r.Tr="tr";r.Vi="vi";r.ZhHans="zh-Hans";r.ZhHant="zh-Hant"})(D||={});var R={searchLangs:["en"],platform:["AND"],privacy:0,prefixes:["!",".","/"],statusType:0,statusText:[],statusInterval:2,level:[-999999999],bpLevel:[999999999],extraOwners:[],admins:[],whitelistUsers:[],blacklistUsers:[],excludedAutoAddFriends:[],otherBots:[],inviteTimeout:60,maxBotsPerLobby:8,maxBotsPerLobbyWithOwner:16,maxBotsPerLobbyWithAdmin:16,maxBotsPerLobbyWithWhitelistUser:16,allowMatchmaking:!0,leaveAfterMatchmaking:!1,disableMatchmakingChecks:!0,disablePlaylistChecks:!1,disableJoinMessages:!1,disableAutomaticMessages:!1,acceptFriendRequests:!0,sendFriendRequestOnJoinParty:!0,sendFriendRequestOnMemberJoinParty:!0,runCommandsWithoutPrefix:!0,setCosmeticsWithoutCommands:!0,setCosmeticsWithPrefix:!0,acceptInvites:!0,startBannedBots:!0,triggers:[],onlyOwnerCommands:["send_number","send_all","send_category","remove_all_friends","decline_all_friends","accept_all_friends","unblock_all_users","restart_bot","restart_category","restart_shard"],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","set_status","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:[{id:"BRSeason01"}],startBannerColor:[{id:"DefaultColor17"},{id:"DefaultColor14"}],joinOutfit:[],joinBackpack:[],joinPickaxe:[],joinEmote:[{id:"EID_KPopDance03"}],joinShoes:[],joinBanner:[],joinBannerColor:[],memberJoinOutfit:[],memberJoinBackpack:[],memberJoinPickaxe:[],memberJoinEmote:[{id:"EID_KPopDance03"}],memberJoinShoes:[],memberJoinBanner:[],memberJoinBannerColor:[]};var O;((d)=>{d[d.RequiredParam=0]="RequiredParam";d[d.OptionalParam=1]="OptionalParam";d[d.RequiredSelect=2]="RequiredSelect";d[d.OptionalSelect=3]="OptionalSelect";d[d.RequiredNumericParam=4]="RequiredNumericParam";d[d.OptionalNumericParam=5]="OptionalNumericParam"})(O||={});var f;((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.CommonLimitExceeded="net.fnlb.errors.common.limit_exceeded";e.CommonUnableToSaveToDatabase="net.fnlb.errors.common.unable_to_save_to_database";e.CommonUpdateRequired="net.fnlb.errors.common.update_required";e.CommonMaintenanceMode="net.fnlb.errors.common.maintenance_mode";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"})(f||={});var h;((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"})(h||={});var V={...f,...h};var w;((u)=>{u.Username="username";u.Email="email";u.Password="password";u.Shared="shared"})(w||={});var M;((a)=>{a.General="general";a.Input="input"})(M||={});var q;((o)=>{o[o.Disabled=1]="Disabled";o[o.Public=2]="Public";o[o.InvalidAuth=4]="InvalidAuth"})(q||={});var B;((a)=>{a[a.Disabled=1]="Disabled";a[a.Managed=2]="Managed"})(B||={});var J;((n)=>{n[n.Staff=1]="Staff";n[n.Admin=2]="Admin";n[n.Vip=4]="Vip";n[n.Verified=8]="Verified";n[n.Banned=16]="Banned";n[n.Tester=32]="Tester";n[n.Developer=64]="Developer";n[n.Partner=128]="Partner";n[n.Management=256]="Management";n[n.Moderation=512]="Moderation";n[n.Support=1024]="Support";n[n.IncreasedLimits=2048]="IncreasedLimits"})(J||={});export{R as defaultCategoryConfig,J as UserFlags,p as Locales,h as InputErrorCodes,x as ICategoryConfigTriggerType,k as ICategoryConfigTriggerActionType,f as GeneralErrorCodes,M as ErrorTypes,w as ErrorInputTypes,V as ErrorCodes,b as CommandReplyFormat,O as CommandParamType,B as CategoryFlags,m as CategoryConfigSupportedPlatforms,v as CategoryConfigStatusType,c as CategoryConfigPartyPrivacy,l as BotStatus,q as BotFlags,D as APILocales};
|