@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
@@ -56,22 +56,6 @@ export class Parsing extends APIResource {
56
56
  return this._client.post('/api/v2/parse', { query: { organization_id, project_id }, body, ...options });
57
57
  }
58
58
 
59
- /**
60
- * List parse jobs for the current project.
61
- *
62
- * Filter by `status` or creation date range. Results are paginated — use
63
- * `page_token` from the response to fetch subsequent pages.
64
- */
65
- list(
66
- query: ParsingListParams | null | undefined = {},
67
- options?: RequestOptions,
68
- ): PagePromise<ParsingListResponsesPaginatedCursor, ParsingListResponse> {
69
- return this._client.getAPIList('/api/v2/parse', PaginatedCursor<ParsingListResponse>, {
70
- query,
71
- ...options,
72
- });
73
- }
74
-
75
59
  /**
76
60
  * Retrieve a parse job with optional expanded content.
77
61
  *
@@ -93,6 +77,22 @@ export class Parsing extends APIResource {
93
77
  return this._client.get(path`/api/v2/parse/${jobID}`, { query, ...options });
94
78
  }
95
79
 
80
+ /**
81
+ * List parse jobs for the current project.
82
+ *
83
+ * Filter by `status` or creation date range. Results are paginated — use
84
+ * `page_token` from the response to fetch subsequent pages.
85
+ */
86
+ list(
87
+ query: ParsingListParams | null | undefined = {},
88
+ options?: RequestOptions,
89
+ ): PagePromise<ParsingListResponsesPaginatedCursor, ParsingListResponse> {
90
+ return this._client.getAPIList('/api/v2/parse', PaginatedCursor<ParsingListResponse>, {
91
+ query,
92
+ ...options,
93
+ });
94
+ }
95
+
96
96
  /**
97
97
  * Wait for a parse job to complete by polling until it reaches a terminal state.
98
98
  *
@@ -326,13 +326,13 @@ export interface CodeItem {
326
326
  /**
327
327
  * Enum for representing the different available page error handling modes.
328
328
  */
329
- export type FailPageMode = 'raw_text' | 'blank_page' | 'error_message';
329
+ export type FailPageMode = 'blank_page' | 'error_message' | 'raw_text';
330
330
 
