@llamaindex/llama-cloud 2.9.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 (288) hide show
  1. package/CHANGELOG.md +20 -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 +4 -4
  12. package/resources/batches.d.mts.map +1 -1
  13. package/resources/batches.d.ts +4 -4
  14. package/resources/batches.d.ts.map +1 -1
  15. package/resources/beta/agent-data.d.mts +94 -94
  16. package/resources/beta/agent-data.d.mts.map +1 -1
  17. package/resources/beta/agent-data.d.ts +94 -94
  18. package/resources/beta/agent-data.d.ts.map +1 -1
  19. package/resources/beta/agent-data.js +41 -41
  20. package/resources/beta/agent-data.js.map +1 -1
  21. package/resources/beta/agent-data.mjs +41 -41
  22. package/resources/beta/agent-data.mjs.map +1 -1
  23. package/resources/beta/batch/batch.d.mts +29 -29
  24. package/resources/beta/batch/batch.d.mts.map +1 -1
  25. package/resources/beta/batch/batch.d.ts +29 -29
  26. package/resources/beta/batch/batch.d.ts.map +1 -1
  27. package/resources/beta/batch/batch.js +16 -16
  28. package/resources/beta/batch/batch.js.map +1 -1
  29. package/resources/beta/batch/batch.mjs +16 -16
  30. package/resources/beta/batch/batch.mjs.map +1 -1
  31. package/resources/beta/batch/index.d.mts +1 -1
  32. package/resources/beta/batch/index.d.mts.map +1 -1
  33. package/resources/beta/batch/index.d.ts +1 -1
  34. package/resources/beta/batch/index.d.ts.map +1 -1
  35. package/resources/beta/batch/job-items.d.mts +7 -7
  36. package/resources/beta/batch/job-items.d.mts.map +1 -1
  37. package/resources/beta/batch/job-items.d.ts +7 -7
  38. package/resources/beta/batch/job-items.d.ts.map +1 -1
  39. package/resources/beta/beta.d.mts +6 -6
  40. package/resources/beta/beta.d.mts.map +1 -1
  41. package/resources/beta/beta.d.ts +6 -6
  42. package/resources/beta/beta.d.ts.map +1 -1
  43. package/resources/beta/chat.d.mts +39 -39
  44. package/resources/beta/chat.d.mts.map +1 -1
  45. package/resources/beta/chat.d.ts +39 -39
  46. package/resources/beta/chat.d.ts.map +1 -1
  47. package/resources/beta/chat.js +14 -14
  48. package/resources/beta/chat.js.map +1 -1
  49. package/resources/beta/chat.mjs +14 -14
  50. package/resources/beta/chat.mjs.map +1 -1
  51. package/resources/beta/directories/directories.d.mts +48 -35
  52. package/resources/beta/directories/directories.d.mts.map +1 -1
  53. package/resources/beta/directories/directories.d.ts +48 -35
  54. package/resources/beta/directories/directories.d.ts.map +1 -1
  55. package/resources/beta/directories/directories.js +30 -30
  56. package/resources/beta/directories/directories.js.map +1 -1
  57. package/resources/beta/directories/directories.mjs +30 -30
  58. package/resources/beta/directories/directories.mjs.map +1 -1
  59. package/resources/beta/directories/files.d.mts +47 -47
  60. package/resources/beta/directories/files.d.mts.map +1 -1
  61. package/resources/beta/directories/files.d.ts +47 -47
  62. package/resources/beta/directories/files.d.ts.map +1 -1
  63. package/resources/beta/directories/files.js +32 -32
  64. package/resources/beta/directories/files.js.map +1 -1
  65. package/resources/beta/directories/files.mjs +32 -32
  66. package/resources/beta/directories/files.mjs.map +1 -1
  67. package/resources/beta/directories/index.d.mts +2 -2
  68. package/resources/beta/directories/index.d.mts.map +1 -1
  69. package/resources/beta/directories/index.d.ts +2 -2
  70. package/resources/beta/directories/index.d.ts.map +1 -1
  71. package/resources/beta/index.d.mts +6 -6
  72. package/resources/beta/index.d.mts.map +1 -1
  73. package/resources/beta/index.d.ts +6 -6
  74. package/resources/beta/index.d.ts.map +1 -1
  75. package/resources/beta/indexes.d.mts +32 -32
  76. package/resources/beta/indexes.d.mts.map +1 -1
  77. package/resources/beta/indexes.d.ts +32 -32
  78. package/resources/beta/indexes.d.ts.map +1 -1
  79. package/resources/beta/indexes.js +28 -28
  80. package/resources/beta/indexes.js.map +1 -1
  81. package/resources/beta/indexes.mjs +28 -28
  82. package/resources/beta/indexes.mjs.map +1 -1
  83. package/resources/beta/retrieval.d.mts +3 -3
  84. package/resources/beta/retrieval.d.mts.map +1 -1
  85. package/resources/beta/retrieval.d.ts +3 -3
  86. package/resources/beta/retrieval.d.ts.map +1 -1
  87. package/resources/beta/sheets.d.mts +23 -56
  88. package/resources/beta/sheets.d.mts.map +1 -1
  89. package/resources/beta/sheets.d.ts +23 -56
  90. package/resources/beta/sheets.d.ts.map +1 -1
  91. package/resources/beta/sheets.js +19 -52
  92. package/resources/beta/sheets.js.map +1 -1
  93. package/resources/beta/sheets.mjs +19 -52
  94. package/resources/beta/sheets.mjs.map +1 -1
  95. package/resources/beta/split.d.mts +2 -2
  96. package/resources/beta/split.d.mts.map +1 -1
  97. package/resources/beta/split.d.ts +2 -2
  98. package/resources/beta/split.d.ts.map +1 -1
  99. package/resources/classifier/jobs.d.mts +1 -1
  100. package/resources/classifier/jobs.d.mts.map +1 -1
  101. package/resources/classifier/jobs.d.ts +1 -1
  102. package/resources/classifier/jobs.d.ts.map +1 -1
  103. package/resources/classify.d.mts +13 -11
  104. package/resources/classify.d.mts.map +1 -1
  105. package/resources/classify.d.ts +13 -11
  106. package/resources/classify.d.ts.map +1 -1
  107. package/resources/configurations.d.mts +62 -43
  108. package/resources/configurations.d.mts.map +1 -1
  109. package/resources/configurations.d.ts +62 -43
  110. package/resources/configurations.d.ts.map +1 -1
  111. package/resources/configurations.js +9 -9
  112. package/resources/configurations.js.map +1 -1
  113. package/resources/configurations.mjs +9 -9
  114. package/resources/configurations.mjs.map +1 -1
  115. package/resources/data-sinks.d.mts +16 -16
  116. package/resources/data-sinks.d.mts.map +1 -1
  117. package/resources/data-sinks.d.ts +16 -16
  118. package/resources/data-sinks.d.ts.map +1 -1
  119. package/resources/data-sinks.js +12 -12
  120. package/resources/data-sinks.js.map +1 -1
  121. package/resources/data-sinks.mjs +12 -12
  122. package/resources/data-sinks.mjs.map +1 -1
  123. package/resources/data-sources.d.mts +17 -17
  124. package/resources/data-sources.d.mts.map +1 -1
  125. package/resources/data-sources.d.ts +17 -17
  126. package/resources/data-sources.d.ts.map +1 -1
  127. package/resources/data-sources.js +13 -13
  128. package/resources/data-sources.js.map +1 -1
  129. package/resources/data-sources.mjs +13 -13
  130. package/resources/data-sources.mjs.map +1 -1
  131. package/resources/extract.d.mts +48 -46
  132. package/resources/extract.d.mts.map +1 -1
  133. package/resources/extract.d.ts +48 -46
  134. package/resources/extract.d.ts.map +1 -1
  135. package/resources/extract.js +33 -33
  136. package/resources/extract.js.map +1 -1
  137. package/resources/extract.mjs +33 -33
  138. package/resources/extract.mjs.map +1 -1
  139. package/resources/files.d.mts +41 -41
  140. package/resources/files.d.mts.map +1 -1
  141. package/resources/files.d.ts +41 -41
  142. package/resources/files.d.ts.map +1 -1
  143. package/resources/files.js +13 -13
  144. package/resources/files.js.map +1 -1
  145. package/resources/files.mjs +13 -13
  146. package/resources/files.mjs.map +1 -1
  147. package/resources/index.d.mts +9 -8
  148. package/resources/index.d.mts.map +1 -1
  149. package/resources/index.d.ts +9 -8
  150. package/resources/index.d.ts.map +1 -1
  151. package/resources/index.js +3 -1
  152. package/resources/index.js.map +1 -1
  153. package/resources/index.mjs +1 -0
  154. package/resources/index.mjs.map +1 -1
  155. package/resources/parsing.d.mts +73 -51
  156. package/resources/parsing.d.mts.map +1 -1
  157. package/resources/parsing.d.ts +73 -51
  158. package/resources/parsing.d.ts.map +1 -1
  159. package/resources/parsing.js +12 -12
  160. package/resources/parsing.js.map +1 -1
  161. package/resources/parsing.mjs +12 -12
  162. package/resources/parsing.mjs.map +1 -1
  163. package/resources/pipelines/data-sources.d.mts +40 -30
  164. package/resources/pipelines/data-sources.d.mts.map +1 -1
  165. package/resources/pipelines/data-sources.d.ts +40 -30
  166. package/resources/pipelines/data-sources.d.ts.map +1 -1
  167. package/resources/pipelines/data-sources.js +23 -13
  168. package/resources/pipelines/data-sources.js.map +1 -1
  169. package/resources/pipelines/data-sources.mjs +23 -13
  170. package/resources/pipelines/data-sources.mjs.map +1 -1
  171. package/resources/pipelines/documents.d.mts +28 -12
  172. package/resources/pipelines/documents.d.mts.map +1 -1
  173. package/resources/pipelines/documents.d.ts +28 -12
  174. package/resources/pipelines/documents.d.ts.map +1 -1
  175. package/resources/pipelines/documents.js +30 -14
  176. package/resources/pipelines/documents.js.map +1 -1
  177. package/resources/pipelines/documents.mjs +30 -14
  178. package/resources/pipelines/documents.mjs.map +1 -1
  179. package/resources/pipelines/files.d.mts +34 -24
  180. package/resources/pipelines/files.d.mts.map +1 -1
  181. package/resources/pipelines/files.d.ts +34 -24
  182. package/resources/pipelines/files.d.ts.map +1 -1
  183. package/resources/pipelines/files.js +27 -17
  184. package/resources/pipelines/files.js.map +1 -1
  185. package/resources/pipelines/files.mjs +27 -17
  186. package/resources/pipelines/files.mjs.map +1 -1
  187. package/resources/pipelines/images.d.mts +17 -17
  188. package/resources/pipelines/images.d.mts.map +1 -1
  189. package/resources/pipelines/images.d.ts +17 -17
  190. package/resources/pipelines/images.d.ts.map +1 -1
  191. package/resources/pipelines/images.js +13 -13
  192. package/resources/pipelines/images.js.map +1 -1
  193. package/resources/pipelines/images.mjs +13 -13
  194. package/resources/pipelines/images.mjs.map +1 -1
  195. package/resources/pipelines/index.d.mts +5 -5
  196. package/resources/pipelines/index.d.mts.map +1 -1
  197. package/resources/pipelines/index.d.ts +5 -5
  198. package/resources/pipelines/index.d.ts.map +1 -1
  199. package/resources/pipelines/metadata.d.mts +4 -0
  200. package/resources/pipelines/metadata.d.mts.map +1 -1
  201. package/resources/pipelines/metadata.d.ts +4 -0
  202. package/resources/pipelines/metadata.d.ts.map +1 -1
  203. package/resources/pipelines/metadata.js +4 -0
  204. package/resources/pipelines/metadata.js.map +1 -1
  205. package/resources/pipelines/metadata.mjs +4 -0
  206. package/resources/pipelines/metadata.mjs.map +1 -1
  207. package/resources/pipelines/pipelines.d.mts +142 -126
  208. package/resources/pipelines/pipelines.d.mts.map +1 -1
  209. package/resources/pipelines/pipelines.d.ts +142 -126
  210. package/resources/pipelines/pipelines.d.ts.map +1 -1
  211. package/resources/pipelines/pipelines.js +39 -23
  212. package/resources/pipelines/pipelines.js.map +1 -1
  213. package/resources/pipelines/pipelines.mjs +39 -23
  214. package/resources/pipelines/pipelines.mjs.map +1 -1
  215. package/resources/pipelines/sync.d.mts +4 -0
  216. package/resources/pipelines/sync.d.mts.map +1 -1
  217. package/resources/pipelines/sync.d.ts +4 -0
  218. package/resources/pipelines/sync.d.ts.map +1 -1
  219. package/resources/pipelines/sync.js +4 -0
  220. package/resources/pipelines/sync.js.map +1 -1
  221. package/resources/pipelines/sync.mjs +4 -0
  222. package/resources/pipelines/sync.mjs.map +1 -1
  223. package/resources/retrievers/index.d.mts +1 -1
  224. package/resources/retrievers/index.d.mts.map +1 -1
  225. package/resources/retrievers/index.d.ts +1 -1
  226. package/resources/retrievers/index.d.ts.map +1 -1
  227. package/resources/retrievers/retrievers.d.mts +39 -39
  228. package/resources/retrievers/retrievers.d.mts.map +1 -1
  229. package/resources/retrievers/retrievers.d.ts +39 -39
  230. package/resources/retrievers/retrievers.d.ts.map +1 -1
  231. package/resources/retrievers/retrievers.js +20 -20
  232. package/resources/retrievers/retrievers.js.map +1 -1
  233. package/resources/retrievers/retrievers.mjs +20 -20
  234. package/resources/retrievers/retrievers.mjs.map +1 -1
  235. package/resources/shared.d.mts +11 -3
  236. package/resources/shared.d.mts.map +1 -1
  237. package/resources/shared.d.ts +11 -3
  238. package/resources/shared.d.ts.map +1 -1
  239. package/resources/sheets.d.mts +199 -0
  240. package/resources/sheets.d.mts.map +1 -0
  241. package/resources/sheets.d.ts +199 -0
  242. package/resources/sheets.d.ts.map +1 -0
  243. package/resources/sheets.js +101 -0
  244. package/resources/sheets.js.map +1 -0
  245. package/resources/sheets.mjs +97 -0
  246. package/resources/sheets.mjs.map +1 -0
  247. package/src/client.ts +33 -12
  248. package/src/resources/batches.ts +4 -4
  249. package/src/resources/beta/agent-data.ts +131 -131
  250. package/src/resources/beta/batch/batch.ts +59 -54
  251. package/src/resources/beta/batch/index.ts +1 -1
  252. package/src/resources/beta/batch/job-items.ts +26 -21
  253. package/src/resources/beta/beta.ts +12 -12
  254. package/src/resources/beta/chat.ts +57 -57
  255. package/src/resources/beta/directories/directories.ts +80 -66
  256. package/src/resources/beta/directories/files.ts +66 -66
  257. package/src/resources/beta/directories/index.ts +5 -5
  258. package/src/resources/beta/index.ts +12 -12
  259. package/src/resources/beta/indexes.ts +53 -53
  260. package/src/resources/beta/retrieval.ts +3 -3
  261. package/src/resources/beta/sheets.ts +74 -97
  262. package/src/resources/beta/split.ts +2 -2
  263. package/src/resources/classifier/jobs.ts +1 -1
  264. package/src/resources/classify.ts +51 -39
  265. package/src/resources/configurations.ts +84 -63
  266. package/src/resources/data-sinks.ts +26 -26
  267. package/src/resources/data-sources.ts +43 -43
  268. package/src/resources/extract.ts +109 -97
  269. package/src/resources/files.ts +61 -61
  270. package/src/resources/index.ts +21 -12
  271. package/src/resources/parsing.ts +229 -204
  272. package/src/resources/pipelines/data-sources.ts +59 -49
  273. package/src/resources/pipelines/documents.ts +42 -26
  274. package/src/resources/pipelines/files.ts +62 -52
  275. package/src/resources/pipelines/images.ts +36 -36
  276. package/src/resources/pipelines/index.ts +10 -10
  277. package/src/resources/pipelines/metadata.ts +4 -0
  278. package/src/resources/pipelines/pipelines.ts +228 -207
  279. package/src/resources/pipelines/sync.ts +4 -0
  280. package/src/resources/retrievers/index.ts +3 -3
  281. package/src/resources/retrievers/retrievers.ts +64 -64
  282. package/src/resources/shared.ts +12 -3
  283. package/src/resources/sheets.ts +314 -0
  284. package/src/version.ts +1 -1
  285. package/version.d.mts +1 -1
  286. package/version.d.ts +1 -1
  287. package/version.js +1 -1
  288. 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).
