@llamaindex/llama-cloud 2.8.0 → 2.9.1

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 (292) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/client.d.mts +11 -8
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +11 -8
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/batches.d.mts +24 -25
  12. package/resources/batches.d.mts.map +1 -1
  13. package/resources/batches.d.ts +24 -25
  14. package/resources/batches.d.ts.map +1 -1
  15. package/resources/batches.js +1 -2
  16. package/resources/batches.js.map +1 -1
  17. package/resources/batches.mjs +1 -2
  18. package/resources/batches.mjs.map +1 -1
  19. package/resources/beta/agent-data.d.mts +94 -94
  20. package/resources/beta/agent-data.d.mts.map +1 -1
  21. package/resources/beta/agent-data.d.ts +94 -94
  22. package/resources/beta/agent-data.d.ts.map +1 -1
  23. package/resources/beta/agent-data.js +41 -41
  24. package/resources/beta/agent-data.js.map +1 -1
  25. package/resources/beta/agent-data.mjs +41 -41
  26. package/resources/beta/agent-data.mjs.map +1 -1
  27. package/resources/beta/batch/batch.d.mts +29 -29
  28. package/resources/beta/batch/batch.d.mts.map +1 -1
  29. package/resources/beta/batch/batch.d.ts +29 -29
  30. package/resources/beta/batch/batch.d.ts.map +1 -1
  31. package/resources/beta/batch/batch.js +16 -16
  32. package/resources/beta/batch/batch.js.map +1 -1
  33. package/resources/beta/batch/batch.mjs +16 -16
  34. package/resources/beta/batch/batch.mjs.map +1 -1
  35. package/resources/beta/batch/index.d.mts +1 -1
  36. package/resources/beta/batch/index.d.mts.map +1 -1
  37. package/resources/beta/batch/index.d.ts +1 -1
  38. package/resources/beta/batch/index.d.ts.map +1 -1
  39. package/resources/beta/batch/job-items.d.mts +7 -7
  40. package/resources/beta/batch/job-items.d.mts.map +1 -1
  41. package/resources/beta/batch/job-items.d.ts +7 -7
  42. package/resources/beta/batch/job-items.d.ts.map +1 -1
  43. package/resources/beta/beta.d.mts +6 -6
  44. package/resources/beta/beta.d.mts.map +1 -1
  45. package/resources/beta/beta.d.ts +6 -6
  46. package/resources/beta/beta.d.ts.map +1 -1
  47. package/resources/beta/chat.d.mts +39 -39
  48. package/resources/beta/chat.d.mts.map +1 -1
  49. package/resources/beta/chat.d.ts +39 -39
  50. package/resources/beta/chat.d.ts.map +1 -1
  51. package/resources/beta/chat.js +14 -14
  52. package/resources/beta/chat.js.map +1 -1
  53. package/resources/beta/chat.mjs +14 -14
  54. package/resources/beta/chat.mjs.map +1 -1
  55. package/resources/beta/directories/directories.d.mts +48 -35
  56. package/resources/beta/directories/directories.d.mts.map +1 -1
  57. package/resources/beta/directories/directories.d.ts +48 -35
  58. package/resources/beta/directories/directories.d.ts.map +1 -1
  59. package/resources/beta/directories/directories.js +30 -30
  60. package/resources/beta/directories/directories.js.map +1 -1
  61. package/resources/beta/directories/directories.mjs +30 -30
  62. package/resources/beta/directories/directories.mjs.map +1 -1
  63. package/resources/beta/directories/files.d.mts +54 -54
  64. package/resources/beta/directories/files.d.mts.map +1 -1
  65. package/resources/beta/directories/files.d.ts +54 -54
  66. package/resources/beta/directories/files.d.ts.map +1 -1
  67. package/resources/beta/directories/files.js +32 -32
  68. package/resources/beta/directories/files.js.map +1 -1
  69. package/resources/beta/directories/files.mjs +32 -32
  70. package/resources/beta/directories/files.mjs.map +1 -1
  71. package/resources/beta/directories/index.d.mts +2 -2
  72. package/resources/beta/directories/index.d.mts.map +1 -1
  73. package/resources/beta/directories/index.d.ts +2 -2
  74. package/resources/beta/directories/index.d.ts.map +1 -1
  75. package/resources/beta/index.d.mts +6 -6
  76. package/resources/beta/index.d.mts.map +1 -1
  77. package/resources/beta/index.d.ts +6 -6
  78. package/resources/beta/index.d.ts.map +1 -1
  79. package/resources/beta/indexes.d.mts +32 -32
  80. package/resources/beta/indexes.d.mts.map +1 -1
  81. package/resources/beta/indexes.d.ts +32 -32
  82. package/resources/beta/indexes.d.ts.map +1 -1
  83. package/resources/beta/indexes.js +28 -28
  84. package/resources/beta/indexes.js.map +1 -1
  85. package/resources/beta/indexes.mjs +28 -28
  86. package/resources/beta/indexes.mjs.map +1 -1
  87. package/resources/beta/retrieval.d.mts +4 -4
  88. package/resources/beta/retrieval.d.mts.map +1 -1
  89. package/resources/beta/retrieval.d.ts +4 -4
  90. package/resources/beta/retrieval.d.ts.map +1 -1
  91. package/resources/beta/sheets.d.mts +134 -60
  92. package/resources/beta/sheets.d.mts.map +1 -1
  93. package/resources/beta/sheets.d.ts +134 -60
  94. package/resources/beta/sheets.d.ts.map +1 -1
  95. package/resources/beta/sheets.js +25 -52
  96. package/resources/beta/sheets.js.map +1 -1
  97. package/resources/beta/sheets.mjs +25 -52
  98. package/resources/beta/sheets.mjs.map +1 -1
  99. package/resources/beta/split.d.mts +2 -2
  100. package/resources/beta/split.d.mts.map +1 -1
  101. package/resources/beta/split.d.ts +2 -2
  102. package/resources/beta/split.d.ts.map +1 -1
  103. package/resources/classifier/jobs.d.mts +8 -2
  104. package/resources/classifier/jobs.d.mts.map +1 -1
  105. package/resources/classifier/jobs.d.ts +8 -2
  106. package/resources/classifier/jobs.d.ts.map +1 -1
  107. package/resources/classify.d.mts +71 -9
  108. package/resources/classify.d.mts.map +1 -1
  109. package/resources/classify.d.ts +71 -9
  110. package/resources/classify.d.ts.map +1 -1
  111. package/resources/configurations.d.mts +101 -46
  112. package/resources/configurations.d.mts.map +1 -1
  113. package/resources/configurations.d.ts +101 -46
  114. package/resources/configurations.d.ts.map +1 -1
  115. package/resources/configurations.js +9 -9
  116. package/resources/configurations.js.map +1 -1
  117. package/resources/configurations.mjs +9 -9
  118. package/resources/configurations.mjs.map +1 -1
  119. package/resources/data-sinks.d.mts +16 -16
  120. package/resources/data-sinks.d.mts.map +1 -1
  121. package/resources/data-sinks.d.ts +16 -16
  122. package/resources/data-sinks.d.ts.map +1 -1
  123. package/resources/data-sinks.js +12 -12
  124. package/resources/data-sinks.js.map +1 -1
  125. package/resources/data-sinks.mjs +12 -12
  126. package/resources/data-sinks.mjs.map +1 -1
  127. package/resources/data-sources.d.mts +17 -17
  128. package/resources/data-sources.d.mts.map +1 -1
  129. package/resources/data-sources.d.ts +17 -17
  130. package/resources/data-sources.d.ts.map +1 -1
  131. package/resources/data-sources.js +13 -13
  132. package/resources/data-sources.js.map +1 -1
  133. package/resources/data-sources.mjs +13 -13
  134. package/resources/data-sources.mjs.map +1 -1
  135. package/resources/extract.d.mts +52 -50
  136. package/resources/extract.d.mts.map +1 -1
  137. package/resources/extract.d.ts +52 -50
  138. package/resources/extract.d.ts.map +1 -1
  139. package/resources/extract.js +33 -33
  140. package/resources/extract.js.map +1 -1
  141. package/resources/extract.mjs +33 -33
  142. package/resources/extract.mjs.map +1 -1
  143. package/resources/files.d.mts +41 -41
  144. package/resources/files.d.mts.map +1 -1
  145. package/resources/files.d.ts +41 -41
  146. package/resources/files.d.ts.map +1 -1
  147. package/resources/files.js +13 -13
  148. package/resources/files.js.map +1 -1
  149. package/resources/files.mjs +13 -13
  150. package/resources/files.mjs.map +1 -1
  151. package/resources/index.d.mts +9 -8
  152. package/resources/index.d.mts.map +1 -1
  153. package/resources/index.d.ts +9 -8
  154. package/resources/index.d.ts.map +1 -1
  155. package/resources/index.js +3 -1
  156. package/resources/index.js.map +1 -1
  157. package/resources/index.mjs +1 -0
  158. package/resources/index.mjs.map +1 -1
  159. package/resources/parsing.d.mts +108 -50
  160. package/resources/parsing.d.mts.map +1 -1
  161. package/resources/parsing.d.ts +108 -50
  162. package/resources/parsing.d.ts.map +1 -1
  163. package/resources/parsing.js +12 -12
  164. package/resources/parsing.js.map +1 -1
  165. package/resources/parsing.mjs +12 -12
  166. package/resources/parsing.mjs.map +1 -1
  167. package/resources/pipelines/data-sources.d.mts +40 -30
  168. package/resources/pipelines/data-sources.d.mts.map +1 -1
  169. package/resources/pipelines/data-sources.d.ts +40 -30
  170. package/resources/pipelines/data-sources.d.ts.map +1 -1
  171. package/resources/pipelines/data-sources.js +23 -13
  172. package/resources/pipelines/data-sources.js.map +1 -1
  173. package/resources/pipelines/data-sources.mjs +23 -13
  174. package/resources/pipelines/data-sources.mjs.map +1 -1
  175. package/resources/pipelines/documents.d.mts +28 -12
  176. package/resources/pipelines/documents.d.mts.map +1 -1
  177. package/resources/pipelines/documents.d.ts +28 -12
  178. package/resources/pipelines/documents.d.ts.map +1 -1
  179. package/resources/pipelines/documents.js +30 -14
  180. package/resources/pipelines/documents.js.map +1 -1
  181. package/resources/pipelines/documents.mjs +30 -14
  182. package/resources/pipelines/documents.mjs.map +1 -1
  183. package/resources/pipelines/files.d.mts +34 -24
  184. package/resources/pipelines/files.d.mts.map +1 -1
  185. package/resources/pipelines/files.d.ts +34 -24
  186. package/resources/pipelines/files.d.ts.map +1 -1
  187. package/resources/pipelines/files.js +27 -17
  188. package/resources/pipelines/files.js.map +1 -1
  189. package/resources/pipelines/files.mjs +27 -17
  190. package/resources/pipelines/files.mjs.map +1 -1
  191. package/resources/pipelines/images.d.mts +17 -17
  192. package/resources/pipelines/images.d.mts.map +1 -1
  193. package/resources/pipelines/images.d.ts +17 -17
  194. package/resources/pipelines/images.d.ts.map +1 -1
  195. package/resources/pipelines/images.js +13 -13
  196. package/resources/pipelines/images.js.map +1 -1
  197. package/resources/pipelines/images.mjs +13 -13
  198. package/resources/pipelines/images.mjs.map +1 -1
  199. package/resources/pipelines/index.d.mts +5 -5
  200. package/resources/pipelines/index.d.mts.map +1 -1
  201. package/resources/pipelines/index.d.ts +5 -5
  202. package/resources/pipelines/index.d.ts.map +1 -1
  203. package/resources/pipelines/metadata.d.mts +4 -0
  204. package/resources/pipelines/metadata.d.mts.map +1 -1
  205. package/resources/pipelines/metadata.d.ts +4 -0
  206. package/resources/pipelines/metadata.d.ts.map +1 -1
  207. package/resources/pipelines/metadata.js +4 -0
  208. package/resources/pipelines/metadata.js.map +1 -1
  209. package/resources/pipelines/metadata.mjs +4 -0
  210. package/resources/pipelines/metadata.mjs.map +1 -1
  211. package/resources/pipelines/pipelines.d.mts +142 -126
  212. package/resources/pipelines/pipelines.d.mts.map +1 -1
  213. package/resources/pipelines/pipelines.d.ts +142 -126
  214. package/resources/pipelines/pipelines.d.ts.map +1 -1
  215. package/resources/pipelines/pipelines.js +39 -23
  216. package/resources/pipelines/pipelines.js.map +1 -1
  217. package/resources/pipelines/pipelines.mjs +39 -23
  218. package/resources/pipelines/pipelines.mjs.map +1 -1
  219. package/resources/pipelines/sync.d.mts +4 -0
  220. package/resources/pipelines/sync.d.mts.map +1 -1
  221. package/resources/pipelines/sync.d.ts +4 -0
  222. package/resources/pipelines/sync.d.ts.map +1 -1
  223. package/resources/pipelines/sync.js +4 -0
  224. package/resources/pipelines/sync.js.map +1 -1
  225. package/resources/pipelines/sync.mjs +4 -0
  226. package/resources/pipelines/sync.mjs.map +1 -1
  227. package/resources/retrievers/index.d.mts +1 -1
  228. package/resources/retrievers/index.d.mts.map +1 -1
  229. package/resources/retrievers/index.d.ts +1 -1
  230. package/resources/retrievers/index.d.ts.map +1 -1
  231. package/resources/retrievers/retrievers.d.mts +39 -39
  232. package/resources/retrievers/retrievers.d.mts.map +1 -1
  233. package/resources/retrievers/retrievers.d.ts +39 -39
  234. package/resources/retrievers/retrievers.d.ts.map +1 -1
  235. package/resources/retrievers/retrievers.js +20 -20
  236. package/resources/retrievers/retrievers.js.map +1 -1
  237. package/resources/retrievers/retrievers.mjs +20 -20
  238. package/resources/retrievers/retrievers.mjs.map +1 -1
  239. package/resources/shared.d.mts +12 -4
  240. package/resources/shared.d.mts.map +1 -1
  241. package/resources/shared.d.ts +12 -4
  242. package/resources/shared.d.ts.map +1 -1
  243. package/resources/sheets.d.mts +199 -0
  244. package/resources/sheets.d.mts.map +1 -0
  245. package/resources/sheets.d.ts +199 -0
  246. package/resources/sheets.d.ts.map +1 -0
  247. package/resources/sheets.js +101 -0
  248. package/resources/sheets.js.map +1 -0
  249. package/resources/sheets.mjs +97 -0
  250. package/resources/sheets.mjs.map +1 -0
  251. package/src/client.ts +33 -12
  252. package/src/resources/batches.ts +24 -25
  253. package/src/resources/beta/agent-data.ts +131 -131
  254. package/src/resources/beta/batch/batch.ts +61 -50
  255. package/src/resources/beta/batch/index.ts +1 -1
  256. package/src/resources/beta/batch/job-items.ts +28 -17
  257. package/src/resources/beta/beta.ts +12 -12
  258. package/src/resources/beta/chat.ts +57 -57
  259. package/src/resources/beta/directories/directories.ts +80 -66
  260. package/src/resources/beta/directories/files.ts +73 -73
  261. package/src/resources/beta/directories/index.ts +5 -5
  262. package/src/resources/beta/index.ts +12 -12
  263. package/src/resources/beta/indexes.ts +53 -53
  264. package/src/resources/beta/retrieval.ts +4 -4
  265. package/src/resources/beta/sheets.ts +217 -73
  266. package/src/resources/beta/split.ts +2 -2
  267. package/src/resources/classifier/jobs.ts +9 -2
  268. package/src/resources/classify.ts +135 -9
  269. package/src/resources/configurations.ts +126 -67
  270. package/src/resources/data-sinks.ts +26 -26
  271. package/src/resources/data-sources.ts +43 -43
  272. package/src/resources/extract.ts +118 -94
  273. package/src/resources/files.ts +61 -61
  274. package/src/resources/index.ts +21 -12
  275. package/src/resources/parsing.ts +266 -203
  276. package/src/resources/pipelines/data-sources.ts +59 -49
  277. package/src/resources/pipelines/documents.ts +42 -26
  278. package/src/resources/pipelines/files.ts +62 -52
  279. package/src/resources/pipelines/images.ts +36 -36
  280. package/src/resources/pipelines/index.ts +10 -10
  281. package/src/resources/pipelines/metadata.ts +4 -0
  282. package/src/resources/pipelines/pipelines.ts +230 -203
  283. package/src/resources/pipelines/sync.ts +4 -0
  284. package/src/resources/retrievers/index.ts +3 -3
  285. package/src/resources/retrievers/retrievers.ts +64 -64
  286. package/src/resources/shared.ts +13 -4
  287. package/src/resources/sheets.ts +314 -0
  288. package/src/version.ts +1 -1
  289. package/version.d.mts +1 -1
  290. package/version.d.ts +1 -1
  291. package/version.js +1 -1
  292. package/version.mjs +1 -1
