casedev 0.2.0 → 0.4.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 (501) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/client.d.mts +23 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +23 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +24 -5
  7. package/client.js.map +1 -1
  8. package/client.mjs +24 -5
  9. package/client.mjs.map +1 -1
  10. package/internal/parse.d.mts.map +1 -1
  11. package/internal/parse.d.ts.map +1 -1
  12. package/internal/parse.js +5 -0
  13. package/internal/parse.js.map +1 -1
  14. package/internal/parse.mjs +5 -0
  15. package/internal/parse.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/applications/applications.d.mts +10 -0
  18. package/resources/applications/applications.d.mts.map +1 -0
  19. package/resources/applications/applications.d.ts +10 -0
  20. package/resources/applications/applications.d.ts.map +1 -0
  21. package/resources/applications/applications.js +17 -0
  22. package/resources/applications/applications.js.map +1 -0
  23. package/resources/applications/applications.mjs +12 -0
  24. package/resources/applications/applications.mjs.map +1 -0
  25. package/resources/applications/index.d.mts +3 -0
  26. package/resources/applications/index.d.mts.map +1 -0
  27. package/resources/applications/index.d.ts +3 -0
  28. package/resources/applications/index.d.ts.map +1 -0
  29. package/resources/applications/index.js +9 -0
  30. package/resources/applications/index.js.map +1 -0
  31. package/resources/applications/index.mjs +4 -0
  32. package/resources/applications/index.mjs.map +1 -0
  33. package/resources/applications/v1/deployments.d.mts +105 -0
  34. package/resources/applications/v1/deployments.d.mts.map +1 -0
  35. package/resources/applications/v1/deployments.d.ts +105 -0
  36. package/resources/applications/v1/deployments.d.ts.map +1 -0
  37. package/resources/applications/v1/deployments.js +89 -0
  38. package/resources/applications/v1/deployments.js.map +1 -0
  39. package/resources/applications/v1/deployments.mjs +85 -0
  40. package/resources/applications/v1/deployments.mjs.map +1 -0
  41. package/resources/applications/v1/index.d.mts +5 -0
  42. package/resources/applications/v1/index.d.mts.map +1 -0
  43. package/resources/applications/v1/index.d.ts +5 -0
  44. package/resources/applications/v1/index.d.ts.map +1 -0
  45. package/resources/applications/v1/index.js +13 -0
  46. package/resources/applications/v1/index.js.map +1 -0
  47. package/resources/applications/v1/index.mjs +6 -0
  48. package/resources/applications/v1/index.mjs.map +1 -0
  49. package/resources/applications/v1/projects.d.mts +247 -0
  50. package/resources/applications/v1/projects.d.mts.map +1 -0
  51. package/resources/applications/v1/projects.d.ts +247 -0
  52. package/resources/applications/v1/projects.d.ts.map +1 -0
  53. package/resources/applications/v1/projects.js +137 -0
  54. package/resources/applications/v1/projects.js.map +1 -0
  55. package/resources/applications/v1/projects.mjs +133 -0
  56. package/resources/applications/v1/projects.mjs.map +1 -0
  57. package/resources/applications/v1/v1.d.mts +18 -0
  58. package/resources/applications/v1/v1.d.mts.map +1 -0
  59. package/resources/applications/v1/v1.d.ts +18 -0
  60. package/resources/applications/v1/v1.d.ts.map +1 -0
  61. package/resources/applications/v1/v1.js +25 -0
  62. package/resources/applications/v1/v1.js.map +1 -0
  63. package/resources/applications/v1/v1.mjs +20 -0
  64. package/resources/applications/v1/v1.mjs.map +1 -0
  65. package/resources/applications/v1/workflows.d.mts +19 -0
  66. package/resources/applications/v1/workflows.d.mts.map +1 -0
  67. package/resources/applications/v1/workflows.d.ts +19 -0
  68. package/resources/applications/v1/workflows.d.ts.map +1 -0
  69. package/resources/applications/v1/workflows.js +21 -0
  70. package/resources/applications/v1/workflows.js.map +1 -0
  71. package/resources/applications/v1/workflows.mjs +17 -0
  72. package/resources/applications/v1/workflows.mjs.map +1 -0
  73. package/resources/applications/v1.d.mts +2 -0
  74. package/resources/applications/v1.d.mts.map +1 -0
  75. package/resources/applications/v1.d.ts +2 -0
  76. package/resources/applications/v1.d.ts.map +1 -0
  77. package/resources/applications/v1.js +6 -0
  78. package/resources/applications/v1.js.map +1 -0
  79. package/resources/{webhooks.mjs → applications/v1.mjs} +2 -2
  80. package/resources/applications/v1.mjs.map +1 -0
  81. package/resources/applications.d.mts +2 -0
  82. package/resources/applications.d.mts.map +1 -0
  83. package/resources/applications.d.ts +2 -0
  84. package/resources/applications.d.ts.map +1 -0
  85. package/resources/applications.js +6 -0
  86. package/resources/applications.js.map +1 -0
  87. package/resources/applications.mjs +3 -0
  88. package/resources/applications.mjs.map +1 -0
  89. package/resources/compute/v1/index.d.mts +2 -3
  90. package/resources/compute/v1/index.d.mts.map +1 -1
  91. package/resources/compute/v1/index.d.ts +2 -3
  92. package/resources/compute/v1/index.d.ts.map +1 -1
  93. package/resources/compute/v1/index.js +5 -7
  94. package/resources/compute/v1/index.js.map +1 -1
  95. package/resources/compute/v1/index.mjs +2 -3
  96. package/resources/compute/v1/index.mjs.map +1 -1
  97. package/resources/compute/v1/instance-types.d.mts +70 -0
  98. package/resources/compute/v1/instance-types.d.mts.map +1 -0
  99. package/resources/compute/v1/instance-types.d.ts +70 -0
  100. package/resources/compute/v1/instance-types.d.ts.map +1 -0
  101. package/resources/compute/v1/instance-types.js +24 -0
  102. package/resources/compute/v1/instance-types.js.map +1 -0
  103. package/resources/compute/v1/instance-types.mjs +20 -0
  104. package/resources/compute/v1/instance-types.mjs.map +1 -0
  105. package/resources/compute/v1/instances.d.mts +157 -0
  106. package/resources/compute/v1/instances.d.mts.map +1 -0
  107. package/resources/compute/v1/instances.d.ts +157 -0
  108. package/resources/compute/v1/instances.d.ts.map +1 -0
  109. package/resources/compute/v1/instances.js +74 -0
  110. package/resources/compute/v1/instances.js.map +1 -0
  111. package/resources/compute/v1/instances.mjs +70 -0
  112. package/resources/compute/v1/instances.mjs.map +1 -0
  113. package/resources/compute/v1/v1.d.mts +8 -12
  114. package/resources/compute/v1/v1.d.mts.map +1 -1
  115. package/resources/compute/v1/v1.d.ts +8 -12
  116. package/resources/compute/v1/v1.d.ts.map +1 -1
  117. package/resources/compute/v1/v1.js +8 -12
  118. package/resources/compute/v1/v1.js.map +1 -1
  119. package/resources/compute/v1/v1.mjs +8 -12
  120. package/resources/compute/v1/v1.mjs.map +1 -1
  121. package/resources/database/database.d.mts +10 -0
  122. package/resources/database/database.d.mts.map +1 -0
  123. package/resources/database/database.d.ts +10 -0
  124. package/resources/database/database.d.ts.map +1 -0
  125. package/resources/database/database.js +17 -0
  126. package/resources/database/database.js.map +1 -0
  127. package/resources/database/database.mjs +12 -0
  128. package/resources/database/database.mjs.map +1 -0
  129. package/resources/database/index.d.mts +3 -0
  130. package/resources/database/index.d.mts.map +1 -0
  131. package/resources/database/index.d.ts +3 -0
  132. package/resources/database/index.d.ts.map +1 -0
  133. package/resources/database/index.js +9 -0
  134. package/resources/database/index.js.map +1 -0
  135. package/resources/database/index.mjs +4 -0
  136. package/resources/database/index.mjs.map +1 -0
  137. package/resources/database/v1/index.d.mts +3 -0
  138. package/resources/database/v1/index.d.mts.map +1 -0
  139. package/resources/database/v1/index.d.ts +3 -0
  140. package/resources/database/v1/index.d.ts.map +1 -0
  141. package/resources/{webhooks → database/v1}/index.js +3 -3
  142. package/resources/database/v1/index.js.map +1 -0
  143. package/resources/database/v1/index.mjs +4 -0
  144. package/resources/database/v1/index.mjs.map +1 -0
  145. package/resources/database/v1/projects.d.mts +464 -0
  146. package/resources/database/v1/projects.d.mts.map +1 -0
  147. package/resources/database/v1/projects.d.ts +464 -0
  148. package/resources/database/v1/projects.d.ts.map +1 -0
  149. package/resources/database/v1/projects.js +122 -0
  150. package/resources/database/v1/projects.js.map +1 -0
  151. package/resources/database/v1/projects.mjs +118 -0
  152. package/resources/database/v1/projects.mjs.map +1 -0
  153. package/resources/database/v1/v1.d.mts +141 -0
  154. package/resources/database/v1/v1.d.mts.map +1 -0
  155. package/resources/database/v1/v1.d.ts +141 -0
  156. package/resources/database/v1/v1.d.ts.map +1 -0
  157. package/resources/database/v1/v1.js +30 -0
  158. package/resources/database/v1/v1.js.map +1 -0
  159. package/resources/database/v1/v1.mjs +25 -0
  160. package/resources/database/v1/v1.mjs.map +1 -0
  161. package/resources/database/v1.d.mts +2 -0
  162. package/resources/database/v1.d.mts.map +1 -0
  163. package/resources/database/v1.d.ts +2 -0
  164. package/resources/database/v1.d.ts.map +1 -0
  165. package/resources/database/v1.js +6 -0
  166. package/resources/database/v1.js.map +1 -0
  167. package/resources/database/v1.mjs +3 -0
  168. package/resources/database/v1.mjs.map +1 -0
  169. package/resources/database.d.mts +2 -0
  170. package/resources/database.d.mts.map +1 -0
  171. package/resources/database.d.ts +2 -0
  172. package/resources/database.d.ts.map +1 -0
  173. package/resources/{webhooks.js → database.js} +2 -2
  174. package/resources/database.js.map +1 -0
  175. package/resources/database.mjs +3 -0
  176. package/resources/database.mjs.map +1 -0
  177. package/resources/index.d.mts +8 -2
  178. package/resources/index.d.mts.map +1 -1
  179. package/resources/index.d.ts +8 -2
  180. package/resources/index.d.ts.map +1 -1
  181. package/resources/index.js +15 -3
  182. package/resources/index.js.map +1 -1
  183. package/resources/index.mjs +7 -1
  184. package/resources/index.mjs.map +1 -1
  185. package/resources/legal/index.d.mts +3 -0
  186. package/resources/legal/index.d.mts.map +1 -0
  187. package/resources/legal/index.d.ts +3 -0
  188. package/resources/legal/index.d.ts.map +1 -0
  189. package/resources/legal/index.js +9 -0
  190. package/resources/legal/index.js.map +1 -0
  191. package/resources/legal/index.mjs +4 -0
  192. package/resources/legal/index.mjs.map +1 -0
  193. package/resources/legal/legal.d.mts +10 -0
  194. package/resources/legal/legal.d.mts.map +1 -0
  195. package/resources/legal/legal.d.ts +10 -0
  196. package/resources/legal/legal.d.ts.map +1 -0
  197. package/resources/{webhooks/webhooks.js → legal/legal.js} +5 -5
  198. package/resources/legal/legal.js.map +1 -0
  199. package/resources/legal/legal.mjs +12 -0
  200. package/resources/legal/legal.mjs.map +1 -0
  201. package/resources/legal/v1.d.mts +572 -0
  202. package/resources/legal/v1.d.mts.map +1 -0
  203. package/resources/legal/v1.d.ts +572 -0
  204. package/resources/legal/v1.d.ts.map +1 -0
  205. package/resources/legal/v1.js +72 -0
  206. package/resources/legal/v1.js.map +1 -0
  207. package/resources/legal/v1.mjs +68 -0
  208. package/resources/legal/v1.mjs.map +1 -0
  209. package/resources/legal.d.mts +2 -0
  210. package/resources/legal.d.mts.map +1 -0
  211. package/resources/legal.d.ts +2 -0
  212. package/resources/legal.d.ts.map +1 -0
  213. package/resources/legal.js +6 -0
  214. package/resources/legal.js.map +1 -0
  215. package/resources/legal.mjs +3 -0
  216. package/resources/legal.mjs.map +1 -0
  217. package/resources/memory/index.d.mts +3 -0
  218. package/resources/memory/index.d.mts.map +1 -0
  219. package/resources/memory/index.d.ts +3 -0
  220. package/resources/memory/index.d.ts.map +1 -0
  221. package/resources/memory/index.js +9 -0
  222. package/resources/memory/index.js.map +1 -0
  223. package/resources/memory/index.mjs +4 -0
  224. package/resources/memory/index.mjs.map +1 -0
  225. package/resources/memory/memory.d.mts +10 -0
  226. package/resources/memory/memory.d.mts.map +1 -0
  227. package/resources/memory/memory.d.ts +10 -0
  228. package/resources/memory/memory.d.ts.map +1 -0
  229. package/resources/memory/memory.js +17 -0
  230. package/resources/memory/memory.js.map +1 -0
  231. package/resources/memory/memory.mjs +12 -0
  232. package/resources/memory/memory.mjs.map +1 -0
  233. package/resources/memory/v1.d.mts +417 -0
  234. package/resources/memory/v1.d.mts.map +1 -0
  235. package/resources/memory/v1.d.ts +417 -0
  236. package/resources/memory/v1.d.ts.map +1 -0
  237. package/resources/memory/v1.js +66 -0
  238. package/resources/memory/v1.js.map +1 -0
  239. package/resources/memory/v1.mjs +62 -0
  240. package/resources/memory/v1.mjs.map +1 -0
  241. package/resources/memory.d.mts +2 -0
  242. package/resources/memory.d.mts.map +1 -0
  243. package/resources/memory.d.ts +2 -0
  244. package/resources/memory.d.ts.map +1 -0
  245. package/resources/memory.js +6 -0
  246. package/resources/memory.js.map +1 -0
  247. package/resources/memory.mjs +3 -0
  248. package/resources/memory.mjs.map +1 -0
  249. package/resources/ocr/v1.d.mts +31 -19
  250. package/resources/ocr/v1.d.mts.map +1 -1
  251. package/resources/ocr/v1.d.ts +31 -19
  252. package/resources/ocr/v1.d.ts.map +1 -1
  253. package/resources/privilege/index.d.mts +3 -0
  254. package/resources/privilege/index.d.mts.map +1 -0
  255. package/resources/privilege/index.d.ts +3 -0
  256. package/resources/privilege/index.d.ts.map +1 -0
  257. package/resources/privilege/index.js +9 -0
  258. package/resources/privilege/index.js.map +1 -0
  259. package/resources/privilege/index.mjs +4 -0
  260. package/resources/privilege/index.mjs.map +1 -0
  261. package/resources/privilege/privilege.d.mts +10 -0
  262. package/resources/privilege/privilege.d.mts.map +1 -0
  263. package/resources/privilege/privilege.d.ts +10 -0
  264. package/resources/privilege/privilege.d.ts.map +1 -0
  265. package/resources/privilege/privilege.js +17 -0
  266. package/resources/privilege/privilege.js.map +1 -0
  267. package/resources/privilege/privilege.mjs +12 -0
  268. package/resources/privilege/privilege.mjs.map +1 -0
  269. package/resources/privilege/v1.d.mts +100 -0
  270. package/resources/privilege/v1.d.mts.map +1 -0
  271. package/resources/privilege/v1.d.ts +100 -0
  272. package/resources/privilege/v1.d.ts.map +1 -0
  273. package/resources/privilege/v1.js +28 -0
  274. package/resources/privilege/v1.js.map +1 -0
  275. package/resources/privilege/v1.mjs +24 -0
  276. package/resources/privilege/v1.mjs.map +1 -0
  277. package/resources/privilege.d.mts +2 -0
  278. package/resources/privilege.d.mts.map +1 -0
  279. package/resources/privilege.d.ts +2 -0
  280. package/resources/privilege.d.ts.map +1 -0
  281. package/resources/privilege.js +6 -0
  282. package/resources/privilege.js.map +1 -0
  283. package/resources/privilege.mjs +3 -0
  284. package/resources/privilege.mjs.map +1 -0
  285. package/resources/superdoc/index.d.mts +3 -0
  286. package/resources/superdoc/index.d.mts.map +1 -0
  287. package/resources/superdoc/index.d.ts +3 -0
  288. package/resources/superdoc/index.d.ts.map +1 -0
  289. package/resources/superdoc/index.js +9 -0
  290. package/resources/superdoc/index.js.map +1 -0
  291. package/resources/{webhooks → superdoc}/index.mjs +1 -1
  292. package/resources/superdoc/index.mjs.map +1 -0
  293. package/resources/superdoc/superdoc.d.mts +10 -0
  294. package/resources/superdoc/superdoc.d.mts.map +1 -0
  295. package/resources/superdoc/superdoc.d.ts +10 -0
  296. package/resources/superdoc/superdoc.d.ts.map +1 -0
  297. package/resources/superdoc/superdoc.js +17 -0
  298. package/resources/superdoc/superdoc.js.map +1 -0
  299. package/resources/{webhooks/webhooks.mjs → superdoc/superdoc.mjs} +3 -3
  300. package/resources/superdoc/superdoc.mjs.map +1 -0
  301. package/resources/superdoc/v1.d.mts +104 -0
  302. package/resources/superdoc/v1.d.mts.map +1 -0
  303. package/resources/superdoc/v1.d.ts +104 -0
  304. package/resources/superdoc/v1.d.ts.map +1 -0
  305. package/resources/superdoc/v1.js +36 -0
  306. package/resources/superdoc/v1.js.map +1 -0
  307. package/resources/superdoc/v1.mjs +32 -0
  308. package/resources/superdoc/v1.mjs.map +1 -0
  309. package/resources/superdoc.d.mts +2 -0
  310. package/resources/superdoc.d.mts.map +1 -0
  311. package/resources/superdoc.d.ts +2 -0
  312. package/resources/superdoc.d.ts.map +1 -0
  313. package/resources/superdoc.js +6 -0
  314. package/resources/superdoc.js.map +1 -0
  315. package/resources/superdoc.mjs +3 -0
  316. package/resources/superdoc.mjs.map +1 -0
  317. package/resources/translate/index.d.mts +3 -0
  318. package/resources/translate/index.d.mts.map +1 -0
  319. package/resources/translate/index.d.ts +3 -0
  320. package/resources/translate/index.d.ts.map +1 -0
  321. package/resources/translate/index.js +9 -0
  322. package/resources/translate/index.js.map +1 -0
  323. package/resources/translate/index.mjs +4 -0
  324. package/resources/translate/index.mjs.map +1 -0
  325. package/resources/translate/translate.d.mts +10 -0
  326. package/resources/translate/translate.d.mts.map +1 -0
  327. package/resources/translate/translate.d.ts +10 -0
  328. package/resources/translate/translate.d.ts.map +1 -0
  329. package/resources/translate/translate.js +17 -0
  330. package/resources/translate/translate.js.map +1 -0
  331. package/resources/translate/translate.mjs +12 -0
  332. package/resources/translate/translate.mjs.map +1 -0
  333. package/resources/translate/v1.d.mts +154 -0
  334. package/resources/translate/v1.d.mts.map +1 -0
  335. package/resources/translate/v1.d.ts +154 -0
  336. package/resources/translate/v1.d.ts.map +1 -0
  337. package/resources/translate/v1.js +51 -0
  338. package/resources/translate/v1.js.map +1 -0
  339. package/resources/translate/v1.mjs +47 -0
  340. package/resources/translate/v1.mjs.map +1 -0
  341. package/resources/translate.d.mts +2 -0
  342. package/resources/translate.d.mts.map +1 -0
  343. package/resources/translate.d.ts +2 -0
  344. package/resources/translate.d.ts.map +1 -0
  345. package/resources/translate.js +6 -0
  346. package/resources/translate.js.map +1 -0
  347. package/resources/translate.mjs +3 -0
  348. package/resources/translate.mjs.map +1 -0
  349. package/resources/vault/graphrag.d.mts +65 -1
  350. package/resources/vault/graphrag.d.mts.map +1 -1
  351. package/resources/vault/graphrag.d.ts +65 -1
  352. package/resources/vault/graphrag.d.ts.map +1 -1
  353. package/resources/vault/graphrag.js +17 -0
  354. package/resources/vault/graphrag.js.map +1 -1
  355. package/resources/vault/graphrag.mjs +17 -0
  356. package/resources/vault/graphrag.mjs.map +1 -1
  357. package/resources/vault/index.d.mts +4 -3
  358. package/resources/vault/index.d.mts.map +1 -1
  359. package/resources/vault/index.d.ts +4 -3
  360. package/resources/vault/index.d.ts.map +1 -1
  361. package/resources/vault/index.js +3 -1
  362. package/resources/vault/index.js.map +1 -1
  363. package/resources/vault/index.mjs +2 -1
  364. package/resources/vault/index.mjs.map +1 -1
  365. package/resources/vault/multipart.d.mts +140 -0
  366. package/resources/vault/multipart.d.mts.map +1 -0
  367. package/resources/vault/multipart.d.ts +140 -0
  368. package/resources/vault/multipart.d.ts.map +1 -0
  369. package/resources/vault/multipart.js +84 -0
  370. package/resources/vault/multipart.js.map +1 -0
  371. package/resources/vault/multipart.mjs +80 -0
  372. package/resources/vault/multipart.mjs.map +1 -0
  373. package/resources/vault/objects.d.mts +319 -42
  374. package/resources/vault/objects.d.mts.map +1 -1
  375. package/resources/vault/objects.d.ts +319 -42
  376. package/resources/vault/objects.d.ts.map +1 -1
  377. package/resources/vault/objects.js +72 -0
  378. package/resources/vault/objects.js.map +1 -1
  379. package/resources/vault/objects.mjs +72 -0
  380. package/resources/vault/objects.mjs.map +1 -1
  381. package/resources/vault/vault.d.mts +168 -23
  382. package/resources/vault/vault.d.mts.map +1 -1
  383. package/resources/vault/vault.d.ts +168 -23
  384. package/resources/vault/vault.d.ts.map +1 -1
  385. package/resources/vault/vault.js +33 -0
  386. package/resources/vault/vault.js.map +1 -1
  387. package/resources/vault/vault.mjs +34 -1
  388. package/resources/vault/vault.mjs.map +1 -1
  389. package/resources/voice/streaming.d.mts +1 -1
  390. package/resources/voice/streaming.d.ts +1 -1
  391. package/resources/voice/streaming.js +1 -1
  392. package/resources/voice/streaming.mjs +1 -1
  393. package/src/client.ts +46 -7
  394. package/src/internal/parse.ts +6 -0
  395. package/src/resources/{webhooks/webhooks.ts → applications/applications.ts} +5 -5
  396. package/src/resources/applications/index.ts +4 -0
  397. package/src/resources/applications/v1/deployments.ts +183 -0
  398. package/src/resources/applications/v1/index.ts +27 -0
  399. package/src/resources/applications/v1/projects.ts +421 -0
  400. package/src/resources/applications/v1/v1.ts +69 -0
  401. package/src/resources/applications/v1/workflows.ts +31 -0
  402. package/src/resources/{webhooks.ts → applications/v1.ts} +1 -1
  403. package/src/resources/{webhooks/index.ts → applications.ts} +1 -2
  404. package/src/resources/compute/v1/index.ts +9 -3
  405. package/src/resources/compute/v1/instance-types.ts +86 -0
  406. package/src/resources/compute/v1/instances.ts +237 -0
  407. package/src/resources/compute/v1/v1.ts +24 -16
  408. package/src/resources/database/database.ts +15 -0
  409. package/src/resources/database/index.ts +4 -0
  410. package/src/resources/database/v1/index.ts +16 -0
  411. package/src/resources/database/v1/projects.ts +594 -0
  412. package/src/resources/database/v1/v1.ts +209 -0
  413. package/src/resources/database/v1.ts +3 -0
  414. package/src/resources/database.ts +3 -0
  415. package/src/resources/index.ts +11 -1
  416. package/src/resources/legal/index.ts +22 -0
  417. package/src/resources/legal/legal.ts +51 -0
  418. package/src/resources/legal/v1.ts +749 -0
  419. package/src/resources/legal.ts +3 -0
  420. package/src/resources/memory/index.ts +16 -0
  421. package/src/resources/memory/memory.ts +39 -0
  422. package/src/resources/memory/v1.ts +556 -0
  423. package/src/resources/memory.ts +3 -0
  424. package/src/resources/ocr/v1.ts +29 -20
  425. package/src/resources/privilege/index.ts +4 -0
  426. package/src/resources/privilege/privilege.ts +15 -0
  427. package/src/resources/privilege/v1.ts +122 -0
  428. package/src/resources/privilege.ts +3 -0
  429. package/src/resources/superdoc/index.ts +4 -0
  430. package/src/resources/superdoc/superdoc.ts +15 -0
  431. package/src/resources/superdoc/v1.ts +146 -0
  432. package/src/resources/superdoc.ts +3 -0
  433. package/src/resources/translate/index.ts +12 -0
  434. package/src/resources/translate/translate.ts +31 -0
  435. package/src/resources/translate/v1.ts +197 -0
  436. package/src/resources/translate.ts +3 -0
  437. package/src/resources/vault/graphrag.ts +86 -0
  438. package/src/resources/vault/index.ts +28 -1
  439. package/src/resources/vault/multipart.ts +204 -0
  440. package/src/resources/vault/objects.ts +409 -44
  441. package/src/resources/vault/vault.ts +254 -22
  442. package/src/resources/voice/streaming.ts +1 -1
  443. package/src/version.ts +1 -1
  444. package/version.d.mts +1 -1
  445. package/version.d.ts +1 -1
  446. package/version.js +1 -1
  447. package/version.mjs +1 -1
  448. package/resources/compute/v1/functions.d.mts +0 -4
  449. package/resources/compute/v1/functions.d.mts.map +0 -1
  450. package/resources/compute/v1/functions.d.ts +0 -4
  451. package/resources/compute/v1/functions.d.ts.map +0 -1
  452. package/resources/compute/v1/functions.js +0 -9
  453. package/resources/compute/v1/functions.js.map +0 -1
  454. package/resources/compute/v1/functions.mjs +0 -5
  455. package/resources/compute/v1/functions.mjs.map +0 -1
  456. package/resources/compute/v1/invoke.d.mts +0 -4
  457. package/resources/compute/v1/invoke.d.mts.map +0 -1
  458. package/resources/compute/v1/invoke.d.ts +0 -4
  459. package/resources/compute/v1/invoke.d.ts.map +0 -1
  460. package/resources/compute/v1/invoke.js +0 -9
  461. package/resources/compute/v1/invoke.js.map +0 -1
  462. package/resources/compute/v1/invoke.mjs +0 -5
  463. package/resources/compute/v1/invoke.mjs.map +0 -1
  464. package/resources/compute/v1/runs.d.mts +0 -4
  465. package/resources/compute/v1/runs.d.mts.map +0 -1
  466. package/resources/compute/v1/runs.d.ts +0 -4
  467. package/resources/compute/v1/runs.d.ts.map +0 -1
  468. package/resources/compute/v1/runs.js +0 -9
  469. package/resources/compute/v1/runs.js.map +0 -1
  470. package/resources/compute/v1/runs.mjs +0 -5
  471. package/resources/compute/v1/runs.mjs.map +0 -1
  472. package/resources/webhooks/index.d.mts +0 -3
  473. package/resources/webhooks/index.d.mts.map +0 -1
  474. package/resources/webhooks/index.d.ts +0 -3
  475. package/resources/webhooks/index.d.ts.map +0 -1
  476. package/resources/webhooks/index.js.map +0 -1
  477. package/resources/webhooks/index.mjs.map +0 -1
  478. package/resources/webhooks/v1.d.mts +0 -4
  479. package/resources/webhooks/v1.d.mts.map +0 -1
  480. package/resources/webhooks/v1.d.ts +0 -4
  481. package/resources/webhooks/v1.d.ts.map +0 -1
  482. package/resources/webhooks/v1.js +0 -9
  483. package/resources/webhooks/v1.js.map +0 -1
  484. package/resources/webhooks/v1.mjs +0 -5
  485. package/resources/webhooks/v1.mjs.map +0 -1
  486. package/resources/webhooks/webhooks.d.mts +0 -10
  487. package/resources/webhooks/webhooks.d.mts.map +0 -1
  488. package/resources/webhooks/webhooks.d.ts +0 -10
  489. package/resources/webhooks/webhooks.d.ts.map +0 -1
  490. package/resources/webhooks/webhooks.js.map +0 -1
  491. package/resources/webhooks/webhooks.mjs.map +0 -1
  492. package/resources/webhooks.d.mts +0 -2
  493. package/resources/webhooks.d.mts.map +0 -1
  494. package/resources/webhooks.d.ts +0 -2
  495. package/resources/webhooks.d.ts.map +0 -1
  496. package/resources/webhooks.js.map +0 -1
  497. package/resources/webhooks.mjs.map +0 -1
  498. package/src/resources/compute/v1/functions.ts +0 -5
  499. package/src/resources/compute/v1/invoke.ts +0 -5
  500. package/src/resources/compute/v1/runs.ts +0 -5
  501. package/src/resources/webhooks/v1.ts +0 -5
