@llamaindex/llama-cloud 2.8.0 → 2.9.1
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 +51 -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 +24 -25
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts +24 -25
- package/resources/batches.d.ts.map +1 -1
- package/resources/batches.js +1 -2
- package/resources/batches.js.map +1 -1
- package/resources/batches.mjs +1 -2
- package/resources/batches.mjs.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 +29 -29
- package/resources/beta/batch/batch.d.mts.map +1 -1
- package/resources/beta/batch/batch.d.ts +29 -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 +7 -7
- package/resources/beta/batch/job-items.d.mts.map +1 -1
- package/resources/beta/batch/job-items.d.ts +7 -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 -35
- package/resources/beta/directories/directories.d.mts.map +1 -1
- package/resources/beta/directories/directories.d.ts +48 -35
- 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 +54 -54
- package/resources/beta/directories/files.d.mts.map +1 -1
- package/resources/beta/directories/files.d.ts +54 -54
- 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 +32 -32
- package/resources/beta/indexes.d.mts.map +1 -1
- package/resources/beta/indexes.d.ts +32 -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 +4 -4
- package/resources/beta/retrieval.d.mts.map +1 -1
- package/resources/beta/retrieval.d.ts +4 -4
- package/resources/beta/retrieval.d.ts.map +1 -1
- package/resources/beta/sheets.d.mts +134 -60
- package/resources/beta/sheets.d.mts.map +1 -1
- package/resources/beta/sheets.d.ts +134 -60
- package/resources/beta/sheets.d.ts.map +1 -1
- package/resources/beta/sheets.js +25 -52
- package/resources/beta/sheets.js.map +1 -1
- package/resources/beta/sheets.mjs +25 -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 -2
- package/resources/classifier/jobs.d.mts.map +1 -1
- package/resources/classifier/jobs.d.ts +8 -2
- package/resources/classifier/jobs.d.ts.map +1 -1
- package/resources/classify.d.mts +71 -9
- package/resources/classify.d.mts.map +1 -1
- package/resources/classify.d.ts +71 -9
- package/resources/classify.d.ts.map +1 -1
- package/resources/configurations.d.mts +101 -46
- package/resources/configurations.d.mts.map +1 -1
- package/resources/configurations.d.ts +101 -46
- 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 +52 -50
- package/resources/extract.d.mts.map +1 -1
- package/resources/extract.d.ts +52 -50
- 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 +108 -50
- package/resources/parsing.d.mts.map +1 -1
- package/resources/parsing.d.ts +108 -50
- package/resources/parsing.d.ts.map +1 -1
- package/resources/parsing.js +12 -12
- package/resources/parsing.js.map +1 -1
- package/resources/parsing.mjs +12 -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 +142 -126
- package/resources/pipelines/pipelines.d.mts.map +1 -1
- package/resources/pipelines/pipelines.d.ts +142 -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 +12 -4
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +12 -4
- package/resources/shared.d.ts.map +1 -1
- package/resources/sheets.d.mts +199 -0
- package/resources/sheets.d.mts.map +1 -0
- package/resources/sheets.d.ts +199 -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 +24 -25
- package/src/resources/beta/agent-data.ts +131 -131
- package/src/resources/beta/batch/batch.ts +61 -50
- package/src/resources/beta/batch/index.ts +1 -1
- package/src/resources/beta/batch/job-items.ts +28 -17
- package/src/resources/beta/beta.ts +12 -12
- package/src/resources/beta/chat.ts +57 -57
- package/src/resources/beta/directories/directories.ts +80 -66
- package/src/resources/beta/directories/files.ts +73 -73
- package/src/resources/beta/directories/index.ts +5 -5
- package/src/resources/beta/index.ts +12 -12
- package/src/resources/beta/indexes.ts +53 -53
- package/src/resources/beta/retrieval.ts +4 -4
- package/src/resources/beta/sheets.ts +217 -73
- package/src/resources/beta/split.ts +2 -2
- package/src/resources/classifier/jobs.ts +9 -2
- package/src/resources/classify.ts +135 -9
- package/src/resources/configurations.ts +126 -67
- package/src/resources/data-sinks.ts +26 -26
- package/src/resources/data-sources.ts +43 -43
- package/src/resources/extract.ts +118 -94
- package/src/resources/files.ts +61 -61
- package/src/resources/index.ts +21 -12
- package/src/resources/parsing.ts +266 -203
- 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 +230 -203
- 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 +13 -4
- package/src/resources/sheets.ts +314 -0
- 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/client.ts
CHANGED
|
@@ -159,6 +159,15 @@ import {
|
|
|
159
159
|
ProjectListResponse,
|
|
160
160
|
Projects,
|
|
161
161
|
} from './resources/projects';
|
|
162
|
+
import {
|
|
163
|
+
SheetCreateParams,
|
|
164
|
+
SheetDeleteJobParams,
|
|
165
|
+
SheetDeleteJobResponse,
|
|
166
|
+
SheetGetParams,
|
|
167
|
+
SheetGetResultTableParams,
|
|
168
|
+
SheetListParams,
|
|
169
|
+
Sheets,
|
|
170
|
+
} from './resources/sheets';
|
|
162
171
|
import { Beta } from './resources/beta/beta';
|
|
163
172
|
import { Classifier } from './resources/classifier/classifier';
|
|
164
173
|
import {
|
|
@@ -961,6 +970,7 @@ export class LlamaCloud {
|
|
|
961
970
|
static toFile = Uploads.toFile;
|
|
962
971
|
|
|
963
972
|
files: API.Files = new API.Files(this);
|
|
973
|
+
sheets: API.Sheets = new API.Sheets(this);
|
|
964
974
|
parsing: API.Parsing = new API.Parsing(this);
|
|
965
975
|
extract: API.Extract = new API.Extract(this);
|
|
966
976
|
classifier: API.Classifier = new API.Classifier(this);
|
|
@@ -976,6 +986,7 @@ export class LlamaCloud {
|
|
|
976
986
|
}
|
|
977
987
|
|
|
978
988
|
LlamaCloud.Files = Files;
|
|
989
|
+
LlamaCloud.Sheets = Sheets;
|
|
979
990
|
LlamaCloud.Parsing = Parsing;
|
|
980
991
|
LlamaCloud.Extract = Extract;
|
|
981
992
|
LlamaCloud.Classifier = Classifier;
|
|
@@ -1043,10 +1054,20 @@ export declare namespace LlamaCloud {
|
|
|
1043
1054
|
type FileQueryResponse as FileQueryResponse,
|
|
1044
1055
|
type FileListResponsesPaginatedCursor as FileListResponsesPaginatedCursor,
|
|
1045
1056
|
type FileCreateParams as FileCreateParams,
|
|
1057
|
+
type FileQueryParams as FileQueryParams,
|
|
1046
1058
|
type FileListParams as FileListParams,
|
|
1047
1059
|
type FileDeleteParams as FileDeleteParams,
|
|
1048
1060
|
type FileGetParams as FileGetParams,
|
|
1049
|
-
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
export {
|
|
1064
|
+
Sheets as Sheets,
|
|
1065
|
+
type SheetDeleteJobResponse as SheetDeleteJobResponse,
|
|
1066
|
+
type SheetCreateParams as SheetCreateParams,
|
|
1067
|
+
type SheetListParams as SheetListParams,
|
|
1068
|
+
type SheetGetParams as SheetGetParams,
|
|
1069
|
+
type SheetGetResultTableParams as SheetGetResultTableParams,
|
|
1070
|
+
type SheetDeleteJobParams as SheetDeleteJobParams,
|
|
1050
1071
|
};
|
|
1051
1072
|
|
|
1052
1073
|
export {
|
|
@@ -1072,8 +1093,8 @@ export declare namespace LlamaCloud {
|
|
|
1072
1093
|
type ParsingGetResponse as ParsingGetResponse,
|
|
1073
1094
|
type ParsingListResponsesPaginatedCursor as ParsingListResponsesPaginatedCursor,
|
|
1074
1095
|
type ParsingCreateParams as ParsingCreateParams,
|
|
1075
|
-
type ParsingListParams as ParsingListParams,
|
|
1076
1096
|
type ParsingGetParams as ParsingGetParams,
|
|
1097
|
+
type ParsingListParams as ParsingListParams,
|
|
1077
1098
|
};
|
|
1078
1099
|
|
|
1079
1100
|
export {
|
|
@@ -1092,10 +1113,10 @@ export declare namespace LlamaCloud {
|
|
|
1092
1113
|
type ExtractV2JobsPaginatedCursor as ExtractV2JobsPaginatedCursor,
|
|
1093
1114
|
type ExtractCreateParams as ExtractCreateParams,
|
|
1094
1115
|
type ExtractListParams as ExtractListParams,
|
|
1095
|
-
type ExtractDeleteParams as ExtractDeleteParams,
|
|
1096
|
-
type ExtractGenerateSchemaParams as ExtractGenerateSchemaParams,
|
|
1097
1116
|
type ExtractGetParams as ExtractGetParams,
|
|
1117
|
+
type ExtractDeleteParams as ExtractDeleteParams,
|
|
1098
1118
|
type ExtractValidateSchemaParams as ExtractValidateSchemaParams,
|
|
1119
|
+
type ExtractGenerateSchemaParams as ExtractGenerateSchemaParams,
|
|
1099
1120
|
};
|
|
1100
1121
|
|
|
1101
1122
|
export { Classifier as Classifier };
|
|
@@ -1136,9 +1157,9 @@ export declare namespace LlamaCloud {
|
|
|
1136
1157
|
type UntypedParameters as UntypedParameters,
|
|
1137
1158
|
type ConfigurationResponsesPaginatedCursor as ConfigurationResponsesPaginatedCursor,
|
|
1138
1159
|
type ConfigurationCreateParams as ConfigurationCreateParams,
|
|
1160
|
+
type ConfigurationListParams as ConfigurationListParams,
|
|
1139
1161
|
type ConfigurationRetrieveParams as ConfigurationRetrieveParams,
|
|
1140
1162
|
type ConfigurationUpdateParams as ConfigurationUpdateParams,
|
|
1141
|
-
type ConfigurationListParams as ConfigurationListParams,
|
|
1142
1163
|
type ConfigurationDeleteParams as ConfigurationDeleteParams,
|
|
1143
1164
|
};
|
|
1144
1165
|
|
|
@@ -1154,9 +1175,9 @@ export declare namespace LlamaCloud {
|
|
|
1154
1175
|
DataSinks as DataSinks,
|
|
1155
1176
|
type DataSink as DataSink,
|
|
1156
1177
|
type DataSinkListResponse as DataSinkListResponse,
|
|
1178
|
+
type DataSinkListParams as DataSinkListParams,
|
|
1157
1179
|
type DataSinkCreateParams as DataSinkCreateParams,
|
|
1158
1180
|
type DataSinkUpdateParams as DataSinkUpdateParams,
|
|
1159
|
-
type DataSinkListParams as DataSinkListParams,
|
|
1160
1181
|
};
|
|
1161
1182
|
|
|
1162
1183
|
export {
|
|
@@ -1164,9 +1185,9 @@ export declare namespace LlamaCloud {
|
|
|
1164
1185
|
type DataSource as DataSource,
|
|
1165
1186
|
type DataSourceReaderVersionMetadata as DataSourceReaderVersionMetadata,
|
|
1166
1187
|
type DataSourceListResponse as DataSourceListResponse,
|
|
1188
|
+
type DataSourceListParams as DataSourceListParams,
|
|
1167
1189
|
type DataSourceCreateParams as DataSourceCreateParams,
|
|
1168
1190
|
type DataSourceUpdateParams as DataSourceUpdateParams,
|
|
1169
|
-
type DataSourceListParams as DataSourceListParams,
|
|
1170
1191
|
};
|
|
1171
1192
|
|
|
1172
1193
|
export {
|
|
@@ -1204,12 +1225,12 @@ export declare namespace LlamaCloud {
|
|
|
1204
1225
|
type VertexTextEmbedding as VertexTextEmbedding,
|
|
1205
1226
|
type PipelineRetrieveResponse as PipelineRetrieveResponse,
|
|
1206
1227
|
type PipelineListResponse as PipelineListResponse,
|
|
1228
|
+
type PipelineListParams as PipelineListParams,
|
|
1207
1229
|
type PipelineCreateParams as PipelineCreateParams,
|
|
1208
|
-
type PipelineRetrieveParams as PipelineRetrieveParams,
|
|
1209
1230
|
type PipelineUpdateParams as PipelineUpdateParams,
|
|
1210
|
-
type PipelineListParams as PipelineListParams,
|
|
1211
1231
|
type PipelineGetStatusParams as PipelineGetStatusParams,
|
|
1212
1232
|
type PipelineUpsertParams as PipelineUpsertParams,
|
|
1233
|
+
type PipelineRetrieveParams as PipelineRetrieveParams,
|
|
1213
1234
|
};
|
|
1214
1235
|
|
|
1215
1236
|
export {
|
|
@@ -1222,12 +1243,12 @@ export declare namespace LlamaCloud {
|
|
|
1222
1243
|
type RetrieverPipeline as RetrieverPipeline,
|
|
1223
1244
|
type RetrieverListResponse as RetrieverListResponse,
|
|
1224
1245
|
type RetrieverCreateParams as RetrieverCreateParams,
|
|
1225
|
-
type
|
|
1246
|
+
type RetrieverUpsertParams as RetrieverUpsertParams,
|
|
1226
1247
|
type RetrieverListParams as RetrieverListParams,
|
|
1227
|
-
type RetrieverDeleteParams as RetrieverDeleteParams,
|
|
1228
1248
|
type RetrieverGetParams as RetrieverGetParams,
|
|
1249
|
+
type RetrieverUpdateParams as RetrieverUpdateParams,
|
|
1250
|
+
type RetrieverDeleteParams as RetrieverDeleteParams,
|
|
1229
1251
|
type RetrieverSearchParams as RetrieverSearchParams,
|
|
1230
|
-
type RetrieverUpsertParams as RetrieverUpsertParams,
|
|
1231
1252
|
};
|
|
1232
1253
|
|
|
1233
1254
|
export { Beta as Beta };
|
package/src/resources/batches.ts
CHANGED
|
@@ -15,8 +15,7 @@ export class Batches extends APIResource {
|
|
|
15
15
|
* const batch = await client.batches.create({
|
|
16
16
|
* config: {
|
|
17
17
|
* job: {
|
|
18
|
-
* configuration_id:
|
|
19
|
-
* 'cfg-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
|
|
18
|
+
* configuration_id: 'cfg-PARSE_AGENTIC',
|
|
20
19
|
* type: 'parse_v2',
|
|
21
20
|
* },
|
|
22
21
|
* },
|
|
@@ -76,16 +75,16 @@ export type BatchListResponsesPaginatedCursor = PaginatedCursor<BatchListRespons
|
|
|
76
75
|
* Example: { "id": "bat-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "project_id":
|
|
77
76
|
* "prj-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "source_directory_id":
|
|
78
77
|
* "dir-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "config": { "job": { "type":
|
|
79
|
-
* "parse_v2", "configuration_id": "cfg-
|
|
80
|
-
* "
|
|
78
|
+
* "parse_v2", "configuration_id": "cfg-PARSE_AGENTIC" } }, "status": "COMPLETED",
|
|
79
|
+
* "results": [ { "source_directory_file_id":
|
|
81
80
|
* "dfl-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "job_reference": { "type":
|
|
82
81
|
* "parse_v2", "id": "pjb-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" }, "error_message":
|
|
83
82
|
* null } ] }
|
|
84
83
|
*
|
|
85
84
|
* Batch-level `FAILED` means the orchestration failed and cannot provide a
|
|
86
85
|
* reliable per-file result set. `results` is only populated when explicitly
|
|
87
|
-
* requested with `expand=results` and may be `null` while a batch is still
|
|
88
|
-
*
|
|
86
|
+
* requested with `expand=results` and may be `null` while a batch is still
|
|
87
|
+
* running.
|
|
89
88
|
*/
|
|
90
89
|
export interface BatchCreateResponse {
|
|
91
90
|
/**
|
|
@@ -111,7 +110,7 @@ export interface BatchCreateResponse {
|
|
|
111
110
|
/**
|
|
112
111
|
* Current batch status.
|
|
113
112
|
*/
|
|
114
|
-
status: '
|
|
113
|
+
status: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING' | 'THROTTLED';
|
|
115
114
|
|
|
116
115
|
/**
|
|
117
116
|
* Creation datetime
|
|
@@ -120,7 +119,7 @@ export interface BatchCreateResponse {
|
|
|
120
119
|
|
|
121
120
|
/**
|
|
122
121
|
* Expanded per-file result mappings. Null unless requested with expand=results, or
|
|
123
|
-
*
|
|
122
|
+
* while the batch is still running.
|
|
124
123
|
*/
|
|
125
124
|
results?: Array<BatchCreateResponse.Result> | null;
|
|
126
125
|
|
|
@@ -147,7 +146,7 @@ export namespace BatchCreateResponse {
|
|
|
147
146
|
*/
|
|
148
147
|
export interface Job {
|
|
149
148
|
/**
|
|
150
|
-
*
|
|
149
|
+
* Product configuration ID or built-in preset ID matching the job type.
|
|
151
150
|
*/
|
|
152
151
|
configuration_id: string;
|
|
153
152
|
|
|
@@ -219,16 +218,16 @@ export namespace BatchCreateResponse {
|
|
|
219
218
|
* Example: { "id": "bat-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "project_id":
|
|
220
219
|
* "prj-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "source_directory_id":
|
|
221
220
|
* "dir-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "config": { "job": { "type":
|
|
222
|
-
* "parse_v2", "configuration_id": "cfg-
|
|
223
|
-
* "
|
|
221
|
+
* "parse_v2", "configuration_id": "cfg-PARSE_AGENTIC" } }, "status": "COMPLETED",
|
|
222
|
+
* "results": [ { "source_directory_file_id":
|
|
224
223
|
* "dfl-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "job_reference": { "type":
|
|
225
224
|
* "parse_v2", "id": "pjb-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" }, "error_message":
|
|
226
225
|
* null } ] }
|
|
227
226
|
*
|
|
228
227
|
* Batch-level `FAILED` means the orchestration failed and cannot provide a
|
|
229
228
|
* reliable per-file result set. `results` is only populated when explicitly
|
|
230
|
-
* requested with `expand=results` and may be `null` while a batch is still
|
|
231
|
-
*
|
|
229
|
+
* requested with `expand=results` and may be `null` while a batch is still
|
|
230
|
+
* running.
|
|
232
231
|
*/
|
|
233
232
|
export interface BatchListResponse {
|
|
234
233
|
/**
|
|
@@ -254,7 +253,7 @@ export interface BatchListResponse {
|
|
|
254
253
|
/**
|
|
255
254
|
* Current batch status.
|
|
256
255
|
*/
|
|
257
|
-
status: '
|
|
256
|
+
status: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING' | 'THROTTLED';
|
|
258
257
|
|
|
259
258
|
/**
|
|
260
259
|
* Creation datetime
|
|
@@ -263,7 +262,7 @@ export interface BatchListResponse {
|
|
|
263
262
|
|
|
264
263
|
/**
|
|
265
264
|
* Expanded per-file result mappings. Null unless requested with expand=results, or
|
|
266
|
-
*
|
|
265
|
+
* while the batch is still running.
|
|
267
266
|
*/
|
|
268
267
|
results?: Array<BatchListResponse.Result> | null;
|
|
269
268
|
|
|
@@ -290,7 +289,7 @@ export namespace BatchListResponse {
|
|
|
290
289
|
*/
|
|
291
290
|
export interface Job {
|
|
292
291
|
/**
|
|
293
|
-
*
|
|
292
|
+
* Product configuration ID or built-in preset ID matching the job type.
|
|
294
293
|
*/
|
|
295
294
|
configuration_id: string;
|
|
296
295
|
|
|
@@ -362,16 +361,16 @@ export namespace BatchListResponse {
|
|
|
362
361
|
* Example: { "id": "bat-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "project_id":
|
|
363
362
|
* "prj-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "source_directory_id":
|
|
364
363
|
* "dir-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "config": { "job": { "type":
|
|
365
|
-
* "parse_v2", "configuration_id": "cfg-
|
|
366
|
-
* "
|
|
364
|
+
* "parse_v2", "configuration_id": "cfg-PARSE_AGENTIC" } }, "status": "COMPLETED",
|
|
365
|
+
* "results": [ { "source_directory_file_id":
|
|
367
366
|
* "dfl-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "job_reference": { "type":
|
|
368
367
|
* "parse_v2", "id": "pjb-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" }, "error_message":
|
|
369
368
|
* null } ] }
|
|
370
369
|
*
|
|
371
370
|
* Batch-level `FAILED` means the orchestration failed and cannot provide a
|
|
372
371
|
* reliable per-file result set. `results` is only populated when explicitly
|
|
373
|
-
* requested with `expand=results` and may be `null` while a batch is still
|
|
374
|
-
*
|
|
372
|
+
* requested with `expand=results` and may be `null` while a batch is still
|
|
373
|
+
* running.
|
|
375
374
|
*/
|
|
376
375
|
export interface BatchGetResponse {
|
|
377
376
|
/**
|
|
@@ -397,7 +396,7 @@ export interface BatchGetResponse {
|
|
|
397
396
|
/**
|
|
398
397
|
* Current batch status.
|
|
399
398
|
*/
|
|
400
|
-
status: '
|
|
399
|
+
status: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING' | 'THROTTLED';
|
|
401
400
|
|
|
402
401
|
/**
|
|
403
402
|
* Creation datetime
|
|
@@ -406,7 +405,7 @@ export interface BatchGetResponse {
|
|
|
406
405
|
|
|
407
406
|
/**
|
|
408
407
|
* Expanded per-file result mappings. Null unless requested with expand=results, or
|
|
409
|
-
*
|
|
408
|
+
* while the batch is still running.
|
|
410
409
|
*/
|
|
411
410
|
results?: Array<BatchGetResponse.Result> | null;
|
|
412
411
|
|
|
@@ -433,7 +432,7 @@ export namespace BatchGetResponse {
|
|
|
433
432
|
*/
|
|
434
433
|
export interface Job {
|
|
435
434
|
/**
|
|
436
|
-
*
|
|
435
|
+
* Product configuration ID or built-in preset ID matching the job type.
|
|
437
436
|
*/
|
|
438
437
|
configuration_id: string;
|
|
439
438
|
|
|
@@ -538,7 +537,7 @@ export namespace BatchCreateParams {
|
|
|
538
537
|
*/
|
|
539
538
|
export interface Job {
|
|
540
539
|
/**
|
|
541
|
-
*
|
|
540
|
+
* Product configuration ID or built-in preset ID matching the job type.
|
|
542
541
|
*/
|
|
543
542
|
configuration_id: string;
|
|
544
543
|
|
|
@@ -561,7 +560,7 @@ export interface BatchListParams extends PaginatedCursorParams {
|
|
|
561
560
|
|
|
562
561
|
source_directory_id?: string | null;
|
|
563
562
|
|
|
564
|
-
status?: '
|
|
563
|
+
status?: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING' | 'THROTTLED' | null;
|
|
565
564
|
}
|
|
566
565
|
|
|
567
566
|
export interface BatchGetParams {
|