graphor 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +320 -31
  3. package/client.d.mts +2 -5
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +2 -5
  6. package/client.d.ts.map +1 -1
  7. package/client.js +6 -8
  8. package/client.js.map +1 -1
  9. package/client.mjs +6 -8
  10. package/client.mjs.map +1 -1
  11. package/internal/qs/formats.d.mts +7 -0
  12. package/internal/qs/formats.d.mts.map +1 -0
  13. package/internal/qs/formats.d.ts +7 -0
  14. package/internal/qs/formats.d.ts.map +1 -0
  15. package/internal/qs/formats.js +13 -0
  16. package/internal/qs/formats.js.map +1 -0
  17. package/internal/qs/formats.mjs +9 -0
  18. package/internal/qs/formats.mjs.map +1 -0
  19. package/internal/qs/index.d.mts +10 -0
  20. package/internal/qs/index.d.mts.map +1 -0
  21. package/internal/qs/index.d.ts +10 -0
  22. package/internal/qs/index.d.ts.map +1 -0
  23. package/internal/qs/index.js +14 -0
  24. package/internal/qs/index.js.map +1 -0
  25. package/internal/qs/index.mjs +10 -0
  26. package/internal/qs/index.mjs.map +1 -0
  27. package/internal/qs/stringify.d.mts +3 -0
  28. package/internal/qs/stringify.d.mts.map +1 -0
  29. package/internal/qs/stringify.d.ts +3 -0
  30. package/internal/qs/stringify.d.ts.map +1 -0
  31. package/internal/qs/stringify.js +277 -0
  32. package/internal/qs/stringify.js.map +1 -0
  33. package/internal/qs/stringify.mjs +274 -0
  34. package/internal/qs/stringify.mjs.map +1 -0
  35. package/internal/qs/types.d.mts +57 -0
  36. package/internal/qs/types.d.mts.map +1 -0
  37. package/internal/qs/types.d.ts +57 -0
  38. package/internal/qs/types.d.ts.map +1 -0
  39. package/internal/qs/types.js +3 -0
  40. package/internal/qs/types.js.map +1 -0
  41. package/internal/qs/types.mjs +2 -0
  42. package/internal/qs/types.mjs.map +1 -0
  43. package/internal/qs/utils.d.mts +15 -0
  44. package/internal/qs/utils.d.mts.map +1 -0
  45. package/internal/qs/utils.d.ts +15 -0
  46. package/internal/qs/utils.d.ts.map +1 -0
  47. package/internal/qs/utils.js +230 -0
  48. package/internal/qs/utils.js.map +1 -0
  49. package/internal/qs/utils.mjs +217 -0
  50. package/internal/qs/utils.mjs.map +1 -0
  51. package/internal/tslib.js +17 -17
  52. package/internal/utils/query.d.mts +0 -3
  53. package/internal/utils/query.d.mts.map +1 -1
  54. package/internal/utils/query.d.ts +0 -3
  55. package/internal/utils/query.d.ts.map +1 -1
  56. package/internal/utils/query.js +3 -16
  57. package/internal/utils/query.js.map +1 -1
  58. package/internal/utils/query.mjs +2 -16
  59. package/internal/utils/query.mjs.map +1 -1
  60. package/package.json +7 -1
  61. package/resources/index.d.mts +1 -1
  62. package/resources/index.d.mts.map +1 -1
  63. package/resources/index.d.ts +1 -1
  64. package/resources/index.d.ts.map +1 -1
  65. package/resources/index.js.map +1 -1
  66. package/resources/index.mjs.map +1 -1
  67. package/resources/sources.d.mts +501 -337
  68. package/resources/sources.d.mts.map +1 -1
  69. package/resources/sources.d.ts +501 -337
  70. package/resources/sources.d.ts.map +1 -1
  71. package/resources/sources.js +201 -242
  72. package/resources/sources.js.map +1 -1
  73. package/resources/sources.mjs +201 -242
  74. package/resources/sources.mjs.map +1 -1
  75. package/src/client.ts +40 -24
  76. package/src/internal/qs/LICENSE.md +13 -0
  77. package/src/internal/qs/README.md +3 -0
  78. package/src/internal/qs/formats.ts +10 -0
  79. package/src/internal/qs/index.ts +13 -0
  80. package/src/internal/qs/stringify.ts +385 -0
  81. package/src/internal/qs/types.ts +71 -0
  82. package/src/internal/qs/utils.ts +265 -0
  83. package/src/internal/utils/query.ts +2 -18
  84. package/src/resources/index.ts +17 -8
  85. package/src/resources/sources.ts +621 -370
  86. package/src/version.ts +1 -1
  87. package/version.d.mts +1 -1
  88. package/version.d.ts +1 -1
  89. package/version.js +1 -1
  90. package/version.mjs +1 -1
@@ -11,12 +11,17 @@ export declare class Sources extends APIResource {
11
11
  * type, origin) along with its current processing status and a human-readable
12
12
  * status message.
13
13
  *
14
+ * **Query parameters:**
15
+ *
16
+ * - **file_ids** (list, optional): If provided, only sources whose file_id is in
17
+ * this list are returned. Repeat the param for multiple IDs (e.g.
18
+ * ?file_ids=id1&file_ids=id2).
19
+ *
14
20
  * **Status messages returned per source:**
15
21
  *
16
22
  * - `"completed"` → _"Source processed successfully"_
17
23
  * - `"processing"` → _"Source is being processed"_
18
24
  * - `"failed"` → _"Source processing failed"_
19
- * - `"new"` → _"Source uploaded, awaiting processing"_
20
25
  *
21
26
  * **Returns** a JSON array of `PublicSourceResponse` objects.
22
27
  *