@@ -23,6 +23,19 @@ export class Configurations extends APIResource {
23
23
  });
24
24
  }
25
25
 
26
+ /**
27
+ * List product configurations for the current project.
28
+ */
29
+ list(
30
+ query: ConfigurationListParams | null | undefined = {},
31
+ options?: RequestOptions,
32
+ ): PagePromise<ConfigurationResponsesPaginatedCursor, ConfigurationResponse> {
33
+ return this._client.getAPIList('/api/v1/beta/configurations', PaginatedCursor<ConfigurationResponse>, {
34
+ query,
35
+ ...options,
36
+ });
37
+ }
38
+
26
39
  /**
27
40
  * Get a single product configuration by ID.
28
41
  */
@@ -50,19 +63,6 @@ export class Configurations extends APIResource {
50
63
  });
51
64
  }
52
65
 
53
- /**
54
- * List product configurations for the current project.
55
- */
56
- list(
57
- query: ConfigurationListParams | null | undefined = {},
58
- options?: RequestOptions,
59
- ): PagePromise<ConfigurationResponsesPaginatedCursor, ConfigurationResponse> {
60
- return this._client.getAPIList('/api/v1/beta/configurations', PaginatedCursor<ConfigurationResponse>, {
61
- query,
62
- ...options,
63
- });
64
- }
65
-
66
66
  /**
67
67
  * Delete a product configuration.
68
68
  */
