@llamaindex/llama-cloud 1.8.0 → 2.0.0

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 (205) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +10 -8
  3. package/client.d.mts +4 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +4 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js +7 -6
  8. package/client.js.map +1 -1
  9. package/client.mjs +7 -6
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +0 -23
  12. package/core/pagination.d.mts.map +1 -1
  13. package/core/pagination.d.ts +0 -23
  14. package/core/pagination.d.ts.map +1 -1
  15. package/core/pagination.js +1 -32
  16. package/core/pagination.js.map +1 -1
  17. package/core/pagination.mjs +0 -30
  18. package/core/pagination.mjs.map +1 -1
  19. package/package.json +12 -1
  20. package/resources/beta/batch/batch.d.mts +55 -30
  21. package/resources/beta/batch/batch.d.mts.map +1 -1
  22. package/resources/beta/batch/batch.d.ts +55 -30
  23. package/resources/beta/batch/batch.d.ts.map +1 -1
  24. package/resources/beta/batch/batch.js +14 -11
  25. package/resources/beta/batch/batch.js.map +1 -1
  26. package/resources/beta/batch/batch.mjs +14 -11
  27. package/resources/beta/batch/batch.mjs.map +1 -1
  28. package/resources/beta/batch/job-items.d.mts +36 -13
  29. package/resources/beta/batch/job-items.d.mts.map +1 -1
  30. package/resources/beta/batch/job-items.d.ts +36 -13
  31. package/resources/beta/batch/job-items.d.ts.map +1 -1
  32. package/resources/beta/batch/job-items.js +6 -8
  33. package/resources/beta/batch/job-items.js.map +1 -1
  34. package/resources/beta/batch/job-items.mjs +6 -8
  35. package/resources/beta/batch/job-items.mjs.map +1 -1
  36. package/resources/beta/sheets.d.mts +16 -0
  37. package/resources/beta/sheets.d.mts.map +1 -1
  38. package/resources/beta/sheets.d.ts +16 -0
  39. package/resources/beta/sheets.d.ts.map +1 -1
  40. package/resources/beta/split.d.mts +60 -16
  41. package/resources/beta/split.d.mts.map +1 -1
  42. package/resources/beta/split.d.ts +60 -16
  43. package/resources/beta/split.d.ts.map +1 -1
  44. package/resources/beta/split.js.map +1 -1
  45. package/resources/beta/split.mjs.map +1 -1
  46. package/resources/classifier/jobs.d.mts +12 -3
  47. package/resources/classifier/jobs.d.mts.map +1 -1
  48. package/resources/classifier/jobs.d.ts +12 -3
  49. package/resources/classifier/jobs.d.ts.map +1 -1
  50. package/resources/classify.d.mts +76 -29
  51. package/resources/classify.d.mts.map +1 -1
  52. package/resources/classify.d.ts +76 -29
  53. package/resources/classify.d.ts.map +1 -1
  54. package/resources/classify.js +19 -2
  55. package/resources/classify.js.map +1 -1
  56. package/resources/classify.mjs +19 -2
  57. package/resources/classify.mjs.map +1 -1
  58. package/resources/extract.d.mts +1588 -0
  59. package/resources/extract.d.mts.map +1 -0
  60. package/resources/extract.d.ts +1588 -0
  61. package/resources/extract.d.ts.map +1 -0
  62. package/resources/extract.js +217 -0
  63. package/resources/extract.js.map +1 -0
  64. package/resources/extract.mjs +213 -0
  65. package/resources/extract.mjs.map +1 -0
  66. package/resources/files.d.mts +52 -38
  67. package/resources/files.d.mts.map +1 -1
  68. package/resources/files.d.ts +52 -38
  69. package/resources/files.d.ts.map +1 -1
  70. package/resources/files.js +10 -9
  71. package/resources/files.js.map +1 -1
  72. package/resources/files.mjs +10 -9
  73. package/resources/files.mjs.map +1 -1
  74. package/resources/index.d.mts +1 -1
  75. package/resources/index.d.mts.map +1 -1
  76. package/resources/index.d.ts +1 -1
  77. package/resources/index.d.ts.map +1 -1
  78. package/resources/index.js +3 -3
  79. package/resources/index.js.map +1 -1
  80. package/resources/index.mjs +1 -1
  81. package/resources/index.mjs.map +1 -1
  82. package/resources/parsing.d.mts +292 -138
  83. package/resources/parsing.d.mts.map +1 -1
  84. package/resources/parsing.d.ts +292 -138
  85. package/resources/parsing.d.ts.map +1 -1
  86. package/resources/parsing.js +30 -4
  87. package/resources/parsing.js.map +1 -1
  88. package/resources/parsing.mjs +30 -4
  89. package/resources/parsing.mjs.map +1 -1
  90. package/resources/pipelines/pipelines.d.mts +59 -13
  91. package/resources/pipelines/pipelines.d.mts.map +1 -1
  92. package/resources/pipelines/pipelines.d.ts +59 -13
  93. package/resources/pipelines/pipelines.d.ts.map +1 -1
  94. package/resources/pipelines/pipelines.js +24 -9
  95. package/resources/pipelines/pipelines.js.map +1 -1
  96. package/resources/pipelines/pipelines.mjs +24 -9
  97. package/resources/pipelines/pipelines.mjs.map +1 -1
  98. package/resources/pipelines/sync.d.mts +5 -3
  99. package/resources/pipelines/sync.d.mts.map +1 -1
  100. package/resources/pipelines/sync.d.ts +5 -3
  101. package/resources/pipelines/sync.d.ts.map +1 -1
  102. package/resources/pipelines/sync.js +5 -3
  103. package/resources/pipelines/sync.js.map +1 -1
  104. package/resources/pipelines/sync.mjs +5 -3
  105. package/resources/pipelines/sync.mjs.map +1 -1
  106. package/src/client.ts +50 -15
  107. package/src/core/pagination.ts +0 -71
  108. package/src/resources/beta/batch/batch.ts +75 -30
  109. package/src/resources/beta/batch/job-items.ts +56 -13
  110. package/src/resources/beta/sheets.ts +20 -0
  111. package/src/resources/beta/split.ts +70 -17
  112. package/src/resources/classifier/jobs.ts +12 -3
  113. package/src/resources/classify.ts +82 -29
  114. package/src/resources/extract.ts +2045 -0
  115. package/src/resources/files.ts +52 -38
  116. package/src/resources/index.ts +22 -1
  117. package/src/resources/parsing.ts +323 -136
  118. package/src/resources/pipelines/pipelines.ts +80 -14
  119. package/src/resources/pipelines/sync.ts +5 -3
  120. package/src/version.ts +1 -1
  121. package/version.d.mts +1 -1
  122. package/version.d.ts +1 -1
  123. package/version.js +1 -1
  124. package/version.mjs +1 -1
  125. package/resources/extraction/extraction-agents/extraction-agents.d.mts +0 -126
  126. package/resources/extraction/extraction-agents/extraction-agents.d.mts.map +0 -1
  127. package/resources/extraction/extraction-agents/extraction-agents.d.ts +0 -126
  128. package/resources/extraction/extraction-agents/extraction-agents.d.ts.map +0 -1
  129. package/resources/extraction/extraction-agents/extraction-agents.js +0 -56
  130. package/resources/extraction/extraction-agents/extraction-agents.js.map +0 -1
  131. package/resources/extraction/extraction-agents/extraction-agents.mjs +0 -51
  132. package/resources/extraction/extraction-agents/extraction-agents.mjs.map +0 -1
  133. package/resources/extraction/extraction-agents/index.d.mts +0 -3
  134. package/resources/extraction/extraction-agents/index.d.mts.map +0 -1
  135. package/resources/extraction/extraction-agents/index.d.ts +0 -3
  136. package/resources/extraction/extraction-agents/index.d.ts.map +0 -1
  137. package/resources/extraction/extraction-agents/index.js +0 -9
  138. package/resources/extraction/extraction-agents/index.js.map +0 -1
  139. package/resources/extraction/extraction-agents/index.mjs +0 -4
  140. package/resources/extraction/extraction-agents/index.mjs.map +0 -1
  141. package/resources/extraction/extraction-agents/schema.d.mts +0 -75
  142. package/resources/extraction/extraction-agents/schema.d.mts.map +0 -1
  143. package/resources/extraction/extraction-agents/schema.d.ts +0 -75
  144. package/resources/extraction/extraction-agents/schema.d.ts.map +0 -1
  145. package/resources/extraction/extraction-agents/schema.js +0 -28
  146. package/resources/extraction/extraction-agents/schema.js.map +0 -1
  147. package/resources/extraction/extraction-agents/schema.mjs +0 -24
  148. package/resources/extraction/extraction-agents/schema.mjs.map +0 -1
  149. package/resources/extraction/extraction-agents.d.mts +0 -2
  150. package/resources/extraction/extraction-agents.d.mts.map +0 -1
  151. package/resources/extraction/extraction-agents.d.ts +0 -2
  152. package/resources/extraction/extraction-agents.d.ts.map +0 -1
  153. package/resources/extraction/extraction-agents.js +0 -6
  154. package/resources/extraction/extraction-agents.js.map +0 -1
  155. package/resources/extraction/extraction-agents.mjs +0 -3
  156. package/resources/extraction/extraction-agents.mjs.map +0 -1
  157. package/resources/extraction/extraction.d.mts +0 -118
  158. package/resources/extraction/extraction.d.mts.map +0 -1
  159. package/resources/extraction/extraction.d.ts +0 -118
  160. package/resources/extraction/extraction.d.ts.map +0 -1
  161. package/resources/extraction/extraction.js +0 -91
  162. package/resources/extraction/extraction.js.map +0 -1
  163. package/resources/extraction/extraction.mjs +0 -86
  164. package/resources/extraction/extraction.mjs.map +0 -1
  165. package/resources/extraction/index.d.mts +0 -5
  166. package/resources/extraction/index.d.mts.map +0 -1
  167. package/resources/extraction/index.d.ts +0 -5
  168. package/resources/extraction/index.d.ts.map +0 -1
  169. package/resources/extraction/index.js +0 -13
  170. package/resources/extraction/index.js.map +0 -1
  171. package/resources/extraction/index.mjs +0 -6
  172. package/resources/extraction/index.mjs.map +0 -1
  173. package/resources/extraction/jobs.d.mts +0 -280
  174. package/resources/extraction/jobs.d.mts.map +0 -1
  175. package/resources/extraction/jobs.d.ts +0 -280
  176. package/resources/extraction/jobs.d.ts.map +0 -1
  177. package/resources/extraction/jobs.js +0 -179
  178. package/resources/extraction/jobs.js.map +0 -1
  179. package/resources/extraction/jobs.mjs +0 -175
  180. package/resources/extraction/jobs.mjs.map +0 -1
  181. package/resources/extraction/runs.d.mts +0 -198
  182. package/resources/extraction/runs.d.mts.map +0 -1
  183. package/resources/extraction/runs.d.ts +0 -198
  184. package/resources/extraction/runs.d.ts.map +0 -1
  185. package/resources/extraction/runs.js +0 -42
  186. package/resources/extraction/runs.js.map +0 -1
  187. package/resources/extraction/runs.mjs +0 -38
  188. package/resources/extraction/runs.mjs.map +0 -1
  189. package/resources/extraction.d.mts +0 -2
  190. package/resources/extraction.d.mts.map +0 -1
  191. package/resources/extraction.d.ts +0 -2
  192. package/resources/extraction.d.ts.map +0 -1
  193. package/resources/extraction.js +0 -6
  194. package/resources/extraction.js.map +0 -1
  195. package/resources/extraction.mjs +0 -3
  196. package/resources/extraction.mjs.map +0 -1
  197. package/src/resources/extraction/extraction-agents/extraction-agents.ts +0 -196
  198. package/src/resources/extraction/extraction-agents/index.ts +0 -18
  199. package/src/resources/extraction/extraction-agents/schema.ts +0 -100
  200. package/src/resources/extraction/extraction-agents.ts +0 -3
  201. package/src/resources/extraction/extraction.ts +0 -224
  202. package/src/resources/extraction/index.ts +0 -34
  203. package/src/resources/extraction/jobs.ts +0 -414
  204. package/src/resources/extraction/runs.ts +0 -315
  205. package/src/resources/extraction.ts +0 -3