@@ -29,7 +34,7 @@ export declare class Sources extends APIResource {
29
34
  * const publicSources = await client.sources.list();
30
35
  * ```
31
36
  */
32
- list(options?: RequestOptions): APIPromise<SourceListResponse>;
37
+ list(query?: SourceListParams | null | undefined, options?: RequestOptions): APIPromise<SourceListResponse>;
33
38
  /**
34
39
  * Delete a source from the project's knowledge graph and all associated data.
35
40
  *
@@ -154,272 +159,167 @@ export declare class Sources extends APIResource {
154
159
  */
155
160
  extract(body: SourceExtractParams, options?: RequestOptions): APIPromise<SourceExtractResponse>;
156
161
  /**
157
- * Retrieve the parsed elements (chunks/partitions) of a specific source with
158
- * pagination.
159
- *
160
- * Returns the individual document partitions (text chunks) that were generated
161
- * during ingestion for a given source. This is useful for inspecting how a file
162
- * was segmented, reviewing chunk content, or building custom retrieval logic on
163
- * top of the raw partitions.
164
- *
165
- * **Parameters (JSON body):**
166
- *
167
- * - **file_id** (str, optional — preferred): The unique identifier of the source
168
- * whose elements to retrieve.
169
- * - **file_name** (str, optional — deprecated): The display name of the source.
170
- * Use `file_id` when possible. At least one of `file_id` or `file_name` must be
171
- * provided.
172
- * - **page** (int, optional): The 1-based page number for pagination.
173
- * - **page_size** (int, optional): The number of elements per page. Both `page`
174
- * and `page_size` must be provided together to enable pagination.
175
- * - **filter** (object, optional): An optional filter object with:
176
- * - `type` filter by element type.
177
- * - `page_numbers` restrict to specific source page numbers.
178
- * - `elementsToRemove` list of element types to exclude.
179
- *
180
- * **Returns** a `PaginatedResponse[Document]` containing:
181
- *
182
- * - `items` list of `Document` objects (LangChain format) with `page_content`
183
- * and `metadata`.
184
- * - `total` — total number of matching elements.
185
- * - `page`, `page_size`, `total_pages` pagination metadata.
162
+ * Return the status and optional parsed elements for an async build identified by
163
+ * `build_id`.
164
+ *
165
+ * Use this endpoint to poll the result of an async ingestion or re-process
166
+ * request. The `build_id` is returned in the response of:
167
+ *
168
+ * - `POST /v2/sources/upload` (async file upload)
169
+ * - `POST /v2/sources/upload-url-source` (async URL ingestion)
170
+ * - `POST /v2/sources/upload-github-source` (async GitHub ingestion)
171
+ * - `POST /v2/sources/upload-youtube-source` (async YouTube ingestion)
172
+ * - `POST /v2/sources/process` (async re-process)
173
+ *
174
+ * **Path parameter:**
175
+ *
176
+ * - **build_id** (str, required): The build identifier returned when the job was
177
+ * scheduled.
178
+ *
179
+ * **Query parameters:**
180
+ *
181
+ * - **suppress_elements** (bool, default `false`): When `true`, elements are
182
+ * omitted from the response. When `false` (default), the response includes the
183
+ * parsed elements (chunks/partitions) for the build if it completed
184
+ * successfully. Same structure as `POST /sources/elements` (each element has
185
+ * `page_content` and `metadata`). If `page` and `page_size` are not passed, all
186
+ * elements are returned.
187
+ * - **suppress_img_base64** (bool, default `false`): When `true`, `img_base64` is
188
+ * omitted from each element (useful to reduce payload size when images are not
189
+ * needed).
190
+ * - **page** (int, optional): 1-based page number. Only used when
191
+ * `suppress_elements=false` and pagination is used (pass either `page` or
192
+ * `page_size` to enable pagination).
193
+ * - **page_size** (int, optional): Number of elements per page (max 100). Only
194
+ * used when `suppress_elements=false` and pagination is used.
195
+ *
196
+ * **Response fields:**
197
+ *
198
+ * - **build_id**: The requested build identifier.
199
+ * - **status**: SourceNodeStatus value when history exists (e.g. Processed,
200
+ * Processing, Processing failed). `not_found` when no history exists (build in
201
+ * progress or invalid id).
202
+ * - **success**: `true` only when `status == "Completed"`
203
+ * (SourceNodeStatus.COMPLETED).
204
+ * - **file_id**, **file_name**: Source identifiers; present when the build has
205
+ * been persisted (history exists).
206
+ * - **error**: Error message from the pipeline when the build failed.
207
+ * - **method**, **total_partitions**, **total_pages**: Build metadata when history
208
+ * exists.
209
+ * - **created_at**, **updated_at**: ISO8601 timestamps when history exists.
210
+ * - **document_annotation**: Document-level summary/annotation from the build
211
+ * history when available.
212
+ * - **message**: Human-readable message (e.g. when status is `not_found`).
213
+ * - **elements**: List of `{ page_content, metadata }` when
214
+ * `suppress_elements=false` and the build completed successfully.
215
+ * - **total_elements**, **page**, **page_size**, **total_pages_elements**:
216
+ * Pagination metadata for `elements` when `suppress_elements=false`.
186
217
  *
187
218
  * **Error responses:**
188
219
  *
189
- * - `400` — Invalid input (e.g. neither identifier provided).
190
- * - `404` — Source file not found.
191
220
  * - `500` — Unexpected internal error.
192
221
  *
193
222
  * @example
194
223
  * ```ts
195
- * const response = await client.sources.loadElements();
224
+ * const response = await client.sources.getBuildStatus(
225
+ * 'build_id',
226
+ * );
196
227
  * ```
197
228
  */
198
- loadElements(body: SourceLoadElementsParams, options?: RequestOptions): APIPromise<SourceLoadElementsResponse>;
229
+ getBuildStatus(buildID: string, query?: SourceGetBuildStatusParams | null | undefined, options?: RequestOptions): APIPromise<SourceGetBuildStatusResponse>;
199
230
  /**
200
- * Re-process (re-parse) an existing source that has already been uploaded.
201
- *
202
- * Use this endpoint to re-run the data-ingestion pipeline on a source that is
203
- * already present in the knowledge graph — for example, after changing the
204
- * partitioning strategy. The endpoint locates the source node, sets its status to
205
- * `PROCESSING`, applies the requested partition method, and executes the full
206
- * ingestion pipeline synchronously (partitioning, chunking, embedding, and graph
207
- * persistence).
231
+ * Retrieve the parsed elements (chunks/partitions) of a source in the same format
232
+ * as get_build_status.
208
233
  *
209
- * **Parameters (JSON body):**
210
- *
211
- * - **file_id** (str, optional — preferred): The unique identifier of the source
212
- * to re-process.
213
- * - **file_name** (str, optional — deprecated): The display name of the source.
214
- * Use `file_id` instead when possible. At least one of `file_id` or `file_name`
215
- * must be provided.
216
- * - **partition_method** (str, default `"basic"`): The partitioning strategy to
217
- * apply. One of: `basic` (Fast), `hi_res` (Balanced), `hi_res_ft` (Accurate),
218
- * `mai` (VLM), `graphorlm` (Agentic).
234
+ * Returns elements with explicit fields: element_id, element_type, text, markdown,
235
+ * html, img_base64 (optional), position, page_number, bounding_box, page_layout,
236
+ * etc.
219
237
  *
220
- * **Returns** a `PublicSourceResponse` with the updated source metadata.
238
+ * **Query parameters:**
221
239
  *
222
- * **Error responses:**
240
+ * - **file_id** (str, required): Unique identifier of the source.
241
+ * - **page** (int, optional): 1-based page number. Use with page_size to enable
242
+ * pagination.
243
+ * - **page_size** (int, optional): Number of elements per page (max 100).
244
+ * - **suppress_img_base64** (bool, default false): When true, img_base64 is
245
+ * omitted from each element.
246
+ * - **type** (str, optional): Filter by element type (e.g. NarrativeText, Title,
247
+ * Table).
248
+ * - **page_numbers** (list, optional): Restrict to specific page numbers (repeat
249
+ * param for multiple).
250
+ * - **elementsToRemove** (list, optional): Element types to exclude (repeat param
251
+ * for multiple).
223
252
  *
224
- * - `404` Source node not found for the given identifier.
225
- * - `500` Processing or unexpected internal error.
253
+ * **Returns** Paginated response with items as BuildStatusElement list (same shape
254
+ * as GET /builds/{build_id} elements).
226
255
  *
227
256
  * @example
228
257
  * ```ts
229
- * const publicSource = await client.sources.parse();
230
- * ```
231
- */
232
- parse(body: SourceParseParams, options?: RequestOptions): APIPromise<PublicSource>;
233
- /**
234
- * Retrieve relevant document chunks from the prebuilt RAG vector store.
235
- *
236
- * Performs a semantic similarity search over the project's prebuilt RAG store
237
- * using Google File Search with grounding. Returns the most relevant text chunks
238
- * along with their source metadata (file name, page number, relevance score). This
239
- * is a pure retrieval endpoint — it does **not** generate an answer; use
240
- * `/ask-sources` for Q&A.
241
- *
242
- * **Parameters (JSON body):**
243
- *
244
- * - **query** (str, required): The natural-language search query used to find
245
- * relevant chunks.
246
- * - **file_ids** (list[str], optional — preferred): Restrict retrieval to specific
247
- * source file IDs.
248
- * - **file_names** (list[str], optional — deprecated): Restrict retrieval to
249
- * specific source file names. Use `file_ids` when possible.
250
- *
251
- * **Returns** a `PublicRetrieveResponse` containing:
252
- *
253
- * - `query` — the original search query.
254
- * - `chunks` — a list of `PublicRetrieveChunk` objects, each with `text`,
255
- * `file_name`, `page_number`, `score`, and additional `metadata`.
256
- * - `total` — the total number of chunks returned.
257
- *
258
- * **Error responses:**
259
- *
260
- * - `500` — Unexpected internal error during retrieval.
261
- *
262
- * @example
263
- * ```ts
264
- * const response = await client.sources.retrieveChunks({
265
- * query: 'query',
258
+ * const response = await client.sources.getElements({
259
+ * file_id: 'file_id',
266
260
  * });
267
261
  * ```
268
262
  */
269
- retrieveChunks(body: SourceRetrieveChunksParams, options?: RequestOptions): APIPromise<SourceRetrieveChunksResponse>;
263
+ getElements(query: SourceGetElementsParams, options?: RequestOptions): APIPromise<SourceGetElementsResponse>;
270
264
  /**
271
- * Upload a local file and ingest it as a source into the project's knowledge
272
- * graph.
273
- *
274
- * This endpoint accepts a **`multipart/form-data`** request containing the file to
275
- * upload. It validates the file size (max 100 MB) and extension against the list
276
- * of allowed types, stores the file, and then runs the full data-ingestion
277
- * pipeline synchronously — including partitioning, chunking, embedding, and graph
278
- * persistence.
279
- *
280
- * **Usage via SDK (AI agent / MCP context):**
281
- *
282
- * The SDK executes code in a **remote sandboxed container** that does **not** have
283
- * access to the local filesystem. Because of this, `fs.createReadStream()` with a
284
- * local file path will **not work** — the file does not exist inside the
285
- * container.
286
- *
287
- * For **text-based files** (md, txt, csv, html, etc.), you can read the file
288
- * content with a local tool (e.g. IDE file-read) and create a `File` object in
289
- * memory:
290
- *
291
- * ```
292
- * const content = `...file contents read locally...`;
293
- * const file = new File([content], "my-document.md", { type: "text/markdown" });
294
- * const result = await client.sources.upload({ file });
295
- * ```
265
+ * Upload a local file and schedule ingestion in the background.
296
266
  *
297
- * For **binary files** (pdf, docx, images, video, audio, etc.), the in-memory
298
- * approach is impractical. Instead, use **`curl`** or **`subprocess`** to call the
299
- * upload endpoint directly from the local machine, where the file is accessible:
300
- *
301
- * ```
302
- * import { execSync } from "child_process";
303
- *
304
- * const result = execSync(`
305
- * curl -s -X POST "{base_url}/source/upload" \
306
- * -H "Authorization: Bearer {access_key}" \
307
- * -F "file=@/local/path/to/document.pdf" \
308
- * -F "partition_method=graphorlm"
309
- * `).toString();
310
- * ```
311
- *
312
- * Or with Python `subprocess`:
313
- *
314
- * ```
315
- * import subprocess, json
316
- *
317
- * result = subprocess.run([
318
- * "curl", "-s", "-X", "POST", "{base_url}/source/upload",
319
- * "-H", "Authorization: Bearer {access_key}",
320
- * "-F", "file=@/local/path/to/document.pdf",
321
- * "-F", "partition_method=graphorlm",
322
- * ], capture_output=True, text=True)
323
- * response = json.loads(result.stdout)
324
- * ```
325
- *
326
- * **Important:** Do NOT use `fs.createReadStream("/local/path")` inside the SDK
327
- * code — it will fail because the execution environment cannot access local paths.
328
- * Always prefer `curl`/`requests` executed locally for binary uploads.
329
- *
330
- * **Usage via curl:**
331
- *
332
- * ```
333
- * curl -X POST "{base_url}/source/upload" \
334
- * -H "Authorization: Bearer {access_key}" \
335
- * -F "file=@/path/to/document.pdf" \
336
- * -F "partition_method=graphorlm"
337
- * ```
338
- *
339
- * **Usage via Python `requests`:**
340
- *
341
- * ```
342
- * import requests
343
- *
344
- * with open("document.pdf", "rb") as f:
345
- * response = requests.post(
346
- * "{base_url}/source/upload",
347
- * headers={"Authorization": "Bearer {access_key}"},
348
- * files={"file": ("document.pdf", f, "application/pdf")},
349
- * data={"partition_method": "graphorlm"}, # optional
350
- * )
351
- * ```
267
+ * Accepts **`multipart/form-data`** with the file. Validates size (max 100 MB) and
268
+ * extension, stores the file, then schedules the full data-ingestion pipeline in
269
+ * the background. Returns immediately with a `build_id` to poll for status.
352
270
  *
353
271
  * **Parameters:**
354
272
  *
355
- * - **file** (`multipart/form-data`): The file to upload. Must include a
356
- * `Content-Length` header and have one of the supported extensions: pdf, doc,
357
- * docx, odt, ppt, pptx, csv, tsv, xls, xlsx, txt, text, md, html, htm, png, jpg,
358
- * jpeg, tiff, bmp, heic, mp4, mov, avi, mkv, webm, mp3, wav, m4a, ogg, flac.
359
- * - **partition_method** (`form`, optional): The partitioning strategy to apply.
360
- * One of: `basic` (Fast), `hi_res` (Balanced), `hi_res_ft` (Accurate), `mai`
361
- * (VLM), `graphorlm` (Agentic). When omitted, the system default is used.
362
- *
363
- * **Returns** a `PublicSourceResponse` with the resulting source metadata (file
364
- * ID, name, size, type, source origin, partition method, and processing status).
365
- *
366
- * **Error responses:**
273
+ * - **file** (`multipart/form-data`): The file to upload. Must include
274
+ * `Content-Length` and have a supported extension (pdf, doc, docx, csv, txt, md,
275
+ * etc.).
276
+ * - **method** (`form`, optional): Partitioning strategy. One of: `fast`,
277
+ * `balanced`, `accurate`, `vlm`, `agentic`. Default when omitted.
367
278
  *
368
- * - `400` Unsupported file type or missing file name.
369
- * - `411` — Missing `Content-Length` header (file size cannot be determined).
370
- * - `413` — File exceeds the 100 MB size limit.
371
- * - `403` — Permission denied.
372
- * - `404` — File not found during processing.
373
- * - `500` — Unexpected internal error.
279
+ * **Returns** `AsyncIngestResponse` with `build_id`. Use it to check processing
280
+ * status.
374
281
  *
375
282
  * @example
376
283
  * ```ts
377
- * const publicSource = await client.sources.upload({
284
+ * const response = await client.sources.ingestFile({
378
285
  * file: fs.createReadStream('path/to/file'),
379
286
  * });
380
287
  * ```
381
288
  */
382
- upload(body: SourceUploadParams, options?: RequestOptions): APIPromise<PublicSource>;
289
+ ingestFile(body: SourceIngestFileParams, options?: RequestOptions): APIPromise<SourceIngestFileResponse>;
383
290
  /**
384
291
  * Ingest a GitHub repository as a source into the project's knowledge graph.
385
292
  *
386
- * The endpoint clones or fetches the repository at the given URL, extracts its
387
- * text-based files, partitions them using the system default method, generates
388
- * embeddings, and persists everything in the knowledge graph synchronously.
293
+ * Schedules the ingestion in the background and returns immediately with a
294
+ * `build_id`. Use the returned `build_id` to poll for processing status.
389
295
  *
390
296
  * **Parameters (JSON body):**
391
297
  *
392
298
  * - **url** (str, required): The GitHub repository URL to ingest (e.g.
393
299
  * `https://github.com/owner/repo`).
394
300
  *
395
- * **Returns** a `PublicSourceResponse` with the resulting source metadata (file
396
- * ID, name, size, type, source origin, partition method, and processing status).
397
- *
398
- * **Error responses:**
399
- *
400
- * - `500` — Unexpected internal error during GitHub source processing.
301
+ * **Returns** `AsyncIngestResponse` with `build_id`.
401
302
  *
402
303
  * @example
403
304
  * ```ts
404
- * const publicSource = await client.sources.uploadGitHub({
305
+ * const response = await client.sources.ingestGitHub({
405
306
  * url: 'url',
406
307
  * });
407
308
  * ```
408
309
  */
409
- uploadGitHub(body: SourceUploadGitHubParams, options?: RequestOptions): APIPromise<PublicSource>;
310
+ ingestGitHub(body: SourceIngestGitHubParams, options?: RequestOptions): APIPromise<SourceIngestGitHubResponse>;
410
311
  /**
411
312
  * Ingest a web page (or a set of crawled pages) as a source into the project's
412
313
  * knowledge graph.
413
314
  *
414
- * The endpoint fetches the content at the given URL, optionally crawls linked
415
- * pages (when `crawlUrls` is `true`), partitions the resulting HTML/text,
416
- * generates embeddings, and persists everything in the knowledge graph
417
- * synchronously.
315
+ * Unlike the synchronous version, this endpoint schedules the ingestion in the
316
+ * background and returns immediately with a `processing` status. The source will
317
+ * be fully available once background processing completes.
418
318
  *
419
319
  * If the URL points directly to a downloadable file (detected via URL path
420
- * extension or HTTP Content-Type), the file is downloaded, uploaded to storage,
421
- * and processed through the local file ingestion pipeline instead of the web-page
422
- * pipeline.
320
+ * extension or HTTP Content-Type), the file is first downloaded and uploaded to
321
+ * storage synchronously, then the partition/embedding pipeline runs in the
322
+ * background.
423
323
  *
424
324
  * **Parameters (JSON body):**
425
325
  *
@@ -427,12 +327,13 @@ export declare class Sources extends APIResource {
427
327
  * - **crawlUrls** (bool, optional, default `false`): When `true`, the system will
428
328
  * also follow and ingest links found on the page. Ignored when the URL resolves
429
329
  * to a file.
430
- * - **partition_method** (str, optional): The partitioning strategy to use. One
431
- * of: `basic` (Fast), `hi_res` (Balanced), `hi_res_ft` (Accurate), `mai` (VLM),
432
- * `graphorlm` (Agentic). When omitted the system default is applied.
330
+ * - **method** (str, optional): The partitioning strategy to use. One of: `fast`,
331
+ * `balanced`, `accurate`, `vlm`, `agentic`. When omitted the system default is
332
+ * applied.
433
333
  *
434
- * **Returns** a `PublicSourceResponse` with the resulting source metadata (file
435
- * ID, name, size, type, source origin, partition method, and processing status).
334
+ * **Returns** a `PublicSourceResponse` with `status: "processing"` immediately.
335
+ * Poll the source status endpoint using the returned `file_id` to track
336
+ * completion.
436
337
  *
437
338
  * **Error responses:**
438
339
  *
@@ -441,52 +342,174 @@ export declare class Sources extends APIResource {
441
342
  *
442
343
  * @example
443
344
  * ```ts
444
- * const publicSource = await client.sources.uploadURL({
345
+ * const response = await client.sources.ingestURL({
445
346
  * url: 'url',
446
347
  * });
447
348
  * ```
448
349
  */
449
- uploadURL(body: SourceUploadURLParams, options?: RequestOptions): APIPromise<PublicSource>;
350
+ ingestURL(body: SourceIngestURLParams, options?: RequestOptions): APIPromise<SourceIngestURLResponse>;
450
351
  /**
451
352
  * Ingest a YouTube video as a source into the project's knowledge graph.
452
353
  *
453
- * The endpoint downloads the transcript/captions of the given YouTube video,
454
- * partitions the text using the system default method, generates embeddings, and
455
- * persists everything in the knowledge graph synchronously.
354
+ * Schedules the ingestion in the background and returns immediately with a
355
+ * `build_id`. The endpoint will download the transcript/captions and process them
356
+ * in the background. Use the returned `build_id` to poll for processing status.
456
357
  *
457
358
  * **Parameters (JSON body):**
458
359
  *
459
360
  * - **url** (str, required): The YouTube video URL to ingest (e.g.
460
361
  * `https://www.youtube.com/watch?v=...`).
461
362
  *
462
- * **Returns** a `PublicSourceResponse` with the resulting source metadata (file
463
- * ID, name, size, type, source origin, partition method, and processing status).
363
+ * **Returns** `AsyncIngestResponse` with `build_id`.
364
+ *
365
+ * @example
366
+ * ```ts
367
+ * const response = await client.sources.ingestYoutube({
368
+ * url: 'url',
369
+ * });
370
+ * ```
371
+ */
372
+ ingestYoutube(body: SourceIngestYoutubeParams, options?: RequestOptions): APIPromise<SourceIngestYoutubeResponse>;
373
+ /**
374
+ * Re-process (re-parse) an existing source in the background.
375
+ *
376
+ * Schedules the data-ingestion pipeline (partitioning, chunking, embedding) for an
377
+ * existing source and returns immediately with a `build_id`. Use it to poll for
378
+ * status.
379
+ *
380
+ * **Parameters (JSON body):**
381
+ *
382
+ * - **file_id** (str, required): Unique identifier of the source to re-process.
383
+ * - **method** (str, default `"fast"`): Partitioning strategy. One of: `fast`,
384
+ * `balanced`, `accurate`, `vlm`, `agentic`.
385
+ *
386
+ * **Returns** `AsyncIngestResponse` with `build_id`.
387
+ *
388
+ * @example
389
+ * ```ts
390
+ * const response = await client.sources.reprocess({
391
+ * file_id: 'file_id',
392
+ * });
393
+ * ```
394
+ */
395
+ reprocess(body: SourceReprocessParams, options?: RequestOptions): APIPromise<SourceReprocessResponse>;
396
+ /**
397
+ * Retrieve relevant document chunks from the prebuilt RAG vector store.
398
+ *
399
+ * Performs a semantic similarity search over the project's prebuilt RAG store
400
+ * using Google File Search with grounding. Returns the most relevant text chunks
401
+ * along with their source metadata (file name, page number, relevance score). This
402
+ * is a pure retrieval endpoint — it does **not** generate an answer; use
403
+ * `/ask-sources` for Q&A.
404
+ *
405
+ * **Parameters (JSON body):**
406
+ *
407
+ * - **query** (str, required): The natural-language search query used to find
408
+ * relevant chunks.
409
+ * - **file_ids** (list[str], optional — preferred): Restrict retrieval to specific
410
+ * source file IDs.
411
+ * - **file_names** (list[str], optional — deprecated): Restrict retrieval to
412
+ * specific source file names. Use `file_ids` when possible.
413
+ *
414
+ * **Returns** a `PublicRetrieveResponse` containing:
415
+ *
416
+ * - `query` — the original search query.
417
+ * - `chunks` — a list of `PublicRetrieveChunk` objects, each with `text`,
418
+ * `file_name`, `page_number`, `score`, and additional `metadata`.
419
+ * - `total` — the total number of chunks returned.
464
420
  *
465
421
  * **Error responses:**
466
422
  *
467
- * - `500` — Unexpected internal error during YouTube source processing.
423
+ * - `500` — Unexpected internal error during retrieval.
468
424
  *
469
425
  * @example
470
426
  * ```ts
471
- * const publicSource = await client.sources.uploadYoutube({
472
- * url: 'url',
427
+ * const response = await client.sources.retrieveChunks({
428
+ * query: 'query',
473
429
  * });
474
430
  * ```
475
431
  */
476
- uploadYoutube(body: SourceUploadYoutubeParams, options?: RequestOptions): APIPromise<PublicSource>;
432
+ retrieveChunks(body: SourceRetrieveChunksParams, options?: RequestOptions): APIPromise<SourceRetrieveChunksResponse>;
477
433
  }
478
434
  /**
479
- * Partition methods available for public API endpoints.
435
+ * A single parsed element (chunk/partition) from a source, with explicit fields.
436
+ */
437
+ export interface Element {
438
+ /**
439
+ * Bounding box (e.g. left, top, width, height) when available.
440
+ */
441
+ bounding_box?: {
442
+ [key: string]: unknown;
443
+ } | null;
444
+ /**
445
+ * Unique identifier for the element.
446
+ */
447
+ element_id?: string | null;
448
+ /**
449
+ * Type of the element (Title, NarrativeText, Image, Table, etc.).
450
+ */
451
+ element_type?: 'Title' | 'NarrativeText' | 'TextBlock' | 'ListItem' | 'Table' | 'TableRow' | 'Image' | 'Footer' | 'Formula' | 'CompositeElement' | 'FigureCaption' | 'PageBreak' | 'Address' | 'EmailAddress' | 'PageNumber' | 'CodeSnippet' | 'Header' | 'FormKeysValues' | 'Link' | 'UncategorizedText' | 'Abstract' | 'AsideText' | 'Reference' | 'ReferenceContent' | 'Chart' | 'Seal' | 'FormulaNumber' | null;
452
+ /**
453
+ * HTML representation of the content, when available.
454
+ */
455
+ html?: string | null;
456
+ /**
457
+ * Base64-encoded image data, when the element is an image.
458
+ */
459
+ img_base64?: string | null;
460
+ /**
461
+ * Markdown representation of the content, when available.
462
+ */
463
+ markdown?: string | null;
464
+ /**
465
+ * Additional metadata.
466
+ */
467
+ metadata?: {
468
+ [key: string]: unknown;
469
+ };
470
+ /**
471
+ * Annotation/summary for the page containing this element.
472
+ */
473
+ page_annotation?: string | null;
474
+ /**
475
+ * Keywords extracted for the page.
476
+ */
477
+ page_keywords?: Array<string> | null;
478
+ /**
479
+ * Page dimensions (width, height) when available.
480
+ */
481
+ page_layout?: {
482
+ [key: string]: unknown;
483
+ } | null;
484
+ /**
485
+ * Page number (1-based) where the element appears.
486
+ */
487
+ page_number?: number | null;
488
+ /**
489
+ * Topics extracted for the page.
490
+ */
491
+ page_topics?: Array<string> | null;
492
+ /**
493
+ * Order/position of the element within the document.
494
+ */
495
+ position?: number | null;
496
+ /**
497
+ * Plain text content of the element.
498
+ */
499
+ text?: string;
500
+ }
501
+ /**
502
+ * Public-facing partition method names for API v2.
480
503
  *
481
- * Each value also has a human-readable alias:
504
+ * Maps to internal PartitionMethod as:
482
505
  *
483
- * - `basic`**Fast**
484
- * - `hi_res`**Balanced**
485
- * - `hi_res_ft`**Accurate**
486
- * - `mai`**VLM**
487
- * - `graphorlm`**Agentic**
506
+ * - fastbasic
507
+ * - balancedhi_res
508
+ * - accuratehi_res_ft
509
+ * - vlmmai
510
+ * - agenticgraphorlm
488
511
  */
489
- export type PublicPartitionMethod = 'basic' | 'hi_res' | 'hi_res_ft' | 'mai' | 'graphorlm';
512
+ export type Method = 'fast' | 'balanced' | 'accurate' | 'vlm' | 'agentic';
490
513
  export interface PublicSource {
491
514
  /**
492
515
  * Display name of the source file
@@ -526,10 +549,10 @@ export interface PublicSource {
526
549
  */
527
550
  file_id?: string | null;
528
551
  /**
529
- * Partitioning strategy used during ingestion. Available methods: basic (Fast),
530
- * hi_res (Balanced), hi_res_ft (Accurate), mai (VLM), graphorlm (Agentic)
552
+ * Partitioning strategy used during ingestion. V1 API: basic, hi_res, hi_res_ft,
553
+ * mai, graphorlm. V2 API: fast, balanced, accurate, vlm, agentic.
531
554
  */
532
- partition_method?: 'basic' | 'hi_res' | 'hi_res_ft' | 'mai' | 'graphorlm' | 'ocr' | 'advanced' | 'yolox' | null;
555
+ method?: string | null;
533
556
  }
534
557
  export type SourceListResponse = Array<PublicSource>;
535
558
  export interface SourceDeleteResponse {
@@ -602,11 +625,109 @@ export interface SourceExtractResponse {
602
625
  [key: string]: unknown;
603
626
  } | null;
604
627
  }
605
- export interface SourceLoadElementsResponse {
628
+ /**
629
+ * Status and optional result for an async build (ingestion/re-process) identified
630
+ * by build_id.
631
+ *
632
+ * Returned by GET /v2/sources/builds/{build_id}. When the build has completed
633
+ * successfully, includes file_id, file_name, and optionally paginated elements
634
+ * (parsed chunks).
635
+ */
636
+ export interface SourceGetBuildStatusResponse {
637
+ /**
638
+ * The build identifier returned when the ingestion was scheduled.
639
+ */
640
+ build_id: string;
641
+ /**
642
+ * Current build status. When a build history exists, this is a SourceNodeStatus
643
+ * value (e.g. Completed, Processing, Processing failed). When no history exists
644
+ * yet: not_found.
645
+ */
646
+ status: string;
647
+ /**
648
+ * True if the build completed successfully (status is Completed).
649
+ */
650
+ success: boolean;
651
+ /**
652
+ * ISO8601 timestamp when the build (history) was created. Present when history
653
+ * exists.
654
+ */
655
+ created_at?: string | null;
656
+ /**
657
+ * Document-level summary/annotation from the build history. Present when history
658
+ * exists.
659
+ */
660
+ document_annotation?: string | null;
661
+ /**
662
+ * Paginated list of parsed elements (chunks) for this build. Only present when
663
+ * suppress_elements=false and the build has completed (status Completed).
664
+ */
665
+ elements?: Array<Element> | null;
666
+ /**
667
+ * Error message from the pipeline, if the build failed (e.g. processing_failed).
668
+ */
669
+ error?: string | null;
670
+ /**
671
+ * Source file identifier. Present when the build has been persisted (history
672
+ * exists).
673
+ */
674
+ file_id?: string | null;
675
+ /**
676
+ * Display name of the source file. Present when the build has been persisted.
677
+ */
678
+ file_name?: string | null;
679
+ /**
680
+ * Human-readable message (e.g. when status is not_found or processing).
681
+ */
682
+ message?: string | null;
683
+ /**
684
+ * Public-facing partition method names for API v2.
685
+ *
686
+ * Maps to internal PartitionMethod as:
687
+ *
688
+ * - fast → basic
689
+ * - balanced → hi_res
690
+ * - accurate → hi_res_ft
691
+ * - vlm → mai
692
+ * - agentic → graphorlm
693
+ */
694
+ method?: Method | null;
695
+ /**
696
+ * Current page of elements (1-based). Null when no pagination was requested (all
697
+ * elements returned).
698
+ */
699
+ page?: number | null;
700
+ /**
701
+ * Number of elements per page. Null when no pagination was requested.
702
+ */
703
+ page_size?: number | null;
704
+ /**
705
+ * Total number of elements for this build. Present when suppress_elements=false.
706
+ */
707
+ total_elements?: number | null;
708
+ /**
709
+ * Total pages in the source for this build. Present when history exists.
710
+ */
711
+ total_pages?: number | null;
712
+ /**
713
+ * Total number of pages of elements. Null when no pagination was requested.
714
+ */
715
+ total_pages_elements?: number | null;
716
+ /**
717
+ * Total number of partitions created in this build. Present when history exists.
718
+ */
719
+ total_partitions?: number | null;
720
+ /**
721
+ * ISO8601 timestamp when the build (history) was last updated. Present when
722
+ * history exists.
723
+ */
724
+ updated_at?: string | null;
725
+ }
726
+ export interface SourceGetElementsResponse {
606
727
  /**
607
728
  * List of items in the current page
608
729
  */
609
- items: Array<SourceLoadElementsResponse.Item>;
730
+ items: Array<Element>;
610
731
  /**
611
732
  * Total number of items
612
733
  */
@@ -624,29 +745,75 @@ export interface SourceLoadElementsResponse {
624
745
  */
625
746
  total_pages?: number | null;
626
747
  }
627
- export declare namespace SourceLoadElementsResponse {
748
+ export interface SourceIngestFileResponse {
628
749
  /**
629
- * Class for storing a piece of text and associated metadata.
630
- *
631
- * Example:
632
- *
633
- * .. code-block:: python
634
- *
635
- * from langchain_core.documents import Document
636
- *
637
- * document = Document(
638
- * page_content="Hello, world!",
639
- * metadata={"source": "https://example.com"}
640
- * )
750
+ * The ID of the build. This ID can be used to check the status of the request.
641
751
  */
642
- interface Item {
643
- page_content: string;
644
- id?: string | null;
645
- metadata?: {
646
- [key: string]: unknown;
647
- };
648
- type?: 'Document';
649
- }
752
+ build_id: string;
753
+ /**
754
+ * If the request was not successful, this will contain an error message.
755
+ */
756
+ error?: string | null;
757
+ /**
758
+ * Whether the request was successfully scheduled.
759
+ */
760
+ success?: boolean;
761
+ }
762
+ export interface SourceIngestGitHubResponse {
763
+ /**
764
+ * The ID of the build. This ID can be used to check the status of the request.
765
+ */
766
+ build_id: string;
767
+ /**
768
+ * If the request was not successful, this will contain an error message.
769
+ */
770
+ error?: string | null;
771
+ /**
772
+ * Whether the request was successfully scheduled.
773
+ */
774
+ success?: boolean;
775
+ }
776
+ export interface SourceIngestURLResponse {
777
+ /**
778
+ * The ID of the build. This ID can be used to check the status of the request.
779
+ */
780
+ build_id: string;
781
+ /**
782
+ * If the request was not successful, this will contain an error message.
783
+ */
784
+ error?: string | null;
785
+ /**
786
+ * Whether the request was successfully scheduled.
787
+ */
788
+ success?: boolean;
789
+ }
790
+ export interface SourceIngestYoutubeResponse {
791
+ /**
792
+ * The ID of the build. This ID can be used to check the status of the request.
793
+ */
794
+ build_id: string;
795
+ /**
796
+ * If the request was not successful, this will contain an error message.
797
+ */
798
+ error?: string | null;
799
+ /**
800
+ * Whether the request was successfully scheduled.
801
+ */
802
+ success?: boolean;
803
+ }
804
+ export interface SourceReprocessResponse {
805
+ /**
806
+ * The ID of the build. This ID can be used to check the status of the request.
807
+ */
808
+ build_id: string;
809
+ /**
810
+ * If the request was not successful, this will contain an error message.
811
+ */
812
+ error?: string | null;
813
+ /**
814
+ * Whether the request was successfully scheduled.
815
+ */
816
+ success?: boolean;
650
817
  }
651
818
  export interface SourceRetrieveChunksResponse {
652
819
  /**
@@ -692,6 +859,13 @@ export declare namespace SourceRetrieveChunksResponse {
692
859
  score?: number | null;
693
860
  }
694
861
  }
862
+ export interface SourceListParams {
863
+ /**
864
+ * Optional list of file_id to filter by (only these sources are returned). Repeat
865
+ * the param for multiple IDs.
866
+ */
867
+ file_ids?: Array<string> | null;
868
+ }
695
869
  export interface SourceDeleteParams {
696
870
  /**
697
871
  * Unique identifier for the source (preferred)
@@ -764,99 +938,64 @@ export interface SourceExtractParams {
764
938
  */
765
939
  thinking_level?: 'fast' | 'balanced' | 'accurate' | null;
766
940
  }
767
- export interface SourceLoadElementsParams {
768
- /**
769
- * Unique identifier for the source (preferred)
770
- */
771
- file_id?: string | null;
772
- /**
773
- * The name of the file (deprecated, use file_id)
774
- */
775
- file_name?: string | null;
776
- /**
777
- * Optional filter to narrow down the returned elements
778
- */
779
- filter?: SourceLoadElementsParams.Filter | null;
780
- /**
781
- * Current page number
782
- */
941
+ export interface SourceGetBuildStatusParams {
783
942
  page?: number | null;
784
- /**
785
- * Number of items per page
786
- */
787
943
  page_size?: number | null;
944
+ suppress_elements?: boolean;
945
+ suppress_img_base64?: boolean;
788
946
  }
789
- export declare namespace SourceLoadElementsParams {
947
+ export interface SourceGetElementsParams {
790
948
  /**
791
- * Optional filter to narrow down the returned elements
949
+ * Unique identifier of the source
792
950
  */
793
- interface Filter {
794
- /**
795
- * List of element types to exclude from the results
796
- */
797
- elementsToRemove?: Array<string> | null;
798
- /**
799
- * Restrict results to specific page numbers from the original document
800
- */
801
- page_numbers?: Array<number> | null;
802
- /**
803
- * Filter by element type (e.g. NarrativeText, Title, Table)
804
- */
805
- type?: string | null;
806
- }
807
- }
808
- export interface SourceParseParams {
951
+ file_id: string;
809
952
  /**
810
- * Unique identifier for the source (preferred)
953
+ * Element types to exclude
811
954
  */
812
- file_id?: string | null;
955
+ elementsToRemove?: Array<string> | null;
813
956
  /**
814
- * The name of the file (deprecated, use file_id)
957
+ * 1-based page number (use with page_size)
815
958
  */
816
- file_name?: string | null;
959
+ page?: number | null;
817
960
  /**
818
- * The partitioning strategy to apply. Available methods: basic (Fast), hi_res
819
- * (Balanced), hi_res_ft (Accurate), mai (VLM), graphorlm (Agentic)
961
+ * Restrict to specific page numbers
820
962
  */
821
- partition_method?: PublicPartitionMethod;
822
- }
823
- export interface SourceRetrieveChunksParams {
963
+ page_numbers?: Array<number> | null;
824
964
  /**
825
- * The natural-language search query to find relevant chunks
965
+ * Number of elements per page
826
966
  */
827
- query: string;
967
+ page_size?: number | null;
828
968
  /**
829
- * Optional list of file IDs to restrict retrieval scope (preferred)
969
+ * When true, img_base64 is omitted from each element
830
970
  */
831
- file_ids?: Array<string> | null;
971
+ suppress_img_base64?: boolean;
832
972
  /**
833
- * Optional list of file names to restrict retrieval scope (deprecated, use
834
- * file_ids)
973
+ * Filter by element type (e.g. NarrativeText, Title)
835
974
  */
836
- file_names?: Array<string> | null;
975
+ type?: string | null;
837
976
  }
838
- export interface SourceUploadParams {
977
+ export interface SourceIngestFileParams {
839
978
  file: Uploadable;
840
979
  /**
841
- * Partition methods available for public API endpoints.
980
+ * Public-facing partition method names for API v2.
842
981
  *
843
- * Each value also has a human-readable alias:
982
+ * Maps to internal PartitionMethod as:
844
983
  *
845
- * - `basic`**Fast**
846
- * - `hi_res`**Balanced**
847
- * - `hi_res_ft`**Accurate**
848
- * - `mai`**VLM**
849
- * - `graphorlm`**Agentic**
984
+ * - fastbasic
985
+ * - balancedhi_res
986
+ * - accuratehi_res_ft
987
+ * - vlmmai
988
+ * - agenticgraphorlm
850
989
  */
851
- partition_method?: PublicPartitionMethod | null;
990
+ method?: Method | null;
852
991
  }
853
- export interface SourceUploadGitHubParams {
992
+ export interface SourceIngestGitHubParams {
854
993
  /**
855
994
  * The GitHub repository URL to ingest (e.g. https://github.com/owner/repo)
856
995
  */
857
996
  url: string;
858
997
  }
859
- export interface SourceUploadURLParams {
998
+ export interface SourceIngestURLParams {
860
999
  /**
861
1000
  * The web page URL to ingest
862
1001
  */
@@ -866,26 +1005,51 @@ export interface SourceUploadURLParams {
866
1005
  */
867
1006
  crawlUrls?: boolean;
868
1007
  /**
869
- * Partition methods available for public API endpoints.
1008
+ * Public-facing partition method names for API v2.
870
1009
  *
871
- * Each value also has a human-readable alias:
1010
+ * Maps to internal PartitionMethod as:
872
1011
  *
873
- * - `basic`**Fast**
874
- * - `hi_res`**Balanced**
875
- * - `hi_res_ft`**Accurate**
876
- * - `mai`**VLM**
877
- * - `graphorlm`**Agentic**
1012
+ * - fastbasic
1013
+ * - balancedhi_res
1014
+ * - accuratehi_res_ft
1015
+ * - vlmmai
1016
+ * - agenticgraphorlm
878
1017
  */
879
- partition_method?: PublicPartitionMethod | null;
1018
+ method?: Method | null;
880
1019
  }
881
- export interface SourceUploadYoutubeParams {
1020
+ export interface SourceIngestYoutubeParams {
882
1021
  /**
883
1022
  * The YouTube video URL to ingest (e.g.
884
1023
  * https://www.youtube.com/watch?v=dQw4w9WgXcQ)
885
1024
  */
886
1025
  url: string;
887
1026
  }
1027
+ export interface SourceReprocessParams {
1028
+ /**
1029
+ * Unique identifier of the source to re-process.
1030
+ */
1031
+ file_id: string;
1032
+ /**
1033
+ * Partitioning strategy. One of: fast, balanced, accurate, vlm, agentic.
1034
+ */
1035
+ method?: Method;
1036
+ }
1037
+ export interface SourceRetrieveChunksParams {
1038
+ /**
1039
+ * The natural-language search query to find relevant chunks
1040
+ */
1041
+ query: string;
1042
+ /**
1043
+ * Optional list of file IDs to restrict retrieval scope (preferred)
1044
+ */
1045
+ file_ids?: Array<string> | null;
1046
+ /**
1047
+ * Optional list of file names to restrict retrieval scope (deprecated, use
1048
+ * file_ids)
1049
+ */
1050
+ file_names?: Array<string> | null;
1051
+ }
888
1052
  export declare namespace Sources {
889
- export { type PublicPartitionMethod as PublicPartitionMethod, type PublicSource as PublicSource, type SourceListResponse as SourceListResponse, type SourceDeleteResponse as SourceDeleteResponse, type SourceAskResponse as SourceAskResponse, type SourceExtractResponse as SourceExtractResponse, type SourceLoadElementsResponse as SourceLoadElementsResponse, type SourceRetrieveChunksResponse as SourceRetrieveChunksResponse, type SourceDeleteParams as SourceDeleteParams, type SourceAskParams as SourceAskParams, type SourceExtractParams as SourceExtractParams, type SourceLoadElementsParams as SourceLoadElementsParams, type SourceParseParams as SourceParseParams, type SourceRetrieveChunksParams as SourceRetrieveChunksParams, type SourceUploadParams as SourceUploadParams, type SourceUploadGitHubParams as SourceUploadGitHubParams, type SourceUploadURLParams as SourceUploadURLParams, type SourceUploadYoutubeParams as SourceUploadYoutubeParams, };
1053
+ export { type Element as Element, type Method as Method, type PublicSource as PublicSource, type SourceListResponse as SourceListResponse, type SourceDeleteResponse as SourceDeleteResponse, type SourceAskResponse as SourceAskResponse, type SourceExtractResponse as SourceExtractResponse, type SourceGetBuildStatusResponse as SourceGetBuildStatusResponse, type SourceGetElementsResponse as SourceGetElementsResponse, type SourceIngestFileResponse as SourceIngestFileResponse, type SourceIngestGitHubResponse as SourceIngestGitHubResponse, type SourceIngestURLResponse as SourceIngestURLResponse, type SourceIngestYoutubeResponse as SourceIngestYoutubeResponse, type SourceReprocessResponse as SourceReprocessResponse, type SourceRetrieveChunksResponse as SourceRetrieveChunksResponse, type SourceListParams as SourceListParams, type SourceDeleteParams as SourceDeleteParams, type SourceAskParams as SourceAskParams, type SourceExtractParams as SourceExtractParams, type SourceGetBuildStatusParams as SourceGetBuildStatusParams, type SourceGetElementsParams as SourceGetElementsParams, type SourceIngestFileParams as SourceIngestFileParams, type SourceIngestGitHubParams as SourceIngestGitHubParams, type SourceIngestURLParams as SourceIngestURLParams, type SourceIngestYoutubeParams as SourceIngestYoutubeParams, type SourceReprocessParams as SourceReprocessParams, type SourceRetrieveChunksParams as SourceRetrieveChunksParams, };
890
1054
  }
891
1055
  //# sourceMappingURL=sources.d.mts.map