@meetkai/mka1 0.54.32 → 0.54.34

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 (284) hide show
  1. package/README.md +298 -295
  2. package/bin/mcp-server.js +2340 -1769
  3. package/bin/mcp-server.js.map +32 -24
  4. package/dist/commonjs/funcs/computeServicesListServiceInstances.js +1 -0
  5. package/dist/commonjs/funcs/computeServicesListServiceInstances.js.map +1 -1
  6. package/dist/commonjs/funcs/computeServicesUpdateServiceScaling.d.ts +16 -0
  7. package/dist/commonjs/funcs/computeServicesUpdateServiceScaling.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/computeServicesUpdateServiceScaling.js +146 -0
  9. package/dist/commonjs/funcs/computeServicesUpdateServiceScaling.js.map +1 -0
  10. package/dist/commonjs/lib/config.d.ts +2 -2
  11. package/dist/commonjs/lib/config.js +2 -2
  12. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  13. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  14. package/dist/commonjs/mcp-server/server.js +3 -1
  15. package/dist/commonjs/mcp-server/server.js.map +1 -1
  16. package/dist/commonjs/mcp-server/tools/computeServicesUpdateServiceScaling.d.ts +8 -0
  17. package/dist/commonjs/mcp-server/tools/computeServicesUpdateServiceScaling.d.ts.map +1 -0
  18. package/dist/commonjs/mcp-server/tools/computeServicesUpdateServiceScaling.js +62 -0
  19. package/dist/commonjs/mcp-server/tools/computeServicesUpdateServiceScaling.js.map +1 -0
  20. package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts +20 -0
  21. package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts.map +1 -1
  22. package/dist/commonjs/models/components/addcatalogmodelrequest.js +24 -1
  23. package/dist/commonjs/models/components/addcatalogmodelrequest.js.map +1 -1
  24. package/dist/commonjs/models/components/computeautoscalerstate.d.ts +44 -0
  25. package/dist/commonjs/models/components/computeautoscalerstate.d.ts.map +1 -0
  26. package/dist/commonjs/models/components/computeautoscalerstate.js +104 -0
  27. package/dist/commonjs/models/components/computeautoscalerstate.js.map +1 -0
  28. package/dist/commonjs/models/components/computecontainercreate.d.ts +27 -0
  29. package/dist/commonjs/models/components/computecontainercreate.d.ts.map +1 -1
  30. package/dist/commonjs/models/components/computecontainercreate.js +17 -0
  31. package/dist/commonjs/models/components/computecontainercreate.js.map +1 -1
  32. package/dist/commonjs/models/components/computeinstance.d.ts +12 -0
  33. package/dist/commonjs/models/components/computeinstance.d.ts.map +1 -1
  34. package/dist/commonjs/models/components/computeinstance.js +25 -0
  35. package/dist/commonjs/models/components/computeinstance.js.map +1 -1
  36. package/dist/commonjs/models/components/computejob.d.ts +16 -0
  37. package/dist/commonjs/models/components/computejob.d.ts.map +1 -1
  38. package/dist/commonjs/models/components/computejob.js +21 -1
  39. package/dist/commonjs/models/components/computejob.js.map +1 -1
  40. package/dist/commonjs/models/components/computeoffer.d.ts +5 -0
  41. package/dist/commonjs/models/components/computeoffer.d.ts.map +1 -1
  42. package/dist/commonjs/models/components/computeoffer.js +4 -0
  43. package/dist/commonjs/models/components/computeoffer.js.map +1 -1
  44. package/dist/commonjs/models/components/computequoterequest.d.ts +2 -0
  45. package/dist/commonjs/models/components/computequoterequest.d.ts.map +1 -1
  46. package/dist/commonjs/models/components/computequoterequest.js +10 -0
  47. package/dist/commonjs/models/components/computequoterequest.js.map +1 -1
  48. package/dist/commonjs/models/components/computeregistrycredential.d.ts +22 -0
  49. package/dist/commonjs/models/components/computeregistrycredential.d.ts.map +1 -0
  50. package/dist/commonjs/models/components/computeregistrycredential.js +60 -0
  51. package/dist/commonjs/models/components/computeregistrycredential.js.map +1 -0
  52. package/dist/commonjs/models/components/computescalinginput.d.ts +2 -0
  53. package/dist/commonjs/models/components/computescalinginput.d.ts.map +1 -1
  54. package/dist/commonjs/models/components/computescalinginput.js +4 -0
  55. package/dist/commonjs/models/components/computescalinginput.js.map +1 -1
  56. package/dist/commonjs/models/components/computescalingreplicas.d.ts +44 -0
  57. package/dist/commonjs/models/components/computescalingreplicas.d.ts.map +1 -0
  58. package/dist/commonjs/models/components/computescalingreplicas.js +97 -0
  59. package/dist/commonjs/models/components/computescalingreplicas.js.map +1 -0
  60. package/dist/commonjs/models/components/computeservice.d.ts +31 -0
  61. package/dist/commonjs/models/components/computeservice.d.ts.map +1 -1
  62. package/dist/commonjs/models/components/computeservice.js +36 -1
  63. package/dist/commonjs/models/components/computeservice.js.map +1 -1
  64. package/dist/commonjs/models/components/computeservicescaling.d.ts +34 -0
  65. package/dist/commonjs/models/components/computeservicescaling.d.ts.map +1 -0
  66. package/dist/commonjs/models/components/computeservicescaling.js +90 -0
  67. package/dist/commonjs/models/components/computeservicescaling.js.map +1 -0
  68. package/dist/commonjs/models/components/computetenant.d.ts +2 -0
  69. package/dist/commonjs/models/components/computetenant.d.ts.map +1 -1
  70. package/dist/commonjs/models/components/computetenant.js +4 -0
  71. package/dist/commonjs/models/components/computetenant.js.map +1 -1
  72. package/dist/commonjs/models/components/computetenantupdate.d.ts +2 -0
  73. package/dist/commonjs/models/components/computetenantupdate.d.ts.map +1 -1
  74. package/dist/commonjs/models/components/computetenantupdate.js +4 -0
  75. package/dist/commonjs/models/components/computetenantupdate.js.map +1 -1
  76. package/dist/commonjs/models/components/computeusage.d.ts +5 -0
  77. package/dist/commonjs/models/components/computeusage.d.ts.map +1 -1
  78. package/dist/commonjs/models/components/computeusage.js +4 -0
  79. package/dist/commonjs/models/components/computeusage.js.map +1 -1
  80. package/dist/commonjs/models/components/index.d.ts +4 -0
  81. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  82. package/dist/commonjs/models/components/index.js +4 -0
  83. package/dist/commonjs/models/components/index.js.map +1 -1
  84. package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts +20 -0
  85. package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
  86. package/dist/commonjs/models/components/updatecatalogmodelrequest.js +24 -1
  87. package/dist/commonjs/models/components/updatecatalogmodelrequest.js.map +1 -1
  88. package/dist/commonjs/models/operations/getmodel.d.ts +16 -0
  89. package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
  90. package/dist/commonjs/models/operations/getmodel.js +13 -0
  91. package/dist/commonjs/models/operations/getmodel.js.map +1 -1
  92. package/dist/commonjs/models/operations/index.d.ts +1 -0
  93. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  94. package/dist/commonjs/models/operations/index.js +1 -0
  95. package/dist/commonjs/models/operations/index.js.map +1 -1
  96. package/dist/commonjs/models/operations/listmodels.d.ts +16 -0
  97. package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
  98. package/dist/commonjs/models/operations/listmodels.js +13 -0
  99. package/dist/commonjs/models/operations/listmodels.js.map +1 -1
  100. package/dist/commonjs/models/operations/listserviceinstances.d.ts +5 -0
  101. package/dist/commonjs/models/operations/listserviceinstances.d.ts.map +1 -1
  102. package/dist/commonjs/models/operations/listserviceinstances.js +2 -0
  103. package/dist/commonjs/models/operations/listserviceinstances.js.map +1 -1
  104. package/dist/commonjs/models/operations/updateservicescaling.d.ts +60 -0
  105. package/dist/commonjs/models/operations/updateservicescaling.d.ts.map +1 -0
  106. package/dist/commonjs/models/operations/updateservicescaling.js +134 -0
  107. package/dist/commonjs/models/operations/updateservicescaling.js.map +1 -0
  108. package/dist/commonjs/react-query/computeServicesListServiceInstances.core.d.ts +1 -0
  109. package/dist/commonjs/react-query/computeServicesListServiceInstances.core.d.ts.map +1 -1
  110. package/dist/commonjs/react-query/computeServicesListServiceInstances.core.js +1 -0
  111. package/dist/commonjs/react-query/computeServicesListServiceInstances.core.js.map +1 -1
  112. package/dist/commonjs/react-query/computeServicesListServiceInstances.d.ts +2 -0
  113. package/dist/commonjs/react-query/computeServicesListServiceInstances.d.ts.map +1 -1
  114. package/dist/commonjs/react-query/computeServicesListServiceInstances.js.map +1 -1
  115. package/dist/commonjs/react-query/computeServicesUpdateServiceScaling.d.ts +25 -0
  116. package/dist/commonjs/react-query/computeServicesUpdateServiceScaling.d.ts.map +1 -0
  117. package/dist/commonjs/react-query/computeServicesUpdateServiceScaling.js +44 -0
  118. package/dist/commonjs/react-query/computeServicesUpdateServiceScaling.js.map +1 -0
  119. package/dist/commonjs/react-query/index.d.ts +1 -0
  120. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  121. package/dist/commonjs/react-query/index.js +1 -0
  122. package/dist/commonjs/react-query/index.js.map +1 -1
  123. package/dist/commonjs/sdk/computeservices.d.ts +4 -0
  124. package/dist/commonjs/sdk/computeservices.d.ts.map +1 -1
  125. package/dist/commonjs/sdk/computeservices.js +7 -0
  126. package/dist/commonjs/sdk/computeservices.js.map +1 -1
  127. package/dist/esm/funcs/computeServicesListServiceInstances.js +1 -0
  128. package/dist/esm/funcs/computeServicesListServiceInstances.js.map +1 -1
  129. package/dist/esm/funcs/computeServicesUpdateServiceScaling.d.ts +16 -0
  130. package/dist/esm/funcs/computeServicesUpdateServiceScaling.d.ts.map +1 -0
  131. package/dist/esm/funcs/computeServicesUpdateServiceScaling.js +110 -0
  132. package/dist/esm/funcs/computeServicesUpdateServiceScaling.js.map +1 -0
  133. package/dist/esm/lib/config.d.ts +2 -2
  134. package/dist/esm/lib/config.js +2 -2
  135. package/dist/esm/mcp-server/mcp-server.js +1 -1
  136. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  137. package/dist/esm/mcp-server/server.js +3 -1
  138. package/dist/esm/mcp-server/server.js.map +1 -1
  139. package/dist/esm/mcp-server/tools/computeServicesUpdateServiceScaling.d.ts +8 -0
  140. package/dist/esm/mcp-server/tools/computeServicesUpdateServiceScaling.d.ts.map +1 -0
  141. package/dist/esm/mcp-server/tools/computeServicesUpdateServiceScaling.js +26 -0
  142. package/dist/esm/mcp-server/tools/computeServicesUpdateServiceScaling.js.map +1 -0
  143. package/dist/esm/models/components/addcatalogmodelrequest.d.ts +20 -0
  144. package/dist/esm/models/components/addcatalogmodelrequest.d.ts.map +1 -1
  145. package/dist/esm/models/components/addcatalogmodelrequest.js +21 -0
  146. package/dist/esm/models/components/addcatalogmodelrequest.js.map +1 -1
  147. package/dist/esm/models/components/computeautoscalerstate.d.ts +44 -0
  148. package/dist/esm/models/components/computeautoscalerstate.d.ts.map +1 -0
  149. package/dist/esm/models/components/computeautoscalerstate.js +66 -0
  150. package/dist/esm/models/components/computeautoscalerstate.js.map +1 -0
  151. package/dist/esm/models/components/computecontainercreate.d.ts +27 -0
  152. package/dist/esm/models/components/computecontainercreate.d.ts.map +1 -1
  153. package/dist/esm/models/components/computecontainercreate.js +17 -0
  154. package/dist/esm/models/components/computecontainercreate.js.map +1 -1
  155. package/dist/esm/models/components/computeinstance.d.ts +12 -0
  156. package/dist/esm/models/components/computeinstance.d.ts.map +1 -1
  157. package/dist/esm/models/components/computeinstance.js +25 -0
  158. package/dist/esm/models/components/computeinstance.js.map +1 -1
  159. package/dist/esm/models/components/computejob.d.ts +16 -0
  160. package/dist/esm/models/components/computejob.d.ts.map +1 -1
  161. package/dist/esm/models/components/computejob.js +20 -0
  162. package/dist/esm/models/components/computejob.js.map +1 -1
  163. package/dist/esm/models/components/computeoffer.d.ts +5 -0
  164. package/dist/esm/models/components/computeoffer.d.ts.map +1 -1
  165. package/dist/esm/models/components/computeoffer.js +4 -0
  166. package/dist/esm/models/components/computeoffer.js.map +1 -1
  167. package/dist/esm/models/components/computequoterequest.d.ts +2 -0
  168. package/dist/esm/models/components/computequoterequest.d.ts.map +1 -1
  169. package/dist/esm/models/components/computequoterequest.js +10 -0
  170. package/dist/esm/models/components/computequoterequest.js.map +1 -1
  171. package/dist/esm/models/components/computeregistrycredential.d.ts +22 -0
  172. package/dist/esm/models/components/computeregistrycredential.d.ts.map +1 -0
  173. package/dist/esm/models/components/computeregistrycredential.js +22 -0
  174. package/dist/esm/models/components/computeregistrycredential.js.map +1 -0
  175. package/dist/esm/models/components/computescalinginput.d.ts +2 -0
  176. package/dist/esm/models/components/computescalinginput.d.ts.map +1 -1
  177. package/dist/esm/models/components/computescalinginput.js +4 -0
  178. package/dist/esm/models/components/computescalinginput.js.map +1 -1
  179. package/dist/esm/models/components/computescalingreplicas.d.ts +44 -0
  180. package/dist/esm/models/components/computescalingreplicas.d.ts.map +1 -0
  181. package/dist/esm/models/components/computescalingreplicas.js +59 -0
  182. package/dist/esm/models/components/computescalingreplicas.js.map +1 -0
  183. package/dist/esm/models/components/computeservice.d.ts +31 -0
  184. package/dist/esm/models/components/computeservice.d.ts.map +1 -1
  185. package/dist/esm/models/components/computeservice.js +35 -0
  186. package/dist/esm/models/components/computeservice.js.map +1 -1
  187. package/dist/esm/models/components/computeservicescaling.d.ts +34 -0
  188. package/dist/esm/models/components/computeservicescaling.d.ts.map +1 -0
  189. package/dist/esm/models/components/computeservicescaling.js +52 -0
  190. package/dist/esm/models/components/computeservicescaling.js.map +1 -0
  191. package/dist/esm/models/components/computetenant.d.ts +2 -0
  192. package/dist/esm/models/components/computetenant.d.ts.map +1 -1
  193. package/dist/esm/models/components/computetenant.js +4 -0
  194. package/dist/esm/models/components/computetenant.js.map +1 -1
  195. package/dist/esm/models/components/computetenantupdate.d.ts +2 -0
  196. package/dist/esm/models/components/computetenantupdate.d.ts.map +1 -1
  197. package/dist/esm/models/components/computetenantupdate.js +4 -0
  198. package/dist/esm/models/components/computetenantupdate.js.map +1 -1
  199. package/dist/esm/models/components/computeusage.d.ts +5 -0
  200. package/dist/esm/models/components/computeusage.d.ts.map +1 -1
  201. package/dist/esm/models/components/computeusage.js +4 -0
  202. package/dist/esm/models/components/computeusage.js.map +1 -1
  203. package/dist/esm/models/components/index.d.ts +4 -0
  204. package/dist/esm/models/components/index.d.ts.map +1 -1
  205. package/dist/esm/models/components/index.js +4 -0
  206. package/dist/esm/models/components/index.js.map +1 -1
  207. package/dist/esm/models/components/updatecatalogmodelrequest.d.ts +20 -0
  208. package/dist/esm/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
  209. package/dist/esm/models/components/updatecatalogmodelrequest.js +21 -0
  210. package/dist/esm/models/components/updatecatalogmodelrequest.js.map +1 -1
  211. package/dist/esm/models/operations/getmodel.d.ts +16 -0
  212. package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
  213. package/dist/esm/models/operations/getmodel.js +13 -0
  214. package/dist/esm/models/operations/getmodel.js.map +1 -1
  215. package/dist/esm/models/operations/index.d.ts +1 -0
  216. package/dist/esm/models/operations/index.d.ts.map +1 -1
  217. package/dist/esm/models/operations/index.js +1 -0
  218. package/dist/esm/models/operations/index.js.map +1 -1
  219. package/dist/esm/models/operations/listmodels.d.ts +16 -0
  220. package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
  221. package/dist/esm/models/operations/listmodels.js +13 -0
  222. package/dist/esm/models/operations/listmodels.js.map +1 -1
  223. package/dist/esm/models/operations/listserviceinstances.d.ts +5 -0
  224. package/dist/esm/models/operations/listserviceinstances.d.ts.map +1 -1
  225. package/dist/esm/models/operations/listserviceinstances.js +2 -0
  226. package/dist/esm/models/operations/listserviceinstances.js.map +1 -1
  227. package/dist/esm/models/operations/updateservicescaling.d.ts +60 -0
  228. package/dist/esm/models/operations/updateservicescaling.d.ts.map +1 -0
  229. package/dist/esm/models/operations/updateservicescaling.js +92 -0
  230. package/dist/esm/models/operations/updateservicescaling.js.map +1 -0
  231. package/dist/esm/react-query/computeServicesListServiceInstances.core.d.ts +1 -0
  232. package/dist/esm/react-query/computeServicesListServiceInstances.core.d.ts.map +1 -1
  233. package/dist/esm/react-query/computeServicesListServiceInstances.core.js +1 -0
  234. package/dist/esm/react-query/computeServicesListServiceInstances.core.js.map +1 -1
  235. package/dist/esm/react-query/computeServicesListServiceInstances.d.ts +2 -0
  236. package/dist/esm/react-query/computeServicesListServiceInstances.d.ts.map +1 -1
  237. package/dist/esm/react-query/computeServicesListServiceInstances.js.map +1 -1
  238. package/dist/esm/react-query/computeServicesUpdateServiceScaling.d.ts +25 -0
  239. package/dist/esm/react-query/computeServicesUpdateServiceScaling.d.ts.map +1 -0
  240. package/dist/esm/react-query/computeServicesUpdateServiceScaling.js +39 -0
  241. package/dist/esm/react-query/computeServicesUpdateServiceScaling.js.map +1 -0
  242. package/dist/esm/react-query/index.d.ts +1 -0
  243. package/dist/esm/react-query/index.d.ts.map +1 -1
  244. package/dist/esm/react-query/index.js +1 -0
  245. package/dist/esm/react-query/index.js.map +1 -1
  246. package/dist/esm/sdk/computeservices.d.ts +4 -0
  247. package/dist/esm/sdk/computeservices.d.ts.map +1 -1
  248. package/dist/esm/sdk/computeservices.js +7 -0
  249. package/dist/esm/sdk/computeservices.js.map +1 -1
  250. package/jsr.json +1 -1
  251. package/package.json +1 -1
  252. package/src/funcs/computeServicesListServiceInstances.ts +1 -0
  253. package/src/funcs/computeServicesUpdateServiceScaling.ts +204 -0
  254. package/src/lib/config.ts +2 -2
  255. package/src/mcp-server/mcp-server.ts +1 -1
  256. package/src/mcp-server/server.ts +3 -1
  257. package/src/mcp-server/tools/computeServicesUpdateServiceScaling.ts +37 -0
  258. package/src/models/components/addcatalogmodelrequest.ts +52 -0
  259. package/src/models/components/computeautoscalerstate.ts +125 -0
  260. package/src/models/components/computecontainercreate.ts +48 -0
  261. package/src/models/components/computeinstance.ts +41 -0
  262. package/src/models/components/computejob.ts +32 -0
  263. package/src/models/components/computeoffer.ts +9 -0
  264. package/src/models/components/computequoterequest.ts +12 -0
  265. package/src/models/components/computeregistrycredential.ts +58 -0
  266. package/src/models/components/computescalinginput.ts +6 -0
  267. package/src/models/components/computescalingreplicas.ts +111 -0
  268. package/src/models/components/computeservice.ts +64 -0
  269. package/src/models/components/computeservicescaling.ts +116 -0
  270. package/src/models/components/computetenant.ts +6 -0
  271. package/src/models/components/computetenantupdate.ts +6 -0
  272. package/src/models/components/computeusage.ts +9 -0
  273. package/src/models/components/index.ts +4 -0
  274. package/src/models/components/updatecatalogmodelrequest.ts +63 -0
  275. package/src/models/operations/getmodel.ts +28 -0
  276. package/src/models/operations/index.ts +1 -0
  277. package/src/models/operations/listmodels.ts +28 -0
  278. package/src/models/operations/listserviceinstances.ts +7 -0
  279. package/src/models/operations/updateservicescaling.ts +206 -0
  280. package/src/react-query/computeServicesListServiceInstances.core.ts +2 -0
  281. package/src/react-query/computeServicesListServiceInstances.ts +2 -0
  282. package/src/react-query/computeServicesUpdateServiceScaling.ts +106 -0
  283. package/src/react-query/index.ts +1 -0
  284. package/src/sdk/computeservices.ts +15 -0
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
  import {
@@ -42,6 +43,12 @@ import {
42
43
  ComputeResourceState$inboundSchema,
43
44
  ComputeResourceState$outboundSchema,
44
45
  } from "./computeresourcestate.js";
46
+ import {
47
+ ComputeServiceScaling,
48
+ ComputeServiceScaling$inboundSchema,
49
+ ComputeServiceScaling$Outbound,
50
+ ComputeServiceScaling$outboundSchema,
51
+ } from "./computeservicescaling.js";
45
52
  import {
46
53
  ComputeSSH,
47
54
  ComputeSSH$inboundSchema,
@@ -61,17 +68,35 @@ import {
61
68
  ComputeVolume$outboundSchema,
62
69
  } from "./computevolume.js";
63
70
 
71
+ export const ComputeServicePricingModel = {
72
+ InstanceMinutes: "instance_minutes",
73
+ InstanceSeconds: "instance_seconds",
74
+ } as const;
75
+ export type ComputeServicePricingModel = ClosedEnum<
76
+ typeof ComputeServicePricingModel
77
+ >;
78
+
79
+ export const Health = {
80
+ Healthy: "healthy",
81
+ Warming: "warming",
82
+ Degraded: "degraded",
83
+ } as const;
84
+ export type Health = ClosedEnum<typeof Health>;
85
+
64
86
  export type ComputeService = {
65
87
  accruedUsd: number;
66
88
  allocatedAt?: Date | undefined;
67
89
  compute: ComputeRequest;
68
90
  createdAt: Date;
91
+ currentPriceUsdHr?: number | undefined;
69
92
  endpoints: Array<ComputeEndpoint>;
70
93
  hardware?: ComputeHardware | undefined;
71
94
  id: string;
95
+ instancePriceUsdHr?: number | undefined;
72
96
  limits: ComputeLimits;
73
97
  name?: string | undefined;
74
98
  priceUsdHr?: number | undefined;
99
+ pricingModel?: ComputeServicePricingModel | undefined;
75
100
  /**
76
101
  * Opaque compute-provider identifier. Supported values are deployment-specific.
77
102
  */
@@ -82,10 +107,28 @@ export type ComputeService = {
82
107
  state: ComputeResourceState;
83
108
  terminalAt: Date | null;
84
109
  volumes?: Array<ComputeStandaloneVolumeMount> | undefined;
110
+ health?: Health | undefined;
85
111
  ready: boolean;
112
+ scaling?: ComputeServiceScaling | undefined;
86
113
  volume?: ComputeVolume | undefined;
87
114
  };
88
115
 
116
+ /** @internal */
117
+ export const ComputeServicePricingModel$inboundSchema: z.ZodNativeEnum<
118
+ typeof ComputeServicePricingModel
119
+ > = z.nativeEnum(ComputeServicePricingModel);
120
+ /** @internal */
121
+ export const ComputeServicePricingModel$outboundSchema: z.ZodNativeEnum<
122
+ typeof ComputeServicePricingModel
123
+ > = ComputeServicePricingModel$inboundSchema;
124
+
125
+ /** @internal */
126
+ export const Health$inboundSchema: z.ZodNativeEnum<typeof Health> = z
127
+ .nativeEnum(Health);
128
+ /** @internal */
129
+ export const Health$outboundSchema: z.ZodNativeEnum<typeof Health> =
130
+ Health$inboundSchema;
131
+
89
132
  /** @internal */
90
133
  export const ComputeService$inboundSchema: z.ZodType<
91
134
  ComputeService,
@@ -98,12 +141,15 @@ export const ComputeService$inboundSchema: z.ZodType<
98
141
  ).optional(),
99
142
  compute: ComputeRequest$inboundSchema,
100
143
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
144
+ current_price_usd_hr: z.number().optional(),
101
145
  endpoints: z.array(ComputeEndpoint$inboundSchema),
102
146
  hardware: ComputeHardware$inboundSchema.optional(),
103
147
  id: z.string(),
148
+ instance_price_usd_hr: z.number().optional(),
104
149
  limits: ComputeLimits$inboundSchema,
105
150
  name: z.string().optional(),
106
151
  price_usd_hr: z.number().optional(),
152
+ pricing_model: ComputeServicePricingModel$inboundSchema.optional(),
107
153
  provider: z.string().optional(),
108
154
  reason: z.nullable(ComputeReason$inboundSchema),
109
155
  ssh: ComputeSSH$inboundSchema.optional(),
@@ -115,14 +161,19 @@ export const ComputeService$inboundSchema: z.ZodType<
115
161
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
116
162
  ),
117
163
  volumes: z.array(ComputeStandaloneVolumeMount$inboundSchema).optional(),
164
+ health: Health$inboundSchema.optional(),
118
165
  ready: z.boolean(),
166
+ scaling: ComputeServiceScaling$inboundSchema.optional(),
119
167
  volume: ComputeVolume$inboundSchema.optional(),
120
168
  }).transform((v) => {
121
169
  return remap$(v, {
122
170
  "accrued_usd": "accruedUsd",
123
171
  "allocated_at": "allocatedAt",
124
172
  "created_at": "createdAt",
173
+ "current_price_usd_hr": "currentPriceUsdHr",
174
+ "instance_price_usd_hr": "instancePriceUsdHr",
125
175
  "price_usd_hr": "priceUsdHr",
176
+ "pricing_model": "pricingModel",
126
177
  "started_at": "startedAt",
127
178
  "terminal_at": "terminalAt",
128
179
  });
@@ -133,12 +184,15 @@ export type ComputeService$Outbound = {
133
184
  allocated_at?: string | undefined;
134
185
  compute: ComputeRequest$Outbound;
135
186
  created_at: string;
187
+ current_price_usd_hr?: number | undefined;
136
188
  endpoints: Array<ComputeEndpoint$Outbound>;
137
189
  hardware?: ComputeHardware$Outbound | undefined;
138
190
  id: string;
191
+ instance_price_usd_hr?: number | undefined;
139
192
  limits: ComputeLimits$Outbound;
140
193
  name?: string | undefined;
141
194
  price_usd_hr?: number | undefined;
195
+ pricing_model?: string | undefined;
142
196
  provider?: string | undefined;
143
197
  reason: ComputeReason$Outbound | null;
144
198
  ssh?: ComputeSSH$Outbound | undefined;
@@ -146,7 +200,9 @@ export type ComputeService$Outbound = {
146
200
  state: string;
147
201
  terminal_at: string | null;
148
202
  volumes?: Array<ComputeStandaloneVolumeMount$Outbound> | undefined;
203
+ health?: string | undefined;
149
204
  ready: boolean;
205
+ scaling?: ComputeServiceScaling$Outbound | undefined;
150
206
  volume?: ComputeVolume$Outbound | undefined;
151
207
  };
152
208
 
@@ -160,12 +216,15 @@ export const ComputeService$outboundSchema: z.ZodType<
160
216
  allocatedAt: z.date().transform(v => v.toISOString()).optional(),
161
217
  compute: ComputeRequest$outboundSchema,
162
218
  createdAt: z.date().transform(v => v.toISOString()),
219
+ currentPriceUsdHr: z.number().optional(),
163
220
  endpoints: z.array(ComputeEndpoint$outboundSchema),
164
221
  hardware: ComputeHardware$outboundSchema.optional(),
165
222
  id: z.string(),
223
+ instancePriceUsdHr: z.number().optional(),
166
224
  limits: ComputeLimits$outboundSchema,
167
225
  name: z.string().optional(),
168
226
  priceUsdHr: z.number().optional(),
227
+ pricingModel: ComputeServicePricingModel$outboundSchema.optional(),
169
228
  provider: z.string().optional(),
170
229
  reason: z.nullable(ComputeReason$outboundSchema),
171
230
  ssh: ComputeSSH$outboundSchema.optional(),
@@ -173,14 +232,19 @@ export const ComputeService$outboundSchema: z.ZodType<
173
232
  state: ComputeResourceState$outboundSchema,
174
233
  terminalAt: z.nullable(z.date().transform(v => v.toISOString())),
175
234
  volumes: z.array(ComputeStandaloneVolumeMount$outboundSchema).optional(),
235
+ health: Health$outboundSchema.optional(),
176
236
  ready: z.boolean(),
237
+ scaling: ComputeServiceScaling$outboundSchema.optional(),
177
238
  volume: ComputeVolume$outboundSchema.optional(),
178
239
  }).transform((v) => {
179
240
  return remap$(v, {
180
241
  accruedUsd: "accrued_usd",
181
242
  allocatedAt: "allocated_at",
182
243
  createdAt: "created_at",
244
+ currentPriceUsdHr: "current_price_usd_hr",
245
+ instancePriceUsdHr: "instance_price_usd_hr",
183
246
  priceUsdHr: "price_usd_hr",
247
+ pricingModel: "pricing_model",
184
248
  startedAt: "started_at",
185
249
  terminalAt: "terminal_at",
186
250
  });
@@ -0,0 +1,116 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ ComputeAutoscalerState,
12
+ ComputeAutoscalerState$inboundSchema,
13
+ ComputeAutoscalerState$Outbound,
14
+ ComputeAutoscalerState$outboundSchema,
15
+ } from "./computeautoscalerstate.js";
16
+ import {
17
+ ComputeScalingInput,
18
+ ComputeScalingInput$inboundSchema,
19
+ ComputeScalingInput$Outbound,
20
+ ComputeScalingInput$outboundSchema,
21
+ } from "./computescalinginput.js";
22
+ import {
23
+ ComputeScalingReplicas,
24
+ ComputeScalingReplicas$inboundSchema,
25
+ ComputeScalingReplicas$Outbound,
26
+ ComputeScalingReplicas$outboundSchema,
27
+ } from "./computescalingreplicas.js";
28
+
29
+ export type ComputeServiceScaling = {
30
+ applied: ComputeScalingInput | null;
31
+ appliedAt: Date | null;
32
+ appliedGeneration: number;
33
+ autoscaler: ComputeAutoscalerState;
34
+ desired: ComputeScalingInput;
35
+ desiredGeneration: number;
36
+ desiredUpdatedAt: Date;
37
+ replicas: ComputeScalingReplicas;
38
+ };
39
+
40
+ /** @internal */
41
+ export const ComputeServiceScaling$inboundSchema: z.ZodType<
42
+ ComputeServiceScaling,
43
+ z.ZodTypeDef,
44
+ unknown
45
+ > = z.object({
46
+ applied: z.nullable(ComputeScalingInput$inboundSchema),
47
+ applied_at: z.nullable(
48
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
49
+ ),
50
+ applied_generation: z.number().int(),
51
+ autoscaler: ComputeAutoscalerState$inboundSchema,
52
+ desired: ComputeScalingInput$inboundSchema,
53
+ desired_generation: z.number().int(),
54
+ desired_updated_at: z.string().datetime({ offset: true }).transform(v =>
55
+ new Date(v)
56
+ ),
57
+ replicas: ComputeScalingReplicas$inboundSchema,
58
+ }).transform((v) => {
59
+ return remap$(v, {
60
+ "applied_at": "appliedAt",
61
+ "applied_generation": "appliedGeneration",
62
+ "desired_generation": "desiredGeneration",
63
+ "desired_updated_at": "desiredUpdatedAt",
64
+ });
65
+ });
66
+ /** @internal */
67
+ export type ComputeServiceScaling$Outbound = {
68
+ applied: ComputeScalingInput$Outbound | null;
69
+ applied_at: string | null;
70
+ applied_generation: number;
71
+ autoscaler: ComputeAutoscalerState$Outbound;
72
+ desired: ComputeScalingInput$Outbound;
73
+ desired_generation: number;
74
+ desired_updated_at: string;
75
+ replicas: ComputeScalingReplicas$Outbound;
76
+ };
77
+
78
+ /** @internal */
79
+ export const ComputeServiceScaling$outboundSchema: z.ZodType<
80
+ ComputeServiceScaling$Outbound,
81
+ z.ZodTypeDef,
82
+ ComputeServiceScaling
83
+ > = z.object({
84
+ applied: z.nullable(ComputeScalingInput$outboundSchema),
85
+ appliedAt: z.nullable(z.date().transform(v => v.toISOString())),
86
+ appliedGeneration: z.number().int(),
87
+ autoscaler: ComputeAutoscalerState$outboundSchema,
88
+ desired: ComputeScalingInput$outboundSchema,
89
+ desiredGeneration: z.number().int(),
90
+ desiredUpdatedAt: z.date().transform(v => v.toISOString()),
91
+ replicas: ComputeScalingReplicas$outboundSchema,
92
+ }).transform((v) => {
93
+ return remap$(v, {
94
+ appliedAt: "applied_at",
95
+ appliedGeneration: "applied_generation",
96
+ desiredGeneration: "desired_generation",
97
+ desiredUpdatedAt: "desired_updated_at",
98
+ });
99
+ });
100
+
101
+ export function computeServiceScalingToJSON(
102
+ computeServiceScaling: ComputeServiceScaling,
103
+ ): string {
104
+ return JSON.stringify(
105
+ ComputeServiceScaling$outboundSchema.parse(computeServiceScaling),
106
+ );
107
+ }
108
+ export function computeServiceScalingFromJSON(
109
+ jsonString: string,
110
+ ): SafeParseResult<ComputeServiceScaling, SDKValidationError> {
111
+ return safeParse(
112
+ jsonString,
113
+ (x) => ComputeServiceScaling$inboundSchema.parse(JSON.parse(x)),
114
+ `Failed to parse 'ComputeServiceScaling' from JSON`,
115
+ );
116
+ }
@@ -12,6 +12,7 @@ export type ComputeTenant = {
12
12
  createdAt: Date;
13
13
  enabled: boolean;
14
14
  maxLiveJobs: number | null;
15
+ maxLiveServiceReplicas: number | null;
15
16
  maxLiveServices: number | null;
16
17
  maxLiveVolumes: number | null;
17
18
  orgId: string;
@@ -27,6 +28,7 @@ export const ComputeTenant$inboundSchema: z.ZodType<
27
28
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
28
29
  enabled: z.boolean(),
29
30
  max_live_jobs: z.nullable(z.number().int()),
31
+ max_live_service_replicas: z.nullable(z.number().int()),
30
32
  max_live_services: z.nullable(z.number().int()),
31
33
  max_live_volumes: z.nullable(z.number().int()),
32
34
  org_id: z.string(),
@@ -35,6 +37,7 @@ export const ComputeTenant$inboundSchema: z.ZodType<
35
37
  return remap$(v, {
36
38
  "created_at": "createdAt",
37
39
  "max_live_jobs": "maxLiveJobs",
40
+ "max_live_service_replicas": "maxLiveServiceReplicas",
38
41
  "max_live_services": "maxLiveServices",
39
42
  "max_live_volumes": "maxLiveVolumes",
40
43
  "org_id": "orgId",
@@ -46,6 +49,7 @@ export type ComputeTenant$Outbound = {
46
49
  created_at: string;
47
50
  enabled: boolean;
48
51
  max_live_jobs: number | null;
52
+ max_live_service_replicas: number | null;
49
53
  max_live_services: number | null;
50
54
  max_live_volumes: number | null;
51
55
  org_id: string;
@@ -61,6 +65,7 @@ export const ComputeTenant$outboundSchema: z.ZodType<
61
65
  createdAt: z.date().transform(v => v.toISOString()),
62
66
  enabled: z.boolean(),
63
67
  maxLiveJobs: z.nullable(z.number().int()),
68
+ maxLiveServiceReplicas: z.nullable(z.number().int()),
64
69
  maxLiveServices: z.nullable(z.number().int()),
65
70
  maxLiveVolumes: z.nullable(z.number().int()),
66
71
  orgId: z.string(),
@@ -69,6 +74,7 @@ export const ComputeTenant$outboundSchema: z.ZodType<
69
74
  return remap$(v, {
70
75
  createdAt: "created_at",
71
76
  maxLiveJobs: "max_live_jobs",
77
+ maxLiveServiceReplicas: "max_live_service_replicas",
72
78
  maxLiveServices: "max_live_services",
73
79
  maxLiveVolumes: "max_live_volumes",
74
80
  orgId: "org_id",
@@ -11,6 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
  export type ComputeTenantUpdate = {
12
12
  enabled?: boolean | undefined;
13
13
  maxLiveJobs?: number | null | undefined;
14
+ maxLiveServiceReplicas?: number | null | undefined;
14
15
  maxLiveServices?: number | null | undefined;
15
16
  maxLiveVolumes?: number | null | undefined;
16
17
  };
@@ -23,11 +24,13 @@ export const ComputeTenantUpdate$inboundSchema: z.ZodType<
23
24
  > = z.object({
24
25
  enabled: z.boolean().optional(),
25
26
  max_live_jobs: z.nullable(z.number().int()).optional(),
27
+ max_live_service_replicas: z.nullable(z.number().int()).optional(),
26
28
  max_live_services: z.nullable(z.number().int()).optional(),
27
29
  max_live_volumes: z.nullable(z.number().int()).optional(),
28
30
  }).transform((v) => {
29
31
  return remap$(v, {
30
32
  "max_live_jobs": "maxLiveJobs",
33
+ "max_live_service_replicas": "maxLiveServiceReplicas",
31
34
  "max_live_services": "maxLiveServices",
32
35
  "max_live_volumes": "maxLiveVolumes",
33
36
  });
@@ -36,6 +39,7 @@ export const ComputeTenantUpdate$inboundSchema: z.ZodType<
36
39
  export type ComputeTenantUpdate$Outbound = {
37
40
  enabled?: boolean | undefined;
38
41
  max_live_jobs?: number | null | undefined;
42
+ max_live_service_replicas?: number | null | undefined;
39
43
  max_live_services?: number | null | undefined;
40
44
  max_live_volumes?: number | null | undefined;
41
45
  };
@@ -48,11 +52,13 @@ export const ComputeTenantUpdate$outboundSchema: z.ZodType<
48
52
  > = z.object({
49
53
  enabled: z.boolean().optional(),
50
54
  maxLiveJobs: z.nullable(z.number().int()).optional(),
55
+ maxLiveServiceReplicas: z.nullable(z.number().int()).optional(),
51
56
  maxLiveServices: z.nullable(z.number().int()).optional(),
52
57
  maxLiveVolumes: z.nullable(z.number().int()).optional(),
53
58
  }).transform((v) => {
54
59
  return remap$(v, {
55
60
  maxLiveJobs: "max_live_jobs",
61
+ maxLiveServiceReplicas: "max_live_service_replicas",
56
62
  maxLiveServices: "max_live_services",
57
63
  maxLiveVolumes: "max_live_volumes",
58
64
  });
@@ -24,6 +24,10 @@ export type ComputeUsageData = {
24
24
  billableSeconds: number;
25
25
  costBreakdownUsd?: CostBreakdownUsd | undefined;
26
26
  name: string;
27
+ /**
28
+ * Summed per-incarnation compute seconds; present for service rows.
29
+ */
30
+ replicaSeconds?: number | undefined;
27
31
  resourceId: string;
28
32
  resourceType: ComputeUsageResourceType;
29
33
  storedByteSeconds?: number | undefined;
@@ -157,6 +161,7 @@ export const ComputeUsageData$inboundSchema: z.ZodType<
157
161
  billable_seconds: z.number(),
158
162
  cost_breakdown_usd: z.lazy(() => CostBreakdownUsd$inboundSchema).optional(),
159
163
  name: z.string(),
164
+ replica_seconds: z.number().optional(),
160
165
  resource_id: z.string(),
161
166
  resource_type: ComputeUsageResourceType$inboundSchema,
162
167
  stored_byte_seconds: z.number().optional(),
@@ -166,6 +171,7 @@ export const ComputeUsageData$inboundSchema: z.ZodType<
166
171
  "accrued_usd": "accruedUsd",
167
172
  "billable_seconds": "billableSeconds",
168
173
  "cost_breakdown_usd": "costBreakdownUsd",
174
+ "replica_seconds": "replicaSeconds",
169
175
  "resource_id": "resourceId",
170
176
  "resource_type": "resourceType",
171
177
  "stored_byte_seconds": "storedByteSeconds",
@@ -178,6 +184,7 @@ export type ComputeUsageData$Outbound = {
178
184
  billable_seconds: number;
179
185
  cost_breakdown_usd?: CostBreakdownUsd$Outbound | undefined;
180
186
  name: string;
187
+ replica_seconds?: number | undefined;
181
188
  resource_id: string;
182
189
  resource_type: string;
183
190
  stored_byte_seconds?: number | undefined;
@@ -194,6 +201,7 @@ export const ComputeUsageData$outboundSchema: z.ZodType<
194
201
  billableSeconds: z.number(),
195
202
  costBreakdownUsd: z.lazy(() => CostBreakdownUsd$outboundSchema).optional(),
196
203
  name: z.string(),
204
+ replicaSeconds: z.number().optional(),
197
205
  resourceId: z.string(),
198
206
  resourceType: ComputeUsageResourceType$outboundSchema,
199
207
  storedByteSeconds: z.number().optional(),
@@ -203,6 +211,7 @@ export const ComputeUsageData$outboundSchema: z.ZodType<
203
211
  accruedUsd: "accrued_usd",
204
212
  billableSeconds: "billable_seconds",
205
213
  costBreakdownUsd: "cost_breakdown_usd",
214
+ replicaSeconds: "replica_seconds",
206
215
  resourceId: "resource_id",
207
216
  resourceType: "resource_type",
208
217
  storedByteSeconds: "stored_byte_seconds",
@@ -83,6 +83,7 @@ export * from "./compoundfilter.js";
83
83
  export * from "./computeaccelerator.js";
84
84
  export * from "./computeacceleratorlist.js";
85
85
  export * from "./computeaccesscreate.js";
86
+ export * from "./computeautoscalerstate.js";
86
87
  export * from "./computecontainercreate.js";
87
88
  export * from "./computeendpoint.js";
88
89
  export * from "./computeerror.js";
@@ -117,6 +118,7 @@ export * from "./computequoterequest.js";
117
118
  export * from "./computeraction.js";
118
119
  export * from "./computereadiness.js";
119
120
  export * from "./computereason.js";
121
+ export * from "./computeregistrycredential.js";
120
122
  export * from "./computerequest.js";
121
123
  export * from "./computeresourcecreate.js";
122
124
  export * from "./computeresourcestate.js";
@@ -128,6 +130,7 @@ export * from "./computertoolcalloutputwithid.js";
128
130
  export * from "./computertoolcallwithid.js";
129
131
  export * from "./computerusetooldefinition.js";
130
132
  export * from "./computescalinginput.js";
133
+ export * from "./computescalingreplicas.js";
131
134
  export * from "./computesecret.js";
132
135
  export * from "./computesecretcreate.js";
133
136
  export * from "./computesecretlist.js";
@@ -135,6 +138,7 @@ export * from "./computesecretreference.js";
135
138
  export * from "./computeservice.js";
136
139
  export * from "./computeserviceinput.js";
137
140
  export * from "./computeservicelist.js";
141
+ export * from "./computeservicescaling.js";
138
142
  export * from "./computessh.js";
139
143
  export * from "./computestandalonevolume.js";
140
144
  export * from "./computestandalonevolumeattachment.js";
@@ -6,6 +6,7 @@ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { ClosedEnum } from "../../types/enums.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { RFCDate } from "../../types/rfcdate.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
  import {
11
12
  AutoEndpoint,
@@ -298,6 +299,12 @@ export type UpdateCatalogModelRequestHealthCheck =
298
299
  | UpdateCatalogModelRequestHealthCheck2
299
300
  | UpdateCatalogModelRequestHealthCheck3;
300
301
 
302
+ export type UpdateCatalogModelRequestModelCard = {
303
+ parameterCount?: number | undefined;
304
+ activeParameterCount?: number | undefined;
305
+ releaseDate?: RFCDate | undefined;
306
+ };
307
+
301
308
  export type UpdateCatalogModelRequest = {
302
309
  provider?: string | undefined;
303
310
  modelId?: string | undefined;
@@ -332,6 +339,7 @@ export type UpdateCatalogModelRequest = {
332
339
  | UpdateCatalogModelRequestHealthCheck3
333
340
  | null
334
341
  | undefined;
342
+ modelCard?: UpdateCatalogModelRequestModelCard | null | undefined;
335
343
  id: string;
336
344
  };
337
345
 
@@ -2209,6 +2217,54 @@ export function updateCatalogModelRequestHealthCheckFromJSON(
2209
2217
  );
2210
2218
  }
2211
2219
 
2220
+ /** @internal */
2221
+ export const UpdateCatalogModelRequestModelCard$inboundSchema: z.ZodType<
2222
+ UpdateCatalogModelRequestModelCard,
2223
+ z.ZodTypeDef,
2224
+ unknown
2225
+ > = z.object({
2226
+ parameterCount: z.number().int().optional(),
2227
+ activeParameterCount: z.number().int().optional(),
2228
+ releaseDate: z.string().transform(v => new RFCDate(v)).optional(),
2229
+ });
2230
+ /** @internal */
2231
+ export type UpdateCatalogModelRequestModelCard$Outbound = {
2232
+ parameterCount?: number | undefined;
2233
+ activeParameterCount?: number | undefined;
2234
+ releaseDate?: string | undefined;
2235
+ };
2236
+
2237
+ /** @internal */
2238
+ export const UpdateCatalogModelRequestModelCard$outboundSchema: z.ZodType<
2239
+ UpdateCatalogModelRequestModelCard$Outbound,
2240
+ z.ZodTypeDef,
2241
+ UpdateCatalogModelRequestModelCard
2242
+ > = z.object({
2243
+ parameterCount: z.number().int().optional(),
2244
+ activeParameterCount: z.number().int().optional(),
2245
+ releaseDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
2246
+ });
2247
+
2248
+ export function updateCatalogModelRequestModelCardToJSON(
2249
+ updateCatalogModelRequestModelCard: UpdateCatalogModelRequestModelCard,
2250
+ ): string {
2251
+ return JSON.stringify(
2252
+ UpdateCatalogModelRequestModelCard$outboundSchema.parse(
2253
+ updateCatalogModelRequestModelCard,
2254
+ ),
2255
+ );
2256
+ }
2257
+ export function updateCatalogModelRequestModelCardFromJSON(
2258
+ jsonString: string,
2259
+ ): SafeParseResult<UpdateCatalogModelRequestModelCard, SDKValidationError> {
2260
+ return safeParse(
2261
+ jsonString,
2262
+ (x) =>
2263
+ UpdateCatalogModelRequestModelCard$inboundSchema.parse(JSON.parse(x)),
2264
+ `Failed to parse 'UpdateCatalogModelRequestModelCard' from JSON`,
2265
+ );
2266
+ }
2267
+
2212
2268
  /** @internal */
2213
2269
  export const UpdateCatalogModelRequest$inboundSchema: z.ZodType<
2214
2270
  UpdateCatalogModelRequest,
@@ -2259,6 +2315,9 @@ export const UpdateCatalogModelRequest$inboundSchema: z.ZodType<
2259
2315
  z.lazy(() => UpdateCatalogModelRequestHealthCheck3$inboundSchema),
2260
2316
  ]),
2261
2317
  ).optional(),
2318
+ modelCard: z.nullable(
2319
+ z.lazy(() => UpdateCatalogModelRequestModelCard$inboundSchema),
2320
+ ).optional(),
2262
2321
  id: z.string(),
2263
2322
  });
2264
2323
  /** @internal */
@@ -2308,6 +2367,7 @@ export type UpdateCatalogModelRequest$Outbound = {
2308
2367
  | UpdateCatalogModelRequestHealthCheck3$Outbound
2309
2368
  | null
2310
2369
  | undefined;
2370
+ modelCard?: UpdateCatalogModelRequestModelCard$Outbound | null | undefined;
2311
2371
  id: string;
2312
2372
  };
2313
2373
 
@@ -2361,6 +2421,9 @@ export const UpdateCatalogModelRequest$outboundSchema: z.ZodType<
2361
2421
  z.lazy(() => UpdateCatalogModelRequestHealthCheck3$outboundSchema),
2362
2422
  ]),
2363
2423
  ).optional(),
2424
+ modelCard: z.nullable(
2425
+ z.lazy(() => UpdateCatalogModelRequestModelCard$outboundSchema),
2426
+ ).optional(),
2364
2427
  id: z.string(),
2365
2428
  });
2366
2429
 
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { RFCDate } from "../../types/rfcdate.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
 
12
13
  export type GetModelRequest = {
@@ -57,6 +58,18 @@ export type GetModelResponseBody = {
57
58
  * Modalities this model can produce, mirroring the registry's `capabilities.modalities.output`. Unconstrained strings rather than a closed enum so a new registry modality reaches clients without a breaking schema change.
58
59
  */
59
60
  outputModalities: Array<string>;
61
+ /**
62
+ * Total parameter count of the weights behind this model, mirroring the registry's `modelCard.parameterCount`. Null when the registry does not record one (closed-weight API models, or entries nobody has filled in yet).
63
+ */
64
+ parameterCount: number | null;
65
+ /**
66
+ * Parameters active per token for mixture-of-experts models, mirroring the registry's `modelCard.activeParameterCount`. Null for dense models and whenever unrecorded.
67
+ */
68
+ activeParameterCount: number | null;
69
+ /**
70
+ * Public release date of the model as an ISO calendar date (YYYY-MM-DD), mirroring the registry's `modelCard.releaseDate`. Null when unrecorded.
71
+ */
72
+ releaseDate: RFCDate | null;
60
73
  /**
61
74
  * Curated public sampling capabilities for this model.
62
75
  */
@@ -181,6 +194,9 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
181
194
  model_type: ModelType$inboundSchema,
182
195
  input_modalities: z.array(z.string()),
183
196
  output_modalities: z.array(z.string()),
197
+ parameter_count: z.nullable(z.number().int()),
198
+ active_parameter_count: z.nullable(z.number().int()),
199
+ release_date: z.nullable(z.string().transform(v => new RFCDate(v))),
184
200
  capabilities: z.lazy(() => Capabilities$inboundSchema),
185
201
  }).transform((v) => {
186
202
  return remap$(v, {
@@ -188,6 +204,9 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
188
204
  "model_type": "modelType",
189
205
  "input_modalities": "inputModalities",
190
206
  "output_modalities": "outputModalities",
207
+ "parameter_count": "parameterCount",
208
+ "active_parameter_count": "activeParameterCount",
209
+ "release_date": "releaseDate",
191
210
  });
192
211
  });
193
212
  /** @internal */
@@ -199,6 +218,9 @@ export type GetModelResponseBody$Outbound = {
199
218
  model_type: string;
200
219
  input_modalities: Array<string>;
201
220
  output_modalities: Array<string>;
221
+ parameter_count: number | null;
222
+ active_parameter_count: number | null;
223
+ release_date: string | null;
202
224
  capabilities: Capabilities$Outbound;
203
225
  };
204
226
 
@@ -215,6 +237,9 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
215
237
  modelType: ModelType$outboundSchema,
216
238
  inputModalities: z.array(z.string()),
217
239
  outputModalities: z.array(z.string()),
240
+ parameterCount: z.nullable(z.number().int()),
241
+ activeParameterCount: z.nullable(z.number().int()),
242
+ releaseDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
218
243
  capabilities: z.lazy(() => Capabilities$outboundSchema),
219
244
  }).transform((v) => {
220
245
  return remap$(v, {
@@ -222,6 +247,9 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
222
247
  modelType: "model_type",
223
248
  inputModalities: "input_modalities",
224
249
  outputModalities: "output_modalities",
250
+ parameterCount: "parameter_count",
251
+ activeParameterCount: "active_parameter_count",
252
+ releaseDate: "release_date",
225
253
  });
226
254
  });
227
255
 
@@ -364,6 +364,7 @@ export * from "./updateresponse.js";
364
364
  export * from "./updateresponsefeedback.js";
365
365
  export * from "./updatescopedapikey.js";
366
366
  export * from "./updateserviceaccountapikey.js";
367
+ export * from "./updateservicescaling.js";
367
368
  export * from "./updateskill.js";
368
369
  export * from "./updateteam.js";
369
370
  export * from "./updatevectorstorefileattributes.js";