@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.
Files changed (292) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +11 -8
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +11 -8
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/batches.d.mts +4 -4
  12. package/resources/batches.d.mts.map +1 -1
  13. package/resources/batches.d.ts +4 -4
  14. package/resources/batches.d.ts.map +1 -1
  15. package/resources/beta/agent-data.d.mts +94 -94
  16. package/resources/beta/agent-data.d.mts.map +1 -1
  17. package/resources/beta/agent-data.d.ts +94 -94
  18. package/resources/beta/agent-data.d.ts.map +1 -1
  19. package/resources/beta/agent-data.js +41 -41
  20. package/resources/beta/agent-data.js.map +1 -1
  21. package/resources/beta/agent-data.mjs +41 -41
  22. package/resources/beta/agent-data.mjs.map +1 -1
  23. package/resources/beta/batch/batch.d.mts +36 -29
  24. package/resources/beta/batch/batch.d.mts.map +1 -1
  25. package/resources/beta/batch/batch.d.ts +36 -29
  26. package/resources/beta/batch/batch.d.ts.map +1 -1
  27. package/resources/beta/batch/batch.js +16 -16
  28. package/resources/beta/batch/batch.js.map +1 -1
  29. package/resources/beta/batch/batch.mjs +16 -16
  30. package/resources/beta/batch/batch.mjs.map +1 -1
  31. package/resources/beta/batch/index.d.mts +1 -1
  32. package/resources/beta/batch/index.d.mts.map +1 -1
  33. package/resources/beta/batch/index.d.ts +1 -1
  34. package/resources/beta/batch/index.d.ts.map +1 -1
  35. package/resources/beta/batch/job-items.d.mts +14 -7
  36. package/resources/beta/batch/job-items.d.mts.map +1 -1
  37. package/resources/beta/batch/job-items.d.ts +14 -7
  38. package/resources/beta/batch/job-items.d.ts.map +1 -1
  39. package/resources/beta/beta.d.mts +6 -6
  40. package/resources/beta/beta.d.mts.map +1 -1
  41. package/resources/beta/beta.d.ts +6 -6
  42. package/resources/beta/beta.d.ts.map +1 -1
  43. package/resources/beta/chat.d.mts +39 -39
  44. package/resources/beta/chat.d.mts.map +1 -1
  45. package/resources/beta/chat.d.ts +39 -39
  46. package/resources/beta/chat.d.ts.map +1 -1
  47. package/resources/beta/chat.js +14 -14
  48. package/resources/beta/chat.js.map +1 -1
  49. package/resources/beta/chat.mjs +14 -14
  50. package/resources/beta/chat.mjs.map +1 -1
  51. package/resources/beta/directories/directories.d.mts +48 -39
  52. package/resources/beta/directories/directories.d.mts.map +1 -1
  53. package/resources/beta/directories/directories.d.ts +48 -39
  54. package/resources/beta/directories/directories.d.ts.map +1 -1
  55. package/resources/beta/directories/directories.js +30 -30
  56. package/resources/beta/directories/directories.js.map +1 -1
  57. package/resources/beta/directories/directories.mjs +30 -30
  58. package/resources/beta/directories/directories.mjs.map +1 -1
  59. package/resources/beta/directories/files.d.mts +47 -47
  60. package/resources/beta/directories/files.d.mts.map +1 -1
  61. package/resources/beta/directories/files.d.ts +47 -47
  62. package/resources/beta/directories/files.d.ts.map +1 -1
  63. package/resources/beta/directories/files.js +32 -32
  64. package/resources/beta/directories/files.js.map +1 -1
  65. package/resources/beta/directories/files.mjs +32 -32
  66. package/resources/beta/directories/files.mjs.map +1 -1
  67. package/resources/beta/directories/index.d.mts +2 -2
  68. package/resources/beta/directories/index.d.mts.map +1 -1
  69. package/resources/beta/directories/index.d.ts +2 -2
  70. package/resources/beta/directories/index.d.ts.map +1 -1
  71. package/resources/beta/index.d.mts +6 -6
  72. package/resources/beta/index.d.mts.map +1 -1
  73. package/resources/beta/index.d.ts +6 -6
  74. package/resources/beta/index.d.ts.map +1 -1
  75. package/resources/beta/indexes.d.mts +44 -32
  76. package/resources/beta/indexes.d.mts.map +1 -1
  77. package/resources/beta/indexes.d.ts +44 -32
  78. package/resources/beta/indexes.d.ts.map +1 -1
  79. package/resources/beta/indexes.js +28 -28
  80. package/resources/beta/indexes.js.map +1 -1
  81. package/resources/beta/indexes.mjs +28 -28
  82. package/resources/beta/indexes.mjs.map +1 -1
  83. package/resources/beta/retrieval.d.mts +3 -3
  84. package/resources/beta/retrieval.d.mts.map +1 -1
  85. package/resources/beta/retrieval.d.ts +3 -3
  86. package/resources/beta/retrieval.d.ts.map +1 -1
  87. package/resources/beta/sheets.d.mts +37 -56
  88. package/resources/beta/sheets.d.mts.map +1 -1
  89. package/resources/beta/sheets.d.ts +37 -56
  90. package/resources/beta/sheets.d.ts.map +1 -1
  91. package/resources/beta/sheets.js +19 -52
  92. package/resources/beta/sheets.js.map +1 -1
  93. package/resources/beta/sheets.mjs +19 -52
  94. package/resources/beta/sheets.mjs.map +1 -1
  95. package/resources/beta/split.d.mts +2 -2
  96. package/resources/beta/split.d.mts.map +1 -1
  97. package/resources/beta/split.d.ts +2 -2
  98. package/resources/beta/split.d.ts.map +1 -1
  99. package/resources/classifier/jobs.d.mts +8 -1
  100. package/resources/classifier/jobs.d.mts.map +1 -1
  101. package/resources/classifier/jobs.d.ts +8 -1
  102. package/resources/classifier/jobs.d.ts.map +1 -1
  103. package/resources/classify.d.mts +27 -11
  104. package/resources/classify.d.mts.map +1 -1
  105. package/resources/classify.d.ts +27 -11
  106. package/resources/classify.d.ts.map +1 -1
  107. package/resources/configurations.d.mts +73 -43
  108. package/resources/configurations.d.mts.map +1 -1
  109. package/resources/configurations.d.ts +73 -43
  110. package/resources/configurations.d.ts.map +1 -1
  111. package/resources/configurations.js +9 -9
  112. package/resources/configurations.js.map +1 -1
  113. package/resources/configurations.mjs +9 -9
  114. package/resources/configurations.mjs.map +1 -1
  115. package/resources/data-sinks.d.mts +16 -16
  116. package/resources/data-sinks.d.mts.map +1 -1
  117. package/resources/data-sinks.d.ts +16 -16
  118. package/resources/data-sinks.d.ts.map +1 -1
  119. package/resources/data-sinks.js +12 -12
  120. package/resources/data-sinks.js.map +1 -1
  121. package/resources/data-sinks.mjs +12 -12
  122. package/resources/data-sinks.mjs.map +1 -1
  123. package/resources/data-sources.d.mts +17 -17
  124. package/resources/data-sources.d.mts.map +1 -1
  125. package/resources/data-sources.d.ts +17 -17
  126. package/resources/data-sources.d.ts.map +1 -1
  127. package/resources/data-sources.js +13 -13
  128. package/resources/data-sources.js.map +1 -1
  129. package/resources/data-sources.mjs +13 -13
  130. package/resources/data-sources.mjs.map +1 -1
  131. package/resources/extract.d.mts +62 -46
  132. package/resources/extract.d.mts.map +1 -1
  133. package/resources/extract.d.ts +62 -46
  134. package/resources/extract.d.ts.map +1 -1
  135. package/resources/extract.js +33 -33
  136. package/resources/extract.js.map +1 -1
  137. package/resources/extract.mjs +33 -33
  138. package/resources/extract.mjs.map +1 -1
  139. package/resources/files.d.mts +41 -41
  140. package/resources/files.d.mts.map +1 -1
  141. package/resources/files.d.ts +41 -41
  142. package/resources/files.d.ts.map +1 -1
  143. package/resources/files.js +13 -13
  144. package/resources/files.js.map +1 -1
  145. package/resources/files.mjs +13 -13
  146. package/resources/files.mjs.map +1 -1
  147. package/resources/index.d.mts +9 -8
  148. package/resources/index.d.mts.map +1 -1
  149. package/resources/index.d.ts +9 -8
  150. package/resources/index.d.ts.map +1 -1
  151. package/resources/index.js +3 -1
  152. package/resources/index.js.map +1 -1
  153. package/resources/index.mjs +1 -0
  154. package/resources/index.mjs.map +1 -1
  155. package/resources/parsing.d.mts +131 -51
  156. package/resources/parsing.d.mts.map +1 -1
  157. package/resources/parsing.d.ts +131 -51
  158. package/resources/parsing.d.ts.map +1 -1
  159. package/resources/parsing.js +33 -12
  160. package/resources/parsing.js.map +1 -1
  161. package/resources/parsing.mjs +33 -12
  162. package/resources/parsing.mjs.map +1 -1
  163. package/resources/pipelines/data-sources.d.mts +40 -30
  164. package/resources/pipelines/data-sources.d.mts.map +1 -1
  165. package/resources/pipelines/data-sources.d.ts +40 -30
  166. package/resources/pipelines/data-sources.d.ts.map +1 -1
  167. package/resources/pipelines/data-sources.js +23 -13
  168. package/resources/pipelines/data-sources.js.map +1 -1
  169. package/resources/pipelines/data-sources.mjs +23 -13
  170. package/resources/pipelines/data-sources.mjs.map +1 -1
  171. package/resources/pipelines/documents.d.mts +28 -12
  172. package/resources/pipelines/documents.d.mts.map +1 -1
  173. package/resources/pipelines/documents.d.ts +28 -12
  174. package/resources/pipelines/documents.d.ts.map +1 -1
  175. package/resources/pipelines/documents.js +30 -14
  176. package/resources/pipelines/documents.js.map +1 -1
  177. package/resources/pipelines/documents.mjs +30 -14
  178. package/resources/pipelines/documents.mjs.map +1 -1
  179. package/resources/pipelines/files.d.mts +34 -24
  180. package/resources/pipelines/files.d.mts.map +1 -1
  181. package/resources/pipelines/files.d.ts +34 -24
  182. package/resources/pipelines/files.d.ts.map +1 -1
  183. package/resources/pipelines/files.js +27 -17
  184. package/resources/pipelines/files.js.map +1 -1
  185. package/resources/pipelines/files.mjs +27 -17
  186. package/resources/pipelines/files.mjs.map +1 -1
  187. package/resources/pipelines/images.d.mts +17 -17
  188. package/resources/pipelines/images.d.mts.map +1 -1
  189. package/resources/pipelines/images.d.ts +17 -17
  190. package/resources/pipelines/images.d.ts.map +1 -1
  191. package/resources/pipelines/images.js +13 -13
  192. package/resources/pipelines/images.js.map +1 -1
  193. package/resources/pipelines/images.mjs +13 -13
  194. package/resources/pipelines/images.mjs.map +1 -1
  195. package/resources/pipelines/index.d.mts +5 -5
  196. package/resources/pipelines/index.d.mts.map +1 -1
  197. package/resources/pipelines/index.d.ts +5 -5
  198. package/resources/pipelines/index.d.ts.map +1 -1
  199. package/resources/pipelines/metadata.d.mts +4 -0
  200. package/resources/pipelines/metadata.d.mts.map +1 -1
  201. package/resources/pipelines/metadata.d.ts +4 -0
  202. package/resources/pipelines/metadata.d.ts.map +1 -1
  203. package/resources/pipelines/metadata.js +4 -0
  204. package/resources/pipelines/metadata.js.map +1 -1
  205. package/resources/pipelines/metadata.mjs +4 -0
  206. package/resources/pipelines/metadata.mjs.map +1 -1
  207. package/resources/pipelines/pipelines.d.mts +149 -126
  208. package/resources/pipelines/pipelines.d.mts.map +1 -1
  209. package/resources/pipelines/pipelines.d.ts +149 -126
  210. package/resources/pipelines/pipelines.d.ts.map +1 -1
  211. package/resources/pipelines/pipelines.js +39 -23
  212. package/resources/pipelines/pipelines.js.map +1 -1
  213. package/resources/pipelines/pipelines.mjs +39 -23
  214. package/resources/pipelines/pipelines.mjs.map +1 -1
  215. package/resources/pipelines/sync.d.mts +4 -0
  216. package/resources/pipelines/sync.d.mts.map +1 -1
  217. package/resources/pipelines/sync.d.ts +4 -0
  218. package/resources/pipelines/sync.d.ts.map +1 -1
  219. package/resources/pipelines/sync.js +4 -0
  220. package/resources/pipelines/sync.js.map +1 -1
  221. package/resources/pipelines/sync.mjs +4 -0
  222. package/resources/pipelines/sync.mjs.map +1 -1
  223. package/resources/retrievers/index.d.mts +1 -1
  224. package/resources/retrievers/index.d.mts.map +1 -1
  225. package/resources/retrievers/index.d.ts +1 -1
  226. package/resources/retrievers/index.d.ts.map +1 -1
  227. package/resources/retrievers/retrievers.d.mts +39 -39
  228. package/resources/retrievers/retrievers.d.mts.map +1 -1
  229. package/resources/retrievers/retrievers.d.ts +39 -39
  230. package/resources/retrievers/retrievers.d.ts.map +1 -1
  231. package/resources/retrievers/retrievers.js +20 -20
  232. package/resources/retrievers/retrievers.js.map +1 -1
  233. package/resources/retrievers/retrievers.mjs +20 -20
  234. package/resources/retrievers/retrievers.mjs.map +1 -1
  235. package/resources/shared.d.mts +11 -3
  236. package/resources/shared.d.mts.map +1 -1
  237. package/resources/shared.d.ts +11 -3
  238. package/resources/shared.d.ts.map +1 -1
  239. package/resources/sheets.d.mts +206 -0
  240. package/resources/sheets.d.mts.map +1 -0
  241. package/resources/sheets.d.ts +206 -0
  242. package/resources/sheets.d.ts.map +1 -0
  243. package/resources/sheets.js +101 -0
  244. package/resources/sheets.js.map +1 -0
  245. package/resources/sheets.mjs +97 -0
  246. package/resources/sheets.mjs.map +1 -0
  247. package/src/client.ts +33 -12
  248. package/src/resources/batches.ts +4 -4
  249. package/src/resources/beta/agent-data.ts +131 -131
  250. package/src/resources/beta/batch/batch.ts +67 -54
  251. package/src/resources/beta/batch/index.ts +1 -1
  252. package/src/resources/beta/batch/job-items.ts +34 -21
  253. package/src/resources/beta/beta.ts +12 -12
  254. package/src/resources/beta/chat.ts +57 -57
  255. package/src/resources/beta/directories/directories.ts +80 -71
  256. package/src/resources/beta/directories/files.ts +66 -66
  257. package/src/resources/beta/directories/index.ts +5 -5
  258. package/src/resources/beta/index.ts +12 -12
  259. package/src/resources/beta/indexes.ts +68 -53
  260. package/src/resources/beta/retrieval.ts +3 -3
  261. package/src/resources/beta/sheets.ts +90 -97
  262. package/src/resources/beta/split.ts +2 -2
  263. package/src/resources/classifier/jobs.ts +9 -1
  264. package/src/resources/classify.ts +67 -39
  265. package/src/resources/configurations.ts +97 -63
  266. package/src/resources/data-sinks.ts +26 -26
  267. package/src/resources/data-sources.ts +43 -43
  268. package/src/resources/extract.ts +125 -97
  269. package/src/resources/files.ts +61 -61
  270. package/src/resources/index.ts +21 -12
  271. package/src/resources/parsing.ts +285 -204
  272. package/src/resources/pipelines/data-sources.ts +59 -49
  273. package/src/resources/pipelines/documents.ts +42 -26
  274. package/src/resources/pipelines/files.ts +62 -52
  275. package/src/resources/pipelines/images.ts +36 -36
  276. package/src/resources/pipelines/index.ts +10 -10
  277. package/src/resources/pipelines/metadata.ts +4 -0
  278. package/src/resources/pipelines/pipelines.ts +236 -207
  279. package/src/resources/pipelines/sync.ts +4 -0
  280. package/src/resources/retrievers/index.ts +3 -3
  281. package/src/resources/retrievers/retrievers.ts +64 -64
  282. package/src/resources/shared.ts +12 -3
  283. package/src/resources/sheets.ts +322 -0
  284. package/src/version.ts +1 -1
  285. package/version.d.mts +1 -1
  286. package/version.d.mts.map +1 -1
  287. package/version.d.ts +1 -1
  288. package/version.d.ts.map +1 -1
  289. package/version.js +1 -1
  290. package/version.js.map +1 -1
  291. package/version.mjs +1 -1
  292. package/version.mjs.map +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
