casedev 0.1.0 → 0.3.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 (494) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/LICENSE +1 -1
  3. package/README.md +3 -1
  4. package/client.d.mts +4 -16
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +4 -16
  7. package/client.d.ts.map +1 -1
  8. package/client.js +0 -12
  9. package/client.js.map +1 -1
  10. package/client.mjs +0 -12
  11. package/client.mjs.map +1 -1
  12. package/package.json +1 -1
  13. package/resources/compute/compute.d.mts +2 -2
  14. package/resources/compute/compute.d.mts.map +1 -1
  15. package/resources/compute/compute.d.ts +2 -2
  16. package/resources/compute/compute.d.ts.map +1 -1
  17. package/resources/compute/compute.js.map +1 -1
  18. package/resources/compute/compute.mjs.map +1 -1
  19. package/resources/compute/index.d.mts +1 -1
  20. package/resources/compute/index.d.mts.map +1 -1
  21. package/resources/compute/index.d.ts +1 -1
  22. package/resources/compute/index.d.ts.map +1 -1
  23. package/resources/compute/index.js.map +1 -1
  24. package/resources/compute/index.mjs.map +1 -1
  25. package/resources/compute/v1/environments.d.mts +119 -9
  26. package/resources/compute/v1/environments.d.mts.map +1 -1
  27. package/resources/compute/v1/environments.d.ts +119 -9
  28. package/resources/compute/v1/environments.d.ts.map +1 -1
  29. package/resources/compute/v1/environments.js +11 -18
  30. package/resources/compute/v1/environments.js.map +1 -1
  31. package/resources/compute/v1/environments.mjs +11 -18
  32. package/resources/compute/v1/environments.mjs.map +1 -1
  33. package/resources/compute/v1/functions.d.mts +0 -39
  34. package/resources/compute/v1/functions.d.mts.map +1 -1
  35. package/resources/compute/v1/functions.d.ts +0 -39
  36. package/resources/compute/v1/functions.d.ts.map +1 -1
  37. package/resources/compute/v1/functions.js +0 -36
  38. package/resources/compute/v1/functions.js.map +1 -1
  39. package/resources/compute/v1/functions.mjs +0 -36
  40. package/resources/compute/v1/functions.mjs.map +1 -1
  41. package/resources/compute/v1/index.d.mts +6 -6
  42. package/resources/compute/v1/index.d.mts.map +1 -1
  43. package/resources/compute/v1/index.d.ts +6 -6
  44. package/resources/compute/v1/index.d.ts.map +1 -1
  45. package/resources/compute/v1/index.js.map +1 -1
  46. package/resources/compute/v1/index.mjs.map +1 -1
  47. package/resources/compute/v1/invoke.d.mts +0 -69
  48. package/resources/compute/v1/invoke.d.mts.map +1 -1
  49. package/resources/compute/v1/invoke.d.ts +0 -69
  50. package/resources/compute/v1/invoke.d.ts.map +1 -1
  51. package/resources/compute/v1/invoke.js +0 -18
  52. package/resources/compute/v1/invoke.js.map +1 -1
  53. package/resources/compute/v1/invoke.mjs +0 -18
  54. package/resources/compute/v1/invoke.mjs.map +1 -1
  55. package/resources/compute/v1/runs.d.mts +0 -41
  56. package/resources/compute/v1/runs.d.mts.map +1 -1
  57. package/resources/compute/v1/runs.d.ts +0 -41
  58. package/resources/compute/v1/runs.d.ts.map +1 -1
  59. package/resources/compute/v1/runs.js +0 -35
  60. package/resources/compute/v1/runs.js.map +1 -1
  61. package/resources/compute/v1/runs.mjs +0 -35
  62. package/resources/compute/v1/runs.mjs.map +1 -1
  63. package/resources/compute/v1/secrets.d.mts +101 -19
  64. package/resources/compute/v1/secrets.d.mts.map +1 -1
  65. package/resources/compute/v1/secrets.d.ts +101 -19
  66. package/resources/compute/v1/secrets.d.ts.map +1 -1
  67. package/resources/compute/v1/secrets.js +19 -35
  68. package/resources/compute/v1/secrets.js.map +1 -1
  69. package/resources/compute/v1/secrets.mjs +19 -35
  70. package/resources/compute/v1/secrets.mjs.map +1 -1
  71. package/resources/compute/v1/v1.d.mts +40 -190
  72. package/resources/compute/v1/v1.d.mts.map +1 -1
  73. package/resources/compute/v1/v1.d.ts +40 -190
  74. package/resources/compute/v1/v1.d.ts.map +1 -1
  75. package/resources/compute/v1/v1.js +5 -26
  76. package/resources/compute/v1/v1.js.map +1 -1
  77. package/resources/compute/v1/v1.mjs +5 -26
  78. package/resources/compute/v1/v1.mjs.map +1 -1
  79. package/resources/format/v1/index.d.mts +1 -1
  80. package/resources/format/v1/index.d.mts.map +1 -1
  81. package/resources/format/v1/index.d.ts +1 -1
  82. package/resources/format/v1/index.d.ts.map +1 -1
  83. package/resources/format/v1/index.js.map +1 -1
  84. package/resources/format/v1/index.mjs.map +1 -1
  85. package/resources/format/v1/templates.d.mts +72 -3
  86. package/resources/format/v1/templates.d.mts.map +1 -1
  87. package/resources/format/v1/templates.d.ts +72 -3
  88. package/resources/format/v1/templates.d.ts.map +1 -1
  89. package/resources/format/v1/templates.js +2 -10
  90. package/resources/format/v1/templates.js.map +1 -1
  91. package/resources/format/v1/templates.mjs +2 -10
  92. package/resources/format/v1/templates.mjs.map +1 -1
  93. package/resources/format/v1/v1.d.mts +2 -2
  94. package/resources/format/v1/v1.d.mts.map +1 -1
  95. package/resources/format/v1/v1.d.ts +2 -2
  96. package/resources/format/v1/v1.d.ts.map +1 -1
  97. package/resources/format/v1/v1.js.map +1 -1
  98. package/resources/format/v1/v1.mjs +1 -1
  99. package/resources/format/v1/v1.mjs.map +1 -1
  100. package/resources/index.d.mts +2 -6
  101. package/resources/index.d.mts.map +1 -1
  102. package/resources/index.d.ts +2 -6
  103. package/resources/index.d.ts.map +1 -1
  104. package/resources/index.js +1 -9
  105. package/resources/index.js.map +1 -1
  106. package/resources/index.mjs +0 -4
  107. package/resources/index.mjs.map +1 -1
  108. package/resources/llm/index.d.mts +2 -2
  109. package/resources/llm/index.d.mts.map +1 -1
  110. package/resources/llm/index.d.ts +2 -2
  111. package/resources/llm/index.d.ts.map +1 -1
  112. package/resources/llm/index.js.map +1 -1
  113. package/resources/llm/index.mjs +1 -1
  114. package/resources/llm/index.mjs.map +1 -1
  115. package/resources/llm/llm.d.mts +36 -4
  116. package/resources/llm/llm.d.mts.map +1 -1
  117. package/resources/llm/llm.d.ts +36 -4
  118. package/resources/llm/llm.d.ts.map +1 -1
  119. package/resources/llm/llm.js +2 -6
  120. package/resources/llm/llm.js.map +1 -1
  121. package/resources/llm/llm.mjs +2 -6
  122. package/resources/llm/llm.mjs.map +1 -1
  123. package/resources/llm/v1/index.d.mts +1 -1
  124. package/resources/llm/v1/index.d.mts.map +1 -1
  125. package/resources/llm/v1/index.d.ts +1 -1
  126. package/resources/llm/v1/index.d.ts.map +1 -1
  127. package/resources/llm/v1/index.js.map +1 -1
  128. package/resources/llm/v1/index.mjs +1 -1
  129. package/resources/llm/v1/index.mjs.map +1 -1
  130. package/resources/llm/v1/v1.d.mts +66 -5
  131. package/resources/llm/v1/v1.d.mts.map +1 -1
  132. package/resources/llm/v1/v1.d.ts +66 -5
  133. package/resources/llm/v1/v1.d.ts.map +1 -1
  134. package/resources/llm/v1/v1.js +4 -12
  135. package/resources/llm/v1/v1.js.map +1 -1
  136. package/resources/llm/v1/v1.mjs +4 -12
  137. package/resources/llm/v1/v1.mjs.map +1 -1
  138. package/resources/ocr/index.d.mts +1 -1
  139. package/resources/ocr/index.d.mts.map +1 -1
  140. package/resources/ocr/index.d.ts +1 -1
  141. package/resources/ocr/index.d.ts.map +1 -1
  142. package/resources/ocr/index.js.map +1 -1
  143. package/resources/ocr/index.mjs +1 -1
  144. package/resources/ocr/index.mjs.map +1 -1
  145. package/resources/ocr/ocr.d.mts +2 -2
  146. package/resources/ocr/ocr.d.mts.map +1 -1
  147. package/resources/ocr/ocr.d.ts +2 -2
  148. package/resources/ocr/ocr.d.ts.map +1 -1
  149. package/resources/ocr/ocr.js.map +1 -1
  150. package/resources/ocr/ocr.mjs +1 -1
  151. package/resources/ocr/ocr.mjs.map +1 -1
  152. package/resources/ocr/v1.d.mts +61 -15
  153. package/resources/ocr/v1.d.mts.map +1 -1
  154. package/resources/ocr/v1.d.ts +61 -15
  155. package/resources/ocr/v1.d.ts.map +1 -1
  156. package/resources/ocr/v1.js +6 -11
  157. package/resources/ocr/v1.js.map +1 -1
  158. package/resources/ocr/v1.mjs +6 -11
  159. package/resources/ocr/v1.mjs.map +1 -1
  160. package/resources/search/index.d.mts +1 -1
  161. package/resources/search/index.d.mts.map +1 -1
  162. package/resources/search/index.d.ts +1 -1
  163. package/resources/search/index.d.ts.map +1 -1
  164. package/resources/search/index.js.map +1 -1
  165. package/resources/search/index.mjs.map +1 -1
  166. package/resources/search/search.d.mts +2 -2
  167. package/resources/search/search.d.mts.map +1 -1
  168. package/resources/search/search.d.ts +2 -2
  169. package/resources/search/search.d.ts.map +1 -1
  170. package/resources/search/search.js.map +1 -1
  171. package/resources/search/search.mjs.map +1 -1
  172. package/resources/search/v1.d.mts +74 -2
  173. package/resources/search/v1.d.mts.map +1 -1
  174. package/resources/search/v1.d.ts +74 -2
  175. package/resources/search/v1.d.ts.map +1 -1
  176. package/resources/search/v1.js +1 -6
  177. package/resources/search/v1.js.map +1 -1
  178. package/resources/search/v1.mjs +1 -6
  179. package/resources/search/v1.mjs.map +1 -1
  180. package/resources/vault/graphrag.d.mts +39 -4
  181. package/resources/vault/graphrag.d.mts.map +1 -1
  182. package/resources/vault/graphrag.d.ts +39 -4
  183. package/resources/vault/graphrag.d.ts.map +1 -1
  184. package/resources/vault/graphrag.js +4 -11
  185. package/resources/vault/graphrag.js.map +1 -1
  186. package/resources/vault/graphrag.mjs +4 -11
  187. package/resources/vault/graphrag.mjs.map +1 -1
  188. package/resources/vault/index.d.mts +3 -3
  189. package/resources/vault/index.d.mts.map +1 -1
  190. package/resources/vault/index.d.ts +3 -3
  191. package/resources/vault/index.d.ts.map +1 -1
  192. package/resources/vault/index.js.map +1 -1
  193. package/resources/vault/index.mjs.map +1 -1
  194. package/resources/vault/objects.d.mts +193 -15
  195. package/resources/vault/objects.d.mts.map +1 -1
  196. package/resources/vault/objects.d.ts +193 -15
  197. package/resources/vault/objects.d.ts.map +1 -1
  198. package/resources/vault/objects.js +17 -27
  199. package/resources/vault/objects.js.map +1 -1
  200. package/resources/vault/objects.mjs +17 -27
  201. package/resources/vault/objects.mjs.map +1 -1
  202. package/resources/vault/vault.d.mts +207 -30
  203. package/resources/vault/vault.d.mts.map +1 -1
  204. package/resources/vault/vault.d.ts +207 -30
  205. package/resources/vault/vault.d.ts.map +1 -1
  206. package/resources/vault/vault.js +11 -13
  207. package/resources/vault/vault.js.map +1 -1
  208. package/resources/vault/vault.mjs +11 -13
  209. package/resources/vault/vault.mjs.map +1 -1
  210. package/resources/voice/index.d.mts +3 -3
  211. package/resources/voice/index.d.mts.map +1 -1
  212. package/resources/voice/index.d.ts +3 -3
  213. package/resources/voice/index.d.ts.map +1 -1
  214. package/resources/voice/index.js.map +1 -1
  215. package/resources/voice/index.mjs.map +1 -1
  216. package/resources/voice/streaming.d.mts +52 -3
  217. package/resources/voice/streaming.d.mts.map +1 -1
  218. package/resources/voice/streaming.d.ts +52 -3
  219. package/resources/voice/streaming.d.ts.map +1 -1
  220. package/resources/voice/streaming.js +3 -7
  221. package/resources/voice/streaming.js.map +1 -1
  222. package/resources/voice/streaming.mjs +3 -7
  223. package/resources/voice/streaming.mjs.map +1 -1
  224. package/resources/voice/transcription.d.mts +82 -28
  225. package/resources/voice/transcription.d.mts.map +1 -1
  226. package/resources/voice/transcription.d.ts +82 -28
  227. package/resources/voice/transcription.d.ts.map +1 -1
  228. package/resources/voice/transcription.js +15 -16
  229. package/resources/voice/transcription.js.map +1 -1
  230. package/resources/voice/transcription.mjs +15 -16
  231. package/resources/voice/transcription.mjs.map +1 -1
  232. package/resources/voice/v1/index.d.mts +2 -2
  233. package/resources/voice/v1/index.d.mts.map +1 -1
  234. package/resources/voice/v1/index.d.ts +2 -2
  235. package/resources/voice/v1/index.d.ts.map +1 -1
  236. package/resources/voice/v1/index.js.map +1 -1
  237. package/resources/voice/v1/index.mjs.map +1 -1
  238. package/resources/voice/v1/speak.d.mts +1 -85
  239. package/resources/voice/v1/speak.d.mts.map +1 -1
  240. package/resources/voice/v1/speak.d.ts +1 -85
  241. package/resources/voice/v1/speak.d.ts.map +1 -1
  242. package/resources/voice/v1/speak.js +0 -24
  243. package/resources/voice/v1/speak.js.map +1 -1
  244. package/resources/voice/v1/speak.mjs +0 -24
  245. package/resources/voice/v1/speak.mjs.map +1 -1
  246. package/resources/voice/v1/v1.d.mts +48 -5
  247. package/resources/voice/v1/v1.d.mts.map +1 -1
  248. package/resources/voice/v1/v1.d.ts +48 -5
  249. package/resources/voice/v1/v1.d.ts.map +1 -1
  250. package/resources/voice/v1/v1.js +2 -7
  251. package/resources/voice/v1/v1.js.map +1 -1
  252. package/resources/voice/v1/v1.mjs +2 -7
  253. package/resources/voice/v1/v1.mjs.map +1 -1
  254. package/resources/voice/voice.d.mts +6 -6
  255. package/resources/voice/voice.d.mts.map +1 -1
  256. package/resources/voice/voice.d.ts +6 -6
  257. package/resources/voice/voice.d.ts.map +1 -1
  258. package/resources/voice/voice.js.map +1 -1
  259. package/resources/voice/voice.mjs +1 -1
  260. package/resources/voice/voice.mjs.map +1 -1
  261. package/resources/webhooks/index.d.mts +1 -1
  262. package/resources/webhooks/index.d.mts.map +1 -1
  263. package/resources/webhooks/index.d.ts +1 -1
  264. package/resources/webhooks/index.d.ts.map +1 -1
  265. package/resources/webhooks/index.js.map +1 -1
  266. package/resources/webhooks/index.mjs.map +1 -1
  267. package/resources/webhooks/v1.d.mts +0 -105
  268. package/resources/webhooks/v1.d.mts.map +1 -1
  269. package/resources/webhooks/v1.d.ts +0 -105
  270. package/resources/webhooks/v1.d.ts.map +1 -1
  271. package/resources/webhooks/v1.js +0 -75
  272. package/resources/webhooks/v1.js.map +1 -1
  273. package/resources/webhooks/v1.mjs +0 -75
  274. package/resources/webhooks/v1.mjs.map +1 -1
  275. package/resources/webhooks/webhooks.d.mts +2 -2
  276. package/resources/webhooks/webhooks.d.mts.map +1 -1
  277. package/resources/webhooks/webhooks.d.ts +2 -2
  278. package/resources/webhooks/webhooks.d.ts.map +1 -1
  279. package/resources/webhooks/webhooks.js.map +1 -1
  280. package/resources/webhooks/webhooks.mjs.map +1 -1
  281. package/src/client.ts +4 -22
  282. package/src/resources/compute/compute.ts +2 -3
  283. package/src/resources/compute/index.ts +1 -1
  284. package/src/resources/compute/v1/environments.ts +149 -21
  285. package/src/resources/compute/v1/functions.ts +1 -66
  286. package/src/resources/compute/v1/index.ts +11 -4
  287. package/src/resources/compute/v1/invoke.ts +1 -87
  288. package/src/resources/compute/v1/runs.ts +1 -61
  289. package/src/resources/compute/v1/secrets.ts +136 -39
  290. package/src/resources/compute/v1/v1.ts +54 -235
  291. package/src/resources/format/v1/index.ts +2 -0
  292. package/src/resources/format/v1/templates.ts +94 -12
  293. package/src/resources/format/v1/v1.ts +10 -1
  294. package/src/resources/index.ts +2 -5
  295. package/src/resources/llm/index.ts +7 -2
  296. package/src/resources/llm/llm.ts +50 -9
  297. package/src/resources/llm/v1/index.ts +6 -1
  298. package/src/resources/llm/v1/v1.ts +94 -15
  299. package/src/resources/ocr/index.ts +8 -1
  300. package/src/resources/ocr/ocr.ts +10 -1
  301. package/src/resources/ocr/v1.ts +69 -23
  302. package/src/resources/search/index.ts +1 -0
  303. package/src/resources/search/search.ts +2 -0
  304. package/src/resources/search/v1.ts +95 -7
  305. package/src/resources/vault/graphrag.ts +55 -13
  306. package/src/resources/vault/index.ts +6 -1
  307. package/src/resources/vault/objects.ts +250 -31
  308. package/src/resources/vault/vault.ts +253 -30
  309. package/src/resources/voice/index.ts +3 -2
  310. package/src/resources/voice/streaming.ts +65 -8
  311. package/src/resources/voice/transcription.ts +94 -34
  312. package/src/resources/voice/v1/index.ts +2 -2
  313. package/src/resources/voice/v1/speak.ts +1 -113
  314. package/src/resources/voice/v1/v1.ts +62 -15
  315. package/src/resources/voice/voice.ts +15 -5
  316. package/src/resources/webhooks/index.ts +1 -1
  317. package/src/resources/webhooks/v1.ts +1 -140
  318. package/src/resources/webhooks/webhooks.ts +2 -2
  319. package/src/version.ts +1 -1
  320. package/version.d.mts +1 -1
  321. package/version.d.ts +1 -1
  322. package/version.js +1 -1
  323. package/version.mjs +1 -1
  324. package/resources/actions/actions.d.mts +0 -10
  325. package/resources/actions/actions.d.mts.map +0 -1
  326. package/resources/actions/actions.d.ts +0 -10
  327. package/resources/actions/actions.d.ts.map +0 -1
  328. package/resources/actions/actions.js +0 -17
  329. package/resources/actions/actions.js.map +0 -1
  330. package/resources/actions/actions.mjs +0 -12
  331. package/resources/actions/actions.mjs.map +0 -1
  332. package/resources/actions/index.d.mts +0 -3
  333. package/resources/actions/index.d.mts.map +0 -1
  334. package/resources/actions/index.d.ts +0 -3
  335. package/resources/actions/index.d.ts.map +0 -1
  336. package/resources/actions/index.js +0 -9
  337. package/resources/actions/index.js.map +0 -1
  338. package/resources/actions/index.mjs +0 -4
  339. package/resources/actions/index.mjs.map +0 -1
  340. package/resources/actions/v1.d.mts +0 -122
  341. package/resources/actions/v1.d.mts.map +0 -1
  342. package/resources/actions/v1.d.ts +0 -122
  343. package/resources/actions/v1.d.ts.map +0 -1
  344. package/resources/actions/v1.js +0 -71
  345. package/resources/actions/v1.js.map +0 -1
  346. package/resources/actions/v1.mjs +0 -67
  347. package/resources/actions/v1.mjs.map +0 -1
  348. package/resources/actions.d.mts +0 -2
  349. package/resources/actions.d.mts.map +0 -1
  350. package/resources/actions.d.ts +0 -2
  351. package/resources/actions.d.ts.map +0 -1
  352. package/resources/actions.js +0 -6
  353. package/resources/actions.js.map +0 -1
  354. package/resources/actions.mjs +0 -3
  355. package/resources/actions.mjs.map +0 -1
  356. package/resources/convert/convert.d.mts +0 -10
  357. package/resources/convert/convert.d.mts.map +0 -1
  358. package/resources/convert/convert.d.ts +0 -10
  359. package/resources/convert/convert.d.ts.map +0 -1
  360. package/resources/convert/convert.js +0 -17
  361. package/resources/convert/convert.js.map +0 -1
  362. package/resources/convert/convert.mjs +0 -12
  363. package/resources/convert/convert.mjs.map +0 -1
  364. package/resources/convert/index.d.mts +0 -3
  365. package/resources/convert/index.d.mts.map +0 -1
  366. package/resources/convert/index.d.ts +0 -3
  367. package/resources/convert/index.d.ts.map +0 -1
  368. package/resources/convert/index.js +0 -9
  369. package/resources/convert/index.js.map +0 -1
  370. package/resources/convert/index.mjs +0 -4
  371. package/resources/convert/index.mjs.map +0 -1
  372. package/resources/convert/v1/index.d.mts +0 -3
  373. package/resources/convert/v1/index.d.mts.map +0 -1
  374. package/resources/convert/v1/index.d.ts +0 -3
  375. package/resources/convert/v1/index.d.ts.map +0 -1
  376. package/resources/convert/v1/index.js +0 -9
  377. package/resources/convert/v1/index.js.map +0 -1
  378. package/resources/convert/v1/index.mjs +0 -4
  379. package/resources/convert/v1/index.mjs.map +0 -1
  380. package/resources/convert/v1/jobs.d.mts +0 -17
  381. package/resources/convert/v1/jobs.d.mts.map +0 -1
  382. package/resources/convert/v1/jobs.d.ts +0 -17
  383. package/resources/convert/v1/jobs.d.ts.map +0 -1
  384. package/resources/convert/v1/jobs.js +0 -32
  385. package/resources/convert/v1/jobs.js.map +0 -1
  386. package/resources/convert/v1/jobs.mjs +0 -28
  387. package/resources/convert/v1/jobs.mjs.map +0 -1
  388. package/resources/convert/v1/v1.d.mts +0 -101
  389. package/resources/convert/v1/v1.d.mts.map +0 -1
  390. package/resources/convert/v1/v1.d.ts +0 -101
  391. package/resources/convert/v1/v1.d.ts.map +0 -1
  392. package/resources/convert/v1/v1.js +0 -52
  393. package/resources/convert/v1/v1.js.map +0 -1
  394. package/resources/convert/v1/v1.mjs +0 -47
  395. package/resources/convert/v1/v1.mjs.map +0 -1
  396. package/resources/convert/v1.d.mts +0 -2
  397. package/resources/convert/v1.d.mts.map +0 -1
  398. package/resources/convert/v1.d.ts +0 -2
  399. package/resources/convert/v1.d.ts.map +0 -1
  400. package/resources/convert/v1.js +0 -6
  401. package/resources/convert/v1.js.map +0 -1
  402. package/resources/convert/v1.mjs +0 -3
  403. package/resources/convert/v1.mjs.map +0 -1
  404. package/resources/convert.d.mts +0 -2
  405. package/resources/convert.d.mts.map +0 -1
  406. package/resources/convert.d.ts +0 -2
  407. package/resources/convert.d.ts.map +0 -1
  408. package/resources/convert.js +0 -6
  409. package/resources/convert.js.map +0 -1
  410. package/resources/convert.mjs +0 -3
  411. package/resources/convert.mjs.map +0 -1
  412. package/resources/templates/index.d.mts +0 -3
  413. package/resources/templates/index.d.mts.map +0 -1
  414. package/resources/templates/index.d.ts +0 -3
  415. package/resources/templates/index.d.ts.map +0 -1
  416. package/resources/templates/index.js +0 -9
  417. package/resources/templates/index.js.map +0 -1
  418. package/resources/templates/index.mjs +0 -4
  419. package/resources/templates/index.mjs.map +0 -1
  420. package/resources/templates/templates.d.mts +0 -10
  421. package/resources/templates/templates.d.mts.map +0 -1
  422. package/resources/templates/templates.d.ts +0 -10
  423. package/resources/templates/templates.d.ts.map +0 -1
  424. package/resources/templates/templates.js +0 -17
  425. package/resources/templates/templates.js.map +0 -1
  426. package/resources/templates/templates.mjs +0 -12
  427. package/resources/templates/templates.mjs.map +0 -1
  428. package/resources/templates/v1.d.mts +0 -128
  429. package/resources/templates/v1.d.mts.map +0 -1
  430. package/resources/templates/v1.d.ts +0 -128
  431. package/resources/templates/v1.d.ts.map +0 -1
  432. package/resources/templates/v1.js +0 -71
  433. package/resources/templates/v1.js.map +0 -1
  434. package/resources/templates/v1.mjs +0 -67
  435. package/resources/templates/v1.mjs.map +0 -1
  436. package/resources/templates.d.mts +0 -2
  437. package/resources/templates.d.mts.map +0 -1
  438. package/resources/templates.d.ts +0 -2
  439. package/resources/templates.d.ts.map +0 -1
  440. package/resources/templates.js +0 -6
  441. package/resources/templates.js.map +0 -1
  442. package/resources/templates.mjs +0 -3
  443. package/resources/templates.mjs.map +0 -1
  444. package/resources/workflows/index.d.mts +0 -3
  445. package/resources/workflows/index.d.mts.map +0 -1
  446. package/resources/workflows/index.d.ts +0 -3
  447. package/resources/workflows/index.d.ts.map +0 -1
  448. package/resources/workflows/index.js +0 -9
  449. package/resources/workflows/index.js.map +0 -1
  450. package/resources/workflows/index.mjs +0 -4
  451. package/resources/workflows/index.mjs.map +0 -1
  452. package/resources/workflows/v1.d.mts +0 -263
  453. package/resources/workflows/v1.d.mts.map +0 -1
  454. package/resources/workflows/v1.d.ts +0 -263
  455. package/resources/workflows/v1.d.ts.map +0 -1
  456. package/resources/workflows/v1.js +0 -128
  457. package/resources/workflows/v1.js.map +0 -1
  458. package/resources/workflows/v1.mjs +0 -124
  459. package/resources/workflows/v1.mjs.map +0 -1
  460. package/resources/workflows/workflows.d.mts +0 -10
  461. package/resources/workflows/workflows.d.mts.map +0 -1
  462. package/resources/workflows/workflows.d.ts +0 -10
  463. package/resources/workflows/workflows.d.ts.map +0 -1
  464. package/resources/workflows/workflows.js +0 -17
  465. package/resources/workflows/workflows.js.map +0 -1
  466. package/resources/workflows/workflows.mjs +0 -12
  467. package/resources/workflows/workflows.mjs.map +0 -1
  468. package/resources/workflows.d.mts +0 -2
  469. package/resources/workflows.d.mts.map +0 -1
  470. package/resources/workflows.d.ts +0 -2
  471. package/resources/workflows.d.ts.map +0 -1
  472. package/resources/workflows.js +0 -6
  473. package/resources/workflows.js.map +0 -1
  474. package/resources/workflows.mjs +0 -3
  475. package/resources/workflows.mjs.map +0 -1
  476. package/src/resources/actions/actions.ts +0 -21
  477. package/src/resources/actions/index.ts +0 -10
  478. package/src/resources/actions/v1.ts +0 -179
  479. package/src/resources/actions.ts +0 -3
  480. package/src/resources/convert/convert.ts +0 -21
  481. package/src/resources/convert/index.ts +0 -10
  482. package/src/resources/convert/v1/index.ts +0 -10
  483. package/src/resources/convert/v1/jobs.ts +0 -32
  484. package/src/resources/convert/v1/v1.ts +0 -141
  485. package/src/resources/convert/v1.ts +0 -3
  486. package/src/resources/convert.ts +0 -3
  487. package/src/resources/templates/index.ts +0 -10
  488. package/src/resources/templates/templates.ts +0 -21
  489. package/src/resources/templates/v1.ts +0 -187
  490. package/src/resources/templates.ts +0 -3
  491. package/src/resources/workflows/index.ts +0 -21
  492. package/src/resources/workflows/v1.ts +0 -407
  493. package/src/resources/workflows/workflows.ts +0 -49
  494. package/src/resources/workflows.ts +0 -3
