@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.
Files changed (48) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +1 -1
  3. package/resources/beta/parse-configurations.d.mts +7 -9
  4. package/resources/beta/parse-configurations.d.mts.map +1 -1
  5. package/resources/beta/parse-configurations.d.ts +7 -9
  6. package/resources/beta/parse-configurations.d.ts.map +1 -1
  7. package/resources/beta/parse-configurations.js +7 -9
  8. package/resources/beta/parse-configurations.js.map +1 -1
  9. package/resources/beta/parse-configurations.mjs +7 -9
  10. package/resources/beta/parse-configurations.mjs.map +1 -1
  11. package/resources/beta/sheets.d.mts +2 -2
  12. package/resources/beta/sheets.d.ts +2 -2
  13. package/resources/beta/split.d.mts +2 -2
  14. package/resources/beta/split.d.ts +2 -2
  15. package/resources/classify.d.mts +22 -14
  16. package/resources/classify.d.mts.map +1 -1
  17. package/resources/classify.d.ts +22 -14
  18. package/resources/classify.d.ts.map +1 -1
  19. package/resources/classify.js +3 -3
  20. package/resources/classify.mjs +3 -3
  21. package/resources/extract.d.mts +26 -21
  22. package/resources/extract.d.mts.map +1 -1
  23. package/resources/extract.d.ts +26 -21
  24. package/resources/extract.d.ts.map +1 -1
  25. package/resources/extract.js +5 -7
  26. package/resources/extract.js.map +1 -1
  27. package/resources/extract.mjs +5 -7
  28. package/resources/extract.mjs.map +1 -1
  29. package/resources/files.d.mts +1 -1
  30. package/resources/files.d.ts +1 -1
  31. package/resources/files.js +1 -1
  32. package/resources/files.mjs +1 -1
  33. package/resources/parsing.d.mts +4 -4
  34. package/resources/parsing.d.mts.map +1 -1
  35. package/resources/parsing.d.ts +4 -4
  36. package/resources/parsing.d.ts.map +1 -1
  37. package/src/resources/beta/parse-configurations.ts +7 -9
  38. package/src/resources/beta/sheets.ts +2 -2
  39. package/src/resources/beta/split.ts +2 -2
  40. package/src/resources/classify.ts +24 -14
  41. package/src/resources/extract.ts +29 -19
  42. package/src/resources/files.ts +1 -1
  43. package/src/resources/parsing.ts +6 -2
  44. package/src/version.ts +1 -1
  45. package/version.d.mts +1 -1
  46. package/version.d.ts +1 -1
  47. package/version.js +1 -1
  48. package/version.mjs +1 -1
@@ -26,7 +26,7 @@ export class Extract extends APIResource {
26
26
  *
27
27
  * ## Document input
28
28
  *
29
- * Set `document_input_value` to a file ID (`dfl-...`) or a completed parse job ID
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
- * document_input_value:
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`, `document_input_value`, or creation date
52
- * range. Results are returned newest-first. Use `expand=configuration` to include
53
- * the full configuration used, and `expand=extract_metadata` for per-field
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
- document_input_value: string;
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 Parse Job ID to extract from
463
+ * File ID or parse job ID to extract from
466
464
  */
467
- document_input_value: string;
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 extract configuration ID (mutually exclusive with configuration)
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
- * Document-level metadata (citations, confidence) keyed by field name
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 Parse Job ID to extract from
1846
+ * Body param: File ID or parse job ID to extract from
1841
1847
  */
1842
- document_input_value: string;
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 extract configuration ID (mutually exclusive with
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 jobs created at or after this timestamp (inclusive)
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 jobs created at or before this timestamp (inclusive)
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
- * Filter by document input value
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
  */
@@ -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 db: Database session
79
+ * project from dependency
80
80
  *
81
81
  * Returns: Paginated response with files
82
82
  *
@@ -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 jobs created at or after this timestamp (inclusive)
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 jobs created at or before this timestamp (inclusive)
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.0.0'; // x-release-please-version
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.0.0";
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.0.0";
1
+ export declare const VERSION = "2.1.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '2.0.0'; // x-release-please-version
4
+ exports.VERSION = '2.1.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.0.0'; // x-release-please-version
1
+ export const VERSION = '2.1.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map