@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.
- package/README.md +298 -295
- package/bin/mcp-server.js +2340 -1769
- package/bin/mcp-server.js.map +32 -24
- package/dist/commonjs/funcs/computeServicesListServiceInstances.js +1 -0
- package/dist/commonjs/funcs/computeServicesListServiceInstances.js.map +1 -1
- package/dist/commonjs/funcs/computeServicesUpdateServiceScaling.d.ts +16 -0
- package/dist/commonjs/funcs/computeServicesUpdateServiceScaling.d.ts.map +1 -0
- package/dist/commonjs/funcs/computeServicesUpdateServiceScaling.js +146 -0
- package/dist/commonjs/funcs/computeServicesUpdateServiceScaling.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/computeServicesUpdateServiceScaling.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/computeServicesUpdateServiceScaling.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/computeServicesUpdateServiceScaling.js +62 -0
- package/dist/commonjs/mcp-server/tools/computeServicesUpdateServiceScaling.js.map +1 -0
- package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts +20 -0
- package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/addcatalogmodelrequest.js +24 -1
- package/dist/commonjs/models/components/addcatalogmodelrequest.js.map +1 -1
- package/dist/commonjs/models/components/computeautoscalerstate.d.ts +44 -0
- package/dist/commonjs/models/components/computeautoscalerstate.d.ts.map +1 -0
- package/dist/commonjs/models/components/computeautoscalerstate.js +104 -0
- package/dist/commonjs/models/components/computeautoscalerstate.js.map +1 -0
- package/dist/commonjs/models/components/computecontainercreate.d.ts +27 -0
- package/dist/commonjs/models/components/computecontainercreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/computecontainercreate.js +17 -0
- package/dist/commonjs/models/components/computecontainercreate.js.map +1 -1
- package/dist/commonjs/models/components/computeinstance.d.ts +12 -0
- package/dist/commonjs/models/components/computeinstance.d.ts.map +1 -1
- package/dist/commonjs/models/components/computeinstance.js +25 -0
- package/dist/commonjs/models/components/computeinstance.js.map +1 -1
- package/dist/commonjs/models/components/computejob.d.ts +16 -0
- package/dist/commonjs/models/components/computejob.d.ts.map +1 -1
- package/dist/commonjs/models/components/computejob.js +21 -1
- package/dist/commonjs/models/components/computejob.js.map +1 -1
- package/dist/commonjs/models/components/computeoffer.d.ts +5 -0
- package/dist/commonjs/models/components/computeoffer.d.ts.map +1 -1
- package/dist/commonjs/models/components/computeoffer.js +4 -0
- package/dist/commonjs/models/components/computeoffer.js.map +1 -1
- package/dist/commonjs/models/components/computequoterequest.d.ts +2 -0
- package/dist/commonjs/models/components/computequoterequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/computequoterequest.js +10 -0
- package/dist/commonjs/models/components/computequoterequest.js.map +1 -1
- package/dist/commonjs/models/components/computeregistrycredential.d.ts +22 -0
- package/dist/commonjs/models/components/computeregistrycredential.d.ts.map +1 -0
- package/dist/commonjs/models/components/computeregistrycredential.js +60 -0
- package/dist/commonjs/models/components/computeregistrycredential.js.map +1 -0
- package/dist/commonjs/models/components/computescalinginput.d.ts +2 -0
- package/dist/commonjs/models/components/computescalinginput.d.ts.map +1 -1
- package/dist/commonjs/models/components/computescalinginput.js +4 -0
- package/dist/commonjs/models/components/computescalinginput.js.map +1 -1
- package/dist/commonjs/models/components/computescalingreplicas.d.ts +44 -0
- package/dist/commonjs/models/components/computescalingreplicas.d.ts.map +1 -0
- package/dist/commonjs/models/components/computescalingreplicas.js +97 -0
- package/dist/commonjs/models/components/computescalingreplicas.js.map +1 -0
- package/dist/commonjs/models/components/computeservice.d.ts +31 -0
- package/dist/commonjs/models/components/computeservice.d.ts.map +1 -1
- package/dist/commonjs/models/components/computeservice.js +36 -1
- package/dist/commonjs/models/components/computeservice.js.map +1 -1
- package/dist/commonjs/models/components/computeservicescaling.d.ts +34 -0
- package/dist/commonjs/models/components/computeservicescaling.d.ts.map +1 -0
- package/dist/commonjs/models/components/computeservicescaling.js +90 -0
- package/dist/commonjs/models/components/computeservicescaling.js.map +1 -0
- package/dist/commonjs/models/components/computetenant.d.ts +2 -0
- package/dist/commonjs/models/components/computetenant.d.ts.map +1 -1
- package/dist/commonjs/models/components/computetenant.js +4 -0
- package/dist/commonjs/models/components/computetenant.js.map +1 -1
- package/dist/commonjs/models/components/computetenantupdate.d.ts +2 -0
- package/dist/commonjs/models/components/computetenantupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/computetenantupdate.js +4 -0
- package/dist/commonjs/models/components/computetenantupdate.js.map +1 -1
- package/dist/commonjs/models/components/computeusage.d.ts +5 -0
- package/dist/commonjs/models/components/computeusage.d.ts.map +1 -1
- package/dist/commonjs/models/components/computeusage.js +4 -0
- package/dist/commonjs/models/components/computeusage.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +4 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +4 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts +20 -0
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js +24 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/commonjs/models/operations/getmodel.d.ts +16 -0
- package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodel.js +13 -0
- package/dist/commonjs/models/operations/getmodel.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +16 -0
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +13 -0
- package/dist/commonjs/models/operations/listmodels.js.map +1 -1
- package/dist/commonjs/models/operations/listserviceinstances.d.ts +5 -0
- package/dist/commonjs/models/operations/listserviceinstances.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listserviceinstances.js +2 -0
- package/dist/commonjs/models/operations/listserviceinstances.js.map +1 -1
- package/dist/commonjs/models/operations/updateservicescaling.d.ts +60 -0
- package/dist/commonjs/models/operations/updateservicescaling.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updateservicescaling.js +134 -0
- package/dist/commonjs/models/operations/updateservicescaling.js.map +1 -0
- package/dist/commonjs/react-query/computeServicesListServiceInstances.core.d.ts +1 -0
- package/dist/commonjs/react-query/computeServicesListServiceInstances.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/computeServicesListServiceInstances.core.js +1 -0
- package/dist/commonjs/react-query/computeServicesListServiceInstances.core.js.map +1 -1
- package/dist/commonjs/react-query/computeServicesListServiceInstances.d.ts +2 -0
- package/dist/commonjs/react-query/computeServicesListServiceInstances.d.ts.map +1 -1
- package/dist/commonjs/react-query/computeServicesListServiceInstances.js.map +1 -1
- package/dist/commonjs/react-query/computeServicesUpdateServiceScaling.d.ts +25 -0
- package/dist/commonjs/react-query/computeServicesUpdateServiceScaling.d.ts.map +1 -0
- package/dist/commonjs/react-query/computeServicesUpdateServiceScaling.js +44 -0
- package/dist/commonjs/react-query/computeServicesUpdateServiceScaling.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/sdk/computeservices.d.ts +4 -0
- package/dist/commonjs/sdk/computeservices.d.ts.map +1 -1
- package/dist/commonjs/sdk/computeservices.js +7 -0
- package/dist/commonjs/sdk/computeservices.js.map +1 -1
- package/dist/esm/funcs/computeServicesListServiceInstances.js +1 -0
- package/dist/esm/funcs/computeServicesListServiceInstances.js.map +1 -1
- package/dist/esm/funcs/computeServicesUpdateServiceScaling.d.ts +16 -0
- package/dist/esm/funcs/computeServicesUpdateServiceScaling.d.ts.map +1 -0
- package/dist/esm/funcs/computeServicesUpdateServiceScaling.js +110 -0
- package/dist/esm/funcs/computeServicesUpdateServiceScaling.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/computeServicesUpdateServiceScaling.d.ts +8 -0
- package/dist/esm/mcp-server/tools/computeServicesUpdateServiceScaling.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/computeServicesUpdateServiceScaling.js +26 -0
- package/dist/esm/mcp-server/tools/computeServicesUpdateServiceScaling.js.map +1 -0
- package/dist/esm/models/components/addcatalogmodelrequest.d.ts +20 -0
- package/dist/esm/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/addcatalogmodelrequest.js +21 -0
- package/dist/esm/models/components/addcatalogmodelrequest.js.map +1 -1
- package/dist/esm/models/components/computeautoscalerstate.d.ts +44 -0
- package/dist/esm/models/components/computeautoscalerstate.d.ts.map +1 -0
- package/dist/esm/models/components/computeautoscalerstate.js +66 -0
- package/dist/esm/models/components/computeautoscalerstate.js.map +1 -0
- package/dist/esm/models/components/computecontainercreate.d.ts +27 -0
- package/dist/esm/models/components/computecontainercreate.d.ts.map +1 -1
- package/dist/esm/models/components/computecontainercreate.js +17 -0
- package/dist/esm/models/components/computecontainercreate.js.map +1 -1
- package/dist/esm/models/components/computeinstance.d.ts +12 -0
- package/dist/esm/models/components/computeinstance.d.ts.map +1 -1
- package/dist/esm/models/components/computeinstance.js +25 -0
- package/dist/esm/models/components/computeinstance.js.map +1 -1
- package/dist/esm/models/components/computejob.d.ts +16 -0
- package/dist/esm/models/components/computejob.d.ts.map +1 -1
- package/dist/esm/models/components/computejob.js +20 -0
- package/dist/esm/models/components/computejob.js.map +1 -1
- package/dist/esm/models/components/computeoffer.d.ts +5 -0
- package/dist/esm/models/components/computeoffer.d.ts.map +1 -1
- package/dist/esm/models/components/computeoffer.js +4 -0
- package/dist/esm/models/components/computeoffer.js.map +1 -1
- package/dist/esm/models/components/computequoterequest.d.ts +2 -0
- package/dist/esm/models/components/computequoterequest.d.ts.map +1 -1
- package/dist/esm/models/components/computequoterequest.js +10 -0
- package/dist/esm/models/components/computequoterequest.js.map +1 -1
- package/dist/esm/models/components/computeregistrycredential.d.ts +22 -0
- package/dist/esm/models/components/computeregistrycredential.d.ts.map +1 -0
- package/dist/esm/models/components/computeregistrycredential.js +22 -0
- package/dist/esm/models/components/computeregistrycredential.js.map +1 -0
- package/dist/esm/models/components/computescalinginput.d.ts +2 -0
- package/dist/esm/models/components/computescalinginput.d.ts.map +1 -1
- package/dist/esm/models/components/computescalinginput.js +4 -0
- package/dist/esm/models/components/computescalinginput.js.map +1 -1
- package/dist/esm/models/components/computescalingreplicas.d.ts +44 -0
- package/dist/esm/models/components/computescalingreplicas.d.ts.map +1 -0
- package/dist/esm/models/components/computescalingreplicas.js +59 -0
- package/dist/esm/models/components/computescalingreplicas.js.map +1 -0
- package/dist/esm/models/components/computeservice.d.ts +31 -0
- package/dist/esm/models/components/computeservice.d.ts.map +1 -1
- package/dist/esm/models/components/computeservice.js +35 -0
- package/dist/esm/models/components/computeservice.js.map +1 -1
- package/dist/esm/models/components/computeservicescaling.d.ts +34 -0
- package/dist/esm/models/components/computeservicescaling.d.ts.map +1 -0
- package/dist/esm/models/components/computeservicescaling.js +52 -0
- package/dist/esm/models/components/computeservicescaling.js.map +1 -0
- package/dist/esm/models/components/computetenant.d.ts +2 -0
- package/dist/esm/models/components/computetenant.d.ts.map +1 -1
- package/dist/esm/models/components/computetenant.js +4 -0
- package/dist/esm/models/components/computetenant.js.map +1 -1
- package/dist/esm/models/components/computetenantupdate.d.ts +2 -0
- package/dist/esm/models/components/computetenantupdate.d.ts.map +1 -1
- package/dist/esm/models/components/computetenantupdate.js +4 -0
- package/dist/esm/models/components/computetenantupdate.js.map +1 -1
- package/dist/esm/models/components/computeusage.d.ts +5 -0
- package/dist/esm/models/components/computeusage.d.ts.map +1 -1
- package/dist/esm/models/components/computeusage.js +4 -0
- package/dist/esm/models/components/computeusage.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +4 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +4 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts +20 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.js +21 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/esm/models/operations/getmodel.d.ts +16 -0
- package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodel.js +13 -0
- package/dist/esm/models/operations/getmodel.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +16 -0
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +13 -0
- package/dist/esm/models/operations/listmodels.js.map +1 -1
- package/dist/esm/models/operations/listserviceinstances.d.ts +5 -0
- package/dist/esm/models/operations/listserviceinstances.d.ts.map +1 -1
- package/dist/esm/models/operations/listserviceinstances.js +2 -0
- package/dist/esm/models/operations/listserviceinstances.js.map +1 -1
- package/dist/esm/models/operations/updateservicescaling.d.ts +60 -0
- package/dist/esm/models/operations/updateservicescaling.d.ts.map +1 -0
- package/dist/esm/models/operations/updateservicescaling.js +92 -0
- package/dist/esm/models/operations/updateservicescaling.js.map +1 -0
- package/dist/esm/react-query/computeServicesListServiceInstances.core.d.ts +1 -0
- package/dist/esm/react-query/computeServicesListServiceInstances.core.d.ts.map +1 -1
- package/dist/esm/react-query/computeServicesListServiceInstances.core.js +1 -0
- package/dist/esm/react-query/computeServicesListServiceInstances.core.js.map +1 -1
- package/dist/esm/react-query/computeServicesListServiceInstances.d.ts +2 -0
- package/dist/esm/react-query/computeServicesListServiceInstances.d.ts.map +1 -1
- package/dist/esm/react-query/computeServicesListServiceInstances.js.map +1 -1
- package/dist/esm/react-query/computeServicesUpdateServiceScaling.d.ts +25 -0
- package/dist/esm/react-query/computeServicesUpdateServiceScaling.d.ts.map +1 -0
- package/dist/esm/react-query/computeServicesUpdateServiceScaling.js +39 -0
- package/dist/esm/react-query/computeServicesUpdateServiceScaling.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/sdk/computeservices.d.ts +4 -0
- package/dist/esm/sdk/computeservices.d.ts.map +1 -1
- package/dist/esm/sdk/computeservices.js +7 -0
- package/dist/esm/sdk/computeservices.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/computeServicesListServiceInstances.ts +1 -0
- package/src/funcs/computeServicesUpdateServiceScaling.ts +204 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/computeServicesUpdateServiceScaling.ts +37 -0
- package/src/models/components/addcatalogmodelrequest.ts +52 -0
- package/src/models/components/computeautoscalerstate.ts +125 -0
- package/src/models/components/computecontainercreate.ts +48 -0
- package/src/models/components/computeinstance.ts +41 -0
- package/src/models/components/computejob.ts +32 -0
- package/src/models/components/computeoffer.ts +9 -0
- package/src/models/components/computequoterequest.ts +12 -0
- package/src/models/components/computeregistrycredential.ts +58 -0
- package/src/models/components/computescalinginput.ts +6 -0
- package/src/models/components/computescalingreplicas.ts +111 -0
- package/src/models/components/computeservice.ts +64 -0
- package/src/models/components/computeservicescaling.ts +116 -0
- package/src/models/components/computetenant.ts +6 -0
- package/src/models/components/computetenantupdate.ts +6 -0
- package/src/models/components/computeusage.ts +9 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/updatecatalogmodelrequest.ts +63 -0
- package/src/models/operations/getmodel.ts +28 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listmodels.ts +28 -0
- package/src/models/operations/listserviceinstances.ts +7 -0
- package/src/models/operations/updateservicescaling.ts +206 -0
- package/src/react-query/computeServicesListServiceInstances.core.ts +2 -0
- package/src/react-query/computeServicesListServiceInstances.ts +2 -0
- package/src/react-query/computeServicesUpdateServiceScaling.ts +106 -0
- package/src/react-query/index.ts +1 -0
- 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";
|