{"type":"object","properties":{"env":{"enum":["development","production","test"],"type":"string"},"version":{"type":"string"},"gitCommitSha":{"type":"string"},"gitCommitDate":{"type":"string"},"processMode":{"enum":["all","web","worker"],"type":"string"},"appBaseUrl":{"type":"string","format":"uri"},"client":{"type":"object","properties":{"baseUrl":{"type":"string","format":"uri"}},"required":[]},"server":{"type":"object","properties":{"baseUrl":{"type":"string","format":"uri"},"trustedOrigins":{"anyOf":[{"type":"array","items":{"type":"string","format":"uri"}},{"type":"string"}]},"trustedAppSchemes":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"port":{"anyOf":[{"type":"integer","minimum":0},{"type":"string"}],"minimum":1024,"maximum":65535},"hostname":{"type":"string"},"defaultRouteTimeoutMs":{"anyOf":[{"type":"integer","minimum":0},{"type":"string"}]},"routeTimeouts":{"type":"array","items":{"type":"object","properties":{"method":{"enum":["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],"type":"string"},"route":{"type":"string"},"timeoutMs":{"type":"integer","minimum":1}},"required":["method","route","timeoutMs"]}},"corsOrigins":{"anyOf":[{"type":"array","items":{"type":"string","format":"uri"}},{"type":"string"}]},"servePublicDir":{"anyOf":[{"type":"boolean"},{"type":"string"}]}},"required":[]},"database":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"authToken":{"type":"string"},"encryptionKey":{"type":"string"}},"required":[]},"documents":{"type":"object","properties":{"deletedDocumentsRetentionDays":{"anyOf":[{"type":"number"},{"type":"string"}],"type":"integer","minimum":0},"ocrLanguages":{"anyOf":[{"type":"string"},{"type":"array","items":{"enum":["afr","amh","ara","asm","aze","aze_cyrl","bel","ben","bod","bos","bul","cat","ceb","ces","chi_sim","chi_tra","chr","cym","dan","deu","dzo","ell","eng","enm","epo","est","eus","fas","fin","fra","frk","frm","gle","glg","grc","guj","hat","heb","hin","hrv","hun","iku","ind","isl","ita","ita_old","jav","jpn","kan","kat","kat_old","kaz","khm","kir","kor","kur","lao","lat","lav","lit","mal","mar","mkd","mlt","msa","mya","nep","nld","nor","ori","pan","pol","por","pus","ron","rus","san","sin","slk","slv","spa","spa_old","sqi","srp","srp_latn","swa","swe","syr","tam","tel","tgk","tgl","tha","tir","tur","uig","ukr","urd","uzb","uzb_cyrl","vie","yid"],"type":"string"}}]},"isContentExtractionEnabled":{"anyOf":[{"type":"boolean"},{"type":"string"}]}},"required":[]},"documentsStorage":{"type":"object","properties":{"maxUploadSize":{"anyOf":[{"type":"integer","minimum":0},{"type":"string"}]},"driver":{"enum":["filesystem","s3","in-memory","azure-blob"],"type":"string"},"drivers":{"type":"object","properties":{"filesystem":{"type":"object","properties":{"root":{"type":"string"}},"required":[]},"s3":{"type":"object","properties":{"accessKeyId":{"type":"string"},"secretAccessKey":{"type":"string"},"bucketName":{"type":"string"},"region":{"type":"string"},"endpoint":{"type":"string"},"forcePathStyle":{"anyOf":[{"type":"boolean"},{"type":"string"}]}},"required":[]},"azureBlob":{"type":"object","properties":{"connectionString":{"type":"string"},"accountName":{"type":"string"},"accountKey":{"type":"string"},"containerName":{"type":"string"}},"required":[]}},"required":[]},"encryption":{"type":"object","properties":{"isEncryptionEnabled":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"documentKeyEncryptionKeys":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"version":{"type":"string"},"key":{"minLength":32,"maxLength":32}},"required":["version","key"]}},{"type":"string"}]}},"required":[]},"pattern":{"type":"object","properties":{"useLegacyStorageKeyDefinitionSystem":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"maxIncrementalSuffixAttempts":{"anyOf":[{"type":"integer","minimum":0},{"type":"string"}]},"enableRandomSuffixFallback":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"storageKeyPattern":{"type":"string"}},"required":[]}},"required":[]},"documentContentExtraction":{"type":"object","properties":{"extractionStrategies":{"type":"string"},"strategy":{"type":"object","properties":{"mistralOcr":{"type":"object","properties":{"modelName":{"type":"string"},"mimeTypesAllowList":{"type":"string"}},"required":[]},"docling":{"type":"object","properties":{"baseUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"},"mimeTypesAllowList":{"type":"string"}},"required":[]},"azureDi":{"type":"object","properties":{"endpoint":{"type":"string","format":"uri"},"apiKey":{"type":"string"},"mimeTypesAllowList":{"type":"string"},"pollingAttempts":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]},"pollingDelayMs":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]}},"required":[]},"customHttp":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"headers":{"type":"string"},"uploadFormat":{"enum":["json","form-data"],"type":"string"},"requestTimeout":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]},"responseFormat":{"enum":["json","text"],"type":"string"},"jsonResponseTextPath":{"type":"string"},"mimeTypesAllowList":{"type":"string"}},"required":[]}},"required":[]}},"required":[]},"documentSearch":{"type":"object","properties":{"providerName":{"enum":["database-fts5"],"type":"string"}},"required":[]},"auth":{"type":"object","properties":{"secret":{"type":"string","minLength":32},"isRegistrationEnabled":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"isPasswordResetEnabled":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"isEmailVerificationRequired":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"showLegalLinksOnAuthPage":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"firstUserAsAdmin":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"ipAddressHeaders":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"forbiddenEmailDomains":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"providers":{"type":"object","properties":{"email":{"type":"object","properties":{"isEnabled":{"anyOf":[{"type":"boolean"},{"type":"string"}]}},"required":[]},"github":{"type":"object","properties":{"isEnabled":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"clientId":{"type":"string"},"clientSecret":{"type":"string"}},"required":[]},"google":{"type":"object","properties":{"isEnabled":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"clientId":{"type":"string"},"clientSecret":{"type":"string"}},"required":[]},"customs":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"object","properties":{"providerId":{"type":"string"},"providerName":{"type":"string"},"providerIconUrl":{"type":"string","format":"uri"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"redirectURI":{"type":"string"},"tokenUrl":{"type":"string"},"userInfoUrl":{"type":"string"},"responseType":{"type":"string"},"prompt":{"enum":["select_account","consent","login","none"],"type":"string"},"pkce":{"type":"boolean"},"accessType":{"type":"string"},"discoveryUrl":{"type":"string"},"type":{"enum":["oauth2","oidc"],"type":"string"},"authorizationUrl":{"type":"string"}},"required":["providerId","providerName","clientId","clientSecret"]}}]}},"required":[]}},"required":[]},"ingestionFolder":{"type":"object","properties":{"isEnabled":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"folderRootPath":{"type":"string"},"watcher":{"type":"object","properties":{"usePolling":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"pollingInterval":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]},"awaitWriteFinish":{"type":"object","properties":{"stabilityThreshold":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]},"pollInterval":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]}},"required":[]}},"required":[]},"processingConcurrency":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]},"errorFolder":{"type":"string"},"postProcessing":{"type":"object","properties":{"strategy":{"enum":["delete","move"],"type":"string"},"moveToFolderPath":{"type":"string"}},"required":[]},"ignoredPatterns":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":[]},"tasks":{"type":"object","properties":{"persistence":{"type":"object","properties":{"driverName":{"enum":["memory","libsql"],"type":"string"},"drivers":{"type":"object","properties":{"libSql":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"authToken":{"type":"string"},"migrateWithPragma":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"pollIntervalMs":{"anyOf":[{"type":"integer","minimum":0},{"type":"string"}]}},"required":[]}},"required":[]}},"required":[]},"worker":{"type":"object","properties":{"id":{"type":"string"}},"required":[]},"hardDeleteExpiredDocuments":{"type":"object","properties":{"cron":{"type":"string"},"runOnStartup":{"anyOf":[{"type":"boolean"},{"type":"string"}]}},"required":[]},"expireInvitations":{"type":"object","properties":{"cron":{"type":"string"},"runOnStartup":{"anyOf":[{"type":"boolean"},{"type":"string"}]}},"required":[]},"purgeExpiredOrganizations":{"type":"object","properties":{"cron":{"type":"string"},"runOnStartup":{"anyOf":[{"type":"boolean"},{"type":"string"}]}},"required":[]},"purgeExpiredKvEntries":{"type":"object","properties":{"cron":{"type":"string"},"runOnStartup":{"anyOf":[{"type":"boolean"},{"type":"string"}]}},"required":[]},"reverifyPlanEntitlements":{"type":"object","properties":{"cron":{"type":"string"},"runOnStartup":{"anyOf":[{"type":"boolean"},{"type":"string"}]}},"required":[]}},"required":[]},"intakeEmails":{"type":"object","properties":{"isEnabled":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"webhookSecret":{"type":"string","minLength":16,"maxLength":128},"driver":{"enum":["owlrelay","catch-all"],"type":"string"},"drivers":{"type":"object","properties":{"owlrelay":{"type":"object","properties":{"owlrelayApiKey":{"type":"string"},"webhookUrl":{"type":"string"},"domain":{"type":"string"}},"required":[]},"catchAll":{"type":"object","properties":{"domain":{"type":"string"}},"required":[]}},"required":[]},"username":{"type":"object","properties":{"driver":{"enum":["random","pattern"],"type":"string"},"drivers":{"type":"object","properties":{"pattern":{"type":"object","properties":{"pattern":{"type":"string"}},"required":[]}},"required":[]}},"required":[]}},"required":[]},"emails":{"type":"object","properties":{"fromEmail":{"type":"string"},"driverName":{"enum":["resend","logger","smtp"],"type":"string"},"drivers":{"type":"object","properties":{"resend":{"type":"object","properties":{"resendApiKey":{"type":"string"}},"required":[]},"logger":{"type":"object","properties":{"level":{"enum":["info","debug","warn","error"],"type":"string"}},"required":[]},"smtp":{"type":"object","properties":{"host":{"type":"string"},"port":{"anyOf":[{"type":"number"},{"type":"string"}]},"user":{"type":"string"},"password":{"type":"string"},"secure":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"rawConfig":{"type":"string"}},"required":[]}},"required":[]}},"required":[]},"organizations":{"type":"object","properties":{"maxOrganizationCount":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]},"invitationExpirationDelayDays":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]},"maxUserInvitationsPerDay":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]},"deletedOrganizationsPurgeDaysDelay":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]}},"required":[]},"organizationPlans":{"type":"object","properties":{"isFreePlanUnlimited":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"plusPlanMonthlyPriceId":{"type":"string"},"plusPlanAnnualPriceId":{"type":"string"},"proPlanMonthlyPriceId":{"type":"string"},"proPlanAnnualPriceId":{"type":"string"}},"required":[]},"subscriptions":{"type":"object","properties":{"stripeApiSecretKey":{"type":"string"},"stripeWebhookSecret":{"type":"string"},"globalCouponId":{"type":"string"}},"required":[]},"tags":{"type":"object","properties":{"maxTagsPerOrganization":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]}},"required":[]},"customProperties":{"type":"object","properties":{"maxCustomPropertiesPerOrganization":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]}},"required":[]},"documentShareLinks":{"type":"object","properties":{"shareLinkBaseUrl":{"type":"string","format":"uri"},"maxLinksPerDocument":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]},"accessTokenTtlMinutes":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]},"passwordVerificationRateLimit":{"type":"string"},"documentAccessRateLimit":{"type":"string"},"fileAccessRateLimit":{"type":"string"}},"required":[]},"tracking":{"type":"object","properties":{"posthog":{"type":"object","properties":{"isEnabled":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"apiKey":{"type":"string"},"host":{"type":"string","format":"uri"}},"required":[]}},"required":[]},"webhooks":{"type":"object","properties":{"isSsrfProtectionEnabled":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"webhookUrlAllowedHostnames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}]}},"required":[]},"kvStore":{"type":"object","properties":{"driverName":{"enum":["in-memory","libsql"],"type":"string"}},"required":[]},"planEntitlements":{"type":"object","properties":{"selfhst":{"type":"object","properties":{"isEnabledForNewClaims":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"entitlementVerification":{"type":"object","properties":{"endpoint":{"type":"string","format":"uri"},"token":{"type":"string"}},"required":[]}},"required":[]},"claimRateLimit":{"type":"string"}},"required":[]},"ai":{"type":"object","properties":{"isEnabled":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"adapters":{"type":"object","properties":{"anthropic":{"type":"object","properties":{"baseUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"}},"required":[]},"openai":{"type":"object","properties":{"baseUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"}},"required":[]},"mistral":{"type":"object","properties":{"baseUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"}},"required":[]},"deepseek":{"type":"object","properties":{"baseUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"}},"required":[]},"openrouter":{"type":"object","properties":{"baseUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"}},"required":[]},"ollama":{"type":"object","properties":{"baseUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"}},"required":[]},"lmstudio":{"type":"object","properties":{"baseUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"}},"required":[]},"vllm":{"type":"object","properties":{"baseUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"}},"required":[]},"cocore":{"type":"object","properties":{"baseUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"}},"required":[]}},"required":[]},"defaultModelId":{"type":"string"}},"required":[]},"autoTagging":{"type":"object","properties":{"isEnabled":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"modelId":{"type":"string"},"defaultMaxTags":{"anyOf":[{"type":"integer","minimum":1},{"type":"string"}]}},"required":[]},"$schema":{"type":"string","description":"The schema of the configuration file, to be used by IDEs to provide autocompletion and validation"}},"required":[],"$schema":"http://json-schema.org/draft-07/schema#"}