From 2e7c6b4cb79f35e61fccced277fdd430b93fab5b Mon Sep 17 00:00:00 2001 From: ezl-keygraph Date: Mon, 16 Mar 2026 19:42:30 +0530 Subject: [PATCH] fix: align TypeScript config types with JSON Schema - SuccessCondition.type: use schema values (url_contains, element_present, url_equals_exactly, text_contains) instead of stale values (url, cookie, element, redirect) - Authentication.login_flow: mark optional to match schema which does not require it --- apps/worker/src/types/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/worker/src/types/config.ts b/apps/worker/src/types/config.ts index 9e4e170..4965e68 100644 --- a/apps/worker/src/types/config.ts +++ b/apps/worker/src/types/config.ts @@ -24,7 +24,7 @@ export interface Rules { export type LoginType = 'form' | 'sso' | 'api' | 'basic'; export interface SuccessCondition { - type: 'url' | 'cookie' | 'element' | 'redirect'; + type: 'url_contains' | 'element_present' | 'url_equals_exactly' | 'text_contains'; value: string; } @@ -38,7 +38,7 @@ export interface Authentication { login_type: LoginType; login_url: string; credentials: Credentials; - login_flow: string[]; + login_flow?: string[]; success_condition: SuccessCondition; }