331
331
  export interface FooterItem {
332
332
  /**
333
333
  * List of items within the footer
334
334
  */
335
- items: Array<TextItem | HeadingItem | ListItem | CodeItem | TableItem | ImageItem | LinkItem>;
335
+ items: Array<CodeItem | HeadingItem | ImageItem | LinkItem | ListItem | TableItem | TextItem>;
336
336
 
337
337
  /**
338
338
  * Markdown representation preserving formatting
@@ -354,7 +354,7 @@ export interface HeaderItem {
354
354
  /**
355
355
  * List of items within the header
356
356
  */
357
- items: Array<TextItem | HeadingItem | ListItem | CodeItem | TableItem | ImageItem | LinkItem>;
357
+ items: Array<CodeItem | HeadingItem | ImageItem | LinkItem | ListItem | TableItem | TextItem>;
358
358
 
359
359
  /**
360
360
  * Markdown representation preserving formatting
@@ -484,153 +484,153 @@ export interface ListItem {
484
484
  * Enum for supported file extensions.
485
485
  */
486
486
  export type LlamaParseSupportedFileExtensions =
487
- | '.pdf'
488
487
  | '.abw'
489
488
  | '.awt'
489
+ | '.azw'
490
+ | '.azw3'
491
+ | '.azw4'
492
+ | '.bmp'
493
+ | '.cb7'
494
+ | '.cbc'
495
+ | '.cbr'
496
+ | '.cbz'
490
497
  | '.cgm'
498
+ | '.chm'
499
+ | '.csv'
491
500
  | '.cwk'
501
+ | '.dbf'
502
+ | '.dif'
503
+ | '.djvu'
492
504
  | '.doc'
493
505
  | '.docm'
494
506
  | '.docx'
495
507
  | '.dot'
496
508
  | '.dotm'
497
509
  | '.dotx'
510
+ | '.epub'
511
+ | '.et'
512
+ | '.eth'
513
+ | '.fb2'
514
+ | '.fbz'
498
515
  | '.fodg'
499
516
  | '.fodp'
500
- | '.fopd'
517
+ | '.fods'
501
518
  | '.fodt'
502
- | '.fb2'
519
+ | '.fopd'
520
+ | '.gif'
521
+ | '.heic'
522
+ | '.heif'
523
+ | '.htm'
524
+ | '.html'
525
+ | '.htmlz'
503
526
  | '.hwp'
527
+ | '.jpeg'
528
+ | '.jpg'
529
+ | '.key'
530
+ | '.lit'
531
+ | '.lrf'
504
532
  | '.lwp'
533
+ | '.m4a'
505
534
  | '.mcw'
535
+ | '.md'
536
+ | '.mobi'
537
+ | '.mp3'
538
+ | '.mp4'
539
+ | '.mpeg'
540
+ | '.mpga'
506
541
  | '.mw'
507
542
  | '.mwd'
543
+ | '.numbers'
508
544
  | '.odf'
545
+ | '.odg'
546
+ | '.odp'
547
+ | '.ods'
509
548
  | '.odt'
510
549
  | '.otg'
550
+ | '.otp'
551
+ | '.ots'
511
552
  | '.ott'
512
553
  | '.pages'
513
554
  | '.pbd'
555
+ | '.pdb'
556
+ | '.pdf'
557
+ | '.pml'
558
+ | '.png'
559
+ | '.pot'
560
+ | '.potm'
561
+ | '.potx'
562
+ | '.ppt'
563
+ | '.pptm'
564
+ | '.pptx'
565
+ | '.prc'
566
+ | '.prn'
514
567
  | '.psw'
568
+ | '.qpw'
569
+ | '.rb'
515
570
  | '.rtf'
516
571
  | '.sda'
517
572
  | '.sdd'
518
573
  | '.sdp'
519
574
  | '.sdw'
520
575
  | '.sgl'
576
+ | '.slk'
577
+ | '.snb'
578
+ | '.stc'
521
579
  | '.std'
580
+ | '.sti'
522
581
  | '.stw'
582
+ | '.svg'
583
+ | '.sxc'
523
584
  | '.sxd'
524
585
  | '.sxg'
586
+ | '.sxi'
525
587
  | '.sxm'
526
588
  | '.sxw'
589
+ | '.sylk'
590
+ | '.tcr'
591
+ | '.tif'
592
+ | '.tiff'
593
+ | '.tsv'
594
+ | '.txtz'
527
595
  | '.uof'
528
596
  | '.uop'
597
+ | '.uos'
598
+ | '.uos1'
599
+ | '.uos2'
529
600
  | '.uot'
601
+ | '.vdx'
530
602
  | '.vor'
531
- | '.wpd'
532
- | '.wps'
533
- | '.wpt'
534
- | '.wri'
535
- | '.wn'
536
- | '.xml'
537
- | '.zabw'
538
- | '.key'
539
- | '.odp'
540
- | '.odg'
541
- | '.otp'
542
- | '.pot'
543
- | '.potm'
544
- | '.potx'
545
- | '.ppt'
546
- | '.pptm'
547
- | '.pptx'
548
- | '.sti'
549
- | '.sxi'
550
603
  | '.vsd'
551
604
  | '.vsdm'
552
605
  | '.vsdx'
553
- | '.vdx'
554
- | '.bmp'
555
- | '.gif'
556
- | '.heic'
557
- | '.heif'
558
- | '.jpg'
559
- | '.jpeg'
560
- | '.png'
561
- | '.svg'
562
- | '.tif'
563
- | '.tiff'
564
- | '.webp'
565
- | '.htm'
566
- | '.html'
567
- | '.xhtm'
568
- | '.csv'
569
- | '.dbf'
570
- | '.dif'
571
- | '.et'
572
- | '.eth'
573
- | '.fods'
574
- | '.numbers'
575
- | '.ods'
576
- | '.ots'
577
- | '.prn'
578
- | '.qpw'
579
- | '.slk'
580
- | '.stc'
581
- | '.sxc'
582
- | '.sylk'
583
- | '.tsv'
584
- | '.uos1'
585
- | '.uos2'
586
- | '.uos'
606
+ | '.wav'
587
607
  | '.wb1'
588
608
  | '.wb2'
589
609
  | '.wb3'
610
+ | '.webm'
611
+ | '.webp'
590
612
  | '.wk1'
591
613
  | '.wk2'
592
614
  | '.wk3'
593
615
  | '.wk4'
594
616
  | '.wks'
617
+ | '.wn'
618
+ | '.wpd'
619
+ | '.wps'
620
+ | '.wpt'
595
621
  | '.wq1'
596
622
  | '.wq2'
623
+ | '.wri'
624
+ | '.xhtm'
597
625
  | '.xlr'
598
626
  | '.xls'
599
627
  | '.xlsb'
600
628
  | '.xlsm'
601
629
  | '.xlsx'
602
630
  | '.xlw'
603
- | '.azw'
604
- | '.azw3'
605
- | '.azw4'
606
- | '.cb7'
607
- | '.cbc'
608
- | '.cbr'
609
- | '.cbz'
610
- | '.chm'
611
- | '.djvu'
612
- | '.epub'
613
- | '.fbz'
614
- | '.htmlz'
615
- | '.lit'
616
- | '.lrf'
617
- | '.md'
618
- | '.mobi'
619
- | '.pdb'
620
- | '.pml'
621
- | '.prc'
622
- | '.rb'
623
- | '.snb'
624
- | '.tcr'
625
- | '.txtz'
626
- | '.m4a'
627
- | '.mp3'
628
- | '.mp4'
629
- | '.mpeg'
630
- | '.mpga'
631
- | '.wav'
632
- | '.webm'
633
- | '.yxmd';
631
+ | '.xml'
632
+ | '.yxmd'
633
+ | '.zabw';
634
634
 
635
635
  /**
636
636
  * A parse job (v1).
@@ -661,30 +661,63 @@ export interface ParsingJob {
661
661
  * Enum for representing the languages supported by the parser.
662
662
  */
663
663
  export type ParsingLanguages =
664
+ | 'abq'
665
+ | 'ady'
664
666
  | 'af'
667
+ | 'ang'
668
+ | 'ar'
669
+ | 'as'
670
+ | 'ava'
665
671
  | 'az'
672
+ | 'be'
673
+ | 'bg'
674
+ | 'bgc'
675
+ | 'bh'
676
+ | 'bho'
677
+ | 'bn'
666
678
  | 'bs'
679
+ | 'ch_sim'
680
+ | 'ch_tra'
681
+ | 'che'
667
682
  | 'cs'
668
683
  | 'cy'
669
684
  | 'da'
685
+ | 'dar'
670
686
  | 'de'
671
687
  | 'en'
672
688
  | 'es'
673
689
  | 'et'
690
+ | 'fa'
674
691
  | 'fr'
675
692
  | 'ga'
693
+ | 'gom'
694
+ | 'hi'
676
695
  | 'hr'
677
696
  | 'hu'
678
697
  | 'id'
698
+ | 'inh'
679
699
  | 'is'
680
700
  | 'it'
701
+ | 'ja'
702
+ | 'kbd'
703
+ | 'kn'
704
+ | 'ko'
681
705
  | 'ku'
682
706
  | 'la'
707
+ | 'lbe'
708
+ | 'lez'
683
709
  | 'lt'
684
710
  | 'lv'
711
+ | 'mah'
712
+ | 'mai'
685
713
  | 'mi'
714
+ | 'mn'
715
+ | 'mni'
716
+ | 'mr'
686
717
  | 'ms'
687
718
  | 'mt'
719
+ | 'ne'
720
+ | 'new'
688
721
  | 'nl'
689
722
  | 'no'
690
723
  | 'oc'
@@ -692,79 +725,46 @@ export type ParsingLanguages =
692
725
  | 'pl'
693
726
  | 'pt'
694
727
  | 'ro'
728
+ | 'rs_cyrillic'
695
729
  | 'rs_latin'
730
+ | 'ru'
731
+ | 'sa'
732
+ | 'sck'
696
733
  | 'sk'
697
734
  | 'sl'
698
735
  | 'sq'
699
736
  | 'sv'
700
737
  | 'sw'
738
+ | 'ta'
739
+ | 'tab'
740
+ | 'te'
741
+ | 'th'
742
+ | 'tjk'
701
743
  | 'tl'
702
744
  | 'tr'
703
- | 'uz'
704
- | 'vi'
705
- | 'ar'
706
- | 'fa'
707
745
  | 'ug'
708
- | 'ur'
709
- | 'bn'
710
- | 'as'
711
- | 'mni'
712
- | 'ru'
713
- | 'rs_cyrillic'
714
- | 'be'
715
- | 'bg'
716
746
  | 'uk'
717
- | 'mn'
718
- | 'abq'
719
- | 'ady'
720
- | 'kbd'
721
- | 'ava'
722
- | 'dar'
723
- | 'inh'
724
- | 'che'
725
- | 'lbe'
726
- | 'lez'
727
- | 'tab'
728
- | 'tjk'
729
- | 'hi'
730
- | 'mr'
731
- | 'ne'
732
- | 'bh'
733
- | 'mai'
734
- | 'ang'
735
- | 'bho'
736
- | 'mah'
737
- | 'sck'
738
- | 'new'
739
- | 'gom'
740
- | 'sa'
741
- | 'bgc'
742
- | 'th'
743
- | 'ch_sim'
744
- | 'ch_tra'
745
- | 'ja'
746
- | 'ko'
747
- | 'ta'
748
- | 'te'
749
- | 'kn';
747
+ | 'ur'
748
+ | 'uz'
749
+ | 'vi';
750
750
 
751
751
  /**
752
752
  * Enum for representing the mode of parsing to be used.
753
753
  */
754
754
  export type ParsingMode =
755
- | 'parse_page_without_llm'
756
- | 'parse_page_with_llm'
757
- | 'parse_page_with_lvm'
758
- | 'parse_page_with_agent'
759
- | 'parse_page_with_layout_agent'
755
+ | 'parse_document_with_agent'
760
756
  | 'parse_document_with_llm'
761
757
  | 'parse_document_with_lvm'
762
- | 'parse_document_with_agent';
758
+ | 'parse_page_with_agent'
759
+ | 'parse_page_with_layout_agent'
760
+ | 'parse_page_with_llm'
761
+ | 'parse_page_with_lvm'
762
+ | 'parse_page_without_llm';
763
763
 
764
764
  /**
765
765
  * Enum for representing the status of a job
766
766
  */
767
- export type StatusEnum = 'PENDING' | 'SUCCESS' | 'ERROR' | 'PARTIAL_SUCCESS' | 'CANCELLED';
767
+ export type StatusEnum = 'CANCELLED' | 'ERROR' | 'PARTIAL_SUCCESS' | 'PENDING' | 'SUCCESS';
768
768
 
769
769
  export interface TableItem {
770
770
  /**
@@ -870,7 +870,7 @@ export interface ParsingCreateResponse {
870
870
  /**
871
871
  * Current job status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED
872
872
  */
873
- status: 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
873
+ status: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING';
874
874
 
875
875
  /**
876
876
  * Creation datetime
@@ -915,7 +915,7 @@ export interface ParsingListResponse {
915
915
  /**
916
916
  * Current job status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED
917
917
  */
918
- status: 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
918
+ status: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING';
919
919
 
920
920
  /**
921
921
  * Creation datetime
@@ -1021,7 +1021,7 @@ export namespace ParsingGetResponse {
1021
1021
  /**
1022
1022
  * Current job status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED
1023
1023
  */
1024
- status: 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
1024
+ status: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING';
1025
1025
 
1026
1026
  /**
1027
1027
  * Creation datetime
@@ -1088,7 +1088,7 @@ export namespace ParsingGetResponse {
1088
1088
  * Image category: 'screenshot' (full page), 'embedded' (images in document), or
1089
1089
  * 'layout' (cropped from layout detection)
1090
1090
  */
1091
- category?: 'screenshot' | 'embedded' | 'layout' | null;
1091
+ category?: 'embedded' | 'layout' | 'screenshot' | null;
1092
1092
 
1093
1093
  /**
1094
1094
  * MIME type of the image
@@ -1151,15 +1151,15 @@ export namespace ParsingGetResponse {
1151
1151
  * List of structured items on the page
1152
1152
  */
1153
1153
  items: Array<
1154
- | ParsingAPI.TextItem
1155
- | ParsingAPI.HeadingItem
1156
- | ParsingAPI.ListItem
1157
1154
  | ParsingAPI.CodeItem
1158
- | ParsingAPI.TableItem
1155
+ | ParsingAPI.FooterItem
1156
+ | ParsingAPI.HeaderItem
1157
+ | ParsingAPI.HeadingItem
1159
1158
  | ParsingAPI.ImageItem
1160
1159
  | ParsingAPI.LinkItem
1161
- | ParsingAPI.HeaderItem
1162
- | ParsingAPI.FooterItem
1160
+ | ParsingAPI.ListItem
1161
+ | ParsingAPI.TableItem
1162
+ | ParsingAPI.TextItem
1163
1163
  >;
1164
1164
 
1165
1165
  /**
@@ -1365,14 +1365,22 @@ export interface ParsingCreateParams {
1365
1365
  * (balanced), 'agentic' (AI-powered with custom prompts), or 'agentic_plus'
1366
1366
  * (premium AI with highest accuracy)
1367
1367
  */
1368
- tier: 'fast' | 'cost_effective' | 'agentic' | 'agentic_plus';
1368
+ tier: 'fast' | 'cost_effective' | 'agentic' | 'agentic_plus' | (string & {});
1369
1369
 
1370
1370
  /**
1371
- * Body param: Tier version. Use 'latest' for the current stable version, or pin a
1372
- * dated version for reproducible results. See GET /api/v2/parse/versions for the
1373
- * per-tier list.
1371
+ * Body param: Version for the selected tier. Use `latest`, or pin one of that
1372
+ * tier's dated versions.
1373
+ *
1374
+ * Current `latest` by tier:
1375
+ *
1376
+ * - `fast`: `2025-12-11`
1377
+ * - `cost_effective`: `2026-06-18`
1378
+ * - `agentic`: `2026-06-18`
1379
+ * - `agentic_plus`: `2026-06-18`
1380
+ *
1381
+ * Full list: `GET /api/v2/parse/versions`.
1374
1382
  */
1375
- version: 'latest' | '2026-05-21' | '2026-04-09' | '2025-12-11' | (string & {});
1383
+ version: 'latest' | '2026-06-18' | '2025-12-11' | (string & {});
1376
1384
 
1377
1385
  /**
1378
1386
  * Query param
@@ -1399,6 +1407,12 @@ export interface ParsingCreateParams {
1399
1407
  */
1400
1408
  client_name?: string | null;
1401
1409
 
1410
+ /**
1411
+ * Body param: ID of a saved parse configuration. When set, `tier` and `version`
1412
+ * default to the saved configuration's values — omit them or pass `'configured'`.
1413
+ */
1414
+ configuration_id?: string | null;
1415
+
1402
1416
  /**
1403
1417
  * Body param: Crop boundaries to process only a portion of each page. Values are
1404
1418
  * ratios 0-1 from page edges
@@ -1527,6 +1541,11 @@ export namespace ParsingCreateParams {
1527
1541
  */
1528
1542
  html?: InputOptions.HTML;
1529
1543
 
1544
+ /**
1545
+ * Image parsing options (applies to .jpg, .jpeg, .png, .webp files)
1546
+ */
1547
+ image?: InputOptions.Image;
1548
+
1530
1549
  /**
1531
1550
  * PDF-specific parsing options (applies to .pdf files)
1532
1551
  */
@@ -1566,6 +1585,20 @@ export namespace ParsingCreateParams {
1566
1585
  remove_navigation_elements?: boolean | null;
1567
1586
  }
1568
1587
 
1588
+ /**
1589
+ * Image parsing options (applies to .jpg, .jpeg, .png, .webp files)
1590
+ */
1591
+ export interface Image {
1592
+ /**
1593
+ * Detect documents photographed with a camera (e.g. phone scans of receipts or
1594
+ * forms), then crop, perspective-correct, and flatten uneven lighting and shadows
1595
+ * before parsing. Supports JPEG, PNG, WebP, and HEIC/HEIF inputs. Improves results
1596
+ * when the document is tilted or surrounded by background. Images that already
1597
+ * look like clean scans are left untouched
1598
+ */
1599
+ camera_photo_correction?: boolean | null;
1600
+ }
1601
+
1569
1602
  /**
1570
1603
  * Presentation parsing options (applies to .pptx, .ppt, .odp, .key files)
1571
1604
  */
@@ -1635,13 +1668,26 @@ export namespace ParsingCreateParams {
1635
1668
  */
1636
1669
  extract_printed_page_number?: boolean | null;
1637
1670
 
1671
+ /**
1672
+ * Bounding-box granularity levels to compute for the parse. 'word' computes one
1673
+ * bounding box per detected word; 'line' computes one per text line; 'cell'
1674
+ * computes one per table cell. Multiple levels can be requested. Empty list
1675
+ * (default) disables granular bboxes — only item-level layout boxes are returned
1676
+ * on the result. When set, the computed boxes are not inlined on the result items;
1677
+ * they are written to a separate `grounded_items` sidecar (JSONL, one row per
1678
+ * page) and exposed as `result_content_metadata.grounded_items` (a presigned
1679
+ * download URL) on the parse result. Each row matches the `GroundedJsonItem`
1680
+ * shape.
1681
+ */
1682
+ granular_bboxes?: Array<'cell' | 'line' | 'word'>;
1683
+
1638
1684
  /**
1639
1685
  * Image categories to extract and save. Options: 'screenshot' (full page renders
1640
1686
  * useful for visual QA), 'embedded' (images found within the document), 'layout'
1641
1687
  * (cropped regions from layout detection like figures and diagrams). Empty list
1642
1688
  * saves no images
1643
1689
  */
1644
- images_to_save?: Array<'screenshot' | 'embedded' | 'layout'>;
1690
+ images_to_save?: Array<'embedded' | 'layout' | 'screenshot'>;
1645
1691
 
1646
1692
  /**
1647
1693
  * Markdown formatting options including table styles and link annotations
@@ -1891,7 +1937,7 @@ export namespace ParsingCreateParams {
1891
1937
  * 'agentic' (balanced), 'agentic_plus' (highest accuracy). Automatically enables
1892
1938
  * extract_layout and precise_bounding_box when set
1893
1939
  */
1894
- specialized_chart_parsing?: 'agentic_plus' | 'agentic' | 'efficient' | null;
1940
+ specialized_chart_parsing?: 'agentic' | 'agentic_plus' | 'efficient' | null;
1895
1941
  }
1896
1942
 
1897
1943
  export namespace ProcessingOptions {
@@ -2148,17 +2194,27 @@ export namespace ParsingCreateParams {
2148
2194
  /**
2149
2195
  * Enable specialized chart parsing with the specified mode
2150
2196
  */
2151
- specialized_chart_parsing?: 'agentic_plus' | 'agentic' | 'efficient' | null;
2197
+ specialized_chart_parsing?: 'agentic' | 'agentic_plus' | 'efficient' | null;
2152
2198
 
2153
2199
  /**
2154
2200
  * Override the parsing tier for matched pages. Must be paired with version
2155
2201
  */
2156
- tier?: 'fast' | 'cost_effective' | 'agentic' | 'agentic_plus' | null;
2202
+ tier?: 'agentic' | 'agentic_plus' | 'cost_effective' | 'fast' | null;
2157
2203
 
2158
2204
  /**
2159
- * Tier version when overriding tier. Required when tier is specified
2205
+ * Version for the override tier. Required when `tier` is set. Use `latest`, or pin
2206
+ * one of that tier's dated versions.
2207
+ *
2208
+ * Current `latest` by tier:
2209
+ *
2210
+ * - `fast`: `2025-12-11`
2211
+ * - `cost_effective`: `2026-06-18`
2212
+ * - `agentic`: `2026-06-18`
2213
+ * - `agentic_plus`: `2026-06-18`
2214
+ *
2215
+ * Full list: `GET /api/v2/parse/versions`.
2160
2216
  */
2161
- version?: 'latest' | '2026-05-21' | '2026-04-09' | '2025-12-11' | (string & {}) | null;
2217
+ version?: 'latest' | '2026-06-18' | '2025-12-11' | (string & {}) | null;
2162
2218
  }
2163
2219
 
2164
2220
  export namespace ParsingConf {
@@ -2300,8 +2356,9 @@ export namespace ParsingCreateParams {
2300
2356
  export interface WebhookConfiguration {
2301
2357
  /**
2302
2358
  * Events that trigger this webhook. Options: 'parse.success' (job completed),
2303
- * 'parse.failure' (job failed), 'parse.partial' (some pages failed). If not
2304
- * specified, webhook fires for all events
2359
+ * 'parse.error' (job failed), 'parse.partial_success' (some pages failed),
2360
+ * 'parse.pending', 'parse.running', 'parse.cancelled'. If not specified, webhook
2361
+ * fires for all events
2305
2362
  */
2306
2363
  webhook_events?: Array<string> | null;
2307
2364
 
@@ -2311,6 +2368,12 @@ export namespace ParsingCreateParams {
2311
2368
  */
2312
2369
  webhook_headers?: { [key: string]: unknown } | null;
2313
2370
 
2371
+ /**
2372
+ * Format of the webhook payload body. 'string' (default) sends the payload as a
2373
+ * JSON-encoded string; 'json' sends it as a JSON object.
2374
+ */
2375
+ webhook_output_format?: 'json' | 'string' | null;
2376
+
2314
2377
  /**
2315
2378
  * HTTPS URL to receive webhook POST requests. Must be publicly accessible
2316
2379
  */
@@ -2318,6 +2381,26 @@ export namespace ParsingCreateParams {
2318
2381
  }
2319
2382
  }
2320
2383
 
2384
+ export interface ParsingGetParams {
2385
+ /**
2386
+ * Fields to include: text, markdown, items, metadata, job_metadata,
2387
+ * text_content_metadata, markdown_content_metadata, items_content_metadata,
2388
+ * metadata_content_metadata, raw_words_content_metadata, xlsx_content_metadata,
2389
+ * output_pdf_content_metadata, images_content_metadata. Metadata fields include
2390
+ * presigned URLs.
2391
+ */
2392
+ expand?: Array<string>;
2393
+
2394
+ /**
2395
+ * Filter to specific image filenames (optional). Example: image_0.png,image_1.jpg
2396
+ */
2397
+ image_filenames?: string | null;
2398
+
2399
+ organization_id?: string | null;
2400
+
2401
+ project_id?: string | null;
2402
+ }
2403
+
2321
2404
  export interface ParsingListParams extends PaginatedCursorParams {
2322
2405
  /**
2323
2406
  * Include items created at or after this timestamp (inclusive)
@@ -2341,27 +2424,7 @@ export interface ParsingListParams extends PaginatedCursorParams {
2341
2424
  /**
2342
2425
  * Filter by job status (PENDING, RUNNING, COMPLETED, FAILED, CANCELLED)
2343
2426
  */
2344
- status?: 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELLED' | null;
2345
- }
2346
-
2347
- export interface ParsingGetParams {
2348
- /**
2349
- * Fields to include: text, markdown, items, metadata, job_metadata,
2350
- * text_content_metadata, markdown_content_metadata, items_content_metadata,
2351
- * metadata_content_metadata, raw_words_content_metadata, xlsx_content_metadata,
2352
- * output_pdf_content_metadata, images_content_metadata. Metadata fields include
2353
- * presigned URLs.
2354
- */
2355
- expand?: Array<string>;
2356
-
2357
- /**
2358
- * Filter to specific image filenames (optional). Example: image_0.png,image_1.jpg
2359
- */
2360
- image_filenames?: string | null;
2361
-
2362
- organization_id?: string | null;
2363
-
2364
- project_id?: string | null;
2427
+ status?: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING' | null;
2365
2428
  }
2366
2429
 
2367
2430
  export declare namespace Parsing {
@@ -2387,7 +2450,7 @@ export declare namespace Parsing {
2387
2450
  type ParsingGetResponse as ParsingGetResponse,
2388
2451
  type ParsingListResponsesPaginatedCursor as ParsingListResponsesPaginatedCursor,
2389
2452
  type ParsingCreateParams as ParsingCreateParams,
2390
- type ParsingListParams as ParsingListParams,
2391
2453
  type ParsingGetParams as ParsingGetParams,
2454
+ type ParsingListParams as ParsingListParams,
2392
2455
  };
2393
2456
  }