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
@@ -0,0 +1,66 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import { APIPromise } from '../../../core/api-promise';
5
+ import { RequestOptions } from '../../../internal/request-options';
6
+ import { path } from '../../../internal/utils/path';
7
+
8
+ /**
9
+ * Matter-native legal workspaces and orchestration primitives
10
+ */
11
+ export class Purges extends APIResource {
12
+ /**
13
+ * Returns a Matter purge receipt for manual diagnostics. Integrations should
14
+ * subscribe to Matter purge webhooks rather than polling this route.
15
+ */
16
+ retrieve(purgeID: string, options?: RequestOptions): APIPromise<PurgeRetrieveResponse> {
17
+ return this._client.get(path`/matters/v1/purges/${purgeID}`, options);
18
+ }
19
+ }
20
+
21
+ export interface PurgeRetrieveResponse {
22
+ attempt: number;
23
+
24
+ matter_id: string;
25
+
26
+ purge_id: string;
27
+
28
+ status: 'queued' | 'in_progress' | 'failed' | 'completed';
29
+
30
+ vault_id: string;
31
+
32
+ workflow_id: string | null;
33
+
34
+ completed_at?: string | null;
35
+
36
+ counts?: PurgeRetrieveResponse.Counts;
37
+
38
+ failed_at?: string | null;
39
+
40
+ failure_code?: string | null;
41
+
42
+ requested_at?: string;
43
+
44
+ started_at?: string | null;
45
+
46
+ /**
47
+ * Stable ID of the failed or completed terminal webhook event
48
+ */
49
+ terminal_event_id?: string | null;
50
+ }
51
+
52
+ export namespace PurgeRetrieveResponse {
53
+ export interface Counts {
54
+ chats?: number;
55
+
56
+ objects?: number;
57
+
58
+ sessions?: number;
59
+
60
+ transcriptions?: number;
61
+ }
62
+ }
63
+
64
+ export declare namespace Purges {
65
+ export { type PurgeRetrieveResponse as PurgeRetrieveResponse };
66
+ }
@@ -3,12 +3,21 @@
3
3
  import { APIResource } from '../../../core/resource';
4
4
  import * as AgentTypesAPI from './agent-types';
5
5
  import { AgentTypeCreateParams, AgentTypeListParams, AgentTypes } from './agent-types';
6
+ import * as ContentPurgesAPI from './content-purges';
7
+ import {
8
+ ContentPurgeCreateParams,
9
+ ContentPurgeCreateResponse,
10
+ ContentPurgeRetrieveResponse,
11
+ ContentPurges,
12
+ } from './content-purges';
6
13
  import * as LogAPI from './log';
7
14
  import { Log, LogCreateParams, LogExportParams, LogExportResponse, LogListParams } from './log';
8
15
  import * as MatterPartiesAPI from './matter-parties';
9
16
  import { MatterParties, MatterPartyCreateParams } from './matter-parties';
10
17
  import * as PartiesAPI from './parties';
11
- import { Parties, PartyCreateParams, PartyListParams } from './parties';
18
+ import { Parties, PartyCreateParams, PartyListParams, PartyListResponse } from './parties';
19
+ import * as PurgesAPI from './purges';
20
+ import { PurgeRetrieveResponse, Purges } from './purges';
12
21
  import * as SharesAPI from './shares';
13
22
  import { ShareCreateParams, ShareDeleteParams, Shares } from './shares';
14
23
  import * as TypesAPI from './types';