@@ -158,10 +158,10 @@ export interface ConfigurationCreate {
158
158
  * Product-specific configuration parameters.
159
159
  */
160
160
  parameters:
161
- | SplitV1Parameters
162
- | ExtractV2Parameters
163
161
  | ClassifyV2Parameters
162
+ | ExtractV2Parameters
164
163
  | ParseV2Parameters
164
+ | SplitV1Parameters
165
165
  | ConfigurationCreate.SpreadsheetV1Parameters
166
166
  | UntypedParameters;
167
167
  }
@@ -244,17 +244,17 @@ export interface ConfigurationResponse {
244
244
  * Product-specific configuration parameters.
245
245
  */
246
246
  parameters:
247
- | SplitV1Parameters
248
- | ExtractV2Parameters
249
247
  | ClassifyV2Parameters
248
+ | ExtractV2Parameters
250
249
  | ParseV2Parameters
250
+ | SplitV1Parameters
251
251
  | ConfigurationResponse.SpreadsheetV1Parameters
252
252
  | UntypedParameters;
253
253
 
254
254
  /**
255
255
  * Product type.
256
256
  */
257
- product_type: 'split_v1' | 'extract_v2' | 'classify_v2' | 'parse_v2' | 'spreadsheet_v1' | 'unknown';
257
+ product_type: 'classify_v2' | 'extract_v2' | 'parse_v2' | 'split_v1' | 'spreadsheet_v1' | 'unknown';
258
258
 
259
259
  /**
260
260
  * Version identifier (datetime string).
@@ -359,12 +359,6 @@ export interface ExtractV2Parameters {
359
359
  */
360
360
  confidence_scores?: boolean;
361
361
 
362
- /**
363
- * Extract algorithm version. Use 'latest' for the default pipeline or a date
364
- * string (e.g. '2026-01-08') to pin to a specific release.
365
- */
366
- extract_version?: string;
367
-
368
362
  /**
369
363
  * Granularity of extraction: per_doc returns one object per document, per_page
370
364
  * returns one object per page, per_table_row returns one object per table row
@@ -402,7 +396,15 @@ export interface ExtractV2Parameters {
402
396
  /**
403
397
  * Extract tier: cost_effective (5 credits/page) or agentic (15 credits/page)
404
398
  */
405
- tier?: 'cost_effective' | 'agentic';
399
+ tier?: 'agentic' | 'cost_effective';
400
+
401
+ /**
402
+ * Use 'latest' for the latest release for the selected tier or a date string
403
+ * (YYYY-MM-DD format) to pin to the nearest release at or before that date. Job
404
+ * responses always report the concrete resolved version the job runs, fixed at job
405
+ * creation; saved configurations keep the value as provided.
406
+ */
407
+ version?: string;
406
408
  }
