/** * This file was auto-generated by Fern from our API Definition. */ import * as Vectara from "../../../../index"; /** * @example * { * body: { * id: "my-doc-id", * type: "structured", * sections: [{ * id: 1, * title: "A nice title.", * text: "I'm a nice document section.", * metadata: { * "section": "1.1" * } * }, { * id: 2, * title: "Another nice title.", * text: "I'm another document section on something else.", * metadata: { * "section": "1.2" * } * }], * metadata: { * "url": "https://example.com" * } * } * } */ export interface DocumentsCreateRequest { /** * The API will make a best effort to complete the request in the specified seconds or time out. */ requestTimeout?: number; /** * The API will make a best effort to complete the request in the specified milliseconds or time out. */ requestTimeoutMillis?: number; body: Vectara.CreateDocumentRequest; }