@llamaindex/llama-cloud 1.8.0 → 2.1.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 (214) hide show
  1. package/CHANGELOG.md +72 -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/parse-configurations.d.mts +7 -9
  37. package/resources/beta/parse-configurations.d.mts.map +1 -1
  38. package/resources/beta/parse-configurations.d.ts +7 -9
  39. package/resources/beta/parse-configurations.d.ts.map +1 -1
  40. package/resources/beta/parse-configurations.js +7 -9
  41. package/resources/beta/parse-configurations.js.map +1 -1
  42. package/resources/beta/parse-configurations.mjs +7 -9
  43. package/resources/beta/parse-configurations.mjs.map +1 -1
  44. package/resources/beta/sheets.d.mts +16 -0
  45. package/resources/beta/sheets.d.mts.map +1 -1
  46. package/resources/beta/sheets.d.ts +16 -0
  47. package/resources/beta/sheets.d.ts.map +1 -1
  48. package/resources/beta/split.d.mts +60 -16
  49. package/resources/beta/split.d.mts.map +1 -1
  50. package/resources/beta/split.d.ts +60 -16
  51. package/resources/beta/split.d.ts.map +1 -1
  52. package/resources/beta/split.js.map +1 -1
  53. package/resources/beta/split.mjs.map +1 -1
  54. package/resources/classifier/jobs.d.mts +12 -3
  55. package/resources/classifier/jobs.d.mts.map +1 -1
  56. package/resources/classifier/jobs.d.ts +12 -3
  57. package/resources/classifier/jobs.d.ts.map +1 -1
  58. package/resources/classify.d.mts +93 -38
  59. package/resources/classify.d.mts.map +1 -1
  60. package/resources/classify.d.ts +93 -38
  61. package/resources/classify.d.ts.map +1 -1
  62. package/resources/classify.js +19 -2
  63. package/resources/classify.js.map +1 -1
  64. package/resources/classify.mjs +19 -2
  65. package/resources/classify.mjs.map +1 -1
  66. package/resources/extract.d.mts +1593 -0
  67. package/resources/extract.d.mts.map +1 -0
  68. package/resources/extract.d.ts +1593 -0
  69. package/resources/extract.d.ts.map +1 -0
  70. package/resources/extract.js +215 -0
  71. package/resources/extract.js.map +1 -0
  72. package/resources/extract.mjs +211 -0
  73. package/resources/extract.mjs.map +1 -0
  74. package/resources/files.d.mts +53 -39
  75. package/resources/files.d.mts.map +1 -1
  76. package/resources/files.d.ts +53 -39
  77. package/resources/files.d.ts.map +1 -1
  78. package/resources/files.js +11 -10
  79. package/resources/files.js.map +1 -1
  80. package/resources/files.mjs +11 -10
  81. package/resources/files.mjs.map +1 -1
  82. package/resources/index.d.mts +1 -1
  83. package/resources/index.d.mts.map +1 -1
  84. package/resources/index.d.ts +1 -1
  85. package/resources/index.d.ts.map +1 -1
  86. package/resources/index.js +3 -3
  87. package/resources/index.js.map +1 -1
  88. package/resources/index.mjs +1 -1
  89. package/resources/index.mjs.map +1 -1
  90. package/resources/parsing.d.mts +292 -138
  91. package/resources/parsing.d.mts.map +1 -1
  92. package/resources/parsing.d.ts +292 -138
  93. package/resources/parsing.d.ts.map +1 -1
  94. package/resources/parsing.js +30 -4
  95. package/resources/parsing.js.map +1 -1
  96. package/resources/parsing.mjs +30 -4
  97. package/resources/parsing.mjs.map +1 -1
  98. package/resources/pipelines/pipelines.d.mts +59 -13
  99. package/resources/pipelines/pipelines.d.mts.map +1 -1
  100. package/resources/pipelines/pipelines.d.ts +59 -13
  101. package/resources/pipelines/pipelines.d.ts.map +1 -1
  102. package/resources/pipelines/pipelines.js +24 -9
  103. package/resources/pipelines/pipelines.js.map +1 -1
  104. package/resources/pipelines/pipelines.mjs +24 -9
  105. package/resources/pipelines/pipelines.mjs.map +1 -1
  106. package/resources/pipelines/sync.d.mts +5 -3
  107. package/resources/pipelines/sync.d.mts.map +1 -1
  108. package/resources/pipelines/sync.d.ts +5 -3
  109. package/resources/pipelines/sync.d.ts.map +1 -1
  110. package/resources/pipelines/sync.js +5 -3
  111. package/resources/pipelines/sync.js.map +1 -1
  112. package/resources/pipelines/sync.mjs +5 -3
  113. package/resources/pipelines/sync.mjs.map +1 -1
  114. package/src/client.ts +50 -15
  115. package/src/core/pagination.ts +0 -71
  116. package/src/resources/beta/batch/batch.ts +75 -30
  117. package/src/resources/beta/batch/job-items.ts +56 -13
  118. package/src/resources/beta/parse-configurations.ts +7 -9
  119. package/src/resources/beta/sheets.ts +20 -0
  120. package/src/resources/beta/split.ts +70 -17
  121. package/src/resources/classifier/jobs.ts +12 -3
  122. package/src/resources/classify.ts +101 -38
  123. package/src/resources/extract.ts +2055 -0
  124. package/src/resources/files.ts +53 -39
  125. package/src/resources/index.ts +22 -1
  126. package/src/resources/parsing.ts +327 -136
  127. package/src/resources/pipelines/pipelines.ts +80 -14
  128. package/src/resources/pipelines/sync.ts +5 -3
  129. package/src/version.ts +1 -1
  130. package/version.d.mts +1 -1
  131. package/version.d.ts +1 -1
  132. package/version.js +1 -1
  133. package/version.mjs +1 -1
  134. package/resources/extraction/extraction-agents/extraction-agents.d.mts +0 -126
  135. package/resources/extraction/extraction-agents/extraction-agents.d.mts.map +0 -1
  136. package/resources/extraction/extraction-agents/extraction-agents.d.ts +0 -126
  137. package/resources/extraction/extraction-agents/extraction-agents.d.ts.map +0 -1
  138. package/resources/extraction/extraction-agents/extraction-agents.js +0 -56
  139. package/resources/extraction/extraction-agents/extraction-agents.js.map +0 -1
  140. package/resources/extraction/extraction-agents/extraction-agents.mjs +0 -51
  141. package/resources/extraction/extraction-agents/extraction-agents.mjs.map +0 -1
  142. package/resources/extraction/extraction-agents/index.d.mts +0 -3
  143. package/resources/extraction/extraction-agents/index.d.mts.map +0 -1
  144. package/resources/extraction/extraction-agents/index.d.ts +0 -3
  145. package/resources/extraction/extraction-agents/index.d.ts.map +0 -1
  146. package/resources/extraction/extraction-agents/index.js +0 -9
  147. package/resources/extraction/extraction-agents/index.js.map +0 -1
  148. package/resources/extraction/extraction-agents/index.mjs +0 -4
  149. package/resources/extraction/extraction-agents/index.mjs.map +0 -1
  150. package/resources/extraction/extraction-agents/schema.d.mts +0 -75
  151. package/resources/extraction/extraction-agents/schema.d.mts.map +0 -1
  152. package/resources/extraction/extraction-agents/schema.d.ts +0 -75
  153. package/resources/extraction/extraction-agents/schema.d.ts.map +0 -1
  154. package/resources/extraction/extraction-agents/schema.js +0 -28
  155. package/resources/extraction/extraction-agents/schema.js.map +0 -1
  156. package/resources/extraction/extraction-agents/schema.mjs +0 -24
  157. package/resources/extraction/extraction-agents/schema.mjs.map +0 -1
  158. package/resources/extraction/extraction-agents.d.mts +0 -2
  159. package/resources/extraction/extraction-agents.d.mts.map +0 -1
  160. package/resources/extraction/extraction-agents.d.ts +0 -2
  161. package/resources/extraction/extraction-agents.d.ts.map +0 -1
  162. package/resources/extraction/extraction-agents.js +0 -6
  163. package/resources/extraction/extraction-agents.js.map +0 -1
  164. package/resources/extraction/extraction-agents.mjs +0 -3
  165. package/resources/extraction/extraction-agents.mjs.map +0 -1
  166. package/resources/extraction/extraction.d.mts +0 -118
  167. package/resources/extraction/extraction.d.mts.map +0 -1
  168. package/resources/extraction/extraction.d.ts +0 -118
  169. package/resources/extraction/extraction.d.ts.map +0 -1
  170. package/resources/extraction/extraction.js +0 -91
  171. package/resources/extraction/extraction.js.map +0 -1
  172. package/resources/extraction/extraction.mjs +0 -86
  173. package/resources/extraction/extraction.mjs.map +0 -1
  174. package/resources/extraction/index.d.mts +0 -5
  175. package/resources/extraction/index.d.mts.map +0 -1
  176. package/resources/extraction/index.d.ts +0 -5
  177. package/resources/extraction/index.d.ts.map +0 -1
  178. package/resources/extraction/index.js +0 -13
  179. package/resources/extraction/index.js.map +0 -1
  180. package/resources/extraction/index.mjs +0 -6
  181. package/resources/extraction/index.mjs.map +0 -1
  182. package/resources/extraction/jobs.d.mts +0 -280
  183. package/resources/extraction/jobs.d.mts.map +0 -1
  184. package/resources/extraction/jobs.d.ts +0 -280
  185. package/resources/extraction/jobs.d.ts.map +0 -1
  186. package/resources/extraction/jobs.js +0 -179
  187. package/resources/extraction/jobs.js.map +0 -1
  188. package/resources/extraction/jobs.mjs +0 -175
  189. package/resources/extraction/jobs.mjs.map +0 -1
  190. package/resources/extraction/runs.d.mts +0 -198
  191. package/resources/extraction/runs.d.mts.map +0 -1
  192. package/resources/extraction/runs.d.ts +0 -198
  193. package/resources/extraction/runs.d.ts.map +0 -1
  194. package/resources/extraction/runs.js +0 -42
  195. package/resources/extraction/runs.js.map +0 -1
  196. package/resources/extraction/runs.mjs +0 -38
  197. package/resources/extraction/runs.mjs.map +0 -1
  198. package/resources/extraction.d.mts +0 -2
  199. package/resources/extraction.d.mts.map +0 -1
  200. package/resources/extraction.d.ts +0 -2
  201. package/resources/extraction.d.ts.map +0 -1
  202. package/resources/extraction.js +0 -6
  203. package/resources/extraction.js.map +0 -1
  204. package/resources/extraction.mjs +0 -3
  205. package/resources/extraction.mjs.map +0 -1
  206. package/src/resources/extraction/extraction-agents/extraction-agents.ts +0 -196
  207. package/src/resources/extraction/extraction-agents/index.ts +0 -18
  208. package/src/resources/extraction/extraction-agents/schema.ts +0 -100
  209. package/src/resources/extraction/extraction-agents.ts +0 -3
  210. package/src/resources/extraction/extraction.ts +0 -224
  211. package/src/resources/extraction/index.ts +0 -34
  212. package/src/resources/extraction/jobs.ts +0 -414
  213. package/src/resources/extraction/runs.ts +0 -315
  214. package/src/resources/extraction.ts +0 -3
