@llamaindex/llama-cloud 2.4.0 → 2.8.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 (349) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts +5 -2
  9. package/client.d.mts.map +1 -1
  10. package/client.d.ts +5 -2
  11. package/client.d.ts.map +1 -1
  12. package/client.js +14 -0
  13. package/client.js.map +1 -1
  14. package/client.mjs +14 -0
  15. package/client.mjs.map +1 -1
  16. package/core/api-promise.d.mts.map +1 -1
  17. package/core/api-promise.d.ts.map +1 -1
  18. package/core/api-promise.mjs.map +1 -1
  19. package/core/error.mjs.map +1 -1
  20. package/core/pagination.d.mts.map +1 -1
  21. package/core/pagination.d.ts.map +1 -1
  22. package/core/pagination.mjs.map +1 -1
  23. package/core/resource.d.mts.map +1 -1
  24. package/core/resource.d.ts.map +1 -1
  25. package/core/uploads.d.mts.map +1 -1
  26. package/core/uploads.d.ts.map +1 -1
  27. package/core/uploads.mjs.map +1 -1
  28. package/error.d.mts +1 -0
  29. package/error.d.mts.map +1 -1
  30. package/error.d.ts +1 -0
  31. package/error.d.ts.map +1 -1
  32. package/error.mjs +1 -0
  33. package/error.mjs.map +1 -1
  34. package/index.d.mts.map +1 -1
  35. package/index.d.ts.map +1 -1
  36. package/index.mjs.map +1 -1
  37. package/internal/detect-platform.mjs.map +1 -1
  38. package/internal/headers.mjs.map +1 -1
  39. package/internal/parse.d.mts.map +1 -1
  40. package/internal/parse.d.ts.map +1 -1
  41. package/internal/parse.mjs.map +1 -1
  42. package/internal/qs/formats.d.mts.map +1 -1
  43. package/internal/qs/formats.d.ts.map +1 -1
  44. package/internal/qs/index.d.mts +2 -2
  45. package/internal/qs/index.d.mts.map +1 -1
  46. package/internal/qs/index.d.ts +2 -2
  47. package/internal/qs/index.d.ts.map +1 -1
  48. package/internal/qs/index.mjs.map +1 -1
  49. package/internal/qs/stringify.d.mts.map +1 -1
  50. package/internal/qs/stringify.d.ts.map +1 -1
  51. package/internal/qs/stringify.mjs.map +1 -1
  52. package/internal/qs/utils.d.mts.map +1 -1
  53. package/internal/qs/utils.d.ts.map +1 -1
  54. package/internal/qs/utils.mjs.map +1 -1
  55. package/internal/request-options.d.mts.map +1 -1
  56. package/internal/request-options.d.ts.map +1 -1
  57. package/internal/shims.d.mts +6 -0
  58. package/internal/shims.d.mts.map +1 -1
  59. package/internal/shims.d.ts +6 -0
  60. package/internal/shims.d.ts.map +1 -1
  61. package/internal/to-file.d.mts.map +1 -1
  62. package/internal/to-file.d.ts.map +1 -1
  63. package/internal/to-file.mjs.map +1 -1
  64. package/internal/types.d.mts +10 -10
  65. package/internal/types.d.mts.map +1 -1
  66. package/internal/types.d.ts +10 -10
  67. package/internal/types.d.ts.map +1 -1
  68. package/internal/uploads.d.mts.map +1 -1
  69. package/internal/uploads.d.ts.map +1 -1
  70. package/internal/uploads.mjs.map +1 -1
  71. package/internal/utils/base64.mjs.map +1 -1
  72. package/internal/utils/log.d.mts.map +1 -1
  73. package/internal/utils/log.d.ts.map +1 -1
  74. package/internal/utils/log.js +2 -0
  75. package/internal/utils/log.js.map +1 -1
  76. package/internal/utils/log.mjs +2 -0
  77. package/internal/utils/log.mjs.map +1 -1
  78. package/internal/utils/path.mjs.map +1 -1
  79. package/internal/utils/query.mjs.map +1 -1
  80. package/internal/utils/values.mjs.map +1 -1
  81. package/internal/utils.d.mts.map +1 -1
  82. package/internal/utils.d.ts.map +1 -1
  83. package/internal/utils.mjs.map +1 -1
  84. package/package.json +2 -2
  85. package/pagination.d.mts +1 -0
  86. package/pagination.d.mts.map +1 -1
  87. package/pagination.d.ts +1 -0
  88. package/pagination.d.ts.map +1 -1
  89. package/pagination.mjs +1 -0
  90. package/pagination.mjs.map +1 -1
  91. package/resource.d.mts +1 -0
  92. package/resource.d.mts.map +1 -1
  93. package/resource.d.ts +1 -0
  94. package/resource.d.ts.map +1 -1
  95. package/resource.mjs +1 -0
  96. package/resource.mjs.map +1 -1
  97. package/resources/batches.d.mts +492 -0
  98. package/resources/batches.d.mts.map +1 -0
  99. package/resources/batches.d.ts +492 -0
  100. package/resources/batches.d.ts.map +1 -0
  101. package/resources/batches.js +61 -0
  102. package/resources/batches.js.map +1 -0
  103. package/resources/batches.mjs +57 -0
  104. package/resources/batches.mjs.map +1 -0
  105. package/resources/beta/agent-data.d.mts +33 -27
  106. package/resources/beta/agent-data.d.mts.map +1 -1
  107. package/resources/beta/agent-data.d.ts +33 -27
  108. package/resources/beta/agent-data.d.ts.map +1 -1
  109. package/resources/beta/agent-data.js +27 -19
  110. package/resources/beta/agent-data.js.map +1 -1
  111. package/resources/beta/agent-data.mjs +27 -19
  112. package/resources/beta/agent-data.mjs.map +1 -1
  113. package/resources/beta/batch/batch.d.mts.map +1 -1
  114. package/resources/beta/batch/batch.d.ts.map +1 -1
  115. package/resources/beta/batch/batch.mjs.map +1 -1
  116. package/resources/beta/batch/index.d.mts.map +1 -1
  117. package/resources/beta/batch/index.d.ts.map +1 -1
  118. package/resources/beta/batch/index.mjs.map +1 -1
  119. package/resources/beta/batch/job-items.d.mts.map +1 -1
  120. package/resources/beta/batch/job-items.d.ts.map +1 -1
  121. package/resources/beta/batch/job-items.mjs.map +1 -1
  122. package/resources/beta/batch.d.mts.map +1 -1
  123. package/resources/beta/batch.d.ts.map +1 -1
  124. package/resources/beta/batch.mjs.map +1 -1
  125. package/resources/beta/beta.d.mts +14 -2
  126. package/resources/beta/beta.d.mts.map +1 -1
  127. package/resources/beta/beta.d.ts +14 -2
  128. package/resources/beta/beta.d.ts.map +1 -1
  129. package/resources/beta/beta.js +12 -0
  130. package/resources/beta/beta.js.map +1 -1
  131. package/resources/beta/beta.mjs +12 -0
  132. package/resources/beta/beta.mjs.map +1 -1
  133. package/resources/beta/chat.d.mts +357 -0
  134. package/resources/beta/chat.d.mts.map +1 -0
  135. package/resources/beta/chat.d.ts +357 -0
  136. package/resources/beta/chat.d.ts.map +1 -0
  137. package/resources/beta/chat.js +101 -0
  138. package/resources/beta/chat.js.map +1 -0
  139. package/resources/beta/chat.mjs +97 -0
  140. package/resources/beta/chat.mjs.map +1 -0
  141. package/resources/beta/directories/directories.d.mts +72 -24
  142. package/resources/beta/directories/directories.d.mts.map +1 -1
  143. package/resources/beta/directories/directories.d.ts +72 -24
  144. package/resources/beta/directories/directories.d.ts.map +1 -1
  145. package/resources/beta/directories/directories.js +0 -3
  146. package/resources/beta/directories/directories.js.map +1 -1
  147. package/resources/beta/directories/directories.mjs +0 -3
  148. package/resources/beta/directories/directories.mjs.map +1 -1
  149. package/resources/beta/directories/files.d.mts +65 -57
  150. package/resources/beta/directories/files.d.mts.map +1 -1
  151. package/resources/beta/directories/files.d.ts +65 -57
  152. package/resources/beta/directories/files.d.ts.map +1 -1
  153. package/resources/beta/directories/files.js +14 -27
  154. package/resources/beta/directories/files.js.map +1 -1
  155. package/resources/beta/directories/files.mjs +14 -27
  156. package/resources/beta/directories/files.mjs.map +1 -1
  157. package/resources/beta/directories/index.d.mts.map +1 -1
  158. package/resources/beta/directories/index.d.ts.map +1 -1
  159. package/resources/beta/directories/index.mjs.map +1 -1
  160. package/resources/beta/directories.d.mts.map +1 -1
  161. package/resources/beta/directories.d.ts.map +1 -1
  162. package/resources/beta/directories.mjs.map +1 -1
  163. package/resources/beta/index.d.mts +4 -1
  164. package/resources/beta/index.d.mts.map +1 -1
  165. package/resources/beta/index.d.ts +4 -1
  166. package/resources/beta/index.d.ts.map +1 -1
  167. package/resources/beta/index.js +7 -1
  168. package/resources/beta/index.js.map +1 -1
  169. package/resources/beta/index.mjs +3 -0
  170. package/resources/beta/index.mjs.map +1 -1
  171. package/resources/beta/indexes.d.mts +311 -0
  172. package/resources/beta/indexes.d.mts.map +1 -0
  173. package/resources/beta/indexes.d.ts +311 -0
  174. package/resources/beta/indexes.d.ts.map +1 -0
  175. package/resources/beta/indexes.js +86 -0
  176. package/resources/beta/indexes.js.map +1 -0
  177. package/resources/beta/indexes.mjs +82 -0
  178. package/resources/beta/indexes.mjs.map +1 -0
  179. package/resources/beta/retrieval.d.mts +368 -0
  180. package/resources/beta/retrieval.d.mts.map +1 -0
  181. package/resources/beta/retrieval.d.ts +368 -0
  182. package/resources/beta/retrieval.d.ts.map +1 -0
  183. package/resources/beta/retrieval.js +87 -0
  184. package/resources/beta/retrieval.js.map +1 -0
  185. package/resources/beta/retrieval.mjs +83 -0
  186. package/resources/beta/retrieval.mjs.map +1 -0
  187. package/resources/beta/sheets.d.mts +10 -17
  188. package/resources/beta/sheets.d.mts.map +1 -1
  189. package/resources/beta/sheets.d.ts +10 -17
  190. package/resources/beta/sheets.d.ts.map +1 -1
  191. package/resources/beta/sheets.js +10 -17
  192. package/resources/beta/sheets.js.map +1 -1
  193. package/resources/beta/sheets.mjs +10 -17
  194. package/resources/beta/sheets.mjs.map +1 -1
  195. package/resources/beta/split.d.mts.map +1 -1
  196. package/resources/beta/split.d.ts.map +1 -1
  197. package/resources/beta/split.mjs.map +1 -1
  198. package/resources/beta.d.mts.map +1 -1
  199. package/resources/beta.d.ts.map +1 -1
  200. package/resources/beta.mjs.map +1 -1
  201. package/resources/classifier/classifier.d.mts.map +1 -1
  202. package/resources/classifier/classifier.d.ts.map +1 -1
  203. package/resources/classifier/classifier.mjs.map +1 -1
  204. package/resources/classifier/index.d.mts.map +1 -1
  205. package/resources/classifier/index.d.ts.map +1 -1
  206. package/resources/classifier/index.mjs.map +1 -1
  207. package/resources/classifier/jobs.d.mts +5 -8
  208. package/resources/classifier/jobs.d.mts.map +1 -1
  209. package/resources/classifier/jobs.d.ts +5 -8
  210. package/resources/classifier/jobs.d.ts.map +1 -1
  211. package/resources/classifier/jobs.js +5 -8
  212. package/resources/classifier/jobs.js.map +1 -1
  213. package/resources/classifier/jobs.mjs +5 -8
  214. package/resources/classifier/jobs.mjs.map +1 -1
  215. package/resources/classifier.d.mts.map +1 -1
  216. package/resources/classifier.d.ts.map +1 -1
  217. package/resources/classifier.mjs.map +1 -1
  218. package/resources/classify.d.mts.map +1 -1
  219. package/resources/classify.d.ts.map +1 -1
  220. package/resources/classify.mjs.map +1 -1
  221. package/resources/configurations.d.mts +27 -10
  222. package/resources/configurations.d.mts.map +1 -1
  223. package/resources/configurations.d.ts +27 -10
  224. package/resources/configurations.d.ts.map +1 -1
  225. package/resources/configurations.js +2 -4
  226. package/resources/configurations.js.map +1 -1
  227. package/resources/configurations.mjs +2 -4
  228. package/resources/configurations.mjs.map +1 -1
  229. package/resources/data-sinks.d.mts.map +1 -1
  230. package/resources/data-sinks.d.ts.map +1 -1
  231. package/resources/data-sinks.mjs.map +1 -1
  232. package/resources/data-sources.d.mts.map +1 -1
  233. package/resources/data-sources.d.ts.map +1 -1
  234. package/resources/data-sources.mjs.map +1 -1
  235. package/resources/extract.d.mts +2 -9
  236. package/resources/extract.d.mts.map +1 -1
  237. package/resources/extract.d.ts +2 -9
  238. package/resources/extract.d.ts.map +1 -1
  239. package/resources/extract.mjs.map +1 -1
  240. package/resources/files.d.mts +19 -56
  241. package/resources/files.d.mts.map +1 -1
  242. package/resources/files.d.ts +19 -56
  243. package/resources/files.d.ts.map +1 -1
  244. package/resources/files.js +1 -8
  245. package/resources/files.js.map +1 -1
  246. package/resources/files.mjs +1 -8
  247. package/resources/files.mjs.map +1 -1
  248. package/resources/index.d.mts +2 -1
  249. package/resources/index.d.mts.map +1 -1
  250. package/resources/index.d.ts +2 -1
  251. package/resources/index.d.ts.map +1 -1
  252. package/resources/index.js +3 -1
  253. package/resources/index.js.map +1 -1
  254. package/resources/index.mjs +1 -0
  255. package/resources/index.mjs.map +1 -1
  256. package/resources/parsing.d.mts +31 -8
  257. package/resources/parsing.d.mts.map +1 -1
  258. package/resources/parsing.d.ts +31 -8
  259. package/resources/parsing.d.ts.map +1 -1
  260. package/resources/parsing.mjs.map +1 -1
  261. package/resources/pipelines/data-sources.d.mts +2 -2
  262. package/resources/pipelines/data-sources.d.mts.map +1 -1
  263. package/resources/pipelines/data-sources.d.ts +2 -2
  264. package/resources/pipelines/data-sources.d.ts.map +1 -1
  265. package/resources/pipelines/data-sources.js +2 -2
  266. package/resources/pipelines/data-sources.mjs +2 -2
  267. package/resources/pipelines/data-sources.mjs.map +1 -1
  268. package/resources/pipelines/documents.d.mts +2 -4
  269. package/resources/pipelines/documents.d.mts.map +1 -1
  270. package/resources/pipelines/documents.d.ts +2 -4
  271. package/resources/pipelines/documents.d.ts.map +1 -1
  272. package/resources/pipelines/documents.js +2 -4
  273. package/resources/pipelines/documents.js.map +1 -1
  274. package/resources/pipelines/documents.mjs +2 -4
  275. package/resources/pipelines/documents.mjs.map +1 -1
  276. package/resources/pipelines/files.d.mts.map +1 -1
  277. package/resources/pipelines/files.d.ts.map +1 -1
  278. package/resources/pipelines/files.mjs.map +1 -1
  279. package/resources/pipelines/images.d.mts.map +1 -1
  280. package/resources/pipelines/images.d.ts.map +1 -1
  281. package/resources/pipelines/images.mjs.map +1 -1
  282. package/resources/pipelines/index.d.mts.map +1 -1
  283. package/resources/pipelines/index.d.ts.map +1 -1
  284. package/resources/pipelines/index.mjs.map +1 -1
  285. package/resources/pipelines/metadata.d.mts.map +1 -1
  286. package/resources/pipelines/metadata.d.ts.map +1 -1
  287. package/resources/pipelines/metadata.mjs.map +1 -1
  288. package/resources/pipelines/pipelines.d.mts.map +1 -1
  289. package/resources/pipelines/pipelines.d.ts.map +1 -1
  290. package/resources/pipelines/pipelines.mjs.map +1 -1
  291. package/resources/pipelines/sync.d.mts.map +1 -1
  292. package/resources/pipelines/sync.d.ts.map +1 -1
  293. package/resources/pipelines/sync.mjs.map +1 -1
  294. package/resources/pipelines.d.mts.map +1 -1
  295. package/resources/pipelines.d.ts.map +1 -1
  296. package/resources/pipelines.mjs.map +1 -1
  297. package/resources/projects.d.mts +0 -1
  298. package/resources/projects.d.mts.map +1 -1
  299. package/resources/projects.d.ts +0 -1
  300. package/resources/projects.d.ts.map +1 -1
  301. package/resources/projects.mjs.map +1 -1
  302. package/resources/retrievers/index.d.mts.map +1 -1
  303. package/resources/retrievers/index.d.ts.map +1 -1
  304. package/resources/retrievers/index.mjs.map +1 -1
  305. package/resources/retrievers/retriever.d.mts.map +1 -1
  306. package/resources/retrievers/retriever.d.ts.map +1 -1
  307. package/resources/retrievers/retriever.mjs.map +1 -1
  308. package/resources/retrievers/retrievers.d.mts.map +1 -1
  309. package/resources/retrievers/retrievers.d.ts.map +1 -1
  310. package/resources/retrievers/retrievers.mjs.map +1 -1
  311. package/resources/retrievers.d.mts.map +1 -1
  312. package/resources/retrievers.d.ts.map +1 -1
  313. package/resources/retrievers.mjs.map +1 -1
  314. package/resources.d.mts.map +1 -1
  315. package/resources.d.ts.map +1 -1
  316. package/resources.mjs.map +1 -1
  317. package/src/client.ts +35 -2
  318. package/src/internal/types.ts +6 -8
  319. package/src/internal/utils/log.ts +2 -0
  320. package/src/resources/batches.ts +588 -0
  321. package/src/resources/beta/agent-data.ts +45 -36
  322. package/src/resources/beta/beta.ts +96 -2
  323. package/src/resources/beta/chat.ts +523 -0
  324. package/src/resources/beta/directories/directories.ts +77 -29
  325. package/src/resources/beta/directories/files.ts +73 -60
  326. package/src/resources/beta/index.ts +42 -1
  327. package/src/resources/beta/indexes.ts +421 -0
  328. package/src/resources/beta/retrieval.ts +483 -0
  329. package/src/resources/beta/sheets.ts +10 -17
  330. package/src/resources/classifier/jobs.ts +5 -8
  331. package/src/resources/configurations.ts +29 -92
  332. package/src/resources/extract.ts +2 -11
  333. package/src/resources/files.ts +22 -60
  334. package/src/resources/index.ts +10 -1
  335. package/src/resources/parsing.ts +37 -90
  336. package/src/resources/pipelines/data-sources.ts +2 -2
  337. package/src/resources/pipelines/documents.ts +2 -4
  338. package/src/resources/projects.ts +0 -2
  339. package/src/version.ts +1 -1
  340. package/uploads.d.mts +1 -0
  341. package/uploads.d.mts.map +1 -1
  342. package/uploads.d.ts +1 -0
  343. package/uploads.d.ts.map +1 -1
  344. package/uploads.mjs +1 -0
  345. package/uploads.mjs.map +1 -1
  346. package/version.d.mts +1 -1
  347. package/version.d.ts +1 -1
  348. package/version.js +1 -1
  349. package/version.mjs +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexes.d.mts","sourceRoot":"","sources":["../../src/resources/beta/indexes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,qBAAqB,EAAE,kCAA8B;AAEjG,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAK5F;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iCAAiC,EAAE,iBAAiB,CAAC;IAOpE;;;;;;;OAOG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IASnB;;;;;;;OAOG;IACH,GAAG,CACD,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;;;OAQG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OA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,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
