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,594 @@
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
+ export class Projects extends APIResource {
9
+ /**
10
+ * Creates a new serverless Postgres database project powered by Neon. Includes
11
+ * automatic scaling, connection pooling, and a default 'main' branch with 'neondb'
12
+ * database. Supports branching for isolated dev/staging environments. Perfect for
13
+ * case management applications, document workflows, and litigation support
14
+ * systems.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const project = await client.database.v1.projects.create({
19
+ * name: 'litigation-docs-db',
20
+ * description:
21
+ * 'Production database for litigation document management',
22
+ * region: 'aws-us-east-1',
23
+ * });
24
+ * ```
25
+ */
26
+ create(body: ProjectCreateParams, options?: RequestOptions): APIPromise<ProjectCreateResponse> {
27
+ return this._client.post('/database/v1/projects', { body, ...options });
28
+ }
29
+
30
+ /**
31
+ * Retrieves detailed information about a specific database project including
32
+ * branches, databases, storage/compute metrics, connection host, and linked
33
+ * deployments. Fetches live usage statistics from Neon API.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const project = await client.database.v1.projects.retrieve(
38
+ * 'id',
39
+ * );
40
+ * ```
41
+ */
42
+ retrieve(id: string, options?: RequestOptions): APIPromise<ProjectRetrieveResponse> {
43
+ return this._client.get(path`/database/v1/projects/${id}`, options);
44
+ }
45
+
46
+ /**
47
+ * Retrieves all serverless Postgres database projects for the authenticated
48
+ * organization. Includes storage and compute metrics, plus linked deployments from
49
+ * Thurgood apps and Compute instances.
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * const projects = await client.database.v1.projects.list();
54
+ * ```
55
+ */
56
+ list(options?: RequestOptions): APIPromise<ProjectListResponse> {
57
+ return this._client.get('/database/v1/projects', options);
58
+ }
59
+
60
+ /**
61
+ * Permanently deletes a database project from Neon and marks it as deleted in
62
+ * Case.dev. This action cannot be undone and will destroy all data including
63
+ * branches and databases. Use with caution.
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * const project = await client.database.v1.projects.delete(
68
+ * 'id',
69
+ * );
70
+ * ```
71
+ */
72
+ delete(id: string, options?: RequestOptions): APIPromise<ProjectDeleteResponse> {
73
+ return this._client.delete(path`/database/v1/projects/${id}`, options);
74
+ }
75
+
76
+ /**
77
+ * Creates a new branch from the specified parent branch (or default 'main'
78
+ * branch). Branches provide instant point-in-time clones of your database for
79
+ * isolated development, staging, testing, or feature work. Perfect for testing
80
+ * schema changes, running migrations safely, or creating ephemeral preview
81
+ * environments.
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * const response =
86
+ * await client.database.v1.projects.createBranch('id', {
87
+ * name: 'staging',
88
+ * parentBranchId: 'branch_main_123',
89
+ * });
90
+ * ```
91
+ */
92
+ createBranch(
93
+ id: string,
94
+ body: ProjectCreateBranchParams,
95
+ options?: RequestOptions,
96
+ ): APIPromise<ProjectCreateBranchResponse> {
97
+ return this._client.post(path`/database/v1/projects/${id}/branches`, { body, ...options });
98
+ }
99
+
100
+ /**
101
+ * Retrieves the PostgreSQL connection URI for a database project. Supports
102
+ * selecting specific branches and pooled vs direct connections. Connection strings
103
+ * include credentials and should be stored securely. Use for configuring
104
+ * applications and deployment environments.
105
+ *
106
+ * @example
107
+ * ```ts
108
+ * const response =
109
+ * await client.database.v1.projects.getConnection('id');
110
+ * ```
111
+ */
112
+ getConnection(
113
+ id: string,
114
+ query: ProjectGetConnectionParams | null | undefined = {},
115
+ options?: RequestOptions,
116
+ ): APIPromise<ProjectGetConnectionResponse> {
117
+ return this._client.get(path`/database/v1/projects/${id}/connection`, { query, ...options });
118
+ }
119
+
120
+ /**
121
+ * Retrieves all branches for a database project. Branches enable isolated
122
+ * development and testing environments with instant point-in-time cloning. Each
123
+ * branch includes the default branch and any custom branches created for staging,
124
+ * testing, or feature development.
125
+ *
126
+ * @example
127
+ * ```ts
128
+ * const response =
129
+ * await client.database.v1.projects.listBranches('id');
130
+ * ```
131
+ */
132
+ listBranches(id: string, options?: RequestOptions): APIPromise<ProjectListBranchesResponse> {
133
+ return this._client.get(path`/database/v1/projects/${id}/branches`, options);
134
+ }
135
+ }
136
+
137
+ export interface ProjectCreateResponse {
138
+ /**
139
+ * Project ID
140
+ */
141
+ id: string;
142
+
143
+ /**
144
+ * Project creation timestamp
145
+ */
146
+ createdAt: string;
147
+
148
+ /**
149
+ * Default 'main' branch details
150
+ */
151
+ defaultBranch: ProjectCreateResponse.DefaultBranch;
152
+
153
+ /**
154
+ * Project name
155
+ */
156
+ name: string;
157
+
158
+ /**
159
+ * PostgreSQL major version
160
+ */
161
+ pgVersion: number;
162
+
163
+ /**
164
+ * AWS region
165
+ */
166
+ region: string;
167
+
168
+ /**
169
+ * Project status
170
+ */
171
+ status: 'active' | 'suspended' | 'deleted';
172
+
173
+ /**
174
+ * Project description
175
+ */
176
+ description?: string | null;
177
+ }
178
+
179
+ export namespace ProjectCreateResponse {
180
+ /**
181
+ * Default 'main' branch details
182
+ */
183
+ export interface DefaultBranch {
184
+ /**
185
+ * Branch ID
186
+ */
187
+ id?: string;
188
+
189
+ /**
190
+ * Branch name
191
+ */
192
+ name?: string;
193
+ }
194
+ }
195
+
196
+ export interface ProjectRetrieveResponse {
197
+ /**
198
+ * Project ID
199
+ */
200
+ id: string;
201
+
202
+ /**
203
+ * All branches in this project
204
+ */
205
+ branches: Array<ProjectRetrieveResponse.Branch>;
206
+
207
+ /**
208
+ * Total compute time consumed in seconds
209
+ */
210
+ computeTimeSeconds: number;
211
+
212
+ /**
213
+ * Database connection hostname (masked for security)
214
+ */
215
+ connectionHost: string;
216
+
217
+ /**
218
+ * Project creation timestamp
219
+ */
220
+ createdAt: string;
221
+
222
+ /**
223
+ * Databases in the default branch
224
+ */
225
+ databases: Array<ProjectRetrieveResponse.Database>;
226
+
227
+ /**
228
+ * Linked deployments using this database
229
+ */
230
+ linkedDeployments: Array<ProjectRetrieveResponse.LinkedDeployment>;
231
+
232
+ /**
233
+ * Project name
234
+ */
235
+ name: string;
236
+
237
+ /**
238
+ * PostgreSQL major version
239
+ */
240
+ pgVersion: number;
241
+
242
+ /**
243
+ * AWS region
244
+ */
245
+ region: string;
246
+
247
+ /**
248
+ * Project status
249
+ */
250
+ status: 'active' | 'suspended' | 'deleted';
251
+
252
+ /**
253
+ * Current storage usage in bytes
254
+ */
255
+ storageSizeBytes: number;
256
+
257
+ /**
258
+ * Project last update timestamp
259
+ */
260
+ updatedAt: string;
261
+
262
+ /**
263
+ * Project description
264
+ */
265
+ description?: string | null;
266
+ }
267
+
268
+ export namespace ProjectRetrieveResponse {
269
+ export interface Branch {
270
+ /**
271
+ * Branch ID
272
+ */
273
+ id?: string;
274
+
275
+ /**
276
+ * Branch creation timestamp
277
+ */
278
+ createdAt?: string;
279
+
280
+ /**
281
+ * Whether this is the default branch
282
+ */
283
+ isDefault?: boolean;
284
+
285
+ /**
286
+ * Branch name
287
+ */
288
+ name?: string;
289
+
290
+ /**
291
+ * Branch status
292
+ */
293
+ status?: string;
294
+ }
295
+
296
+ export interface Database {
297
+ /**
298
+ * Database ID
299
+ */
300
+ id?: string;
301
+
302
+ /**
303
+ * Database name
304
+ */
305
+ name?: string;
306
+
307
+ /**
308
+ * Database owner role name
309
+ */
310
+ ownerName?: string;
311
+ }
312
+
313
+ export interface LinkedDeployment {
314
+ /**
315
+ * Deployment ID
316
+ */
317
+ id?: string;
318
+
319
+ /**
320
+ * Environment variable name for connection string
321
+ */
322
+ envVarName?: string;
323
+
324
+ /**
325
+ * Deployment name
326
+ */
327
+ name?: string;
328
+
329
+ /**
330
+ * Deployment type
331
+ */
332
+ type?: 'thurgood' | 'compute';
333
+
334
+ /**
335
+ * Deployment URL
336
+ */
337
+ url?: string;
338
+ }
339
+ }
340
+
341
+ export interface ProjectListResponse {
342
+ projects: Array<ProjectListResponse.Project>;
343
+ }
344
+
345
+ export namespace ProjectListResponse {
346
+ export interface Project {
347
+ /**
348
+ * Project ID
349
+ */
350
+ id?: string;
351
+
352
+ /**
353
+ * Total compute time consumed in seconds
354
+ */
355
+ computeTimeSeconds?: number;
356
+
357
+ /**
358
+ * Project creation timestamp
359
+ */
360
+ createdAt?: string;
361
+
362
+ /**
363
+ * Project description
364
+ */
365
+ description?: string | null;
366
+
367
+ /**
368
+ * Linked application deployments using this database
369
+ */
370
+ linkedDeployments?: Array<Project.LinkedDeployment>;
371
+
372
+ /**
373
+ * Project name
374
+ */
375
+ name?: string;
376
+
377
+ /**
378
+ * PostgreSQL major version
379
+ */
380
+ pgVersion?: number;
381
+
382
+ /**
383
+ * AWS region where database is deployed
384
+ */
385
+ region?: string;
386
+
387
+ /**
388
+ * Current project status
389
+ */
390
+ status?: 'active' | 'suspended' | 'deleted';
391
+
392
+ /**
393
+ * Current storage usage in bytes
394
+ */
395
+ storageSizeBytes?: number;
396
+
397
+ /**
398
+ * Project last update timestamp
399
+ */
400
+ updatedAt?: string;
401
+ }
402
+
403
+ export namespace Project {
404
+ export interface LinkedDeployment {
405
+ /**
406
+ * Deployment ID
407
+ */
408
+ id?: string;
409
+
410
+ /**
411
+ * Deployment name
412
+ */
413
+ name?: string;
414
+
415
+ /**
416
+ * Type of deployment
417
+ */
418
+ type?: 'thurgood' | 'compute';
419
+
420
+ /**
421
+ * Deployment URL (for Thurgood apps)
422
+ */
423
+ url?: string;
424
+ }
425
+ }
426
+ }
427
+
428
+ export interface ProjectDeleteResponse {
429
+ /**
430
+ * Confirmation message
431
+ */
432
+ message: string;
433
+
434
+ /**
435
+ * Deletion success indicator
436
+ */
437
+ success: boolean;
438
+ }
439
+
440
+ export interface ProjectCreateBranchResponse {
441
+ /**
442
+ * Branch ID
443
+ */
444
+ id: string;
445
+
446
+ /**
447
+ * Branch creation timestamp
448
+ */
449
+ createdAt: string;
450
+
451
+ /**
452
+ * Whether this is the default branch (always false for new branches)
453
+ */
454
+ isDefault: boolean;
455
+
456
+ /**
457
+ * Branch name
458
+ */
459
+ name: string;
460
+
461
+ /**
462
+ * Parent branch ID
463
+ */
464
+ parentBranchId: string | null;
465
+
466
+ /**
467
+ * Branch status
468
+ */
469
+ status: string;
470
+ }
471
+
472
+ export interface ProjectGetConnectionResponse {
473
+ /**
474
+ * Branch name for this connection
475
+ */
476
+ branch: string;
477
+
478
+ /**
479
+ * PostgreSQL connection string (includes credentials)
480
+ */
481
+ connectionUri: string;
482
+
483
+ /**
484
+ * Whether this is a pooled connection
485
+ */
486
+ pooled: boolean;
487
+ }
488
+
489
+ export interface ProjectListBranchesResponse {
490
+ branches: Array<ProjectListBranchesResponse.Branch>;
491
+ }
492
+
493
+ export namespace ProjectListBranchesResponse {
494
+ export interface Branch {
495
+ /**
496
+ * Branch ID
497
+ */
498
+ id?: string;
499
+
500
+ /**
501
+ * Branch creation timestamp
502
+ */
503
+ createdAt?: string;
504
+
505
+ /**
506
+ * Whether this is the default branch
507
+ */
508
+ isDefault?: boolean;
509
+
510
+ /**
511
+ * Branch name
512
+ */
513
+ name?: string;
514
+
515
+ /**
516
+ * Parent branch ID (null for default branch)
517
+ */
518
+ parentBranchId?: string | null;
519
+
520
+ /**
521
+ * Branch status
522
+ */
523
+ status?: string;
524
+
525
+ /**
526
+ * Branch last update timestamp
527
+ */
528
+ updatedAt?: string;
529
+ }
530
+ }
531
+
532
+ export interface ProjectCreateParams {
533
+ /**
534
+ * Project name (letters, numbers, hyphens, underscores only)
535
+ */
536
+ name: string;
537
+
538
+ /**
539
+ * Optional project description
540
+ */
541
+ description?: string;
542
+
543
+ /**
544
+ * AWS region for database deployment
545
+ */
546
+ region?:
547
+ | 'aws-us-east-1'
548
+ | 'aws-us-east-2'
549
+ | 'aws-us-west-2'
550
+ | 'aws-eu-central-1'
551
+ | 'aws-eu-west-1'
552
+ | 'aws-eu-west-2'
553
+ | 'aws-ap-southeast-1'
554
+ | 'aws-ap-southeast-2';
555
+ }
556
+
557
+ export interface ProjectCreateBranchParams {
558
+ /**
559
+ * Branch name (letters, numbers, hyphens, underscores only)
560
+ */
561
+ name: string;
562
+
563
+ /**
564
+ * Parent branch ID to clone from (defaults to main branch)
565
+ */
566
+ parentBranchId?: string;
567
+ }
568
+
569
+ export interface ProjectGetConnectionParams {
570
+ /**
571
+ * Branch name (defaults to 'main')
572
+ */
573
+ branch?: string;
574
+
575
+ /**
576
+ * Use pooled connection (PgBouncer)
577
+ */
578
+ pooled?: boolean;
579
+ }
580
+
581
+ export declare namespace Projects {
582
+ export {
583
+ type ProjectCreateResponse as ProjectCreateResponse,
584
+ type ProjectRetrieveResponse as ProjectRetrieveResponse,
585
+ type ProjectListResponse as ProjectListResponse,
586
+ type ProjectDeleteResponse as ProjectDeleteResponse,
587
+ type ProjectCreateBranchResponse as ProjectCreateBranchResponse,
588
+ type ProjectGetConnectionResponse as ProjectGetConnectionResponse,
589
+ type ProjectListBranchesResponse as ProjectListBranchesResponse,
590
+ type ProjectCreateParams as ProjectCreateParams,
591
+ type ProjectCreateBranchParams as ProjectCreateBranchParams,
592
+ type ProjectGetConnectionParams as ProjectGetConnectionParams,
593
+ };
594
+ }