mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
refactor(api): emit moderation events and apply account actions (#3031)
This commit is contained in:
1 parent
c488906131
commit
364084c819
385 files changed
+8994
-22221
No files matched your search
@@ -26,16 +26,13 @@ export interface APICachePurgeConfig {
|
||||
interface APIGeoipFilesystemConfig {
|
||||
mode: 'filesystem';
|
||||
maxmindDbPath?: string;
|
||||
maxmindAsnDbPath?: string;
|
||||
}
|
||||
|
||||
interface APIGeoipS3Config {
|
||||
mode: 's3';
|
||||
maxmindDbPath: string;
|
||||
maxmindAsnDbPath?: string;
|
||||
s3Bucket: string;
|
||||
s3Key: string;
|
||||
s3AsnKey?: string;
|
||||
}
|
||||
|
||||
export type APIGeoipConfig = APIGeoipFilesystemConfig | APIGeoipS3Config;
|
||||
@@ -185,26 +182,12 @@ export interface APIConfig {
|
||||
secure: boolean;
|
||||
};
|
||||
};
|
||||
sms: {
|
||||
enabled: boolean;
|
||||
accountSid?: string;
|
||||
authToken?: string;
|
||||
verifyServiceSid?: string;
|
||||
inboundChallengeNumber?: string;
|
||||
inboundWebhookAuthToken?: string;
|
||||
inboundWebhookPublicUrl?: string;
|
||||
};
|
||||
risk: {
|
||||
enabled: boolean;
|
||||
ipinfoApiKey?: string;
|
||||
accountPolicyDsl?: unknown;
|
||||
ipinfo: {
|
||||
apiKey?: string;
|
||||
};
|
||||
blocklistFeeds: {
|
||||
enabled: boolean;
|
||||
};
|
||||
torExitList: {
|
||||
enabled: boolean;
|
||||
};
|
||||
breachedPasswordCheck: {
|
||||
enabled: boolean;
|
||||
};
|
||||
@@ -335,23 +318,6 @@ export interface APIConfig {
|
||||
configured: boolean;
|
||||
};
|
||||
};
|
||||
abusePolicy: {
|
||||
inboundPhoneCountryCodes: Array<string>;
|
||||
phoneFlagging: {
|
||||
enabled: boolean;
|
||||
exemptCountryCodes: Array<string>;
|
||||
};
|
||||
phoneVerification: {
|
||||
inboundRequiredPrefixes: Array<string>;
|
||||
};
|
||||
directContactSpam: {
|
||||
enabled: boolean;
|
||||
countryCodes: Array<string>;
|
||||
distinctTargetThreshold: number;
|
||||
targetWindowMs: number;
|
||||
action: 'flag_spammer' | 'suppress_delivery';
|
||||
};
|
||||
};
|
||||
domain: {
|
||||
baseDomain: string;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user