@llamaindex/llama-cloud 2.9.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 +20 -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 +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 +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 +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 +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 +23 -56
- package/resources/beta/sheets.d.mts.map +1 -1
- package/resources/beta/sheets.d.ts +23 -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 +1 -1
- package/resources/classifier/jobs.d.mts.map +1 -1
- package/resources/classifier/jobs.d.ts +1 -1
- package/resources/classifier/jobs.d.ts.map +1 -1
- package/resources/classify.d.mts +13 -11
- package/resources/classify.d.mts.map +1 -1
- package/resources/classify.d.ts +13 -11
- package/resources/classify.d.ts.map +1 -1
- package/resources/configurations.d.mts +62 -43
- package/resources/configurations.d.mts.map +1 -1
- package/resources/configurations.d.ts +62 -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 +48 -46
- package/resources/extract.d.mts.map +1 -1
- package/resources/extract.d.ts +48 -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 +73 -51
- package/resources/parsing.d.mts.map +1 -1
- package/resources/parsing.d.ts +73 -51
- 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 +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 +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 +4 -4
- package/src/resources/beta/agent-data.ts +131 -131
- package/src/resources/beta/batch/batch.ts +59 -54
- package/src/resources/beta/batch/index.ts +1 -1
- package/src/resources/beta/batch/job-items.ts +26 -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 -66
- 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 +53 -53
- package/src/resources/beta/retrieval.ts +3 -3
- package/src/resources/beta/sheets.ts +74 -97
- package/src/resources/beta/split.ts +2 -2
- package/src/resources/classifier/jobs.ts +1 -1
- package/src/resources/classify.ts +51 -39
- package/src/resources/configurations.ts +84 -63
- package/src/resources/data-sinks.ts +26 -26
- package/src/resources/data-sources.ts +43 -43
- package/src/resources/extract.ts +109 -97
- package/src/resources/files.ts +61 -61
- package/src/resources/index.ts +21 -12
- package/src/resources/parsing.ts +229 -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 +228 -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 +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
|
@@ -110,7 +110,7 @@ export interface BatchCreateResponse {
|
|
|
110
110
|
/**
|
|
111
111
|
* Current batch status.
|
|
112
112
|
*/
|
|
113
|
-
status: '
|
|
113
|
+
status: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING' | 'THROTTLED';
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
116
|
* Creation datetime
|
|
@@ -253,7 +253,7 @@ export interface BatchListResponse {
|
|
|
253
253
|
/**
|
|
254
254
|
* Current batch status.
|
|
255
255
|
*/
|
|
256
|
-
status: '
|
|
256
|
+
status: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING' | 'THROTTLED';
|
|
257
257
|
|
|
258
258
|
/**
|
|
259
259
|
* Creation datetime
|
|
@@ -396,7 +396,7 @@ export interface BatchGetResponse {
|
|
|
396
396
|
/**
|
|
397
397
|
* Current batch status.
|
|
398
398
|
*/
|
|
399
|
-
status: '
|
|
399
|
+
status: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING' | 'THROTTLED';
|
|
400
400
|
|
|
401
401
|
/**
|
|
402
402
|
* Creation datetime
|
|
@@ -560,7 +560,7 @@ export interface BatchListParams extends PaginatedCursorParams {
|
|
|
560
560
|
|
|
561
561
|
source_directory_id?: string | null;
|
|
562
562
|
|
|
563
|
-
status?: '
|
|
563
|
+
status?: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING' | 'THROTTLED' | null;
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
export interface BatchGetParams {
|
|
@@ -8,23 +8,21 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class AgentData extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Get agent data by ID.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
15
|
-
* const agentData = await client.beta.agentData.
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* });
|
|
15
|
+
* const agentData = await client.beta.agentData.get(
|
|
16
|
+
* 'item_id',
|
|
17
|
+
* );
|
|
19
18
|
* ```
|
|
20
19
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
});
|
|
20
|
+
get(
|
|
21
|
+
itemID: string,
|
|
22
|
+
query: AgentDataGetParams | null | undefined = {},
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): APIPromise<AgentData> {
|
|
25
|
+
return this._client.get(path`/api/v1/beta/agent-data/${itemID}`, { query, ...options });
|
|
28
26
|
}
|
|
29
27
|
|
|
30
28
|
/**
|
|
@@ -79,101 +77,103 @@ export class AgentData extends APIResource {
|
|
|
79
77
|
}
|
|
80
78
|
|
|
81
79
|
/**
|
|
82
|
-
*
|
|
80
|
+
* Create new agent data.
|
|
83
81
|
*
|
|
84
82
|
* @example
|
|
85
83
|
* ```ts
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* )
|
|
90
|
-
* // ...
|
|
91
|
-
* }
|
|
84
|
+
* const agentData = await client.beta.agentData.create({
|
|
85
|
+
* data: { foo: 'bar' },
|
|
86
|
+
* deployment_name: 'deployment_name',
|
|
87
|
+
* });
|
|
92
88
|
* ```
|
|
93
89
|
*/
|
|
94
|
-
|
|
95
|
-
params: AgentDataAggregateParams,
|
|
96
|
-
options?: RequestOptions,
|
|
97
|
-
): PagePromise<AgentDataAggregateResponsesPaginatedCursorPost, AgentDataAggregateResponse> {
|
|
90
|
+
create(params: AgentDataCreateParams, options?: RequestOptions): APIPromise<AgentData> {
|
|
98
91
|
const { organization_id, project_id, ...body } = params;
|
|
99
|
-
return this._client.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
);
|
|
92
|
+
return this._client.post('/api/v1/beta/agent-data', {
|
|
93
|
+
query: { organization_id, project_id },
|
|
94
|
+
body,
|
|
95
|
+
...options,
|
|
96
|
+
});
|
|
104
97
|
}
|
|
105
98
|
|
|
106
99
|
/**
|
|
107
|
-
*
|
|
100
|
+
* Search agent data with filtering, sorting, and pagination.
|
|
108
101
|
*
|
|
109
102
|
* @example
|
|
110
103
|
* ```ts
|
|
111
|
-
*
|
|
104
|
+
* // Automatically fetches more pages as needed.
|
|
105
|
+
* for await (const agentData of client.beta.agentData.search({
|
|
112
106
|
* deployment_name: 'deployment_name',
|
|
113
|
-
* })
|
|
107
|
+
* })) {
|
|
108
|
+
* // ...
|
|
109
|
+
* }
|
|
114
110
|
* ```
|
|
115
111
|
*/
|
|
116
|
-
|
|
117
|
-
params:
|
|
112
|
+
search(
|
|
113
|
+
params: AgentDataSearchParams,
|
|
118
114
|
options?: RequestOptions,
|
|
119
|
-
):
|
|
115
|
+
): PagePromise<AgentDataPaginatedCursorPost, AgentData> {
|
|
120
116
|
const { organization_id, project_id, ...body } = params;
|
|
121
|
-
return this._client.
|
|
117
|
+
return this._client.getAPIList('/api/v1/beta/agent-data/:search', PaginatedCursorPost<AgentData>, {
|
|
122
118
|
query: { organization_id, project_id },
|
|
123
119
|
body,
|
|
120
|
+
method: 'post',
|
|
124
121
|
...options,
|
|
125
122
|
});
|
|
126
123
|
}
|
|
127
124
|
|
|
128
125
|
/**
|
|
129
|
-
*
|
|
126
|
+
* Aggregate agent data with grouping and optional counting/first item retrieval.
|
|
130
127
|
*
|
|
131
128
|
* @example
|
|
132
129
|
* ```ts
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
130
|
+
* // Automatically fetches more pages as needed.
|
|
131
|
+
* for await (const agentDataAggregateResponse of client.beta.agentData.aggregate(
|
|
132
|
+
* { deployment_name: 'deployment_name' },
|
|
133
|
+
* )) {
|
|
134
|
+
* // ...
|
|
135
|
+
* }
|
|
136
136
|
* ```
|
|
137
137
|
*/
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
query: AgentDataGetParams | null | undefined = {},
|
|
138
|
+
aggregate(
|
|
139
|
+
params: AgentDataAggregateParams,
|
|
141
140
|
options?: RequestOptions,
|
|
142
|
-
):
|
|
143
|
-
|
|
141
|
+
): PagePromise<AgentDataAggregateResponsesPaginatedCursorPost, AgentDataAggregateResponse> {
|
|
142
|
+
const { organization_id, project_id, ...body } = params;
|
|
143
|
+
return this._client.getAPIList(
|
|
144
|
+
'/api/v1/beta/agent-data/:aggregate',
|
|
145
|
+
PaginatedCursorPost<AgentDataAggregateResponse>,
|
|
146
|
+
{ query: { organization_id, project_id }, body, method: 'post', ...options },
|
|
147
|
+
);
|
|
144
148
|
}
|
|
145
149
|
|
|
146
150
|
/**
|
|
147
|
-
*
|
|
151
|
+
* Bulk delete agent data by query (deployment_name, collection, optional filters).
|
|
148
152
|
*
|
|
149
153
|
* @example
|
|
150
154
|
* ```ts
|
|
151
|
-
*
|
|
152
|
-
* for await (const agentData of client.beta.agentData.search({
|
|
155
|
+
* const response = await client.beta.agentData.deleteByQuery({
|
|
153
156
|
* deployment_name: 'deployment_name',
|
|
154
|
-
* })
|
|
155
|
-
* // ...
|
|
156
|
-
* }
|
|
157
|
+
* });
|
|
157
158
|
* ```
|
|
158
159
|
*/
|
|
159
|
-
|
|
160
|
-
params:
|
|
160
|
+
deleteByQuery(
|
|
161
|
+
params: AgentDataDeleteByQueryParams,
|
|
161
162
|
options?: RequestOptions,
|
|
162
|
-
):
|
|
163
|
+
): APIPromise<AgentDataDeleteByQueryResponse> {
|
|
163
164
|
const { organization_id, project_id, ...body } = params;
|
|
164
|
-
return this._client.
|
|
165
|
+
return this._client.post('/api/v1/beta/agent-data/:delete', {
|
|
165
166
|
query: { organization_id, project_id },
|
|
166
167
|
body,
|
|
167
|
-
method: 'post',
|
|
168
168
|
...options,
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
export type AgentDataAggregateResponsesPaginatedCursorPost = PaginatedCursorPost<AgentDataAggregateResponse>;
|
|
174
|
-
|
|
175
173
|
export type AgentDataPaginatedCursorPost = PaginatedCursorPost<AgentData>;
|
|
176
174
|
|
|
175
|
+
export type AgentDataAggregateResponsesPaginatedCursorPost = PaginatedCursorPost<AgentDataAggregateResponse>;
|
|
176
|
+
|
|
177
177
|
/**
|
|
178
178
|
* API Result for a single agent data item
|
|
179
179
|
*/
|
|
@@ -213,16 +213,17 @@ export interface AgentDataDeleteByQueryResponse {
|
|
|
213
213
|
deleted_count: number;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
export interface
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
216
|
+
export interface AgentDataGetParams {
|
|
217
|
+
organization_id?: string | null;
|
|
218
|
+
|
|
219
|
+
project_id?: string | null;
|
|
220
|
+
}
|
|
221
221
|
|
|
222
|
+
export interface AgentDataUpdateParams {
|
|
222
223
|
/**
|
|
223
224
|
* Body param
|
|
224
225
|
*/
|
|
225
|
-
|
|
226
|
+
data: { [key: string]: unknown };
|
|
226
227
|
|
|
227
228
|
/**
|
|
228
229
|
* Query param
|
|
@@ -233,18 +234,24 @@ export interface AgentDataCreateParams {
|
|
|
233
234
|
* Query param
|
|
234
235
|
*/
|
|
235
236
|
project_id?: string | null;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface AgentDataDeleteParams {
|
|
240
|
+
organization_id?: string | null;
|
|
241
|
+
|
|
242
|
+
project_id?: string | null;
|
|
243
|
+
}
|
|
236
244
|
|
|
245
|
+
export interface AgentDataCreateParams {
|
|
237
246
|
/**
|
|
238
247
|
* Body param
|
|
239
248
|
*/
|
|
240
|
-
|
|
241
|
-
}
|
|
249
|
+
data: { [key: string]: unknown };
|
|
242
250
|
|
|
243
|
-
export interface AgentDataUpdateParams {
|
|
244
251
|
/**
|
|
245
252
|
* Body param
|
|
246
253
|
*/
|
|
247
|
-
|
|
254
|
+
deployment_name: string;
|
|
248
255
|
|
|
249
256
|
/**
|
|
250
257
|
* Query param
|
|
@@ -255,17 +262,16 @@ export interface AgentDataUpdateParams {
|
|
|
255
262
|
* Query param
|
|
256
263
|
*/
|
|
257
264
|
project_id?: string | null;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export interface AgentDataDeleteParams {
|
|
261
|
-
organization_id?: string | null;
|
|
262
265
|
|
|
263
|
-
|
|
266
|
+
/**
|
|
267
|
+
* Body param
|
|
268
|
+
*/
|
|
269
|
+
collection?: string;
|
|
264
270
|
}
|
|
265
271
|
|
|
266
|
-
export interface
|
|
272
|
+
export interface AgentDataSearchParams extends PaginatedCursorPostParams {
|
|
267
273
|
/**
|
|
268
|
-
* Body param: The agent deployment's name to
|
|
274
|
+
* Body param: The agent deployment's name to search within
|
|
269
275
|
*/
|
|
270
276
|
deployment_name: string;
|
|
271
277
|
|
|
@@ -280,32 +286,20 @@ export interface AgentDataAggregateParams extends PaginatedCursorPostParams {
|
|
|
280
286
|
project_id?: string | null;
|
|
281
287
|
|
|
282
288
|
/**
|
|
283
|
-
* Body param: The logical agent data collection to
|
|
289
|
+
* Body param: The logical agent data collection to search within
|
|
284
290
|
*/
|
|
285
291
|
collection?: string;
|
|
286
292
|
|
|
287
|
-
/**
|
|
288
|
-
* Body param: Whether to count the number of items in each group
|
|
289
|
-
*/
|
|
290
|
-
count?: boolean | null;
|
|
291
|
-
|
|
292
293
|
/**
|
|
293
294
|
* Body param: A filter object or expression that filters resources listed in the
|
|
294
295
|
* response.
|
|
295
296
|
*/
|
|
296
|
-
filter?: { [key: string]:
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* Body param: Whether to return the first item in each group (Sorted by
|
|
300
|
-
* created_at)
|
|
301
|
-
*/
|
|
302
|
-
first?: boolean | null;
|
|
297
|
+
filter?: { [key: string]: AgentDataSearchParams.Filter } | null;
|
|
303
298
|
|
|
304
299
|
/**
|
|
305
|
-
* Body param:
|
|
306
|
-
* e.g. if left out, can be used for simple count operations
|
|
300
|
+
* Body param: Whether to include the total number of items in the response
|
|
307
301
|
*/
|
|
308
|
-
|
|
302
|
+
include_total?: boolean;
|
|
309
303
|
|
|
310
304
|
/**
|
|
311
305
|
* Body param: The offset to start from. If not provided, the first page is
|
|
@@ -320,7 +314,7 @@ export interface AgentDataAggregateParams extends PaginatedCursorPostParams {
|
|
|
320
314
|
order_by?: string | null;
|
|
321
315
|
}
|
|
322
316
|
|
|
323
|
-
export namespace
|
|
317
|
+
export namespace AgentDataSearchParams {
|
|
324
318
|
/**
|
|
325
319
|
* API request model for a filter comparison operation.
|
|
326
320
|
*/
|
|
@@ -343,9 +337,9 @@ export namespace AgentDataAggregateParams {
|
|
|
343
337
|
}
|
|
344
338
|
}
|
|
345
339
|
|
|
346
|
-
export interface
|
|
340
|
+
export interface AgentDataAggregateParams extends PaginatedCursorPostParams {
|
|
347
341
|
/**
|
|
348
|
-
* Body param: The agent deployment's name to
|
|
342
|
+
* Body param: The agent deployment's name to aggregate data for
|
|
349
343
|
*/
|
|
350
344
|
deployment_name: string;
|
|
351
345
|
|
|
@@ -360,17 +354,47 @@ export interface AgentDataDeleteByQueryParams {
|
|
|
360
354
|
project_id?: string | null;
|
|
361
355
|
|
|
362
356
|
/**
|
|
363
|
-
* Body param: The logical agent data collection to
|
|
357
|
+
* Body param: The logical agent data collection to aggregate data for
|
|
364
358
|
*/
|
|
365
359
|
collection?: string;
|
|
366
360
|
|
|
367
361
|
/**
|
|
368
|
-
* Body param:
|
|
362
|
+
* Body param: Whether to count the number of items in each group
|
|
369
363
|
*/
|
|
370
|
-
|
|
364
|
+
count?: boolean | null;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Body param: A filter object or expression that filters resources listed in the
|
|
368
|
+
* response.
|
|
369
|
+
*/
|
|
370
|
+
filter?: { [key: string]: AgentDataAggregateParams.Filter } | null;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Body param: Whether to return the first item in each group (Sorted by
|
|
374
|
+
* created_at)
|
|
375
|
+
*/
|
|
376
|
+
first?: boolean | null;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Body param: The fields to group by. If empty, the entire dataset is grouped on.
|
|
380
|
+
* e.g. if left out, can be used for simple count operations
|
|
381
|
+
*/
|
|
382
|
+
group_by?: Array<string> | null;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Body param: The offset to start from. If not provided, the first page is
|
|
386
|
+
* returned
|
|
387
|
+
*/
|
|
388
|
+
offset?: number | null;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Body param: A comma-separated list of fields to order by, sorted in ascending
|
|
392
|
+
* order. Use 'field_name desc' to specify descending order.
|
|
393
|
+
*/
|
|
394
|
+
order_by?: string | null;
|
|
371
395
|
}
|
|
372
396
|
|
|
373
|
-
export namespace
|
|
397
|
+
export namespace AgentDataAggregateParams {
|
|
374
398
|
/**
|
|
375
399
|
* API request model for a filter comparison operation.
|
|
376
400
|
*/
|
|
@@ -393,15 +417,9 @@ export namespace AgentDataDeleteByQueryParams {
|
|
|
393
417
|
}
|
|
394
418
|
}
|
|
395
419
|
|
|
396
|
-
export interface
|
|
397
|
-
organization_id?: string | null;
|
|
398
|
-
|
|
399
|
-
project_id?: string | null;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
export interface AgentDataSearchParams extends PaginatedCursorPostParams {
|
|
420
|
+
export interface AgentDataDeleteByQueryParams {
|
|
403
421
|
/**
|
|
404
|
-
* Body param: The agent deployment's name to
|
|
422
|
+
* Body param: The agent deployment's name to delete data for
|
|
405
423
|
*/
|
|
406
424
|
deployment_name: string;
|
|
407
425
|
|
|
@@ -416,35 +434,17 @@ export interface AgentDataSearchParams extends PaginatedCursorPostParams {
|
|
|
416
434
|
project_id?: string | null;
|
|
417
435
|
|
|
418
436
|
/**
|
|
419
|
-
* Body param: The logical agent data collection to
|
|
437
|
+
* Body param: The logical agent data collection to delete from
|
|
420
438
|
*/
|
|
421
439
|
collection?: string;
|
|
422
440
|
|
|
423
441
|
/**
|
|
424
|
-
* Body param:
|
|
425
|
-
* response.
|
|
426
|
-
*/
|
|
427
|
-
filter?: { [key: string]: AgentDataSearchParams.Filter } | null;
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* Body param: Whether to include the total number of items in the response
|
|
431
|
-
*/
|
|
432
|
-
include_total?: boolean;
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* Body param: The offset to start from. If not provided, the first page is
|
|
436
|
-
* returned
|
|
437
|
-
*/
|
|
438
|
-
offset?: number | null;
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* Body param: A comma-separated list of fields to order by, sorted in ascending
|
|
442
|
-
* order. Use 'field_name desc' to specify descending order.
|
|
442
|
+
* Body param: Optional filters to select which items to delete
|
|
443
443
|
*/
|
|
444
|
-
|
|
444
|
+
filter?: { [key: string]: AgentDataDeleteByQueryParams.Filter } | null;
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
-
export namespace
|
|
447
|
+
export namespace AgentDataDeleteByQueryParams {
|
|
448
448
|
/**
|
|
449
449
|
* API request model for a filter comparison operation.
|
|
450
450
|
*/
|
|
@@ -473,14 +473,14 @@ export declare namespace AgentData {
|
|
|
473
473
|
type AgentDataDeleteResponse as AgentDataDeleteResponse,
|
|
474
474
|
type AgentDataAggregateResponse as AgentDataAggregateResponse,
|
|
475
475
|
type AgentDataDeleteByQueryResponse as AgentDataDeleteByQueryResponse,
|
|
476
|
-
type AgentDataAggregateResponsesPaginatedCursorPost as AgentDataAggregateResponsesPaginatedCursorPost,
|
|
477
476
|
type AgentDataPaginatedCursorPost as AgentDataPaginatedCursorPost,
|
|
478
|
-
type
|
|
477
|
+
type AgentDataAggregateResponsesPaginatedCursorPost as AgentDataAggregateResponsesPaginatedCursorPost,
|
|
478
|
+
type AgentDataGetParams as AgentDataGetParams,
|
|
479
479
|
type AgentDataUpdateParams as AgentDataUpdateParams,
|
|
480
480
|
type AgentDataDeleteParams as AgentDataDeleteParams,
|
|
481
|
+
type AgentDataCreateParams as AgentDataCreateParams,
|
|
482
|
+
type AgentDataSearchParams as AgentDataSearchParams,
|
|
481
483
|
type AgentDataAggregateParams as AgentDataAggregateParams,
|
|
482
484
|
type AgentDataDeleteByQueryParams as AgentDataDeleteByQueryParams,
|
|
483
|
-
type AgentDataGetParams as AgentDataGetParams,
|
|
484
|
-
type AgentDataSearchParams as AgentDataSearchParams,
|
|
485
485
|
};
|
|
486
486
|
}
|