diff --git a/specification/text_structure/find_structure/FindStructureRequest.ts b/specification/text_structure/find_structure/FindStructureRequest.ts index 8bdaeb0580..effeeff0f0 100644 --- a/specification/text_structure/find_structure/FindStructureRequest.ts +++ b/specification/text_structure/find_structure/FindStructureRequest.ts @@ -98,7 +98,7 @@ export interface Request { * In this default scenario, all rows must have the same number of fields for a delimited format to be detected. * If the format is set to `delimited` and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row. */ - format?: string + format?: FindStructureFormat /** * If you have set `format` to `semi_structured_text`, you can specify a Grok pattern that is used to extract fields from every message in the text. * The name of the timestamp field in the Grok pattern must match what is specified in the `timestamp_field` parameter. @@ -207,3 +207,10 @@ export interface Request { * @codegen_name text_files */ body: Array } + +export enum FindStructureFormat { + ndjson, + xml, + delimited, + semi_structured_text +}