@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
@@ -5,7 +5,6 @@ import * as PipelinesAPI from './pipelines';
5
5
  import * as DataSinksAPI from '../data-sinks';
6
6
  import * as ParsingAPI from '../parsing';
7
7
  import * as Shared from '../shared';
8
- import * as JobsAPI from '../extraction/jobs';
9
8
  import * as DataSourcesAPI from './data-sources';
10
9
  import {
11
10
  DataSourceGetDataSourcesResponse,
@@ -81,7 +80,10 @@ export class Pipelines extends APIResource {
81
80
  documents: DocumentsAPI.Documents = new DocumentsAPI.Documents(this._client);
82
81
 
83
82
  /**
84
- * Create a new pipeline for a project.
83
+ * Create a new managed ingestion pipeline.
84
+ *
85
+ * A pipeline connects data sources to a vector store for RAG. After creation, call
86
+ * `POST /pipelines/{id}/sync` to start ingesting documents.
85
87
  */
86
88
  create(params: PipelineCreateParams, options?: RequestOptions): APIPromise<Pipeline> {
87
89
  const { organization_id, project_id, ...body } = params;
@@ -93,7 +95,11 @@ export class Pipelines extends APIResource {
93
95
  }
94
96
 
95
97
  /**
96
- * Get retrieval results for a managed pipeline and a query
98
+ * Run a retrieval query against a managed pipeline.
99
+ *
100
+ * Searches the pipeline's vector store using the provided query and retrieval
101
+ * parameters. Supports dense, sparse, and hybrid search modes with configurable
102
+ * top-k and reranking.
97
103
  */
98
104
  retrieve(
99
105
  pipelineID: string,
@@ -109,14 +115,14 @@ export class Pipelines extends APIResource {
109
115
  }
110
116
 
111
117
  /**
112
- * Update an existing pipeline for a project.
118
+ * Update an existing pipeline's configuration.
113
119
  */
114
120
  update(pipelineID: string, body: PipelineUpdateParams, options?: RequestOptions): APIPromise<Pipeline> {
115
121
  return this._client.put(path`/api/v1/pipelines/${pipelineID}`, { body, ...options });
116
122
  }
117
123
 
118
124
  /**
119
- * Search for pipelines by various parameters.
125
+ * Search for pipelines by name, type, or project.
120
126
  */
121
127
  list(
122
128
  query: PipelineListParams | null | undefined = {},
@@ -126,7 +132,10 @@ export class Pipelines extends APIResource {
126
132
  }
127
133
 
128
134
  /**
129
- * Delete a pipeline by ID.
135
+ * Delete a pipeline and all associated resources.
136
+ *
137
+ * Removes pipeline files, data sources, and vector store data. This operation is
138
+ * irreversible.
130
139
  */
131
140
  delete(pipelineID: string, options?: RequestOptions): APIPromise<void> {
132
141
  return this._client.delete(path`/api/v1/pipelines/${pipelineID}`, {
@@ -136,14 +145,17 @@ export class Pipelines extends APIResource {
136
145
  }
137
146
 
138
147
  /**
139
- * Get a pipeline by ID for a given project.
148
+ * Get a pipeline by ID.
140
149
  */
141
150
  get(pipelineID: string, options?: RequestOptions): APIPromise<Pipeline> {
142
151
  return this._client.get(path`/api/v1/pipelines/${pipelineID}`, options);
143
152
  }
144
153
 
145
154
  /**
146
- * Get the status of a pipeline by ID.
155
+ * Get the ingestion status of a managed pipeline.
156
+ *
157
+ * Returns document counts, sync progress, and the last effective timestamp. Only
158
+ * available for managed pipelines.
147
159
  */
148
160
  getStatus(
149
161
  pipelineID: string,
@@ -154,8 +166,10 @@ export class Pipelines extends APIResource {
154
166
  }
155
167
 
156
168
  /**
157
- * Upsert a pipeline for a project. Updates if a pipeline with the same name and
158
- * project_id already exists. Otherwise, creates a new pipeline.
169
+ * Upsert a pipeline.
170
+ *
171
+ * Updates the pipeline if one with the same name and project already exists,
172
+ * otherwise creates a new one.
159
173
  */
160
174
  upsert(params: PipelineUpsertParams, options?: RequestOptions): APIPromise<Pipeline> {
161
175
  const { organization_id, project_id, ...body } = params;
@@ -526,6 +540,13 @@ export interface GeminiEmbedding {
526
540
  */
527
541
  num_workers?: number | null;
528
542
 
543
+ /**
544
+ * Optional reduced dimension for output embeddings. Supported by
545
+ * models/text-embedding-004 and newer (e.g. gemini-embedding-001). Not supported
546
+ * by models/embedding-001.
547
+ */
548
+ output_dimensionality?: number | null;
549
+
529
550
  /**
530
551
  * The task for embedding model.
531
552
  */
@@ -882,13 +903,59 @@ export interface LlamaParseParameters {
882
903
  version?: string | null;
883
904
 
884
905
  /**
885
- * The outbound webhook configurations
906
+ * Outbound webhook endpoints to notify on job status changes
886
907
  */
887
- webhook_configurations?: Array<JobsAPI.WebhookConfiguration> | null;
908
+ webhook_configurations?: Array<LlamaParseParameters.WebhookConfiguration> | null;
888
909
 
889
910
  webhook_url?: string | null;
890
911
  }
891
912
 
913
+ export namespace LlamaParseParameters {
914
+ /**
915
+ * Configuration for a single outbound webhook endpoint.
916
+ */
917
+ export interface WebhookConfiguration {
918
+ /**
919
+ * Events to subscribe to (e.g. 'parse.success', 'extract.error'). If null, all
920
+ * events are delivered.
921
+ */
922
+ webhook_events?: Array<
923
+ | 'extract.pending'
924
+ | 'extract.success'
925
+ | 'extract.error'
926
+ | 'extract.partial_success'
927
+ | 'extract.cancelled'
928
+ | 'parse.pending'
929
+ | 'parse.running'
930
+ | 'parse.success'
931
+ | 'parse.error'
932
+ | 'parse.partial_success'
933
+ | 'parse.cancelled'
934
+ | 'classify.pending'
935
+ | 'classify.success'
936
+ | 'classify.error'
937
+ | 'classify.partial_success'
938
+ | 'classify.cancelled'
939
+ | 'unmapped_event'
940
+ > | null;
941
+
942
+ /**
943
+ * Custom HTTP headers sent with each webhook request (e.g. auth tokens)
944
+ */
945
+ webhook_headers?: { [key: string]: string } | null;
946
+
947
+ /**
948
+ * Response format sent to the webhook: 'string' (default) or 'json'
949
+ */
950
+ webhook_output_format?: string | null;
951
+
952
+ /**
953
+ * URL to receive webhook POST notifications
954
+ */
955
+ webhook_url?: string | null;
956
+ }
957
+ }
958
+
892
959
  export interface LlmParameters {
893
960
  class_name?: string;
894
961
 
@@ -908,8 +975,7 @@ export interface LlmParameters {
908
975
  | 'AZURE_OPENAI_GPT_4_1_NANO'
909
976
  | 'CLAUDE_4_5_SONNET'
910
977
  | 'BEDROCK_CLAUDE_3_5_SONNET_V1'
911
- | 'BEDROCK_CLAUDE_3_5_SONNET_V2'
912
- | 'VERTEX_AI_CLAUDE_3_5_SONNET_V2';
978
+ | 'BEDROCK_CLAUDE_3_5_SONNET_V2';
913
979
 
914
980
  /**
915
981
  * The system prompt to use for the completion.
@@ -8,15 +8,17 @@ import { path } from '../../internal/utils/path';
8
8
 
9
9
  export class Sync extends APIResource {
10
10
  /**
11
- * Run ingestion for the pipeline by incrementally updating the data-sink with
12
- * upstream changes from data-sources & files.
11
+ * Trigger an incremental sync for a managed pipeline.
12
+ *
13
+ * Processes new and updated documents from data sources and files, then updates
14
+ * the index for retrieval.
13
15
  */
14
16
  create(pipelineID: string, options?: RequestOptions): APIPromise<PipelinesAPI.Pipeline> {
15
17
  return this._client.post(path`/api/v1/pipelines/${pipelineID}/sync`, options);
16
18
  }
17
19
 
18
20
  /**
19
- * Cancel Pipeline Sync
21
+ * Cancel all running sync jobs for a pipeline.
20
22
  */
21
23
  cancel(pipelineID: string, options?: RequestOptions): APIPromise<PipelinesAPI.Pipeline> {
22
24
  return this._client.post(path`/api/v1/pipelines/${pipelineID}/sync/cancel`, options);
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.8.0'; // x-release-please-version
1
+ export const VERSION = '2.0.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.8.0";
1
+ export declare const VERSION = "2.0.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.8.0";
1
+ export declare const VERSION = "2.0.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 = '1.8.0'; // x-release-please-version
4
+ exports.VERSION = '2.0.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.8.0'; // x-release-please-version
1
+ export const VERSION = '2.0.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,126 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import * as RunsAPI from "../runs.mjs";
3
- import * as SchemaAPI from "./schema.mjs";
4
- import { Schema, SchemaGenerateSchemaParams, SchemaGenerateSchemaResponse, SchemaValidateSchemaParams, SchemaValidateSchemaResponse } from "./schema.mjs";
5
- import { APIPromise } from "../../../core/api-promise.mjs";
6
- import { RequestOptions } from "../../../internal/request-options.mjs";
7
- export declare class ExtractionAgents extends APIResource {
8
- schema: SchemaAPI.Schema;
9
- /**
10
- * Create Extraction Agent
11
- */
12
- create(params: ExtractionAgentCreateParams, options?: RequestOptions): APIPromise<ExtractAgent>;
13
- /**
14
- * Update Extraction Agent
15
- */
16
- update(extractionAgentID: string, body: ExtractionAgentUpdateParams, options?: RequestOptions): APIPromise<ExtractAgent>;
17
- /**
18
- * List Extraction Agents
19
- */
20
- list(query?: ExtractionAgentListParams | null | undefined, options?: RequestOptions): APIPromise<ExtractionAgentListResponse>;
21
- /**
22
- * Delete Extraction Agent
23
- */
24
- delete(extractionAgentID: string, options?: RequestOptions): APIPromise<unknown>;
25
- /**
26
- * Get Extraction Agent
27
- */
28
- get(extractionAgentID: string, options?: RequestOptions): APIPromise<ExtractAgent>;
29
- }
30
- /**
31
- * Schema and configuration for an extraction agent.
32
- */
33
- export interface ExtractAgent {
34
- /**
35
- * The id of the extraction agent.
36
- */
37
- id: string;
38
- /**
39
- * The configuration parameters for the extraction agent.
40
- */
41
- config: RunsAPI.ExtractConfig;
42
- /**
43
- * The schema of the data.
44
- */
45
- data_schema: {
46
- [key: string]: {
47
- [key: string]: unknown;
48
- } | Array<unknown> | string | number | boolean | null;
49
- };
50
- /**
51
- * The name of the extraction agent.
52
- */
53
- name: string;
54
- /**
55
- * The ID of the project that the extraction agent belongs to.
56
- */
57
- project_id: string;
58
- /**
59
- * The creation time of the extraction agent.
60
- */
61
- created_at?: string | null;
62
- /**
63
- * Custom configuration type for the extraction agent. Currently supports
64
- * 'default'.
65
- */
66
- custom_configuration?: 'default' | null;
67
- /**
68
- * The last update time of the extraction agent.
69
- */
70
- updated_at?: string | null;
71
- }
72
- export type ExtractionAgentListResponse = Array<ExtractAgent>;
73
- export type ExtractionAgentDeleteResponse = unknown;
74
- export interface ExtractionAgentCreateParams {
75
- /**
76
- * Body param: The configuration parameters for the extraction agent.
77
- */
78
- config: RunsAPI.ExtractConfig;
79
- /**
80
- * Body param: The schema of the data.
81
- */
82
- data_schema: {
83
- [key: string]: {
84
- [key: string]: unknown;
85
- } | Array<unknown> | string | number | boolean | null;
86
- } | string;
87
- /**
88
- * Body param: The name of the extraction schema
89
- */
90
- name: string;
91
- /**
92
- * Query param
93
- */
94
- organization_id?: string | null;
95
- /**
96
- * Query param
97
- */
98
- project_id?: string | null;
99
- }
100
- export interface ExtractionAgentUpdateParams {
101
- /**
102
- * The configuration parameters for the extraction agent.
103
- */
104
- config: RunsAPI.ExtractConfig;
105
- /**
106
- * The schema of the data
107
- */
108
- data_schema: {
109
- [key: string]: {
110
- [key: string]: unknown;
111
- } | Array<unknown> | string | number | boolean | null;
112
- } | string;
113
- }
114
- export interface ExtractionAgentListParams {
115
- /**
116
- * Whether to include default agents in the results
117
- */
118
- include_default?: boolean;
119
- organization_id?: string | null;
120
- project_id?: string | null;
121
- }
122
- export declare namespace ExtractionAgents {
123
- export { type ExtractAgent as ExtractAgent, type ExtractionAgentListResponse as ExtractionAgentListResponse, type ExtractionAgentDeleteResponse as ExtractionAgentDeleteResponse, type ExtractionAgentCreateParams as ExtractionAgentCreateParams, type ExtractionAgentUpdateParams as ExtractionAgentUpdateParams, type ExtractionAgentListParams as ExtractionAgentListParams, };
124
- export { Schema as Schema, type SchemaGenerateSchemaResponse as SchemaGenerateSchemaResponse, type SchemaValidateSchemaResponse as SchemaValidateSchemaResponse, type SchemaGenerateSchemaParams as SchemaGenerateSchemaParams, type SchemaValidateSchemaParams as SchemaValidateSchemaParams, };
125
- }
126
- //# sourceMappingURL=extraction-agents.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extraction-agents.d.mts","sourceRoot":"","sources":["../../../src/resources/extraction/extraction-agents/extraction-agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,SAAS;OACd,EACL,MAAM,EACN,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,EAC7B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAS/F;;OAEG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC;IAO3B;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;OAEG;IACH,MAAM,CAAC,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIhF;;OAEG;IACH,GAAG,CAAC,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;CAGnF;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC;IAE9B;;OAEG;IACH,WAAW,EAAE;QACX,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,CAAC,GAAG,EAAE,MAAM,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GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;KAAE,GACjG,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAID,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -1,126 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import * as RunsAPI from "../runs.js";
3
- import * as SchemaAPI from "./schema.js";
4
- import { Schema, SchemaGenerateSchemaParams, SchemaGenerateSchemaResponse, SchemaValidateSchemaParams, SchemaValidateSchemaResponse } from "./schema.js";
5
- import { APIPromise } from "../../../core/api-promise.js";
6
- import { RequestOptions } from "../../../internal/request-options.js";
7
- export declare class ExtractionAgents extends APIResource {
8
- schema: SchemaAPI.Schema;
9
- /**
10
- * Create Extraction Agent
11
- */
12
- create(params: ExtractionAgentCreateParams, options?: RequestOptions): APIPromise<ExtractAgent>;
13
- /**
14
- * Update Extraction Agent
15
- */
16
- update(extractionAgentID: string, body: ExtractionAgentUpdateParams, options?: RequestOptions): APIPromise<ExtractAgent>;
17
- /**
18
- * List Extraction Agents
19
- */
20
- list(query?: ExtractionAgentListParams | null | undefined, options?: RequestOptions): APIPromise<ExtractionAgentListResponse>;
21
- /**
22
- * Delete Extraction Agent
23
- */
24
- delete(extractionAgentID: string, options?: RequestOptions): APIPromise<unknown>;
25
- /**
26
- * Get Extraction Agent
27
- */
28
- get(extractionAgentID: string, options?: RequestOptions): APIPromise<ExtractAgent>;
29
- }
30
- /**
31
- * Schema and configuration for an extraction agent.
32
- */
33
- export interface ExtractAgent {
34
- /**
35
- * The id of the extraction agent.
36
- */
37
- id: string;
38
- /**
39
- * The configuration parameters for the extraction agent.
40
- */
41
- config: RunsAPI.ExtractConfig;
42
- /**
43
- * The schema of the data.
44
- */
45
- data_schema: {
46
- [key: string]: {
47
- [key: string]: unknown;
48
- } | Array<unknown> | string | number | boolean | null;
49
- };
50
- /**
51
- * The name of the extraction agent.
52
- */
53
- name: string;
54
- /**
55
- * The ID of the project that the extraction agent belongs to.
56
- */
57
- project_id: string;
58
- /**
59
- * The creation time of the extraction agent.
60
- */
61
- created_at?: string | null;
62
- /**
63
- * Custom configuration type for the extraction agent. Currently supports
64
- * 'default'.
65
- */
66
- custom_configuration?: 'default' | null;
67
- /**
68
- * The last update time of the extraction agent.
69
- */
70
- updated_at?: string | null;
71
- }
72
- export type ExtractionAgentListResponse = Array<ExtractAgent>;
73
- export type ExtractionAgentDeleteResponse = unknown;
74
- export interface ExtractionAgentCreateParams {
75
- /**
76
- * Body param: The configuration parameters for the extraction agent.
77
- */
78
- config: RunsAPI.ExtractConfig;
79
- /**
80
- * Body param: The schema of the data.
81
- */
82
- data_schema: {
83
- [key: string]: {
84
- [key: string]: unknown;
85
- } | Array<unknown> | string | number | boolean | null;
86
- } | string;
87
- /**
88
- * Body param: The name of the extraction schema
89
- */
90
- name: string;
91
- /**
92
- * Query param
93
- */
94
- organization_id?: string | null;
95
- /**
96
- * Query param
97
- */
98
- project_id?: string | null;
99
- }
100
- export interface ExtractionAgentUpdateParams {
101
- /**
102
- * The configuration parameters for the extraction agent.
103
- */
104
- config: RunsAPI.ExtractConfig;
105
- /**
106
- * The schema of the data
107
- */
108
- data_schema: {
109
- [key: string]: {
110
- [key: string]: unknown;
111
- } | Array<unknown> | string | number | boolean | null;
112
- } | string;
113
- }
114
- export interface ExtractionAgentListParams {
115
- /**
116
- * Whether to include default agents in the results
117
- */
118
- include_default?: boolean;
119
- organization_id?: string | null;
120
- project_id?: string | null;
121
- }
122
- export declare namespace ExtractionAgents {
123
- export { type ExtractAgent as ExtractAgent, type ExtractionAgentListResponse as ExtractionAgentListResponse, type ExtractionAgentDeleteResponse as ExtractionAgentDeleteResponse, type ExtractionAgentCreateParams as ExtractionAgentCreateParams, type ExtractionAgentUpdateParams as ExtractionAgentUpdateParams, type ExtractionAgentListParams as ExtractionAgentListParams, };
124
- export { Schema as Schema, type SchemaGenerateSchemaResponse as SchemaGenerateSchemaResponse, type SchemaValidateSchemaResponse as SchemaValidateSchemaResponse, type SchemaGenerateSchemaParams as SchemaGenerateSchemaParams, type SchemaValidateSchemaParams as SchemaValidateSchemaParams, };
125
- }
126
- //# sourceMappingURL=extraction-agents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extraction-agents.d.ts","sourceRoot":"","sources":["../../../src/resources/extraction/extraction-agents/extraction-agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,SAAS;OACd,EACL,MAAM,EACN,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,EAC7B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAS/F;;OAEG;IACH,MAAM,CACJ,iBAAiB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AO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -1,56 +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.ExtractionAgents = void 0;
5
- const tslib_1 = require("../../../internal/tslib.js");
6
- const resource_1 = require("../../../core/resource.js");
7
- const SchemaAPI = tslib_1.__importStar(require("./schema.js"));
8
- const schema_1 = require("./schema.js");
9
- const path_1 = require("../../../internal/utils/path.js");
10
- class ExtractionAgents extends resource_1.APIResource {
11
- constructor() {
12
- super(...arguments);
13
- this.schema = new SchemaAPI.Schema(this._client);
14
- }
15
- /**
16
- * Create Extraction Agent
17
- */
18
- create(params, options) {
19
- const { organization_id, project_id, ...body } = params;
20
- return this._client.post('/api/v1/extraction/extraction-agents', {
21
- query: { organization_id, project_id },
22
- body,
23
- ...options,
24
- });
25
- }
26
- /**
27
- * Update Extraction Agent
28
- */
29
- update(extractionAgentID, body, options) {
30
- return this._client.put((0, path_1.path) `/api/v1/extraction/extraction-agents/${extractionAgentID}`, {
31
- body,
32
- ...options,
33
- });
34
- }
35
- /**
36
- * List Extraction Agents
37
- */
38
- list(query = {}, options) {
39
- return this._client.get('/api/v1/extraction/extraction-agents', { query, ...options });
40
- }
41
- /**
42
- * Delete Extraction Agent
43
- */
44
- delete(extractionAgentID, options) {
45
- return this._client.delete((0, path_1.path) `/api/v1/extraction/extraction-agents/${extractionAgentID}`, options);
46
- }
47
- /**
48
- * Get Extraction Agent
49
- */
50
- get(extractionAgentID, options) {
51
- return this._client.get((0, path_1.path) `/api/v1/extraction/extraction-agents/${extractionAgentID}`, options);
52
- }
53
- }
54
- exports.ExtractionAgents = ExtractionAgents;
55
- ExtractionAgents.Schema = schema_1.Schema;
56
- //# sourceMappingURL=extraction-agents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extraction-agents.js","sourceRoot":"","sources":["../../../src/resources/extraction/extraction-agents/extraction-agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,+DAAsC;AACtC,wCAMkB;AAGlB,0DAAoD;AAEpD,MAAa,gBAAiB,SAAQ,sBAAW;IAAjD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAmDhE,CAAC;IAjDC;;OAEG;IACH,MAAM,CAAC,MAAmC,EAAE,OAAwB;QAClE,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE;YAC/D,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE;YACtC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,iBAAyB,EACzB,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wCAAwC,iBAAiB,EAAE,EAAE;YACvF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,iBAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,wCAAwC,iBAAiB,EAAE,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,iBAAyB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wCAAwC,iBAAiB,EAAE,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;CACF;AApDD,4CAoDC;AA4GD,gBAAgB,CAAC,MAAM,GAAG,eAAM,CAAC"}
@@ -1,51 +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 * as SchemaAPI from "./schema.mjs";
4
- import { Schema, } from "./schema.mjs";
5
- import { path } from "../../../internal/utils/path.mjs";
6
- export class ExtractionAgents extends APIResource {
7
- constructor() {
8
- super(...arguments);
9
- this.schema = new SchemaAPI.Schema(this._client);
10
- }
11
- /**
12
- * Create Extraction Agent
13
- */
14
- create(params, options) {
15
- const { organization_id, project_id, ...body } = params;
16
- return this._client.post('/api/v1/extraction/extraction-agents', {
17
- query: { organization_id, project_id },
18
- body,
19
- ...options,
20
- });
21
- }
22
- /**
23
- * Update Extraction Agent
24
- */
25
- update(extractionAgentID, body, options) {
26
- return this._client.put(path `/api/v1/extraction/extraction-agents/${extractionAgentID}`, {
27
- body,
28
- ...options,
29
- });
30
- }
31
- /**
32
- * List Extraction Agents
33
- */
34
- list(query = {}, options) {
35
- return this._client.get('/api/v1/extraction/extraction-agents', { query, ...options });
36
- }
37
- /**
38
- * Delete Extraction Agent
39
- */
40
- delete(extractionAgentID, options) {
41
- return this._client.delete(path `/api/v1/extraction/extraction-agents/${extractionAgentID}`, options);
42
- }
43
- /**
44
- * Get Extraction Agent
45
- */
46
- get(extractionAgentID, options) {
47
- return this._client.get(path `/api/v1/extraction/extraction-agents/${extractionAgentID}`, options);
48
- }
49
- }
50
- ExtractionAgents.Schema = Schema;
51
- //# sourceMappingURL=extraction-agents.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extraction-agents.mjs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AI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wCAAwC,iBAAiB,EAAE,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;CACF;AA4GD,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC"}
@@ -1,3 +0,0 @@
1
- export { ExtractionAgents, type ExtractAgent, type ExtractionAgentListResponse, type ExtractionAgentDeleteResponse, type ExtractionAgentCreateParams, type ExtractionAgentUpdateParams, type ExtractionAgentListParams, } from "./extraction-agents.mjs";
2
- export { Schema, type SchemaGenerateSchemaResponse, type SchemaValidateSchemaResponse, type SchemaGenerateSchemaParams, type SchemaValidateSchemaParams, } from "./schema.mjs";
3
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/extraction/extraction-agents/index.ts"],"names":[],"mappings":"OAEO,EACL,gBAAgB,EAChB,KAAK,YAAY,EACjB,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,GAC/B;OACM,EACL,MAAM,EACN,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,GAChC"}
@@ -1,3 +0,0 @@
1
- export { ExtractionAgents, type ExtractAgent, type ExtractionAgentListResponse, type ExtractionAgentDeleteResponse, type ExtractionAgentCreateParams, type ExtractionAgentUpdateParams, type ExtractionAgentListParams, } from "./extraction-agents.js";
2
- export { Schema, type SchemaGenerateSchemaResponse, type SchemaValidateSchemaResponse, type SchemaGenerateSchemaParams, type SchemaValidateSchemaParams, } from "./schema.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/extraction/extraction-agents/index.ts"],"names":[],"mappings":"OAEO,EACL,gBAAgB,EAChB,KAAK,YAAY,EACjB,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,GAC/B;OACM,EACL,MAAM,EACN,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,GAChC"}
@@ -1,9 +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.Schema = exports.ExtractionAgents = void 0;
5
- var extraction_agents_1 = require("./extraction-agents.js");
6
- Object.defineProperty(exports, "ExtractionAgents", { enumerable: true, get: function () { return extraction_agents_1.ExtractionAgents; } });
7
- var schema_1 = require("./schema.js");
8
- Object.defineProperty(exports, "Schema", { enumerable: true, get: function () { return schema_1.Schema; } });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/extraction/extraction-agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAQ6B;AAP3B,qHAAA,gBAAgB,OAAA;AAQlB,sCAMkB;AALhB,gGAAA,MAAM,OAAA"}
@@ -1,4 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { ExtractionAgents, } from "./extraction-agents.mjs";
3
- export { Schema, } from "./schema.mjs";
4
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/extraction/extraction-agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,gBAAgB,GAOjB;OACM,EACL,MAAM,GAKP"}