@@ -396,11 +396,13 @@ export interface ExtractV2Parameters {
396
396
  /**
397
397
  * Extract tier: cost_effective (5 credits/page) or agentic (15 credits/page)
398
398
  */
399
- tier?: 'cost_effective' | 'agentic';
399
+ tier?: 'agentic' | 'cost_effective';
400
400
 
401
401
  /**
402
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.
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.
404
406
  */
405
407
  version?: string;
406
408
  }
@@ -423,7 +425,7 @@ 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
431
  * Version for the selected tier. Use `latest`, or pin one of that tier's dated
@@ -432,13 +434,13 @@ export interface ParseV2Parameters {
432
434
  * Current `latest` by tier:
433
435
  *
434
436
  * - `fast`: `2025-12-11`
435
- * - `cost_effective`: `2026-06-05`
436
- * - `agentic`: `2026-06-04`
437
- * - `agentic_plus`: `2026-06-04`
437
+ * - `cost_effective`: `2026-06-18`
438
+ * - `agentic`: `2026-06-18`
439
+ * - `agentic_plus`: `2026-06-18`
438
440
  *
439
441
  * Full list: `GET /api/v2/parse/versions`.
440
442
  */
441
- version: 'latest' | '2026-06-05' | '2026-06-04' | '2025-12-11' | (string & {});
443
+ version: 'latest' | '2026-06-18' | '2025-12-11' | (string & {});
442
444
 
443
445
  /**
444
446
  * Options for AI-powered parsing tiers (cost_effective, agentic, agentic_plus).
@@ -565,6 +567,11 @@ export namespace ParseV2Parameters {
565
567
  */
566
568
  html?: InputOptions.HTML;
567
569
 
570
+ /**
571
+ * Image parsing options (applies to .jpg, .jpeg, .png, .webp files)
572
+ */
573
+ image?: InputOptions.Image;
574
+
568
575
  /**
569
576
  * PDF-specific parsing options (applies to .pdf files)
570
577
  */
@@ -604,6 +611,20 @@ export namespace ParseV2Parameters {
604
611
  remove_navigation_elements?: boolean | null;
605
612
  }
606
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
+
607
628
  /**
608
629
  * Presentation parsing options (applies to .pptx, .ppt, .odp, .key files)
609
630
  */
@@ -692,7 +713,7 @@ export namespace ParseV2Parameters {
692
713
  * (cropped regions from layout detection like figures and diagrams). Empty list
693
714
  * saves no images
694
715
  */
695
- images_to_save?: Array<'screenshot' | 'embedded' | 'layout'>;
716
+ images_to_save?: Array<'embedded' | 'layout' | 'screenshot'>;
696
717
 
697
718
  /**
698
719
  * Markdown formatting options including table styles and link annotations
@@ -942,7 +963,7 @@ export namespace ParseV2Parameters {
942
963
  * 'agentic' (balanced), 'agentic_plus' (highest accuracy). Automatically enables
943
964
  * extract_layout and precise_bounding_box when set
944
965
  */
945
- specialized_chart_parsing?: 'agentic_plus' | 'agentic' | 'efficient' | null;
966
+ specialized_chart_parsing?: 'agentic' | 'agentic_plus' | 'efficient' | null;
946
967
  }
947
968
 
948
969
  export namespace ProcessingOptions {
@@ -1199,12 +1220,12 @@ export namespace ParseV2Parameters {
1199
1220
  /**
1200
1221
  * Enable specialized chart parsing with the specified mode
1201
1222
  */
1202
- specialized_chart_parsing?: 'agentic_plus' | 'agentic' | 'efficient' | null;
1223
+ specialized_chart_parsing?: 'agentic' | 'agentic_plus' | 'efficient' | null;
1203
1224
 
1204
1225
  /**
1205
1226
  * Override the parsing tier for matched pages. Must be paired with version
1206
1227
  */
1207
- tier?: 'fast' | 'cost_effective' | 'agentic' | 'agentic_plus' | null;
1228
+ tier?: 'agentic' | 'agentic_plus' | 'cost_effective' | 'fast' | null;
1208
1229
 
1209
1230
  /**
1210
1231
  * Version for the override tier. Required when `tier` is set. Use `latest`, or pin
@@ -1213,13 +1234,13 @@ export namespace ParseV2Parameters {
1213
1234
  * Current `latest` by tier:
1214
1235
  *
1215
1236
  * - `fast`: `2025-12-11`
1216
- * - `cost_effective`: `2026-06-05`
1217
- * - `agentic`: `2026-06-04`
1218
- * - `agentic_plus`: `2026-06-04`
1237
+ * - `cost_effective`: `2026-06-18`
1238
+ * - `agentic`: `2026-06-18`
1239
+ * - `agentic_plus`: `2026-06-18`
1219
1240
  *
1220
1241
  * Full list: `GET /api/v2/parse/versions`.
1221
1242
  */
1222
- version?: 'latest' | '2026-06-05' | '2026-06-04' | '2025-12-11' | (string & {}) | null;
1243
+ version?: 'latest' | '2026-06-18' | '2025-12-11' | (string & {}) | null;
1223
1244
  }
1224
1245
 
1225
1246
  export namespace ParsingConf {
@@ -1377,7 +1398,7 @@ export namespace ParseV2Parameters {
1377
1398
  * Format of the webhook payload body. 'string' (default) sends the payload as a
1378
1399
  * JSON-encoded string; 'json' sends it as a JSON object.
1379
1400
  */
1380
- webhook_output_format?: 'string' | 'json' | null;
1401
+ webhook_output_format?: 'json' | 'string' | null;
1381
1402
 
1382
1403
  /**
1383
1404
  * HTTPS URL to receive webhook POST requests. Must be publicly accessible
@@ -1417,7 +1438,7 @@ export namespace SplitV1Parameters {
1417
1438
  * be assigned to a defined category. 'omit': pages can be classified as
1418
1439
  * 'uncategorized' but are excluded from results.
1419
1440
  */
1420
- allow_uncategorized?: 'include' | 'forbid' | 'omit';
1441
+ allow_uncategorized?: 'forbid' | 'include' | 'omit';
1421
1442
  }
1422
1443
  }
1423
1444
 
@@ -1445,10 +1466,10 @@ export interface ConfigurationCreateParams {
1445
1466
  * Body param: Product-specific configuration parameters.
1446
1467
  */
1447
1468
  parameters:
1448
- | SplitV1Parameters
1449
- | ExtractV2Parameters
1450
1469
  | ClassifyV2Parameters
1470
+ | ExtractV2Parameters
1451
1471
  | ParseV2Parameters
1472
+ | SplitV1Parameters
1452
1473
  | ConfigurationCreateParams.SpreadsheetV1Parameters
1453
1474
  | UntypedParameters;
1454
1475
 
@@ -1523,6 +1544,29 @@ export namespace ConfigurationCreateParams {
1523
1544
  }
1524
1545
  }
1525
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
+
1526
1570
  export interface ConfigurationRetrieveParams {
1527
1571
  organization_id?: string | null;
1528
1572
 
@@ -1549,10 +1593,10 @@ export interface ConfigurationUpdateParams {
1549
1593
  * Body param: Updated parameters (omit to leave unchanged).
1550
1594
  */
1551
1595
  parameters?:
1552
- | SplitV1Parameters
1553
- | ExtractV2Parameters
1554
1596
  | ClassifyV2Parameters
1597
+ | ExtractV2Parameters
1555
1598
  | ParseV2Parameters
1599
+ | SplitV1Parameters
1556
1600
  | ConfigurationUpdateParams.SpreadsheetV1Parameters
1557
1601
  | UntypedParameters
1558
1602
  | null;
@@ -1618,29 +1662,6 @@ export namespace ConfigurationUpdateParams {
1618
1662
  }
1619
1663
  }
1620
1664
 
1621
- export interface ConfigurationListParams extends PaginatedCursorParams {
1622
- /**
1623
- * Return only the latest version per configuration name.
1624
- */
1625
- latest_only?: boolean;
1626
-
1627
- /**
1628
- * Filter by configuration name.
1629
- */
1630
- name?: string | null;
1631
-
1632
- organization_id?: string | null;
1633
-
1634
- /**
1635
- * Filter by one or more product types. Repeat the parameter for multiple values.
1636
- */
1637
- product_type?: Array<
1638
- 'split_v1' | 'extract_v2' | 'classify_v2' | 'parse_v2' | 'spreadsheet_v1' | 'unknown'
1639
- > | null;
1640
-
1641
- project_id?: string | null;
1642
- }
1643
-
1644
1665
  export interface ConfigurationDeleteParams {
1645
1666
  organization_id?: string | null;
1646
1667
 
@@ -1658,9 +1679,9 @@ export declare namespace Configurations {
1658
1679
  type UntypedParameters as UntypedParameters,
1659
1680
  type ConfigurationResponsesPaginatedCursor as ConfigurationResponsesPaginatedCursor,
1660
1681
  type ConfigurationCreateParams as ConfigurationCreateParams,
1682
+ type ConfigurationListParams as ConfigurationListParams,
1661
1683
  type ConfigurationRetrieveParams as ConfigurationRetrieveParams,
1662
1684
  type ConfigurationUpdateParams as ConfigurationUpdateParams,
1663
- type ConfigurationListParams as ConfigurationListParams,
1664
1685
  type ConfigurationDeleteParams as ConfigurationDeleteParams,
1665
1686
  };
1666
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
  }