casedev 0.69.0 → 0.70.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 +13 -0
  2. package/client.d.mts +5 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +5 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +1 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/connectors/connectors.d.mts +2 -2
  12. package/resources/connectors/connectors.d.mts.map +1 -1
  13. package/resources/connectors/connectors.d.ts +2 -2
  14. package/resources/connectors/connectors.d.ts.map +1 -1
  15. package/resources/connectors/connectors.js.map +1 -1
  16. package/resources/connectors/connectors.mjs +1 -1
  17. package/resources/connectors/connectors.mjs.map +1 -1
  18. package/resources/connectors/index.d.mts +1 -1
  19. package/resources/connectors/index.d.mts.map +1 -1
  20. package/resources/connectors/index.d.ts +1 -1
  21. package/resources/connectors/index.d.ts.map +1 -1
  22. package/resources/connectors/index.js.map +1 -1
  23. package/resources/connectors/index.mjs.map +1 -1
  24. package/resources/connectors/v1/applications/applications.d.mts +10 -0
  25. package/resources/connectors/v1/applications/applications.d.mts.map +1 -0
  26. package/resources/connectors/v1/applications/applications.d.ts +10 -0
  27. package/resources/connectors/v1/applications/applications.d.ts.map +1 -0
  28. package/resources/connectors/v1/applications/applications.js +17 -0
  29. package/resources/connectors/v1/applications/applications.js.map +1 -0
  30. package/resources/connectors/v1/applications/applications.mjs +12 -0
  31. package/resources/connectors/v1/applications/applications.mjs.map +1 -0
  32. package/resources/connectors/v1/applications/index.d.mts +3 -0
  33. package/resources/connectors/v1/applications/index.d.mts.map +1 -0
  34. package/resources/connectors/v1/applications/index.d.ts +3 -0
  35. package/resources/connectors/v1/applications/index.d.ts.map +1 -0
  36. package/resources/connectors/v1/applications/index.js +9 -0
  37. package/resources/connectors/v1/applications/index.js.map +1 -0
  38. package/resources/connectors/v1/applications/index.mjs +4 -0
  39. package/resources/connectors/v1/applications/index.mjs.map +1 -0
  40. package/resources/connectors/v1/applications/keys.d.mts +34 -0
  41. package/resources/connectors/v1/applications/keys.d.mts.map +1 -0
  42. package/resources/connectors/v1/applications/keys.d.ts +34 -0
  43. package/resources/connectors/v1/applications/keys.d.ts.map +1 -0
  44. package/resources/connectors/v1/applications/keys.js +34 -0
  45. package/resources/connectors/v1/applications/keys.js.map +1 -0
  46. package/resources/connectors/v1/applications/keys.mjs +30 -0
  47. package/resources/connectors/v1/applications/keys.mjs.map +1 -0
  48. package/resources/connectors/v1/applications.d.mts +2 -0
  49. package/resources/connectors/v1/applications.d.mts.map +1 -0
  50. package/resources/connectors/v1/applications.d.ts +2 -0
  51. package/resources/connectors/v1/applications.d.ts.map +1 -0
  52. package/resources/connectors/v1/applications.js +6 -0
  53. package/resources/connectors/v1/applications.js.map +1 -0
  54. package/resources/connectors/v1/applications.mjs +3 -0
  55. package/resources/connectors/v1/applications.mjs.map +1 -0
  56. package/resources/connectors/v1/connections.d.mts +124 -15
  57. package/resources/connectors/v1/connections.d.mts.map +1 -1
  58. package/resources/connectors/v1/connections.d.ts +124 -15
  59. package/resources/connectors/v1/connections.d.ts.map +1 -1
  60. package/resources/connectors/v1/connections.js +84 -12
  61. package/resources/connectors/v1/connections.js.map +1 -1
  62. package/resources/connectors/v1/connections.mjs +84 -12
  63. package/resources/connectors/v1/connections.mjs.map +1 -1
  64. package/resources/connectors/v1/index.d.mts +5 -4
  65. package/resources/connectors/v1/index.d.mts.map +1 -1
  66. package/resources/connectors/v1/index.d.ts +5 -4
  67. package/resources/connectors/v1/index.d.ts.map +1 -1
  68. package/resources/connectors/v1/index.js +5 -3
  69. package/resources/connectors/v1/index.js.map +1 -1
  70. package/resources/connectors/v1/index.mjs +1 -0
  71. package/resources/connectors/v1/index.mjs.map +1 -1
  72. package/resources/connectors/v1/installations/index.d.mts +2 -1
  73. package/resources/connectors/v1/installations/index.d.mts.map +1 -1
  74. package/resources/connectors/v1/installations/index.d.ts +2 -1
  75. package/resources/connectors/v1/installations/index.d.ts.map +1 -1
  76. package/resources/connectors/v1/installations/index.js +3 -1
  77. package/resources/connectors/v1/installations/index.js.map +1 -1
  78. package/resources/connectors/v1/installations/index.mjs +2 -1
  79. package/resources/connectors/v1/installations/index.mjs.map +1 -1
  80. package/resources/connectors/v1/installations/installations.d.mts +32 -4
  81. package/resources/connectors/v1/installations/installations.d.mts.map +1 -1
  82. package/resources/connectors/v1/installations/installations.d.ts +32 -4
  83. package/resources/connectors/v1/installations/installations.d.ts.map +1 -1
  84. package/resources/connectors/v1/installations/installations.js +11 -7
  85. package/resources/connectors/v1/installations/installations.js.map +1 -1
  86. package/resources/connectors/v1/installations/installations.mjs +11 -7
  87. package/resources/connectors/v1/installations/installations.mjs.map +1 -1
  88. package/resources/connectors/v1/installations/tokens.d.mts +37 -0
  89. package/resources/connectors/v1/installations/tokens.d.mts.map +1 -0
  90. package/resources/connectors/v1/installations/tokens.d.ts +37 -0
  91. package/resources/connectors/v1/installations/tokens.d.ts.map +1 -0
  92. package/resources/connectors/v1/installations/tokens.js +35 -0
  93. package/resources/connectors/v1/installations/tokens.js.map +1 -0
  94. package/resources/connectors/v1/installations/tokens.mjs +31 -0
  95. package/resources/connectors/v1/installations/tokens.mjs.map +1 -0
  96. package/resources/connectors/v1/installations/vaults.d.mts +1 -1
  97. package/resources/connectors/v1/installations/vaults.d.ts +1 -1
  98. package/resources/connectors/v1/installations/vaults.js +1 -1
  99. package/resources/connectors/v1/installations/vaults.mjs +1 -1
  100. package/resources/connectors/v1/links.d.mts +80 -6
  101. package/resources/connectors/v1/links.d.mts.map +1 -1
  102. package/resources/connectors/v1/links.d.ts +80 -6
  103. package/resources/connectors/v1/links.d.ts.map +1 -1
  104. package/resources/connectors/v1/links.js +55 -11
  105. package/resources/connectors/v1/links.js.map +1 -1
  106. package/resources/connectors/v1/links.mjs +55 -11
  107. package/resources/connectors/v1/links.mjs.map +1 -1
  108. package/resources/connectors/v1/v1.d.mts +169 -20
  109. package/resources/connectors/v1/v1.d.mts.map +1 -1
  110. package/resources/connectors/v1/v1.d.ts +169 -20
  111. package/resources/connectors/v1/v1.d.ts.map +1 -1
  112. package/resources/connectors/v1/v1.js +44 -13
  113. package/resources/connectors/v1/v1.js.map +1 -1
  114. package/resources/connectors/v1/v1.mjs +45 -14
  115. package/resources/connectors/v1/v1.mjs.map +1 -1
  116. package/resources/index.d.mts +2 -2
  117. package/resources/index.d.mts.map +1 -1
  118. package/resources/index.d.ts +2 -2
  119. package/resources/index.d.ts.map +1 -1
  120. package/resources/index.js.map +1 -1
  121. package/resources/index.mjs.map +1 -1
  122. package/resources/linc/v1/index.d.mts +1 -1
  123. package/resources/linc/v1/index.d.mts.map +1 -1
  124. package/resources/linc/v1/index.d.ts +1 -1
  125. package/resources/linc/v1/index.d.ts.map +1 -1
  126. package/resources/linc/v1/index.js.map +1 -1
  127. package/resources/linc/v1/index.mjs.map +1 -1
  128. package/resources/linc/v1/sessions.d.mts +94 -12
  129. package/resources/linc/v1/sessions.d.mts.map +1 -1
  130. package/resources/linc/v1/sessions.d.ts +94 -12
  131. package/resources/linc/v1/sessions.d.ts.map +1 -1
  132. package/resources/linc/v1/sessions.js +25 -3
  133. package/resources/linc/v1/sessions.js.map +1 -1
  134. package/resources/linc/v1/sessions.mjs +25 -3
  135. package/resources/linc/v1/sessions.mjs.map +1 -1
  136. package/resources/linc/v1/v1.d.mts +2 -2
  137. package/resources/linc/v1/v1.d.mts.map +1 -1
  138. package/resources/linc/v1/v1.d.ts +2 -2
  139. package/resources/linc/v1/v1.d.ts.map +1 -1
  140. package/resources/linc/v1/v1.js.map +1 -1
  141. package/resources/linc/v1/v1.mjs.map +1 -1
  142. package/resources/llm/v1/chat.d.mts +23 -12
  143. package/resources/llm/v1/chat.d.mts.map +1 -1
  144. package/resources/llm/v1/chat.d.ts +23 -12
  145. package/resources/llm/v1/chat.d.ts.map +1 -1
  146. package/resources/llm/v1/chat.js +14 -2
  147. package/resources/llm/v1/chat.js.map +1 -1
  148. package/resources/llm/v1/chat.mjs +14 -2
  149. package/resources/llm/v1/chat.mjs.map +1 -1
  150. package/resources/llm/v1/v1.d.mts +3 -3
  151. package/resources/llm/v1/v1.d.ts +3 -3
  152. package/resources/llm/v1/v1.js +3 -3
  153. package/resources/llm/v1/v1.mjs +3 -3
  154. package/resources/matters/index.d.mts +1 -1
  155. package/resources/matters/index.d.mts.map +1 -1
  156. package/resources/matters/index.d.ts +1 -1
  157. package/resources/matters/index.d.ts.map +1 -1
  158. package/resources/matters/index.js.map +1 -1
  159. package/resources/matters/index.mjs +1 -1
  160. package/resources/matters/index.mjs.map +1 -1
  161. package/resources/matters/matters.d.mts +2 -2
  162. package/resources/matters/matters.d.mts.map +1 -1
  163. package/resources/matters/matters.d.ts +2 -2
  164. package/resources/matters/matters.d.ts.map +1 -1
  165. package/resources/matters/matters.js.map +1 -1
  166. package/resources/matters/matters.mjs.map +1 -1
  167. package/resources/matters/v1/content-purges.d.mts +69 -0
  168. package/resources/matters/v1/content-purges.d.mts.map +1 -0
  169. package/resources/matters/v1/content-purges.d.ts +69 -0
  170. package/resources/matters/v1/content-purges.d.ts.map +1 -0
  171. package/resources/matters/v1/content-purges.js +28 -0
  172. package/resources/matters/v1/content-purges.js.map +1 -0
  173. package/resources/matters/v1/content-purges.mjs +24 -0
  174. package/resources/matters/v1/content-purges.mjs.map +1 -0
  175. package/resources/matters/v1/events/subscriptions.d.mts +15 -1
  176. package/resources/matters/v1/events/subscriptions.d.mts.map +1 -1
  177. package/resources/matters/v1/events/subscriptions.d.ts +15 -1
  178. package/resources/matters/v1/events/subscriptions.d.ts.map +1 -1
  179. package/resources/matters/v1/events/subscriptions.js +6 -2
  180. package/resources/matters/v1/events/subscriptions.js.map +1 -1
  181. package/resources/matters/v1/events/subscriptions.mjs +6 -2
  182. package/resources/matters/v1/events/subscriptions.mjs.map +1 -1
  183. package/resources/matters/v1/index.d.mts +5 -3
  184. package/resources/matters/v1/index.d.mts.map +1 -1
  185. package/resources/matters/v1/index.d.ts +5 -3
  186. package/resources/matters/v1/index.d.ts.map +1 -1
  187. package/resources/matters/v1/index.js +5 -1
  188. package/resources/matters/v1/index.js.map +1 -1
  189. package/resources/matters/v1/index.mjs +3 -1
  190. package/resources/matters/v1/index.mjs.map +1 -1
  191. package/resources/matters/v1/parties.d.mts +29 -3
  192. package/resources/matters/v1/parties.d.mts.map +1 -1
  193. package/resources/matters/v1/parties.d.ts +29 -3
  194. package/resources/matters/v1/parties.d.ts.map +1 -1
  195. package/resources/matters/v1/parties.js +7 -6
  196. package/resources/matters/v1/parties.js.map +1 -1
  197. package/resources/matters/v1/parties.mjs +7 -6
  198. package/resources/matters/v1/parties.mjs.map +1 -1
  199. package/resources/matters/v1/purges.d.mts +43 -0
  200. package/resources/matters/v1/purges.d.mts.map +1 -0
  201. package/resources/matters/v1/purges.d.ts +43 -0
  202. package/resources/matters/v1/purges.d.ts.map +1 -0
  203. package/resources/matters/v1/purges.js +20 -0
  204. package/resources/matters/v1/purges.js.map +1 -0
  205. package/resources/matters/v1/purges.mjs +16 -0
  206. package/resources/matters/v1/purges.mjs.map +1 -0
  207. package/resources/matters/v1/v1.d.mts +74 -8
  208. package/resources/matters/v1/v1.d.mts.map +1 -1
  209. package/resources/matters/v1/v1.d.ts +74 -8
  210. package/resources/matters/v1/v1.d.ts.map +1 -1
  211. package/resources/matters/v1/v1.js +24 -6
  212. package/resources/matters/v1/v1.js.map +1 -1
  213. package/resources/matters/v1/v1.mjs +24 -6
  214. package/resources/matters/v1/v1.mjs.map +1 -1
  215. package/resources/matters/v1/work-items.d.mts +29 -3
  216. package/resources/matters/v1/work-items.d.mts.map +1 -1
  217. package/resources/matters/v1/work-items.d.ts +29 -3
  218. package/resources/matters/v1/work-items.d.ts.map +1 -1
  219. package/resources/matters/v1/work-items.js +7 -6
  220. package/resources/matters/v1/work-items.js.map +1 -1
  221. package/resources/matters/v1/work-items.mjs +7 -6
  222. package/resources/matters/v1/work-items.mjs.map +1 -1
  223. package/resources/skills/index.d.mts +1 -1
  224. package/resources/skills/index.d.mts.map +1 -1
  225. package/resources/skills/index.d.ts +1 -1
  226. package/resources/skills/index.d.ts.map +1 -1
  227. package/resources/skills/index.js.map +1 -1
  228. package/resources/skills/index.mjs.map +1 -1
  229. package/resources/skills/skills.d.mts +84 -4
  230. package/resources/skills/skills.d.mts.map +1 -1
  231. package/resources/skills/skills.d.ts +84 -4
  232. package/resources/skills/skills.d.ts.map +1 -1
  233. package/resources/skills/skills.js +7 -0
  234. package/resources/skills/skills.js.map +1 -1
  235. package/resources/skills/skills.mjs +7 -0
  236. package/resources/skills/skills.mjs.map +1 -1
  237. package/resources/vault/events/subscriptions.d.mts +12 -6
  238. package/resources/vault/events/subscriptions.d.mts.map +1 -1
  239. package/resources/vault/events/subscriptions.d.ts +12 -6
  240. package/resources/vault/events/subscriptions.d.ts.map +1 -1
  241. package/resources/vault/events/subscriptions.js +6 -2
  242. package/resources/vault/events/subscriptions.js.map +1 -1
  243. package/resources/vault/events/subscriptions.mjs +6 -2
  244. package/resources/vault/events/subscriptions.mjs.map +1 -1
  245. package/resources/vault/groups.d.mts +1 -1
  246. package/resources/vault/groups.d.ts +1 -1
  247. package/resources/vault/groups.js +1 -1
  248. package/resources/vault/groups.mjs +1 -1
  249. package/resources/vault/index.d.mts +3 -3
  250. package/resources/vault/index.d.mts.map +1 -1
  251. package/resources/vault/index.d.ts +3 -3
  252. package/resources/vault/index.d.ts.map +1 -1
  253. package/resources/vault/index.js.map +1 -1
  254. package/resources/vault/index.mjs.map +1 -1
  255. package/resources/vault/multipart.d.mts +49 -10
  256. package/resources/vault/multipart.d.mts.map +1 -1
  257. package/resources/vault/multipart.d.ts +49 -10
  258. package/resources/vault/multipart.d.ts.map +1 -1
  259. package/resources/vault/multipart.js +11 -12
  260. package/resources/vault/multipart.js.map +1 -1
  261. package/resources/vault/multipart.mjs +11 -12
  262. package/resources/vault/multipart.mjs.map +1 -1
  263. package/resources/vault/objects.d.mts +161 -15
  264. package/resources/vault/objects.d.mts.map +1 -1
  265. package/resources/vault/objects.d.ts +161 -15
  266. package/resources/vault/objects.d.ts.map +1 -1
  267. package/resources/vault/objects.js +46 -11
  268. package/resources/vault/objects.js.map +1 -1
  269. package/resources/vault/objects.mjs +46 -11
  270. package/resources/vault/objects.mjs.map +1 -1
  271. package/resources/vault/vault.d.mts +123 -62
  272. package/resources/vault/vault.d.mts.map +1 -1
  273. package/resources/vault/vault.d.ts +123 -62
  274. package/resources/vault/vault.d.ts.map +1 -1
  275. package/resources/vault/vault.js +21 -20
  276. package/resources/vault/vault.js.map +1 -1
  277. package/resources/vault/vault.mjs +21 -20
  278. package/resources/vault/vault.mjs.map +1 -1
  279. package/resources/voice/transcription.d.mts +4 -0
  280. package/resources/voice/transcription.d.mts.map +1 -1
  281. package/resources/voice/transcription.d.ts +4 -0
  282. package/resources/voice/transcription.d.ts.map +1 -1
  283. package/resources/webhooks/v1/endpoints.d.mts +33 -2
  284. package/resources/webhooks/v1/endpoints.d.mts.map +1 -1
  285. package/resources/webhooks/v1/endpoints.d.ts +33 -2
  286. package/resources/webhooks/v1/endpoints.d.ts.map +1 -1
  287. package/resources/webhooks/v1/endpoints.js +1 -5
  288. package/resources/webhooks/v1/endpoints.js.map +1 -1
  289. package/resources/webhooks/v1/endpoints.mjs +1 -5
  290. package/resources/webhooks/v1/endpoints.mjs.map +1 -1
  291. package/resources/webhooks/v1/index.d.mts +1 -1
  292. package/resources/webhooks/v1/index.d.mts.map +1 -1
  293. package/resources/webhooks/v1/index.d.ts +1 -1
  294. package/resources/webhooks/v1/index.d.ts.map +1 -1
  295. package/resources/webhooks/v1/index.js.map +1 -1
  296. package/resources/webhooks/v1/index.mjs.map +1 -1
  297. package/resources/webhooks/v1/v1.d.mts +2 -2
  298. package/resources/webhooks/v1/v1.d.mts.map +1 -1
  299. package/resources/webhooks/v1/v1.d.ts +2 -2
  300. package/resources/webhooks/v1/v1.d.ts.map +1 -1
  301. package/resources/webhooks/v1/v1.js.map +1 -1
  302. package/resources/webhooks/v1/v1.mjs.map +1 -1
  303. package/src/client.ts +7 -1
  304. package/src/resources/connectors/connectors.ts +15 -1
  305. package/src/resources/connectors/index.ts +4 -0
  306. package/src/resources/connectors/v1/applications/applications.ts +20 -0
  307. package/src/resources/connectors/v1/applications/index.ts +4 -0
  308. package/src/resources/connectors/v1/applications/keys.ts +58 -0
  309. package/src/resources/connectors/v1/applications.ts +3 -0
  310. package/src/resources/connectors/v1/connections.ts +227 -20
  311. package/src/resources/connectors/v1/index.ts +9 -0
  312. package/src/resources/connectors/v1/installations/index.ts +7 -1
  313. package/src/resources/connectors/v1/installations/installations.ts +50 -8
  314. package/src/resources/connectors/v1/installations/tokens.ts +61 -0
  315. package/src/resources/connectors/v1/installations/vaults.ts +1 -1
  316. package/src/resources/connectors/v1/links.ts +140 -11
  317. package/src/resources/connectors/v1/v1.ts +246 -16
  318. package/src/resources/index.ts +3 -0
  319. package/src/resources/linc/v1/index.ts +2 -0
  320. package/src/resources/linc/v1/sessions.ts +138 -12
  321. package/src/resources/linc/v1/v1.ts +4 -0
  322. package/src/resources/llm/v1/chat.ts +38 -13
  323. package/src/resources/llm/v1/v1.ts +3 -3
  324. package/src/resources/matters/index.ts +8 -1
  325. package/src/resources/matters/matters.ts +3 -1
  326. package/src/resources/matters/v1/content-purges.ts +115 -0
  327. package/src/resources/matters/v1/events/subscriptions.ts +21 -2
  328. package/src/resources/matters/v1/index.ts +17 -2
  329. package/src/resources/matters/v1/parties.ts +44 -8
  330. package/src/resources/matters/v1/purges.ts +66 -0
  331. package/src/resources/matters/v1/v1.ts +117 -10
  332. package/src/resources/matters/v1/work-items.ts +37 -7
  333. package/src/resources/skills/index.ts +2 -0
  334. package/src/resources/skills/skills.ts +115 -3
  335. package/src/resources/vault/events/subscriptions.ts +18 -7
  336. package/src/resources/vault/groups.ts +1 -1
  337. package/src/resources/vault/index.ts +4 -0
  338. package/src/resources/vault/multipart.ts +59 -14
  339. package/src/resources/vault/objects.ts +203 -16
  340. package/src/resources/vault/vault.ts +148 -67
  341. package/src/resources/voice/transcription.ts +5 -0
  342. package/src/resources/webhooks/v1/endpoints.ts +52 -6
  343. package/src/resources/webhooks/v1/index.ts +1 -0
  344. package/src/resources/webhooks/v1/v1.ts +2 -0
  345. package/src/version.ts +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
