@fnlb-project/shared 1.5.88 → 1.5.89
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 +25 -25
- package/dist/types/index.js +1 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -41,6 +41,31 @@ export declare enum ICategoryConfigTriggerType {
|
|
|
41
41
|
export declare enum ICategoryConfigTriggerActionType {
|
|
42
42
|
RunCommand = 0
|
|
43
43
|
}
|
|
44
|
+
export declare enum ICategoryConfigTriggerEventType {
|
|
45
|
+
Ready = 0,
|
|
46
|
+
Disconnected = 1,
|
|
47
|
+
PartyInvite = 2,
|
|
48
|
+
PartyJoinRequest = 3,
|
|
49
|
+
PartyMemberJoined = 4,
|
|
50
|
+
PartyMemberLeft = 5,
|
|
51
|
+
PartyMemberKicked = 6,
|
|
52
|
+
PartyMemberMessage = 7,
|
|
53
|
+
PartyMemberPromoted = 8,
|
|
54
|
+
PartyMemberReady = 9,
|
|
55
|
+
PartyMemberSitOut = 10,
|
|
56
|
+
PartyMemberUnready = 11,
|
|
57
|
+
PartyMemberMatch = 12,
|
|
58
|
+
PartyMemberCosmeticUpdated = 13,
|
|
59
|
+
PartyUpdated = 14,
|
|
60
|
+
FriendAdded = 15,
|
|
61
|
+
FriendRemoved = 16,
|
|
62
|
+
FriendRequest = 17,
|
|
63
|
+
FriendMessage = 18,
|
|
64
|
+
FriendOnline = 19,
|
|
65
|
+
FriendOffline = 20,
|
|
66
|
+
UserBlocked = 21,
|
|
67
|
+
UserUnblocked = 22
|
|
68
|
+
}
|
|
44
69
|
export type ConnectionSchema = {
|
|
45
70
|
id?: string;
|
|
46
71
|
username?: string;
|
|
@@ -153,31 +178,6 @@ export type ICategoryConfigTriggerActionNode = {
|
|
|
153
178
|
command: string;
|
|
154
179
|
args?: string[];
|
|
155
180
|
};
|
|
156
|
-
export declare enum ICategoryConfigTriggerEventType {
|
|
157
|
-
Ready = 0,
|
|
158
|
-
Disconnected = 1,
|
|
159
|
-
PartyInvite = 2,
|
|
160
|
-
PartyJoinRequest = 3,
|
|
161
|
-
PartyMemberJoined = 4,
|
|
162
|
-
PartyMemberLeft = 5,
|
|
163
|
-
PartyMemberKicked = 6,
|
|
164
|
-
PartyMemberMessage = 7,
|
|
165
|
-
PartyMemberPromoted = 8,
|
|
166
|
-
PartyMemberReady = 9,
|
|
167
|
-
PartyMemberSitOut = 10,
|
|
168
|
-
PartyMemberUnready = 11,
|
|
169
|
-
PartyMemberMatch = 12,
|
|
170
|
-
PartyMemberCosmeticUpdated = 13,
|
|
171
|
-
PartyUpdated = 14,
|
|
172
|
-
FriendAdded = 15,
|
|
173
|
-
FriendRemoved = 16,
|
|
174
|
-
FriendRequest = 17,
|
|
175
|
-
FriendMessage = 18,
|
|
176
|
-
FriendOnline = 19,
|
|
177
|
-
FriendOffline = 20,
|
|
178
|
-
UserBlocked = 21,
|
|
179
|
-
UserUnblocked = 22
|
|
180
|
-
}
|
|
181
181
|
export type ICategoryConfigTrigger = {
|
|
182
182
|
name: string;
|
|
183
183
|
flags?: number;
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var o;((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"})(o||={});var x;((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"})(x||={});var f;((b)=>{b.Win="WIN";b.Mac="MAC";b.Psn="PSN";b.Xbl="XBL";b.Swt="SWT";b.Swt2="SWT2";b.Ios="IOS";b.And="AND";b.Ps5="PS5";b.Xsx="XSX"})(f||={});var k;((h)=>{h[h.Public=0]="Public";h[h.Private=1]="Private"})(k||={});var D;((_)=>{_[_.Auto=0]="Auto";_[_.Online=1]="Online";_[_.Away=2]="Away"})(D||={});var O;((a)=>a[a.Event=0]="Event")(O||={});var w;((a)=>a[a.RunCommand=0]="RunCommand")(w||={});var M;((n)=>{n[n.Ready=0]="Ready";n[n.Disconnected=1]="Disconnected";n[n.PartyInvite=2]="PartyInvite";n[n.PartyJoinRequest=3]="PartyJoinRequest";n[n.PartyMemberJoined=4]="PartyMemberJoined";n[n.PartyMemberLeft=5]="PartyMemberLeft";n[n.PartyMemberKicked=6]="PartyMemberKicked";n[n.PartyMemberMessage=7]="PartyMemberMessage";n[n.PartyMemberPromoted=8]="PartyMemberPromoted";n[n.PartyMemberReady=9]="PartyMemberReady";n[n.PartyMemberSitOut=10]="PartyMemberSitOut";n[n.PartyMemberUnready=11]="PartyMemberUnready";n[n.PartyMemberMatch=12]="PartyMemberMatch";n[n.PartyMemberCosmeticUpdated=13]="PartyMemberCosmeticUpdated";n[n.PartyUpdated=14]="PartyUpdated";n[n.FriendAdded=15]="FriendAdded";n[n.FriendRemoved=16]="FriendRemoved";n[n.FriendRequest=17]="FriendRequest";n[n.FriendMessage=18]="FriendMessage";n[n.FriendOnline=19]="FriendOnline";n[n.FriendOffline=20]="FriendOffline";n[n.UserBlocked=21]="UserBlocked";n[n.UserUnblocked=22]="UserUnblocked"})(M||={});var q;((d)=>{d.Default="en";d.EnUS="en-US";d.Es="es";d.Es419="es-419";d.Ar="ar";d.De="de";d.Fr="fr";d.He="he";d.Id="id";d.It="it";d.Ja="ja";d.Ko="ko";d.Pl="pl";d.Pt="pt";d.PtBR="pt-BR";d.Ru="ru";d.Th="th";d.Tr="tr";d.Vi="vi";d.Zh="zh";d.ZhHant="zh-Hant"})(q||={});var B;((u)=>{u.Default="en";u.Ar="ar";u.De="de";u.Es="es";u.Es419="es-419";u.Fr="fr";u.Id="id";u.It="it";u.Ja="ja";u.Ko="ko";u.Pl="pl";u.PtBR="pt-BR";u.Ru="ru";u.Th="th";u.Tr="tr";u.Vi="vi";u.ZhHans="zh-Hans";u.ZhHant="zh-Hant"})(B||={});var K={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 J;((s)=>{s[s.RequiredParam=0]="RequiredParam";s[s.OptionalParam=1]="OptionalParam";s[s.RequiredSelect=2]="RequiredSelect";s[s.OptionalSelect=3]="OptionalSelect";s[s.RequiredNumericParam=4]="RequiredNumericParam";s[s.OptionalNumericParam=5]="OptionalNumericParam"})(J||={});var m;((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.CommonLimitExceeded="net.fnlb.errors.common.limit_exceeded";t.CommonUnableToSaveToDatabase="net.fnlb.errors.common.unable_to_save_to_database";t.CommonUpdateRequired="net.fnlb.errors.common.update_required";t.CommonMaintenanceMode="net.fnlb.errors.common.maintenance_mode";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"})(m||={});var c;((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"})(c||={});var Q={...m,...c};var W;((l)=>{l.Username="username";l.Email="email";l.Password="password";l.Shared="shared"})(W||={});var H;((h)=>{h.General="general";h.Input="input"})(H||={});var j;((_)=>{_[_.Disabled=1]="Disabled";_[_.Public=2]="Public";_[_.InvalidAuth=4]="InvalidAuth"})(j||={});var r;((h)=>{h[h.Disabled=1]="Disabled";h[h.Managed=2]="Managed"})(r||={});var R;((a)=>a[a.NotWearable=1]="NotWearable")(R||={});var A;((a)=>a[a.Disabled=1]="Disabled")(A||={});var N;((i)=>{i[i.Staff=1]="Staff";i[i.Admin=2]="Admin";i[i.Vip=4]="Vip";i[i.Verified=8]="Verified";i[i.Banned=16]="Banned";i[i.Tester=32]="Tester";i[i.Developer=64]="Developer";i[i.Partner=128]="Partner";i[i.Management=256]="Management";i[i.Moderation=512]="Moderation";i[i.Support=1024]="Support";i[i.IncreasedLimits=2048]="IncreasedLimits"})(N||={});export{K as defaultCategoryConfig,N as UserFlags,A as TriggerFlags,q as Locales,c as InputErrorCodes,O as ICategoryConfigTriggerType,M as ICategoryConfigTriggerEventType,w as ICategoryConfigTriggerActionType,m as GeneralErrorCodes,H as ErrorTypes,W as ErrorInputTypes,Q as ErrorCodes,R as CosmeticFlags,x as CommandReplyFormat,J as CommandParamType,r as CategoryFlags,f as CategoryConfigSupportedPlatforms,D as CategoryConfigStatusType,k as CategoryConfigPartyPrivacy,o as BotStatus,j as BotFlags,B as APILocales};
|