@@ -0,0 +1,311 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { PagePromise, PaginatedCursor, type PaginatedCursorParams } from "../../core/pagination.js";
4
+ import { RequestOptions } from "../../internal/request-options.js";
5
+ export declare class Indexes extends APIResource {
6
+ /**
7
+ * Create a searchable index over a source directory.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const index = await client.beta.indexes.create({
12
+ * source_directory_id: 'dir-abc123',
13
+ * });
14
+ * ```
15
+ */
16
+ create(params: IndexCreateParams, options?: RequestOptions): APIPromise<IndexCreateResponse>;
17
+ /**
18
+ * List indexes for the current project.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * // Automatically fetches more pages as needed.
23
+ * for await (const indexListResponse of client.beta.indexes.list()) {
24
+ * // ...
25
+ * }
26
+ * ```
27
+ */
28
+ list(query?: IndexListParams | null | undefined, options?: RequestOptions): PagePromise<IndexListResponsesPaginatedCursor, IndexListResponse>;
29
+ /**
30
+ * Delete an index.
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * await client.beta.indexes.delete('index_id');
35
+ * ```
36
+ */
37
+ delete(indexID: string, params?: IndexDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
38
+ /**
39
+ * Get an index by ID.
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * const index = await client.beta.indexes.get('index_id');
44
+ * ```
45
+ */
46
+ get(indexID: string, query?: IndexGetParams | null | undefined, options?: RequestOptions): APIPromise<IndexGetResponse>;
47
+ /**
48
+ * Trigger a sync and export for an existing index, re-parsing changed files and
49
+ * exporting updated chunks.
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * const response = await client.beta.indexes.sync('index_id');
54
+ * ```
55
+ */
56
+ sync(indexID: string, params?: IndexSyncParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
57
+ }
58
+ export type IndexListResponsesPaginatedCursor = PaginatedCursor<IndexListResponse>;
59
+ /**
60
+ * A searchable index over a directory of documents.
61
+ */
62
+ export interface IndexCreateResponse {
63
+ /**
64
+ * Unique identifier
65
+ */
66
+ id: string;
67
+ /**
68
+ * ID of the export configuration.
69
+ */
70
+ export_config_id: string;
71
+ /**
72
+ * Index name.
73
+ */
74
+ name: string;
75
+ /**
76
+ * Project this index belongs to.
77
+ */
78
+ project_id: string;
79
+ /**
80
+ * ID of the source directory.
81
+ */
82
+ source_directory_id: string;
83
+ /**
84
+ * ID of the sync configuration.
85
+ */
86
+ sync_config_id: string;
87
+ /**
88
+ * Creation datetime
89
+ */
90
+ created_at?: string | null;
91
+ /**
92
+ * Index description.
93
+ */
94
+ description?: string | null;
95
+ /**
96
+ * Last export time.
97
+ */
98
+ last_exported_at?: string | null;
99
+ /**
100
+ * Last sync time.
101
+ */
102
+ last_synced_at?: string | null;
103
+ /**
104
+ * Build state and diagnostic info.
105
+ */
106
+ metadata?: {
107
+ [key: string]: unknown;
108
+ };
109
+ /**
110
+ * Update datetime
111
+ */
112
+ updated_at?: string | null;
113
+ }
114
+ /**
115
+ * A searchable index over a directory of documents.
116
+ */
117
+ export interface IndexListResponse {
118
+ /**
119
+ * Unique identifier
120
+ */
121
+ id: string;
122
+ /**
123
+ * ID of the export configuration.
124
+ */
125
+ export_config_id: string;
126
+ /**
127
+ * Index name.
128
+ */
129
+ name: string;
130
+ /**
131
+ * Project this index belongs to.
132
+ */
133
+ project_id: string;
134
+ /**
135
+ * ID of the source directory.
136
+ */
137
+ source_directory_id: string;
138
+ /**
139
+ * ID of the sync configuration.
140
+ */
141
+ sync_config_id: string;
142
+ /**
143
+ * Creation datetime
144
+ */
145
+ created_at?: string | null;
146
+ /**
147
+ * Index description.
148
+ */
149
+ description?: string | null;
150
+ /**
151
+ * Last export time.
152
+ */
153
+ last_exported_at?: string | null;
154
+ /**
155
+ * Last sync time.
156
+ */
157
+ last_synced_at?: string | null;
158
+ /**
159
+ * Build state and diagnostic info.
160
+ */
161
+ metadata?: {
162
+ [key: string]: unknown;
163
+ };
164
+ /**
165
+ * Update datetime
166
+ */
167
+ updated_at?: string | null;
168
+ }
169
+ /**
170
+ * A searchable index over a directory of documents.
171
+ */
172
+ export interface IndexGetResponse {
173
+ /**
174
+ * Unique identifier
175
+ */
176
+ id: string;
177
+ /**
178
+ * ID of the export configuration.
179
+ */
180
+ export_config_id: string;
181
+ /**
182
+ * Index name.
183
+ */
184
+ name: string;
185
+ /**
186
+ * Project this index belongs to.
187
+ */
188
+ project_id: string;
189
+ /**
190
+ * ID of the source directory.
191
+ */
192
+ source_directory_id: string;
193
+ /**
194
+ * ID of the sync configuration.
195
+ */
196
+ sync_config_id: string;
197
+ /**
198
+ * Creation datetime
199
+ */
200
+ created_at?: string | null;
201
+ /**
202
+ * Index description.
203
+ */
204
+ description?: string | null;
205
+ /**
206
+ * Last export time.
207
+ */
208
+ last_exported_at?: string | null;
209
+ /**
210
+ * Last sync time.
211
+ */
212
+ last_synced_at?: string | null;
213
+ /**
214
+ * Build state and diagnostic info.
215
+ */
216
+ metadata?: {
217
+ [key: string]: unknown;
218
+ };
219
+ /**
220
+ * Update datetime
221
+ */
222
+ updated_at?: string | null;
223
+ }
224
+ export type IndexSyncResponse = unknown;
225
+ export interface IndexCreateParams {
226
+ /**
227
+ * Body param: ID of the source directory containing your documents.
228
+ */
229
+ source_directory_id: string;
230
+ /**
231
+ * Query param
232
+ */
233
+ organization_id?: string | null;
234
+ /**
235
+ * Query param
236
+ */
237
+ project_id?: string | null;
238
+ /**
239
+ * Body param: Optional description of the index.
240
+ */
241
+ description?: string | null;
242
+ /**
243
+ * Body param: Optional display name for the index. If omitted, the index is named
244
+ * after the source directory.
245
+ */
246
+ name?: string | null;
247
+ /**
248
+ * Body param: Product configurations for syncing. Omit to use a default parse
249
+ * configuration. Include an explicit entry per product type (e.g. parse, extract)
250
+ * to override the default.
251
+ */
252
+ products?: Array<IndexCreateParams.Product> | null;
253
+ /**
254
+ * Body param: Attachment kinds to store alongside parsed output. Each entry must
255
+ * be one of: screenshots, items. For example, ['screenshots'] renders and stores
256
+ * per-page screenshots; ['items'] stores structured items with bounding boxes.
257
+ * Omit or pass an empty list to skip attachments.
258
+ */
259
+ store_attachments?: Array<string> | null;
260
+ /**
261
+ * Body param: How often to re-run the sync. One of: manual, daily,
262
+ * on_source_change. Defaults to manual.
263
+ */
264
+ sync_frequency?: string;
265
+ /**
266
+ * Body param: Vector export destination for the index. 'DEFAULT' exports to the
267
+ * managed vector DB destination resolved from configuration. 'DISABLED' skips
268
+ * vector export — the export destination falls back to 'Download'.
269
+ */
270
+ vector_target?: 'DEFAULT' | 'DISABLED';
271
+ }
272
+ export declare namespace IndexCreateParams {
273
+ /**
274
+ * A product configuration to include in an index's sync.
275
+ *
276
+ * Structurally mirrors `directory_sync.SyncProductEntryRequest` but is a distinct
277
+ * class so the Index API surface stays SDK-gen-isolated from directory-sync
278
+ * internals. Translation between the two happens in `index/api_utils.py`.
279
+ */
280
+ interface Product {
281
+ /**
282
+ * ID of the product configuration.
283
+ */
284
+ product_config_id: string;
285
+ /**
286
+ * Product type. One of: parse, extract.
287
+ */
288
+ product_type: string;
289
+ }
290
+ }
291
+ export interface IndexListParams extends PaginatedCursorParams {
292
+ organization_id?: string | null;
293
+ project_id?: string | null;
294
+ source_directory_id?: string | null;
295
+ }
296
+ export interface IndexDeleteParams {
297
+ organization_id?: string | null;
298
+ project_id?: string | null;
299
+ }
300
+ export interface IndexGetParams {
301
+ organization_id?: string | null;
302
+ project_id?: string | null;
303
+ }
304
+ export interface IndexSyncParams {
305
+ organization_id?: string | null;
306
+ project_id?: string | null;
307
+ }
308
+ export declare namespace Indexes {
309
+ export { type IndexCreateResponse as IndexCreateResponse, type IndexListResponse as IndexListResponse, type IndexGetResponse as IndexGetResponse, type IndexSyncResponse as IndexSyncResponse, type IndexListResponsesPaginatedCursor as IndexListResponsesPaginatedCursor, type IndexCreateParams as IndexCreateParams, type IndexListParams as IndexListParams, type IndexDeleteParams as IndexDeleteParams, type IndexGetParams as IndexGetParams, type IndexSyncParams as IndexSyncParams, };
310
+ }
311
+ //# sourceMappingURL=indexes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexes.d.ts","sourceRoot":"","sources":["../../src/resources/beta/indexes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,qBAAqB,EAAE,iCAA8B;AAEjG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAK5F;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iCAAiC,EAAE,iBAAiB,CAAC;IAOpE;;;;;;;OAOG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IASnB;;;;;;;OAOG;IACH,GAAG,C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,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,eAAe;IAC9B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Indexes = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const pagination_1 = require("../../core/pagination.js");
7
+ const headers_1 = require("../../internal/headers.js");
8
+ const path_1 = require("../../internal/utils/path.js");
9
+ class Indexes extends resource_1.APIResource {
10
+ /**
11
+ * Create a searchable index over a source directory.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const index = await client.beta.indexes.create({
16
+ * source_directory_id: 'dir-abc123',
17
+ * });
18
+ * ```
19
+ */
20
+ create(params, options) {
21
+ const { organization_id, project_id, ...body } = params;
22
+ return this._client.post('/api/v1/indexes', { query: { organization_id, project_id }, body, ...options });
23
+ }
24
+ /**
25
+ * List indexes for the current project.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * // Automatically fetches more pages as needed.
30
+ * for await (const indexListResponse of client.beta.indexes.list()) {
31
+ * // ...
32
+ * }
33
+ * ```
34
+ */
35
+ list(query = {}, options) {
36
+ return this._client.getAPIList('/api/v1/indexes', (pagination_1.PaginatedCursor), {
37
+ query,
38
+ ...options,
39
+ });
40
+ }
41
+ /**
42
+ * Delete an index.
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * await client.beta.indexes.delete('index_id');
47
+ * ```
48
+ */
49
+ delete(indexID, params = {}, options) {
50
+ const { organization_id, project_id } = params ?? {};
51
+ return this._client.delete((0, path_1.path) `/api/v1/indexes/${indexID}`, {
52
+ query: { organization_id, project_id },
53
+ ...options,
54
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
55
+ });
56
+ }
57
+ /**
58
+ * Get an index by ID.
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * const index = await client.beta.indexes.get('index_id');
63
+ * ```
64
+ */
65
+ get(indexID, query = {}, options) {
66
+ return this._client.get((0, path_1.path) `/api/v1/indexes/${indexID}`, { query, ...options });
67
+ }
68
+ /**
69
+ * Trigger a sync and export for an existing index, re-parsing changed files and
70
+ * exporting updated chunks.
71
+ *
72
+ * @example
73
+ * ```ts
74
+ * const response = await client.beta.indexes.sync('index_id');
75
+ * ```
76
+ */
77
+ sync(indexID, params = {}, options) {
78
+ const { organization_id, project_id } = params ?? {};
79
+ return this._client.post((0, path_1.path) `/api/v1/indexes/${indexID}/sync`, {
80
+ query: { organization_id, project_id },
81
+ ...options,
82
+ });
83
+ }
84
+ }
85
+ exports.Indexes = Indexes;
86
+ //# sourceMappingURL=indexes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexes.js","sourceRoot":"","sources":["../../src/resources/beta/indexes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAAiG;AACjG,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;OASG;IACH,MAAM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ExB,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,mBAAmB,OAAO,OAAO,EAAE;YAC9D,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE;YACtC,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA9FD,0BA8FC"}
@@ -0,0 +1,82 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { PaginatedCursor } from "../../core/pagination.mjs";
4
+ import { buildHeaders } from "../../internal/headers.mjs";
5
+ import { path } from "../../internal/utils/path.mjs";
6
+ export class Indexes extends APIResource {
7
+ /**
8
+ * Create a searchable index over a source directory.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const index = await client.beta.indexes.create({
13
+ * source_directory_id: 'dir-abc123',
14
+ * });
15
+ * ```
16
+ */
17
+ create(params, options) {
18
+ const { organization_id, project_id, ...body } = params;
19
+ return this._client.post('/api/v1/indexes', { query: { organization_id, project_id }, body, ...options });
20
+ }
21
+ /**
22
+ * List indexes for the current project.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * // Automatically fetches more pages as needed.
27
+ * for await (const indexListResponse of client.beta.indexes.list()) {
28
+ * // ...
29
+ * }
30
+ * ```
31
+ */
32
+ list(query = {}, options) {
33
+ return this._client.getAPIList('/api/v1/indexes', (PaginatedCursor), {
34
+ query,
35
+ ...options,
36
+ });
37
+ }
38
+ /**
39
+ * Delete an index.
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * await client.beta.indexes.delete('index_id');
44
+ * ```
45
+ */
46
+ delete(indexID, params = {}, options) {
47
+ const { organization_id, project_id } = params ?? {};
48
+ return this._client.delete(path `/api/v1/indexes/${indexID}`, {
49
+ query: { organization_id, project_id },
50
+ ...options,
51
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
52
+ });
53
+ }
54
+ /**
55
+ * Get an index by ID.
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * const index = await client.beta.indexes.get('index_id');
60
+ * ```
61
+ */
62
+ get(indexID, query = {}, options) {
63
+ return this._client.get(path `/api/v1/indexes/${indexID}`, { query, ...options });
64
+ }
65
+ /**
66
+ * Trigger a sync and export for an existing index, re-parsing changed files and
67
+ * exporting updated chunks.
68
+ *
69
+ * @example
70
+ * ```ts
71
+ * const response = await client.beta.indexes.sync('index_id');
72
+ * ```
73
+ */
74
+ sync(indexID, params = {}, options) {
75
+ const { organization_id, project_id } = params ?? {};
76
+ return this._client.post(path `/api/v1/indexes/${indexID}/sync`, {
77
+ query: { organization_id, project_id },
78
+ ...options,
79
+ });
80
+ }
81
+ }
82
+ //# sourceMappingURL=indexes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexes.mjs","sourceRoot":"","sources":["../../src/resources/beta/indexes.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAe,eAAe,EAA8B,kCAA8B;AACjG,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAyB,EAAE,OAAwB;QACxD,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5G,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,C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