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
This commit is contained in:
ezl-keygraph
2026-03-16 19:42:30 +05:30
parent f720b7d752
commit 2e7c6b4cb7
+2 -2
View File
@@ -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;
}