mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-04-30 08:07:51 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user