@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
@@ -8,23 +8,21 @@ import { path } from '../../internal/utils/path';
8
8
 
9
9
  export class AgentData extends APIResource {
10
10
  /**
11
- * Create new agent data.
11
+ * Get agent data by ID.
12
12
  *
13
13
  * @example
14
14
  * ```ts
15
- * const agentData = await client.beta.agentData.create({
16
- * data: { foo: 'bar' },
17
- * deployment_name: 'deployment_name',
18
- * });
15
+ * const agentData = await client.beta.agentData.get(
16
+ * 'item_id',
17
+ * );
19
18
  * ```
20
19
  */
21
- create(params: AgentDataCreateParams, options?: RequestOptions): APIPromise<AgentData> {
22
- const { organization_id, project_id, ...body } = params;
23
- return this._client.post('/api/v1/beta/agent-data', {
24
- query: { organization_id, project_id },
25
- body,
26
- ...options,
27
- });
20
+ get(
21
+ itemID: string,
22
+ query: AgentDataGetParams | null | undefined = {},
23
+ options?: RequestOptions,
24
+ ): APIPromise<AgentData> {
25
+ return this._client.get(path`/api/v1/beta/agent-data/${itemID}`, { query, ...options });
28
26
  }
29
27
 
30
28
  /**
@@ -79,101 +77,103 @@ export class AgentData extends APIResource {
79
77
  }
80
78
 
81
79
  /**
82
- * Aggregate agent data with grouping and optional counting/first item retrieval.
80
+ * Create new agent data.
83
81
  *
84
82
  * @example
85
83
  * ```ts
86
- * // Automatically fetches more pages as needed.
87
- * for await (const agentDataAggregateResponse of client.beta.agentData.aggregate(
88
- * { deployment_name: 'deployment_name' },
89
- * )) {
90
- * // ...
91
- * }
84
+ * const agentData = await client.beta.agentData.create({
85
+ * data: { foo: 'bar' },
86
+ * deployment_name: 'deployment_name',
87
+ * });
92
88
  * ```
93
89
  */
94
- aggregate(
95
- params: AgentDataAggregateParams,
96
- options?: RequestOptions,
97
- ): PagePromise<AgentDataAggregateResponsesPaginatedCursorPost, AgentDataAggregateResponse> {
90
+ create(params: AgentDataCreateParams, options?: RequestOptions): APIPromise<AgentData> {
98
91
  const { organization_id, project_id, ...body } = params;
99
- return this._client.getAPIList(
100
- '/api/v1/beta/agent-data/:aggregate',
101
- PaginatedCursorPost<AgentDataAggregateResponse>,
102
- { query: { organization_id, project_id }, body, method: 'post', ...options },
103
- );
92
+ return this._client.post('/api/v1/beta/agent-data', {
93
+ query: { organization_id, project_id },
94
+ body,
95
+ ...options,
96
+ });
104
97
  }
105
98
 
106
99
  /**
107
- * Bulk delete agent data by query (deployment_name, collection, optional filters).
100
+ * Search agent data with filtering, sorting, and pagination.
108
101
  *
109
102
  * @example
110
103
  * ```ts
111
- * const response = await client.beta.agentData.deleteByQuery({
104
+ * // Automatically fetches more pages as needed.
105
+ * for await (const agentData of client.beta.agentData.search({
112
106
  * deployment_name: 'deployment_name',
113
- * });
107
+ * })) {
108
+ * // ...
109
+ * }
114
110
  * ```
115
111
  */
116
- deleteByQuery(
117
- params: AgentDataDeleteByQueryParams,
112
+ search(
113
+ params: AgentDataSearchParams,
118
114
  options?: RequestOptions,
119
- ): APIPromise<AgentDataDeleteByQueryResponse> {
115
+ ): PagePromise<AgentDataPaginatedCursorPost, AgentData> {
120
116
  const { organization_id, project_id, ...body } = params;
121
- return this._client.post('/api/v1/beta/agent-data/:delete', {
117
+ return this._client.getAPIList('/api/v1/beta/agent-data/:search', PaginatedCursorPost<AgentData>, {
122
118
  query: { organization_id, project_id },
123
119
  body,
120
+ method: 'post',
124
121
  ...options,
125
122
  });
126
123
  }
127
124
 
128
125
  /**
129
- * Get agent data by ID.
126
+ * Aggregate agent data with grouping and optional counting/first item retrieval.
130
127
  *
131
128
  * @example
132
129
  * ```ts
133
- * const agentData = await client.beta.agentData.get(
134
- * 'item_id',
135
- * );
130
+ * // Automatically fetches more pages as needed.
131
+ * for await (const agentDataAggregateResponse of client.beta.agentData.aggregate(
132
+ * { deployment_name: 'deployment_name' },
133
+ * )) {
134
+ * // ...
135
+ * }
136
136
  * ```
137
137
  */
138
- get(
139
- itemID: string,
140
- query: AgentDataGetParams | null | undefined = {},
138
+ aggregate(
139
+ params: AgentDataAggregateParams,
141
140
  options?: RequestOptions,
142
- ): APIPromise<AgentData> {
143
- return this._client.get(path`/api/v1/beta/agent-data/${itemID}`, { query, ...options });
141
+ ): PagePromise<AgentDataAggregateResponsesPaginatedCursorPost, AgentDataAggregateResponse> {
142
+ const { organization_id, project_id, ...body } = params;
143
+ return this._client.getAPIList(
144
+ '/api/v1/beta/agent-data/:aggregate',
145
+ PaginatedCursorPost<AgentDataAggregateResponse>,
146
+ { query: { organization_id, project_id }, body, method: 'post', ...options },
147
+ );
144
148
  }
145
149
 
146
150
  /**
147
- * Search agent data with filtering, sorting, and pagination.
151
+ * Bulk delete agent data by query (deployment_name, collection, optional filters).
148
152
  *
149
153
  * @example
150
154
  * ```ts
151
- * // Automatically fetches more pages as needed.
152
- * for await (const agentData of client.beta.agentData.search({
155
+ * const response = await client.beta.agentData.deleteByQuery({
153
156
  * deployment_name: 'deployment_name',
154
- * })) {
155
- * // ...
156
- * }
157
+ * });
157
158
  * ```
158
159
  */
159
- search(
160
- params: AgentDataSearchParams,
160
+ deleteByQuery(
161
+ params: AgentDataDeleteByQueryParams,
161
162
  options?: RequestOptions,
162
- ): PagePromise<AgentDataPaginatedCursorPost, AgentData> {
163
+ ): APIPromise<AgentDataDeleteByQueryResponse> {
163
164
  const { organization_id, project_id, ...body } = params;
164
- return this._client.getAPIList('/api/v1/beta/agent-data/:search', PaginatedCursorPost<AgentData>, {
165
+ return this._client.post('/api/v1/beta/agent-data/:delete', {
165
166
  query: { organization_id, project_id },
166
167
  body,
167
- method: 'post',
168
168
  ...options,
169
169
  });
170
170
  }
171
171
  }
172
172
 
173
- export type AgentDataAggregateResponsesPaginatedCursorPost = PaginatedCursorPost<AgentDataAggregateResponse>;
174
-
175
173
  export type AgentDataPaginatedCursorPost = PaginatedCursorPost<AgentData>;
176
174
 
175
+ export type AgentDataAggregateResponsesPaginatedCursorPost = PaginatedCursorPost<AgentDataAggregateResponse>;
176
+
177
177
  /**
178
178
  * API Result for a single agent data item
179
179
  */
@@ -213,16 +213,17 @@ export interface AgentDataDeleteByQueryResponse {
213
213
  deleted_count: number;
214
214
  }
215
215
 
216
- export interface AgentDataCreateParams {
217
- /**
218
- * Body param
219
- */
220
- data: { [key: string]: unknown };
216
+ export interface AgentDataGetParams {
217
+ organization_id?: string | null;
218
+
219
+ project_id?: string | null;
220
+ }
221
221
 
222
+ export interface AgentDataUpdateParams {
222
223
  /**
223
224
  * Body param
224
225
  */
225
- deployment_name: string;
226
+ data: { [key: string]: unknown };
226
227
 
227
228
  /**
228
229
  * Query param
@@ -233,18 +234,24 @@ export interface AgentDataCreateParams {
233
234
  * Query param
234
235
  */
235
236
  project_id?: string | null;
237
+ }
238
+
239
+ export interface AgentDataDeleteParams {
240
+ organization_id?: string | null;
241
+
242
+ project_id?: string | null;
243
+ }
236
244
 
245
+ export interface AgentDataCreateParams {
237
246
  /**
238
247
  * Body param
239
248
  */
240
- collection?: string;
241
- }
249
+ data: { [key: string]: unknown };
242
250
 
243
- export interface AgentDataUpdateParams {
244
251
  /**
245
252
  * Body param
246
253
  */
247
- data: { [key: string]: unknown };
254
+ deployment_name: string;
248
255
 
249
256
  /**
250
257
  * Query param
@@ -255,17 +262,16 @@ export interface AgentDataUpdateParams {
255
262
  * Query param
256
263
  */
257
264
  project_id?: string | null;
258
- }
259
-
260
- export interface AgentDataDeleteParams {
261
- organization_id?: string | null;
262
265
 
263
- project_id?: string | null;
266
+ /**
267
+ * Body param
268
+ */
269
+ collection?: string;
264
270
  }
265
271
 
266
- export interface AgentDataAggregateParams extends PaginatedCursorPostParams {
272
+ export interface AgentDataSearchParams extends PaginatedCursorPostParams {
267
273
  /**
268
- * Body param: The agent deployment's name to aggregate data for
274
+ * Body param: The agent deployment's name to search within
269
275
  */
270
276
  deployment_name: string;
271
277
 
@@ -280,32 +286,20 @@ export interface AgentDataAggregateParams extends PaginatedCursorPostParams {
280
286
  project_id?: string | null;
281
287
 
282
288
  /**
283
- * Body param: The logical agent data collection to aggregate data for
289
+ * Body param: The logical agent data collection to search within
284
290
  */
285
291
  collection?: string;
286
292
 
287
- /**
288
- * Body param: Whether to count the number of items in each group
289
- */
290
- count?: boolean | null;
291
-
292
293
  /**
293
294
  * Body param: A filter object or expression that filters resources listed in the
294
295
  * response.
295
296
  */
296
- filter?: { [key: string]: AgentDataAggregateParams.Filter } | null;
297
-
298
- /**
299
- * Body param: Whether to return the first item in each group (Sorted by
300
- * created_at)
301
- */
302
- first?: boolean | null;
297
+ filter?: { [key: string]: AgentDataSearchParams.Filter } | null;
303
298
 
304
299
  /**
305
- * Body param: The fields to group by. If empty, the entire dataset is grouped on.
306
- * e.g. if left out, can be used for simple count operations
300
+ * Body param: Whether to include the total number of items in the response
307
301
  */
308
- group_by?: Array<string> | null;
302
+ include_total?: boolean;
309
303
 
310
304
  /**
311
305
  * Body param: The offset to start from. If not provided, the first page is
@@ -320,7 +314,7 @@ export interface AgentDataAggregateParams extends PaginatedCursorPostParams {
320
314
  order_by?: string | null;
321
315
  }
322
316
 
323
- export namespace AgentDataAggregateParams {
317
+ export namespace AgentDataSearchParams {
324
318
  /**
325
319
  * API request model for a filter comparison operation.
326
320
  */
@@ -343,9 +337,9 @@ export namespace AgentDataAggregateParams {
343
337
  }
344
338
  }
345
339
 
346
- export interface AgentDataDeleteByQueryParams {
340
+ export interface AgentDataAggregateParams extends PaginatedCursorPostParams {
347
341
  /**
348
- * Body param: The agent deployment's name to delete data for
342
+ * Body param: The agent deployment's name to aggregate data for
349
343
  */
350
344
  deployment_name: string;
351
345
 
@@ -360,17 +354,47 @@ export interface AgentDataDeleteByQueryParams {
360
354
  project_id?: string | null;
361
355
 
362
356
  /**
363
- * Body param: The logical agent data collection to delete from
357
+ * Body param: The logical agent data collection to aggregate data for
364
358
  */
365
359
  collection?: string;
366
360
 
367
361
  /**
368
- * Body param: Optional filters to select which items to delete
362
+ * Body param: Whether to count the number of items in each group
369
363
  */
370
- filter?: { [key: string]: AgentDataDeleteByQueryParams.Filter } | null;
364
+ count?: boolean | null;
365
+
366
+ /**
367
+ * Body param: A filter object or expression that filters resources listed in the
368
+ * response.
369
+ */
370
+ filter?: { [key: string]: AgentDataAggregateParams.Filter } | null;
371
+
372
+ /**
373
+ * Body param: Whether to return the first item in each group (Sorted by
374
+ * created_at)
375
+ */
376
+ first?: boolean | null;
377
+
378
+ /**
379
+ * Body param: The fields to group by. If empty, the entire dataset is grouped on.
380
+ * e.g. if left out, can be used for simple count operations
381
+ */
382
+ group_by?: Array<string> | null;
383
+
384
+ /**
385
+ * Body param: The offset to start from. If not provided, the first page is
386
+ * returned
387
+ */
388
+ offset?: number | null;
389
+
390
+ /**
391
+ * Body param: A comma-separated list of fields to order by, sorted in ascending
392
+ * order. Use 'field_name desc' to specify descending order.
393
+ */
394
+ order_by?: string | null;
371
395
  }
372
396
 
373
- export namespace AgentDataDeleteByQueryParams {
397
+ export namespace AgentDataAggregateParams {
374
398
  /**
375
399
  * API request model for a filter comparison operation.
376
400
  */
@@ -393,15 +417,9 @@ export namespace AgentDataDeleteByQueryParams {
393
417
  }
394
418
  }
395
419
 
396
- export interface AgentDataGetParams {
397
- organization_id?: string | null;
398
-
399
- project_id?: string | null;
400
- }
401
-
402
- export interface AgentDataSearchParams extends PaginatedCursorPostParams {
420
+ export interface AgentDataDeleteByQueryParams {
403
421
  /**
404
- * Body param: The agent deployment's name to search within
422
+ * Body param: The agent deployment's name to delete data for
405
423
  */
406
424
  deployment_name: string;
407
425
 
@@ -416,35 +434,17 @@ export interface AgentDataSearchParams extends PaginatedCursorPostParams {
416
434
  project_id?: string | null;
417
435
 
418
436
  /**
419
- * Body param: The logical agent data collection to search within
437
+ * Body param: The logical agent data collection to delete from
420
438
  */
421
439
  collection?: string;
422
440
 
423
441
  /**
424
- * Body param: A filter object or expression that filters resources listed in the
425
- * response.
426
- */
427
- filter?: { [key: string]: AgentDataSearchParams.Filter } | null;
428
-
429
- /**
430
- * Body param: Whether to include the total number of items in the response
431
- */
432
- include_total?: boolean;
433
-
434
- /**
435
- * Body param: The offset to start from. If not provided, the first page is
436
- * returned
437
- */
438
- offset?: number | null;
439
-
440
- /**
441
- * Body param: A comma-separated list of fields to order by, sorted in ascending
442
- * order. Use 'field_name desc' to specify descending order.
442
+ * Body param: Optional filters to select which items to delete
443
443
  */
444
- order_by?: string | null;
444
+ filter?: { [key: string]: AgentDataDeleteByQueryParams.Filter } | null;
445
445
  }
446
446
 
447
- export namespace AgentDataSearchParams {
447
+ export namespace AgentDataDeleteByQueryParams {
448
448
  /**
449
449
  * API request model for a filter comparison operation.
450
450
  */
@@ -473,14 +473,14 @@ export declare namespace AgentData {
473
473
  type AgentDataDeleteResponse as AgentDataDeleteResponse,
474
474
  type AgentDataAggregateResponse as AgentDataAggregateResponse,
475
475
  type AgentDataDeleteByQueryResponse as AgentDataDeleteByQueryResponse,
476
- type AgentDataAggregateResponsesPaginatedCursorPost as AgentDataAggregateResponsesPaginatedCursorPost,
477
476
  type AgentDataPaginatedCursorPost as AgentDataPaginatedCursorPost,
478
- type AgentDataCreateParams as AgentDataCreateParams,
477
+ type AgentDataAggregateResponsesPaginatedCursorPost as AgentDataAggregateResponsesPaginatedCursorPost,
478
+ type AgentDataGetParams as AgentDataGetParams,
479
479
  type AgentDataUpdateParams as AgentDataUpdateParams,
480
480
  type AgentDataDeleteParams as AgentDataDeleteParams,
481
+ type AgentDataCreateParams as AgentDataCreateParams,
482
+ type AgentDataSearchParams as AgentDataSearchParams,
481
483
  type AgentDataAggregateParams as AgentDataAggregateParams,
482
484
  type AgentDataDeleteByQueryParams as AgentDataDeleteByQueryParams,
483
- type AgentDataGetParams as AgentDataGetParams,
484
- type AgentDataSearchParams as AgentDataSearchParams,
485
485
  };
486
486
  }
@@ -75,6 +75,27 @@ export class Batch extends APIResource {
75
75
  });
76
76
  }
77
77
 
78
+ /**
79
+ * Get detailed status of a batch processing job.
80
+ *
81
+ * Returns current progress percentage, file counts (total, processed, failed,
82
+ * skipped), and timestamps.
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * const response = await client.beta.batch.getStatus(
87
+ * 'job_id',
88
+ * );
89
+ * ```
90
+ */
91
+ getStatus(
92
+ jobID: string,
93
+ query: BatchGetStatusParams | null | undefined = {},
94
+ options?: RequestOptions,
95
+ ): APIPromise<BatchGetStatusResponse> {
96
+ return this._client.get(path`/api/v1/beta/batch-processing/${jobID}`, { query, ...options });
97
+ }
98
+
78
99
  /**
79
100
  * Cancel a running batch processing job.
80
101
  *
@@ -102,27 +123,6 @@ export class Batch extends APIResource {
102
123
  ]),
103
124
  });
104
125
  }
105
-
106
- /**
107
- * Get detailed status of a batch processing job.
108
- *
109
- * Returns current progress percentage, file counts (total, processed, failed,
110
- * skipped), and timestamps.
111
- *
112
- * @example
113
- * ```ts
114
- * const response = await client.beta.batch.getStatus(
115
- * 'job_id',
116
- * );
117
- * ```
118
- */
119
- getStatus(
120
- jobID: string,
121
- query: BatchGetStatusParams | null | undefined = {},
122
- options?: RequestOptions,
123
- ): APIPromise<BatchGetStatusResponse> {
124
- return this._client.get(path`/api/v1/beta/batch-processing/${jobID}`, { query, ...options });
125
- }
126
126
  }
127
127
 
128
128
  export type BatchListResponsesPaginatedBatchItems = PaginatedBatchItems<BatchListResponse>;
@@ -139,7 +139,7 @@ export interface BatchCreateResponse {
139
139
  /**
140
140
  * Type of processing operation (parse or classify)
141
141
  */
142
- job_type: 'parse' | 'extract' | 'classify';
142
+ job_type: 'classify' | 'extract' | 'parse';
143
143
 
144
144
  /**
145
145
  * Project this job belongs to
@@ -149,7 +149,7 @@ export interface BatchCreateResponse {
149
149
  /**
150
150
  * Current job status
151
151
  */
152
- status: 'pending' | 'running' | 'dispatched' | 'completed' | 'failed' | 'cancelled';
152
+ status: 'cancelled' | 'completed' | 'dispatched' | 'failed' | 'pending' | 'running';
153
153
 
154
154
  /**
155
155
  * Total number of items in the job
@@ -226,7 +226,7 @@ export interface BatchListResponse {
226
226
  /**
227
227
  * Type of processing operation (parse or classify)
228
228
  */
229
- job_type: 'parse' | 'extract' | 'classify';
229
+ job_type: 'classify' | 'extract' | 'parse';
230
230
 
231
231
  /**
232
232
  * Project this job belongs to
@@ -236,7 +236,7 @@ export interface BatchListResponse {
236
236
  /**
237
237
  * Current job status
238
238
  */
239
- status: 'pending' | 'running' | 'dispatched' | 'completed' | 'failed' | 'cancelled';
239
+ status: 'cancelled' | 'completed' | 'dispatched' | 'failed' | 'pending' | 'running';
240
240
 
241
241
  /**
242
242
  * Total number of items in the job
@@ -323,7 +323,7 @@ export interface BatchCancelResponse {
323
323
  /**
324
324
  * New status (should be 'cancelled')
325
325
  */
326
- status: 'pending' | 'running' | 'dispatched' | 'completed' | 'failed' | 'cancelled';
326
+ status: 'cancelled' | 'completed' | 'dispatched' | 'failed' | 'pending' | 'running';
327
327
  }
328
328
 
329
329
  /**
@@ -354,7 +354,7 @@ export namespace BatchGetStatusResponse {
354
354
  /**
355
355
  * Type of processing operation (parse or classify)
356
356
  */
357
- job_type: 'parse' | 'extract' | 'classify';
357
+ job_type: 'classify' | 'extract' | 'parse';
358
358
 
359
359
  /**
360
360
  * Project this job belongs to
@@ -364,7 +364,7 @@ export namespace BatchGetStatusResponse {
364
364
  /**
365
365
  * Current job status
366
366
  */
367
- status: 'pending' | 'running' | 'dispatched' | 'completed' | 'failed' | 'cancelled';
367
+ status: 'cancelled' | 'completed' | 'dispatched' | 'failed' | 'pending' | 'running';
368
368
 
369
369
  /**
370
370
  * Total number of items in the job
@@ -650,7 +650,7 @@ export namespace BatchCreateParams {
650
650
 
651
651
  ignore_document_elements_for_layout_detection?: boolean | null;
652
652
 
653
- images_to_save?: Array<'screenshot' | 'embedded' | 'layout'> | null;
653
+ images_to_save?: Array<'embedded' | 'layout' | 'screenshot'> | null;
654
654
 
655
655
  inline_images_in_markdown?: boolean | null;
656
656
 
@@ -764,7 +764,7 @@ export namespace BatchCreateParams {
764
764
  * The priority for the request. This field may be ignored or overwritten depending
765
765
  * on the organization tier.
766
766
  */
767
- priority?: 'low' | 'medium' | 'high' | 'critical' | null;
767
+ priority?: 'critical' | 'high' | 'low' | 'medium' | null;
768
768
 
769
769
  project_id?: string | null;
770
770
 
@@ -856,22 +856,33 @@ export namespace BatchCreateParams {
856
856
  * events are delivered.
857
857
  */
858
858
  webhook_events?: Array<
859
- | 'extract.pending'
860
- | 'extract.success'
859
+ | 'classify.cancelled'
860
+ | 'classify.error'
861
+ | 'classify.partial_success'
862
+ | 'classify.pending'
863
+ | 'classify.running'
864
+ | 'classify.success'
865
+ | 'extract.cancelled'
861
866
  | 'extract.error'
862
867
  | 'extract.partial_success'
863
- | 'extract.cancelled'
868
+ | 'extract.pending'
869
+ | 'extract.success'
870
+ | 'parse.cancelled'
871
+ | 'parse.error'
872
+ | 'parse.partial_success'
864
873
  | 'parse.pending'
865
874
  | 'parse.running'
866
875
  | 'parse.success'
867
- | 'parse.error'
868
- | 'parse.partial_success'
869
- | 'parse.cancelled'
870
- | 'classify.pending'
871
- | 'classify.success'
872
- | 'classify.error'
873
- | 'classify.partial_success'
874
- | 'classify.cancelled'
876
+ | 'sheets.cancelled'
877
+ | 'sheets.error'
878
+ | 'sheets.partial_success'
879
+ | 'sheets.pending'
880
+ | 'sheets.success'
881
+ | 'split.cancelled'
882
+ | 'split.error'
883
+ | 'split.pending'
884
+ | 'split.processing'
885
+ | 'split.success'
875
886
  | 'unmapped_event'
876
887
  > | null;
877
888
 
@@ -903,7 +914,7 @@ export interface BatchListParams extends PaginatedBatchItemsParams {
903
914
  /**
904
915
  * Filter by job type (PARSE, EXTRACT, CLASSIFY)
905
916
  */
906
- job_type?: 'parse' | 'extract' | 'classify' | null;
917
+ job_type?: 'classify' | 'extract' | 'parse' | null;
907
918
 
908
919
  organization_id?: string | null;
909
920
 
@@ -912,7 +923,13 @@ export interface BatchListParams extends PaginatedBatchItemsParams {
912
923
  /**
913
924
  * Filter by job status (PENDING, RUNNING, COMPLETED, FAILED, CANCELLED)
914
925
  */
915
- status?: 'pending' | 'running' | 'dispatched' | 'completed' | 'failed' | 'cancelled' | null;
926
+ status?: 'cancelled' | 'completed' | 'dispatched' | 'failed' | 'pending' | 'running' | null;
927
+ }
928
+
929
+ export interface BatchGetStatusParams {
930
+ organization_id?: string | null;
931
+
932
+ project_id?: string | null;
916
933
  }
917
934
 
918
935
  export interface BatchCancelParams {
@@ -937,12 +954,6 @@ export interface BatchCancelParams {
937
954
  'temporal-namespace'?: string;
938
955
  }
939
956
 
940
- export interface BatchGetStatusParams {
941
- organization_id?: string | null;
942
-
943
- project_id?: string | null;
944
- }
945
-
946
957
  Batch.JobItems = JobItems;
947
958
 
948
959
  export declare namespace Batch {
@@ -954,8 +965,8 @@ export declare namespace Batch {
954
965
  type BatchListResponsesPaginatedBatchItems as BatchListResponsesPaginatedBatchItems,
955
966
  type BatchCreateParams as BatchCreateParams,
956
967
  type BatchListParams as BatchListParams,
957
- type BatchCancelParams as BatchCancelParams,
958
968
  type BatchGetStatusParams as BatchGetStatusParams,
969
+ type BatchCancelParams as BatchCancelParams,
959
970
  };
960
971
 
961
972
  export {
@@ -8,8 +8,8 @@ export {
8
8
  type BatchGetStatusResponse,
9
9
  type BatchCreateParams,
10
10
  type BatchListParams,
11
- type BatchCancelParams,
12
11
  type BatchGetStatusParams,
12
+ type BatchCancelParams,
13
13
  type BatchListResponsesPaginatedBatchItems,
14
14
  } from './batch';
15
15
  export {