@@ -1,14 +1,14 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as EnvironmentsAPI from "./environments.mjs";
3
- import { EnvironmentCreateParams, EnvironmentCreateResponse, EnvironmentDeleteResponse, Environments } from "./environments.mjs";
3
+ import { EnvironmentCreateParams, EnvironmentCreateResponse, EnvironmentDeleteResponse, EnvironmentListResponse, EnvironmentRetrieveResponse, EnvironmentSetDefaultResponse, Environments } from "./environments.mjs";
4
4
  import * as FunctionsAPI from "./functions.mjs";
5
- import { FunctionGetLogsParams, FunctionListParams, Functions } from "./functions.mjs";
5
+ import { Functions } from "./functions.mjs";
6
6
  import * as InvokeAPI from "./invoke.mjs";
7
- import { Invoke, InvokeRunParams, InvokeRunResponse } from "./invoke.mjs";
7
+ import { Invoke } from "./invoke.mjs";
8
8
  import * as RunsAPI from "./runs.mjs";
9
- import { RunListParams, Runs } from "./runs.mjs";
9
+ import { Runs } from "./runs.mjs";
10
10
  import * as SecretsAPI from "./secrets.mjs";
11
- import { SecretCreateParams, SecretCreateResponse, SecretDeleteGroupParams, SecretListParams, SecretRetrieveGroupParams, SecretUpdateGroupParams, Secrets } from "./secrets.mjs";
11
+ import { SecretCreateParams, SecretCreateResponse, SecretDeleteGroupParams, SecretDeleteGroupResponse, SecretListParams, SecretListResponse, SecretRetrieveGroupParams, SecretRetrieveGroupResponse, SecretUpdateGroupParams, SecretUpdateGroupResponse, Secrets } from "./secrets.mjs";
12
12
  import { APIPromise } from "../../../core/api-promise.mjs";