@@ -1,414 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../core/resource';
4
- import * as FilesAPI from '../files';
5
- import * as RunsAPI from './runs';
6
- import * as ExtractionAgentsAPI from './extraction-agents/extraction-agents';
7
- import { APIPromise } from '../../core/api-promise';
8
- import { type Uploadable } from '../../core/uploads';
9
- import { RequestOptions } from '../../internal/request-options';
10
- import { multipartFormRequestOptions } from '../../internal/uploads';
11
- import { path } from '../../internal/utils/path';
12
- import { pollUntilComplete, PollingOptions, DEFAULT_TIMEOUT } from '../../core/polling';
13
-
14
- export class Jobs extends APIResource {
15
- /**
16
- * Run Job
17
- */
18
- create(params: JobCreateParams, options?: RequestOptions): APIPromise<ExtractJob> {
19
- const { from_ui, ...body } = params;
20
- return this._client.post('/api/v1/extraction/jobs', { query: { from_ui }, body, ...options });
21
- }
22
-
23
- /**
24
- * List Jobs
25
- */
26
- list(query: JobListParams, options?: RequestOptions): APIPromise<JobListResponse> {
27
- return this._client.get('/api/v1/extraction/jobs', { query, ...options });
28
- }
29
-
30
- /**
31
- * Run Job On File
32
- */
33
- file(params: JobFileParams, options?: RequestOptions): APIPromise<ExtractJob> {
34
- const { from_ui, ...body } = params;
35
- return this._client.post(
36
- '/api/v1/extraction/jobs/file',
37
- multipartFormRequestOptions({ query: { from_ui }, body, ...options }, this._client),
38
- );
39
- }
40
-
41
- /**
42
- * Get Job
43
- */
44
- get(jobID: string, options?: RequestOptions): APIPromise<ExtractJob> {
45
- return this._client.get(path`/api/v1/extraction/jobs/${jobID}`, options);
46
- }
47
-
48
- /**
49
- * Get Job Result
50
- */
51
- getResult(
52
- jobID: string,
53
- query: JobGetResultParams | null | undefined = {},
54
- options?: RequestOptions,
55
- ): APIPromise<JobGetResultResponse> {
56
- return this._client.get(path`/api/v1/extraction/jobs/${jobID}/result`, { query, ...options });
57
- }
58
-
59
- /**
60
- * Wait for an extraction job to complete by polling until it reaches a terminal state.
61
- *
62
- * This method polls the job status at regular intervals until the job completes
63
- * successfully or fails. It uses configurable backoff strategies to optimize
64
- * polling behavior.
65
- *
66
- * @param jobID - The ID of the extraction job to wait for
67
- * @param options - Polling configuration options
68
- * @returns The completed ExtractJob
69
- * @throws {PollingTimeoutError} If the job doesn't complete within the timeout period
70
- * @throws {PollingError} If the job fails or is cancelled
71
- *
72
- * @example
73
- * ```typescript
74
- * import { LlamaCloud } from 'llama-cloud';
75
- *
76
- * const client = new LlamaCloud({ apiKey: '...' });
77
- *
78
- * // Create an extraction job
79
- * const job = await client.extraction.jobs.create({
80
- * extraction_agent_id: 'agent_id',
81
- * file_id: 'file_id'
82
- * });
83
- *
84
- * // Wait for it to complete
85
- * const completedJob = await client.extraction.jobs.waitForCompletion(
86
- * job.id,
87
- * { verbose: true }
88
- * );
89
- *
90
- * // Get the result
91
- * const result = await client.extraction.jobs.getResult(job.id);
92
- * ```
93
- */
94
- async waitForCompletion(jobID: string, options?: PollingOptions & RequestOptions): Promise<ExtractJob> {
95
- const { pollingInterval, maxInterval, timeout, backoff, verbose, ...requestOptions } = options || {};
96
-
97
- const getStatus = async (): Promise<ExtractJob> => {
98
- return await this.get(jobID, requestOptions);
99
- };
100
-
101
- const isComplete = (job: ExtractJob): boolean => {
102
- return job.status === 'SUCCESS' || job.status === 'PARTIAL_SUCCESS';
103
- };
104
-
105
- const isError = (job: ExtractJob): boolean => {
106
- return job.status === 'ERROR' || job.status === 'CANCELLED';
107
- };
108
-
109
- const getErrorMessage = (job: ExtractJob): string => {
110
- const errorParts = [`Job ${jobID} failed with status: ${job.status}`];
111
- if (job.error) {
112
- errorParts.push(`Error: ${job.error}`);
113
- }
114
- return errorParts.join(' | ');
115
- };
116
-
117
- return await pollUntilComplete(getStatus, isComplete, isError, getErrorMessage, {
118
- pollingInterval,
119
- maxInterval,
120
- timeout,
121
- backoff,
122
- verbose,
123
- });
124
- }
125
-
126
- /**
127
- * Create an extraction job and wait for it to complete, returning the result.
128
- *
129
- * This is a convenience method that combines create(), waitForCompletion(),
130
- * and getResult() into a single call for the most common end-to-end workflow.
131
- *
132
- * @param params - Job creation parameters
133
- * @param options - Polling configuration and request options
134
- * @returns The extraction result (JobGetResultResponse)
135
- * @throws {PollingTimeoutError} If the job doesn't complete within the timeout period
136
- * @throws {PollingError} If the job fails or is cancelled
137
- *
138
- * @example
139
- * ```typescript
140
- * import { LlamaCloud } from 'llama-cloud';
141
- *
142
- * const client = new LlamaCloud({ apiKey: '...' });
143
- *
144
- * // One-shot: create job, wait for completion, and get result
145
- * const result = await client.extraction.jobs.createAndWait({
146
- * extraction_agent_id: 'agent_id',
147
- * file_id: 'file_id'
148
- * }, { verbose: true });
149
- *
150
- * // Result is ready to use immediately
151
- * console.log(result.data);
152
- * ```
153
- */
154
- async createAndWait(
155
- params: JobCreateParams,
156
- options?: PollingOptions & RequestOptions,
157
- ): Promise<JobGetResultResponse> {
158
- const { pollingInterval, maxInterval, timeout, backoff, verbose, ...requestOptions } = options || {};
159
-
160
- // Create the job
161
- const job = await this.create(params, requestOptions);
162
-
163
- // Wait for completion
164
- await this.waitForCompletion(job.id, {
165
- pollingInterval,
166
- maxInterval,
167
- timeout: timeout || DEFAULT_TIMEOUT,
168
- backoff,
169
- verbose,
170
- ...requestOptions,
171
- });
172
-
173
- // Get and return the result
174
- return await this.getResult(job.id, {}, requestOptions);
175
- }
176
-
177
- /**
178
- * Create an extraction job and wait for it to complete, returning the result.
179
- *
180
- * This is an alias for createAndWait() that provides a more concise API.
181
- *
182
- * @param params - Job creation parameters
183
- * @param options - Polling configuration and request options
184
- * @returns The extraction result (JobGetResultResponse)
185
- * @throws {PollingTimeoutError} If the job doesn't complete within the timeout period
186
- * @throws {PollingError} If the job fails or is cancelled
187
- *
188
- * @example
189
- * ```typescript
190
- * import { LlamaCloud } from 'llama-cloud';
191
- *
192
- * const client = new LlamaCloud({ apiKey: '...' });
193
- *
194
- * // One-shot: create job, wait for completion, and get result
195
- * const result = await client.extraction.jobs.extract({
196
- * extraction_agent_id: 'agent_id',
197
- * file_id: 'file_id'
198
- * }, { verbose: true });
199
- *
200
- * // Result is ready to use immediately
201
- * console.log(result.data);
202
- * ```
203
- */
204
- async extract(
205
- params: JobCreateParams,
206
- options?: PollingOptions & RequestOptions,
207
- ): Promise<JobGetResultResponse> {
208
- return await this.createAndWait(params, options);
209
- }
210
- }
211
-
212
- /**
213
- * Schema for an extraction job.
214
- */
215
- export interface ExtractJob {
216
- /**
217
- * The id of the extraction job
218
- */
219
- id: string;
220
-
221
- /**
222
- * The agent that the job was run on.
223
- */
224
- extraction_agent: ExtractionAgentsAPI.ExtractAgent;
225
-
226
- /**
227
- * The status of the extraction job
228
- */
229
- status: 'PENDING' | 'SUCCESS' | 'ERROR' | 'PARTIAL_SUCCESS' | 'CANCELLED';
230
-
231
- /**
232
- * The error that occurred during extraction
233
- */
234
- error?: string | null;
235
-
236
- /**
237
- * @deprecated Schema for a file.
238
- */
239
- file?: FilesAPI.File | null;
240
-
241
- /**
242
- * The id of the file that the extract was extracted from
243
- */
244
- file_id?: string | null;
245
- }
246
-
247
- /**
248
- * Allows the user to configure webhook options for notifications and callbacks.
249
- */
250
- export interface WebhookConfiguration {
251
- /**
252
- * List of event names to subscribe to
253
- */
254
- webhook_events?: Array<
255
- | 'extract.pending'
256
- | 'extract.success'
257
- | 'extract.error'
258
- | 'extract.partial_success'
259
- | 'extract.cancelled'
260
- | 'parse.pending'
261
- | 'parse.running'
262
- | 'parse.success'
263
- | 'parse.error'
264
- | 'parse.partial_success'
265
- | 'parse.cancelled'
266
- | 'classify.pending'
267
- | 'classify.success'
268
- | 'classify.error'
269
- | 'classify.partial_success'
270
- | 'classify.cancelled'
271
- | 'unmapped_event'
272
- > | null;
273
-
274
- /**
275
- * Custom HTTP headers to include with webhook requests.
276
- */
277
- webhook_headers?: { [key: string]: string } | null;
278
-
279
- /**
280
- * The output format to use for the webhook. Defaults to string if none supplied.
281
- * Currently supported values: string, json
282
- */
283
- webhook_output_format?: string | null;
284
-
285
- /**
286
- * The URL to send webhook notifications to.
287
- */
288
- webhook_url?: string | null;
289
- }
290
-
291
- export type JobListResponse = Array<ExtractJob>;
292
-
293
- /**
294
- * Schema for an extraction resultset.
295
- */
296
- export interface JobGetResultResponse {
297
- /**
298
- * The data extracted from the file
299
- */
300
- data:
301
- | { [key: string]: { [key: string]: unknown } | Array<unknown> | string | number | boolean | null }
302
- | Array<{ [key: string]: { [key: string]: unknown } | Array<unknown> | string | number | boolean | null }>
303
- | null;
304
-
305
- /**
306
- * The id of the extraction agent
307
- */
308
- extraction_agent_id: string;
309
-
310
- /**
311
- * The metadata extracted from the file
312
- */
313
- extraction_metadata: {
314
- [key: string]: { [key: string]: unknown } | Array<unknown> | string | number | boolean | null;
315
- };
316
-
317
- /**
318
- * The id of the extraction run
319
- */
320
- run_id: string;
321
- }
322
-
323
- export interface JobCreateParams {
324
- /**
325
- * Body param: The id of the extraction agent
326
- */
327
- extraction_agent_id: string;
328
-
329
- /**
330
- * Body param: The id of the file
331
- */
332
- file_id: string;
333
-
334
- /**
335
- * Query param
336
- */
337
- from_ui?: boolean;
338
-
339
- /**
340
- * Body param: Configuration parameters for the extraction agent.
341
- */
342
- config_override?: RunsAPI.ExtractConfig | null;
343
-
344
- /**
345
- * Body param: The data schema to override the extraction agent's data schema with
346
- */
347
- data_schema_override?:
348
- | { [key: string]: { [key: string]: unknown } | Array<unknown> | string | number | boolean | null }
349
- | string
350
- | null;
351
-
352
- /**
353
- * Body param: The priority for the request. This field may be ignored or
354
- * overwritten depending on the organization tier.
355
- */
356
- priority?: 'low' | 'medium' | 'high' | 'critical' | null;
357
-
358
- /**
359
- * Body param: The outbound webhook configurations
360
- */
361
- webhook_configurations?: Array<WebhookConfiguration> | null;
362
- }
363
-
364
- export interface JobListParams {
365
- extraction_agent_id: string;
366
- }
367
-
368
- export interface JobFileParams {
369
- /**
370
- * Body param: The id of the extraction agent
371
- */
372
- extraction_agent_id: string;
373
-
374
- /**
375
- * Body param: The file to run the job on
376
- */
377
- file: Uploadable;
378
-
379
- /**
380
- * Query param
381
- */
382
- from_ui?: boolean;
383
-
384
- /**
385
- * Body param: The config to override the extraction agent's config with as a JSON
386
- * string
387
- */
388
- config_override?: string | null;
389
-
390
- /**
391
- * Body param: The data schema to override the extraction agent's data schema with
392
- * as a JSON string
393
- */
394
- data_schema_override?: string | null;
395
- }
396
-
397
- export interface JobGetResultParams {
398
- organization_id?: string | null;
399
-
400
- project_id?: string | null;
401
- }
402
-
403
- export declare namespace Jobs {
404
- export {
405
- type ExtractJob as ExtractJob,
406
- type WebhookConfiguration as WebhookConfiguration,
407
- type JobListResponse as JobListResponse,
408
- type JobGetResultResponse as JobGetResultResponse,
409
- type JobCreateParams as JobCreateParams,
410
- type JobListParams as JobListParams,
411
- type JobFileParams as JobFileParams,
412
- type JobGetResultParams as JobGetResultParams,
413
- };
414
- }