@@ -7,7 +7,7 @@ import { RequestOptions } from '../../internal/request-options';
7
7
  import { path } from '../../internal/utils/path';
8
8
 
9
9
  /**
10
- * Secure document storage with semantic search and GraphRAG
10
+ * Secure document storage with semantic search
11
11
  */
12
12
  export class Multipart extends APIResource {
13
13
  /**
@@ -36,20 +36,23 @@ export class Multipart extends APIResource {
36
36
  *
37
37
  * @example
38
38
  * ```ts
39
- * await client.vault.multipart.complete('id', {
40
- * objectId: 'objectId',
41
- * parts: [{ etag: 'etag', partNumber: 1 }],
42
- * sizeBytes: 1,
43
- * uploadId: 'uploadId',
44
- * });
39
+ * const response = await client.vault.multipart.complete(
40
+ * 'id',
41
+ * {
42
+ * objectId: 'objectId',
43
+ * parts: [{ etag: 'etag', partNumber: 1 }],
44
+ * sizeBytes: 1,
45
+ * uploadId: 'uploadId',
46
+ * },
47
+ * );
45
48
  * ```
46
49
  */
47
- complete(id: string, body: MultipartCompleteParams, options?: RequestOptions): APIPromise<void> {
48
- return this._client.post(path`/vault/${id}/multipart/complete`, {
49
- body,
50
- ...options,
51
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
52
- });
50
+ complete(
51
+ id: string,
52
+ body: MultipartCompleteParams,
53
+ options?: RequestOptions,
54
+ ): APIPromise<MultipartCompleteResponse> {
55
+ return this._client.post(path`/vault/${id}/multipart/complete`, { body, ...options });
53
56
  }
54
57
 
55
58
  /**
@@ -95,6 +98,30 @@ export class Multipart extends APIResource {
95
98
  }
96
99
  }
97
100
 
101
+ export interface MultipartCompleteResponse {
102
+ /**
103
+ * Present when autoIngest was requested
104
+ */
105
+ ingest?: MultipartCompleteResponse.Ingest;
106
+
107
+ success?: boolean;
108
+ }
109
+
110
+ export namespace MultipartCompleteResponse {
111
+ /**
112
+ * Present when autoIngest was requested
113
+ */
114
+ export interface Ingest {
115
+ error?: string;
116
+
117
+ statusCode?: number;
118
+
119
+ triggered?: boolean;
120
+
121
+ workflowId?: string | null;
122
+ }
123
+ }
124
+
98
125
  export interface MultipartGetPartURLsResponse {
99
126
  urls?: Array<MultipartGetPartURLsResponse.URL>;
100
127
  }
@@ -108,6 +135,11 @@ export namespace MultipartGetPartURLsResponse {
108
135
  }
109
136
 
110
137
  export interface MultipartInitResponse {
138
+ /**
139
+ * Client-defined provenance metadata associated with the file
140
+ */
141
+ file_origin?: { [key: string]: unknown } | null;
142
+
111
143
  next_step?: string;
112
144
 
113
145
  objectId?: string;
@@ -145,6 +177,12 @@ export interface MultipartCompleteParams {
145
177
  sizeBytes: number;
146
178
 
147
179
  uploadId: string;
180
+
181
+ /**
182
+ * Start ingestion after completion when auto_index is enabled. The ingest response
183
+ * reports whether a workflow was started.
184
+ */
185
+ autoIngest?: boolean;
148
186
  }
149
187
 
150
188
  export namespace MultipartCompleteParams {
@@ -208,6 +246,12 @@ export interface MultipartInitParams {
208
246
  */
209
247
  auto_index?: boolean;
210
248
 
249
+ /**
250
+ * Optional client-defined provenance metadata. Returned with the object and
251
+ * queryable through the object-list API.
252
+ */
253
+ file_origin?: { [key: string]: unknown };
254
+
211
255
  /**
212
256
  * Marks the file as AI-generated work product (e.g. uploaded by an agent) rather
213
257
  * than a user-provided source document. Persisted on the object and returned by
@@ -226,13 +270,14 @@ export interface MultipartInitParams {
226
270
  partSizeBytes?: number;
227
271
 
228
272
  /**
229
- * Optional folder path for hierarchy preservation
273
+ * Optional folder path, excluding the filename, for hierarchy preservation
230
274
  */
231
275
  path?: string;
232
276
  }
233
277
 
234
278
  export declare namespace Multipart {
235
279
  export {
280
+ type MultipartCompleteResponse as MultipartCompleteResponse,
236
281
  type MultipartGetPartURLsResponse as MultipartGetPartURLsResponse,
237
282
  type MultipartInitResponse as MultipartInitResponse,
238
283
  type MultipartAbortParams as MultipartAbortParams,
@@ -33,9 +33,9 @@ export class Objects extends APIResource {
33
33
  }
34
34
 
35
35
  /**
36
- * Update a document's filename, path, or metadata. Use this to rename files or
37
- * organize them into virtual folders. The path is stored in metadata.path and can
38
- * be used to build folder hierarchies in your application.
36
+ * Update a document's filename, folder path, or metadata. Use this to rename files
37
+ * or organize them into virtual folders. The path is a folder, not a complete file
38
+ * path, and is stored separately from the filename.
39
39
  *
40
40
  * @example
41
41
  * ```ts
@@ -59,8 +59,10 @@ export class Objects extends APIResource {
59
59
  }
60
60
 
61
61
  /**
62
- * Retrieve all objects stored in a specific vault, including document metadata,
63
- * ingestion status, and processing statistics.
62
+ * Retrieve the objects stored in a specific vault, oldest first, including
63
+ * document metadata, ingestion status, and processing statistics. Pass `limit` to
64
+ * page through large vaults: when `pagination.has_more` is true, the response is
65
+ * incomplete and `pagination.next_cursor` fetches the rest.
64
66
  *
65
67
  * @example
66
68
  * ```ts
@@ -98,10 +100,11 @@ export class Objects extends APIResource {
98
100
 
99
101
  /**
100
102
  * Merges one or more PDF vault objects onto the end of an existing PDF vault
101
- * object, overwriting the target in place before returning. Optionally rewrites
102
- * citation links in the original target into internal PDF jumps and adds back
103
- * links on appended pages. The target object’s ingestion state is not affected;
104
- * appended pages are not searchable.
103
+ * object. Sync mode is the default and overwrites the target in place before
104
+ * returning. Async mode returns 202 immediately and reports completion through
105
+ * vault.object.append webhooks. Optionally rewrites citation links in the original
106
+ * target into internal PDF jumps and adds back links on appended pages. The target
107
+ * object’s ingestion state is not affected; appended pages are not searchable.
105
108
  *
106
109
  * @example
107
110
  * ```ts
@@ -116,8 +119,15 @@ export class Objects extends APIResource {
116
119
  params: ObjectAppendParams,
117
120
  options?: RequestOptions,
118
121
  ): APIPromise<ObjectAppendResponse> {
119
- const { id, ...body } = params;
120
- return this._client.post(path`/vault/${id}/objects/${objectID}/append`, { body, ...options });
122
+ const { id, 'Idempotency-Key': idempotencyKey, ...body } = params;
123
+ return this._client.post(path`/vault/${id}/objects/${objectID}/append`, {
124
+ body,
125
+ ...options,
126
+ headers: buildHeaders([
127
+ { ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
128
+ options?.headers,
129
+ ]),
130
+ });
121
131
  }
122
132
 
123
133
  /**
@@ -292,6 +302,32 @@ export class Objects extends APIResource {
292
302
  headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
293
303
  });
294
304
  }
305
+
306
+ /**
307
+ * Copies storage and search data without downloading the file through the client.
308
+ * Moves preserve object IDs; copies return new IDs. Extracted ZIP children travel
309
+ * with their parent. Retry failed objects with the same Idempotency-Key;
310
+ * successful objects are replayed without transfer. Object ID order does not
311
+ * affect the key.
312
+ *
313
+ * @example
314
+ * ```ts
315
+ * const response = await client.vault.objects.move('id', {
316
+ * destinationVaultId: 'destinationVaultId',
317
+ * mode: 'move',
318
+ * objectIds: ['string'],
319
+ * 'Idempotency-Key': 'Idempotency-Key',
320
+ * });
321
+ * ```
322
+ */
323
+ move(id: string, params: ObjectMoveParams, options?: RequestOptions): APIPromise<ObjectMoveResponse> {
324
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
325
+ return this._client.post(path`/vault/${id}/objects/move`, {
326
+ body,
327
+ ...options,
328
+ headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
329
+ });
330
+ }
295
331
  }
296
332
 
297
333
  export interface ObjectRetrieveResponse {
@@ -340,6 +376,11 @@ export interface ObjectRetrieveResponse {
340
376
  */
341
377
  chunkCount?: number;
342
378
 
379
+ /**
380
+ * Client-defined provenance metadata associated with the file
381
+ */
382
+ file_origin?: { [key: string]: unknown } | null;
383
+
343
384
  /**
344
385
  * Error details when ingestion fails
345
386
  */
@@ -435,16 +476,25 @@ export interface ObjectUpdateResponse {
435
476
 
436
477
  export interface ObjectListResponse {
437
478
  /**
438
- * Total number of objects in the vault
479
+ * Number of objects in this response. Equals the vault total only when
480
+ * `pagination.has_more` is false; use `totals.objects` for the total across pages.
439
481
  */
440
482
  count: number;
441
483
 
442
484
  objects: Array<ObjectListResponse.Object>;
443
485
 
486
+ pagination: ObjectListResponse.Pagination;
487
+
444
488
  /**
445
489
  * The ID of the vault
446
490
  */
447
491
  vaultId: string;
492
+
493
+ /**
494
+ * Present only with `include_totals=true`. Covers every object matching the
495
+ * filters, across all pages.
496
+ */
497
+ totals?: ObjectListResponse.Totals;
448
498
  }
449
499
 
450
500
  export namespace ObjectListResponse {
@@ -479,6 +529,11 @@ export namespace ObjectListResponse {
479
529
  */
480
530
  chunkCount?: number;
481
531
 
532
+ /**
533
+ * Client-defined provenance metadata associated with the file
534
+ */
535
+ file_origin?: { [key: string]: unknown } | null;
536
+
482
537
  /**
483
538
  * Processing completion timestamp
484
539
  */
@@ -495,7 +550,8 @@ export namespace ObjectListResponse {
495
550
  ingestionStartedAt?: string | null;
496
551
 
497
552
  /**
498
- * Durable workflow run ID for the active or last ingestion attempt
553
+ * Durable workflow run ID for the active or last ingestion attempt. Null while a
554
+ * dispatch claim is being reconciled or when no workflow applies.
499
555
  */
500
556
  ingestionWorkflowId?: string | null;
501
557
 
@@ -539,6 +595,39 @@ export namespace ObjectListResponse {
539
595
  */
540
596
  vectorCount?: number;
541
597
  }
598
+
599
+ export interface Pagination {
600
+ /**
601
+ * Whether more objects exist beyond this page.
602
+ */
603
+ has_more: boolean;
604
+
605
+ /**
606
+ * Page size applied, or null when every object was returned.
607
+ */
608
+ limit: number | null;
609
+
610
+ /**
611
+ * Pass as `cursor` to fetch the next page. Null on the final page.
612
+ */
613
+ next_cursor: string | null;
614
+ }
615
+
616
+ /**
617
+ * Present only with `include_totals=true`. Covers every object matching the
618
+ * filters, across all pages.
619
+ */
620
+ export interface Totals {
621
+ /**
622
+ * Number of matching objects
623
+ */
624
+ objects?: number;
625
+
626
+ /**
627
+ * Combined size of matching objects
628
+ */
629
+ totalBytes?: number;
630
+ }
542
631
  }
543
632
 
544
633
  export interface ObjectDeleteResponse {
@@ -574,6 +663,16 @@ export namespace ObjectDeleteResponse {
574
663
  export interface ObjectAppendResponse {
575
664
  id?: string;
576
665
 
666
+ /**
667
+ * Last 1-indexed page added by this append operation.
668
+ */
669
+ appendedPageEnd?: number;
670
+
671
+ /**
672
+ * First 1-indexed page added by this append operation.
673
+ */
674
+ appendedPageStart?: number;
675
+
577
676
  bates?: unknown;
578
677
 
579
678
  checksum?: string;
@@ -902,6 +1001,16 @@ export interface ObjectMergeResponse {
902
1001
  workflowId?: string;
903
1002
  }
904
1003
 
1004
+ export interface ObjectMoveResponse {
1005
+ destinationVaultId?: string;
1006
+
1007
+ mode?: string;
1008
+
1009
+ results?: Array<unknown>;
1010
+
1011
+ sourceVaultId?: string;
1012
+ }
1013
+
905
1014
  export interface ObjectRetrieveParams {
906
1015
  /**
907
1016
  * Vault ID
@@ -926,18 +1035,48 @@ export interface ObjectUpdateParams {
926
1035
  metadata?: unknown;
927
1036
 
928
1037
  /**
929
- * Body param: Folder path for hierarchy preservation (e.g.,
930
- * '/Discovery/Depositions'). Set to null or empty string to remove.
1038
+ * Body param: Folder path, excluding the filename, for hierarchy preservation
1039
+ * (e.g., '/Discovery/Depositions'). Set to null or empty string to remove.
931
1040
  */
932
1041
  path?: string | null;
933
1042
  }
934
1043
 
935
1044
  export interface ObjectListParams {
1045
+ /**
1046
+ * Opaque continuation cursor from `pagination.next_cursor` of the previous page.
1047
+ * Must be replayed with the same API key scope and the same `query`, `file_origin`
1048
+ * and `includeUnconfirmed` values that produced it.
1049
+ */
1050
+ cursor?: string;
1051
+
1052
+ /**
1053
+ * JSON-encoded provenance object used as a partial match. For example,
1054
+ * {"provider":"clio"} returns objects whose file_origin contains that value.
1055
+ */
1056
+ file_origin?: string;
1057
+
1058
+ /**
1059
+ * When `true`, adds `totals` covering every object matching the filters, not just
1060
+ * this page. Request it once per filter change rather than on every page.
1061
+ */
1062
+ include_totals?: boolean;
1063
+
936
1064
  /**
937
1065
  * Include placeholders for uploads that were never completed (awaiting_upload) or
938
1066
  * were cancelled (aborted). Excluded by default.
939
1067
  */
940
1068
  includeUnconfirmed?: boolean;
1069
+
1070
+ /**
1071
+ * Objects per page (1-200). Omit to receive every object. Supplying a cursor
1072
+ * without a limit uses 50.
1073
+ */
1074
+ limit?: number;
1075
+
1076
+ /**
1077
+ * Case-insensitive substring match on the filename.
1078
+ */
1079
+ query?: string;
941
1080
  }
942
1081
 
943
1082
  export interface ObjectDeleteParams {
@@ -961,7 +1100,8 @@ export interface ObjectAppendParams {
961
1100
 
962
1101
  /**
963
1102
  * Body param: Vault object IDs whose pages will be appended onto the target
964
- * object, in order. Must not include the target object itself.
1103
+ * object, in order. Must not include the target object itself. Sync mode accepts
1104
+ * at most 20; async mode accepts at most 1000.
965
1105
  */
966
1106
  appendObjectIds: Array<string>;
967
1107
 
@@ -983,12 +1123,30 @@ export interface ObjectAppendParams {
983
1123
  */
984
1124
  bates?: ObjectAppendParams.Bates;
985
1125
 
1126
+ /**
1127
+ * Body param: Caller-provided correlation value returned in async responses and
1128
+ * webhooks.
1129
+ */
1130
+ clientReference?: string;
1131
+
1132
+ /**
1133
+ * Body param: Use async to return immediately and receive completion through
1134
+ * vault.object.append webhooks.
1135
+ */
1136
+ mode?: 'sync' | 'async';
1137
+
986
1138
  /**
987
1139
  * Body param: When true, rewrites links in the target object to internal PDF jumps
988
1140
  * when the URL contains exactly one appended object ID as a standalone query
989
1141
  * parameter value or decoded path segment.
990
1142
  */
991
1143
  rewriteLinks?: boolean;
1144
+
1145
+ /**
1146
+ * Header param: Required when mode is async; stable key for safely retrying the
1147
+ * append
1148
+ */
1149
+ 'Idempotency-Key'?: string;
992
1150
  }
993
1151
 
994
1152
  export namespace ObjectAppendParams {
@@ -1158,6 +1316,33 @@ export namespace ObjectMergeParams {
1158
1316
  }
1159
1317
  }
1160
1318
 
1319
+ export interface ObjectMoveParams {
1320
+ /**
1321
+ * Body param
1322
+ */
1323
+ destinationVaultId: string;
1324
+
1325
+ /**
1326
+ * Body param
1327
+ */
1328
+ mode: 'move' | 'copy';
1329
+
1330
+ /**
1331
+ * Body param
1332
+ */
1333
+ objectIds: Array<string>;
1334
+
1335
+ /**
1336
+ * Header param
1337
+ */
1338
+ 'Idempotency-Key': string;
1339
+
1340
+ /**
1341
+ * Body param
1342
+ */
1343
+ path?: string | null;
1344
+ }
1345
+
1161
1346
  export declare namespace Objects {
1162
1347
  export {
1163
1348
  type ObjectRetrieveResponse as ObjectRetrieveResponse,
@@ -1171,6 +1356,7 @@ export declare namespace Objects {
1171
1356
  type ObjectGetPagesResponse as ObjectGetPagesResponse,
1172
1357
  type ObjectGetTextResponse as ObjectGetTextResponse,
1173
1358
  type ObjectMergeResponse as ObjectMergeResponse,
1359
+ type ObjectMoveResponse as ObjectMoveResponse,
1174
1360
  type ObjectRetrieveParams as ObjectRetrieveParams,
1175
1361
  type ObjectUpdateParams as ObjectUpdateParams,
1176
1362
  type ObjectListParams as ObjectListParams,
@@ -1183,5 +1369,6 @@ export declare namespace Objects {
1183
1369
  type ObjectGetPagesParams as ObjectGetPagesParams,
1184
1370
  type ObjectGetTextParams as ObjectGetTextParams,
1185
1371
  type ObjectMergeParams as ObjectMergeParams,
1372
+ type ObjectMoveParams as ObjectMoveParams,
1186
1373
  };
1187
1374
  }