@llamaindex/llama-cloud 1.7.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.
- package/CHANGELOG.md +80 -0
- package/README.md +10 -8
- package/client.d.mts +9 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -8
- package/client.d.ts.map +1 -1
- package/client.js +16 -12
- package/client.js.map +1 -1
- package/client.mjs +16 -12
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +0 -23
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +0 -23
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +1 -32
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +0 -30
- package/core/pagination.mjs.map +1 -1
- package/package.json +12 -1
- package/resources/beta/batch/batch.d.mts +55 -30
- package/resources/beta/batch/batch.d.mts.map +1 -1
- package/resources/beta/batch/batch.d.ts +55 -30
- package/resources/beta/batch/batch.d.ts.map +1 -1
- package/resources/beta/batch/batch.js +14 -11
- package/resources/beta/batch/batch.js.map +1 -1
- package/resources/beta/batch/batch.mjs +14 -11
- package/resources/beta/batch/batch.mjs.map +1 -1
- package/resources/beta/batch/job-items.d.mts +36 -13
- package/resources/beta/batch/job-items.d.mts.map +1 -1
- package/resources/beta/batch/job-items.d.ts +36 -13
- package/resources/beta/batch/job-items.d.ts.map +1 -1
- package/resources/beta/batch/job-items.js +6 -8
- package/resources/beta/batch/job-items.js.map +1 -1
- package/resources/beta/batch/job-items.mjs +6 -8
- package/resources/beta/batch/job-items.mjs.map +1 -1
- package/resources/beta/sheets.d.mts +16 -0
- package/resources/beta/sheets.d.mts.map +1 -1
- package/resources/beta/sheets.d.ts +16 -0
- package/resources/beta/sheets.d.ts.map +1 -1
- package/resources/beta/split.d.mts +60 -16
- package/resources/beta/split.d.mts.map +1 -1
- package/resources/beta/split.d.ts +60 -16
- package/resources/beta/split.d.ts.map +1 -1
- package/resources/beta/split.js.map +1 -1
- package/resources/beta/split.mjs.map +1 -1
- package/resources/classifier/jobs.d.mts +20 -3
- package/resources/classifier/jobs.d.mts.map +1 -1
- package/resources/classifier/jobs.d.ts +20 -3
- package/resources/classifier/jobs.d.ts.map +1 -1
- package/resources/classifier/jobs.js +8 -0
- package/resources/classifier/jobs.js.map +1 -1
- package/resources/classifier/jobs.mjs +8 -0
- package/resources/classifier/jobs.mjs.map +1 -1
- package/resources/classify.d.mts +373 -0
- package/resources/classify.d.mts.map +1 -0
- package/resources/classify.d.ts +373 -0
- package/resources/classify.d.ts.map +1 -0
- package/resources/classify.js +54 -0
- package/resources/classify.js.map +1 -0
- package/resources/classify.mjs +50 -0
- package/resources/classify.mjs.map +1 -0
- package/resources/extract.d.mts +1588 -0
- package/resources/extract.d.mts.map +1 -0
- package/resources/extract.d.ts +1588 -0
- package/resources/extract.d.ts.map +1 -0
- package/resources/extract.js +217 -0
- package/resources/extract.js.map +1 -0
- package/resources/extract.mjs +213 -0
- package/resources/extract.mjs.map +1 -0
- package/resources/files.d.mts +52 -38
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +52 -38
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +10 -9
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +10 -9
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/parsing.d.mts +324 -138
- package/resources/parsing.d.mts.map +1 -1
- package/resources/parsing.d.ts +324 -138
- package/resources/parsing.d.ts.map +1 -1
- package/resources/parsing.js +30 -4
- package/resources/parsing.js.map +1 -1
- package/resources/parsing.mjs +30 -4
- package/resources/parsing.mjs.map +1 -1
- package/resources/pipelines/pipelines.d.mts +59 -13
- package/resources/pipelines/pipelines.d.mts.map +1 -1
- package/resources/pipelines/pipelines.d.ts +59 -13
- package/resources/pipelines/pipelines.d.ts.map +1 -1
- package/resources/pipelines/pipelines.js +24 -9
- package/resources/pipelines/pipelines.js.map +1 -1
- package/resources/pipelines/pipelines.mjs +24 -9
- package/resources/pipelines/pipelines.mjs.map +1 -1
- package/resources/pipelines/sync.d.mts +5 -3
- package/resources/pipelines/sync.d.mts.map +1 -1
- package/resources/pipelines/sync.d.ts +5 -3
- package/resources/pipelines/sync.d.ts.map +1 -1
- package/resources/pipelines/sync.js +5 -3
- package/resources/pipelines/sync.js.map +1 -1
- package/resources/pipelines/sync.mjs +5 -3
- package/resources/pipelines/sync.mjs.map +1 -1
- package/src/client.ts +86 -22
- package/src/core/pagination.ts +0 -71
- package/src/resources/beta/batch/batch.ts +75 -30
- package/src/resources/beta/batch/job-items.ts +56 -13
- package/src/resources/beta/sheets.ts +20 -0
- package/src/resources/beta/split.ts +70 -17
- package/src/resources/classifier/jobs.ts +20 -3
- package/src/resources/classify.ts +486 -0
- package/src/resources/extract.ts +2045 -0
- package/src/resources/files.ts +52 -38
- package/src/resources/index.ts +35 -1
- package/src/resources/parsing.ts +367 -136
- package/src/resources/pipelines/pipelines.ts +80 -14
- package/src/resources/pipelines/sync.ts +5 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/extraction/extraction-agents/extraction-agents.d.mts +0 -126
- package/resources/extraction/extraction-agents/extraction-agents.d.mts.map +0 -1
- package/resources/extraction/extraction-agents/extraction-agents.d.ts +0 -126
- package/resources/extraction/extraction-agents/extraction-agents.d.ts.map +0 -1
- package/resources/extraction/extraction-agents/extraction-agents.js +0 -56
- package/resources/extraction/extraction-agents/extraction-agents.js.map +0 -1
- package/resources/extraction/extraction-agents/extraction-agents.mjs +0 -51
- package/resources/extraction/extraction-agents/extraction-agents.mjs.map +0 -1
- package/resources/extraction/extraction-agents/index.d.mts +0 -3
- package/resources/extraction/extraction-agents/index.d.mts.map +0 -1
- package/resources/extraction/extraction-agents/index.d.ts +0 -3
- package/resources/extraction/extraction-agents/index.d.ts.map +0 -1
- package/resources/extraction/extraction-agents/index.js +0 -9
- package/resources/extraction/extraction-agents/index.js.map +0 -1
- package/resources/extraction/extraction-agents/index.mjs +0 -4
- package/resources/extraction/extraction-agents/index.mjs.map +0 -1
- package/resources/extraction/extraction-agents/schema.d.mts +0 -75
- package/resources/extraction/extraction-agents/schema.d.mts.map +0 -1
- package/resources/extraction/extraction-agents/schema.d.ts +0 -75
- package/resources/extraction/extraction-agents/schema.d.ts.map +0 -1
- package/resources/extraction/extraction-agents/schema.js +0 -28
- package/resources/extraction/extraction-agents/schema.js.map +0 -1
- package/resources/extraction/extraction-agents/schema.mjs +0 -24
- package/resources/extraction/extraction-agents/schema.mjs.map +0 -1
- package/resources/extraction/extraction-agents.d.mts +0 -2
- package/resources/extraction/extraction-agents.d.mts.map +0 -1
- package/resources/extraction/extraction-agents.d.ts +0 -2
- package/resources/extraction/extraction-agents.d.ts.map +0 -1
- package/resources/extraction/extraction-agents.js +0 -6
- package/resources/extraction/extraction-agents.js.map +0 -1
- package/resources/extraction/extraction-agents.mjs +0 -3
- package/resources/extraction/extraction-agents.mjs.map +0 -1
- package/resources/extraction/extraction.d.mts +0 -118
- package/resources/extraction/extraction.d.mts.map +0 -1
- package/resources/extraction/extraction.d.ts +0 -118
- package/resources/extraction/extraction.d.ts.map +0 -1
- package/resources/extraction/extraction.js +0 -91
- package/resources/extraction/extraction.js.map +0 -1
- package/resources/extraction/extraction.mjs +0 -86
- package/resources/extraction/extraction.mjs.map +0 -1
- package/resources/extraction/index.d.mts +0 -5
- package/resources/extraction/index.d.mts.map +0 -1
- package/resources/extraction/index.d.ts +0 -5
- package/resources/extraction/index.d.ts.map +0 -1
- package/resources/extraction/index.js +0 -13
- package/resources/extraction/index.js.map +0 -1
- package/resources/extraction/index.mjs +0 -6
- package/resources/extraction/index.mjs.map +0 -1
- package/resources/extraction/jobs.d.mts +0 -280
- package/resources/extraction/jobs.d.mts.map +0 -1
- package/resources/extraction/jobs.d.ts +0 -280
- package/resources/extraction/jobs.d.ts.map +0 -1
- package/resources/extraction/jobs.js +0 -179
- package/resources/extraction/jobs.js.map +0 -1
- package/resources/extraction/jobs.mjs +0 -175
- package/resources/extraction/jobs.mjs.map +0 -1
- package/resources/extraction/runs.d.mts +0 -198
- package/resources/extraction/runs.d.mts.map +0 -1
- package/resources/extraction/runs.d.ts +0 -198
- package/resources/extraction/runs.d.ts.map +0 -1
- package/resources/extraction/runs.js +0 -42
- package/resources/extraction/runs.js.map +0 -1
- package/resources/extraction/runs.mjs +0 -38
- package/resources/extraction/runs.mjs.map +0 -1
- package/resources/extraction.d.mts +0 -2
- package/resources/extraction.d.mts.map +0 -1
- package/resources/extraction.d.ts +0 -2
- package/resources/extraction.d.ts.map +0 -1
- package/resources/extraction.js +0 -6
- package/resources/extraction.js.map +0 -1
- package/resources/extraction.mjs +0 -3
- package/resources/extraction.mjs.map +0 -1
- package/src/resources/extraction/extraction-agents/extraction-agents.ts +0 -196
- package/src/resources/extraction/extraction-agents/index.ts +0 -18
- package/src/resources/extraction/extraction-agents/schema.ts +0 -100
- package/src/resources/extraction/extraction-agents.ts +0 -3
- package/src/resources/extraction/extraction.ts +0 -224
- package/src/resources/extraction/index.ts +0 -34
- package/src/resources/extraction/jobs.ts +0 -414
- package/src/resources/extraction/runs.ts +0 -315
- package/src/resources/extraction.ts +0 -3
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { PagePromise, PaginatedCursor, type PaginatedCursorParams } from "../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class Classify extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a classify job.
|
|
8
|
+
*
|
|
9
|
+
* Classifies a document against a set of rules. Provide either `file_id` or
|
|
10
|
+
* `parse_job_id` as the document input, and either inline `configuration` with
|
|
11
|
+
* rules or a `configuration_id` referencing a saved preset.
|
|
12
|
+
*
|
|
13
|
+
* Each rule has a `type` (the label to assign) and a `description` (natural
|
|
14
|
+
* language criteria). The classifier returns the best matching rule with a
|
|
15
|
+
* confidence score.
|
|
16
|
+
*
|
|
17
|
+
* The job runs asynchronously. Poll `GET /classify/{job_id}` to check status and
|
|
18
|
+
* retrieve results.
|
|
19
|
+
*/
|
|
20
|
+
create(params: ClassifyCreateParams, options?: RequestOptions): APIPromise<ClassifyCreateResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* List classify jobs with optional filtering and pagination.
|
|
23
|
+
*
|
|
24
|
+
* Filter by `status`, `configuration_id`, specific `job_ids`, or creation date
|
|
25
|
+
* range.
|
|
26
|
+
*/
|
|
27
|
+
list(query?: ClassifyListParams | null | undefined, options?: RequestOptions): PagePromise<ClassifyListResponsesPaginatedCursor, ClassifyListResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Get a classify job by ID.
|
|
30
|
+
*
|
|
31
|
+
* Returns the job status, configuration, and classify result when complete. The
|
|
32
|
+
* result includes the matched document type, confidence score, and reasoning.
|
|
33
|
+
*/
|
|
34
|
+
get(jobID: string, query?: ClassifyGetParams | null | undefined, options?: RequestOptions): APIPromise<ClassifyGetResponse>;
|
|
35
|
+
}
|
|
36
|
+
export type ClassifyListResponsesPaginatedCursor = PaginatedCursor<ClassifyListResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Configuration for a classify job.
|
|
39
|
+
*/
|
|
40
|
+
export interface ClassifyConfiguration {
|
|
41
|
+
/**
|
|
42
|
+
* Classify rules to evaluate against the document (at least one required)
|
|
43
|
+
*/
|
|
44
|
+
rules: Array<ClassifyConfiguration.Rule>;
|
|
45
|
+
/**
|
|
46
|
+
* Classify execution mode
|
|
47
|
+
*/
|
|
48
|
+
mode?: 'FAST';
|
|
49
|
+
/**
|
|
50
|
+
* Parsing configuration for classify jobs.
|
|
51
|
+
*/
|
|
52
|
+
parsing_configuration?: ClassifyConfiguration.ParsingConfiguration | null;
|
|
53
|
+
}
|
|
54
|
+
export declare namespace ClassifyConfiguration {
|
|
55
|
+
/**
|
|
56
|
+
* A rule for classifying documents.
|
|
57
|
+
*/
|
|
58
|
+
interface Rule {
|
|
59
|
+
/**
|
|
60
|
+
* Natural language criteria for matching this rule
|
|
61
|
+
*/
|
|
62
|
+
description: string;
|
|
63
|
+
/**
|
|
64
|
+
* Document type to assign when rule matches
|
|
65
|
+
*/
|
|
66
|
+
type: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Parsing configuration for classify jobs.
|
|
70
|
+
*/
|
|
71
|
+
interface ParsingConfiguration {
|
|
72
|
+
/**
|
|
73
|
+
* ISO 639-1 language code for the document
|
|
74
|
+
*/
|
|
75
|
+
lang?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Maximum number of pages to process. Omit for no limit.
|
|
78
|
+
*/
|
|
79
|
+
max_pages?: number | null;
|
|
80
|
+
/**
|
|
81
|
+
* Comma-separated page numbers or ranges to process (1-based). Omit to process all
|
|
82
|
+
* pages.
|
|
83
|
+
*/
|
|
84
|
+
target_pages?: string | null;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Request to create a classify job.
|
|
89
|
+
*/
|
|
90
|
+
export interface ClassifyCreateRequest {
|
|
91
|
+
/**
|
|
92
|
+
* Configuration for a classify job.
|
|
93
|
+
*/
|
|
94
|
+
configuration?: ClassifyConfiguration | null;
|
|
95
|
+
/**
|
|
96
|
+
* Product configuration ID for reusable presets
|
|
97
|
+
*/
|
|
98
|
+
configuration_id?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* File ID to classify
|
|
101
|
+
*/
|
|
102
|
+
file_id?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Parse job ID to classify
|
|
105
|
+
*/
|
|
106
|
+
parse_job_id?: string | null;
|
|
107
|
+
/**
|
|
108
|
+
* Idempotency key scoped to the project
|
|
109
|
+
*/
|
|
110
|
+
transaction_id?: string | null;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Result of classifying a document.
|
|
114
|
+
*/
|
|
115
|
+
export interface ClassifyResult {
|
|
116
|
+
/**
|
|
117
|
+
* Confidence score between 0.0 and 1.0
|
|
118
|
+
*/
|
|
119
|
+
confidence: number;
|
|
120
|
+
/**
|
|
121
|
+
* Why the document matched (or didn't match) the returned rule
|
|
122
|
+
*/
|
|
123
|
+
reasoning: string;
|
|
124
|
+
/**
|
|
125
|
+
* Matched rule type, or null if no rule matched
|
|
126
|
+
*/
|
|
127
|
+
type: string | null;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Response for a classify job.
|
|
131
|
+
*/
|
|
132
|
+
export interface ClassifyCreateResponse {
|
|
133
|
+
/**
|
|
134
|
+
* Unique identifier
|
|
135
|
+
*/
|
|
136
|
+
id: string;
|
|
137
|
+
/**
|
|
138
|
+
* Classify configuration used for this job
|
|
139
|
+
*/
|
|
140
|
+
configuration: ClassifyConfiguration;
|
|
141
|
+
/**
|
|
142
|
+
* Whether the input was a file or parse job (FILE or PARSE_JOB)
|
|
143
|
+
*/
|
|
144
|
+
document_input_type: 'url' | 'file_id' | 'parse_job_id';
|
|
145
|
+
/**
|
|
146
|
+
* ID of the input file or parse job
|
|
147
|
+
*/
|
|
148
|
+
document_input_value: string;
|
|
149
|
+
/**
|
|
150
|
+
* Project this job belongs to
|
|
151
|
+
*/
|
|
152
|
+
project_id: string;
|
|
153
|
+
/**
|
|
154
|
+
* Current job status: PENDING, RUNNING, COMPLETED, or FAILED
|
|
155
|
+
*/
|
|
156
|
+
status: 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED';
|
|
157
|
+
/**
|
|
158
|
+
* User who created this job
|
|
159
|
+
*/
|
|
160
|
+
user_id: string;
|
|
161
|
+
/**
|
|
162
|
+
* Product configuration ID
|
|
163
|
+
*/
|
|
164
|
+
configuration_id?: string | null;
|
|
165
|
+
/**
|
|
166
|
+
* Creation datetime
|
|
167
|
+
*/
|
|
168
|
+
created_at?: string | null;
|
|
169
|
+
/**
|
|
170
|
+
* Error message if job failed
|
|
171
|
+
*/
|
|
172
|
+
error_message?: string | null;
|
|
173
|
+
/**
|
|
174
|
+
* Associated parse job ID
|
|
175
|
+
*/
|
|
176
|
+
parse_job_id?: string | null;
|
|
177
|
+
/**
|
|
178
|
+
* Result of classifying a document.
|
|
179
|
+
*/
|
|
180
|
+
result?: ClassifyResult | null;
|
|
181
|
+
/**
|
|
182
|
+
* Idempotency key
|
|
183
|
+
*/
|
|
184
|
+
transaction_id?: string | null;
|
|
185
|
+
/**
|
|
186
|
+
* Update datetime
|
|
187
|
+
*/
|
|
188
|
+
updated_at?: string | null;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Response for a classify job.
|
|
192
|
+
*/
|
|
193
|
+
export interface ClassifyListResponse {
|
|
194
|
+
/**
|
|
195
|
+
* Unique identifier
|
|
196
|
+
*/
|
|
197
|
+
id: string;
|
|
198
|
+
/**
|
|
199
|
+
* Classify configuration used for this job
|
|
200
|
+
*/
|
|
201
|
+
configuration: ClassifyConfiguration;
|
|
202
|
+
/**
|
|
203
|
+
* Whether the input was a file or parse job (FILE or PARSE_JOB)
|
|
204
|
+
*/
|
|
205
|
+
document_input_type: 'url' | 'file_id' | 'parse_job_id';
|
|
206
|
+
/**
|
|
207
|
+
* ID of the input file or parse job
|
|
208
|
+
*/
|
|
209
|
+
document_input_value: string;
|
|
210
|
+
/**
|
|
211
|
+
* Project this job belongs to
|
|
212
|
+
*/
|
|
213
|
+
project_id: string;
|
|
214
|
+
/**
|
|
215
|
+
* Current job status: PENDING, RUNNING, COMPLETED, or FAILED
|
|
216
|
+
*/
|
|
217
|
+
status: 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED';
|
|
218
|
+
/**
|
|
219
|
+
* User who created this job
|
|
220
|
+
*/
|
|
221
|
+
user_id: string;
|
|
222
|
+
/**
|
|
223
|
+
* Product configuration ID
|
|
224
|
+
*/
|
|
225
|
+
configuration_id?: string | null;
|
|
226
|
+
/**
|
|
227
|
+
* Creation datetime
|
|
228
|
+
*/
|
|
229
|
+
created_at?: string | null;
|
|
230
|
+
/**
|
|
231
|
+
* Error message if job failed
|
|
232
|
+
*/
|
|
233
|
+
error_message?: string | null;
|
|
234
|
+
/**
|
|
235
|
+
* Associated parse job ID
|
|
236
|
+
*/
|
|
237
|
+
parse_job_id?: string | null;
|
|
238
|
+
/**
|
|
239
|
+
* Result of classifying a document.
|
|
240
|
+
*/
|
|
241
|
+
result?: ClassifyResult | null;
|
|
242
|
+
/**
|
|
243
|
+
* Idempotency key
|
|
244
|
+
*/
|
|
245
|
+
transaction_id?: string | null;
|
|
246
|
+
/**
|
|
247
|
+
* Update datetime
|
|
248
|
+
*/
|
|
249
|
+
updated_at?: string | null;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Response for a classify job.
|
|
253
|
+
*/
|
|
254
|
+
export interface ClassifyGetResponse {
|
|
255
|
+
/**
|
|
256
|
+
* Unique identifier
|
|
257
|
+
*/
|
|
258
|
+
id: string;
|
|
259
|
+
/**
|
|
260
|
+
* Classify configuration used for this job
|
|
261
|
+
*/
|
|
262
|
+
configuration: ClassifyConfiguration;
|
|
263
|
+
/**
|
|
264
|
+
* Whether the input was a file or parse job (FILE or PARSE_JOB)
|
|
265
|
+
*/
|
|
266
|
+
document_input_type: 'url' | 'file_id' | 'parse_job_id';
|
|
267
|
+
/**
|
|
268
|
+
* ID of the input file or parse job
|
|
269
|
+
*/
|
|
270
|
+
document_input_value: string;
|
|
271
|
+
/**
|
|
272
|
+
* Project this job belongs to
|
|
273
|
+
*/
|
|
274
|
+
project_id: string;
|
|
275
|
+
/**
|
|
276
|
+
* Current job status: PENDING, RUNNING, COMPLETED, or FAILED
|
|
277
|
+
*/
|
|
278
|
+
status: 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED';
|
|
279
|
+
/**
|
|
280
|
+
* User who created this job
|
|
281
|
+
*/
|
|
282
|
+
user_id: string;
|
|
283
|
+
/**
|
|
284
|
+
* Product configuration ID
|
|
285
|
+
*/
|
|
286
|
+
configuration_id?: string | null;
|
|
287
|
+
/**
|
|
288
|
+
* Creation datetime
|
|
289
|
+
*/
|
|
290
|
+
created_at?: string | null;
|
|
291
|
+
/**
|
|
292
|
+
* Error message if job failed
|
|
293
|
+
*/
|
|
294
|
+
error_message?: string | null;
|
|
295
|
+
/**
|
|
296
|
+
* Associated parse job ID
|
|
297
|
+
*/
|
|
298
|
+
parse_job_id?: string | null;
|
|
299
|
+
/**
|
|
300
|
+
* Result of classifying a document.
|
|
301
|
+
*/
|
|
302
|
+
result?: ClassifyResult | null;
|
|
303
|
+
/**
|
|
304
|
+
* Idempotency key
|
|
305
|
+
*/
|
|
306
|
+
transaction_id?: string | null;
|
|
307
|
+
/**
|
|
308
|
+
* Update datetime
|
|
309
|
+
*/
|
|
310
|
+
updated_at?: string | null;
|
|
311
|
+
}
|
|
312
|
+
export interface ClassifyCreateParams {
|
|
313
|
+
/**
|
|
314
|
+
* Query param
|
|
315
|
+
*/
|
|
316
|
+
organization_id?: string | null;
|
|
317
|
+
/**
|
|
318
|
+
* Query param
|
|
319
|
+
*/
|
|
320
|
+
project_id?: string | null;
|
|
321
|
+
/**
|
|
322
|
+
* Body param: Configuration for a classify job.
|
|
323
|
+
*/
|
|
324
|
+
configuration?: ClassifyConfiguration | null;
|
|
325
|
+
/**
|
|
326
|
+
* Body param: Product configuration ID for reusable presets
|
|
327
|
+
*/
|
|
328
|
+
configuration_id?: string | null;
|
|
329
|
+
/**
|
|
330
|
+
* Body param: File ID to classify
|
|
331
|
+
*/
|
|
332
|
+
file_id?: string | null;
|
|
333
|
+
/**
|
|
334
|
+
* Body param: Parse job ID to classify
|
|
335
|
+
*/
|
|
336
|
+
parse_job_id?: string | null;
|
|
337
|
+
/**
|
|
338
|
+
* Body param: Idempotency key scoped to the project
|
|
339
|
+
*/
|
|
340
|
+
transaction_id?: string | null;
|
|
341
|
+
}
|
|
342
|
+
export interface ClassifyListParams extends PaginatedCursorParams {
|
|
343
|
+
/**
|
|
344
|
+
* Filter by configuration ID
|
|
345
|
+
*/
|
|
346
|
+
configuration_id?: string | null;
|
|
347
|
+
/**
|
|
348
|
+
* Include jobs created at or after this timestamp (inclusive)
|
|
349
|
+
*/
|
|
350
|
+
created_at_on_or_after?: string | null;
|
|
351
|
+
/**
|
|
352
|
+
* Include jobs created at or before this timestamp (inclusive)
|
|
353
|
+
*/
|
|
354
|
+
created_at_on_or_before?: string | null;
|
|
355
|
+
/**
|
|
356
|
+
* Filter by specific job IDs
|
|
357
|
+
*/
|
|
358
|
+
job_ids?: Array<string> | null;
|
|
359
|
+
organization_id?: string | null;
|
|
360
|
+
project_id?: string | null;
|
|
361
|
+
/**
|
|
362
|
+
* Filter by job status
|
|
363
|
+
*/
|
|
364
|
+
status?: 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED' | null;
|
|
365
|
+
}
|
|
366
|
+
export interface ClassifyGetParams {
|
|
367
|
+
organization_id?: string | null;
|
|
368
|
+
project_id?: string | null;
|
|
369
|
+
}
|
|
370
|
+
export declare namespace Classify {
|
|
371
|
+
export { type ClassifyConfiguration as ClassifyConfiguration, type ClassifyCreateRequest as ClassifyCreateRequest, type ClassifyResult as ClassifyResult, type ClassifyCreateResponse as ClassifyCreateResponse, type ClassifyListResponse as ClassifyListResponse, type ClassifyGetResponse as ClassifyGetResponse, type ClassifyListResponsesPaginatedCursor as ClassifyListResponsesPaginatedCursor, type ClassifyCreateParams as ClassifyCreateParams, type ClassifyListParams as ClassifyListParams, type ClassifyGetParams as ClassifyGetParams, };
|
|
372
|
+
}
|
|
373
|
+
//# sourceMappingURL=classify.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classify.d.mts","sourceRoot":"","sources":["../src/resources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