casedev 0.68.0 → 0.69.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 (720) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/client.d.mts +6 -15
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -15
  5. package/client.d.ts.map +1 -1
  6. package/client.js +15 -16
  7. package/client.js.map +1 -1
  8. package/client.mjs +15 -16
  9. package/client.mjs.map +1 -1
  10. package/internal/parse.d.mts.map +1 -1
  11. package/internal/parse.d.ts.map +1 -1
  12. package/internal/parse.js +0 -10
  13. package/internal/parse.js.map +1 -1
  14. package/internal/parse.mjs +0 -10
  15. package/internal/parse.mjs.map +1 -1
  16. package/internal/request-options.d.mts +0 -2
  17. package/internal/request-options.d.mts.map +1 -1
  18. package/internal/request-options.d.ts +0 -2
  19. package/internal/request-options.d.ts.map +1 -1
  20. package/internal/request-options.js.map +1 -1
  21. package/internal/request-options.mjs.map +1 -1
  22. package/internal/tslib.js +17 -17
  23. package/package.json +9 -25
  24. package/resources/connectors/connectors.d.mts +10 -0
  25. package/resources/connectors/connectors.d.mts.map +1 -0
  26. package/resources/connectors/connectors.d.ts +10 -0
  27. package/resources/connectors/connectors.d.ts.map +1 -0
  28. package/resources/{format/format.js → connectors/connectors.js} +5 -5
  29. package/resources/connectors/connectors.js.map +1 -0
  30. package/resources/{agent/agent.mjs → connectors/connectors.mjs} +3 -3
  31. package/resources/connectors/connectors.mjs.map +1 -0
  32. package/resources/connectors/index.d.mts +3 -0
  33. package/resources/connectors/index.d.mts.map +1 -0
  34. package/resources/connectors/index.d.ts +3 -0
  35. package/resources/connectors/index.d.ts.map +1 -0
  36. package/resources/{database → connectors}/index.js +3 -3
  37. package/resources/connectors/index.js.map +1 -0
  38. package/resources/connectors/index.mjs +4 -0
  39. package/resources/connectors/index.mjs.map +1 -0
  40. package/resources/connectors/v1/connections.d.mts +109 -0
  41. package/resources/connectors/v1/connections.d.mts.map +1 -0
  42. package/resources/connectors/v1/connections.d.ts +109 -0
  43. package/resources/connectors/v1/connections.d.ts.map +1 -0
  44. package/resources/connectors/v1/connections.js +58 -0
  45. package/resources/connectors/v1/connections.js.map +1 -0
  46. package/resources/connectors/v1/connections.mjs +54 -0
  47. package/resources/connectors/v1/connections.mjs.map +1 -0
  48. package/resources/connectors/v1/index.d.mts +5 -0
  49. package/resources/connectors/v1/index.d.mts.map +1 -0
  50. package/resources/connectors/v1/index.d.ts +5 -0
  51. package/resources/connectors/v1/index.d.ts.map +1 -0
  52. package/resources/connectors/v1/index.js +13 -0
  53. package/resources/connectors/v1/index.js.map +1 -0
  54. package/resources/connectors/v1/index.mjs +6 -0
  55. package/resources/connectors/v1/index.mjs.map +1 -0
  56. package/resources/connectors/v1/installations/index.d.mts +3 -0
  57. package/resources/connectors/v1/installations/index.d.mts.map +1 -0
  58. package/resources/connectors/v1/installations/index.d.ts +3 -0
  59. package/resources/connectors/v1/installations/index.d.ts.map +1 -0
  60. package/resources/connectors/v1/installations/index.js +9 -0
  61. package/resources/connectors/v1/installations/index.js.map +1 -0
  62. package/resources/connectors/v1/installations/index.mjs +4 -0
  63. package/resources/connectors/v1/installations/index.mjs.map +1 -0
  64. package/resources/connectors/v1/installations/installations.d.mts +40 -0
  65. package/resources/connectors/v1/installations/installations.d.mts.map +1 -0
  66. package/resources/connectors/v1/installations/installations.d.ts +40 -0
  67. package/resources/connectors/v1/installations/installations.d.ts.map +1 -0
  68. package/resources/connectors/v1/installations/installations.js +43 -0
  69. package/resources/connectors/v1/installations/installations.js.map +1 -0
  70. package/resources/connectors/v1/installations/installations.mjs +38 -0
  71. package/resources/connectors/v1/installations/installations.mjs.map +1 -0
  72. package/resources/connectors/v1/installations/vaults.d.mts +56 -0
  73. package/resources/connectors/v1/installations/vaults.d.mts.map +1 -0
  74. package/resources/connectors/v1/installations/vaults.d.ts +56 -0
  75. package/resources/connectors/v1/installations/vaults.d.ts.map +1 -0
  76. package/resources/connectors/v1/installations/vaults.js +47 -0
  77. package/resources/connectors/v1/installations/vaults.js.map +1 -0
  78. package/resources/connectors/v1/installations/vaults.mjs +43 -0
  79. package/resources/connectors/v1/installations/vaults.mjs.map +1 -0
  80. package/resources/connectors/v1/installations.d.mts +2 -0
  81. package/resources/connectors/v1/installations.d.mts.map +1 -0
  82. package/resources/connectors/v1/installations.d.ts +2 -0
  83. package/resources/connectors/v1/installations.d.ts.map +1 -0
  84. package/resources/{database.js → connectors/v1/installations.js} +3 -3
  85. package/resources/connectors/v1/installations.js.map +1 -0
  86. package/resources/{database.mjs → connectors/v1/installations.mjs} +2 -2
  87. package/resources/connectors/v1/installations.mjs.map +1 -0
  88. package/resources/connectors/v1/links.d.mts +57 -0
  89. package/resources/connectors/v1/links.d.mts.map +1 -0
  90. package/resources/connectors/v1/links.d.ts +57 -0
  91. package/resources/connectors/v1/links.d.ts.map +1 -0
  92. package/resources/connectors/v1/links.js +69 -0
  93. package/resources/connectors/v1/links.js.map +1 -0
  94. package/resources/connectors/v1/links.mjs +65 -0
  95. package/resources/connectors/v1/links.mjs.map +1 -0
  96. package/resources/connectors/v1/v1.d.mts +100 -0
  97. package/resources/connectors/v1/v1.d.mts.map +1 -0
  98. package/resources/connectors/v1/v1.d.ts +100 -0
  99. package/resources/connectors/v1/v1.d.ts.map +1 -0
  100. package/resources/connectors/v1/v1.js +47 -0
  101. package/resources/connectors/v1/v1.js.map +1 -0
  102. package/resources/connectors/v1/v1.mjs +42 -0
  103. package/resources/connectors/v1/v1.mjs.map +1 -0
  104. package/resources/connectors/v1.d.mts.map +1 -0
  105. package/resources/connectors/v1.d.ts.map +1 -0
  106. package/resources/connectors/v1.js.map +1 -0
  107. package/resources/connectors/v1.mjs.map +1 -0
  108. package/resources/connectors.d.mts +2 -0
  109. package/resources/connectors.d.mts.map +1 -0
  110. package/resources/connectors.d.ts +2 -0
  111. package/resources/connectors.d.ts.map +1 -0
  112. package/resources/{agent.js → connectors.js} +2 -2
  113. package/resources/connectors.js.map +1 -0
  114. package/resources/{agent.mjs → connectors.mjs} +2 -2
  115. package/resources/connectors.mjs.map +1 -0
  116. package/resources/index.d.mts +2 -5
  117. package/resources/index.d.mts.map +1 -1
  118. package/resources/index.d.ts +2 -5
  119. package/resources/index.d.ts.map +1 -1
  120. package/resources/index.js +5 -11
  121. package/resources/index.js.map +1 -1
  122. package/resources/index.mjs +2 -5
  123. package/resources/index.mjs.map +1 -1
  124. package/resources/legal/index.d.mts +1 -1
  125. package/resources/legal/index.d.mts.map +1 -1
  126. package/resources/legal/index.d.ts +1 -1
  127. package/resources/legal/index.d.ts.map +1 -1
  128. package/resources/legal/index.js.map +1 -1
  129. package/resources/legal/index.mjs.map +1 -1
  130. package/resources/legal/legal.d.mts +2 -2
  131. package/resources/legal/legal.d.mts.map +1 -1
  132. package/resources/legal/legal.d.ts +2 -2
  133. package/resources/legal/legal.d.ts.map +1 -1
  134. package/resources/legal/legal.js.map +1 -1
  135. package/resources/legal/legal.mjs.map +1 -1
  136. package/resources/legal/v1.d.mts +3 -80
  137. package/resources/legal/v1.d.mts.map +1 -1
  138. package/resources/legal/v1.d.ts +3 -80
  139. package/resources/legal/v1.d.ts.map +1 -1
  140. package/resources/legal/v1.js +0 -8
  141. package/resources/legal/v1.js.map +1 -1
  142. package/resources/legal/v1.mjs +0 -8
  143. package/resources/legal/v1.mjs.map +1 -1
  144. package/resources/linc/index.d.mts +3 -0
  145. package/resources/linc/index.d.mts.map +1 -0
  146. package/resources/linc/index.d.ts +3 -0
  147. package/resources/linc/index.d.ts.map +1 -0
  148. package/resources/{mail → linc}/index.js +3 -3
  149. package/resources/{mail → linc}/index.js.map +1 -1
  150. package/resources/{mail → linc}/index.mjs +1 -1
  151. package/resources/{mail → linc}/index.mjs.map +1 -1
  152. package/resources/{mail/mail.d.mts → linc/linc.d.mts} +3 -3
  153. package/resources/{mail/mail.d.mts.map → linc/linc.d.mts.map} +1 -1
  154. package/resources/{mail/mail.d.ts → linc/linc.d.ts} +3 -3
  155. package/resources/{mail/mail.d.ts.map → linc/linc.d.ts.map} +1 -1
  156. package/resources/{mail/mail.js → linc/linc.js} +5 -5
  157. package/resources/{mail/mail.js.map → linc/linc.js.map} +1 -1
  158. package/resources/{mail/mail.mjs → linc/linc.mjs} +3 -3
  159. package/resources/{mail/mail.mjs.map → linc/linc.mjs.map} +1 -1
  160. package/resources/linc/v1/index.d.mts +3 -0
  161. package/resources/linc/v1/index.d.mts.map +1 -0
  162. package/resources/linc/v1/index.d.ts +3 -0
  163. package/resources/linc/v1/index.d.ts.map +1 -0
  164. package/resources/{mail → linc}/v1/index.js +3 -3
  165. package/resources/linc/v1/index.js.map +1 -0
  166. package/resources/{database → linc}/v1/index.mjs +1 -1
  167. package/resources/linc/v1/index.mjs.map +1 -0
  168. package/resources/linc/v1/sessions.d.mts +169 -0
  169. package/resources/linc/v1/sessions.d.mts.map +1 -0
  170. package/resources/linc/v1/sessions.d.ts +169 -0
  171. package/resources/linc/v1/sessions.d.ts.map +1 -0
  172. package/resources/linc/v1/sessions.js +103 -0
  173. package/resources/linc/v1/sessions.js.map +1 -0
  174. package/resources/linc/v1/sessions.mjs +99 -0
  175. package/resources/linc/v1/sessions.mjs.map +1 -0
  176. package/resources/linc/v1/v1.d.mts +10 -0
  177. package/resources/linc/v1/v1.d.mts.map +1 -0
  178. package/resources/linc/v1/v1.d.ts +10 -0
  179. package/resources/linc/v1/v1.d.ts.map +1 -0
  180. package/resources/{mail → linc}/v1/v1.js +4 -4
  181. package/resources/linc/v1/v1.js.map +1 -0
  182. package/resources/{mail → linc}/v1/v1.mjs +4 -4
  183. package/resources/linc/v1/v1.mjs.map +1 -0
  184. package/resources/{mail → linc}/v1.d.mts.map +1 -1
  185. package/resources/{mail → linc}/v1.d.ts.map +1 -1
  186. package/resources/linc/v1.js.map +1 -0
  187. package/resources/linc/v1.mjs.map +1 -0
  188. package/resources/linc.d.mts +2 -0
  189. package/resources/linc.d.mts.map +1 -0
  190. package/resources/linc.d.ts +2 -0
  191. package/resources/linc.d.ts.map +1 -0
  192. package/resources/{mail.js → linc.js} +2 -2
  193. package/resources/linc.js.map +1 -0
  194. package/resources/{mail.mjs → linc.mjs} +2 -2
  195. package/resources/linc.mjs.map +1 -0
  196. package/resources/llm/v1/chat.d.mts +3 -2
  197. package/resources/llm/v1/chat.d.mts.map +1 -1
  198. package/resources/llm/v1/chat.d.ts +3 -2
  199. package/resources/llm/v1/chat.d.ts.map +1 -1
  200. package/resources/matters/v1/index.d.mts +1 -1
  201. package/resources/matters/v1/index.d.mts.map +1 -1
  202. package/resources/matters/v1/index.d.ts +1 -1
  203. package/resources/matters/v1/index.d.ts.map +1 -1
  204. package/resources/matters/v1/index.js.map +1 -1
  205. package/resources/matters/v1/index.mjs.map +1 -1
  206. package/resources/matters/v1/v1.d.mts +2 -2
  207. package/resources/matters/v1/v1.d.mts.map +1 -1
  208. package/resources/matters/v1/v1.d.ts +2 -2
  209. package/resources/matters/v1/v1.d.ts.map +1 -1
  210. package/resources/matters/v1/v1.js.map +1 -1
  211. package/resources/matters/v1/v1.mjs.map +1 -1
  212. package/resources/matters/v1/work-items.d.mts +3 -15
  213. package/resources/matters/v1/work-items.d.mts.map +1 -1
  214. package/resources/matters/v1/work-items.d.ts +3 -15
  215. package/resources/matters/v1/work-items.d.ts.map +1 -1
  216. package/resources/matters/v1/work-items.js +1 -12
  217. package/resources/matters/v1/work-items.js.map +1 -1
  218. package/resources/matters/v1/work-items.mjs +1 -12
  219. package/resources/matters/v1/work-items.mjs.map +1 -1
  220. package/resources/media/v1/clips.d.mts +3 -0
  221. package/resources/media/v1/clips.d.mts.map +1 -1
  222. package/resources/media/v1/clips.d.ts +3 -0
  223. package/resources/media/v1/clips.d.ts.map +1 -1
  224. package/resources/media/v1/clips.js +3 -0
  225. package/resources/media/v1/clips.js.map +1 -1
  226. package/resources/media/v1/clips.mjs +3 -0
  227. package/resources/media/v1/clips.mjs.map +1 -1
  228. package/resources/media/v1/transcripts/index.d.mts +1 -0
  229. package/resources/media/v1/transcripts/index.d.mts.map +1 -1
  230. package/resources/media/v1/transcripts/index.d.ts +1 -0
  231. package/resources/media/v1/transcripts/index.d.ts.map +1 -1
  232. package/resources/media/v1/transcripts/index.js +3 -1
  233. package/resources/media/v1/transcripts/index.js.map +1 -1
  234. package/resources/media/v1/transcripts/index.mjs +1 -0
  235. package/resources/media/v1/transcripts/index.mjs.map +1 -1
  236. package/resources/media/v1/transcripts/retrieve.d.mts +70 -0
  237. package/resources/media/v1/transcripts/retrieve.d.mts.map +1 -0
  238. package/resources/media/v1/transcripts/retrieve.d.ts +70 -0
  239. package/resources/media/v1/transcripts/retrieve.d.ts.map +1 -0
  240. package/resources/media/v1/transcripts/retrieve.js +21 -0
  241. package/resources/media/v1/transcripts/retrieve.js.map +1 -0
  242. package/resources/media/v1/transcripts/retrieve.mjs +17 -0
  243. package/resources/media/v1/transcripts/retrieve.mjs.map +1 -0
  244. package/resources/media/v1/transcripts/search.d.mts +3 -0
  245. package/resources/media/v1/transcripts/search.d.mts.map +1 -1
  246. package/resources/media/v1/transcripts/search.d.ts +3 -0
  247. package/resources/media/v1/transcripts/search.d.ts.map +1 -1
  248. package/resources/media/v1/transcripts/search.js +3 -0
  249. package/resources/media/v1/transcripts/search.js.map +1 -1
  250. package/resources/media/v1/transcripts/search.mjs +3 -0
  251. package/resources/media/v1/transcripts/search.mjs.map +1 -1
  252. package/resources/media/v1/transcripts/transcripts.d.mts +4 -0
  253. package/resources/media/v1/transcripts/transcripts.d.mts.map +1 -1
  254. package/resources/media/v1/transcripts/transcripts.d.ts +4 -0
  255. package/resources/media/v1/transcripts/transcripts.d.ts.map +1 -1
  256. package/resources/media/v1/transcripts/transcripts.js +4 -0
  257. package/resources/media/v1/transcripts/transcripts.js.map +1 -1
  258. package/resources/media/v1/transcripts/transcripts.mjs +4 -0
  259. package/resources/media/v1/transcripts/transcripts.mjs.map +1 -1
  260. package/resources/ocr/v1.d.mts +4 -4
  261. package/resources/ocr/v1.d.ts +4 -4
  262. package/resources/ocr/v1.js +2 -2
  263. package/resources/ocr/v1.mjs +2 -2
  264. package/resources/search/index.d.mts +1 -1
  265. package/resources/search/index.d.mts.map +1 -1
  266. package/resources/search/index.d.ts +1 -1
  267. package/resources/search/index.d.ts.map +1 -1
  268. package/resources/search/index.js.map +1 -1
  269. package/resources/search/index.mjs.map +1 -1
  270. package/resources/search/search.d.mts +2 -2
  271. package/resources/search/search.d.mts.map +1 -1
  272. package/resources/search/search.d.ts +2 -2
  273. package/resources/search/search.d.ts.map +1 -1
  274. package/resources/search/search.js.map +1 -1
  275. package/resources/search/search.mjs.map +1 -1
  276. package/resources/search/v1.d.mts +2 -129
  277. package/resources/search/v1.d.mts.map +1 -1
  278. package/resources/search/v1.d.ts +2 -129
  279. package/resources/search/v1.d.ts.map +1 -1
  280. package/resources/search/v1.js +1 -19
  281. package/resources/search/v1.js.map +1 -1
  282. package/resources/search/v1.mjs +1 -19
  283. package/resources/search/v1.mjs.map +1 -1
  284. package/resources/translate/index.d.mts +1 -1
  285. package/resources/translate/index.d.mts.map +1 -1
  286. package/resources/translate/index.d.ts +1 -1
  287. package/resources/translate/index.d.ts.map +1 -1
  288. package/resources/translate/index.js.map +1 -1
  289. package/resources/translate/index.mjs.map +1 -1
  290. package/resources/translate/translate.d.mts +2 -2
  291. package/resources/translate/translate.d.mts.map +1 -1
  292. package/resources/translate/translate.d.ts +2 -2
  293. package/resources/translate/translate.d.ts.map +1 -1
  294. package/resources/translate/translate.js.map +1 -1
  295. package/resources/translate/translate.mjs.map +1 -1
  296. package/resources/translate/v1.d.mts +37 -1
  297. package/resources/translate/v1.d.mts.map +1 -1
  298. package/resources/translate/v1.d.ts +37 -1
  299. package/resources/translate/v1.d.ts.map +1 -1
  300. package/resources/translate/v1.js +30 -0
  301. package/resources/translate/v1.js.map +1 -1
  302. package/resources/translate/v1.mjs +30 -0
  303. package/resources/translate/v1.mjs.map +1 -1
  304. package/resources/usage/v1/v1.d.mts +10 -0
  305. package/resources/usage/v1/v1.d.mts.map +1 -1
  306. package/resources/usage/v1/v1.d.ts +10 -0
  307. package/resources/usage/v1/v1.d.ts.map +1 -1
  308. package/resources/usage/v1/v1.js.map +1 -1
  309. package/resources/usage/v1/v1.mjs.map +1 -1
  310. package/resources/vault/events/subscriptions.d.mts +1 -1
  311. package/resources/vault/events/subscriptions.d.ts +1 -1
  312. package/resources/vault/events/subscriptions.js +1 -1
  313. package/resources/vault/events/subscriptions.mjs +1 -1
  314. package/resources/vault/index.d.mts +2 -3
  315. package/resources/vault/index.d.mts.map +1 -1
  316. package/resources/vault/index.d.ts +2 -3
  317. package/resources/vault/index.d.ts.map +1 -1
  318. package/resources/vault/index.js +1 -3
  319. package/resources/vault/index.js.map +1 -1
  320. package/resources/vault/index.mjs +0 -1
  321. package/resources/vault/index.mjs.map +1 -1
  322. package/resources/vault/memory.d.mts +1 -1
  323. package/resources/vault/memory.d.ts +1 -1
  324. package/resources/vault/memory.js +1 -1
  325. package/resources/vault/memory.mjs +1 -1
  326. package/resources/vault/multipart.d.mts +94 -1
  327. package/resources/vault/multipart.d.mts.map +1 -1
  328. package/resources/vault/multipart.d.ts +94 -1
  329. package/resources/vault/multipart.d.ts.map +1 -1
  330. package/resources/vault/multipart.js +40 -0
  331. package/resources/vault/multipart.js.map +1 -1
  332. package/resources/vault/multipart.mjs +40 -0
  333. package/resources/vault/multipart.mjs.map +1 -1
  334. package/resources/vault/objects.d.mts +151 -62
  335. package/resources/vault/objects.d.mts.map +1 -1
  336. package/resources/vault/objects.d.ts +151 -62
  337. package/resources/vault/objects.d.ts.map +1 -1
  338. package/resources/vault/objects.js +48 -20
  339. package/resources/vault/objects.js.map +1 -1
  340. package/resources/vault/objects.mjs +48 -20
  341. package/resources/vault/objects.mjs.map +1 -1
  342. package/resources/vault/vault.d.mts +93 -75
  343. package/resources/vault/vault.d.mts.map +1 -1
  344. package/resources/vault/vault.d.ts +93 -75
  345. package/resources/vault/vault.d.ts.map +1 -1
  346. package/resources/vault/vault.js +22 -20
  347. package/resources/vault/vault.js.map +1 -1
  348. package/resources/vault/vault.mjs +22 -20
  349. package/resources/vault/vault.mjs.map +1 -1
  350. package/resources/voice/transcription.d.mts +19 -7
  351. package/resources/voice/transcription.d.mts.map +1 -1
  352. package/resources/voice/transcription.d.ts +19 -7
  353. package/resources/voice/transcription.d.ts.map +1 -1
  354. package/resources/voice/transcription.js +5 -3
  355. package/resources/voice/transcription.js.map +1 -1
  356. package/resources/voice/transcription.mjs +5 -3
  357. package/resources/voice/transcription.mjs.map +1 -1
  358. package/src/client.ts +18 -25
  359. package/src/internal/parse.ts +0 -14
  360. package/src/internal/request-options.ts +0 -2
  361. package/src/resources/connectors/connectors.ts +21 -0
  362. package/src/resources/connectors/index.ts +10 -0
  363. package/src/resources/connectors/v1/connections.ts +186 -0
  364. package/src/resources/connectors/v1/index.ts +31 -0
  365. package/src/resources/connectors/v1/installations/index.ts +4 -0
  366. package/src/resources/connectors/v1/installations/installations.ts +72 -0
  367. package/src/resources/connectors/v1/installations/vaults.ts +88 -0
  368. package/src/resources/{database.ts → connectors/v1/installations.ts} +1 -1
  369. package/src/resources/connectors/v1/links.ts +121 -0
  370. package/src/resources/connectors/v1/v1.ts +186 -0
  371. package/src/resources/{agent.ts → connectors.ts} +1 -1
  372. package/src/resources/index.ts +2 -5
  373. package/src/resources/legal/index.ts +0 -2
  374. package/src/resources/legal/legal.ts +0 -4
  375. package/src/resources/legal/v1.ts +2 -100
  376. package/src/resources/{mail → linc}/index.ts +1 -1
  377. package/src/resources/{mail/mail.ts → linc/linc.ts} +3 -3
  378. package/src/resources/linc/v1/index.ts +12 -0
  379. package/src/resources/linc/v1/sessions.ts +270 -0
  380. package/src/resources/linc/v1/v1.ts +31 -0
  381. package/src/resources/{mail.ts → linc.ts} +1 -1
  382. package/src/resources/llm/v1/chat.ts +3 -2
  383. package/src/resources/matters/v1/index.ts +0 -1
  384. package/src/resources/matters/v1/v1.ts +0 -2
  385. package/src/resources/matters/v1/work-items.ts +2 -28
  386. package/src/resources/media/v1/clips.ts +3 -0
  387. package/src/resources/media/v1/transcripts/index.ts +1 -0
  388. package/src/resources/media/v1/transcripts/retrieve.ts +94 -0
  389. package/src/resources/media/v1/transcripts/search.ts +3 -0
  390. package/src/resources/media/v1/transcripts/transcripts.ts +10 -0
  391. package/src/resources/ocr/v1.ts +4 -4
  392. package/src/resources/search/index.ts +0 -4
  393. package/src/resources/search/search.ts +0 -8
  394. package/src/resources/search/v1.ts +1 -172
  395. package/src/resources/translate/index.ts +1 -0
  396. package/src/resources/translate/translate.ts +2 -0
  397. package/src/resources/translate/v1.ts +56 -0
  398. package/src/resources/usage/v1/v1.ts +12 -0
  399. package/src/resources/vault/events/subscriptions.ts +1 -1
  400. package/src/resources/vault/index.ts +8 -9
  401. package/src/resources/vault/memory.ts +1 -1
  402. package/src/resources/vault/multipart.ts +126 -0
  403. package/src/resources/vault/objects.ts +218 -83
  404. package/src/resources/vault/vault.ts +123 -94
  405. package/src/resources/voice/transcription.ts +21 -7
  406. package/src/version.ts +1 -1
  407. package/version.d.mts +1 -1
  408. package/version.d.ts +1 -1
  409. package/version.js +1 -1
  410. package/version.mjs +1 -1
  411. package/core/streaming.d.mts +0 -33
  412. package/core/streaming.d.mts.map +0 -1
  413. package/core/streaming.d.ts +0 -33
  414. package/core/streaming.d.ts.map +0 -1
  415. package/core/streaming.js +0 -263
  416. package/core/streaming.js.map +0 -1
  417. package/core/streaming.mjs +0 -258
  418. package/core/streaming.mjs.map +0 -1
  419. package/internal/decoders/line.d.mts +0 -17
  420. package/internal/decoders/line.d.mts.map +0 -1
  421. package/internal/decoders/line.d.ts +0 -17
  422. package/internal/decoders/line.d.ts.map +0 -1
  423. package/internal/decoders/line.js +0 -113
  424. package/internal/decoders/line.js.map +0 -1
  425. package/internal/decoders/line.mjs +0 -108
  426. package/internal/decoders/line.mjs.map +0 -1
  427. package/resources/agent/agent.d.mts +0 -10
  428. package/resources/agent/agent.d.mts.map +0 -1
  429. package/resources/agent/agent.d.ts +0 -10
  430. package/resources/agent/agent.d.ts.map +0 -1
  431. package/resources/agent/agent.js +0 -17
  432. package/resources/agent/agent.js.map +0 -1
  433. package/resources/agent/agent.mjs.map +0 -1
  434. package/resources/agent/index.d.mts +0 -3
  435. package/resources/agent/index.d.mts.map +0 -1
  436. package/resources/agent/index.d.ts +0 -3
  437. package/resources/agent/index.d.ts.map +0 -1
  438. package/resources/agent/index.js +0 -9
  439. package/resources/agent/index.js.map +0 -1
  440. package/resources/agent/index.mjs +0 -4
  441. package/resources/agent/index.mjs.map +0 -1
  442. package/resources/agent/v1/agents.d.mts +0 -205
  443. package/resources/agent/v1/agents.d.mts.map +0 -1
  444. package/resources/agent/v1/agents.d.ts +0 -205
  445. package/resources/agent/v1/agents.d.ts.map +0 -1
  446. package/resources/agent/v1/agents.js +0 -44
  447. package/resources/agent/v1/agents.js.map +0 -1
  448. package/resources/agent/v1/agents.mjs +0 -40
  449. package/resources/agent/v1/agents.mjs.map +0 -1
  450. package/resources/agent/v1/execute.d.mts +0 -95
  451. package/resources/agent/v1/execute.d.mts.map +0 -1
  452. package/resources/agent/v1/execute.d.ts +0 -95
  453. package/resources/agent/v1/execute.d.ts.map +0 -1
  454. package/resources/agent/v1/execute.js +0 -27
  455. package/resources/agent/v1/execute.js.map +0 -1
  456. package/resources/agent/v1/execute.mjs +0 -23
  457. package/resources/agent/v1/execute.mjs.map +0 -1
  458. package/resources/agent/v1/index.d.mts +0 -5
  459. package/resources/agent/v1/index.d.mts.map +0 -1
  460. package/resources/agent/v1/index.d.ts +0 -5
  461. package/resources/agent/v1/index.d.ts.map +0 -1
  462. package/resources/agent/v1/index.js +0 -13
  463. package/resources/agent/v1/index.js.map +0 -1
  464. package/resources/agent/v1/index.mjs +0 -6
  465. package/resources/agent/v1/index.mjs.map +0 -1
  466. package/resources/agent/v1/run.d.mts +0 -304
  467. package/resources/agent/v1/run.d.mts.map +0 -1
  468. package/resources/agent/v1/run.d.ts +0 -304
  469. package/resources/agent/v1/run.d.ts.map +0 -1
  470. package/resources/agent/v1/run.js +0 -74
  471. package/resources/agent/v1/run.js.map +0 -1
  472. package/resources/agent/v1/run.mjs +0 -70
  473. package/resources/agent/v1/run.mjs.map +0 -1
  474. package/resources/agent/v1/v1.d.mts +0 -18
  475. package/resources/agent/v1/v1.d.mts.map +0 -1
  476. package/resources/agent/v1/v1.d.ts +0 -18
  477. package/resources/agent/v1/v1.d.ts.map +0 -1
  478. package/resources/agent/v1/v1.js +0 -25
  479. package/resources/agent/v1/v1.js.map +0 -1
  480. package/resources/agent/v1/v1.mjs +0 -20
  481. package/resources/agent/v1/v1.mjs.map +0 -1
  482. package/resources/agent/v1.d.mts.map +0 -1
  483. package/resources/agent/v1.d.ts.map +0 -1
  484. package/resources/agent/v1.js.map +0 -1
  485. package/resources/agent/v1.mjs.map +0 -1
  486. package/resources/agent.d.mts +0 -2
  487. package/resources/agent.d.mts.map +0 -1
  488. package/resources/agent.d.ts +0 -2
  489. package/resources/agent.d.ts.map +0 -1
  490. package/resources/agent.js.map +0 -1
  491. package/resources/agent.mjs.map +0 -1
  492. package/resources/database/database.d.mts +0 -10
  493. package/resources/database/database.d.mts.map +0 -1
  494. package/resources/database/database.d.ts +0 -10
  495. package/resources/database/database.d.ts.map +0 -1
  496. package/resources/database/database.js +0 -17
  497. package/resources/database/database.js.map +0 -1
  498. package/resources/database/database.mjs +0 -12
  499. package/resources/database/database.mjs.map +0 -1
  500. package/resources/database/index.d.mts +0 -3
  501. package/resources/database/index.d.mts.map +0 -1
  502. package/resources/database/index.d.ts +0 -3
  503. package/resources/database/index.d.ts.map +0 -1
  504. package/resources/database/index.js.map +0 -1
  505. package/resources/database/index.mjs +0 -4
  506. package/resources/database/index.mjs.map +0 -1
  507. package/resources/database/v1/index.d.mts +0 -3
  508. package/resources/database/v1/index.d.mts.map +0 -1
  509. package/resources/database/v1/index.d.ts +0 -3
  510. package/resources/database/v1/index.d.ts.map +0 -1
  511. package/resources/database/v1/index.js +0 -9
  512. package/resources/database/v1/index.js.map +0 -1
  513. package/resources/database/v1/index.mjs.map +0 -1
  514. package/resources/database/v1/projects.d.mts +0 -467
  515. package/resources/database/v1/projects.d.mts.map +0 -1
  516. package/resources/database/v1/projects.d.ts +0 -467
  517. package/resources/database/v1/projects.d.ts.map +0 -1
  518. package/resources/database/v1/projects.js +0 -125
  519. package/resources/database/v1/projects.js.map +0 -1
  520. package/resources/database/v1/projects.mjs +0 -121
  521. package/resources/database/v1/projects.mjs.map +0 -1
  522. package/resources/database/v1/v1.d.mts +0 -144
  523. package/resources/database/v1/v1.d.mts.map +0 -1
  524. package/resources/database/v1/v1.d.ts +0 -144
  525. package/resources/database/v1/v1.d.ts.map +0 -1
  526. package/resources/database/v1/v1.js +0 -33
  527. package/resources/database/v1/v1.js.map +0 -1
  528. package/resources/database/v1/v1.mjs +0 -28
  529. package/resources/database/v1/v1.mjs.map +0 -1
  530. package/resources/database/v1.d.mts.map +0 -1
  531. package/resources/database/v1.d.ts.map +0 -1
  532. package/resources/database/v1.js.map +0 -1
  533. package/resources/database/v1.mjs.map +0 -1
  534. package/resources/database.d.mts +0 -2
  535. package/resources/database.d.mts.map +0 -1
  536. package/resources/database.d.ts +0 -2
  537. package/resources/database.d.ts.map +0 -1
  538. package/resources/database.js.map +0 -1
  539. package/resources/database.mjs.map +0 -1
  540. package/resources/format/format.d.mts +0 -10
  541. package/resources/format/format.d.mts.map +0 -1
  542. package/resources/format/format.d.ts +0 -10
  543. package/resources/format/format.d.ts.map +0 -1
  544. package/resources/format/format.js.map +0 -1
  545. package/resources/format/format.mjs +0 -12
  546. package/resources/format/format.mjs.map +0 -1
  547. package/resources/format/index.d.mts +0 -3
  548. package/resources/format/index.d.mts.map +0 -1
  549. package/resources/format/index.d.ts +0 -3
  550. package/resources/format/index.d.ts.map +0 -1
  551. package/resources/format/index.js +0 -9
  552. package/resources/format/index.js.map +0 -1
  553. package/resources/format/index.mjs +0 -4
  554. package/resources/format/index.mjs.map +0 -1
  555. package/resources/format/v1/index.d.mts +0 -3
  556. package/resources/format/v1/index.d.mts.map +0 -1
  557. package/resources/format/v1/index.d.ts +0 -3
  558. package/resources/format/v1/index.d.ts.map +0 -1
  559. package/resources/format/v1/index.js +0 -9
  560. package/resources/format/v1/index.js.map +0 -1
  561. package/resources/format/v1/index.mjs +0 -4
  562. package/resources/format/v1/index.mjs.map +0 -1
  563. package/resources/format/v1/templates.d.mts +0 -160
  564. package/resources/format/v1/templates.d.mts.map +0 -1
  565. package/resources/format/v1/templates.d.ts +0 -160
  566. package/resources/format/v1/templates.d.ts.map +0 -1
  567. package/resources/format/v1/templates.js +0 -40
  568. package/resources/format/v1/templates.js.map +0 -1
  569. package/resources/format/v1/templates.mjs +0 -36
  570. package/resources/format/v1/templates.mjs.map +0 -1
  571. package/resources/format/v1/v1.d.mts +0 -73
  572. package/resources/format/v1/v1.d.mts.map +0 -1
  573. package/resources/format/v1/v1.d.ts +0 -73
  574. package/resources/format/v1/v1.d.ts.map +0 -1
  575. package/resources/format/v1/v1.js +0 -34
  576. package/resources/format/v1/v1.js.map +0 -1
  577. package/resources/format/v1/v1.mjs +0 -29
  578. package/resources/format/v1/v1.mjs.map +0 -1
  579. package/resources/format/v1.d.mts +0 -2
  580. package/resources/format/v1.d.mts.map +0 -1
  581. package/resources/format/v1.d.ts +0 -2
  582. package/resources/format/v1.d.ts.map +0 -1
  583. package/resources/format/v1.js +0 -6
  584. package/resources/format/v1.js.map +0 -1
  585. package/resources/format/v1.mjs +0 -3
  586. package/resources/format/v1.mjs.map +0 -1
  587. package/resources/format.d.mts +0 -2
  588. package/resources/format.d.mts.map +0 -1
  589. package/resources/format.d.ts +0 -2
  590. package/resources/format.d.ts.map +0 -1
  591. package/resources/format.js +0 -6
  592. package/resources/format.js.map +0 -1
  593. package/resources/format.mjs +0 -3
  594. package/resources/format.mjs.map +0 -1
  595. package/resources/mail/index.d.mts +0 -3
  596. package/resources/mail/index.d.mts.map +0 -1
  597. package/resources/mail/index.d.ts +0 -3
  598. package/resources/mail/index.d.ts.map +0 -1
  599. package/resources/mail/v1/inboxes.d.mts +0 -94
  600. package/resources/mail/v1/inboxes.d.mts.map +0 -1
  601. package/resources/mail/v1/inboxes.d.ts +0 -94
  602. package/resources/mail/v1/inboxes.d.ts.map +0 -1
  603. package/resources/mail/v1/inboxes.js +0 -118
  604. package/resources/mail/v1/inboxes.js.map +0 -1
  605. package/resources/mail/v1/inboxes.mjs +0 -114
  606. package/resources/mail/v1/inboxes.mjs.map +0 -1
  607. package/resources/mail/v1/index.d.mts +0 -3
  608. package/resources/mail/v1/index.d.mts.map +0 -1
  609. package/resources/mail/v1/index.d.ts +0 -3
  610. package/resources/mail/v1/index.d.ts.map +0 -1
  611. package/resources/mail/v1/index.js.map +0 -1
  612. package/resources/mail/v1/index.mjs +0 -4
  613. package/resources/mail/v1/index.mjs.map +0 -1
  614. package/resources/mail/v1/v1.d.mts +0 -10
  615. package/resources/mail/v1/v1.d.mts.map +0 -1
  616. package/resources/mail/v1/v1.d.ts +0 -10
  617. package/resources/mail/v1/v1.d.ts.map +0 -1
  618. package/resources/mail/v1/v1.js.map +0 -1
  619. package/resources/mail/v1/v1.mjs.map +0 -1
  620. package/resources/mail/v1.d.mts +0 -2
  621. package/resources/mail/v1.d.ts +0 -2
  622. package/resources/mail/v1.js +0 -6
  623. package/resources/mail/v1.js.map +0 -1
  624. package/resources/mail/v1.mjs +0 -3
  625. package/resources/mail/v1.mjs.map +0 -1
  626. package/resources/mail.d.mts +0 -2
  627. package/resources/mail.d.mts.map +0 -1
  628. package/resources/mail.d.ts +0 -2
  629. package/resources/mail.d.ts.map +0 -1
  630. package/resources/mail.js.map +0 -1
  631. package/resources/mail.mjs.map +0 -1
  632. package/resources/superdoc/index.d.mts +0 -3
  633. package/resources/superdoc/index.d.mts.map +0 -1
  634. package/resources/superdoc/index.d.ts +0 -3
  635. package/resources/superdoc/index.d.ts.map +0 -1
  636. package/resources/superdoc/index.js +0 -9
  637. package/resources/superdoc/index.js.map +0 -1
  638. package/resources/superdoc/index.mjs +0 -4
  639. package/resources/superdoc/index.mjs.map +0 -1
  640. package/resources/superdoc/superdoc.d.mts +0 -10
  641. package/resources/superdoc/superdoc.d.mts.map +0 -1
  642. package/resources/superdoc/superdoc.d.ts +0 -10
  643. package/resources/superdoc/superdoc.d.ts.map +0 -1
  644. package/resources/superdoc/superdoc.js +0 -17
  645. package/resources/superdoc/superdoc.js.map +0 -1
  646. package/resources/superdoc/superdoc.mjs +0 -12
  647. package/resources/superdoc/superdoc.mjs.map +0 -1
  648. package/resources/superdoc/v1.d.mts +0 -107
  649. package/resources/superdoc/v1.d.mts.map +0 -1
  650. package/resources/superdoc/v1.d.ts +0 -107
  651. package/resources/superdoc/v1.d.ts.map +0 -1
  652. package/resources/superdoc/v1.js +0 -39
  653. package/resources/superdoc/v1.js.map +0 -1
  654. package/resources/superdoc/v1.mjs +0 -35
  655. package/resources/superdoc/v1.mjs.map +0 -1
  656. package/resources/superdoc.d.mts +0 -2
  657. package/resources/superdoc.d.mts.map +0 -1
  658. package/resources/superdoc.d.ts +0 -2
  659. package/resources/superdoc.d.ts.map +0 -1
  660. package/resources/superdoc.js +0 -6
  661. package/resources/superdoc.js.map +0 -1
  662. package/resources/superdoc.mjs +0 -3
  663. package/resources/superdoc.mjs.map +0 -1
  664. package/resources/vault/graphrag.d.mts +0 -132
  665. package/resources/vault/graphrag.d.mts.map +0 -1
  666. package/resources/vault/graphrag.d.ts +0 -132
  667. package/resources/vault/graphrag.d.ts.map +0 -1
  668. package/resources/vault/graphrag.js +0 -58
  669. package/resources/vault/graphrag.js.map +0 -1
  670. package/resources/vault/graphrag.mjs +0 -54
  671. package/resources/vault/graphrag.mjs.map +0 -1
  672. package/src/core/streaming.ts +0 -315
  673. package/src/internal/decoders/line.ts +0 -135
  674. package/src/resources/agent/agent.ts +0 -15
  675. package/src/resources/agent/index.ts +0 -4
  676. package/src/resources/agent/v1/agents.ts +0 -305
  677. package/src/resources/agent/v1/execute.ts +0 -118
  678. package/src/resources/agent/v1/index.ts +0 -30
  679. package/src/resources/agent/v1/run.ts +0 -456
  680. package/src/resources/agent/v1/v1.ts +0 -79
  681. package/src/resources/database/database.ts +0 -15
  682. package/src/resources/database/index.ts +0 -4
  683. package/src/resources/database/v1/index.ts +0 -16
  684. package/src/resources/database/v1/projects.ts +0 -597
  685. package/src/resources/database/v1/v1.ts +0 -212
  686. package/src/resources/format/format.ts +0 -15
  687. package/src/resources/format/index.ts +0 -4
  688. package/src/resources/format/v1/index.ts +0 -11
  689. package/src/resources/format/v1/templates.ts +0 -210
  690. package/src/resources/format/v1/v1.ts +0 -111
  691. package/src/resources/format/v1.ts +0 -3
  692. package/src/resources/format.ts +0 -3
  693. package/src/resources/mail/v1/inboxes.ts +0 -190
  694. package/src/resources/mail/v1/index.ts +0 -11
  695. package/src/resources/mail/v1/v1.ts +0 -29
  696. package/src/resources/mail/v1.ts +0 -3
  697. package/src/resources/superdoc/index.ts +0 -4
  698. package/src/resources/superdoc/superdoc.ts +0 -15
  699. package/src/resources/superdoc/v1.ts +0 -149
  700. package/src/resources/superdoc.ts +0 -3
  701. package/src/resources/vault/graphrag.ts +0 -176
  702. package/src/streaming.ts +0 -2
  703. package/streaming.d.mts +0 -3
  704. package/streaming.d.mts.map +0 -1
  705. package/streaming.d.ts +0 -3
  706. package/streaming.d.ts.map +0 -1
  707. package/streaming.js +0 -6
  708. package/streaming.js.map +0 -1
  709. package/streaming.mjs +0 -3
  710. package/streaming.mjs.map +0 -1
  711. /package/resources/{agent → connectors}/v1.d.mts +0 -0
  712. /package/resources/{agent → connectors}/v1.d.ts +0 -0
  713. /package/resources/{agent → connectors}/v1.js +0 -0
  714. /package/resources/{agent → connectors}/v1.mjs +0 -0
  715. /package/resources/{database → linc}/v1.d.mts +0 -0
  716. /package/resources/{database → linc}/v1.d.ts +0 -0
  717. /package/resources/{database → linc}/v1.js +0 -0
  718. /package/resources/{database → linc}/v1.mjs +0 -0
  719. /package/src/resources/{agent → connectors}/v1.ts +0 -0
  720. /package/src/resources/{database → linc}/v1.ts +0 -0