@@ -0,0 +1,140 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ export declare class Multipart extends APIResource {
5
+ /**
6
+ * Abort a multipart upload and discard uploaded parts.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * await client.vault.multipart.abort('id', {
11
+ * objectId: 'objectId',
12
+ * uploadId: 'uploadId',
13
+ * });
14
+ * ```
15
+ */
16
+ abort(id: string, body: MultipartAbortParams, options?: RequestOptions): APIPromise<void>;
17
+ /**
18
+ * Complete a multipart upload by providing the list of part numbers and ETags.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * await client.vault.multipart.complete('id', {
23
+ * objectId: 'objectId',
24
+ * parts: [{ etag: 'etag', partNumber: 1 }],
25
+ * sizeBytes: 1,
26
+ * uploadId: 'uploadId',
27
+ * });
28
+ * ```
29
+ */
30
+ complete(id: string, body: MultipartCompleteParams, options?: RequestOptions): APIPromise<void>;
31
+ /**
32
+ * Generate presigned URLs for individual multipart upload parts.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const response = await client.vault.multipart.getPartURLs(
37
+ * 'id',
38
+ * {
39
+ * objectId: 'objectId',
40
+ * parts: [{ partNumber: 1, sizeBytes: 1 }],
41
+ * uploadId: 'uploadId',
42
+ * },
43
+ * );
44
+ * ```
45
+ */
46
+ getPartURLs(id: string, body: MultipartGetPartURLsParams, options?: RequestOptions): APIPromise<MultipartGetPartURLsResponse>;
47
+ /**
48
+ * Initiate a multipart upload for large files (>5GB). Returns an uploadId and
49
+ * object metadata. Use part URLs endpoint to upload parts and complete endpoint to
50
+ * finalize.
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * const response = await client.vault.multipart.init('id', {
55
+ * contentType: 'contentType',
56
+ * filename: 'filename',
57
+ * sizeBytes: 1,
58
+ * });
59
+ * ```
60
+ */
61
+ init(id: string, body: MultipartInitParams, options?: RequestOptions): APIPromise<MultipartInitResponse>;
62
+ }
63
+ export interface MultipartGetPartURLsResponse {
64
+ urls?: Array<MultipartGetPartURLsResponse.URL>;
65
+ }
66
+ export declare namespace MultipartGetPartURLsResponse {
67
+ interface URL {
68
+ partNumber?: number;
69
+ url?: string;
70
+ }
71
+ }
72
+ export interface MultipartInitResponse {
73
+ next_step?: string;
74
+ objectId?: string;
75
+ partCount?: number;
76
+ partSizeBytes?: number;
77
+ s3Key?: string;
78
+ uploadId?: string;
79
+ }
80
+ export interface MultipartAbortParams {
81
+ objectId: string;
82
+ uploadId: string;
83
+ }
84
+ export interface MultipartCompleteParams {
85
+ objectId: string;
86
+ parts: Array<MultipartCompleteParams.Part>;
87
+ sizeBytes: number;
88
+ uploadId: string;
89
+ }
90
+ export declare namespace MultipartCompleteParams {
91
+ interface Part {
92
+ etag: string;
93
+ partNumber: number;
94
+ }
95
+ }
96
+ export interface MultipartGetPartURLsParams {
97
+ objectId: string;
98
+ parts: Array<MultipartGetPartURLsParams.Part>;
99
+ uploadId: string;
100
+ }
101
+ export declare namespace MultipartGetPartURLsParams {
102
+ interface Part {
103
+ partNumber: number;
104
+ sizeBytes: number;
105
+ }
106
+ }
107
+ export interface MultipartInitParams {
108
+ /**
109
+ * MIME type of the file
110
+ */
111
+ contentType: string;
112
+ /**
113
+ * Name of the file to upload
114
+ */
115
+ filename: string;
116
+ /**
117
+ * File size in bytes (required, max 8GB).
118
+ */
119
+ sizeBytes: number;
120
+ /**
121
+ * Whether to automatically process and index the file for search
122
+ */
123
+ auto_index?: boolean;
124
+ /**
125
+ * Additional metadata to associate with the file
126
+ */
127
+ metadata?: unknown;
128
+ /**
129
+ * Multipart part size in bytes (min 5MB). Defaults to 64MB.
130
+ */
131
+ partSizeBytes?: number;
132
+ /**
133
+ * Optional folder path for hierarchy preservation
134
+ */
135
+ path?: string;
136
+ }
137
+ export declare namespace Multipart {
138
+ export { type MultipartGetPartURLsResponse as MultipartGetPartURLsResponse, type MultipartInitResponse as MultipartInitResponse, type MultipartAbortParams as MultipartAbortParams, type MultipartCompleteParams as MultipartCompleteParams, type MultipartGetPartURLsParams as MultipartGetPartURLsParams, type MultipartInitParams as MultipartInitParams, };
139
+ }
140
+ //# sourceMappingURL=multipart.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multipart.d.mts","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQzF;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ/F;;;;;;;;;;;;;;OAcG;IACH,WAAW,CACT,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGzG;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,CAAC,EAAE,KAAK,CAAC,4BAA4B,CAAC,GAAG,CAAC,CAAC;CAChD;AAED,yBAAiB,4BAA4B,CAAC;IAC5C,UAAiB,GAAG;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,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B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,140 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class Multipart extends APIResource {
5
+ /**
6
+ * Abort a multipart upload and discard uploaded parts.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * await client.vault.multipart.abort('id', {
11
+ * objectId: 'objectId',
12
+ * uploadId: 'uploadId',
13
+ * });
14
+ * ```
15
+ */
16
+ abort(id: string, body: MultipartAbortParams, options?: RequestOptions): APIPromise<void>;
17
+ /**
18
+ * Complete a multipart upload by providing the list of part numbers and ETags.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * await client.vault.multipart.complete('id', {
23
+ * objectId: 'objectId',
24
+ * parts: [{ etag: 'etag', partNumber: 1 }],
25
+ * sizeBytes: 1,
26
+ * uploadId: 'uploadId',
27
+ * });
28
+ * ```
29
+ */
30
+ complete(id: string, body: MultipartCompleteParams, options?: RequestOptions): APIPromise<void>;
31
+ /**
32
+ * Generate presigned URLs for individual multipart upload parts.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const response = await client.vault.multipart.getPartURLs(
37
+ * 'id',
38
+ * {
39
+ * objectId: 'objectId',
40
+ * parts: [{ partNumber: 1, sizeBytes: 1 }],
41
+ * uploadId: 'uploadId',
42
+ * },
43
+ * );
44
+ * ```
45
+ */
46
+ getPartURLs(id: string, body: MultipartGetPartURLsParams, options?: RequestOptions): APIPromise<MultipartGetPartURLsResponse>;
47
+ /**
48
+ * Initiate a multipart upload for large files (>5GB). Returns an uploadId and
49
+ * object metadata. Use part URLs endpoint to upload parts and complete endpoint to
50
+ * finalize.
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * const response = await client.vault.multipart.init('id', {
55
+ * contentType: 'contentType',
56
+ * filename: 'filename',
57
+ * sizeBytes: 1,
58
+ * });
59
+ * ```
60
+ */
61
+ init(id: string, body: MultipartInitParams, options?: RequestOptions): APIPromise<MultipartInitResponse>;
62
+ }
63
+ export interface MultipartGetPartURLsResponse {
64
+ urls?: Array<MultipartGetPartURLsResponse.URL>;
65
+ }
66
+ export declare namespace MultipartGetPartURLsResponse {
67
+ interface URL {
68
+ partNumber?: number;
69
+ url?: string;
70
+ }
71
+ }
72
+ export interface MultipartInitResponse {
73
+ next_step?: string;
74
+ objectId?: string;
75
+ partCount?: number;
76
+ partSizeBytes?: number;
77
+ s3Key?: string;
78
+ uploadId?: string;
79
+ }
80
+ export interface MultipartAbortParams {
81
+ objectId: string;
82
+ uploadId: string;
83
+ }
84
+ export interface MultipartCompleteParams {
85
+ objectId: string;
86
+ parts: Array<MultipartCompleteParams.Part>;
87
+ sizeBytes: number;
88
+ uploadId: string;
89
+ }
90
+ export declare namespace MultipartCompleteParams {
91
+ interface Part {
92
+ etag: string;
93
+ partNumber: number;
94
+ }
95
+ }
96
+ export interface MultipartGetPartURLsParams {
97
+ objectId: string;
98
+ parts: Array<MultipartGetPartURLsParams.Part>;
99
+ uploadId: string;
100
+ }
101
+ export declare namespace MultipartGetPartURLsParams {
102
+ interface Part {
103
+ partNumber: number;
104
+ sizeBytes: number;
105
+ }
106
+ }
107
+ export interface MultipartInitParams {
108
+ /**
109
+ * MIME type of the file
110
+ */
111
+ contentType: string;
112
+ /**
113
+ * Name of the file to upload
114
+ */
115
+ filename: string;
116
+ /**
117
+ * File size in bytes (required, max 8GB).
118
+ */
119
+ sizeBytes: number;
120
+ /**
121
+ * Whether to automatically process and index the file for search
122
+ */
123
+ auto_index?: boolean;
124
+ /**
125
+ * Additional metadata to associate with the file
126
+ */
127
+ metadata?: unknown;
128
+ /**
129
+ * Multipart part size in bytes (min 5MB). Defaults to 64MB.
130
+ */
131
+ partSizeBytes?: number;
132
+ /**
133
+ * Optional folder path for hierarchy preservation
134
+ */
135
+ path?: string;
136
+ }
137
+ export declare namespace Multipart {
138
+ export { type MultipartGetPartURLsResponse as MultipartGetPartURLsResponse, type MultipartInitResponse as MultipartInitResponse, type MultipartAbortParams as MultipartAbortParams, type MultipartCompleteParams as MultipartCompleteParams, type MultipartGetPartURLsParams as MultipartGetPartURLsParams, type MultipartInitParams as MultipartInitParams, };
139
+ }
140
+ //# sourceMappingURL=multipart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multipart.d.ts","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQzF;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ/F;;;;;;;;;;;;;;OAcG;IACH,WAAW,CACT,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAA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AAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Multipart = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const headers_1 = require("../../internal/headers.js");
7
+ const path_1 = require("../../internal/utils/path.js");
8
+ class Multipart extends resource_1.APIResource {
9
+ /**
10
+ * Abort a multipart upload and discard uploaded parts.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * await client.vault.multipart.abort('id', {
15
+ * objectId: 'objectId',
16
+ * uploadId: 'uploadId',
17
+ * });
18
+ * ```
19
+ */
20
+ abort(id, body, options) {
21
+ return this._client.post((0, path_1.path) `/vault/${id}/multipart/abort`, {
22
+ body,
23
+ ...options,
24
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
25
+ });
26
+ }
27
+ /**
28
+ * Complete a multipart upload by providing the list of part numbers and ETags.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * await client.vault.multipart.complete('id', {
33
+ * objectId: 'objectId',
34
+ * parts: [{ etag: 'etag', partNumber: 1 }],
35
+ * sizeBytes: 1,
36
+ * uploadId: 'uploadId',
37
+ * });
38
+ * ```
39
+ */
40
+ complete(id, body, options) {
41
+ return this._client.post((0, path_1.path) `/vault/${id}/multipart/complete`, {
42
+ body,
43
+ ...options,
44
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
45
+ });
46
+ }
47
+ /**
48
+ * Generate presigned URLs for individual multipart upload parts.
49
+ *
50
+ * @example
51
+ * ```ts
52
+ * const response = await client.vault.multipart.getPartURLs(
53
+ * 'id',
54
+ * {
55
+ * objectId: 'objectId',
56
+ * parts: [{ partNumber: 1, sizeBytes: 1 }],
57
+ * uploadId: 'uploadId',
58
+ * },
59
+ * );
60
+ * ```
61
+ */
62
+ getPartURLs(id, body, options) {
63
+ return this._client.post((0, path_1.path) `/vault/${id}/multipart/part-urls`, { body, ...options });
64
+ }
65
+ /**
66
+ * Initiate a multipart upload for large files (>5GB). Returns an uploadId and
67
+ * object metadata. Use part URLs endpoint to upload parts and complete endpoint to
68
+ * finalize.
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * const response = await client.vault.multipart.init('id', {
73
+ * contentType: 'contentType',
74
+ * filename: 'filename',
75
+ * sizeBytes: 1,
76
+ * });
77
+ * ```
78
+ */
79
+ init(id, body, options) {
80
+ return this._client.post((0, path_1.path) `/vault/${id}/multipart/init`, { body, ...options });
81
+ }
82
+ }
83
+ exports.Multipart = Multipart;
84
+ //# sourceMappingURL=multipart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multipart.js","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,SAAU,SAAQ,sBA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} from "../../core/resource.mjs";
3
+ import { buildHeaders } from "../../internal/headers.mjs";
4
+ import { path } from "../../internal/utils/path.mjs";
5
+ export class Multipart extends APIResource {
6
+ /**
7
+ * Abort a multipart upload and discard uploaded parts.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * await client.vault.multipart.abort('id', {
12
+ * objectId: 'objectId',
13
+ * uploadId: 'uploadId',
14
+ * });
15
+ * ```
16
+ */
17
+ abort(id, body, options) {
18
+ return this._client.post(path `/vault/${id}/multipart/abort`, {
19
+ body,
20
+ ...options,
21
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
22
+ });
23
+ }
24
+ /**
25
+ * Complete a multipart upload by providing the list of part numbers and ETags.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * await client.vault.multipart.complete('id', {
30
+ * objectId: 'objectId',
31
+ * parts: [{ etag: 'etag', partNumber: 1 }],
32
+ * sizeBytes: 1,
33
+ * uploadId: 'uploadId',
34
+ * });
35
+ * ```
36
+ */
37
+ complete(id, body, options) {
38
+ return this._client.post(path `/vault/${id}/multipart/complete`, {
39
+ body,
40
+ ...options,
41
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
42
+ });
43
+ }
44
+ /**
45
+ * Generate presigned URLs for individual multipart upload parts.
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * const response = await client.vault.multipart.getPartURLs(
50
+ * 'id',
51
+ * {
52
+ * objectId: 'objectId',
53
+ * parts: [{ partNumber: 1, sizeBytes: 1 }],
54
+ * uploadId: 'uploadId',
55
+ * },
56
+ * );
57
+ * ```
58
+ */
59
+ getPartURLs(id, body, options) {
60
+ return this._client.post(path `/vault/${id}/multipart/part-urls`, { body, ...options });
61
+ }
62
+ /**
63
+ * Initiate a multipart upload for large files (>5GB). Returns an uploadId and
64
+ * object metadata. Use part URLs endpoint to upload parts and complete endpoint to
65
+ * finalize.
66
+ *
67
+ * @example
68
+ * ```ts
69
+ * const response = await client.vault.multipart.init('id', {
70
+ * contentType: 'contentType',
71
+ * filename: 'filename',
72
+ * sizeBytes: 1,
73
+ * });
74
+ * ```
75
+ */
76
+ init(id, body, options) {
77
+ return this._client.post(path `/vault/${id}/multipart/init`, { body, ...options });
78
+ }
79
+ }
80
+ //# sourceMappingURL=multipart.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multipart.mjs","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAU,EAAE,IAA0B,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,EAAE,kBAAkB,EAAE;YAC3D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAU,EAAE,IAA6B,EAAE,OAAwB;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,EAAE,qBAAqB,EAAE;YAC9D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,WAAW,CACT,EAAU,EACV,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,EAAE,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE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