2
0

Introducing Radar, fraud detection

This commit is contained in:
Baptiste Arnaud
2023-12-08 18:16:07 +00:00
parent 0b93c2b239
commit 4fdc1bfe5c
18 changed files with 221 additions and 7 deletions

11
packages/env/env.ts vendored
View File

@@ -66,6 +66,16 @@ const baseEnv = {
.default('FREE'),
DEBUG: boolean.optional().default('false'),
CHAT_API_TIMEOUT: z.coerce.number().optional(),
RADAR_HIGH_RISK_KEYWORDS: z
.string()
.min(1)
.transform((val) => val.split(','))
.optional(),
RADAR_INTERMEDIATE_RISK_KEYWORDS: z
.string()
.min(1)
.transform((val) => val.split(','))
.optional(),
},
client: {
NEXT_PUBLIC_E2E_TEST: boolean.optional(),
@@ -294,6 +304,7 @@ const telemetryEnv = {
server: {
TELEMETRY_WEBHOOK_URL: z.string().url().optional(),
TELEMETRY_WEBHOOK_BEARER_TOKEN: z.string().min(1).optional(),
MESSAGE_WEBHOOK_URL: z.string().url().optional(),
USER_CREATED_WEBHOOK_URL: z.string().url().optional(),
},
}