@@ -1,304 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import { APIPromise } from "../../../core/api-promise.mjs";
3
- import { Stream } from "../../../core/streaming.mjs";
4
- import { RequestOptions } from "../../../internal/request-options.mjs";
5
- /**
6
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
7
- */
8
- export declare class Run extends APIResource {
9
- /**
10
- * Creates a run in queued state. Call POST /agent/v1/run/:id/exec to start
11
- * execution.
12
- */
13
- create(body: RunCreateParams, options?: RequestOptions): APIPromise<RunCreateResponse>;
14
- /**
15
- * Lists agent runs for the authenticated organization. Supports filtering by
16
- * agent, status, and cursor-based pagination.
17
- */
18
- list(query?: RunListParams | null | undefined, options?: RequestOptions): APIPromise<RunListResponse>;
19
- /**
20
- * Cancels a running or queued run. Idempotent — cancelling a finished run returns
21
- * its current status.
22
- */
23
- cancel(id: string, options?: RequestOptions): APIPromise<RunCancelResponse>;
24
- /**
25
- * Streams real-time run events over SSE. Supports replay using Last-Event-ID.
26
- */
27
- events(id: string, query?: RunEventsParams | undefined, options?: RequestOptions): APIPromise<Stream<RunEventsResponse>>;
28
- /**
29
- * Starts execution of a queued run. The agent runs in a durable workflow — poll
30
- * /run/:id/status for progress.
31
- */
32
- exec(id: string, options?: RequestOptions): APIPromise<RunExecResponse>;
33
- /**
34
- * Full audit trail for a run including output, steps (tool calls, text), and token
35
- * usage.
36
- */
37
- getDetails(id: string, options?: RequestOptions): APIPromise<RunGetDetailsResponse>;
38
- /**
39
- * Lightweight status poll for a run. Use /run/:id/details for the full audit
40
- * trail.
41
- */
42
- getStatus(id: string, options?: RequestOptions): APIPromise<RunGetStatusResponse>;
43
- /**
44
- * Register a callback URL to receive notifications when the run completes. URL
45
- * must use https and must not point to a private network.
46
- */
47
- watch(id: string, body: RunWatchParams, options?: RequestOptions): APIPromise<RunWatchResponse>;
48
- }
49
- export interface RunCreateResponse {
50
- id?: string;
51
- agentId?: string;
52
- createdAt?: string;
53
- objectIds?: Array<string> | null;
54
- status?: 'queued';
55
- }
56
- export interface RunListResponse {
57
- hasMore?: boolean;
58
- /**
59
- * Pass as cursor to fetch the next page
60
- */
61
- nextCursor?: string | null;
62
- runs?: Array<RunListResponse.Run>;
63
- }
64
- export declare namespace RunListResponse {
65
- interface Run {
66
- id?: string;
67
- agentId?: string;
68
- completedAt?: string | null;
69
- createdAt?: string;
70
- model?: string | null;
71
- /**
72
- * Truncated to first 200 characters
73
- */
74
- prompt?: string;
75
- startedAt?: string | null;
76
- status?: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
77
- }
78
- }
79
- export interface RunCancelResponse {
80
- id?: string;
81
- /**
82
- * Present if run was already finished
83
- */
84
- message?: string;
85
- status?: 'cancelled' | 'completed' | 'failed';
86
- }
87
- export type RunEventsResponse = string;
88
- export interface RunExecResponse {
89
- id?: string;
90
- message?: string;
91
- status?: 'running';
92
- /**
93
- * Durable workflow run ID
94
- */
95
- workflowId?: string;
96
- }
97
- export interface RunGetDetailsResponse {
98
- id?: string;
99
- agentId?: string;
100
- completedAt?: string | null;
101
- createdAt?: string;
102
- guidance?: string | null;
103
- /**
104
- * @deprecated Deprecated legacy Modal sandbox ID. Prefer `provider` and
105
- * `runtimeId`.
106
- */
107
- modalSandboxId?: string | null;
108
- model?: string | null;
109
- prompt?: string;
110
- /**
111
- * Runtime provider for this run
112
- */
113
- provider?: 'daytona' | 'vercel' | null;
114
- /**
115
- * Final output from the agent
116
- */
117
- result?: RunGetDetailsResponse.Result | null;
118
- /**
119
- * Provider-specific runtime identifier
120
- */
121
- runtimeId?: string | null;
122
- /**
123
- * Current runtime state, when available
124
- */
125
- runtimeState?: 'running' | 'stopped' | 'archived' | 'ended' | 'error' | null;
126
- startedAt?: string | null;
127
- status?: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
128
- steps?: Array<RunGetDetailsResponse.Step>;
129
- /**
130
- * Token usage statistics
131
- */
132
- usage?: RunGetDetailsResponse.Usage | null;
133
- /**
134
- * Durable workflow run ID
135
- */
136
- workflowId?: string | null;
137
- }
138
- export declare namespace RunGetDetailsResponse {
139
- /**
140
- * Final output from the agent
141
- */
142
- interface Result {
143
- /**
144
- * Compact agent-facing result summary and execution issues
145
- */
146
- finalResponse?: Result.FinalResponse | null;
147
- /**
148
- * Sandbox execution logs (runtime server + runner script)
149
- */
150
- logs?: Result.Logs | null;
151
- output?: string;
152
- outputObjectIds?: Array<string>;
153
- }
154
- namespace Result {
155
- /**
156
- * Compact agent-facing result summary and execution issues
157
- */
158
- interface FinalResponse {
159
- createdObjectIds?: Array<string>;
160
- issues?: Array<string>;
161
- summary?: string;
162
- }
163
- /**
164
- * Sandbox execution logs (runtime server + runner script)
165
- */
166
- interface Logs {
167
- /**
168
- * Legacy runtime server stdout/stderr
169
- */
170
- opencode?: string;
171
- /**
172
- * Runner script stdout/stderr
173
- */
174
- runner?: string;
175
- /**
176
- * Runtime server stdout/stderr
177
- */
178
- runtime?: string;
179
- }
180
- }
181
- interface Step {
182
- id?: string;
183
- content?: string | null;
184
- durationMs?: number | null;
185
- timestamp?: string;
186
- toolInput?: unknown;
187
- toolName?: string | null;
188
- toolOutput?: unknown;
189
- type?: 'output' | 'thinking' | 'tool_call' | 'tool_result';
190
- }
191
- /**
192
- * Token usage statistics
193
- */
194
- interface Usage {
195
- durationMs?: number;
196
- entries?: Array<Usage.Entry>;
197
- inputTokens?: number;
198
- model?: string;
199
- outputTokens?: number;
200
- summary?: Usage.Summary | null;
201
- toolCalls?: number;
202
- }
203
- namespace Usage {
204
- interface Entry {
205
- id?: string;
206
- completionTokens?: number | null;
207
- costMicros?: number;
208
- endpoint?: string | null;
209
- kind?: 'llm' | 'api';
210
- metadata?: unknown;
211
- method?: string | null;
212
- model?: string | null;
213
- promptTokens?: number | null;
214
- service?: string;
215
- statusCode?: number | null;
216
- timestamp?: string;
217
- totalTokens?: number | null;
218
- }
219
- interface Summary {
220
- costMicros?: number;
221
- totalInputTokens?: number;
222
- totalOutputTokens?: number;
223
- totalTokens?: number;
224
- }
225
- }
226
- }
227
- export interface RunGetStatusResponse {
228
- id?: string;
229
- completedAt?: string | null;
230
- /**
231
- * Elapsed time in milliseconds
232
- */
233
- durationMs?: number | null;
234
- startedAt?: string | null;
235
- status?: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
236
- }
237
- export interface RunWatchResponse {
238
- callbackUrl?: string;
239
- ok?: boolean;
240
- }
241
- export interface RunCreateParams {
242
- /**
243
- * ID of the agent to run
244
- */
245
- agentId: string;
246
- /**
247
- * Task prompt for the agent
248
- */
249
- prompt: string;
250
- /**
251
- * HTTPS callback URL to receive a notification when the run completes. Registered
252
- * atomically with the run — eliminates the race condition of calling /watch after
253
- * /exec. Additional watchers can still be added via POST /run/:id/watch.
254
- */
255
- callbackUrl?: string | null;
256
- /**
257
- * Additional guidance for this run
258
- */
259
- guidance?: string | null;
260
- /**
261
- * Override the agent default model for this run
262
- */
263
- model?: string | null;
264
- /**
265
- * Scope this run to specific vault object IDs. The agent will only be able to
266
- * access these objects during execution.
267
- */
268
- objectIds?: Array<string> | null;
269
- }
270
- export interface RunListParams {
271
- /**
272
- * Filter by agent ID
273
- */
274
- agentId?: string;
275
- /**
276
- * Pagination cursor (run ID from previous page). Returns runs created before this
277
- * run.
278
- */
279
- cursor?: string;
280
- /**
281
- * Maximum number of runs to return (default 50, max 250)
282
- */
283
- limit?: number;
284
- /**
285
- * Filter by run status
286
- */
287
- status?: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
288
- }
289
- export interface RunEventsParams {
290
- /**
291
- * Replay events after this sequence number
292
- */
293
- lastEventId?: number;
294
- }
295
- export interface RunWatchParams {
296
- /**
297
- * HTTPS URL to receive completion callback
298
- */
299
- callbackUrl: string;
300
- }
301
- export declare namespace Run {
302
- export { type RunCreateResponse as RunCreateResponse, type RunListResponse as RunListResponse, type RunCancelResponse as RunCancelResponse, type RunEventsResponse as RunEventsResponse, type RunExecResponse as RunExecResponse, type RunGetDetailsResponse as RunGetDetailsResponse, type RunGetStatusResponse as RunGetStatusResponse, type RunWatchResponse as RunWatchResponse, type RunCreateParams as RunCreateParams, type RunListParams as RunListParams, type RunEventsParams as RunEventsParams, type RunWatchParams as RunWatchParams, };
303
- }
304
- //# sourceMappingURL=run.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run.d.mts","sourceRoot":"","sources":["../../../src/resources/agent/v1/run.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,MAAM,EAAE,oCAAgC;AAEjD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAItF;;;OAGG;IACH,IAAI,CAAC,KAAK,GAAE,aAAa,GAAG,IAAI,GAAG,SAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIzG;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAI3E;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,eAAe,GAAG,SAAc,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IASxC;;;OAGG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIvE;;;OAGG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAInF;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OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
@@ -1,304 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import { APIPromise } from "../../../core/api-promise.js";
3
- import { Stream } from "../../../core/streaming.js";
4
- import { RequestOptions } from "../../../internal/request-options.js";
5
- /**
6
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
7
- */
8
- export declare class Run extends APIResource {
9
- /**
10
- * Creates a run in queued state. Call POST /agent/v1/run/:id/exec to start
11
- * execution.
12
- */
13
- create(body: RunCreateParams, options?: RequestOptions): APIPromise<RunCreateResponse>;
14
- /**
15
- * Lists agent runs for the authenticated organization. Supports filtering by
16
- * agent, status, and cursor-based pagination.
17
- */
18
- list(query?: RunListParams | null | undefined, options?: RequestOptions): APIPromise<RunListResponse>;
19
- /**
20
- * Cancels a running or queued run. Idempotent — cancelling a finished run returns
21
- * its current status.
22
- */
23
- cancel(id: string, options?: RequestOptions): APIPromise<RunCancelResponse>;
24
- /**
25
- * Streams real-time run events over SSE. Supports replay using Last-Event-ID.
26
- */
27
- events(id: string, query?: RunEventsParams | undefined, options?: RequestOptions): APIPromise<Stream<RunEventsResponse>>;
28
- /**
29
- * Starts execution of a queued run. The agent runs in a durable workflow — poll
30
- * /run/:id/status for progress.
31
- */
32
- exec(id: string, options?: RequestOptions): APIPromise<RunExecResponse>;
33
- /**
34
- * Full audit trail for a run including output, steps (tool calls, text), and token
35
- * usage.
36
- */
37
- getDetails(id: string, options?: RequestOptions): APIPromise<RunGetDetailsResponse>;
38
- /**
39
- * Lightweight status poll for a run. Use /run/:id/details for the full audit
40
- * trail.
41
- */
42
- getStatus(id: string, options?: RequestOptions): APIPromise<RunGetStatusResponse>;
43
- /**
44
- * Register a callback URL to receive notifications when the run completes. URL
45
- * must use https and must not point to a private network.
46
- */
47
- watch(id: string, body: RunWatchParams, options?: RequestOptions): APIPromise<RunWatchResponse>;
48
- }
49
- export interface RunCreateResponse {
50
- id?: string;
51
- agentId?: string;
52
- createdAt?: string;
53
- objectIds?: Array<string> | null;
54
- status?: 'queued';
55
- }
56
- export interface RunListResponse {
57
- hasMore?: boolean;
58
- /**
59
- * Pass as cursor to fetch the next page
60
- */
61
- nextCursor?: string | null;
62
- runs?: Array<RunListResponse.Run>;
63
- }
64
- export declare namespace RunListResponse {
65
- interface Run {
66
- id?: string;
67
- agentId?: string;
68
- completedAt?: string | null;
69
- createdAt?: string;
70
- model?: string | null;
71
- /**
72
- * Truncated to first 200 characters
73
- */
74
- prompt?: string;
75
- startedAt?: string | null;
76
- status?: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
77
- }
78
- }
79
- export interface RunCancelResponse {
80
- id?: string;
81
- /**
82
- * Present if run was already finished
83
- */
84
- message?: string;
85
- status?: 'cancelled' | 'completed' | 'failed';
86
- }
87
- export type RunEventsResponse = string;
88
- export interface RunExecResponse {
89
- id?: string;
90
- message?: string;
91
- status?: 'running';
92
- /**
93
- * Durable workflow run ID
94
- */
95
- workflowId?: string;
96
- }
97
- export interface RunGetDetailsResponse {
98
- id?: string;
99
- agentId?: string;
100
- completedAt?: string | null;
101
- createdAt?: string;
102
- guidance?: string | null;
103
- /**
104
- * @deprecated Deprecated legacy Modal sandbox ID. Prefer `provider` and
105
- * `runtimeId`.
106
- */
107
- modalSandboxId?: string | null;
108
- model?: string | null;
109
- prompt?: string;
110
- /**
111
- * Runtime provider for this run
112
- */
113
- provider?: 'daytona' | 'vercel' | null;
114
- /**
115
- * Final output from the agent
116
- */
117
- result?: RunGetDetailsResponse.Result | null;
118
- /**
119
- * Provider-specific runtime identifier
120
- */
121
- runtimeId?: string | null;
122
- /**
123
- * Current runtime state, when available
124
- */
125
- runtimeState?: 'running' | 'stopped' | 'archived' | 'ended' | 'error' | null;
126
- startedAt?: string | null;
127
- status?: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
128
- steps?: Array<RunGetDetailsResponse.Step>;
129
- /**
130
- * Token usage statistics
131
- */
132
- usage?: RunGetDetailsResponse.Usage | null;
133
- /**
134
- * Durable workflow run ID
135
- */
136
- workflowId?: string | null;
137
- }
138
- export declare namespace RunGetDetailsResponse {
139
- /**
140
- * Final output from the agent
141
- */
142
- interface Result {
143
- /**
144
- * Compact agent-facing result summary and execution issues
145
- */
146
- finalResponse?: Result.FinalResponse | null;
147
- /**
148
- * Sandbox execution logs (runtime server + runner script)
149
- */
150
- logs?: Result.Logs | null;
151
- output?: string;
152
- outputObjectIds?: Array<string>;
153
- }
154
- namespace Result {
155
- /**
156
- * Compact agent-facing result summary and execution issues
157
- */
158
- interface FinalResponse {
159
- createdObjectIds?: Array<string>;
160
- issues?: Array<string>;
161
- summary?: string;
162
- }
163
- /**
164
- * Sandbox execution logs (runtime server + runner script)
165
- */
166
- interface Logs {
167
- /**
168
- * Legacy runtime server stdout/stderr
169
- */
170
- opencode?: string;
171
- /**
172
- * Runner script stdout/stderr
173
- */
174
- runner?: string;
175
- /**
176
- * Runtime server stdout/stderr
177
- */
178
- runtime?: string;
179
- }
180
- }
181
- interface Step {
182
- id?: string;
183
- content?: string | null;
184
- durationMs?: number | null;
185
- timestamp?: string;
186
- toolInput?: unknown;
187
- toolName?: string | null;
188
- toolOutput?: unknown;
189
- type?: 'output' | 'thinking' | 'tool_call' | 'tool_result';
190
- }
191
- /**
192
- * Token usage statistics
193
- */
194
- interface Usage {
195
- durationMs?: number;
196
- entries?: Array<Usage.Entry>;
197
- inputTokens?: number;
198
- model?: string;
199
- outputTokens?: number;
200
- summary?: Usage.Summary | null;
201
- toolCalls?: number;
202
- }
203
- namespace Usage {
204
- interface Entry {
205
- id?: string;
206
- completionTokens?: number | null;
207
- costMicros?: number;
208
- endpoint?: string | null;
209
- kind?: 'llm' | 'api';
210
- metadata?: unknown;
211
- method?: string | null;
212
- model?: string | null;
213
- promptTokens?: number | null;
214
- service?: string;
215
- statusCode?: number | null;
216
- timestamp?: string;
217
- totalTokens?: number | null;
218
- }
219
- interface Summary {
220
- costMicros?: number;
221
- totalInputTokens?: number;
222
- totalOutputTokens?: number;
223
- totalTokens?: number;
224
- }
225
- }
226
- }
227
- export interface RunGetStatusResponse {
228
- id?: string;
229
- completedAt?: string | null;
230
- /**
231
- * Elapsed time in milliseconds
232
- */
233
- durationMs?: number | null;
234
- startedAt?: string | null;
235
- status?: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
236
- }
237
- export interface RunWatchResponse {
238
- callbackUrl?: string;
239
- ok?: boolean;
240
- }
241
- export interface RunCreateParams {
242
- /**
243
- * ID of the agent to run
244
- */
245
- agentId: string;
246
- /**
247
- * Task prompt for the agent
248
- */
249
- prompt: string;
250
- /**
251
- * HTTPS callback URL to receive a notification when the run completes. Registered
252
- * atomically with the run — eliminates the race condition of calling /watch after
253
- * /exec. Additional watchers can still be added via POST /run/:id/watch.
254
- */
255
- callbackUrl?: string | null;
256
- /**
257
- * Additional guidance for this run
258
- */
259
- guidance?: string | null;
260
- /**
261
- * Override the agent default model for this run
262
- */
263
- model?: string | null;
264
- /**
265
- * Scope this run to specific vault object IDs. The agent will only be able to
266
- * access these objects during execution.
267
- */
268
- objectIds?: Array<string> | null;
269
- }
270
- export interface RunListParams {
271
- /**
272
- * Filter by agent ID
273
- */
274
- agentId?: string;
275
- /**
276
- * Pagination cursor (run ID from previous page). Returns runs created before this
277
- * run.
278
- */
279
- cursor?: string;
280
- /**
281
- * Maximum number of runs to return (default 50, max 250)
282
- */
283
- limit?: number;
284
- /**
285
- * Filter by run status
286
- */
287
- status?: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
288
- }
289
- export interface RunEventsParams {
290
- /**
291
- * Replay events after this sequence number
292
- */
293
- lastEventId?: number;
294
- }
295
- export interface RunWatchParams {
296
- /**
297
- * HTTPS URL to receive completion callback
298
- */
299
- callbackUrl: string;
300
- }
301
- export declare namespace Run {
302
- export { type RunCreateResponse as RunCreateResponse, type RunListResponse as RunListResponse, type RunCancelResponse as RunCancelResponse, type RunEventsResponse as RunEventsResponse, type RunExecResponse as RunExecResponse, type RunGetDetailsResponse as RunGetDetailsResponse, type RunGetStatusResponse as RunGetStatusResponse, type RunWatchResponse as RunWatchResponse, type RunCreateParams as RunCreateParams, type RunListParams as RunListParams, type RunEventsParams as RunEventsParams, type RunWatchParams as RunWatchParams, };
303
- }
304
- //# sourceMappingURL=run.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/resources/agent/v1/run.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,MAAM,EAAE,mCAAgC;AAEjD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAItF;;;OAGG;IACH,IAAI,CAAC,KAAK,GAAE,aAAa,GAAG,IAAI,GAAG,SAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIzG;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAI3E;;OAEG;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