407
409
 
408
410
  /**
@@ -423,14 +425,22 @@ export interface ParseV2Parameters {
423
425
  * 'agentic' (AI-powered with custom prompts), or 'agentic_plus' (premium AI with
424
426
  * highest accuracy)
425
427
  */
426
- tier: 'fast' | 'cost_effective' | 'agentic' | 'agentic_plus';
428
+ tier: 'agentic' | 'agentic_plus' | 'cost_effective' | 'fast';
427
429
 
428
430
  /**
429
- * Tier version. Use 'latest' for the current stable version, or pin a dated
430
- * version for reproducible results. See GET /api/v2/parse/versions for the
431
- * per-tier list.
431
+ * Version for the selected tier. Use `latest`, or pin one of that tier's dated
432
+ * versions.
433
+ *
434
+ * Current `latest` by tier:
435
+ *
436
+ * - `fast`: `2025-12-11`
437
+ * - `cost_effective`: `2026-06-18`
438
+ * - `agentic`: `2026-06-18`
439
+ * - `agentic_plus`: `2026-06-18`
440
+ *
441
+ * Full list: `GET /api/v2/parse/versions`.
432
442
  */
433
- version: 'latest' | '2026-05-21' | '2026-04-09' | '2025-12-11' | (string & {});
443
+ version: 'latest' | '2026-06-18' | '2025-12-11' | (string & {});
434
444
 
