import { StringDict } from "../../../../parsing/index.js"; /** * JSON payload for a single data schema field definition. */ export interface DataSchemaFieldJson { /** * Field key used in results. */ name: string; /** * Human-readable field title. */ title: string; /** * Whether the field accepts multiple values. */ is_array: boolean; /** * Field type name. */ type: string; /** * Optional allowed classes for classification fields. */ classification_values?: Array; /** * Optional deduplication behavior for array fields. */ unique_values?: boolean; /** * Optional field description. */ description?: string; /** * Optional extraction guidelines. */ guidelines?: string; /** * Optional nested schema for object fields. */ nested_fields?: StringDict; } /** * Data schema field definition used by extraction parameters. */ export declare class DataSchemaField { /** * Display name for the field, also impacts inference results. */ title: string; /** * Name of the field in the data schema. */ name: string; /** * Whether this field can contain multiple values. */ isArray: boolean; /** * Data type of the field. */ type: string; /** * Allowed values when type is `classification`. Leave empty for other types. */ classificationValues?: Array; /** * Whether to remove duplicate values in the array. * Only applicable if `is_array` is True. */ uniqueValues?: boolean; /** * Detailed description of what this field represents. */ description?: string; /** * Optional extraction guidelines. */ guidelines?: string; /** * Subfields when type is `nested_object`. Leave empty for other types. */ nestedFields?: StringDict; constructor(fields: StringDict); /** * Serializes the field definition to API format. */ toJSON(): DataSchemaFieldJson; /** * Returns a JSON string representation of the field definition. */ toString(): string; }