/** * A field definition within a context schema. */ export interface ContextSchemaField { /** The unique key for this field. */ key?: string | undefined; /** Display name for this field. */ name?: string | undefined; /** Description of this field. */ description?: string | undefined; /** Data type of this field. 'function' type fields compute values dynamically. */ type?: ContextSchemaField.Type | undefined; /** Default value for this field. */ default_value?: (unknown | null) | undefined; /** Whether this field is derived from rule/flow outputs. */ derived?: boolean | undefined; /** The rule ID that derives this field (if derived). */ source_rule?: (string | null) | undefined; /** The flow ID that derives this field (if derived). */ source_flow?: (string | null) | undefined; /** The source field key in the rule/flow output. */ source_field?: (string | null) | undefined; } export declare namespace ContextSchemaField { /** Data type of this field. 'function' type fields compute values dynamically. */ const Type: { readonly String: "string"; readonly Number: "number"; readonly Boolean: "boolean"; readonly Date: "date"; readonly List: "list"; readonly Function: "function"; }; type Type = (typeof Type)[keyof typeof Type]; }