13
13
  import { RequestOptions } from "../../../internal/request-options.mjs";
14
14
  export declare class V1 extends APIResource {
@@ -18,24 +18,9 @@ export declare class V1 extends APIResource {
18
18
  runs: RunsAPI.Runs;
19
19
  secrets: SecretsAPI.Secrets;
20
20
  /**
21
- * Deploy code to Case.dev's serverless compute infrastructure powered by Modal.
22
- * Supports Python, Dockerfile, and container image runtimes with GPU acceleration
23
- * for AI/ML workloads. Code is deployed as tasks (batch jobs) or services (web
24
- * endpoints) with automatic scaling.
25
- *
26
- * @example
27
- * ```ts
28
- * const response = await client.compute.v1.deploy({
29
- * entrypointName: 'entrypointName',
30
- * type: 'task',
31
- * });
32
- * ```
33
- */
34
- deploy(body: V1DeployParams, options?: RequestOptions): APIPromise<V1DeployResponse>;
35
- /**
36
- * Returns current pricing for GPU and CPU compute resources. This public endpoint
37
- * provides detailed pricing information for all available compute types, including
38
- * GPU instances and CPU cores, with billing model details.
21
+ * Returns current pricing for GPU instances. Prices are fetched in real-time and
22
+ * include a 20% platform fee. For detailed instance types and availability, use
23
+ * GET /compute/v1/instance-types.
39
24
  *
40
25
  * @example
41
26
  * ```ts
@@ -50,171 +35,36 @@ export declare class V1 extends APIResource {
50
35
  *
51
36
  * @example
52
37
  * ```ts
53
- * await client.compute.v1.getUsage();
38
+ * const response = await client.compute.v1.getUsage();
54
39
  * ```
55
40
  */
56
- getUsage(query?: V1GetUsageParams | null | undefined, options?: RequestOptions): APIPromise<void>;
41
+ getUsage(query?: V1GetUsageParams | null | undefined, options?: RequestOptions): APIPromise<V1GetUsageResponse>;
57
42
  }
58
- export interface V1DeployResponse {
59
- /**
60
- * Deployment timestamp
61
- */
62
- createdAt?: string;
63
- /**
64
- * Unique deployment identifier
65
- */
66
- deploymentId?: string;
67
- /**
68
- * Environment name
69
- */
70
- environment?: string;
71
- /**
72
- * Runtime used
73
- */
74
- runtime?: string;
75
- /**
76
- * Deployment status
77
- */
78
- status?: string;
79
- /**
80
- * Service endpoint URL (for web services)
81
- */
82
- url?: string;
43
+ export interface V1GetUsageResponse {
44
+ byEnvironment?: Array<V1GetUsageResponse.ByEnvironment>;
45
+ period?: V1GetUsageResponse.Period;
46
+ summary?: V1GetUsageResponse.Summary;
83
47
  }
84
- export interface V1DeployParams {
85
- /**
86
- * Function/app name (used for domain: hello → hello.org.case.systems)
87
- */
88
- entrypointName: string;
89
- /**
90
- * Deployment type: task for batch jobs, service for web endpoints
91
- */
92
- type: 'task' | 'service';
93
- /**
94
- * Python code (required for python runtime)
95
- */
96
- code?: string;
97
- /**
98
- * Runtime and resource configuration
99
- */
100
- config?: V1DeployParams.Config;
101
- /**
102
- * Dockerfile content (required for dockerfile runtime)
103
- */
104
- dockerfile?: string;
105
- /**
106
- * Python entrypoint file name
107
- */
108
- entrypointFile?: string;
109
- /**
110
- * Environment name (uses default if not specified)
111
- */
112
- environment?: string;
113
- /**
114
- * Container image name (required for image runtime, e.g.,
115
- * 'nvidia/cuda:12.8.1-devel-ubuntu22.04')
116
- */
117
- image?: string;
118
- /**
119
- * Runtime environment
120
- */
121
- runtime?: 'python' | 'dockerfile' | 'image';
122
- }
123
- export declare namespace V1DeployParams {
124
- /**
125
- * Runtime and resource configuration
126
- */
127
- interface Config {
128
- /**
129
- * Add Python to image (e.g., '3.12', for image runtime)
130
- */
131
- addPython?: string;
132
- /**
133
- * Allow network access (default: false for Python, true for Docker)
134
- */
135
- allowNetwork?: boolean;
136
- /**
137
- * Container command arguments
138
- */
139
- cmd?: Array<string>;
140
- /**
141
- * Concurrent execution limit
142
- */
143
- concurrency?: number;
144
- /**
145
- * CPU core count
146
- */
147
- cpuCount?: number;
148
- /**
149
- * Cron schedule for periodic execution
150
- */
151
- cronSchedule?: string;
152
- /**
153
- * Python package dependencies (python runtime)
154
- */
155
- dependencies?: Array<string>;
156
- /**
157
- * Container entrypoint command
158
- */
159
- entrypoint?: Array<string>;
160
- /**
161
- * Environment variables
162
- */
163
- env?: {
164
- [key: string]: string;
165
- };
166
- /**
167
- * Number of GPUs (for multi-GPU setups)
168
- */
169
- gpuCount?: number;
170
- /**
171
- * GPU type for acceleration
172
- */
173
- gpuType?: 'cpu' | 'T4' | 'L4' | 'A10G' | 'L40S' | 'A100' | 'A100-40GB' | 'A100-80GB' | 'H100' | 'H200' | 'B200';
174
- /**
175
- * Deploy as web service (auto-set for service type)
176
- */
177
- isWebService?: boolean;
178
- /**
179
- * Memory allocation in MB
180
- */
181
- memoryMb?: number;
182
- /**
183
- * Packages to pip install (image runtime)
184
- */
185
- pipInstall?: Array<string>;
186
- /**
187
- * Port for web services
188
- */
189
- port?: number;
190
- /**
191
- * Python version (e.g., '3.11')
192
- */
193
- pythonVersion?: string;
194
- /**
195
- * Retry attempts on failure (Python only)
196
- */
197
- retries?: number;
198
- /**
199
- * Secret group names to inject
200
- */
201
- secretGroups?: Array<string>;
202
- /**
203
- * Maximum execution time
204
- */
205
- timeoutSeconds?: number;
206
- /**
207
- * Use uv for faster package installs
208
- */
209
- useUv?: boolean;
210
- /**
211
- * Number of warm instances to maintain
212
- */
213
- warmInstances?: number;
214
- /**
215
- * Working directory in container
216
- */
217
- workdir?: string;
48
+ export declare namespace V1GetUsageResponse {
49
+ interface ByEnvironment {
50
+ environment?: string;
51
+ totalCostCents?: number;
52
+ totalCostFormatted?: string;
53
+ totalCpuSeconds?: number;
54
+ totalGpuSeconds?: number;
55
+ totalRuns?: number;
56
+ }
57
+ interface Period {
58
+ month?: number;
59
+ monthName?: string;
60
+ year?: number;
61
+ }
62
+ interface Summary {
63
+ totalCostCents?: number;
64
+ totalCostFormatted?: string;
65
+ totalCpuHours?: number;
66
+ totalGpuHours?: number;
67
+ totalRuns?: number;
218
68
  }
219
69
  }
220
70
  export interface V1GetUsageParams {
@@ -228,11 +78,11 @@ export interface V1GetUsageParams {
228
78
  year?: number;
229
79
  }
230
80
  export declare namespace V1 {
231
- export { type V1DeployResponse as V1DeployResponse, type V1DeployParams as V1DeployParams, type V1GetUsageParams as V1GetUsageParams, };
232
- export { Environments as Environments, type EnvironmentCreateResponse as EnvironmentCreateResponse, type EnvironmentDeleteResponse as EnvironmentDeleteResponse, type EnvironmentCreateParams as EnvironmentCreateParams, };
233
- export { Functions as Functions, type FunctionListParams as FunctionListParams, type FunctionGetLogsParams as FunctionGetLogsParams, };
234
- export { Invoke as Invoke, type InvokeRunResponse as InvokeRunResponse, type InvokeRunParams as InvokeRunParams, };
235
- export { Runs as Runs, type RunListParams as RunListParams };
236
- export { Secrets as Secrets, type SecretCreateResponse as SecretCreateResponse, type SecretCreateParams as SecretCreateParams, type SecretListParams as SecretListParams, type SecretDeleteGroupParams as SecretDeleteGroupParams, type SecretRetrieveGroupParams as SecretRetrieveGroupParams, type SecretUpdateGroupParams as SecretUpdateGroupParams, };
81
+ export { type V1GetUsageResponse as V1GetUsageResponse, type V1GetUsageParams as V1GetUsageParams };
82
+ export { Environments as Environments, type EnvironmentCreateResponse as EnvironmentCreateResponse, type EnvironmentRetrieveResponse as EnvironmentRetrieveResponse, type EnvironmentListResponse as EnvironmentListResponse, type EnvironmentDeleteResponse as EnvironmentDeleteResponse, type EnvironmentSetDefaultResponse as EnvironmentSetDefaultResponse, type EnvironmentCreateParams as EnvironmentCreateParams, };
83
+ export { Functions as Functions };
84
+ export { Invoke as Invoke };
85
+ export { Runs as Runs };
86
+ export { Secrets as Secrets, type SecretCreateResponse as SecretCreateResponse, type SecretListResponse as SecretListResponse, type SecretDeleteGroupResponse as SecretDeleteGroupResponse, type SecretRetrieveGroupResponse as SecretRetrieveGroupResponse, type SecretUpdateGroupResponse as SecretUpdateGroupResponse, type SecretCreateParams as SecretCreateParams, type SecretListParams as SecretListParams, type SecretDeleteGroupParams as SecretDeleteGroupParams, type SecretRetrieveGroupParams as SecretRetrieveGroupParams, type SecretUpdateGroupParams as SecretUpdateGroupParams, };
237
87
  }
238
88
  //# sourceMappingURL=v1.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../../src/resources/compute/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EACL,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,YAAY,EACb;OACM,KAAK,YAAY;OACjB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,SAAS,EAAE;OACxD,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,eAAe,EAAE,iBAAiB,EAAE;OAC9C,KAAK,OAAO;OACZ,EAAE,aAAa,EAAE,IAAI,EAAE;OACvB,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,EAChB,yB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Y,IAAI,YAAY,EAC5B,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,CAAC;IAElC,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,CAAC;IAE5B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAExB,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -1,14 +1,14 @@
1
1
  import { APIResource } from "../../../core/resource.js";
2
2
  import * as EnvironmentsAPI from "./environments.js";
3
- import { EnvironmentCreateParams, EnvironmentCreateResponse, EnvironmentDeleteResponse, Environments } from "./environments.js";
3
+ import { EnvironmentCreateParams, EnvironmentCreateResponse, EnvironmentDeleteResponse, EnvironmentListResponse, EnvironmentRetrieveResponse, EnvironmentSetDefaultResponse, Environments } from "./environments.js";
4
4
  import * as FunctionsAPI from "./functions.js";
5
- import { FunctionGetLogsParams, FunctionListParams, Functions } from "./functions.js";
5
+ import { Functions } from "./functions.js";
6
6
  import * as InvokeAPI from "./invoke.js";
7
- import { Invoke, InvokeRunParams, InvokeRunResponse } from "./invoke.js";
7
+ import { Invoke } from "./invoke.js";
8
8
  import * as RunsAPI from "./runs.js";
9
- import { RunListParams, Runs } from "./runs.js";
9
+ import { Runs } from "./runs.js";
10
10
  import * as SecretsAPI from "./secrets.js";
11
- import { SecretCreateParams, SecretCreateResponse, SecretDeleteGroupParams, SecretListParams, SecretRetrieveGroupParams, SecretUpdateGroupParams, Secrets } from "./secrets.js";
11
+ import { SecretCreateParams, SecretCreateResponse, SecretDeleteGroupParams, SecretDeleteGroupResponse, SecretListParams, SecretListResponse, SecretRetrieveGroupParams, SecretRetrieveGroupResponse, SecretUpdateGroupParams, SecretUpdateGroupResponse, Secrets } from "./secrets.js";
12
12
  import { APIPromise } from "../../../core/api-promise.js";
13
13
  import { RequestOptions } from "../../../internal/request-options.js";
14
14
  export declare class V1 extends APIResource {
@@ -18,24 +18,9 @@ export declare class V1 extends APIResource {
18
18
  runs: RunsAPI.Runs;
19
19
  secrets: SecretsAPI.Secrets;
20
20
  /**
21
- * Deploy code to Case.dev's serverless compute infrastructure powered by Modal.
22
- * Supports Python, Dockerfile, and container image runtimes with GPU acceleration
23
- * for AI/ML workloads. Code is deployed as tasks (batch jobs) or services (web
24
- * endpoints) with automatic scaling.
25
- *
26
- * @example
27
- * ```ts
28
- * const response = await client.compute.v1.deploy({
29
- * entrypointName: 'entrypointName',
30
- * type: 'task',
31
- * });
32
- * ```
33
- */
34
- deploy(body: V1DeployParams, options?: RequestOptions): APIPromise<V1DeployResponse>;
35
- /**
36
- * Returns current pricing for GPU and CPU compute resources. This public endpoint
37
- * provides detailed pricing information for all available compute types, including
38
- * GPU instances and CPU cores, with billing model details.
21
+ * Returns current pricing for GPU instances. Prices are fetched in real-time and
22
+ * include a 20% platform fee. For detailed instance types and availability, use
23
+ * GET /compute/v1/instance-types.
39
24
  *
40
25
  * @example
41
26
  * ```ts
@@ -50,171 +35,36 @@ export declare class V1 extends APIResource {
50
35
  *
51
36
  * @example
52
37
  * ```ts
53
- * await client.compute.v1.getUsage();
38
+ * const response = await client.compute.v1.getUsage();
54
39
  * ```
55
40
  */
56
- getUsage(query?: V1GetUsageParams | null | undefined, options?: RequestOptions): APIPromise<void>;
41
+ getUsage(query?: V1GetUsageParams | null | undefined, options?: RequestOptions): APIPromise<V1GetUsageResponse>;
57
42
  }
58
- export interface V1DeployResponse {
59
- /**
60
- * Deployment timestamp
61
- */
62
- createdAt?: string;
63
- /**
64
- * Unique deployment identifier
65
- */
66
- deploymentId?: string;
67
- /**
68
- * Environment name
69
- */
70
- environment?: string;
71
- /**
72
- * Runtime used
73
- */
74
- runtime?: string;
75
- /**
76
- * Deployment status
77
- */
78
- status?: string;
79
- /**
80
- * Service endpoint URL (for web services)
81
- */
82
- url?: string;
43
+ export interface V1GetUsageResponse {
44
+ byEnvironment?: Array<V1GetUsageResponse.ByEnvironment>;
45
+ period?: V1GetUsageResponse.Period;
46
+ summary?: V1GetUsageResponse.Summary;
83
47
  }
84
- export interface V1DeployParams {
85
- /**
86
- * Function/app name (used for domain: hello → hello.org.case.systems)
87
- */
88
- entrypointName: string;
89
- /**
90
- * Deployment type: task for batch jobs, service for web endpoints
91
- */
92
- type: 'task' | 'service';
93
- /**
94
- * Python code (required for python runtime)
95
- */
96
- code?: string;
97
- /**
98
- * Runtime and resource configuration
99
- */
100
- config?: V1DeployParams.Config;
101
- /**
102
- * Dockerfile content (required for dockerfile runtime)
103
- */
104
- dockerfile?: string;
105
- /**
106
- * Python entrypoint file name
107
- */
108
- entrypointFile?: string;
109
- /**
110
- * Environment name (uses default if not specified)
111
- */
112
- environment?: string;
113
- /**
114
- * Container image name (required for image runtime, e.g.,
115
- * 'nvidia/cuda:12.8.1-devel-ubuntu22.04')
116
- */
117
- image?: string;
118
- /**
119
- * Runtime environment
120
- */
121
- runtime?: 'python' | 'dockerfile' | 'image';
122
- }
123
- export declare namespace V1DeployParams {
124
- /**
125
- * Runtime and resource configuration
126
- */
127
- interface Config {
128
- /**
129
- * Add Python to image (e.g., '3.12', for image runtime)
130
- */
131
- addPython?: string;
132
- /**
133
- * Allow network access (default: false for Python, true for Docker)
134
- */
135
- allowNetwork?: boolean;
136
- /**
137
- * Container command arguments
138
- */
139
- cmd?: Array<string>;
140
- /**
141
- * Concurrent execution limit
142
- */
143
- concurrency?: number;
144
- /**
145
- * CPU core count
146
- */
147
- cpuCount?: number;
148
- /**
149
- * Cron schedule for periodic execution
150
- */
151
- cronSchedule?: string;
152
- /**
153
- * Python package dependencies (python runtime)
154
- */
155
- dependencies?: Array<string>;
156
- /**
157
- * Container entrypoint command
158
- */
159
- entrypoint?: Array<string>;
160
- /**
161
- * Environment variables
162
- */
163
- env?: {
164
- [key: string]: string;
165
- };
166
- /**
167
- * Number of GPUs (for multi-GPU setups)
168
- */
169
- gpuCount?: number;
170
- /**
171
- * GPU type for acceleration
172
- */
173
- gpuType?: 'cpu' | 'T4' | 'L4' | 'A10G' | 'L40S' | 'A100' | 'A100-40GB' | 'A100-80GB' | 'H100' | 'H200' | 'B200';
174
- /**
175
- * Deploy as web service (auto-set for service type)
176
- */
177
- isWebService?: boolean;
178
- /**
179
- * Memory allocation in MB
180
- */
181
- memoryMb?: number;
182
- /**
183
- * Packages to pip install (image runtime)
184
- */
185
- pipInstall?: Array<string>;
186
- /**
187
- * Port for web services
188
- */
189
- port?: number;
190
- /**
191
- * Python version (e.g., '3.11')
192
- */
193
- pythonVersion?: string;
194
- /**
195
- * Retry attempts on failure (Python only)
196
- */
197
- retries?: number;
198
- /**
199
- * Secret group names to inject
200
- */
201
- secretGroups?: Array<string>;
202
- /**
203
- * Maximum execution time
204
- */
205
- timeoutSeconds?: number;
206
- /**
207
- * Use uv for faster package installs
208
- */
209
- useUv?: boolean;
210
- /**
211
- * Number of warm instances to maintain
212
- */
213
- warmInstances?: number;
214
- /**
215
- * Working directory in container
216
- */
217
- workdir?: string;
48
+ export declare namespace V1GetUsageResponse {
49
+ interface ByEnvironment {
50
+ environment?: string;
51
+ totalCostCents?: number;
52
+ totalCostFormatted?: string;
53
+ totalCpuSeconds?: number;
54
+ totalGpuSeconds?: number;
55
+ totalRuns?: number;
56
+ }
57
+ interface Period {
58
+ month?: number;
59
+ monthName?: string;
60
+ year?: number;
61
+ }
62
+ interface Summary {
63
+ totalCostCents?: number;
64
+ totalCostFormatted?: string;
65
+ totalCpuHours?: number;
66
+ totalGpuHours?: number;
67
+ totalRuns?: number;
218
68
  }
219
69
  }
220
70
  export interface V1GetUsageParams {
@@ -228,11 +78,11 @@ export interface V1GetUsageParams {
228
78
  year?: number;
229
79
  }
230
80
  export declare namespace V1 {
231
- export { type V1DeployResponse as V1DeployResponse, type V1DeployParams as V1DeployParams, type V1GetUsageParams as V1GetUsageParams, };
232
- export { Environments as Environments, type EnvironmentCreateResponse as EnvironmentCreateResponse, type EnvironmentDeleteResponse as EnvironmentDeleteResponse, type EnvironmentCreateParams as EnvironmentCreateParams, };
233
- export { Functions as Functions, type FunctionListParams as FunctionListParams, type FunctionGetLogsParams as FunctionGetLogsParams, };
234
- export { Invoke as Invoke, type InvokeRunResponse as InvokeRunResponse, type InvokeRunParams as InvokeRunParams, };
235
- export { Runs as Runs, type RunListParams as RunListParams };
236
- export { Secrets as Secrets, type SecretCreateResponse as SecretCreateResponse, type SecretCreateParams as SecretCreateParams, type SecretListParams as SecretListParams, type SecretDeleteGroupParams as SecretDeleteGroupParams, type SecretRetrieveGroupParams as SecretRetrieveGroupParams, type SecretUpdateGroupParams as SecretUpdateGroupParams, };
81
+ export { type V1GetUsageResponse as V1GetUsageResponse, type V1GetUsageParams as V1GetUsageParams };
82
+ export { Environments as Environments, type EnvironmentCreateResponse as EnvironmentCreateResponse, type EnvironmentRetrieveResponse as EnvironmentRetrieveResponse, type EnvironmentListResponse as EnvironmentListResponse, type EnvironmentDeleteResponse as EnvironmentDeleteResponse, type EnvironmentSetDefaultResponse as EnvironmentSetDefaultResponse, type EnvironmentCreateParams as EnvironmentCreateParams, };
83
+ export { Functions as Functions };
84
+ export { Invoke as Invoke };
85
+ export { Runs as Runs };
86
+ export { Secrets as Secrets, type SecretCreateResponse as SecretCreateResponse, type SecretListResponse as SecretListResponse, type SecretDeleteGroupResponse as SecretDeleteGroupResponse, type SecretRetrieveGroupResponse as SecretRetrieveGroupResponse, type SecretUpdateGroupResponse as SecretUpdateGroupResponse, type SecretCreateParams as SecretCreateParams, type SecretListParams as SecretListParams, type SecretDeleteGroupParams as SecretDeleteGroupParams, type SecretRetrieveGroupParams as SecretRetrieveGroupParams, type SecretUpdateGroupParams as SecretUpdateGroupParams, };
237
87
  }
238
88
  //# sourceMappingURL=v1.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EACL,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,YAAY,EACb;OACM,KAAK,YAAY;OACjB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,SAAS,EAAE;OACxD,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,eAAe,EAAE,iBAAiB,EAAE;OAC9C,KAAK,OAAO;OACZ,EAAE,aAAa,EAAE,IAAI,EAAE;OACvB,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACvB,OAAO,EACR;OACM,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,EAAG,SAAQ,WAAW;IACjC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,cAAc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ACL,OAAO,IAAI,OAAO,EAClB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -25,26 +25,9 @@ class V1 extends resource_1.APIResource {
25
25
  this.secrets = new SecretsAPI.Secrets(this._client);
26
26
  }
27
27
  /**
28
- * Deploy code to Case.dev's serverless compute infrastructure powered by Modal.
29
- * Supports Python, Dockerfile, and container image runtimes with GPU acceleration
30
- * for AI/ML workloads. Code is deployed as tasks (batch jobs) or services (web
31
- * endpoints) with automatic scaling.
32
- *
33
- * @example
34
- * ```ts
35
- * const response = await client.compute.v1.deploy({
36
- * entrypointName: 'entrypointName',
37
- * type: 'task',
38
- * });
39
- * ```
40
- */
41
- deploy(body, options) {
42
- return this._client.post('/compute/v1/deploy', { body, ...options });
43
- }
44
- /**
45
- * Returns current pricing for GPU and CPU compute resources. This public endpoint
46
- * provides detailed pricing information for all available compute types, including
47
- * GPU instances and CPU cores, with billing model details.
28
+ * Returns current pricing for GPU instances. Prices are fetched in real-time and
29
+ * include a 20% platform fee. For detailed instance types and availability, use
30
+ * GET /compute/v1/instance-types.
48
31
  *
49
32
  * @example
50
33
  * ```ts
@@ -64,15 +47,11 @@ class V1 extends resource_1.APIResource {
64
47
  *
65
48
  * @example
66
49
  * ```ts
67
- * await client.compute.v1.getUsage();
50
+ * const response = await client.compute.v1.getUsage();
68
51
  * ```
69
52
  */
70
53
  getUsage(query = {}, options) {
71
- return this._client.get('/compute/v1/usage', {
72
- query,
73
- ...options,
74
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
75
- });
54
+ return this._client.get('/compute/v1/usage', { query, ...options });
76
55
  }
77
56
  }
78
57
  exports.V1 = V1;
@@ -1 +1 @@
1
- {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/resources/compute/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,2EAAkD;AAClD,oDAKwB;AACxB,qEAA4C;AAC5C,8CAAmF;AACnF,+DAAsC;AACtC,wCAAsE;AACtE,2DAAkC;AAClC,oCAA6C;AAC7C,iEAAwC;AACxC,0CAQmB;AAEnB,0DAAyD;AAGzD,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsDrE,CAAC;IApDC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;OASG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE;YAC7C,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,E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