/** * Base properties for a context. */ export interface ContextBase { /** The unique identifier for the context. */ id?: string | undefined; /** The name of the context. */ name?: string | undefined; /** The unique slug for the context used in API requests. */ slug?: string | undefined; /** The description of the context. */ description?: string | undefined; /** When true, bound rules and flows automatically execute when their inputs are satisfied. When false, users must manually call /solve or /flows endpoints. */ auto_execute_decisions?: boolean | undefined; /** Time-to-live in seconds for live context instances. Instances expire after this duration. */ ttl_seconds?: (number | null) | undefined; /** Maximum number of history entries to retain per field. */ history_limit?: number | undefined; /** How to handle fields that don't match the schema: 'ignore' filters them out, 'reject' returns an error. */ on_schema_mismatch?: ContextBase.OnSchemaMismatch | undefined; /** Webhook URL called when a rule or flow successfully solves for a live context. */ webhook_on_solve?: (string | null) | undefined; /** Webhook URL called when a live context expires due to TTL. */ webhook_on_expire?: (string | null) | undefined; } export declare namespace ContextBase { /** How to handle fields that don't match the schema: 'ignore' filters them out, 'reject' returns an error. */ const OnSchemaMismatch: { readonly Ignore: "ignore"; readonly Reject: "reject"; }; type OnSchemaMismatch = (typeof OnSchemaMismatch)[keyof typeof OnSchemaMismatch]; }