@@ -1,198 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as FilesAPI from "../files.mjs";
3
- import { APIPromise } from "../../core/api-promise.mjs";
4
- import { PagePromise, PaginatedExtractRuns, type PaginatedExtractRunsParams } from "../../core/pagination.mjs";
5
- import { RequestOptions } from "../../internal/request-options.mjs";
6
- export declare class Runs extends APIResource {
7
- /**
8
- * List Extract Runs
9
- */
10
- list(query: RunListParams, options?: RequestOptions): PagePromise<ExtractRunsPaginatedExtractRuns, ExtractRun>;
11
- /**
12
- * Delete Extraction Run
13
- */
14
- delete(runID: string, params?: RunDeleteParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
15
- /**
16
- * Get Run
17
- */
18
- get(runID: string, query?: RunGetParams | null | undefined, options?: RequestOptions): APIPromise<ExtractRun>;
19
- /**
20
- * Get Run By Job Id
21
- */
22
- getByJob(jobID: string, query?: RunGetByJobParams | null | undefined, options?: RequestOptions): APIPromise<ExtractRun>;
23
- }
24
- export type ExtractRunsPaginatedExtractRuns = PaginatedExtractRuns<ExtractRun>;
25
- /**
26
- * Configuration parameters for the extraction agent.
27
- */
28
- export interface ExtractConfig {
29
- /**
30
- * The mode to use for chunking the document.
31
- */
32
- chunk_mode?: 'PAGE' | 'SECTION';
33
- /**
34
- * @deprecated Whether to fetch citation bounding boxes for the extraction. Only
35
- * available in PREMIUM mode. Deprecated: this is now synonymous with cite_sources.
36
- */
37
- citation_bbox?: boolean;
38
- /**
39
- * Whether to cite sources for the extraction.
40
- */
41
- cite_sources?: boolean;
42
- /**
43
- * Whether to fetch confidence scores for the extraction.
44
- */
45
- confidence_scores?: boolean;
46
- /**
47
- * The extract model to use for data extraction. If not provided, uses the default
48
- * for the extraction mode.
49
- */
50
- extract_model?: 'openai-gpt-4-1' | 'openai-gpt-4-1-mini' | 'openai-gpt-4-1-nano' | 'openai-gpt-5' | 'openai-gpt-5-mini' | 'gemini-2.0-flash' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-2.5-pro' | 'openai-gpt-4o' | 'openai-gpt-4o-mini' | (string & {}) | null;
51
- /**
52
- * The extraction mode specified (FAST, BALANCED, MULTIMODAL, PREMIUM).
53
- */
54
- extraction_mode?: 'FAST' | 'BALANCED' | 'PREMIUM' | 'MULTIMODAL';
55
- /**
56
- * The extraction target specified.
57
- */
58
- extraction_target?: 'PER_DOC' | 'PER_PAGE' | 'PER_TABLE_ROW';
59
- /**
60
- * Whether to use high resolution mode for the extraction.
61
- */
62
- high_resolution_mode?: boolean;
63
- /**
64
- * Whether to invalidate the cache for the extraction.
65
- */
66
- invalidate_cache?: boolean;
67
- /**
68
- * DEPRECATED: Whether to use fast mode for multimodal extraction.
69
- */
70
- multimodal_fast_mode?: boolean;
71
- /**
72
- * Number of pages to pass as context on long document extraction.
73
- */
74
- num_pages_context?: number | null;
75
- /**
76
- * Comma-separated list of page numbers or ranges to extract from (1-based, e.g.,
77
- * '1,3,5-7,9' or '1-3,8-10').
78
- */
79
- page_range?: string | null;
80
- /**
81
- * Public model names.
82
- */
83
- parse_model?: 'openai-gpt-4o' | 'openai-gpt-4o-mini' | 'openai-gpt-4-1' | 'openai-gpt-4-1-mini' | 'openai-gpt-4-1-nano' | 'openai-gpt-5' | 'openai-gpt-5-mini' | 'openai-gpt-5-nano' | 'openai-text-embedding-3-large' | 'openai-text-embedding-3-small' | 'openai-whisper-1' | 'anthropic-sonnet-3.5' | 'anthropic-sonnet-3.5-v2' | 'anthropic-sonnet-3.7' | 'anthropic-sonnet-4.0' | 'anthropic-sonnet-4.5' | 'anthropic-haiku-3.5' | 'anthropic-haiku-4.5' | 'gemini-2.5-flash' | 'gemini-3.0-pro' | 'gemini-2.5-pro' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash-lite' | 'gemini-1.5-flash' | 'gemini-1.5-pro' | null;
84
- /**
85
- * The priority for the request. This field may be ignored or overwritten depending
86
- * on the organization tier.
87
- */
88
- priority?: 'low' | 'medium' | 'high' | 'critical' | null;
89
- /**
90
- * The system prompt to use for the extraction.
91
- */
92
- system_prompt?: string | null;
93
- /**
94
- * Whether to use reasoning for the extraction.
95
- */
96
- use_reasoning?: boolean;
97
- }
98
- /**
99
- * Schema for an extraction run.
100
- */
101
- export interface ExtractRun {
102
- /**
103
- * The id of the extraction run
104
- */
105
- id: string;
106
- /**
107
- * The config used for extraction
108
- */
109
- config: ExtractConfig;
110
- /**
111
- * The schema used for extraction
112
- */
113
- data_schema: {
114
- [key: string]: {
115
- [key: string]: unknown;
116
- } | Array<unknown> | string | number | boolean | null;
117
- };
118
- /**
119
- * The id of the extraction agent
120
- */
121
- extraction_agent_id: string;
122
- /**
123
- * Whether this extraction run was triggered from the UI
124
- */
125
- from_ui: boolean;
126
- /**
127
- * The id of the project that the extraction run belongs to
128
- */
129
- project_id: string;
130
- /**
131
- * The status of the extraction run
132
- */
133
- status: 'CREATED' | 'PENDING' | 'SUCCESS' | 'ERROR';
134
- /**
135
- * Creation datetime
136
- */
137
- created_at?: string | null;
138
- /**
139
- * The data extracted from the file
140
- */
141
- data?: {
142
- [key: string]: {
143
- [key: string]: unknown;
144
- } | Array<unknown> | string | number | boolean | null;
145
- } | Array<{
146
- [key: string]: {
147
- [key: string]: unknown;
148
- } | Array<unknown> | string | number | boolean | null;
149
- }> | null;
150
- /**
151
- * The error that occurred during extraction
152
- */
153
- error?: string | null;
154
- /**
155
- * The metadata extracted from the file
156
- */
157
- extraction_metadata?: {
158
- [key: string]: {
159
- [key: string]: unknown;
160
- } | Array<unknown> | string | number | boolean | null;
161
- } | null;
162
- /**
163
- * @deprecated Schema for a file.
164
- */
165
- file?: FilesAPI.File | null;
166
- /**
167
- * The id of the file that the extract was extracted from
168
- */
169
- file_id?: string | null;
170
- /**
171
- * The id of the job that the extraction run belongs to
172
- */
173
- job_id?: string | null;
174
- /**
175
- * Update datetime
176
- */
177
- updated_at?: string | null;
178
- }
179
- export type RunDeleteResponse = unknown;
180
- export interface RunListParams extends PaginatedExtractRunsParams {
181
- extraction_agent_id: string;
182
- }
183
- export interface RunDeleteParams {
184
- organization_id?: string | null;
185
- project_id?: string | null;
186
- }
187
- export interface RunGetParams {
188
- organization_id?: string | null;
189
- project_id?: string | null;
190
- }
191
- export interface RunGetByJobParams {
192
- organization_id?: string | null;
193
- project_id?: string | null;
194
- }
195
- export declare namespace Runs {
196
- export { type ExtractConfig as ExtractConfig, type ExtractRun as ExtractRun, type RunDeleteResponse as RunDeleteResponse, type ExtractRunsPaginatedExtractRuns as ExtractRunsPaginatedExtractRuns, type RunListParams as RunListParams, type RunDeleteParams as RunDeleteParams, type RunGetParams as RunGetParams, type RunGetByJobParams as RunGetByJobParams, };
197
- }
198
- //# sourceMappingURL=runs.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runs.d.mts","sourceRoot":"","sources":["../../src/resources/extraction/runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,oBAAoB,EAAE,KAAK,0BAA0B,EAAE;OACtE,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,IAAI,CACF,KAAK,EAAE,aAAa,EACpB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+BAA+B,EAAE,UAAU,CAAC;IA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AAC;CAC5B;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAExC,MAAM,WAAW,aAAc,SAAQ,0BAA0B;IAC/D,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IAC3B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -1,198 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as FilesAPI from "../files.js";
3
- import { APIPromise } from "../../core/api-promise.js";
4
- import { PagePromise, PaginatedExtractRuns, type PaginatedExtractRunsParams } from "../../core/pagination.js";
5
- import { RequestOptions } from "../../internal/request-options.js";
6
- export declare class Runs extends APIResource {
7
- /**
8
- * List Extract Runs
9
- */
10
- list(query: RunListParams, options?: RequestOptions): PagePromise<ExtractRunsPaginatedExtractRuns, ExtractRun>;
11
- /**
12
- * Delete Extraction Run
13
- */
14
- delete(runID: string, params?: RunDeleteParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
15
- /**
16
- * Get Run
17
- */
18
- get(runID: string, query?: RunGetParams | null | undefined, options?: RequestOptions): APIPromise<ExtractRun>;
19
- /**
20
- * Get Run By Job Id
21
- */
22
- getByJob(jobID: string, query?: RunGetByJobParams | null | undefined, options?: RequestOptions): APIPromise<ExtractRun>;
23
- }
24
- export type ExtractRunsPaginatedExtractRuns = PaginatedExtractRuns<ExtractRun>;
25
- /**
26
- * Configuration parameters for the extraction agent.
27
- */
28
- export interface ExtractConfig {
29
- /**
30
- * The mode to use for chunking the document.
31
- */
32
- chunk_mode?: 'PAGE' | 'SECTION';
33
- /**
34
- * @deprecated Whether to fetch citation bounding boxes for the extraction. Only
35
- * available in PREMIUM mode. Deprecated: this is now synonymous with cite_sources.
36
- */
37
- citation_bbox?: boolean;
38
- /**
39
- * Whether to cite sources for the extraction.
40
- */
41
- cite_sources?: boolean;
42
- /**
43
- * Whether to fetch confidence scores for the extraction.
44
- */
45
- confidence_scores?: boolean;
46
- /**
47
- * The extract model to use for data extraction. If not provided, uses the default
48
- * for the extraction mode.
49
- */
50
- extract_model?: 'openai-gpt-4-1' | 'openai-gpt-4-1-mini' | 'openai-gpt-4-1-nano' | 'openai-gpt-5' | 'openai-gpt-5-mini' | 'gemini-2.0-flash' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-2.5-pro' | 'openai-gpt-4o' | 'openai-gpt-4o-mini' | (string & {}) | null;
51
- /**
52
- * The extraction mode specified (FAST, BALANCED, MULTIMODAL, PREMIUM).
53
- */
54
- extraction_mode?: 'FAST' | 'BALANCED' | 'PREMIUM' | 'MULTIMODAL';
55
- /**
56
- * The extraction target specified.
57
- */
58
- extraction_target?: 'PER_DOC' | 'PER_PAGE' | 'PER_TABLE_ROW';
59
- /**
60
- * Whether to use high resolution mode for the extraction.
61
- */
62
- high_resolution_mode?: boolean;
63
- /**
64
- * Whether to invalidate the cache for the extraction.
65
- */
66
- invalidate_cache?: boolean;
67
- /**
68
- * DEPRECATED: Whether to use fast mode for multimodal extraction.
69
- */
70
- multimodal_fast_mode?: boolean;
71
- /**
72
- * Number of pages to pass as context on long document extraction.
73
- */
74
- num_pages_context?: number | null;
75
- /**
76
- * Comma-separated list of page numbers or ranges to extract from (1-based, e.g.,
77
- * '1,3,5-7,9' or '1-3,8-10').
78
- */
79
- page_range?: string | null;
80
- /**
81
- * Public model names.
82
- */
83
- parse_model?: 'openai-gpt-4o' | 'openai-gpt-4o-mini' | 'openai-gpt-4-1' | 'openai-gpt-4-1-mini' | 'openai-gpt-4-1-nano' | 'openai-gpt-5' | 'openai-gpt-5-mini' | 'openai-gpt-5-nano' | 'openai-text-embedding-3-large' | 'openai-text-embedding-3-small' | 'openai-whisper-1' | 'anthropic-sonnet-3.5' | 'anthropic-sonnet-3.5-v2' | 'anthropic-sonnet-3.7' | 'anthropic-sonnet-4.0' | 'anthropic-sonnet-4.5' | 'anthropic-haiku-3.5' | 'anthropic-haiku-4.5' | 'gemini-2.5-flash' | 'gemini-3.0-pro' | 'gemini-2.5-pro' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash-lite' | 'gemini-1.5-flash' | 'gemini-1.5-pro' | null;
84
- /**
85
- * The priority for the request. This field may be ignored or overwritten depending
86
- * on the organization tier.
87
- */
88
- priority?: 'low' | 'medium' | 'high' | 'critical' | null;
89
- /**
90
- * The system prompt to use for the extraction.
91
- */
92
- system_prompt?: string | null;
93
- /**
94
- * Whether to use reasoning for the extraction.
95
- */
96
- use_reasoning?: boolean;
97
- }
98
- /**
99
- * Schema for an extraction run.
100
- */
101
- export interface ExtractRun {
102
- /**
103
- * The id of the extraction run
104
- */
105
- id: string;
106
- /**
107
- * The config used for extraction
108
- */
109
- config: ExtractConfig;
110
- /**
111
- * The schema used for extraction
112
- */
113
- data_schema: {
114
- [key: string]: {
115
- [key: string]: unknown;
116
- } | Array<unknown> | string | number | boolean | null;
117
- };
118
- /**
119
- * The id of the extraction agent
120
- */
121
- extraction_agent_id: string;
122
- /**
123
- * Whether this extraction run was triggered from the UI
124
- */
125
- from_ui: boolean;
126
- /**
127
- * The id of the project that the extraction run belongs to
128
- */
129
- project_id: string;
130
- /**
131
- * The status of the extraction run
132
- */
133
- status: 'CREATED' | 'PENDING' | 'SUCCESS' | 'ERROR';
134
- /**
135
- * Creation datetime
136
- */
137
- created_at?: string | null;
138
- /**
139
- * The data extracted from the file
140
- */
141
- data?: {
142
- [key: string]: {
143
- [key: string]: unknown;
144
- } | Array<unknown> | string | number | boolean | null;
145
- } | Array<{
146
- [key: string]: {
147
- [key: string]: unknown;
148
- } | Array<unknown> | string | number | boolean | null;
149
- }> | null;
150
- /**
151
- * The error that occurred during extraction
152
- */
153
- error?: string | null;
154
- /**
155
- * The metadata extracted from the file
156
- */
157
- extraction_metadata?: {
158
- [key: string]: {
159
- [key: string]: unknown;
160
- } | Array<unknown> | string | number | boolean | null;
161
- } | null;
162
- /**
163
- * @deprecated Schema for a file.
164
- */
165
- file?: FilesAPI.File | null;
166
- /**
167
- * The id of the file that the extract was extracted from
168
- */
169
- file_id?: string | null;
170
- /**
171
- * The id of the job that the extraction run belongs to
172
- */
173
- job_id?: string | null;
174
- /**
175
- * Update datetime
176
- */
177
- updated_at?: string | null;
178
- }
179
- export type RunDeleteResponse = unknown;
180
- export interface RunListParams extends PaginatedExtractRunsParams {
181
- extraction_agent_id: string;
182
- }
183
- export interface RunDeleteParams {
184
- organization_id?: string | null;
185
- project_id?: string | null;
186
- }
187
- export interface RunGetParams {
188
- organization_id?: string | null;
189
- project_id?: string | null;
190
- }
191
- export interface RunGetByJobParams {
192
- organization_id?: string | null;
193
- project_id?: string | null;
194
- }
195
- export declare namespace Runs {
196
- export { type ExtractConfig as ExtractConfig, type ExtractRun as ExtractRun, type RunDeleteResponse as RunDeleteResponse, type ExtractRunsPaginatedExtractRuns as ExtractRunsPaginatedExtractRuns, type RunListParams as RunListParams, type RunDeleteParams as RunDeleteParams, type RunGetParams as RunGetParams, type RunGetByJobParams as RunGetByJobParams, };
197
- }
198
- //# sourceMappingURL=runs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/resources/extraction/runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,oBAAoB,EAAE,KAAK,0BAA0B,EAAE;OACtE,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,IAAI,CACF,KAAK,EAAE,aAAa,EACpB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+BAA+B,EAAE,UAAU,CAAC;IAO3D;;OAEG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC;IAQtB;;OAEG;IACH,GAAG,CACD,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,YAAY,GAAG,IAAI,GAAG,SAAc,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC;IAIzB;;OAEG;IACH,QAAQ,CACN,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC;CAG1B;AAED,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAE/E;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEhC;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,iBAAiB,CAAC,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C,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -1,42 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Runs = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const pagination_1 = require("../../core/pagination.js");
7
- const path_1 = require("../../internal/utils/path.js");
8
- class Runs extends resource_1.APIResource {
9
- /**
10
- * List Extract Runs
11
- */
12
- list(query, options) {
13
- return this._client.getAPIList('/api/v1/extraction/runs', (pagination_1.PaginatedExtractRuns), {
14
- query,
15
- ...options,
16
- });
17
- }
18
- /**
19
- * Delete Extraction Run
20
- */
21
- delete(runID, params = {}, options) {
22
- const { organization_id, project_id } = params ?? {};
23
- return this._client.delete((0, path_1.path) `/api/v1/extraction/runs/${runID}`, {
24
- query: { organization_id, project_id },
25
- ...options,
26
- });
27
- }
28
- /**
29
- * Get Run
30
- */
31
- get(runID, query = {}, options) {
32
- return this._client.get((0, path_1.path) `/api/v1/extraction/runs/${runID}`, { query, ...options });
33
- }
34
- /**
35
- * Get Run By Job Id
36
- */
37
- getByJob(jobID, query = {}, options) {
38
- return this._client.get((0, path_1.path) `/api/v1/extraction/runs/by-job/${jobID}`, { query, ...options });
39
- }
40
- }
41
- exports.Runs = Runs;
42
- //# sourceMappingURL=runs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runs.js","sourceRoot":"","sources":["../../src/resources/extraction/runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAA2G;AAE3G,uDAAiD;AAEjD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,IAAI,CACF,KAAoB,EACpB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAA,iCAAgC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,KAAa,EACb,SAA6C,EAAE,EAC/C,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,2BAA2B,KAAK,EAAE,EAAE;YACjE,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE;YACtC,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CACD,KAAa,EACb,QAAyC,EAAE,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,KAAa,EACb,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kCAAkC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;CACF;AAlDD,oBAkDC"}
@@ -1,38 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import { PaginatedExtractRuns } from "../../core/pagination.mjs";
4
- import { path } from "../../internal/utils/path.mjs";
5
- export class Runs extends APIResource {
6
- /**
7
- * List Extract Runs
8
- */
9
- list(query, options) {
10
- return this._client.getAPIList('/api/v1/extraction/runs', (PaginatedExtractRuns), {
11
- query,
12
- ...options,
13
- });
14
- }
15
- /**
16
- * Delete Extraction Run
17
- */
18
- delete(runID, params = {}, options) {
19
- const { organization_id, project_id } = params ?? {};
20
- return this._client.delete(path `/api/v1/extraction/runs/${runID}`, {
21
- query: { organization_id, project_id },
22
- ...options,
23
- });
24
- }
25
- /**
26
- * Get Run
27
- */
28
- get(runID, query = {}, options) {
29
- return this._client.get(path `/api/v1/extraction/runs/${runID}`, { query, ...options });
30
- }
31
- /**
32
- * Get Run By Job Id
33
- */
34
- getByJob(jobID, query = {}, options) {
35
- return this._client.get(path `/api/v1/extraction/runs/by-job/${jobID}`, { query, ...options });
36
- }
37
- }
38
- //# sourceMappingURL=runs.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runs.mjs","sourceRoot":"","sources":["../../src/resources/extraction/runs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAe,oBAAoB,EAAmC;OAEtE,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,IAAI,CACF,KAAoB,EACpB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAA,oBAAgC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,KAAa,EACb,SAA6C,EAAE,EAC/C,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,2BAA2B,KAAK,EAAE,EAAE;YACjE,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE;YACtC,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CACD,KAAa,EACb,QAAyC,EAAE,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,KAAa,EACb,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kCAAkC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;CACF"}
@@ -1,2 +0,0 @@
1
- export * from "./extraction/index.mjs";
2
- //# sourceMappingURL=extraction.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extraction.d.mts","sourceRoot":"","sources":["../src/resources/extraction.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./extraction/index.js";
2
- //# sourceMappingURL=extraction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extraction.d.ts","sourceRoot":"","sources":["../src/resources/extraction.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const tslib_1 = require("../internal/tslib.js");
5
- tslib_1.__exportStar(require("./extraction/index.js"), exports);
6
- //# sourceMappingURL=extraction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extraction.js","sourceRoot":"","sources":["../src/resources/extraction.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gEAAmC"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./extraction/index.mjs";
3
- //# sourceMappingURL=extraction.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extraction.mjs","sourceRoot":"","sources":["../src/resources/extraction.ts"],"names":[],"mappings":"AAAA,sFAAsF"}