@fnlb-project/shared 1.5.14 → 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.
@@ -33,25 +33,24 @@ export declare enum CategoryConfigPartyPrivacy {
33
33
  Public = 0,
34
34
  Private = 1
35
35
  }
36
- export declare enum CategoryConfigTriggerStringDetectionMethod {
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
- ChatBan = 0,
44
- Kick = 1,
45
- Block = 2,
46
- RemoveFriend = 3,
47
- AddFriend = 4,
48
- Promote = 5,
49
- Copy = 6,
50
- Mimic = 7,
51
- Hide = 8,
52
- Show = 9,
53
- Blacklist = 10,
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,
@@ -238,6 +237,12 @@ export interface IConnectedClientBot extends IClientBot {
238
237
  };
239
238
  matches: number;
240
239
  }
240
+ export interface ICategoryConfigTrigger {
241
+ triggers?: string[];
242
+ matchingMethods?: CategoryConfigTriggerStringMatchingMethod[];
243
+ actions?: CategoryConfigTriggerAction[];
244
+ messages?: string[];
245
+ }
241
246
  export interface ICategoryConfig {
242
247
  replyLangs?: Locales[];
243
248
  searchLangs?: Locales[];
@@ -272,50 +277,25 @@ export interface ICategoryConfig {
272
277
  id?: string;
273
278
  name?: string;
274
279
  }[];
275
- disableMatchmakingChecks?: boolean;
276
- disableJoinMessages?: boolean;
277
- disableAutomaticMessages?: boolean;
278
280
  inviteTimeout?: number;
279
281
  maxBotsPerLobby?: number;
280
282
  maxBotsPerLobbyWithOwner?: number;
281
283
  maxBotsPerLobbyWithAdmin?: number;
282
284
  maxBotsPerLobbyWithWhitelistUser?: number;
283
285
  allowMatchmaking?: boolean;
286
+ disableMatchmakingChecks?: boolean;
287
+ disableJoinMessages?: boolean;
288
+ disableAutomaticMessages?: boolean;
284
289
  acceptFriendRequests?: boolean;
285
290
  sendFriendRequestOnJoinParty?: boolean;
286
291
  sendFriendRequestOnMemberJoinParty?: boolean;
287
292
  runCommandsWithoutPrefix?: boolean;
288
293
  setCosmeticsWithoutCommands?: boolean;
289
- usernameTriggers?: {
290
- triggers?: string[];
291
- detectionMethods?: CategoryConfigTriggerStringDetectionMethod[];
292
- actions?: CategoryConfigTriggerAction[];
293
- messages?: string[];
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
- };
294
+ usernameTriggers?: ICategoryConfigTrigger[];
295
+ messageContentTriggers?: ICategoryConfigTrigger[];
296
+ addFriendTriggers?: ICategoryConfigTrigger[];
297
+ memberJoinTriggers?: ICategoryConfigTrigger[];
298
+ changeCosmeticTriggers?: ICategoryConfigTrigger[];
319
299
  onlyOwnerCommands?: string[];
320
300
  onlyAdminCommands?: string[];
321
301
  onlyWhitelistUsersCommands?: string[];
@@ -341,6 +321,9 @@ export interface ICategoryConfig {
341
321
  startBanner?: {
342
322
  id?: string;
343
323
  }[];
324
+ startBannerColor?: {
325
+ id?: string;
326
+ }[];
344
327
  joinOutfit?: {
345
328
  id?: string;
346
329
  variants?: number[];
@@ -363,6 +346,9 @@ export interface ICategoryConfig {
363
346
  joinBanner?: {
364
347
  id?: string;
365
348
  }[];
349
+ joinBannerColor?: {
350
+ id?: string;
351
+ }[];
366
352
  memberJoinOutfit?: {
367
353
  id?: string;
368
354
  variants?: number[];
@@ -385,7 +371,11 @@ export interface ICategoryConfig {
385
371
  memberJoinBanner?: {
386
372
  id?: string;
387
373
  }[];
374
+ memberJoinBannerColor?: {
375
+ id?: string;
376
+ }[];
388
377
  }
378
+ export declare const defaultCategoryConfig: ICategoryConfig;
389
379
  export interface IDBCategory {
390
380
  id: string;
391
381
  owner: string;
@@ -1 +1 @@
1
- var f;((_)=>{_[_.Public=0]="Public";_[_.Private=1]="Private"})(f||={});var d;((u)=>{u[u.Offline=0]="Offline";u[u.Booting=1]="Booting";u[u.Available=2]="Available";u[u.Busy=3]="Busy";u[u.Disconnected=4]="Disconnected"})(d||={});var i;((u)=>{u[u.Neutral=0]="Neutral";u[u.Success=1]="Success";u[u.Info=2]="Info";u[u.Warn=3]="Warn";u[u.Error=4]="Error"})(i||={});var c;((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"})(c||={});var O;((_)=>{_[_.Public=0]="Public";_[_.Private=1]="Private"})(O||={});var U;((e)=>{e[e.Equals=0]="Equals";e[e.Includes=1]="Includes";e[e.StartsWith=2]="StartsWith";e[e.EndsWith=3]="EndsWith"})(U||={});var k;((l)=>{l[l.ChatBan=0]="ChatBan";l[l.Kick=1]="Kick";l[l.Block=2]="Block";l[l.RemoveFriend=3]="RemoveFriend";l[l.AddFriend=4]="AddFriend";l[l.Promote=5]="Promote";l[l.Copy=6]="Copy";l[l.Mimic=7]="Mimic";l[l.Hide=8]="Hide";l[l.Show=9]="Show";l[l.Blacklist=10]="Blacklist";l[l.Whitelist=11]="Whitelist"})(k||={});var t;((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"})(t||={});var v;((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"})(v||={});var x;((e)=>{e.LoginInvalidCredentials="net.fnlb.errors.login.invalid_credentials";e.LoginInvalidEmail="net.fnlb.errors.login.invalid_email";e.LoginInvalidOrUsedEmail="net.fnlb.errors.login.invalid_or_used_email";e.AuthPasswordConfirmationInvalid="net.fnlb.errors.auth.invalid_password_confirmation"})(x||={});var P={...v,...x};var I;((e)=>{e.Username="username";e.Email="email";e.Password="password";e.Shared="shared"})(I||={});var q;((_)=>{_.General="general";_.Input="input"})(q||={});var w;((h)=>{h.Default="en";h.De="de";h.Es="es";h.Fr="fr";h.It="it";h.Pl="pl";h.Pt="pt";h.Tr="tr"})(w||={});export{w as Locales,x as InputErrorCodes,v as GeneralErrorCodes,q as ErrorTypes,I as ErrorInputTypes,P as ErrorCodes,i as CommandReplyFormat,t as CommandParamType,U as CategoryConfigTriggerStringDetectionMethod,k as CategoryConfigTriggerAction,c as CategoryConfigSupportedPlatforms,O as CategoryConfigPartyPrivacy,f as BotTypes,d as BotStatus};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fnlb-project/shared",
3
- "version": "1.5.14",
3
+ "version": "1.5.15",
4
4
  "description": "FNLB Shared Library",
5
5
  "files": ["dist"],
6
6
  "author": "FNLB-Project",