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,17 +7,30 @@ import { RequestOptions } from '../../../internal/request-options';
7
7
  import { path } from '../../../internal/utils/path';
8
8
 
9
9
  /**
10
- * Import and export between provider folders (Google Drive) and vaults
10
+ * Import and export between provider folders and vaults
11
11
  */
12
12
  export class Links extends APIResource {
13
13
  /**
14
14
  * Retrieve one link: state, counts, and embedded active_run/last_run. Poll this
15
15
  * after POST /transfer.
16
16
  */
17
- retrieve(id: string, options?: RequestOptions): APIPromise<void> {
17
+ retrieve(
18
+ id: string,
19
+ params: LinkRetrieveParams | null | undefined = {},
20
+ options?: RequestOptions,
21
+ ): APIPromise<void> {
22
+ const { 'x-case-connector-subject': xCaseConnectorSubject } = params ?? {};
18
23
  return this._client.get(path`/connectors/v1/links/${id}`, {
19
24
  ...options,
20
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
25
+ headers: buildHeaders([
26
+ {
27
+ Accept: '*/*',
28
+ ...(xCaseConnectorSubject != null ?
29
+ { 'x-case-connector-subject': xCaseConnectorSubject }
30
+ : undefined),
31
+ },
32
+ options?.headers,
33
+ ]),
21
34
  });
22
35
  }
23
36
 
@@ -25,11 +38,20 @@ export class Links extends APIResource {
25
38
  * Pause/resume a link (state "paused" | "ready"), change its mode (synced -> once
26
39
  * is the sync downgrade), or edit its policy in place.
27
40
  */
28
- update(id: string, body: LinkUpdateParams, options?: RequestOptions): APIPromise<void> {
41
+ update(id: string, params: LinkUpdateParams, options?: RequestOptions): APIPromise<void> {
42
+ const { 'x-case-connector-subject': xCaseConnectorSubject, ...body } = params;
29
43
  return this._client.patch(path`/connectors/v1/links/${id}`, {
30
44
  body,
31
45
  ...options,
32
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
46
+ headers: buildHeaders([
47
+ {
48
+ Accept: '*/*',
49
+ ...(xCaseConnectorSubject != null ?
50
+ { 'x-case-connector-subject': xCaseConnectorSubject }
51
+ : undefined),
52
+ },
53
+ options?.headers,
54
+ ]),
33
55
  });
34
56
  }
35
57
 
@@ -37,11 +59,20 @@ export class Links extends APIResource {
37
59
  * List transfer links, filterable by vault, connection, direction, mode, and
38
60
  * state.
39
61
  */
40
- list(query: LinkListParams | null | undefined = {}, options?: RequestOptions): APIPromise<void> {
62
+ list(params: LinkListParams | null | undefined = {}, options?: RequestOptions): APIPromise<void> {
63
+ const { 'x-case-connector-subject': xCaseConnectorSubject, ...query } = params ?? {};
41
64
  return this._client.get('/connectors/v1/links', {
42
65
  query,
43
66
  ...options,
44
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
67
+ headers: buildHeaders([
68
+ {
69
+ Accept: '*/*',
70
+ ...(xCaseConnectorSubject != null ?
71
+ { 'x-case-connector-subject': xCaseConnectorSubject }
72
+ : undefined),
73
+ },
74
+ options?.headers,
75
+ ]),
45
76
  });
46
77
  }
47
78
 
@@ -54,11 +85,19 @@ export class Links extends APIResource {
54
85
  params: LinkDeleteParams | null | undefined = {},
55
86
  options?: RequestOptions,
56
87
  ): APIPromise<void> {
57
- const { vault_docs } = params ?? {};
88
+ const { vault_docs, 'x-case-connector-subject': xCaseConnectorSubject } = params ?? {};
58
89
  return this._client.delete(path`/connectors/v1/links/${id}`, {
59
90
  query: { vault_docs },
60
91
  ...options,
61
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
92
+ headers: buildHeaders([
93
+ {
94
+ Accept: '*/*',
95
+ ...(xCaseConnectorSubject != null ?
96
+ { 'x-case-connector-subject': xCaseConnectorSubject }
97
+ : undefined),
98
+ },
99
+ options?.headers,
100
+ ]),
62
101
  });
63
102
  }
64
103
 
@@ -68,51 +107,141 @@ export class Links extends APIResource {
68
107
  */
69
108
  listObjects(
70
109
  id: string,
71
- query: LinkListObjectsParams | null | undefined = {},
110
+ params: LinkListObjectsParams | null | undefined = {},
72
111
  options?: RequestOptions,
73
112
  ): APIPromise<void> {
113
+ const { 'x-case-connector-subject': xCaseConnectorSubject, ...query } = params ?? {};
74
114
  return this._client.get(path`/connectors/v1/links/${id}/objects`, {
75
115
  query,
76
116
  ...options,
77
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
117
+ headers: buildHeaders([
118
+ {
119
+ Accept: '*/*',
120
+ ...(xCaseConnectorSubject != null ?
121
+ { 'x-case-connector-subject': xCaseConnectorSubject }
122
+ : undefined),
123
+ },
124
+ options?.headers,
125
+ ]),
78
126
  });
79
127
  }
80
128
  }
81
129
 
130
+ export interface LinkRetrieveParams {
131
+ /**
132
+ * Trusted server-to-server application-user assertion. Derive it from the
133
+ * authenticated application session, never browser input. Omit only for the legacy
134
+ * organization-scoped namespace.
135
+ */
136
+ 'x-case-connector-subject'?: string;
137
+ }
138
+
82
139
  export interface LinkUpdateParams {
140
+ /**
141
+ * Body param
142
+ */
83
143
  mode?: 'once' | 'synced';
84
144
 
145
+ /**
146
+ * Body param: Replaces the entire stored policy; omitted fields return to
147
+ * defaults. Repeat deletes, collisions and filters that should be retained.
148
+ * Folder/file exclusions require deletes: preserve (the default).
149
+ */
85
150
  policy?: unknown;
86
151
 
152
+ /**
153
+ * Body param
154
+ */
87
155
  state?: 'paused' | 'ready';
156
+
157
+ /**
158
+ * Header param: Trusted server-to-server application-user assertion. Derive it
159
+ * from the authenticated application session, never browser input. Omit only for
160
+ * the legacy organization-scoped namespace.
161
+ */
162
+ 'x-case-connector-subject'?: string;
88
163
  }
89
164
 
90
165
  export interface LinkListParams {
166
+ /**
167
+ * Query param
168
+ */
91
169
  connection_id?: string;
92
170
 
171
+ /**
172
+ * Query param: Opaque cursor from the previous page.
173
+ */
174
+ cursor?: string;
175
+
176
+ /**
177
+ * Query param
178
+ */
93
179
  direction?: 'import' | 'export';
94
180
 
181
+ /**
182
+ * Query param
183
+ */
95
184
  mode?: 'once' | 'synced';
96
185
 
186
+ /**
187
+ * Query param
188
+ */
97
189
  pair_id?: string;
98
190
 
191
+ /**
192
+ * Query param
193
+ */
99
194
  state?: 'ready' | 'running' | 'active' | 'paused' | 'orphaned' | 'error';
100
195
 
196
+ /**
197
+ * Query param
198
+ */
101
199
  vault_id?: string;
200
+
201
+ /**
202
+ * Header param: Trusted server-to-server application-user assertion. Derive it
203
+ * from the authenticated application session, never browser input. Omit only for
204
+ * the legacy organization-scoped namespace.
205
+ */
206
+ 'x-case-connector-subject'?: string;
102
207
  }
103
208
 
104
209
  export interface LinkDeleteParams {
210
+ /**
211
+ * Query param
212
+ */
105
213
  vault_docs?: 'keep' | 'delete';
214
+
215
+ /**
216
+ * Header param: Trusted server-to-server application-user assertion. Derive it
217
+ * from the authenticated application session, never browser input. Omit only for
218
+ * the legacy organization-scoped namespace.
219
+ */
220
+ 'x-case-connector-subject'?: string;
106
221
  }
107
222
 
108
223
  export interface LinkListObjectsParams {
224
+ /**
225
+ * Query param
226
+ */
109
227
  cursor?: string;
110
228
 
229
+ /**
230
+ * Query param
231
+ */
111
232
  state?: 'pending' | 'transferring' | 'ingesting' | 'synced' | 'skipped' | 'failed' | 'tombstoned';
233
+
234
+ /**
235
+ * Header param: Trusted server-to-server application-user assertion. Derive it
236
+ * from the authenticated application session, never browser input. Omit only for
237
+ * the legacy organization-scoped namespace.
238
+ */
239
+ 'x-case-connector-subject'?: string;
112
240
  }
113
241
 
114
242
  export declare namespace Links {
115
243
  export {
244
+ type LinkRetrieveParams as LinkRetrieveParams,
116
245
  type LinkUpdateParams as LinkUpdateParams,
117
246
  type LinkListParams as LinkListParams,
118
247
  type LinkDeleteParams as LinkDeleteParams,
@@ -10,69 +10,202 @@ import {
10
10
  ConnectionDeleteParams,
11
11
  ConnectionListParams,
12
12
  ConnectionListResponse,
13
+ ConnectionRetrieveParams,
14
+ ConnectionUpdateAllParams,
13
15
  Connections,
14
16
  } from './connections';
15
17
  import * as LinksAPI from './links';
16
- import { LinkDeleteParams, LinkListObjectsParams, LinkListParams, LinkUpdateParams, Links } from './links';
18
+ import {
19
+ LinkDeleteParams,
20
+ LinkListObjectsParams,
21
+ LinkListParams,
22
+ LinkRetrieveParams,
23
+ LinkUpdateParams,
24
+ Links,
25
+ } from './links';
26
+ import * as ApplicationsAPI from './applications/applications';
27
+ import { Applications } from './applications/applications';
17
28
  import * as InstallationsAPI from './installations/installations';
18
29
  import {
19
30
  InstallationEnsureParams,
20
31
  InstallationListParams,
32
+ InstallationListResponse,
21
33
  Installations,
22
34
  } from './installations/installations';
23
35
  import { APIPromise } from '../../../core/api-promise';
36
+ import { buildHeaders } from '../../../internal/headers';
24
37
  import { RequestOptions } from '../../../internal/request-options';
25
38
 
26
39
  /**
27
- * Import and export between provider folders (Google Drive) and vaults
40
+ * Import and export between provider folders and vaults
28
41
  */
29
42
  export class V1 extends APIResource {
43
+ applications: ApplicationsAPI.Applications = new ApplicationsAPI.Applications(this._client);
30
44
  installations: InstallationsAPI.Installations = new InstallationsAPI.Installations(this._client);
31
45
  connections: ConnectionsAPI.Connections = new ConnectionsAPI.Connections(this._client);
32
46
  links: LinksAPI.Links = new LinksAPI.Links(this._client);
33
47
 
34
48
  /**
35
49
  * Standing promise: backfill now, then stay current (the sync sweeper re-runs
36
- * synced links on a schedule). Same body as /transfer minus run_mode. Upserts the
37
- * link identified by (connection_id, direction, remote, vault_id); an existing
38
- * once-link is upgraded in place with its ledger and cursor preserved. Downgrade
39
- * or pause via PATCH /links/{id}.
50
+ * synced links on a schedule). Direction both creates paired import/export links
51
+ * and defaults export to a CaseMark Output subfolder. Same body as /transfer minus
52
+ * run_mode. Upserts links by (connection_id, direction, remote, vault_id);
53
+ * existing once-links are upgraded in place with their ledger and cursor
54
+ * preserved. Downgrade or pause via PATCH /links/{id}.
40
55
  */
41
- syncLink(body: V1SyncLinkParams, options?: RequestOptions): APIPromise<V1SyncLinkResponse> {
42
- return this._client.post('/connectors/v1/sync-link', { body, ...options });
56
+ syncLink(params: V1SyncLinkParams, options?: RequestOptions): APIPromise<V1SyncLinkResponse> {
57
+ const { 'x-case-connector-subject': xCaseConnectorSubject, ...body } = params;
58
+ return this._client.post('/connectors/v1/sync-link', {
59
+ body,
60
+ ...options,
61
+ headers: buildHeaders([
62
+ {
63
+ ...(xCaseConnectorSubject != null ?
64
+ { 'x-case-connector-subject': xCaseConnectorSubject }
65
+ : undefined),
66
+ },
67
+ options?.headers,
68
+ ]),
69
+ });
43
70
  }
44
71
 
45
72
  /**
46
- * One-shot import (provider folder → vault) or export (vault → provider folder).
47
- * Upserts the link identified by (connection_id, direction, remote, vault_id):
48
- * first call backfills, later calls move only new/changed files via the ledger.
49
- * Poll GET /links/{id} → active_run for progress.
73
+ * One-shot import (provider folder → vault), export (vault → provider folder), or
74
+ * both. Direction both creates paired import/export links and defaults export to a
75
+ * CaseMark Output subfolder. Upserts links by (connection_id, direction, remote,
76
+ * vault_id): first call backfills, later calls move only new/changed files via the
77
+ * ledger. Poll GET /links/{id} → active_run for progress.
50
78
  */
51
- transfer(body: V1TransferParams, options?: RequestOptions): APIPromise<V1TransferResponse> {
52
- return this._client.post('/connectors/v1/transfer', { body, ...options });
79
+ transfer(params: V1TransferParams, options?: RequestOptions): APIPromise<V1TransferResponse> {
80
+ const { 'x-case-connector-subject': xCaseConnectorSubject, ...body } = params;
81
+ return this._client.post('/connectors/v1/transfer', {
82
+ body,
83
+ ...options,
84
+ headers: buildHeaders([
85
+ {
86
+ ...(xCaseConnectorSubject != null ?
87
+ { 'x-case-connector-subject': xCaseConnectorSubject }
88
+ : undefined),
89
+ },
90
+ options?.headers,
91
+ ]),
92
+ });
53
93
  }
54
94
  }
55
95
 
96
+ export interface SyncLinkLinkRun {
97
+ link_id: string;
98
+
99
+ started: boolean;
100
+
101
+ backlog?: number;
102
+
103
+ reason?: 'stale_run_recovery' | 'already_running' | 'ingestion_backlog';
104
+ }
105
+
106
+ /**
107
+ * Whether a provider scan started or was deferred.
108
+ */
109
+ export interface SyncLinkRun {
110
+ started: boolean;
111
+
112
+ backlog?: number;
113
+
114
+ reason?: 'stale_run_recovery' | 'already_running' | 'ingestion_backlog';
115
+ }
116
+
117
+ export interface TransferLinkRun {
118
+ link_id: string;
119
+
120
+ started: boolean;
121
+
122
+ backlog?: number;
123
+
124
+ reason?: 'stale_run_recovery' | 'already_running' | 'ingestion_backlog';
125
+ }
126
+
127
+ /**
128
+ * Whether a provider scan started or was deferred.
129
+ */
130
+ export interface TransferRun {
131
+ started: boolean;
132
+
133
+ backlog?: number;
134
+
135
+ reason?: 'stale_run_recovery' | 'already_running' | 'ingestion_backlog';
136
+ }
137
+
56
138
  export interface V1SyncLinkResponse {
57
139
  links?: Array<unknown>;
140
+
141
+ /**
142
+ * Whether a provider scan started or was deferred.
143
+ */
144
+ run?: SyncLinkRun;
145
+
146
+ /**
147
+ * Start result for each link when direction is both.
148
+ */
149
+ runs?: Array<SyncLinkLinkRun>;
58
150
  }
59
151
 
60
152
  export interface V1TransferResponse {
61
153
  links?: Array<unknown>;
154
+
155
+ /**
156
+ * Whether a provider scan started or was deferred.
157
+ */
158
+ run?: TransferRun;
159
+
160
+ /**
161
+ * Start result for each link when direction is both.
162
+ */
163
+ runs?: Array<TransferLinkRun>;
62
164
  }
63
165
 
64
166
  export interface V1SyncLinkParams {
167
+ /**
168
+ * Body param
169
+ */
65
170
  connection_id: string;
66
171
 
67
- direction: 'import' | 'export';
172
+ /**
173
+ * Body param
174
+ */
175
+ direction: 'import' | 'export' | 'both';
68
176
 
177
+ /**
178
+ * Body param
179
+ */
69
180
  remote: V1SyncLinkParams.Remote;
70
181
 
182
+ /**
183
+ * Body param
184
+ */
71
185
  vault_id: string;
72
186
 
187
+ /**
188
+ * Body param: Optional destination for direction both. Defaults to CaseMark Output
189
+ * under remote.
190
+ */
191
+ export_destination?: V1SyncLinkParams.ExportDestination;
192
+
193
+ /**
194
+ * Body param
195
+ */
73
196
  matter_id?: string | null;
74
197
 
198
+ /**
199
+ * Body param
200
+ */
75
201
  policy?: V1SyncLinkParams.Policy;
202
+
203
+ /**
204
+ * Header param: Trusted server-to-server application-user assertion. Derive it
205
+ * from the authenticated application session, never browser input. Omit only for
206
+ * the legacy organization-scoped namespace.
207
+ */
208
+ 'x-case-connector-subject'?: string;
76
209
  }
77
210
 
78
211
  export namespace V1SyncLinkParams {
@@ -83,6 +216,22 @@ export namespace V1SyncLinkParams {
83
216
 
84
217
  path?: string;
85
218
 
219
+ resource_type?: string;
220
+
221
+ site_id?: string;
222
+ }
223
+
224
+ /**
225
+ * Optional destination for direction both. Defaults to CaseMark Output under
226
+ * remote.
227
+ */
228
+ export interface ExportDestination {
229
+ folder_id: string;
230
+
231
+ container_id?: string;
232
+
233
+ path?: string;
234
+
86
235
  site_id?: string;
87
236
  }
88
237
 
@@ -96,6 +245,16 @@ export namespace V1SyncLinkParams {
96
245
 
97
246
  export namespace Policy {
98
247
  export interface Filters {
248
+ /**
249
+ * Skip these stable document ids before download, including future versions.
250
+ */
251
+ exclude_file_ids?: Array<string>;
252
+
253
+ /**
254
+ * Skip these folders and all descendants during document imports.
255
+ */
256
+ exclude_folder_ids?: Array<string>;
257
+
99
258
  exclude_mime?: Array<string>;
100
259
 
101
260
  max_size_bytes?: number;
@@ -104,19 +263,53 @@ export namespace V1SyncLinkParams {
104
263
  }
105
264
 
106
265
  export interface V1TransferParams {
266
+ /**
267
+ * Body param
268
+ */
107
269
  connection_id: string;
108
270
 
109
- direction: 'import' | 'export';
271
+ /**
272
+ * Body param
273
+ */
274
+ direction: 'import' | 'export' | 'both';
110
275
 
276
+ /**
277
+ * Body param
278
+ */
111
279
  remote: V1TransferParams.Remote;
112
280
 
281
+ /**
282
+ * Body param
283
+ */
113
284
  vault_id: string;
114
285
 
286
+ /**
287
+ * Body param: Optional destination for direction both. Defaults to CaseMark Output
288
+ * under remote.
289
+ */
290
+ export_destination?: V1TransferParams.ExportDestination;
291
+
292
+ /**
293
+ * Body param
294
+ */
115
295
  matter_id?: string | null;
116
296
 
297
+ /**
298
+ * Body param
299
+ */
117
300
  policy?: V1TransferParams.Policy;
118
301
 
302
+ /**
303
+ * Body param
304
+ */
119
305
  run_mode?: 'auto' | 'full_reconcile';
306
+
307
+ /**
308
+ * Header param: Trusted server-to-server application-user assertion. Derive it
309
+ * from the authenticated application session, never browser input. Omit only for
310
+ * the legacy organization-scoped namespace.
311
+ */
312
+ 'x-case-connector-subject'?: string;
120
313
  }
121
314
 
122
315
  export namespace V1TransferParams {
@@ -127,6 +320,22 @@ export namespace V1TransferParams {
127
320
 
128
321
  path?: string;
129
322
 
323
+ resource_type?: string;
324
+
325
+ site_id?: string;
326
+ }
327
+
328
+ /**
329
+ * Optional destination for direction both. Defaults to CaseMark Output under
330
+ * remote.
331
+ */
332
+ export interface ExportDestination {
333
+ folder_id: string;
334
+
335
+ container_id?: string;
336
+
337
+ path?: string;
338
+
130
339
  site_id?: string;
131
340
  }
132
341
 
@@ -140,6 +349,16 @@ export namespace V1TransferParams {
140
349
 
141
350
  export namespace Policy {
142
351
  export interface Filters {
352
+ /**
353
+ * Skip these stable document ids before download, including future versions.
354
+ */
355
+ exclude_file_ids?: Array<string>;
356
+
357
+ /**
358
+ * Skip these folders and all descendants during document imports.
359
+ */
360
+ exclude_folder_ids?: Array<string>;
361
+
143
362
  exclude_mime?: Array<string>;
144
363
 
145
364
  max_size_bytes?: number;
@@ -147,20 +366,28 @@ export namespace V1TransferParams {
147
366
  }
148
367
  }
149
368
 
369
+ V1.Applications = Applications;
150
370
  V1.Installations = Installations;
151
371
  V1.Connections = Connections;
152
372
  V1.Links = Links;
153
373
 
154
374
  export declare namespace V1 {
155
375
  export {
376
+ type SyncLinkLinkRun as SyncLinkLinkRun,
377
+ type SyncLinkRun as SyncLinkRun,
378
+ type TransferLinkRun as TransferLinkRun,
379
+ type TransferRun as TransferRun,
156
380
  type V1SyncLinkResponse as V1SyncLinkResponse,
157
381
  type V1TransferResponse as V1TransferResponse,
158
382
  type V1SyncLinkParams as V1SyncLinkParams,
159
383
  type V1TransferParams as V1TransferParams,
160
384
  };
161
385
 
386
+ export { Applications as Applications };
387
+
162
388
  export {
163
389
  Installations as Installations,
390
+ type InstallationListResponse as InstallationListResponse,
164
391
  type InstallationListParams as InstallationListParams,
165
392
  type InstallationEnsureParams as InstallationEnsureParams,
166
393
  };
@@ -171,13 +398,16 @@ export declare namespace V1 {
171
398
  type ConnectionListResponse as ConnectionListResponse,
172
399
  type ConnectionBrowseResponse as ConnectionBrowseResponse,
173
400
  type ConnectionCreateParams as ConnectionCreateParams,
401
+ type ConnectionRetrieveParams as ConnectionRetrieveParams,
174
402
  type ConnectionListParams as ConnectionListParams,
175
403
  type ConnectionDeleteParams as ConnectionDeleteParams,
176
404
  type ConnectionBrowseParams as ConnectionBrowseParams,
405
+ type ConnectionUpdateAllParams as ConnectionUpdateAllParams,
177
406
  };
178
407
 
179
408
  export {
180
409
  Links as Links,
410
+ type LinkRetrieveParams as LinkRetrieveParams,
181
411
  type LinkUpdateParams as LinkUpdateParams,
182
412
  type LinkListParams as LinkListParams,
183
413
  type LinkDeleteParams as LinkDeleteParams,
@@ -18,11 +18,13 @@ export {
18
18
  type SkillCreateResponse,
19
19
  type SkillUpdateResponse,
20
20
  type SkillDeleteResponse,
21
+ type SkillCatalogResponse,
21
22
  type SkillExportResponse,
22
23
  type SkillReadResponse,
23
24
  type SkillResolveResponse,
24
25
  type SkillCreateParams,
25
26
  type SkillUpdateParams,
27
+ type SkillCatalogParams,
26
28
  type SkillExportParams,
27
29
  type SkillResolveParams,
28
30
  } from './skills/skills';
@@ -42,6 +44,7 @@ export {
42
44
  type VaultUploadResponse,
43
45
  type VaultCreateParams,
44
46
  type VaultUpdateParams,
47
+ type VaultListParams,
45
48
  type VaultDeleteParams,
46
49
  type VaultConfirmUploadParams,
47
50
  type VaultIngestParams,
@@ -3,8 +3,10 @@
3
3
  export {
4
4
  Sessions,
5
5
  type SessionCreateParams,
6
+ type SessionDeleteParams,
6
7
  type SessionCancelParams,
7
8
  type SessionIngestEventsParams,
9
+ type SessionReplaceScopeParams,
8
10
  type SessionRetrieveEventsParams,
9
11
  type SessionRetrieveMessagesParams,
10
12
  type SessionSendRpcParams,