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
@@ -15,19 +15,37 @@ export class Sessions extends APIResource {
15
15
  * This endpoint starts the sandbox actor only; messages and event replay use
16
16
  * separate endpoints.
17
17
  */
18
- create(body: SessionCreateParams | null | undefined = {}, options?: RequestOptions): APIPromise<void> {
18
+ create(params: SessionCreateParams | null | undefined = {}, options?: RequestOptions): APIPromise<void> {
19
+ const {
20
+ 'ai-reporting-tags': aiReportingTags,
21
+ 'ai-reporting-user': aiReportingUser,
22
+ ...body
23
+ } = params ?? {};
19
24
  return this._client.post('/linc/v1/sessions', {
20
25
  body,
21
26
  ...options,
22
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
27
+ headers: buildHeaders([
28
+ {
29
+ Accept: '*/*',
30
+ ...(aiReportingTags != null ? { 'ai-reporting-tags': aiReportingTags } : undefined),
31
+ ...(aiReportingUser != null ? { 'ai-reporting-user': aiReportingUser } : undefined),
32
+ },
33
+ options?.headers,
34
+ ]),
23
35
  });
24
36
  }
25
37
 
26
38
  /**
27
39
  * End native Linc session
28
40
  */
29
- delete(id: string, options?: RequestOptions): APIPromise<void> {
41
+ delete(
42
+ id: string,
43
+ params: SessionDeleteParams | null | undefined = {},
44
+ options?: RequestOptions,
45
+ ): APIPromise<void> {
46
+ const { reason } = params ?? {};
30
47
  return this._client.delete(path`/linc/v1/sessions/${id}`, {
48
+ query: { reason },
31
49
  ...options,
32
50
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
33
51
  });
@@ -63,6 +81,19 @@ export class Sessions extends APIResource {
63
81
  });
64
82
  }
65
83
 
84
+ /**
85
+ * Stops the conversation worker, applies a newly authorized object scope, revokes
86
+ * its prior managed credential, and resumes the same native conversation in its
87
+ * existing workspace.
88
+ */
89
+ replaceScope(id: string, body: SessionReplaceScopeParams, options?: RequestOptions): APIPromise<void> {
90
+ return this._client.put(path`/linc/v1/sessions/${id}/scope`, {
91
+ body,
92
+ ...options,
93
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
94
+ });
95
+ }
96
+
66
97
  /**
67
98
  * Returns persisted native Pi/Linc event envelopes after the requested cursor.
68
99
  * Live delivery is handled by the Linc stream service.
@@ -122,46 +153,119 @@ export class Sessions extends APIResource {
122
153
 
123
154
  export interface SessionCreateParams {
124
155
  /**
125
- * Specific document template slugs to inject into the using-document-templates
126
- * skill.
156
+ * Body param: Optional server-enforced capability profile. read_only grants only
157
+ * retrieval/inference service reads; session event ingestion remains bound to the
158
+ * exact managed runtime credential.
159
+ */
160
+ capabilityPolicy?: 'read_only';
161
+
162
+ /**
163
+ * Body param: Stable conversation identity within workspaceKey. Required in
164
+ * workspace mode and idempotent for repeated creates.
165
+ */
166
+ conversationKey?: string;
167
+
168
+ /**
169
+ * Body param: Specific document template slugs to inject into the
170
+ * using-document-templates skill.
127
171
  */
128
172
  documentTemplateSlugs?: Array<string> | null;
129
173
 
174
+ /**
175
+ * Body param
176
+ */
130
177
  idleTimeoutMs?: number | null;
131
178
 
132
179
  /**
133
- * When true, inject all active org document templates into the
180
+ * Body param: When true, inject all active org document templates into the
134
181
  * using-document-templates skill.
135
182
  */
136
183
  includeDocumentTemplates?: boolean | null;
137
184
 
138
185
  /**
139
- * Privileged C3-only hidden app instructions to append to the sandbox AGENTS.md.
186
+ * Body param: Privileged C3-only hidden app instructions to append to the sandbox
187
+ * AGENTS.md.
140
188
  */
141
189
  instructions?: string | null;
142
190
 
191
+ /**
192
+ * Body param
193
+ */
143
194
  model?: string | null;
144
195
 
145
196
  /**
146
- * Optional caller-provided scoped Case.dev API key for the runtime.
197
+ * Body param: Optional caller-provided scoped Case.dev API key for the runtime.
147
198
  */
148
199
  scopedApiKey?: string | null;
149
200
 
150
201
  /**
151
- * Processing tier for eligible OpenAI GPT models. Priority provides lower latency
152
- * at premium cost.
202
+ * Body param: Processing tier for eligible OpenAI GPT models. Priority provides
203
+ * lower latency at premium cost.
153
204
  */
154
205
  serviceTier?: 'default' | 'priority';
155
206
 
156
207
  /**
157
- * Skills API slugs to install into the runtime sandbox before the native session
158
- * starts.
208
+ * Body param: Skills API slugs to install into the runtime sandbox before the
209
+ * native session starts.
159
210
  */
160
211
  skillSlugs?: Array<string> | null;
161
212
 
213
+ /**
214
+ * Body param
215
+ */
162
216
  title?: string;
163
217
 
218
+ /**
219
+ * Body param: Legacy explicit whole-vault scope. Mutually exclusive with
220
+ * vaultScopes.
221
+ */
164
222
  vaultIds?: Array<string> | null;
223
+
224
+ /**
225
+ * Body param: Exact object allowlist per vault. Empty objectIds denies object
226
+ * access for that vault. Mutually exclusive with vaultIds.
227
+ */
228
+ vaultScopes?: Array<SessionCreateParams.VaultScope> | null;
229
+
230
+ /**
231
+ * Body param: Opt-in persistent workspace identity. Requires conversationKey. Omit
232
+ * both fields to preserve isolated legacy session behavior.
233
+ */
234
+ workspaceKey?: string;
235
+
236
+ /**
237
+ * Header param: Comma-separated AI Gateway reporting tags. At most 10 unique tags,
238
+ * each 1–64 characters.
239
+ */
240
+ 'ai-reporting-tags'?: string;
241
+
242
+ /**
243
+ * Header param: Stable internal user or customer identifier for AI Gateway cost
244
+ * reporting.
245
+ */
246
+ 'ai-reporting-user'?: string;
247
+ }
248
+
249
+ export namespace SessionCreateParams {
250
+ export interface VaultScope {
251
+ objectIds: Array<string>;
252
+
253
+ vaultId: string;
254
+ }
255
+ }
256
+
257
+ export interface SessionDeleteParams {
258
+ /**
259
+ * Why the session is being ended; recorded in the linc.session.ended event
260
+ * payload. Unknown values fall back to user*deleted. The replaced*\* values
261
+ * distinguish automatic session replacement (e.g. by C3) from a user-initiated
262
+ * deletion.
263
+ */
264
+ reason?:
265
+ | 'user_deleted'
266
+ | 'replaced_scope_changed'
267
+ | 'replaced_missing_session'
268
+ | 'replaced_runtime_unavailable';
165
269
  }
166
270
 
167
271
  export interface SessionCancelParams {
@@ -204,6 +308,26 @@ export namespace SessionIngestEventsParams {
204
308
  }
205
309
  }
206
310
 
311
+ export interface SessionReplaceScopeParams {
312
+ /**
313
+ * Legacy whole-vault scope. Mutually exclusive with vaultScopes.
314
+ */
315
+ vaultIds?: Array<string>;
316
+
317
+ /**
318
+ * Authoritative object allowlist for the next and later turns.
319
+ */
320
+ vaultScopes?: Array<SessionReplaceScopeParams.VaultScope>;
321
+ }
322
+
323
+ export namespace SessionReplaceScopeParams {
324
+ export interface VaultScope {
325
+ objectIds: Array<string>;
326
+
327
+ vaultId: string;
328
+ }
329
+ }
330
+
207
331
  export interface SessionRetrieveEventsParams {
208
332
  /**
209
333
  * Alias for cursor. Ignored when cursor is also provided.
@@ -261,8 +385,10 @@ export interface SessionSendRpcParams {
261
385
  export declare namespace Sessions {
262
386
  export {
263
387
  type SessionCreateParams as SessionCreateParams,
388
+ type SessionDeleteParams as SessionDeleteParams,
264
389
  type SessionCancelParams as SessionCancelParams,
265
390
  type SessionIngestEventsParams as SessionIngestEventsParams,
391
+ type SessionReplaceScopeParams as SessionReplaceScopeParams,
266
392
  type SessionRetrieveEventsParams as SessionRetrieveEventsParams,
267
393
  type SessionRetrieveMessagesParams as SessionRetrieveMessagesParams,
268
394
  type SessionSendRpcParams as SessionSendRpcParams,
@@ -5,7 +5,9 @@ import * as SessionsAPI from './sessions';
5
5
  import {
6
6
  SessionCancelParams,
7
7
  SessionCreateParams,
8
+ SessionDeleteParams,
8
9
  SessionIngestEventsParams,
10
+ SessionReplaceScopeParams,
9
11
  SessionRetrieveEventsParams,
10
12
  SessionRetrieveMessagesParams,
11
13
  SessionSendRpcParams,
@@ -22,8 +24,10 @@ export declare namespace V1 {
22
24
  export {
23
25
  Sessions as Sessions,
24
26
  type SessionCreateParams as SessionCreateParams,
27
+ type SessionDeleteParams as SessionDeleteParams,
25
28
  type SessionCancelParams as SessionCancelParams,
26
29
  type SessionIngestEventsParams as SessionIngestEventsParams,
30
+ type SessionReplaceScopeParams as SessionReplaceScopeParams,
27
31
  type SessionRetrieveEventsParams as SessionRetrieveEventsParams,
28
32
  type SessionRetrieveMessagesParams as SessionRetrieveMessagesParams,
29
33
  type SessionSendRpcParams as SessionSendRpcParams,
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
4
  import { APIPromise } from '../../../core/api-promise';
5
+ import { buildHeaders } from '../../../internal/headers';
5
6
  import { RequestOptions } from '../../../internal/request-options';
6
7
 
7
8
  /**
@@ -22,10 +23,21 @@ export class Chat extends APIResource {
22
23
  * ```
23
24
  */
24
25
  createCompletion(
25
- body: ChatCreateCompletionParams,
26
+ params: ChatCreateCompletionParams,
26
27
  options?: RequestOptions,
27
28
  ): APIPromise<ChatCreateCompletionResponse> {
28
- return this._client.post('/llm/v1/chat/completions', { body, ...options });
29
+ const { 'ai-reporting-tags': aiReportingTags, 'ai-reporting-user': aiReportingUser, ...body } = params;
30
+ return this._client.post('/llm/v1/chat/completions', {
31
+ body,
32
+ ...options,
33
+ headers: buildHeaders([
34
+ {
35
+ ...(aiReportingTags != null ? { 'ai-reporting-tags': aiReportingTags } : undefined),
36
+ ...(aiReportingUser != null ? { 'ai-reporting-user': aiReportingUser } : undefined),
37
+ },
38
+ options?.headers,
39
+ ]),
40
+ });
29
41
  }
30
42
  }
31
43
 
@@ -85,51 +97,64 @@ export namespace ChatCreateCompletionResponse {
85
97
 
86
98
  export interface ChatCreateCompletionParams {
87
99
  /**
88
- * List of messages comprising the conversation
100
+ * Body param: List of messages comprising the conversation
89
101
  */
90
102
  messages: Array<ChatCreateCompletionParams.Message>;
91
103
 
92
104
  /**
93
- * CaseMark-only: controls whether reasoning fields appear in responses. Defaults
94
- * to false (suppressed) for most CaseMark models; defaults to true for
95
- * casemark/core-potassium.
105
+ * Body param: CaseMark-only: controls whether reasoning fields appear in
106
+ * responses. Defaults to false (suppressed) for most CaseMark models; defaults to
107
+ * true for casemark/core-potassium.
96
108
  */
97
109
  casemark_show_reasoning?: boolean;
98
110
 
99
111
  /**
100
- * Frequency penalty parameter
112
+ * Body param: Frequency penalty parameter
101
113
  */
102
114
  frequency_penalty?: number;
103
115
 
104
116
  /**
105
- * Maximum number of tokens to generate
117
+ * Body param: Maximum number of tokens to generate
106
118
  */
107
119
  max_tokens?: number;
108
120
 
109
121
  /**
110
- * Model to use for completion. Defaults to casemark/core-large if not specified
122
+ * Body param: Model to use for completion. Defaults to casemark/core-large if not
123
+ * specified
111
124
  */
112
125
  model?: string;
113
126
 
114
127
  /**
115
- * Presence penalty parameter
128
+ * Body param: Presence penalty parameter
116
129
  */
117
130
  presence_penalty?: number;
118
131
 
119
132
  /**
120
- * Whether to stream back partial progress
133
+ * Body param: Whether to stream back partial progress
121
134
  */
122
135
  stream?: boolean;
123
136
 
124
137
  /**
125
- * Sampling temperature between 0 and 2
138
+ * Body param: Sampling temperature between 0 and 2
126
139
  */
127
140
  temperature?: number;
128
141
 
129
142
  /**
130
- * Nucleus sampling parameter
143
+ * Body param: Nucleus sampling parameter
131
144
  */
132
145
  top_p?: number;
146
+
147
+ /**
148
+ * Header param: Comma-separated AI Gateway reporting tags. At most 10 unique tags,
149
+ * each 1–64 characters.
150
+ */
151
+ 'ai-reporting-tags'?: string;
152
+
153
+ /**
154
+ * Header param: Stable internal user or customer identifier for AI Gateway cost
155
+ * reporting.
156
+ */
157
+ 'ai-reporting-user'?: string;
133
158
  }
134
159
 
135
160
  export namespace ChatCreateCompletionParams {
@@ -33,9 +33,9 @@ export class V1 extends APIResource {
33
33
  }
34
34
 
35
35
  /**
36
- * Retrieve a list of all available language models from 40+ providers including
37
- * OpenAI, Anthropic, Google, and Case.dev's specialized legal models. Returns
38
- * OpenAI-compatible model metadata with pricing information.
36
+ * Retrieve the curated list of available models: OpenAI and Google models plus
37
+ * Case.dev's specialized CaseMark legal models. Returns OpenAI-compatible model
38
+ * metadata with pricing information.
39
39
  *
40
40
  * This endpoint is compatible with OpenAI's models API format, making it easy to
41
41
  * integrate with existing applications.
@@ -1,4 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export { Matters } from './matters';
4
- export { V1, type V1CreateParams, type V1UpdateParams, type V1ListParams } from './v1/index';
4
+ export {
5
+ V1,
6
+ type V1ListResponse,
7
+ type V1DeleteResponse,
8
+ type V1CreateParams,
9
+ type V1UpdateParams,
10
+ type V1ListParams,
11
+ } from './v1/index';
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as V1API from './v1/v1';
5
- import { V1, V1CreateParams, V1ListParams, V1UpdateParams } from './v1/v1';
5
+ import { V1, V1CreateParams, V1DeleteResponse, V1ListParams, V1ListResponse, V1UpdateParams } from './v1/v1';
6
6
 
7
7
  export class Matters extends APIResource {
8
8
  v1: V1API.V1 = new V1API.V1(this._client);
@@ -13,6 +13,8 @@ Matters.V1 = V1;
13
13
  export declare namespace Matters {
14
14
  export {
15
15
  V1 as V1,
16
+ type V1ListResponse as V1ListResponse,
17
+ type V1DeleteResponse as V1DeleteResponse,
16
18
  type V1CreateParams as V1CreateParams,
17
19
  type V1UpdateParams as V1UpdateParams,
18
20
  type V1ListParams as V1ListParams,
@@ -0,0 +1,115 @@
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 ContentPurges extends APIResource {
12
+ /**
13
+ * Queues an idempotent hard deletion of explicitly owned content while preserving
14
+ * the Matter, Vault, and unrelated content. Use unified matter.content_purge
15
+ * webhooks for completion, not polling.
16
+ */
17
+ create(
18
+ id: string,
19
+ body: ContentPurgeCreateParams,
20
+ options?: RequestOptions,
21
+ ): APIPromise<ContentPurgeCreateResponse> {
22
+ return this._client.post(path`/matters/v1/${id}/content-purges`, { body, ...options });
23
+ }
24
+
25
+ /**
26
+ * Owner-only receipt for operator diagnostics. Integrations must use unified
27
+ * content-purge webhooks rather than polling.
28
+ */
29
+ retrieve(purgeID: string, options?: RequestOptions): APIPromise<ContentPurgeRetrieveResponse> {
30
+ return this._client.get(path`/matters/v1/content-purges/${purgeID}`, options);
31
+ }
32
+ }
33
+
34
+ export interface ContentPurgeCreateResponse {
35
+ attempt: number;
36
+
37
+ matter_id: string;
38
+
39
+ purge_id: string;
40
+
41
+ request_id: string;
42
+
43
+ status: 'queued' | 'in_progress' | 'failed' | 'completed';
44
+
45
+ vault_id: string;
46
+
47
+ workflow_id: string | null;
48
+
49
+ completed_at?: string | null;
50
+
51
+ counts?: { [key: string]: number };
52
+
53
+ failed_at?: string | null;
54
+
55
+ failure_code?: string | null;
56
+
57
+ requested_at?: string;
58
+
59
+ started_at?: string | null;
60
+
61
+ terminal_event_id?: string | null;
62
+ }
63
+
64
+ export interface ContentPurgeRetrieveResponse {
65
+ attempt: number;
66
+
67
+ matter_id: string;
68
+
69
+ purge_id: string;
70
+
71
+ request_id: string;
72
+
73
+ status: 'queued' | 'in_progress' | 'failed' | 'completed';
74
+
75
+ vault_id: string;
76
+
77
+ workflow_id: string | null;
78
+
79
+ completed_at?: string | null;
80
+
81
+ counts?: { [key: string]: number };
82
+
83
+ failed_at?: string | null;
84
+
85
+ failure_code?: string | null;
86
+
87
+ requested_at?: string;
88
+
89
+ started_at?: string | null;
90
+
91
+ terminal_event_id?: string | null;
92
+ }
93
+
94
+ export interface ContentPurgeCreateParams {
95
+ /**
96
+ * Stable caller idempotency ID; cannot be reused with different targets.
97
+ */
98
+ request_id: string;
99
+
100
+ object_ids?: Array<string>;
101
+
102
+ session_ids?: Array<string>;
103
+
104
+ transcription_ids?: Array<string>;
105
+
106
+ work_item_ids?: Array<string>;
107
+ }
108
+
109
+ export declare namespace ContentPurges {
110
+ export {
111
+ type ContentPurgeCreateResponse as ContentPurgeCreateResponse,
112
+ type ContentPurgeRetrieveResponse as ContentPurgeRetrieveResponse,
113
+ type ContentPurgeCreateParams as ContentPurgeCreateParams,
114
+ };
115
+ }
@@ -13,11 +13,15 @@ export class Subscriptions extends APIResource {
13
13
  /**
14
14
  * Creates a webhook subscription for matter and work-item events.
15
15
  */
16
- create(id: string, body: SubscriptionCreateParams, options?: RequestOptions): APIPromise<void> {
16
+ create(id: string, params: SubscriptionCreateParams, options?: RequestOptions): APIPromise<void> {
17
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
17
18
  return this._client.post(path`/matters/v1/${id}/events/subscriptions`, {
18
19
  body,
19
20
  ...options,
20
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
21
+ headers: buildHeaders([
22
+ { Accept: '*/*', ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
23
+ options?.headers,
24
+ ]),
21
25
  });
22
26
  }
23
27
 
@@ -48,11 +52,26 @@ export class Subscriptions extends APIResource {
48
52
  }
49
53
 
50
54
  export interface SubscriptionCreateParams {
55
+ /**
56
+ * Body param
57
+ */
51
58
  callbackUrl: string;
52
59
 
60
+ /**
61
+ * Body param
62
+ */
53
63
  eventTypes?: Array<string>;
54
64
 
65
+ /**
66
+ * Body param
67
+ */
55
68
  signingSecret?: string;
69
+
70
+ /**
71
+ * Header param: Reusing a key for this Matter updates and returns the same webhook
72
+ * subscription.
73
+ */
74
+ 'Idempotency-Key'?: string;
56
75
  }
57
76
 
58
77
  export interface SubscriptionDeleteParams {
@@ -1,6 +1,12 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export { AgentTypes, type AgentTypeCreateParams, type AgentTypeListParams } from './agent-types';
4
+ export {
5
+ ContentPurges,
6
+ type ContentPurgeCreateResponse,
7
+ type ContentPurgeRetrieveResponse,
8
+ type ContentPurgeCreateParams,
9
+ } from './content-purges';
4
10
  export { Events } from './events/index';
5
11
  export {
6
12
  Log,
@@ -10,12 +16,21 @@ export {
10
16
  type LogExportParams,
11
17
  } from './log';
12
18
  export { MatterParties, type MatterPartyCreateParams } from './matter-parties';
13
- export { Parties, type PartyCreateParams, type PartyListParams } from './parties';
19
+ export { Parties, type PartyListResponse, type PartyCreateParams, type PartyListParams } from './parties';
20
+ export { Purges, type PurgeRetrieveResponse } from './purges';
14
21
  export { Shares, type ShareCreateParams, type ShareDeleteParams } from './shares';
15
22
  export { Types, type TypeCreateParams, type TypeUpdateParams, type TypeListParams } from './types';
16
- export { V1, type V1CreateParams, type V1UpdateParams, type V1ListParams } from './v1';
23
+ export {
24
+ V1,
25
+ type V1ListResponse,
26
+ type V1DeleteResponse,
27
+ type V1CreateParams,
28
+ type V1UpdateParams,
29
+ type V1ListParams,
30
+ } from './v1';
17
31
  export {
18
32
  WorkItems,
33
+ type WorkItemListResponse,
19
34
  type WorkItemCreateParams,
20
35
  type WorkItemRetrieveParams,
21
36
  type WorkItemUpdateParams,
@@ -42,14 +42,34 @@ export class Parties extends APIResource {
42
42
  }
43
43
 
44
44
  /**
45
- * List reusable legal parties for the authenticated organization.
45
+ * List reusable legal parties for the authenticated organization, newest update
46
+ * first. Pagination is opt-in: pass `limit` (1-200) to receive a bounded page,
47
+ * then replay `pagination.next_cursor` as `?cursor=` while `pagination.has_more`
48
+ * is true. A request with neither `limit` nor `cursor` still returns every party,
49
+ * and `pagination.limit` is null. That default will become a bounded page in a
50
+ * future release — paginate now to avoid the change.
46
51
  */
47
- list(query: PartyListParams | null | undefined = {}, options?: RequestOptions): APIPromise<void> {
48
- return this._client.get('/matters/v1/parties', {
49
- query,
50
- ...options,
51
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
52
- });
52
+ list(
53
+ query: PartyListParams | null | undefined = {},
54
+ options?: RequestOptions,
55
+ ): APIPromise<PartyListResponse> {
56
+ return this._client.get('/matters/v1/parties', { query, ...options });
57
+ }
58
+ }
59
+
60
+ export interface PartyListResponse {
61
+ data?: Array<unknown>;
62
+
63
+ pagination?: PartyListResponse.Pagination;
64
+ }
65
+
66
+ export namespace PartyListResponse {
67
+ export interface Pagination {
68
+ has_more?: boolean;
69
+
70
+ limit?: number | null;
71
+
72
+ next_cursor?: string | null;
53
73
  }
54
74
  }
55
75
 
@@ -72,13 +92,29 @@ export interface PartyCreateParams {
72
92
  }
73
93
 
74
94
  export interface PartyListParams {
95
+ /**
96
+ * Opaque continuation cursor from `pagination.next_cursor` of the previous page.
97
+ * Must be replayed with the same filters that produced it.
98
+ */
99
+ cursor?: string;
100
+
75
101
  email?: string;
76
102
 
103
+ /**
104
+ * Parties per page (1-200). Omit to receive every party. Supplying a cursor
105
+ * without a limit uses 50.
106
+ */
107
+ limit?: number;
108
+
77
109
  query?: string;
78
110
 
79
111
  type?: 'person' | 'organization';
80
112
  }
81
113
 
82
114
  export declare namespace Parties {
83
- export { type PartyCreateParams as PartyCreateParams, type PartyListParams as PartyListParams };
115
+ export {
116
+ type PartyListResponse as PartyListResponse,
117
+ type PartyCreateParams as PartyCreateParams,
118
+ type PartyListParams as PartyListParams,
119
+ };
84
120
  }