@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
@@ -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,7 +1365,7 @@ 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
1371
  * Body param: Version for the selected tier. Use `latest`, or pin one of that
@@ -1374,13 +1374,13 @@ export interface ParsingCreateParams {
1374
1374
  * Current `latest` by tier:
1375
1375
  *
1376
1376
  * - `fast`: `2025-12-11`
1377
- * - `cost_effective`: `2026-06-05`
1378
- * - `agentic`: `2026-06-04`
1379
- * - `agentic_plus`: `2026-06-04`
1377
+ * - `cost_effective`: `2026-06-18`
1378
+ * - `agentic`: `2026-06-18`
1379
+ * - `agentic_plus`: `2026-06-18`
1380
1380
  *
1381
1381
  * Full list: `GET /api/v2/parse/versions`.
1382
1382
  */
1383
- version: 'latest' | '2026-06-05' | '2026-06-04' | '2025-12-11' | (string & {});
1383
+ version: 'latest' | '2026-06-18' | '2025-12-11' | (string & {});
1384
1384
 
1385
1385
  /**
1386
1386
  * Query param
@@ -1407,6 +1407,12 @@ export interface ParsingCreateParams {
1407
1407
  */
1408
1408
  client_name?: string | null;
1409
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
+
1410
1416
  /**
1411
1417
  * Body param: Crop boundaries to process only a portion of each page. Values are
1412
1418
  * ratios 0-1 from page edges
@@ -1535,6 +1541,11 @@ export namespace ParsingCreateParams {
1535
1541
  */
1536
1542
  html?: InputOptions.HTML;
1537
1543
 
1544
+ /**
1545
+ * Image parsing options (applies to .jpg, .jpeg, .png, .webp files)
1546
+ */
1547
+ image?: InputOptions.Image;
1548
+
1538
1549
  /**
1539
1550
  * PDF-specific parsing options (applies to .pdf files)
1540
1551
  */
@@ -1574,6 +1585,20 @@ export namespace ParsingCreateParams {
1574
1585
  remove_navigation_elements?: boolean | null;
1575
1586
  }
1576
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
+
1577
1602
  /**
1578
1603
  * Presentation parsing options (applies to .pptx, .ppt, .odp, .key files)
1579
1604
  */
@@ -1662,7 +1687,7 @@ export namespace ParsingCreateParams {
1662
1687
  * (cropped regions from layout detection like figures and diagrams). Empty list
1663
1688
  * saves no images
1664
1689
  */
1665
- images_to_save?: Array<'screenshot' | 'embedded' | 'layout'>;
1690
+ images_to_save?: Array<'embedded' | 'layout' | 'screenshot'>;
1666
1691
 
1667
1692
  /**
1668
1693
  * Markdown formatting options including table styles and link annotations
@@ -1912,7 +1937,7 @@ export namespace ParsingCreateParams {
1912
1937
  * 'agentic' (balanced), 'agentic_plus' (highest accuracy). Automatically enables
1913
1938
  * extract_layout and precise_bounding_box when set
1914
1939
  */
1915
- specialized_chart_parsing?: 'agentic_plus' | 'agentic' | 'efficient' | null;
1940
+ specialized_chart_parsing?: 'agentic' | 'agentic_plus' | 'efficient' | null;
1916
1941
  }
1917
1942
 
1918
1943
  export namespace ProcessingOptions {
@@ -2169,12 +2194,12 @@ export namespace ParsingCreateParams {
2169
2194
  /**
2170
2195
  * Enable specialized chart parsing with the specified mode
2171
2196
  */
2172
- specialized_chart_parsing?: 'agentic_plus' | 'agentic' | 'efficient' | null;
2197
+ specialized_chart_parsing?: 'agentic' | 'agentic_plus' | 'efficient' | null;
2173
2198
 
2174
2199
  /**
2175
2200
  * Override the parsing tier for matched pages. Must be paired with version
2176
2201
  */
2177
- tier?: 'fast' | 'cost_effective' | 'agentic' | 'agentic_plus' | null;
2202
+ tier?: 'agentic' | 'agentic_plus' | 'cost_effective' | 'fast' | null;
2178
2203
 
2179
2204
  /**
2180
2205
  * Version for the override tier. Required when `tier` is set. Use `latest`, or pin
@@ -2183,13 +2208,13 @@ export namespace ParsingCreateParams {
2183
2208
  * Current `latest` by tier:
2184
2209
  *
2185
2210
  * - `fast`: `2025-12-11`
2186
- * - `cost_effective`: `2026-06-05`
2187
- * - `agentic`: `2026-06-04`
2188
- * - `agentic_plus`: `2026-06-04`
2211
+ * - `cost_effective`: `2026-06-18`
2212
+ * - `agentic`: `2026-06-18`
2213
+ * - `agentic_plus`: `2026-06-18`
2189
2214
  *
2190
2215
  * Full list: `GET /api/v2/parse/versions`.
2191
2216
  */
2192
- version?: 'latest' | '2026-06-05' | '2026-06-04' | '2025-12-11' | (string & {}) | null;
2217
+ version?: 'latest' | '2026-06-18' | '2025-12-11' | (string & {}) | null;
2193
2218
  }
2194
2219
 
2195
2220
  export namespace ParsingConf {
@@ -2347,7 +2372,7 @@ export namespace ParsingCreateParams {
2347
2372
  * Format of the webhook payload body. 'string' (default) sends the payload as a
2348
2373
  * JSON-encoded string; 'json' sends it as a JSON object.
2349
2374
  */
2350
- webhook_output_format?: 'string' | 'json' | null;
2375
+ webhook_output_format?: 'json' | 'string' | null;
2351
2376
 
2352
2377
  /**
2353
2378
  * HTTPS URL to receive webhook POST requests. Must be publicly accessible
@@ -2356,6 +2381,26 @@ export namespace ParsingCreateParams {
2356
2381
  }
2357
2382
  }
2358
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
+
2359
2404
  export interface ParsingListParams extends PaginatedCursorParams {
2360
2405
  /**
2361
2406
  * Include items created at or after this timestamp (inclusive)
@@ -2379,27 +2424,7 @@ export interface ParsingListParams extends PaginatedCursorParams {
2379
2424
  /**
2380
2425
  * Filter by job status (PENDING, RUNNING, COMPLETED, FAILED, CANCELLED)
2381
2426
  */
2382
- status?: 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELLED' | null;
2383
- }
2384
-
2385
- export interface ParsingGetParams {
2386
- /**
2387
- * Fields to include: text, markdown, items, metadata, job_metadata,
2388
- * text_content_metadata, markdown_content_metadata, items_content_metadata,
2389
- * metadata_content_metadata, raw_words_content_metadata, xlsx_content_metadata,
2390
- * output_pdf_content_metadata, images_content_metadata. Metadata fields include
2391
- * presigned URLs.
2392
- */
2393
- expand?: Array<string>;
2394
-
2395
- /**
2396
- * Filter to specific image filenames (optional). Example: image_0.png,image_1.jpg
2397
- */
2398
- image_filenames?: string | null;
2399
-
2400
- organization_id?: string | null;
2401
-
2402
- project_id?: string | null;
2427
+ status?: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING' | null;
2403
2428
  }
2404
2429
 
2405
2430
  export declare namespace Parsing {
@@ -2425,7 +2450,7 @@ export declare namespace Parsing {
2425
2450
  type ParsingGetResponse as ParsingGetResponse,
2426
2451
  type ParsingListResponsesPaginatedCursor as ParsingListResponsesPaginatedCursor,
2427
2452
  type ParsingCreateParams as ParsingCreateParams,
2428
- type ParsingListParams as ParsingListParams,
2429
2453
  type ParsingGetParams as ParsingGetParams,
2454
+ type ParsingListParams as ParsingListParams,
2430
2455
  };
2431
2456
  }