@@ -18,6 +27,7 @@ import {
18
27
  WorkItemCreateParams,
19
28
  WorkItemDecideParams,
20
29
  WorkItemListParams,
30
+ WorkItemListResponse,
21
31
  WorkItemRetrieveParams,
22
32
  WorkItemUpdateParams,
23
33
  WorkItems,
@@ -33,6 +43,8 @@ import { path } from '../../../internal/utils/path';
33
43
  * Matter-native legal workspaces and orchestration primitives
34
44
  */
35
45
  export class V1 extends APIResource {
46
+ purges: PurgesAPI.Purges = new PurgesAPI.Purges(this._client);
47
+ contentPurges: ContentPurgesAPI.ContentPurges = new ContentPurgesAPI.ContentPurges(this._client);
36
48
  agentTypes: AgentTypesAPI.AgentTypes = new AgentTypesAPI.AgentTypes(this._client);
37
49
  parties: PartiesAPI.Parties = new PartiesAPI.Parties(this._client);
38
50
  types: TypesAPI.Types = new TypesAPI.Types(this._client);
@@ -75,14 +87,84 @@ export class V1 extends APIResource {
75
87
  }
76
88
 
77
89
  /**
78
- * List matters for the authenticated organization.
90
+ * List matters for the authenticated organization, newest update first. Pagination
91
+ * is opt-in: pass `limit` (1-200) to receive a bounded page, then replay
92
+ * `pagination.next_cursor` as `?cursor=` while `pagination.has_more` is true.
93
+ * Cursors are opaque and are only valid for the exact filter set they were issued
94
+ * under. A request with neither `limit` nor `cursor` still returns every matter,
95
+ * and `pagination.limit` is null. That default will become a bounded page in a
96
+ * future release — paginate now to avoid the change.
79
97
  */
80
- list(query: V1ListParams | null | undefined = {}, options?: RequestOptions): APIPromise<void> {
81
- return this._client.get('/matters/v1', {
82
- query,
83
- ...options,
84
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
85
- });
98
+ list(query: V1ListParams | null | undefined = {}, options?: RequestOptions): APIPromise<V1ListResponse> {
99
+ return this._client.get('/matters/v1', { query, ...options });
100
+ }
101
+
102
+ /**
103
+ * Queues a durable, idempotent purge of a Matter and all linked live content. Use
104
+ * matter purge webhooks for status changes; the inspection route is intended for
105
+ * manual diagnostics only.
106
+ */
107
+ delete(id: string, options?: RequestOptions): APIPromise<V1DeleteResponse> {
108
+ return this._client.delete(path`/matters/v1/${id}`, options);
109
+ }
110
+ }
111
+
112
+ export interface V1ListResponse {
113
+ data?: Array<unknown>;
114
+
115
+ pagination?: V1ListResponse.Pagination;
116
+ }
117
+
118
+ export namespace V1ListResponse {
119
+ export interface Pagination {
120
+ has_more?: boolean;
121
+
122
+ limit?: number | null;
123
+
124
+ next_cursor?: string | null;
125
+ }
126
+ }
127
+
128
+ export interface V1DeleteResponse {
129
+ attempt: number;
130
+
131
+ matter_id: string;
132
+
133
+ purge_id: string;
134
+
135
+ status: 'queued' | 'in_progress' | 'failed' | 'completed';
136
+
137
+ vault_id: string;
138
+
139
+ workflow_id: string | null;
140
+
141
+ completed_at?: string | null;
142
+
143
+ counts?: V1DeleteResponse.Counts;
144
+
145
+ failed_at?: string | null;
146
+
147
+ failure_code?: string | null;
148
+
149
+ requested_at?: string;
150
+
151
+ started_at?: string | null;
152
+
153
+ /**
154
+ * Stable ID of the failed or completed terminal webhook event
155
+ */
156
+ terminal_event_id?: string | null;
157
+ }
158
+
159
+ export namespace V1DeleteResponse {
160
+ export interface Counts {
161
+ chats?: number;
162
+
163
+ objects?: number;
164
+
165
+ sessions?: number;
166
+
167
+ transcriptions?: number;
86
168
  }
87
169
  }
88
170
 
@@ -126,8 +208,6 @@ export namespace V1CreateParams {
126
208
  export interface Vault {
127
209
  description?: string;
128
210
 
129
- enableGraph?: boolean;
130
-
131
211
  enableIndexing?: boolean;
132
212
 
133
213
  metadata?: { [key: string]: unknown };
@@ -169,6 +249,18 @@ export interface V1UpdateParams {
169
249
  }
170
250
 
171
251
  export interface V1ListParams {
252
+ /**
253
+ * Opaque continuation cursor from `pagination.next_cursor` of the previous page.
254
+ * Must be replayed with the same filters that produced it.
255
+ */
256
+ cursor?: string;
257
+
258
+ /**
259
+ * Matters per page (1-200). Omit to receive every matter. Supplying a cursor
260
+ * without a limit uses 50.
261
+ */
262
+ limit?: number;
263
+
172
264
  matter_type?: string;
173
265
 
174
266
  practice_area?: string;
@@ -178,6 +270,8 @@ export interface V1ListParams {
178
270
  status?: string;
179
271
  }
180
272
 
273
+ V1.Purges = Purges;
274
+ V1.ContentPurges = ContentPurges;
181
275
  V1.AgentTypes = AgentTypes;
182
276
  V1.Parties = Parties;
183
277
  V1.Types = Types;
@@ -189,11 +283,22 @@ V1.WorkItems = WorkItems;
189
283
 
190
284
  export declare namespace V1 {
191
285
  export {
286
+ type V1ListResponse as V1ListResponse,
287
+ type V1DeleteResponse as V1DeleteResponse,
192
288
  type V1CreateParams as V1CreateParams,
193
289
  type V1UpdateParams as V1UpdateParams,
194
290
  type V1ListParams as V1ListParams,
195
291
  };
196
292
 
293
+ export { Purges as Purges, type PurgeRetrieveResponse as PurgeRetrieveResponse };
294
+
295
+ export {
296
+ ContentPurges as ContentPurges,
297
+ type ContentPurgeCreateResponse as ContentPurgeCreateResponse,
298
+ type ContentPurgeRetrieveResponse as ContentPurgeRetrieveResponse,
299
+ type ContentPurgeCreateParams as ContentPurgeCreateParams,
300
+ };
301
+
197
302
  export {
198
303
  AgentTypes as AgentTypes,
199
304
  type AgentTypeCreateParams as AgentTypeCreateParams,
@@ -202,6 +307,7 @@ export declare namespace V1 {
202
307
 
203
308
  export {
204
309
  Parties as Parties,
310
+ type PartyListResponse as PartyListResponse,
205
311
  type PartyCreateParams as PartyCreateParams,
206
312
  type PartyListParams as PartyListParams,
207
313
  };
@@ -233,6 +339,7 @@ export declare namespace V1 {
233
339
 
234
340
  export {
235
341
  WorkItems as WorkItems,
342
+ type WorkItemListResponse as WorkItemListResponse,
236
343
  type WorkItemCreateParams as WorkItemCreateParams,
237
344
  type WorkItemRetrieveParams as WorkItemRetrieveParams,
238
345
  type WorkItemUpdateParams as WorkItemUpdateParams,
@@ -45,18 +45,19 @@ export class WorkItems extends APIResource {
45
45
  }
46
46
 
47
47
  /**
48
- * List active work items for a matter.
48
+ * List active work items for a matter, newest update first. Pagination is opt-in:
49
+ * pass `limit` (1-200) to receive a bounded page, then replay
50
+ * `pagination.next_cursor` as `?cursor=` while `pagination.has_more` is true. A
51
+ * request with neither `limit` nor `cursor` still returns every work item, and
52
+ * `pagination.limit` is null. That default will become a bounded page in a future
53
+ * release — paginate now to avoid the change.
49
54
  */
50
55
  list(
51
56
  id: string,
52
57
  query: WorkItemListParams | null | undefined = {},
53
58
  options?: RequestOptions,
54
- ): APIPromise<void> {
55
- return this._client.get(path`/matters/v1/${id}/work-items`, {
56
- query,
57
- ...options,
58
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
59
- });
59
+ ): APIPromise<WorkItemListResponse> {
60
+ return this._client.get(path`/matters/v1/${id}/work-items`, { query, ...options });
60
61
  }
61
62
 
62
63
  /**
@@ -72,6 +73,22 @@ export class WorkItems extends APIResource {
72
73
  }
73
74
  }
74
75
 
76
+ export interface WorkItemListResponse {
77
+ data?: Array<unknown>;
78
+
79
+ pagination?: WorkItemListResponse.Pagination;
80
+ }
81
+
82
+ export namespace WorkItemListResponse {
83
+ export interface Pagination {
84
+ has_more?: boolean;
85
+
86
+ limit?: number | null;
87
+
88
+ next_cursor?: string | null;
89
+ }
90
+ }
91
+
75
92
  export interface WorkItemCreateParams {
76
93
  title: string;
77
94
 
@@ -192,6 +209,18 @@ export interface WorkItemUpdateParams {
192
209
  export interface WorkItemListParams {
193
210
  assignee_id?: string;
194
211
 
212
+ /**
213
+ * Opaque continuation cursor from `pagination.next_cursor` of the previous page.
214
+ * Must be replayed with the same filters that produced it.
215
+ */
216
+ cursor?: string;
217
+
218
+ /**
219
+ * Work items per page (1-200). Omit to receive every work item. Supplying a cursor
220
+ * without a limit uses 50.
221
+ */
222
+ limit?: number;
223
+
195
224
  status?: string;
196
225
  }
197
226
 
@@ -219,6 +248,7 @@ export interface WorkItemDecideParams {
219
248
 
220
249
  export declare namespace WorkItems {
221
250
  export {
251
+ type WorkItemListResponse as WorkItemListResponse,
222
252
  type WorkItemCreateParams as WorkItemCreateParams,
223
253
  type WorkItemRetrieveParams as WorkItemRetrieveParams,
224
254
  type WorkItemUpdateParams as WorkItemUpdateParams,
@@ -8,11 +8,13 @@ export {
8
8
  type SkillCreateResponse,
9
9
  type SkillUpdateResponse,
10
10
  type SkillDeleteResponse,
11
+ type SkillCatalogResponse,
11
12
  type SkillExportResponse,
12
13
  type SkillReadResponse,
13
14
  type SkillResolveResponse,
14
15
  type SkillCreateParams,
15
16
  type SkillUpdateParams,
17
+ type SkillCatalogParams,
16
18
  type SkillExportParams,
17
19
  type SkillResolveParams,
18
20
  } from './skills';
@@ -37,6 +37,17 @@ export class Skills extends APIResource {
37
37
  return this._client.delete(path`/skills/${slug}`, options);
38
38
  }
39
39
 
40
+ /**
41
+ * Browse public and organization skills using one authenticated catalog. Returns
42
+ * metadata only; skill content is loaded separately.
43
+ */
44
+ catalog(
45
+ query: SkillCatalogParams | null | undefined = {},
46
+ options?: RequestOptions,
47
+ ): APIPromise<SkillCatalogResponse> {
48
+ return this._client.get('/skills/catalog', { query, ...options });
49
+ }
50
+
40
51
  /**
41
52
  * Export a skill as an installable filesystem tree for sandbox runtimes.
42
53
  * Authenticated org-scoped custom skills are resolved before curated skills.
@@ -74,6 +85,11 @@ export interface ReadResponseFileBundle {
74
85
  root_slug: string;
75
86
 
76
87
  content_type?: string | null;
88
+
89
+ /**
90
+ * Encoding of the returned content field.
91
+ */
92
+ encoding?: 'utf8' | 'base64';
77
93
  }
78
94
 
79
95
  export interface ReadResponseRootBundle {
@@ -90,6 +106,11 @@ export namespace ReadResponseRootBundle {
90
106
 
91
107
  content_type?: string | null;
92
108
 
109
+ /**
110
+ * Encoding used by content when this companion slug is read.
111
+ */
112
+ encoding?: 'utf8' | 'base64';
113
+
93
114
  name?: string | null;
94
115
  }
95
116
  }
@@ -140,6 +161,38 @@ export interface SkillDeleteResponse {
140
161
  slug?: string;
141
162
  }
142
163
 
164
+ export interface SkillCatalogResponse {
165
+ count?: number;
166
+
167
+ hasMore?: boolean;
168
+
169
+ limit?: number;
170
+
171
+ nextOffset?: number | null;
172
+
173
+ offset?: number;
174
+
175
+ query?: string;
176
+
177
+ skills?: Array<SkillCatalogResponse.Skill>;
178
+
179
+ total?: number;
180
+ }
181
+
182
+ export namespace SkillCatalogResponse {
183
+ export interface Skill {
184
+ description?: string;
185
+
186
+ name?: string;
187
+
188
+ slug?: string;
189
+
190
+ source?: 'custom' | 'curated';
191
+
192
+ tags?: Array<string>;
193
+ }
194
+ }
195
+
143
196
  export interface SkillExportResponse {
144
197
  files?: Array<SkillExportResponse.File>;
145
198
 
@@ -158,6 +211,11 @@ export namespace SkillExportResponse {
158
211
 
159
212
  content_type?: string;
160
213
 
214
+ /**
215
+ * Encoding of content. Binary files use canonical base64.
216
+ */
217
+ encoding?: 'utf8' | 'base64';
218
+
161
219
  path?: string;
162
220
 
163
221
  sha256?: string;
@@ -279,7 +337,8 @@ export interface SkillCreateParams {
279
337
 
280
338
  /**
281
339
  * Optional bundled companion files installed alongside the skill as <slug>/<path>
282
- * in sandbox skill directories.
340
+ * in sandbox skill directories. The complete file set may contain at most 12 MiB
341
+ * of decoded content.
283
342
  */
284
343
  files?: Array<SkillCreateParams.File>;
285
344
 
@@ -306,6 +365,10 @@ export interface SkillCreateParams {
306
365
 
307
366
  export namespace SkillCreateParams {
308
367
  export interface File {
368
+ /**
369
+ * UTF-8 text when encoding is utf8 (max 65,536 characters), or canonical base64
370
+ * when encoding is base64 (max 262,144 decoded bytes).
371
+ */
309
372
  content: string;
310
373
 
311
374
  /**
@@ -316,6 +379,11 @@ export namespace SkillCreateParams {
316
379
 
317
380
  contentType?: string;
318
381
 
382
+ /**
383
+ * How content is encoded. Omit for UTF-8 text files.
384
+ */
385
+ encoding?: 'utf8' | 'base64';
386
+
319
387
  metadata?: unknown;
320
388
 
321
389
  name?: string;
@@ -330,8 +398,13 @@ export interface SkillUpdateParams {
330
398
  content?: string;
331
399
 
332
400
  /**
333
- * Optional replacement companion file tree. Omit to leave existing bundled files
334
- * unchanged; send [] to remove bundled files.
401
+ * Reject with 409 if the skill changed since this version was read.
402
+ */
403
+ expectedVersion?: number;
404
+
405
+ /**
406
+ * Optional replacement companion file tree, limited to 12 MiB of decoded content.
407
+ * Omit to leave existing bundled files unchanged; send [] to remove bundled files.
335
408
  */
336
409
  files?: Array<SkillUpdateParams.File> | null;
337
410
 
@@ -351,12 +424,21 @@ export interface SkillUpdateParams {
351
424
 
352
425
  export namespace SkillUpdateParams {
353
426
  export interface File {
427
+ /**
428
+ * UTF-8 text when encoding is utf8 (max 65,536 characters), or canonical base64
429
+ * when encoding is base64 (max 262,144 decoded bytes).
430
+ */
354
431
  content: string;
355
432
 
356
433
  path: string;
357
434
 
358
435
  contentType?: string;
359
436
 
437
+ /**
438
+ * How content is encoded. Omit for UTF-8 text files.
439
+ */
440
+ encoding?: 'utf8' | 'base64';
441
+
360
442
  metadata?: unknown;
361
443
 
362
444
  name?: string;
@@ -367,6 +449,34 @@ export namespace SkillUpdateParams {
367
449
  }
368
450
  }
369
451
 
452
+ export interface SkillCatalogParams {
453
+ /**
454
+ * Maximum results to return
455
+ */
456
+ limit?: number;
457
+
458
+ /**
459
+ * Number of results to skip
460
+ */
461
+ offset?: number;
462
+
463
+ /**
464
+ * Optional text search
465
+ */
466
+ q?: string;
467
+
468
+ /**
469
+ * Optional source filter, applied after organization overrides and before
470
+ * pagination. Omit to browse both sources.
471
+ */
472
+ source?: 'custom' | 'curated';
473
+
474
+ /**
475
+ * Optional tag filter
476
+ */
477
+ tag?: string;
478
+ }
479
+
370
480
  export interface SkillExportParams {
371
481
  /**
372
482
  * Agent runtime skill directory convention to export for. Most callers should omit
@@ -396,11 +506,13 @@ export declare namespace Skills {
396
506
  type SkillCreateResponse as SkillCreateResponse,
397
507
  type SkillUpdateResponse as SkillUpdateResponse,
398
508
  type SkillDeleteResponse as SkillDeleteResponse,
509
+ type SkillCatalogResponse as SkillCatalogResponse,
399
510
  type SkillExportResponse as SkillExportResponse,
400
511
  type SkillReadResponse as SkillReadResponse,
401
512
  type SkillResolveResponse as SkillResolveResponse,
402
513
  type SkillCreateParams as SkillCreateParams,
403
514
  type SkillUpdateParams as SkillUpdateParams,
515
+ type SkillCatalogParams as SkillCatalogParams,
404
516
  type SkillExportParams as SkillExportParams,
405
517
  type SkillResolveParams as SkillResolveParams,
406
518
  };
@@ -21,11 +21,15 @@ export class Subscriptions extends APIResource {
21
21
  * });
22
22
  * ```
23
23
  */
24
- create(id: string, body: SubscriptionCreateParams, options?: RequestOptions): APIPromise<void> {
24
+ create(id: string, params: SubscriptionCreateParams, options?: RequestOptions): APIPromise<void> {
25
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
25
26
  return this._client.post(path`/vault/${id}/events/subscriptions`, {
26
27
  body,
27
28
  ...options,
28
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
29
+ headers: buildHeaders([
30
+ { Accept: '*/*', ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
31
+ options?.headers,
32
+ ]),
29
33
  });
30
34
  }
31
35
 
@@ -116,25 +120,32 @@ export class Subscriptions extends APIResource {
116
120
 
117
121
  export interface SubscriptionCreateParams {
118
122
  /**
119
- * Webhook endpoint URL that will receive vault event deliveries
123
+ * Body param: Webhook endpoint URL that will receive vault event deliveries
120
124
  */
121
125
  callbackUrl: string;
122
126
 
123
127
  /**
124
- * Vault event types to deliver. Omit to receive the default supported set.
128
+ * Body param: Vault event types to deliver. Omit to receive the default supported
129
+ * set.
125
130
  */
126
131
  eventTypes?: Array<string>;
127
132
 
128
133
  /**
129
- * Vault object IDs to limit notifications to. Omit to receive events for all
130
- * objects in the vault.
134
+ * Body param: Vault object IDs to limit notifications to. Omit to receive events
135
+ * for all objects in the vault.
131
136
  */
132
137
  objectIds?: Array<string>;
133
138
 
134
139
  /**
135
- * Optional secret used to sign outbound webhook deliveries
140
+ * Body param: Optional secret used to sign outbound webhook deliveries
136
141
  */
137
142
  signingSecret?: string;
143
+
144
+ /**
145
+ * Header param: Reusing a key for this Vault updates and returns the same webhook
146
+ * subscription.
147
+ */
148
+ 'Idempotency-Key'?: string;
138
149
  }
139
150
 
140
151
  export interface SubscriptionUpdateParams {
@@ -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 Groups extends APIResource {
13
13
  /**
@@ -14,6 +14,7 @@ export {
14
14
  } from './memory';
15
15
  export {
16
16
  Multipart,
17
+ type MultipartCompleteResponse,
17
18
  type MultipartGetPartURLsResponse,
18
19
  type MultipartInitResponse,
19
20
  type MultipartAbortParams,
@@ -34,6 +35,7 @@ export {
34
35
  type ObjectGetPagesResponse,
35
36
  type ObjectGetTextResponse,
36
37
  type ObjectMergeResponse,
38
+ type ObjectMoveResponse,
37
39
  type ObjectRetrieveParams,
38
40
  type ObjectUpdateParams,
39
41
  type ObjectListParams,
@@ -46,6 +48,7 @@ export {
46
48
  type ObjectGetPagesParams,
47
49
  type ObjectGetTextParams,
48
50
  type ObjectMergeParams,
51
+ type ObjectMoveParams,
49
52
  } from './objects';
50
53
  export {
51
54
  Vault,
@@ -60,6 +63,7 @@ export {
60
63
  type VaultUploadResponse,
61
64
  type VaultCreateParams,
62
65
  type VaultUpdateParams,
66
+ type VaultListParams,
63
67
  type VaultDeleteParams,
64
68
  type VaultConfirmUploadParams,
65
69
  type VaultIngestParams,