@llamaindex/llama-cloud 2.9.0 → 2.10.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/client.d.mts +11 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -8
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/batches.d.mts +4 -4
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts +4 -4
- package/resources/batches.d.ts.map +1 -1
- package/resources/beta/agent-data.d.mts +94 -94
- package/resources/beta/agent-data.d.mts.map +1 -1
- package/resources/beta/agent-data.d.ts +94 -94
- package/resources/beta/agent-data.d.ts.map +1 -1
- package/resources/beta/agent-data.js +41 -41
- package/resources/beta/agent-data.js.map +1 -1
- package/resources/beta/agent-data.mjs +41 -41
- package/resources/beta/agent-data.mjs.map +1 -1
- package/resources/beta/batch/batch.d.mts +36 -29
- package/resources/beta/batch/batch.d.mts.map +1 -1
- package/resources/beta/batch/batch.d.ts +36 -29
- package/resources/beta/batch/batch.d.ts.map +1 -1
- package/resources/beta/batch/batch.js +16 -16
- package/resources/beta/batch/batch.js.map +1 -1
- package/resources/beta/batch/batch.mjs +16 -16
- package/resources/beta/batch/batch.mjs.map +1 -1
- package/resources/beta/batch/index.d.mts +1 -1
- package/resources/beta/batch/index.d.mts.map +1 -1
- package/resources/beta/batch/index.d.ts +1 -1
- package/resources/beta/batch/index.d.ts.map +1 -1
- package/resources/beta/batch/job-items.d.mts +14 -7
- package/resources/beta/batch/job-items.d.mts.map +1 -1
- package/resources/beta/batch/job-items.d.ts +14 -7
- package/resources/beta/batch/job-items.d.ts.map +1 -1
- package/resources/beta/beta.d.mts +6 -6
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +6 -6
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/chat.d.mts +39 -39
- package/resources/beta/chat.d.mts.map +1 -1
- package/resources/beta/chat.d.ts +39 -39
- package/resources/beta/chat.d.ts.map +1 -1
- package/resources/beta/chat.js +14 -14
- package/resources/beta/chat.js.map +1 -1
- package/resources/beta/chat.mjs +14 -14
- package/resources/beta/chat.mjs.map +1 -1
- package/resources/beta/directories/directories.d.mts +48 -39
- package/resources/beta/directories/directories.d.mts.map +1 -1
- package/resources/beta/directories/directories.d.ts +48 -39
- package/resources/beta/directories/directories.d.ts.map +1 -1
- package/resources/beta/directories/directories.js +30 -30
- package/resources/beta/directories/directories.js.map +1 -1
- package/resources/beta/directories/directories.mjs +30 -30
- package/resources/beta/directories/directories.mjs.map +1 -1
- package/resources/beta/directories/files.d.mts +47 -47
- package/resources/beta/directories/files.d.mts.map +1 -1
- package/resources/beta/directories/files.d.ts +47 -47
- package/resources/beta/directories/files.d.ts.map +1 -1
- package/resources/beta/directories/files.js +32 -32
- package/resources/beta/directories/files.js.map +1 -1
- package/resources/beta/directories/files.mjs +32 -32
- package/resources/beta/directories/files.mjs.map +1 -1
- package/resources/beta/directories/index.d.mts +2 -2
- package/resources/beta/directories/index.d.mts.map +1 -1
- package/resources/beta/directories/index.d.ts +2 -2
- package/resources/beta/directories/index.d.ts.map +1 -1
- package/resources/beta/index.d.mts +6 -6
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +6 -6
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/indexes.d.mts +44 -32
- package/resources/beta/indexes.d.mts.map +1 -1
- package/resources/beta/indexes.d.ts +44 -32
- package/resources/beta/indexes.d.ts.map +1 -1
- package/resources/beta/indexes.js +28 -28
- package/resources/beta/indexes.js.map +1 -1
- package/resources/beta/indexes.mjs +28 -28
- package/resources/beta/indexes.mjs.map +1 -1
- package/resources/beta/retrieval.d.mts +3 -3
- package/resources/beta/retrieval.d.mts.map +1 -1
- package/resources/beta/retrieval.d.ts +3 -3
- package/resources/beta/retrieval.d.ts.map +1 -1
- package/resources/beta/sheets.d.mts +37 -56
- package/resources/beta/sheets.d.mts.map +1 -1
- package/resources/beta/sheets.d.ts +37 -56
- package/resources/beta/sheets.d.ts.map +1 -1
- package/resources/beta/sheets.js +19 -52
- package/resources/beta/sheets.js.map +1 -1
- package/resources/beta/sheets.mjs +19 -52
- package/resources/beta/sheets.mjs.map +1 -1
- package/resources/beta/split.d.mts +2 -2
- package/resources/beta/split.d.mts.map +1 -1
- package/resources/beta/split.d.ts +2 -2
- package/resources/beta/split.d.ts.map +1 -1
- package/resources/classifier/jobs.d.mts +8 -1
- package/resources/classifier/jobs.d.mts.map +1 -1
- package/resources/classifier/jobs.d.ts +8 -1
- package/resources/classifier/jobs.d.ts.map +1 -1
- package/resources/classify.d.mts +27 -11
- package/resources/classify.d.mts.map +1 -1
- package/resources/classify.d.ts +27 -11
- package/resources/classify.d.ts.map +1 -1
- package/resources/configurations.d.mts +73 -43
- package/resources/configurations.d.mts.map +1 -1
- package/resources/configurations.d.ts +73 -43
- package/resources/configurations.d.ts.map +1 -1
- package/resources/configurations.js +9 -9
- package/resources/configurations.js.map +1 -1
- package/resources/configurations.mjs +9 -9
- package/resources/configurations.mjs.map +1 -1
- package/resources/data-sinks.d.mts +16 -16
- package/resources/data-sinks.d.mts.map +1 -1
- package/resources/data-sinks.d.ts +16 -16
- package/resources/data-sinks.d.ts.map +1 -1
- package/resources/data-sinks.js +12 -12
- package/resources/data-sinks.js.map +1 -1
- package/resources/data-sinks.mjs +12 -12
- package/resources/data-sinks.mjs.map +1 -1
- package/resources/data-sources.d.mts +17 -17
- package/resources/data-sources.d.mts.map +1 -1
- package/resources/data-sources.d.ts +17 -17
- package/resources/data-sources.d.ts.map +1 -1
- package/resources/data-sources.js +13 -13
- package/resources/data-sources.js.map +1 -1
- package/resources/data-sources.mjs +13 -13
- package/resources/data-sources.mjs.map +1 -1
- package/resources/extract.d.mts +62 -46
- package/resources/extract.d.mts.map +1 -1
- package/resources/extract.d.ts +62 -46
- package/resources/extract.d.ts.map +1 -1
- package/resources/extract.js +33 -33
- package/resources/extract.js.map +1 -1
- package/resources/extract.mjs +33 -33
- package/resources/extract.mjs.map +1 -1
- package/resources/files.d.mts +41 -41
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +41 -41
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +13 -13
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +13 -13
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +9 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/parsing.d.mts +131 -51
- package/resources/parsing.d.mts.map +1 -1
- package/resources/parsing.d.ts +131 -51
- package/resources/parsing.d.ts.map +1 -1
- package/resources/parsing.js +33 -12
- package/resources/parsing.js.map +1 -1
- package/resources/parsing.mjs +33 -12
- package/resources/parsing.mjs.map +1 -1
- package/resources/pipelines/data-sources.d.mts +40 -30
- package/resources/pipelines/data-sources.d.mts.map +1 -1
- package/resources/pipelines/data-sources.d.ts +40 -30
- package/resources/pipelines/data-sources.d.ts.map +1 -1
- package/resources/pipelines/data-sources.js +23 -13
- package/resources/pipelines/data-sources.js.map +1 -1
- package/resources/pipelines/data-sources.mjs +23 -13
- package/resources/pipelines/data-sources.mjs.map +1 -1
- package/resources/pipelines/documents.d.mts +28 -12
- package/resources/pipelines/documents.d.mts.map +1 -1
- package/resources/pipelines/documents.d.ts +28 -12
- package/resources/pipelines/documents.d.ts.map +1 -1
- package/resources/pipelines/documents.js +30 -14
- package/resources/pipelines/documents.js.map +1 -1
- package/resources/pipelines/documents.mjs +30 -14
- package/resources/pipelines/documents.mjs.map +1 -1
- package/resources/pipelines/files.d.mts +34 -24
- package/resources/pipelines/files.d.mts.map +1 -1
- package/resources/pipelines/files.d.ts +34 -24
- package/resources/pipelines/files.d.ts.map +1 -1
- package/resources/pipelines/files.js +27 -17
- package/resources/pipelines/files.js.map +1 -1
- package/resources/pipelines/files.mjs +27 -17
- package/resources/pipelines/files.mjs.map +1 -1
- package/resources/pipelines/images.d.mts +17 -17
- package/resources/pipelines/images.d.mts.map +1 -1
- package/resources/pipelines/images.d.ts +17 -17
- package/resources/pipelines/images.d.ts.map +1 -1
- package/resources/pipelines/images.js +13 -13
- package/resources/pipelines/images.js.map +1 -1
- package/resources/pipelines/images.mjs +13 -13
- package/resources/pipelines/images.mjs.map +1 -1
- package/resources/pipelines/index.d.mts +5 -5
- package/resources/pipelines/index.d.mts.map +1 -1
- package/resources/pipelines/index.d.ts +5 -5
- package/resources/pipelines/index.d.ts.map +1 -1
- package/resources/pipelines/metadata.d.mts +4 -0
- package/resources/pipelines/metadata.d.mts.map +1 -1
- package/resources/pipelines/metadata.d.ts +4 -0
- package/resources/pipelines/metadata.d.ts.map +1 -1
- package/resources/pipelines/metadata.js +4 -0
- package/resources/pipelines/metadata.js.map +1 -1
- package/resources/pipelines/metadata.mjs +4 -0
- package/resources/pipelines/metadata.mjs.map +1 -1
- package/resources/pipelines/pipelines.d.mts +149 -126
- package/resources/pipelines/pipelines.d.mts.map +1 -1
- package/resources/pipelines/pipelines.d.ts +149 -126
- package/resources/pipelines/pipelines.d.ts.map +1 -1
- package/resources/pipelines/pipelines.js +39 -23
- package/resources/pipelines/pipelines.js.map +1 -1
- package/resources/pipelines/pipelines.mjs +39 -23
- package/resources/pipelines/pipelines.mjs.map +1 -1
- package/resources/pipelines/sync.d.mts +4 -0
- package/resources/pipelines/sync.d.mts.map +1 -1
- package/resources/pipelines/sync.d.ts +4 -0
- package/resources/pipelines/sync.d.ts.map +1 -1
- package/resources/pipelines/sync.js +4 -0
- package/resources/pipelines/sync.js.map +1 -1
- package/resources/pipelines/sync.mjs +4 -0
- package/resources/pipelines/sync.mjs.map +1 -1
- package/resources/retrievers/index.d.mts +1 -1
- package/resources/retrievers/index.d.mts.map +1 -1
- package/resources/retrievers/index.d.ts +1 -1
- package/resources/retrievers/index.d.ts.map +1 -1
- package/resources/retrievers/retrievers.d.mts +39 -39
- package/resources/retrievers/retrievers.d.mts.map +1 -1
- package/resources/retrievers/retrievers.d.ts +39 -39
- package/resources/retrievers/retrievers.d.ts.map +1 -1
- package/resources/retrievers/retrievers.js +20 -20
- package/resources/retrievers/retrievers.js.map +1 -1
- package/resources/retrievers/retrievers.mjs +20 -20
- package/resources/retrievers/retrievers.mjs.map +1 -1
- package/resources/shared.d.mts +11 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +11 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/sheets.d.mts +206 -0
- package/resources/sheets.d.mts.map +1 -0
- package/resources/sheets.d.ts +206 -0
- package/resources/sheets.d.ts.map +1 -0
- package/resources/sheets.js +101 -0
- package/resources/sheets.js.map +1 -0
- package/resources/sheets.mjs +97 -0
- package/resources/sheets.mjs.map +1 -0
- package/src/client.ts +33 -12
- package/src/resources/batches.ts +4 -4
- package/src/resources/beta/agent-data.ts +131 -131
- package/src/resources/beta/batch/batch.ts +67 -54
- package/src/resources/beta/batch/index.ts +1 -1
- package/src/resources/beta/batch/job-items.ts +34 -21
- package/src/resources/beta/beta.ts +12 -12
- package/src/resources/beta/chat.ts +57 -57
- package/src/resources/beta/directories/directories.ts +80 -71
- package/src/resources/beta/directories/files.ts +66 -66
- package/src/resources/beta/directories/index.ts +5 -5
- package/src/resources/beta/index.ts +12 -12
- package/src/resources/beta/indexes.ts +68 -53
- package/src/resources/beta/retrieval.ts +3 -3
- package/src/resources/beta/sheets.ts +90 -97
- package/src/resources/beta/split.ts +2 -2
- package/src/resources/classifier/jobs.ts +9 -1
- package/src/resources/classify.ts +67 -39
- package/src/resources/configurations.ts +97 -63
- package/src/resources/data-sinks.ts +26 -26
- package/src/resources/data-sources.ts +43 -43
- package/src/resources/extract.ts +125 -97
- package/src/resources/files.ts +61 -61
- package/src/resources/index.ts +21 -12
- package/src/resources/parsing.ts +285 -204
- package/src/resources/pipelines/data-sources.ts +59 -49
- package/src/resources/pipelines/documents.ts +42 -26
- package/src/resources/pipelines/files.ts +62 -52
- package/src/resources/pipelines/images.ts +36 -36
- package/src/resources/pipelines/index.ts +10 -10
- package/src/resources/pipelines/metadata.ts +4 -0
- package/src/resources/pipelines/pipelines.ts +236 -207
- package/src/resources/pipelines/sync.ts +4 -0
- package/src/resources/retrievers/index.ts +3 -3
- package/src/resources/retrievers/retrievers.ts +64 -64
- package/src/resources/shared.ts +12 -3
- package/src/resources/sheets.ts +322 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -9,8 +9,33 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
9
9
|
import { path } from '../../internal/utils/path';
|
|
10
10
|
|
|
11
11
|
export class DataSources extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get data sources for a pipeline.
|
|
14
|
+
*
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
17
|
+
getDataSources(pipelineID: string, options?: RequestOptions): APIPromise<DataSourceGetDataSourcesResponse> {
|
|
18
|
+
return this._client.get(path`/api/v1/pipelines/${pipelineID}/data-sources`, options);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Add data sources to a pipeline.
|
|
23
|
+
*
|
|
24
|
+
* @deprecated
|
|
25
|
+
*/
|
|
26
|
+
updateDataSources(
|
|
27
|
+
pipelineID: string,
|
|
28
|
+
params: DataSourceUpdateDataSourcesParams,
|
|
29
|
+
options?: RequestOptions,
|
|
30
|
+
): APIPromise<DataSourceUpdateDataSourcesResponse> {
|
|
31
|
+
const { body } = params;
|
|
32
|
+
return this._client.put(path`/api/v1/pipelines/${pipelineID}/data-sources`, { body: body, ...options });
|
|
33
|
+
}
|
|
34
|
+
|
|
12
35
|
/**
|
|
13
36
|
* Update the configuration of a data source in a pipeline.
|
|
37
|
+
*
|
|
38
|
+
* @deprecated
|
|
14
39
|
*/
|
|
15
40
|
update(
|
|
16
41
|
dataSourceID: string,
|
|
@@ -24,15 +49,10 @@ export class DataSources extends APIResource {
|
|
|
24
49
|
});
|
|
25
50
|
}
|
|
26
51
|
|
|
27
|
-
/**
|
|
28
|
-
* Get data sources for a pipeline.
|
|
29
|
-
*/
|
|
30
|
-
getDataSources(pipelineID: string, options?: RequestOptions): APIPromise<DataSourceGetDataSourcesResponse> {
|
|
31
|
-
return this._client.get(path`/api/v1/pipelines/${pipelineID}/data-sources`, options);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
52
|
/**
|
|
35
53
|
* Get the status of a data source for a pipeline.
|
|
54
|
+
*
|
|
55
|
+
* @deprecated
|
|
36
56
|
*/
|
|
37
57
|
getStatus(
|
|
38
58
|
dataSourceID: string,
|
|
@@ -49,6 +69,8 @@ export class DataSources extends APIResource {
|
|
|
49
69
|
/**
|
|
50
70
|
* Run incremental ingestion: pull upstream changes from the data source into the
|
|
51
71
|
* data sink.
|
|
72
|
+
*
|
|
73
|
+
* @deprecated
|
|
52
74
|
*/
|
|
53
75
|
sync(
|
|
54
76
|
dataSourceID: string,
|
|
@@ -61,18 +83,6 @@ export class DataSources extends APIResource {
|
|
|
61
83
|
...options,
|
|
62
84
|
});
|
|
63
85
|
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Add data sources to a pipeline.
|
|
67
|
-
*/
|
|
68
|
-
updateDataSources(
|
|
69
|
-
pipelineID: string,
|
|
70
|
-
params: DataSourceUpdateDataSourcesParams,
|
|
71
|
-
options?: RequestOptions,
|
|
72
|
-
): APIPromise<DataSourceUpdateDataSourcesResponse> {
|
|
73
|
-
const { body } = params;
|
|
74
|
-
return this._client.put(path`/api/v1/pipelines/${pipelineID}/data-sources`, { body: body, ...options });
|
|
75
|
-
}
|
|
76
86
|
}
|
|
77
87
|
|
|
78
88
|
/**
|
|
@@ -124,17 +134,17 @@ export interface PipelineDataSource {
|
|
|
124
134
|
project_id: string;
|
|
125
135
|
|
|
126
136
|
source_type:
|
|
127
|
-
| 'S3'
|
|
128
137
|
| 'AZURE_STORAGE_BLOB'
|
|
138
|
+
| 'BOX'
|
|
139
|
+
| 'CONFLUENCE'
|
|
129
140
|
| 'GOOGLE_DRIVE'
|
|
141
|
+
| 'JIRA'
|
|
142
|
+
| 'JIRA_V2'
|
|
130
143
|
| 'MICROSOFT_ONEDRIVE'
|
|
131
144
|
| 'MICROSOFT_SHAREPOINT'
|
|
132
|
-
| 'SLACK'
|
|
133
145
|
| 'NOTION_PAGE'
|
|
134
|
-
| '
|
|
135
|
-
| '
|
|
136
|
-
| 'JIRA_V2'
|
|
137
|
-
| 'BOX';
|
|
146
|
+
| 'S3'
|
|
147
|
+
| 'SLACK';
|
|
138
148
|
|
|
139
149
|
/**
|
|
140
150
|
* Creation datetime
|
|
@@ -151,7 +161,7 @@ export interface PipelineDataSource {
|
|
|
151
161
|
/**
|
|
152
162
|
* The status of the data source in the pipeline.
|
|
153
163
|
*/
|
|
154
|
-
status?: '
|
|
164
|
+
status?: 'CANCELLED' | 'ERROR' | 'IN_PROGRESS' | 'NOT_STARTED' | 'SUCCESS' | null;
|
|
155
165
|
|
|
156
166
|
/**
|
|
157
167
|
* The last time the status was updated.
|
|
@@ -183,6 +193,28 @@ export type DataSourceGetDataSourcesResponse = Array<PipelineDataSource>;
|
|
|
183
193
|
|
|
184
194
|
export type DataSourceUpdateDataSourcesResponse = Array<PipelineDataSource>;
|
|
185
195
|
|
|
196
|
+
export interface DataSourceUpdateDataSourcesParams {
|
|
197
|
+
body: Array<DataSourceUpdateDataSourcesParams.Body>;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export namespace DataSourceUpdateDataSourcesParams {
|
|
201
|
+
/**
|
|
202
|
+
* Schema for creating an association between a data source and a pipeline.
|
|
203
|
+
*/
|
|
204
|
+
export interface Body {
|
|
205
|
+
/**
|
|
206
|
+
* The ID of the data source.
|
|
207
|
+
*/
|
|
208
|
+
data_source_id: string;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* The interval at which the data source should be synced. Valid values are: 21600,
|
|
212
|
+
* 43200, 86400
|
|
213
|
+
*/
|
|
214
|
+
sync_interval?: number | null;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
186
218
|
export interface DataSourceUpdateParams {
|
|
187
219
|
/**
|
|
188
220
|
* Path param
|
|
@@ -211,36 +243,14 @@ export interface DataSourceSyncParams {
|
|
|
211
243
|
pipeline_file_ids?: Array<string> | null;
|
|
212
244
|
}
|
|
213
245
|
|
|
214
|
-
export interface DataSourceUpdateDataSourcesParams {
|
|
215
|
-
body: Array<DataSourceUpdateDataSourcesParams.Body>;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export namespace DataSourceUpdateDataSourcesParams {
|
|
219
|
-
/**
|
|
220
|
-
* Schema for creating an association between a data source and a pipeline.
|
|
221
|
-
*/
|
|
222
|
-
export interface Body {
|
|
223
|
-
/**
|
|
224
|
-
* The ID of the data source.
|
|
225
|
-
*/
|
|
226
|
-
data_source_id: string;
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* The interval at which the data source should be synced. Valid values are: 21600,
|
|
230
|
-
* 43200, 86400
|
|
231
|
-
*/
|
|
232
|
-
sync_interval?: number | null;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
246
|
export declare namespace DataSources {
|
|
237
247
|
export {
|
|
238
248
|
type PipelineDataSource as PipelineDataSource,
|
|
239
249
|
type DataSourceGetDataSourcesResponse as DataSourceGetDataSourcesResponse,
|
|
240
250
|
type DataSourceUpdateDataSourcesResponse as DataSourceUpdateDataSourcesResponse,
|
|
251
|
+
type DataSourceUpdateDataSourcesParams as DataSourceUpdateDataSourcesParams,
|
|
241
252
|
type DataSourceUpdateParams as DataSourceUpdateParams,
|
|
242
253
|
type DataSourceGetStatusParams as DataSourceGetStatusParams,
|
|
243
254
|
type DataSourceSyncParams as DataSourceSyncParams,
|
|
244
|
-
type DataSourceUpdateDataSourcesParams as DataSourceUpdateDataSourcesParams,
|
|
245
255
|
};
|
|
246
256
|
}
|
|
@@ -15,6 +15,8 @@ import { path } from '../../internal/utils/path';
|
|
|
15
15
|
export class Documents extends APIResource {
|
|
16
16
|
/**
|
|
17
17
|
* Batch create documents for a pipeline.
|
|
18
|
+
*
|
|
19
|
+
* @deprecated
|
|
18
20
|
*/
|
|
19
21
|
create(
|
|
20
22
|
pipelineID: string,
|
|
@@ -27,6 +29,8 @@ export class Documents extends APIResource {
|
|
|
27
29
|
|
|
28
30
|
/**
|
|
29
31
|
* Return a list of documents for a pipeline.
|
|
32
|
+
*
|
|
33
|
+
* @deprecated
|
|
30
34
|
*/
|
|
31
35
|
list(
|
|
32
36
|
pipelineID: string,
|
|
@@ -40,20 +44,10 @@ export class Documents extends APIResource {
|
|
|
40
44
|
);
|
|
41
45
|
}
|
|
42
46
|
|
|
43
|
-
/**
|
|
44
|
-
* Delete a document from a pipeline; runs async (vectors first, then MongoDB
|
|
45
|
-
* record).
|
|
46
|
-
*/
|
|
47
|
-
delete(documentID: string, params: DocumentDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
48
|
-
const { pipeline_id } = params;
|
|
49
|
-
return this._client.delete(path`/api/v1/pipelines/${pipeline_id}/documents/${documentID}`, {
|
|
50
|
-
...options,
|
|
51
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
|
|
55
47
|
/**
|
|
56
48
|
* Return a single document for a pipeline.
|
|
49
|
+
*
|
|
50
|
+
* @deprecated
|
|
57
51
|
*/
|
|
58
52
|
get(documentID: string, params: DocumentGetParams, options?: RequestOptions): APIPromise<CloudDocument> {
|
|
59
53
|
const { pipeline_id } = params;
|
|
@@ -61,19 +55,23 @@ export class Documents extends APIResource {
|
|
|
61
55
|
}
|
|
62
56
|
|
|
63
57
|
/**
|
|
64
|
-
*
|
|
58
|
+
* Delete a document from a pipeline; runs async (vectors first, then MongoDB
|
|
59
|
+
* record).
|
|
60
|
+
*
|
|
61
|
+
* @deprecated
|
|
65
62
|
*/
|
|
66
|
-
|
|
67
|
-
documentID: string,
|
|
68
|
-
params: DocumentGetChunksParams,
|
|
69
|
-
options?: RequestOptions,
|
|
70
|
-
): APIPromise<DocumentGetChunksResponse> {
|
|
63
|
+
delete(documentID: string, params: DocumentDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
71
64
|
const { pipeline_id } = params;
|
|
72
|
-
return this._client.
|
|
65
|
+
return this._client.delete(path`/api/v1/pipelines/${pipeline_id}/documents/${documentID}`, {
|
|
66
|
+
...options,
|
|
67
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
68
|
+
});
|
|
73
69
|
}
|
|
74
70
|
|
|
75
71
|
/**
|
|
76
72
|
* Return a single document for a pipeline.
|
|
73
|
+
*
|
|
74
|
+
* @deprecated
|
|
77
75
|
*/
|
|
78
76
|
getStatus(
|
|
79
77
|
documentID: string,
|
|
@@ -86,14 +84,32 @@ export class Documents extends APIResource {
|
|
|
86
84
|
|
|
87
85
|
/**
|
|
88
86
|
* Sync a specific document for a pipeline.
|
|
87
|
+
*
|
|
88
|
+
* @deprecated
|
|
89
89
|
*/
|
|
90
90
|
sync(documentID: string, params: DocumentSyncParams, options?: RequestOptions): APIPromise<unknown> {
|
|
91
91
|
const { pipeline_id } = params;
|
|
92
92
|
return this._client.post(path`/api/v1/pipelines/${pipeline_id}/documents/${documentID}/sync`, options);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Return a list of chunks for a pipeline document.
|
|
97
|
+
*
|
|
98
|
+
* @deprecated
|
|
99
|
+
*/
|
|
100
|
+
getChunks(
|
|
101
|
+
documentID: string,
|
|
102
|
+
params: DocumentGetChunksParams,
|
|
103
|
+
options?: RequestOptions,
|
|
104
|
+
): APIPromise<DocumentGetChunksResponse> {
|
|
105
|
+
const { pipeline_id } = params;
|
|
106
|
+
return this._client.get(path`/api/v1/pipelines/${pipeline_id}/documents/${documentID}/chunks`, options);
|
|
107
|
+
}
|
|
108
|
+
|
|
95
109
|
/**
|
|
96
110
|
* Batch create or update a document for a pipeline.
|
|
111
|
+
*
|
|
112
|
+
* @deprecated
|
|
97
113
|
*/
|
|
98
114
|
upsert(
|
|
99
115
|
pipelineID: string,
|
|
@@ -272,15 +288,11 @@ export interface DocumentListParams extends PaginatedCloudDocumentsParams {
|
|
|
272
288
|
status_refresh_policy?: 'cached' | 'ttl';
|
|
273
289
|
}
|
|
274
290
|
|
|
275
|
-
export interface DocumentDeleteParams {
|
|
276
|
-
pipeline_id: string;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
291
|
export interface DocumentGetParams {
|
|
280
292
|
pipeline_id: string;
|
|
281
293
|
}
|
|
282
294
|
|
|
283
|
-
export interface
|
|
295
|
+
export interface DocumentDeleteParams {
|
|
284
296
|
pipeline_id: string;
|
|
285
297
|
}
|
|
286
298
|
|
|
@@ -292,6 +304,10 @@ export interface DocumentSyncParams {
|
|
|
292
304
|
pipeline_id: string;
|
|
293
305
|
}
|
|
294
306
|
|
|
307
|
+
export interface DocumentGetChunksParams {
|
|
308
|
+
pipeline_id: string;
|
|
309
|
+
}
|
|
310
|
+
|
|
295
311
|
export interface DocumentUpsertParams {
|
|
296
312
|
body: Array<CloudDocumentCreate>;
|
|
297
313
|
}
|
|
@@ -308,11 +324,11 @@ export declare namespace Documents {
|
|
|
308
324
|
type CloudDocumentsPaginatedCloudDocuments as CloudDocumentsPaginatedCloudDocuments,
|
|
309
325
|
type DocumentCreateParams as DocumentCreateParams,
|
|
310
326
|
type DocumentListParams as DocumentListParams,
|
|
311
|
-
type DocumentDeleteParams as DocumentDeleteParams,
|
|
312
327
|
type DocumentGetParams as DocumentGetParams,
|
|
313
|
-
type
|
|
328
|
+
type DocumentDeleteParams as DocumentDeleteParams,
|
|
314
329
|
type DocumentGetStatusParams as DocumentGetStatusParams,
|
|
315
330
|
type DocumentSyncParams as DocumentSyncParams,
|
|
331
|
+
type DocumentGetChunksParams as DocumentGetChunksParams,
|
|
316
332
|
type DocumentUpsertParams as DocumentUpsertParams,
|
|
317
333
|
};
|
|
318
334
|
}
|
|
@@ -13,8 +13,37 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
13
13
|
import { path } from '../../internal/utils/path';
|
|
14
14
|
|
|
15
15
|
export class Files extends APIResource {
|
|
16
|
+
/**
|
|
17
|
+
* Get files for a pipeline.
|
|
18
|
+
*
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
21
|
+
getStatusCounts(
|
|
22
|
+
pipelineID: string,
|
|
23
|
+
query: FileGetStatusCountsParams | null | undefined = {},
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): APIPromise<FileGetStatusCountsResponse> {
|
|
26
|
+
return this._client.get(path`/api/v1/pipelines/${pipelineID}/files/status-counts`, { query, ...options });
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Get status of a file for a pipeline.
|
|
31
|
+
*
|
|
32
|
+
* @deprecated
|
|
33
|
+
*/
|
|
34
|
+
getStatus(
|
|
35
|
+
fileID: string,
|
|
36
|
+
params: FileGetStatusParams,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<PipelinesAPI.ManagedIngestionStatusResponse> {
|
|
39
|
+
const { pipeline_id } = params;
|
|
40
|
+
return this._client.get(path`/api/v1/pipelines/${pipeline_id}/files/${fileID}/status`, options);
|
|
41
|
+
}
|
|
42
|
+
|
|
16
43
|
/**
|
|
17
44
|
* Add files to a pipeline.
|
|
45
|
+
*
|
|
46
|
+
* @deprecated
|
|
18
47
|
*/
|
|
19
48
|
create(
|
|
20
49
|
pipelineID: string,
|
|
@@ -27,6 +56,8 @@ export class Files extends APIResource {
|
|
|
27
56
|
|
|
28
57
|
/**
|
|
29
58
|
* Update a file for a pipeline.
|
|
59
|
+
*
|
|
60
|
+
* @deprecated
|
|
30
61
|
*/
|
|
31
62
|
update(fileID: string, params: FileUpdateParams, options?: RequestOptions): APIPromise<PipelineFile> {
|
|
32
63
|
const { pipeline_id, ...body } = params;
|
|
@@ -34,25 +65,10 @@ export class Files extends APIResource {
|
|
|
34
65
|
}
|
|
35
66
|
|
|
36
67
|
/**
|
|
37
|
-
*
|
|
68
|
+
* Delete a file from a pipeline.
|
|
38
69
|
*
|
|
39
70
|
* @deprecated
|
|
40
71
|
*/
|
|
41
|
-
list(
|
|
42
|
-
pipelineID: string,
|
|
43
|
-
query: FileListParams | null | undefined = {},
|
|
44
|
-
options?: RequestOptions,
|
|
45
|
-
): PagePromise<PipelineFilesPaginatedPipelineFiles, PipelineFile> {
|
|
46
|
-
return this._client.getAPIList(
|
|
47
|
-
path`/api/v1/pipelines/${pipelineID}/files2`,
|
|
48
|
-
PaginatedPipelineFiles<PipelineFile>,
|
|
49
|
-
{ query, ...options },
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Delete a file from a pipeline.
|
|
55
|
-
*/
|
|
56
72
|
delete(fileID: string, params: FileDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
57
73
|
const { pipeline_id } = params;
|
|
58
74
|
return this._client.delete(path`/api/v1/pipelines/${pipeline_id}/files/${fileID}`, {
|
|
@@ -62,26 +78,20 @@ export class Files extends APIResource {
|
|
|
62
78
|
}
|
|
63
79
|
|
|
64
80
|
/**
|
|
65
|
-
*
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
fileID: string,
|
|
69
|
-
params: FileGetStatusParams,
|
|
70
|
-
options?: RequestOptions,
|
|
71
|
-
): APIPromise<PipelinesAPI.ManagedIngestionStatusResponse> {
|
|
72
|
-
const { pipeline_id } = params;
|
|
73
|
-
return this._client.get(path`/api/v1/pipelines/${pipeline_id}/files/${fileID}/status`, options);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Get files for a pipeline.
|
|
81
|
+
* List files for a pipeline with optional filtering, sorting, and pagination.
|
|
82
|
+
*
|
|
83
|
+
* @deprecated
|
|
78
84
|
*/
|
|
79
|
-
|
|
85
|
+
list(
|
|
80
86
|
pipelineID: string,
|
|
81
|
-
query:
|
|
87
|
+
query: FileListParams | null | undefined = {},
|
|
82
88
|
options?: RequestOptions,
|
|
83
|
-
):
|
|
84
|
-
return this._client.
|
|
89
|
+
): PagePromise<PipelineFilesPaginatedPipelineFiles, PipelineFile> {
|
|
90
|
+
return this._client.getAPIList(
|
|
91
|
+
path`/api/v1/pipelines/${pipelineID}/files2`,
|
|
92
|
+
PaginatedPipelineFiles<PipelineFile>,
|
|
93
|
+
{ query, ...options },
|
|
94
|
+
);
|
|
85
95
|
}
|
|
86
96
|
}
|
|
87
97
|
|
|
@@ -182,7 +192,7 @@ export interface PipelineFile {
|
|
|
182
192
|
/**
|
|
183
193
|
* Status of the pipeline file.
|
|
184
194
|
*/
|
|
185
|
-
status?: '
|
|
195
|
+
status?: 'CANCELLED' | 'ERROR' | 'IN_PROGRESS' | 'NOT_STARTED' | 'SUCCESS' | null;
|
|
186
196
|
|
|
187
197
|
/**
|
|
188
198
|
* The last time the status was updated.
|
|
@@ -224,6 +234,16 @@ export interface FileGetStatusCountsResponse {
|
|
|
224
234
|
pipeline_id?: string | null;
|
|
225
235
|
}
|
|
226
236
|
|
|
237
|
+
export interface FileGetStatusCountsParams {
|
|
238
|
+
data_source_id?: string | null;
|
|
239
|
+
|
|
240
|
+
only_manually_uploaded?: boolean;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface FileGetStatusParams {
|
|
244
|
+
pipeline_id: string;
|
|
245
|
+
}
|
|
246
|
+
|
|
227
247
|
export interface FileCreateParams {
|
|
228
248
|
body: Array<FileCreateParams.Body>;
|
|
229
249
|
}
|
|
@@ -261,6 +281,10 @@ export interface FileUpdateParams {
|
|
|
261
281
|
} | null;
|
|
262
282
|
}
|
|
263
283
|
|
|
284
|
+
export interface FileDeleteParams {
|
|
285
|
+
pipeline_id: string;
|
|
286
|
+
}
|
|
287
|
+
|
|
264
288
|
export interface FileListParams extends PaginatedPipelineFilesParams {
|
|
265
289
|
data_source_id?: string | null;
|
|
266
290
|
|
|
@@ -273,21 +297,7 @@ export interface FileListParams extends PaginatedPipelineFilesParams {
|
|
|
273
297
|
/**
|
|
274
298
|
* Filter by file statuses
|
|
275
299
|
*/
|
|
276
|
-
statuses?: Array<'
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export interface FileDeleteParams {
|
|
280
|
-
pipeline_id: string;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
export interface FileGetStatusParams {
|
|
284
|
-
pipeline_id: string;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
export interface FileGetStatusCountsParams {
|
|
288
|
-
data_source_id?: string | null;
|
|
289
|
-
|
|
290
|
-
only_manually_uploaded?: boolean;
|
|
300
|
+
statuses?: Array<'CANCELLED' | 'ERROR' | 'IN_PROGRESS' | 'NOT_STARTED' | 'SUCCESS'> | null;
|
|
291
301
|
}
|
|
292
302
|
|
|
293
303
|
export declare namespace Files {
|
|
@@ -296,11 +306,11 @@ export declare namespace Files {
|
|
|
296
306
|
type FileCreateResponse as FileCreateResponse,
|
|
297
307
|
type FileGetStatusCountsResponse as FileGetStatusCountsResponse,
|
|
298
308
|
type PipelineFilesPaginatedPipelineFiles as PipelineFilesPaginatedPipelineFiles,
|
|
309
|
+
type FileGetStatusCountsParams as FileGetStatusCountsParams,
|
|
310
|
+
type FileGetStatusParams as FileGetStatusParams,
|
|
299
311
|
type FileCreateParams as FileCreateParams,
|
|
300
312
|
type FileUpdateParams as FileUpdateParams,
|
|
301
|
-
type FileListParams as FileListParams,
|
|
302
313
|
type FileDeleteParams as FileDeleteParams,
|
|
303
|
-
type
|
|
304
|
-
type FileGetStatusCountsParams as FileGetStatusCountsParams,
|
|
314
|
+
type FileListParams as FileListParams,
|
|
305
315
|
};
|
|
306
316
|
}
|
|
@@ -7,18 +7,14 @@ import { path } from '../../internal/utils/path';
|
|
|
7
7
|
|
|
8
8
|
export class Images extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* List metadata for all screenshots of pages from a file.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
listPageScreenshots(
|
|
13
|
+
id: string,
|
|
14
|
+
query: ImageListPageScreenshotsParams | null | undefined = {},
|
|
15
15
|
options?: RequestOptions,
|
|
16
|
-
): APIPromise<
|
|
17
|
-
|
|
18
|
-
return this._client.get(path`/api/v1/files/${id}/page-figures/${page_index}/${figureName}`, {
|
|
19
|
-
query,
|
|
20
|
-
...options,
|
|
21
|
-
});
|
|
16
|
+
): APIPromise<ImageListPageScreenshotsResponse> {
|
|
17
|
+
return this._client.get(path`/api/v1/files/${id}/page_screenshots`, { query, ...options });
|
|
22
18
|
}
|
|
23
19
|
|
|
24
20
|
/**
|
|
@@ -34,25 +30,29 @@ export class Images extends APIResource {
|
|
|
34
30
|
}
|
|
35
31
|
|
|
36
32
|
/**
|
|
37
|
-
*
|
|
33
|
+
* Get a specific figure from a page of a file.
|
|
38
34
|
*/
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
getPageFigure(
|
|
36
|
+
figureName: string,
|
|
37
|
+
params: ImageGetPageFigureParams,
|
|
42
38
|
options?: RequestOptions,
|
|
43
|
-
): APIPromise<
|
|
44
|
-
|
|
39
|
+
): APIPromise<unknown> {
|
|
40
|
+
const { id, page_index, ...query } = params;
|
|
41
|
+
return this._client.get(path`/api/v1/files/${id}/page-figures/${page_index}/${figureName}`, {
|
|
42
|
+
query,
|
|
43
|
+
...options,
|
|
44
|
+
});
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* List metadata for all
|
|
48
|
+
* List metadata for all figures from all pages of a file.
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
listPageFigures(
|
|
51
51
|
id: string,
|
|
52
|
-
query:
|
|
52
|
+
query: ImageListPageFiguresParams | null | undefined = {},
|
|
53
53
|
options?: RequestOptions,
|
|
54
|
-
): APIPromise<
|
|
55
|
-
return this._client.get(path`/api/v1/files/${id}/
|
|
54
|
+
): APIPromise<ImageListPageFiguresResponse> {
|
|
55
|
+
return this._client.get(path`/api/v1/files/${id}/page-figures`, { query, ...options });
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -129,16 +129,17 @@ export namespace ImageListPageScreenshotsResponse {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
export interface
|
|
133
|
-
|
|
134
|
-
* Path param
|
|
135
|
-
*/
|
|
136
|
-
id: string;
|
|
132
|
+
export interface ImageListPageScreenshotsParams {
|
|
133
|
+
organization_id?: string | null;
|
|
137
134
|
|
|
135
|
+
project_id?: string | null;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface ImageGetPageScreenshotParams {
|
|
138
139
|
/**
|
|
139
140
|
* Path param
|
|
140
141
|
*/
|
|
141
|
-
|
|
142
|
+
id: string;
|
|
142
143
|
|
|
143
144
|
/**
|
|
144
145
|
* Query param
|
|
@@ -151,12 +152,17 @@ export interface ImageGetPageFigureParams {
|
|
|
151
152
|
project_id?: string | null;
|
|
152
153
|
}
|
|
153
154
|
|
|
154
|
-
export interface
|
|
155
|
+
export interface ImageGetPageFigureParams {
|
|
155
156
|
/**
|
|
156
157
|
* Path param
|
|
157
158
|
*/
|
|
158
159
|
id: string;
|
|
159
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Path param
|
|
163
|
+
*/
|
|
164
|
+
page_index: number;
|
|
165
|
+
|
|
160
166
|
/**
|
|
161
167
|
* Query param
|
|
162
168
|
*/
|
|
@@ -174,21 +180,15 @@ export interface ImageListPageFiguresParams {
|
|
|
174
180
|
project_id?: string | null;
|
|
175
181
|
}
|
|
176
182
|
|
|
177
|
-
export interface ImageListPageScreenshotsParams {
|
|
178
|
-
organization_id?: string | null;
|
|
179
|
-
|
|
180
|
-
project_id?: string | null;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
183
|
export declare namespace Images {
|
|
184
184
|
export {
|
|
185
185
|
type ImageGetPageFigureResponse as ImageGetPageFigureResponse,
|
|
186
186
|
type ImageGetPageScreenshotResponse as ImageGetPageScreenshotResponse,
|
|
187
187
|
type ImageListPageFiguresResponse as ImageListPageFiguresResponse,
|
|
188
188
|
type ImageListPageScreenshotsResponse as ImageListPageScreenshotsResponse,
|
|
189
|
-
type
|
|
189
|
+
type ImageListPageScreenshotsParams as ImageListPageScreenshotsParams,
|
|
190
190
|
type ImageGetPageScreenshotParams as ImageGetPageScreenshotParams,
|
|
191
|
+
type ImageGetPageFigureParams as ImageGetPageFigureParams,
|
|
191
192
|
type ImageListPageFiguresParams as ImageListPageFiguresParams,
|
|
192
|
-
type ImageListPageScreenshotsParams as ImageListPageScreenshotsParams,
|
|
193
193
|
};
|
|
194
194
|
}
|