435
445
  /**
436
446
  * Options for AI-powered parsing tiers (cost_effective, agentic, agentic_plus).
@@ -557,6 +567,11 @@ export namespace ParseV2Parameters {
557
567
  */
558
568
  html?: InputOptions.HTML;
559
569
 
570
+ /**
571
+ * Image parsing options (applies to .jpg, .jpeg, .png, .webp files)
572
+ */
573
+ image?: InputOptions.Image;
574
+
560
575
  /**
561
576
  * PDF-specific parsing options (applies to .pdf files)
562
577
  */
@@ -596,6 +611,20 @@ export namespace ParseV2Parameters {
596
611
  remove_navigation_elements?: boolean | null;
597
612
  }
598
613
 
614
+ /**
615
+ * Image parsing options (applies to .jpg, .jpeg, .png, .webp files)
616
+ */
617
+ export interface Image {
618
+ /**
619
+ * Detect documents photographed with a camera (e.g. phone scans of receipts or
620
+ * forms), then crop, perspective-correct, and flatten uneven lighting and shadows
621
+ * before parsing. Supports JPEG, PNG, WebP, and HEIC/HEIF inputs. Improves results
622
+ * when the document is tilted or surrounded by background. Images that already
623
+ * look like clean scans are left untouched
624
+ */
625
+ camera_photo_correction?: boolean | null;
626
+ }
627
+
599
628
  /**
600
629
  * Presentation parsing options (applies to .pptx, .ppt, .odp, .key files)
601
630
  */
@@ -665,13 +694,26 @@ export namespace ParseV2Parameters {
665
694
  */
666
695
  extract_printed_page_number?: boolean | null;
667
696
 
697
+ /**
698
+ * Bounding-box granularity levels to compute for the parse. 'word' computes one
699
+ * bounding box per detected word; 'line' computes one per text line; 'cell'
700
+ * computes one per table cell. Multiple levels can be requested. Empty list
701
+ * (default) disables granular bboxes — only item-level layout boxes are returned
702
+ * on the result. When set, the computed boxes are not inlined on the result items;
703
+ * they are written to a separate `grounded_items` sidecar (JSONL, one row per
704
+ * page) and exposed as `result_content_metadata.grounded_items` (a presigned
705
+ * download URL) on the parse result. Each row matches the `GroundedJsonItem`
706
+ * shape.
707
+ */
708
+ granular_bboxes?: Array<'cell' | 'line' | 'word'>;
709
+
668
710
  /**
669
711
  * Image categories to extract and save. Options: 'screenshot' (full page renders
670
712
  * useful for visual QA), 'embedded' (images found within the document), 'layout'
671
713
  * (cropped regions from layout detection like figures and diagrams). Empty list
672
714
  * saves no images
673
715
  */
674
- images_to_save?: Array<'screenshot' | 'embedded' | 'layout'>;
716
+ images_to_save?: Array<'embedded' | 'layout' | 'screenshot'>;
675
717
 
676
718
  /**
677
719
  * Markdown formatting options including table styles and link annotations
@@ -921,7 +963,7 @@ export namespace ParseV2Parameters {
921
963
  * 'agentic' (balanced), 'agentic_plus' (highest accuracy). Automatically enables
922
964
  * extract_layout and precise_bounding_box when set
923
965
  */
924
- specialized_chart_parsing?: 'agentic_plus' | 'agentic' | 'efficient' | null;
966
+ specialized_chart_parsing?: 'agentic' | 'agentic_plus' | 'efficient' | null;
925
967
  }
926
968
 
