@llamaindex/llama-cloud 2.0.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.
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/resources/beta/parse-configurations.d.mts +7 -9
- package/resources/beta/parse-configurations.d.mts.map +1 -1
- package/resources/beta/parse-configurations.d.ts +7 -9
- package/resources/beta/parse-configurations.d.ts.map +1 -1
- package/resources/beta/parse-configurations.js +7 -9
- package/resources/beta/parse-configurations.js.map +1 -1
- package/resources/beta/parse-configurations.mjs +7 -9
- package/resources/beta/parse-configurations.mjs.map +1 -1
- package/resources/beta/sheets.d.mts +2 -2
- package/resources/beta/sheets.d.ts +2 -2
- package/resources/beta/split.d.mts +2 -2
- package/resources/beta/split.d.ts +2 -2
- package/resources/classify.d.mts +22 -14
- package/resources/classify.d.mts.map +1 -1
- package/resources/classify.d.ts +22 -14
- package/resources/classify.d.ts.map +1 -1
- package/resources/classify.js +3 -3
- package/resources/classify.mjs +3 -3
- package/resources/extract.d.mts +26 -21
- package/resources/extract.d.mts.map +1 -1
- package/resources/extract.d.ts +26 -21
- package/resources/extract.d.ts.map +1 -1
- package/resources/extract.js +5 -7
- package/resources/extract.js.map +1 -1
- package/resources/extract.mjs +5 -7
- package/resources/extract.mjs.map +1 -1
- package/resources/files.d.mts +1 -1
- package/resources/files.d.ts +1 -1
- package/resources/files.js +1 -1
- package/resources/files.mjs +1 -1
- package/resources/parsing.d.mts +4 -4
- package/resources/parsing.d.mts.map +1 -1
- package/resources/parsing.d.ts +4 -4
- package/resources/parsing.d.ts.map +1 -1
- package/src/resources/beta/parse-configurations.ts +7 -9
- package/src/resources/beta/sheets.ts +2 -2
- package/src/resources/beta/split.ts +2 -2
- package/src/resources/classify.ts +24 -14
- package/src/resources/extract.ts +29 -19
- package/src/resources/files.ts +1 -1
- package/src/resources/parsing.ts +6 -2
- 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/src/resources/extract.ts
CHANGED
|
@@ -26,7 +26,7 @@ export class Extract extends APIResource {
|
|
|
26
26
|
*
|
|
27
27
|
* ## Document input
|
|
28
28
|
*
|
|
29
|
-
* Set `
|
|
29
|
+
* Set `file_input` to a file ID (`dfl-...`) or a completed parse job ID
|
|
30
30
|
* (`pjb-...`).
|
|
31
31
|
*
|
|
32
32
|
* The job runs asynchronously. Poll `GET /extract/{job_id}` or register a webhook
|
|
@@ -35,8 +35,7 @@ export class Extract extends APIResource {
|
|
|
35
35
|
* @example
|
|
36
36
|
* ```ts
|
|
37
37
|
* const extractV2Job = await client.extract.create({
|
|
38
|
-
*
|
|
39
|
-
* 'dfl-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
|
|
38
|
+
* file_input: 'dfl-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
|
|
40
39
|
* });
|
|
41
40
|
* ```
|
|
42
41
|
*/
|
|
@@ -48,10 +47,9 @@ export class Extract extends APIResource {
|
|
|
48
47
|
/**
|
|
49
48
|
* List extraction jobs with optional filtering and pagination.
|
|
50
49
|
*
|
|
51
|
-
* Filter by `configuration_id`, `status`, `
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* metadata.
|
|
50
|
+
* Filter by `configuration_id`, `status`, `file_input`, or creation date range.
|
|
51
|
+
* Results are returned newest-first. Use `expand=configuration` to include the
|
|
52
|
+
* full configuration used, and `expand=extract_metadata` for per-field metadata.
|
|
55
53
|
*
|
|
56
54
|
* @example
|
|
57
55
|
* ```ts
|
|
@@ -384,7 +382,7 @@ export interface ExtractV2Job {
|
|
|
384
382
|
/**
|
|
385
383
|
* File ID or parse job ID that was extracted
|
|
386
384
|
*/
|
|
387
|
-
|
|
385
|
+
file_input: string;
|
|
388
386
|
|
|
389
387
|
/**
|
|
390
388
|
* Project this job belongs to
|
|
@@ -462,9 +460,9 @@ export namespace ExtractV2Job {
|
|
|
462
460
|
*/
|
|
463
461
|
export interface ExtractV2JobCreate {
|
|
464
462
|
/**
|
|
465
|
-
* File ID or
|
|
463
|
+
* File ID or parse job ID to extract from
|
|
466
464
|
*/
|
|
467
|
-
|
|
465
|
+
file_input: string;
|
|
468
466
|
|
|
469
467
|
/**
|
|
470
468
|
* Extract configuration combining parse and extract settings.
|
|
@@ -472,7 +470,7 @@ export interface ExtractV2JobCreate {
|
|
|
472
470
|
configuration?: ExtractConfiguration | null;
|
|
473
471
|
|
|
474
472
|
/**
|
|
475
|
-
* Saved
|
|
473
|
+
* Saved configuration ID
|
|
476
474
|
*/
|
|
477
475
|
configuration_id?: string | null;
|
|
478
476
|
|
|
@@ -607,7 +605,11 @@ export interface ExtractV2SchemaValidateResponse {
|
|
|
607
605
|
*/
|
|
608
606
|
export interface ExtractedFieldMetadata {
|
|
609
607
|
/**
|
|
610
|
-
*
|
|
608
|
+
* Per-field metadata keyed by field name from your schema. Scalar fields (e.g.
|
|
609
|
+
* `vendor`) map to a FieldMetadataEntry with citation and confidence. Array fields
|
|
610
|
+
* (e.g. `items`) map to a list where each element contains per-sub-field
|
|
611
|
+
* FieldMetadataEntry objects, indexed by array position. Nested objects contain
|
|
612
|
+
* sub-field entries recursively.
|
|
611
613
|
*/
|
|
612
614
|
document_metadata?: {
|
|
613
615
|
[key: string]: { [key: string]: unknown } | Array<unknown> | string | number | boolean | null;
|
|
@@ -883,6 +885,8 @@ export namespace ExtractGenerateSchemaResponse {
|
|
|
883
885
|
| '2026-03-25'
|
|
884
886
|
| '2026-03-26'
|
|
885
887
|
| '2026-03-27'
|
|
888
|
+
| '2026-03-30'
|
|
889
|
+
| '2026-03-31'
|
|
886
890
|
| 'latest'
|
|
887
891
|
| (string & {});
|
|
888
892
|
|
|
@@ -1658,6 +1662,8 @@ export namespace ExtractGenerateSchemaResponse {
|
|
|
1658
1662
|
| '2026-03-25'
|
|
1659
1663
|
| '2026-03-26'
|
|
1660
1664
|
| '2026-03-27'
|
|
1665
|
+
| '2026-03-30'
|
|
1666
|
+
| '2026-03-31'
|
|
1661
1667
|
| 'latest'
|
|
1662
1668
|
| (string & {})
|
|
1663
1669
|
| null;
|
|
@@ -1837,9 +1843,9 @@ export namespace ExtractGenerateSchemaResponse {
|
|
|
1837
1843
|
|
|
1838
1844
|
export interface ExtractCreateParams {
|
|
1839
1845
|
/**
|
|
1840
|
-
* Body param: File ID or
|
|
1846
|
+
* Body param: File ID or parse job ID to extract from
|
|
1841
1847
|
*/
|
|
1842
|
-
|
|
1848
|
+
file_input: string;
|
|
1843
1849
|
|
|
1844
1850
|
/**
|
|
1845
1851
|
* Query param
|
|
@@ -1857,8 +1863,7 @@ export interface ExtractCreateParams {
|
|
|
1857
1863
|
configuration?: ExtractConfiguration | null;
|
|
1858
1864
|
|
|
1859
1865
|
/**
|
|
1860
|
-
* Body param: Saved
|
|
1861
|
-
* configuration)
|
|
1866
|
+
* Body param: Saved configuration ID
|
|
1862
1867
|
*/
|
|
1863
1868
|
configuration_id?: string | null;
|
|
1864
1869
|
|
|
@@ -1921,12 +1926,12 @@ export interface ExtractListParams extends PaginatedCursorParams {
|
|
|
1921
1926
|
configuration_id?: string | null;
|
|
1922
1927
|
|
|
1923
1928
|
/**
|
|
1924
|
-
* Include
|
|
1929
|
+
* Include items created at or after this timestamp (inclusive)
|
|
1925
1930
|
*/
|
|
1926
1931
|
created_at_on_or_after?: string | null;
|
|
1927
1932
|
|
|
1928
1933
|
/**
|
|
1929
|
-
* Include
|
|
1934
|
+
* Include items created at or before this timestamp (inclusive)
|
|
1930
1935
|
*/
|
|
1931
1936
|
created_at_on_or_before?: string | null;
|
|
1932
1937
|
|
|
@@ -1936,7 +1941,7 @@ export interface ExtractListParams extends PaginatedCursorParams {
|
|
|
1936
1941
|
document_input_type?: string | null;
|
|
1937
1942
|
|
|
1938
1943
|
/**
|
|
1939
|
-
*
|
|
1944
|
+
* @deprecated Deprecated: use file_input instead
|
|
1940
1945
|
*/
|
|
1941
1946
|
document_input_value?: string | null;
|
|
1942
1947
|
|
|
@@ -1945,6 +1950,11 @@ export interface ExtractListParams extends PaginatedCursorParams {
|
|
|
1945
1950
|
*/
|
|
1946
1951
|
expand?: Array<string>;
|
|
1947
1952
|
|
|
1953
|
+
/**
|
|
1954
|
+
* Filter by file input value
|
|
1955
|
+
*/
|
|
1956
|
+
file_input?: string | null;
|
|
1957
|
+
|
|
1948
1958
|
/**
|
|
1949
1959
|
* Filter by specific job IDs
|
|
1950
1960
|
*/
|
package/src/resources/files.ts
CHANGED
|
@@ -76,7 +76,7 @@ export class Files extends APIResource {
|
|
|
76
76
|
* **Deprecated**: Use GET /files instead for listing files with query parameters.
|
|
77
77
|
*
|
|
78
78
|
* Args: request: The query request with filters and pagination project: Validated
|
|
79
|
-
* project from dependency
|
|
79
|
+
* project from dependency
|
|
80
80
|
*
|
|
81
81
|
* Returns: Paginated response with files
|
|
82
82
|
*
|
package/src/resources/parsing.ts
CHANGED
|
@@ -1396,6 +1396,8 @@ export interface ParsingCreateParams {
|
|
|
1396
1396
|
| '2026-03-25'
|
|
1397
1397
|
| '2026-03-26'
|
|
1398
1398
|
| '2026-03-27'
|
|
1399
|
+
| '2026-03-30'
|
|
1400
|
+
| '2026-03-31'
|
|
1399
1401
|
| 'latest'
|
|
1400
1402
|
| (string & {});
|
|
1401
1403
|
|
|
@@ -2199,6 +2201,8 @@ export namespace ParsingCreateParams {
|
|
|
2199
2201
|
| '2026-03-25'
|
|
2200
2202
|
| '2026-03-26'
|
|
2201
2203
|
| '2026-03-27'
|
|
2204
|
+
| '2026-03-30'
|
|
2205
|
+
| '2026-03-31'
|
|
2202
2206
|
| 'latest'
|
|
2203
2207
|
| (string & {})
|
|
2204
2208
|
| null;
|
|
@@ -2363,12 +2367,12 @@ export namespace ParsingCreateParams {
|
|
|
2363
2367
|
|
|
2364
2368
|
export interface ParsingListParams extends PaginatedCursorParams {
|
|
2365
2369
|
/**
|
|
2366
|
-
* Include
|
|
2370
|
+
* Include items created at or after this timestamp (inclusive)
|
|
2367
2371
|
*/
|
|
2368
2372
|
created_at_on_or_after?: string | null;
|
|
2369
2373
|
|
|
2370
2374
|
/**
|
|
2371
|
-
* Include
|
|
2375
|
+
* Include items created at or before this timestamp (inclusive)
|
|
2372
2376
|
*/
|
|
2373
2377
|
created_at_on_or_before?: string | null;
|
|
2374
2378
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.1.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.1.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|