- type FileQueryParams as FileQueryParams,
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 RetrieverUpdateParams as RetrieverUpdateParams,
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 };
@@ -110,7 +110,7 @@ export interface BatchCreateResponse {
110
110
  /**
111
111
  * Current batch status.
112
112
  */
113
- status: 'PENDING' | 'THROTTLED' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
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: 'PENDING' | 'THROTTLED' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
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: 'PENDING' | 'THROTTLED' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
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?: 'PENDING' | 'THROTTLED' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELLED' | null;
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
- * Create new agent data.
11
+ * Get agent data by ID.
12
12
  *
13
13
  * @example
14
14
  * ```ts
15
- * const agentData = await client.beta.agentData.create({
16
- * data: { foo: 'bar' },
17
- * deployment_name: 'deployment_name',
18
- * });
15
+ * const agentData = await client.beta.agentData.get(
16
+ * 'item_id',
17
+ * );
19
18
  * ```
20
19
  */
21
- create(params: AgentDataCreateParams, options?: RequestOptions): APIPromise<AgentData> {
22
- const { organization_id, project_id, ...body } = params;
23
- return this._client.post('/api/v1/beta/agent-data', {
24
- query: { organization_id, project_id },
25
- body,
26
- ...options,
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
- * Aggregate agent data with grouping and optional counting/first item retrieval.
80
+ * Create new agent data.
83
81
  *
84
82
  * @example
85
83
  * ```ts
86
- * // Automatically fetches more pages as needed.
87
- * for await (const agentDataAggregateResponse of client.beta.agentData.aggregate(
88
- * { deployment_name: 'deployment_name' },
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
- aggregate(
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.getAPIList(
100
- '/api/v1/beta/agent-data/:aggregate',
101
- PaginatedCursorPost<AgentDataAggregateResponse>,
102
- { query: { organization_id, project_id }, body, method: 'post', ...options },
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
- * Bulk delete agent data by query (deployment_name, collection, optional filters).
100
+ * Search agent data with filtering, sorting, and pagination.
108
101
  *
109
102
  * @example
110
103
  * ```ts
111
- * const response = await client.beta.agentData.deleteByQuery({
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
- deleteByQuery(
117
- params: AgentDataDeleteByQueryParams,
112
+ search(
113
+ params: AgentDataSearchParams,
118
114
  options?: RequestOptions,
119
- ): APIPromise<AgentDataDeleteByQueryResponse> {
115
+ ): PagePromise<AgentDataPaginatedCursorPost, AgentData> {
120
116
  const { organization_id, project_id, ...body } = params;
121
- return this._client.post('/api/v1/beta/agent-data/:delete', {
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
- * Get agent data by ID.
126
+ * Aggregate agent data with grouping and optional counting/first item retrieval.
130
127
  *
131
128
  * @example
132
129
  * ```ts
133
- * const agentData = await client.beta.agentData.get(
134
- * 'item_id',
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
- get(
139
- itemID: string,
140
- query: AgentDataGetParams | null | undefined = {},
138
+ aggregate(
139
+ params: AgentDataAggregateParams,
141
140
  options?: RequestOptions,
142
- ): APIPromise<AgentData> {
143
- return this._client.get(path`/api/v1/beta/agent-data/${itemID}`, { query, ...options });
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
- * Search agent data with filtering, sorting, and pagination.
151
+ * Bulk delete agent data by query (deployment_name, collection, optional filters).
148
152
  *
149
153
  * @example
150
154
  * ```ts
151
- * // Automatically fetches more pages as needed.
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
- search(
160
- params: AgentDataSearchParams,
160
+ deleteByQuery(
161
+ params: AgentDataDeleteByQueryParams,
161
162
  options?: RequestOptions,
162
- ): PagePromise<AgentDataPaginatedCursorPost, AgentData> {
163
+ ): APIPromise<AgentDataDeleteByQueryResponse> {
163
164
  const { organization_id, project_id, ...body } = params;
164
- return this._client.getAPIList('/api/v1/beta/agent-data/:search', PaginatedCursorPost<AgentData>, {
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 AgentDataCreateParams {
217
- /**
218
- * Body param
219
- */
220
- data: { [key: string]: unknown };
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
- deployment_name: string;
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
- collection?: string;
241
- }
249
+ data: { [key: string]: unknown };
242
250
 
243
- export interface AgentDataUpdateParams {
244
251
  /**
245
252
  * Body param
246
253
  */
247
- data: { [key: string]: unknown };
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
- project_id?: string | null;
266
+ /**
267
+ * Body param
268
+ */
269
+ collection?: string;
264
270
  }
265
271
 
266
- export interface AgentDataAggregateParams extends PaginatedCursorPostParams {
272
+ export interface AgentDataSearchParams extends PaginatedCursorPostParams {
267
273
  /**
268
- * Body param: The agent deployment's name to aggregate data for
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 aggregate data for
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]: AgentDataAggregateParams.Filter } | null;
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: The fields to group by. If empty, the entire dataset is grouped on.
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
- group_by?: Array<string> | null;
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 AgentDataAggregateParams {
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 AgentDataDeleteByQueryParams {
340
+ export interface AgentDataAggregateParams extends PaginatedCursorPostParams {
347
341
  /**
348
- * Body param: The agent deployment's name to delete data for
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 delete from
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: Optional filters to select which items to delete
362
+ * Body param: Whether to count the number of items in each group
369
363
  */
370
- filter?: { [key: string]: AgentDataDeleteByQueryParams.Filter } | null;
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 AgentDataDeleteByQueryParams {
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 AgentDataGetParams {
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 search within
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 search within
437
+ * Body param: The logical agent data collection to delete from
420
438
  */
421
439
  collection?: string;
422
440
 
423
441
  /**
424
- * Body param: A filter object or expression that filters resources listed in the
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
- order_by?: string | null;
444
+ filter?: { [key: string]: AgentDataDeleteByQueryParams.Filter } | null;
445
445
  }
446
446
 
447
- export namespace AgentDataSearchParams {
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 AgentDataCreateParams as AgentDataCreateParams,
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
  }