927
969
  export namespace ProcessingOptions {
@@ -1178,17 +1220,27 @@ export namespace ParseV2Parameters {
1178
1220
  /**
1179
1221
  * Enable specialized chart parsing with the specified mode
1180
1222
  */
1181
- specialized_chart_parsing?: 'agentic_plus' | 'agentic' | 'efficient' | null;
1223
+ specialized_chart_parsing?: 'agentic' | 'agentic_plus' | 'efficient' | null;
1182
1224
 
1183
1225
  /**
1184
1226
  * Override the parsing tier for matched pages. Must be paired with version
1185
1227
  */
1186
- tier?: 'fast' | 'cost_effective' | 'agentic' | 'agentic_plus' | null;
1228
+ tier?: 'agentic' | 'agentic_plus' | 'cost_effective' | 'fast' | null;
1187
1229
 
1188
1230
  /**
1189
- * Tier version when overriding tier. Required when tier is specified
1231
+ * Version for the override tier. Required when `tier` is set. Use `latest`, or pin
1232
+ * one of that tier's dated versions.
1233
+ *
1234
+ * Current `latest` by tier:
1235
+ *
1236
+ * - `fast`: `2025-12-11`
1237
+ * - `cost_effective`: `2026-06-18`
1238
+ * - `agentic`: `2026-06-18`
1239
+ * - `agentic_plus`: `2026-06-18`
1240
+ *
1241
+ * Full list: `GET /api/v2/parse/versions`.
1190
1242
  */
1191
- version?: 'latest' | '2026-05-21' | '2026-04-09' | '2025-12-11' | (string & {}) | null;
1243
+ version?: 'latest' | '2026-06-18' | '2025-12-11' | (string & {}) | null;
1192
1244
  }
1193
1245
 
1194
1246
  export namespace ParsingConf {
@@ -1330,8 +1382,9 @@ export namespace ParseV2Parameters {
1330
1382
  export interface WebhookConfiguration {
1331
1383
  /**
1332
1384
  * Events that trigger this webhook. Options: 'parse.success' (job completed),
1333
- * 'parse.failure' (job failed), 'parse.partial' (some pages failed). If not
1334
- * specified, webhook fires for all events
1385
+ * 'parse.error' (job failed), 'parse.partial_success' (some pages failed),
1386
+ * 'parse.pending', 'parse.running', 'parse.cancelled'. If not specified, webhook
1387
+ * fires for all events
1335
1388
  */
1336
1389
  webhook_events?: Array<string> | null;
1337
1390
 
@@ -1341,6 +1394,12 @@ export namespace ParseV2Parameters {
1341
1394
  */
1342
1395
  webhook_headers?: { [key: string]: unknown } | null;
1343
1396
 
1397
+ /**
1398
+ * Format of the webhook payload body. 'string' (default) sends the payload as a
1399
+ * JSON-encoded string; 'json' sends it as a JSON object.
1400
+ */
1401
+ webhook_output_format?: 'json' | 'string' | null;
1402
+
1344
1403
  /**
1345
1404
  * HTTPS URL to receive webhook POST requests. Must be publicly accessible
1346
1405
  */
@@ -1379,7 +1438,7 @@ export namespace SplitV1Parameters {
1379
1438
  * be assigned to a defined category. 'omit': pages can be classified as
1380
1439
  * 'uncategorized' but are excluded from results.
1381
1440
  */
1382
- allow_uncategorized?: 'include' | 'forbid' | 'omit';
1441
+ allow_uncategorized?: 'forbid' | 'include' | 'omit';
1383
1442
  }
1384
1443
  }
1385
1444
 
@@ -1407,10 +1466,10 @@ export interface ConfigurationCreateParams {
1407
1466
  * Body param: Product-specific configuration parameters.
1408
1467
  */
1409
1468
  parameters:
1410
- | SplitV1Parameters
1411
- | ExtractV2Parameters
1412
1469
  | ClassifyV2Parameters
1470
+ | ExtractV2Parameters
1413
1471
  | ParseV2Parameters
1472
+ | SplitV1Parameters
1414
1473
  | ConfigurationCreateParams.SpreadsheetV1Parameters
1415
1474
  | UntypedParameters;
1416
1475
 
@@ -1485,6 +1544,29 @@ export namespace ConfigurationCreateParams {
1485
1544
  }
1486
1545
  }
1487
1546
 
1547
+ export interface ConfigurationListParams extends PaginatedCursorParams {
1548
+ /**
1549
+ * Return only the latest version per configuration name.
1550
+ */
1551
+ latest_only?: boolean;
1552
+
1553
+ /**
1554
+ * Filter by configuration name.
1555
+ */
1556
+ name?: string | null;
1557
+
1558
+ organization_id?: string | null;
1559
+
1560
+ /**
1561
+ * Filter by one or more product types. Repeat the parameter for multiple values.
1562
+ */
1563
+ product_type?: Array<
1564
+ 'classify_v2' | 'extract_v2' | 'parse_v2' | 'split_v1' | 'spreadsheet_v1' | 'unknown'
1565
+ > | null;
1566
+
1567
+ project_id?: string | null;
1568
+ }
1569
+
1488
1570
  export interface ConfigurationRetrieveParams {
1489
1571
  organization_id?: string | null;
1490
1572
 
@@ -1511,10 +1593,10 @@ export interface ConfigurationUpdateParams {
1511
1593
  * Body param: Updated parameters (omit to leave unchanged).
1512
1594
  */
1513
1595
  parameters?:
1514
- | SplitV1Parameters
1515
- | ExtractV2Parameters
1516
1596
  | ClassifyV2Parameters
1597
+ | ExtractV2Parameters
1517
1598
  | ParseV2Parameters
1599
+ | SplitV1Parameters
1518
1600
  | ConfigurationUpdateParams.SpreadsheetV1Parameters
1519
1601
  | UntypedParameters
1520
1602
  | null;
@@ -1580,29 +1662,6 @@ export namespace ConfigurationUpdateParams {
1580
1662
  }
1581
1663
  }
1582
1664
 
1583
- export interface ConfigurationListParams extends PaginatedCursorParams {
1584
- /**
1585
- * Return only the latest version per configuration name.
1586
- */
1587
- latest_only?: boolean;
1588
-
1589
- /**
1590
- * Filter by configuration name.
1591
- */
1592
- name?: string | null;
1593
-
1594
- organization_id?: string | null;
1595
-
1596
- /**
1597
- * Filter by one or more product types. Repeat the parameter for multiple values.
1598
- */
1599
- product_type?: Array<
1600
- 'split_v1' | 'extract_v2' | 'classify_v2' | 'parse_v2' | 'spreadsheet_v1' | 'unknown'
1601
- > | null;
1602
-
1603
- project_id?: string | null;
1604
- }
1605
-
1606
1665
  export interface ConfigurationDeleteParams {
1607
1666
  organization_id?: string | null;
1608
1667
 
@@ -1620,9 +1679,9 @@ export declare namespace Configurations {
1620
1679
  type UntypedParameters as UntypedParameters,
1621
1680
  type ConfigurationResponsesPaginatedCursor as ConfigurationResponsesPaginatedCursor,
1622
1681
  type ConfigurationCreateParams as ConfigurationCreateParams,
1682
+ type ConfigurationListParams as ConfigurationListParams,
1623
1683
  type ConfigurationRetrieveParams as ConfigurationRetrieveParams,
1624
1684
  type ConfigurationUpdateParams as ConfigurationUpdateParams,
1625
- type ConfigurationListParams as ConfigurationListParams,
1626
1685
  type ConfigurationDeleteParams as ConfigurationDeleteParams,
1627
1686
  };
1628
1687
  }
@@ -8,6 +8,16 @@ import { RequestOptions } from '../internal/request-options';
8
8
  import { path } from '../internal/utils/path';
9
9
 
10
10
  export class DataSinks extends APIResource {
11
+ /**
12
+ * List data sinks for a given project.
13
+ */
14
+ list(
15
+ query: DataSinkListParams | null | undefined = {},
16
+ options?: RequestOptions,
17
+ ): APIPromise<DataSinkListResponse> {
18
+ return this._client.get('/api/v1/data-sinks', { query, ...options });
19
+ }
20
+
11
21
  /**
12
22
  * Create a new data sink.
13
23
  */
@@ -21,20 +31,17 @@ export class DataSinks extends APIResource {
21
31
  }
22
32
 
23
33
  /**
24
- * Update a data sink by ID.
34
+ * Get a data sink by ID.
25
35
  */
26
- update(dataSinkID: string, body: DataSinkUpdateParams, options?: RequestOptions): APIPromise<DataSink> {
27
- return this._client.put(path`/api/v1/data-sinks/${dataSinkID}`, { body, ...options });
36
+ get(dataSinkID: string, options?: RequestOptions): APIPromise<DataSink> {
37
+ return this._client.get(path`/api/v1/data-sinks/${dataSinkID}`, options);
28
38
  }
29
39
 
30
40
  /**
31
- * List data sinks for a given project.
41
+ * Update a data sink by ID.
32
42
  */
33
- list(
34
- query: DataSinkListParams | null | undefined = {},
35
- options?: RequestOptions,
36
- ): APIPromise<DataSinkListResponse> {
37
- return this._client.get('/api/v1/data-sinks', { query, ...options });
43
+ update(dataSinkID: string, body: DataSinkUpdateParams, options?: RequestOptions): APIPromise<DataSink> {
44
+ return this._client.put(path`/api/v1/data-sinks/${dataSinkID}`, { body, ...options });
38
45
  }
39
46
 
40
47
  /**
@@ -46,13 +53,6 @@ export class DataSinks extends APIResource {
46
53
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
47
54
  });
48
55
  }
49
-
50
- /**
51
- * Get a data sink by ID.
52
- */
53
- get(dataSinkID: string, options?: RequestOptions): APIPromise<DataSink> {
54
- return this._client.get(path`/api/v1/data-sinks/${dataSinkID}`, options);
55
- }
56
56
  }
57
57
 
58
58
  /**
@@ -84,7 +84,7 @@ export interface DataSink {
84
84
 
85
85
  project_id: string;
86
86
 
87
- sink_type: 'PINECONE' | 'POSTGRES' | 'QDRANT' | 'AZUREAI_SEARCH' | 'MONGODB_ATLAS' | 'MILVUS' | 'ASTRA_DB';
87
+ sink_type: 'ASTRA_DB' | 'AZUREAI_SEARCH' | 'MILVUS' | 'MONGODB_ATLAS' | 'PINECONE' | 'POSTGRES' | 'QDRANT';
88
88
 
89
89
  /**
90
90
  * Creation datetime
@@ -99,6 +99,12 @@ export interface DataSink {
99
99
 
100
100
  export type DataSinkListResponse = Array<DataSink>;
101
101
 
102
+ export interface DataSinkListParams {
103
+ organization_id?: string | null;
104
+
105
+ project_id?: string | null;
106
+ }
107
+
102
108
  export interface DataSinkCreateParams {
103
109
  /**
104
110
  * Body param: Component that implements the data sink
@@ -121,7 +127,7 @@ export interface DataSinkCreateParams {
121
127
  /**
122
128
  * Body param
123
129
  */
124
- sink_type: 'PINECONE' | 'POSTGRES' | 'QDRANT' | 'AZUREAI_SEARCH' | 'MONGODB_ATLAS' | 'MILVUS' | 'ASTRA_DB';
130
+ sink_type: 'ASTRA_DB' | 'AZUREAI_SEARCH' | 'MILVUS' | 'MONGODB_ATLAS' | 'PINECONE' | 'POSTGRES' | 'QDRANT';
125
131
 
126
132
  /**
127
133
  * Query param
@@ -135,7 +141,7 @@ export interface DataSinkCreateParams {
135
141
  }
136
142
 
137
143
  export interface DataSinkUpdateParams {
138
- sink_type: 'PINECONE' | 'POSTGRES' | 'QDRANT' | 'AZUREAI_SEARCH' | 'MONGODB_ATLAS' | 'MILVUS' | 'ASTRA_DB';
144
+ sink_type: 'ASTRA_DB' | 'AZUREAI_SEARCH' | 'MILVUS' | 'MONGODB_ATLAS' | 'PINECONE' | 'POSTGRES' | 'QDRANT';
139
145
 
140
146
  /**
141
147
  * Component that implements the data sink
@@ -157,18 +163,12 @@ export interface DataSinkUpdateParams {
157
163
  name?: string | null;
158
164
  }
159
165
 
160
- export interface DataSinkListParams {
161
- organization_id?: string | null;
162
-
163
- project_id?: string | null;
164
- }
165
-
166
166
  export declare namespace DataSinks {
167
167
  export {
168
168
  type DataSink as DataSink,
169
169
  type DataSinkListResponse as DataSinkListResponse,
170
+ type DataSinkListParams as DataSinkListParams,
170
171
  type DataSinkCreateParams as DataSinkCreateParams,
171
172
  type DataSinkUpdateParams as DataSinkUpdateParams,
172
- type DataSinkListParams as DataSinkListParams,
173
173
  };
174
174
  }
@@ -8,6 +8,17 @@ import { RequestOptions } from '../internal/request-options';
8
8
  import { path } from '../internal/utils/path';
9
9
 
10
10
  export class DataSources extends APIResource {
11
+ /**
12
+ * List data sources for a given project. If project_id is not provided, uses the
13
+ * default project.
14
+ */
15
+ list(
16
+ query: DataSourceListParams | null | undefined = {},
17
+ options?: RequestOptions,
18
+ ): APIPromise<DataSourceListResponse> {
19
+ return this._client.get('/api/v1/data-sources', { query, ...options });
20
+ }
21
+
11
22
  /**
12
23
  * Create a new data source.
13
24
  */
@@ -20,6 +31,13 @@ export class DataSources extends APIResource {
20
31
  });
21
32
  }
22
33
 
34
+ /**
35
+ * Get a data source by ID.
36
+ */
37
+ get(dataSourceID: string, options?: RequestOptions): APIPromise<DataSource> {
38
+ return this._client.get(path`/api/v1/data-sources/${dataSourceID}`, options);
39
+ }
40
+
23
41
  /**
24
42
  * Update a data source by ID.
25
43
  */
@@ -31,17 +49,6 @@ export class DataSources extends APIResource {
31
49
  return this._client.put(path`/api/v1/data-sources/${dataSourceID}`, { body, ...options });
32
50
  }
33
51
 
34
- /**
35
- * List data sources for a given project. If project_id is not provided, uses the
36
- * default project.
37
- */
38
- list(
39
- query: DataSourceListParams | null | undefined = {},
40
- options?: RequestOptions,
41
- ): APIPromise<DataSourceListResponse> {
42
- return this._client.get('/api/v1/data-sources', { query, ...options });
43
- }
44
-
45
52
  /**
46
53
  * Delete a data source by ID.
47
54
  */
@@ -51,13 +58,6 @@ export class DataSources extends APIResource {
51
58
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
52
59
  });
53
60
  }
54
-
55
- /**
56
- * Get a data source by ID.
57
- */
58
- get(dataSourceID: string, options?: RequestOptions): APIPromise<DataSource> {
59
- return this._client.get(path`/api/v1/data-sources/${dataSourceID}`, options);
60
- }
61
61
  }
62
62
 
63
63
  /**
@@ -94,17 +94,17 @@ export interface DataSource {
94
94
  project_id: string;
95
95
 
96
96
  source_type:
97
- | 'S3'
98
97
  | 'AZURE_STORAGE_BLOB'
98
+ | 'BOX'
99
+ | 'CONFLUENCE'
99
100
  | 'GOOGLE_DRIVE'
101
+ | 'JIRA'
102
+ | 'JIRA_V2'
100
103
  | 'MICROSOFT_ONEDRIVE'
101
104
  | 'MICROSOFT_SHAREPOINT'
102
- | 'SLACK'
103
105
  | 'NOTION_PAGE'
104
- | 'CONFLUENCE'
105
- | 'JIRA'
106
- | 'JIRA_V2'
107
- | 'BOX';
106
+ | 'S3'
107
+ | 'SLACK';
108
108
 
109
109
  /**
110
110
  * Creation datetime
@@ -138,6 +138,12 @@ export interface DataSourceReaderVersionMetadata {
138
138
 
139
139
  export type DataSourceListResponse = Array<DataSource>;
140
140
 
141
+ export interface DataSourceListParams {
142
+ organization_id?: string | null;
143
+
144
+ project_id?: string | null;
145
+ }
146
+
141
147
  export interface DataSourceCreateParams {
142
148
  /**
143
149
  * Body param: Component that implements the data source
@@ -165,17 +171,17 @@ export interface DataSourceCreateParams {
165
171
  * Body param
166
172
  */
167
173
  source_type:
168
- | 'S3'
169
174
  | 'AZURE_STORAGE_BLOB'
175
+ | 'BOX'
176
+ | 'CONFLUENCE'
170
177
  | 'GOOGLE_DRIVE'
178
+ | 'JIRA'
179
+ | 'JIRA_V2'
171
180
  | 'MICROSOFT_ONEDRIVE'
172
181
  | 'MICROSOFT_SHAREPOINT'
173
- | 'SLACK'
174
182
  | 'NOTION_PAGE'
175
- | 'CONFLUENCE'
176
- | 'JIRA'
177
- | 'JIRA_V2'
178
- | 'BOX';
183
+ | 'S3'
184
+ | 'SLACK';
179
185
 
180
186
  /**
181
187
  * Query param
@@ -198,17 +204,17 @@ export interface DataSourceCreateParams {
198
204
 
199
205
  export interface DataSourceUpdateParams {
200
206
  source_type:
201
- | 'S3'
202
207
  | 'AZURE_STORAGE_BLOB'
208
+ | 'BOX'
209
+ | 'CONFLUENCE'
203
210
  | 'GOOGLE_DRIVE'
211
+ | 'JIRA'
212
+ | 'JIRA_V2'
204
213
  | 'MICROSOFT_ONEDRIVE'
205
214
  | 'MICROSOFT_SHAREPOINT'
206
- | 'SLACK'
207
215
  | 'NOTION_PAGE'
208
- | 'CONFLUENCE'
209
- | 'JIRA'
210
- | 'JIRA_V2'
211
- | 'BOX';
216
+ | 'S3'
217
+ | 'SLACK';
212
218
 
213
219
  /**
214
220
  * Component that implements the data source
@@ -241,19 +247,13 @@ export interface DataSourceUpdateParams {
241
247
  name?: string | null;
242
248
  }
243
249
 
244
- export interface DataSourceListParams {
245
- organization_id?: string | null;
246
-
247
- project_id?: string | null;
248
- }
249
-
250
250
  export declare namespace DataSources {
251
251
  export {
252
252
  type DataSource as DataSource,
253
253
  type DataSourceReaderVersionMetadata as DataSourceReaderVersionMetadata,
254
254
  type DataSourceListResponse as DataSourceListResponse,
255
+ type DataSourceListParams as DataSourceListParams,
255
256
  type DataSourceCreateParams as DataSourceCreateParams,
256
257
  type DataSourceUpdateParams as DataSourceUpdateParams,
257
- type DataSourceListParams as DataSourceListParams,
258
258
  };
259
259
  }