@meetkai/mka1 0.54.5 → 0.54.7
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 +302 -275
- package/bin/mcp-server.js +3527 -1999
- package/bin/mcp-server.js.map +51 -19
- package/dist/commonjs/funcs/computePricingGetPricing.d.ts +19 -0
- package/dist/commonjs/funcs/computePricingGetPricing.d.ts.map +1 -0
- package/dist/commonjs/funcs/computePricingGetPricing.js +135 -0
- package/dist/commonjs/funcs/computePricingGetPricing.js.map +1 -0
- package/dist/commonjs/funcs/computePricingPutPricing.d.ts +19 -0
- package/dist/commonjs/funcs/computePricingPutPricing.d.ts.map +1 -0
- package/dist/commonjs/funcs/computePricingPutPricing.js +143 -0
- package/dist/commonjs/funcs/computePricingPutPricing.js.map +1 -0
- package/dist/commonjs/funcs/computeVolumesCreateStandaloneVolume.d.ts +16 -0
- package/dist/commonjs/funcs/computeVolumesCreateStandaloneVolume.d.ts.map +1 -0
- package/dist/commonjs/funcs/computeVolumesCreateStandaloneVolume.js +128 -0
- package/dist/commonjs/funcs/computeVolumesCreateStandaloneVolume.js.map +1 -0
- package/dist/commonjs/funcs/computeVolumesDeleteStandaloneVolume.d.ts +19 -0
- package/dist/commonjs/funcs/computeVolumesDeleteStandaloneVolume.d.ts.map +1 -0
- package/dist/commonjs/funcs/computeVolumesDeleteStandaloneVolume.js +133 -0
- package/dist/commonjs/funcs/computeVolumesDeleteStandaloneVolume.js.map +1 -0
- package/dist/commonjs/funcs/computeVolumesGetStandaloneVolume.d.ts +16 -0
- package/dist/commonjs/funcs/computeVolumesGetStandaloneVolume.d.ts.map +1 -0
- package/dist/commonjs/funcs/computeVolumesGetStandaloneVolume.js +130 -0
- package/dist/commonjs/funcs/computeVolumesGetStandaloneVolume.js.map +1 -0
- package/dist/commonjs/funcs/computeVolumesListStandaloneVolumeAttachments.d.ts +16 -0
- package/dist/commonjs/funcs/computeVolumesListStandaloneVolumeAttachments.d.ts.map +1 -0
- package/dist/commonjs/funcs/computeVolumesListStandaloneVolumeAttachments.js +136 -0
- package/dist/commonjs/funcs/computeVolumesListStandaloneVolumeAttachments.js.map +1 -0
- package/dist/commonjs/funcs/computeVolumesListStandaloneVolumes.d.ts +16 -0
- package/dist/commonjs/funcs/computeVolumesListStandaloneVolumes.d.ts.map +1 -0
- package/dist/commonjs/funcs/computeVolumesListStandaloneVolumes.js +130 -0
- package/dist/commonjs/funcs/computeVolumesListStandaloneVolumes.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/encodings.d.ts +10 -9
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +29 -13
- package/dist/commonjs/lib/encodings.js.map +1 -1
- 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 +15 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/computePricingGetPricing.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/computePricingGetPricing.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/computePricingGetPricing.js +64 -0
- package/dist/commonjs/mcp-server/tools/computePricingGetPricing.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/computePricingPutPricing.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/computePricingPutPricing.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/computePricingPutPricing.js +64 -0
- package/dist/commonjs/mcp-server/tools/computePricingPutPricing.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesCreateStandaloneVolume.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesCreateStandaloneVolume.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesCreateStandaloneVolume.js +62 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesCreateStandaloneVolume.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesDeleteStandaloneVolume.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesDeleteStandaloneVolume.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesDeleteStandaloneVolume.js +64 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesDeleteStandaloneVolume.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesGetStandaloneVolume.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesGetStandaloneVolume.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesGetStandaloneVolume.js +62 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesGetStandaloneVolume.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesListStandaloneVolumeAttachments.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesListStandaloneVolumeAttachments.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesListStandaloneVolumeAttachments.js +62 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesListStandaloneVolumeAttachments.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesListStandaloneVolumes.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesListStandaloneVolumes.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesListStandaloneVolumes.js +62 -0
- package/dist/commonjs/mcp-server/tools/computeVolumesListStandaloneVolumes.js.map +1 -0
- package/dist/commonjs/models/components/computejob.d.ts +3 -0
- package/dist/commonjs/models/components/computejob.d.ts.map +1 -1
- package/dist/commonjs/models/components/computejob.js +3 -0
- package/dist/commonjs/models/components/computejob.js.map +1 -1
- package/dist/commonjs/models/components/computejobcreate.d.ts +3 -0
- package/dist/commonjs/models/components/computejobcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/computejobcreate.js +3 -0
- package/dist/commonjs/models/components/computejobcreate.js.map +1 -1
- package/dist/commonjs/models/components/computeoffer.d.ts +2 -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/computepricing.d.ts +24 -0
- package/dist/commonjs/models/components/computepricing.d.ts.map +1 -0
- package/dist/commonjs/models/components/computepricing.js +73 -0
- package/dist/commonjs/models/components/computepricing.js.map +1 -0
- package/dist/commonjs/models/components/computepricingupdate.d.ts +20 -0
- package/dist/commonjs/models/components/computepricingupdate.d.ts.map +1 -0
- package/dist/commonjs/models/components/computepricingupdate.js +67 -0
- package/dist/commonjs/models/components/computepricingupdate.js.map +1 -0
- package/dist/commonjs/models/components/computeresourcecreate.d.ts +3 -0
- package/dist/commonjs/models/components/computeresourcecreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/computeresourcecreate.js +3 -0
- package/dist/commonjs/models/components/computeresourcecreate.js.map +1 -1
- package/dist/commonjs/models/components/computeservice.d.ts +3 -0
- package/dist/commonjs/models/components/computeservice.d.ts.map +1 -1
- package/dist/commonjs/models/components/computeservice.js +3 -0
- package/dist/commonjs/models/components/computeservice.js.map +1 -1
- package/dist/commonjs/models/components/computestandalonevolume.d.ts +47 -0
- package/dist/commonjs/models/components/computestandalonevolume.d.ts.map +1 -0
- package/dist/commonjs/models/components/computestandalonevolume.js +117 -0
- package/dist/commonjs/models/components/computestandalonevolume.js.map +1 -0
- package/dist/commonjs/models/components/computestandalonevolumeattachment.d.ts +34 -0
- package/dist/commonjs/models/components/computestandalonevolumeattachment.d.ts.map +1 -0
- package/dist/commonjs/models/components/computestandalonevolumeattachment.js +94 -0
- package/dist/commonjs/models/components/computestandalonevolumeattachment.js.map +1 -0
- package/dist/commonjs/models/components/computestandalonevolumeattachmentlist.d.ts +22 -0
- package/dist/commonjs/models/components/computestandalonevolumeattachmentlist.d.ts.map +1 -0
- package/dist/commonjs/models/components/computestandalonevolumeattachmentlist.js +72 -0
- package/dist/commonjs/models/components/computestandalonevolumeattachmentlist.js.map +1 -0
- package/dist/commonjs/models/components/computestandalonevolumeattachmentstate.d.ts +16 -0
- package/dist/commonjs/models/components/computestandalonevolumeattachmentstate.d.ts.map +1 -0
- package/dist/commonjs/models/components/computestandalonevolumeattachmentstate.js +53 -0
- package/dist/commonjs/models/components/computestandalonevolumeattachmentstate.js.map +1 -0
- package/dist/commonjs/models/components/computestandalonevolumecreate.d.ts +17 -0
- package/dist/commonjs/models/components/computestandalonevolumecreate.d.ts.map +1 -0
- package/dist/commonjs/models/components/computestandalonevolumecreate.js +58 -0
- package/dist/commonjs/models/components/computestandalonevolumecreate.js.map +1 -0
- package/dist/commonjs/models/components/computestandalonevolumelist.d.ts +22 -0
- package/dist/commonjs/models/components/computestandalonevolumelist.d.ts.map +1 -0
- package/dist/commonjs/models/components/computestandalonevolumelist.js +72 -0
- package/dist/commonjs/models/components/computestandalonevolumelist.js.map +1 -0
- package/dist/commonjs/models/components/computestandalonevolumemount.d.ts +19 -0
- package/dist/commonjs/models/components/computestandalonevolumemount.d.ts.map +1 -0
- package/dist/commonjs/models/components/computestandalonevolumemount.js +71 -0
- package/dist/commonjs/models/components/computestandalonevolumemount.js.map +1 -0
- package/dist/commonjs/models/components/computestandalonevolumestate.d.ts +15 -0
- package/dist/commonjs/models/components/computestandalonevolumestate.d.ts.map +1 -0
- package/dist/commonjs/models/components/computestandalonevolumestate.js +52 -0
- package/dist/commonjs/models/components/computestandalonevolumestate.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 +76 -2
- package/dist/commonjs/models/components/computeusage.d.ts.map +1 -1
- package/dist/commonjs/models/components/computeusage.js +68 -6
- package/dist/commonjs/models/components/computeusage.js.map +1 -1
- package/dist/commonjs/models/components/computeusageresourcetype.d.ts +13 -0
- package/dist/commonjs/models/components/computeusageresourcetype.d.ts.map +1 -0
- package/dist/commonjs/models/components/computeusageresourcetype.js +50 -0
- package/dist/commonjs/models/components/computeusageresourcetype.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +11 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +11 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/responsescreaterequest.d.ts +5 -0
- package/dist/commonjs/models/components/responsescreaterequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/responsescreaterequest.js +4 -0
- package/dist/commonjs/models/components/responsescreaterequest.js.map +1 -1
- package/dist/commonjs/models/operations/createstandalonevolume.d.ts +34 -0
- package/dist/commonjs/models/operations/createstandalonevolume.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createstandalonevolume.js +94 -0
- package/dist/commonjs/models/operations/createstandalonevolume.js.map +1 -0
- package/dist/commonjs/models/operations/deletestandalonevolume.d.ts +32 -0
- package/dist/commonjs/models/operations/deletestandalonevolume.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletestandalonevolume.js +88 -0
- package/dist/commonjs/models/operations/deletestandalonevolume.js.map +1 -0
- package/dist/commonjs/models/operations/getcomputeusage.d.ts +7 -1
- package/dist/commonjs/models/operations/getcomputeusage.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcomputeusage.js +2 -2
- package/dist/commonjs/models/operations/getcomputeusage.js.map +1 -1
- package/dist/commonjs/models/operations/getpricing.d.ts +49 -0
- package/dist/commonjs/models/operations/getpricing.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getpricing.js +120 -0
- package/dist/commonjs/models/operations/getpricing.js.map +1 -0
- package/dist/commonjs/models/operations/getstandalonevolume.d.ts +32 -0
- package/dist/commonjs/models/operations/getstandalonevolume.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getstandalonevolume.js +88 -0
- package/dist/commonjs/models/operations/getstandalonevolume.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +7 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +7 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/liststandalonevolumeattachments.d.ts +38 -0
- package/dist/commonjs/models/operations/liststandalonevolumeattachments.d.ts.map +1 -0
- package/dist/commonjs/models/operations/liststandalonevolumeattachments.js +96 -0
- package/dist/commonjs/models/operations/liststandalonevolumeattachments.js.map +1 -0
- package/dist/commonjs/models/operations/liststandalonevolumes.d.ts +36 -0
- package/dist/commonjs/models/operations/liststandalonevolumes.d.ts.map +1 -0
- package/dist/commonjs/models/operations/liststandalonevolumes.js +92 -0
- package/dist/commonjs/models/operations/liststandalonevolumes.js.map +1 -0
- package/dist/commonjs/models/operations/putpricing.d.ts +58 -0
- package/dist/commonjs/models/operations/putpricing.d.ts.map +1 -0
- package/dist/commonjs/models/operations/putpricing.js +132 -0
- package/dist/commonjs/models/operations/putpricing.js.map +1 -0
- package/dist/commonjs/react-query/computePricingGetPricing.core.d.ts +14 -0
- package/dist/commonjs/react-query/computePricingGetPricing.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/computePricingGetPricing.core.js +36 -0
- package/dist/commonjs/react-query/computePricingGetPricing.core.js.map +1 -0
- package/dist/commonjs/react-query/computePricingGetPricing.d.ts +34 -0
- package/dist/commonjs/react-query/computePricingGetPricing.d.ts.map +1 -0
- package/dist/commonjs/react-query/computePricingGetPricing.js +65 -0
- package/dist/commonjs/react-query/computePricingGetPricing.js.map +1 -0
- package/dist/commonjs/react-query/computePricingPutPricing.d.ts +28 -0
- package/dist/commonjs/react-query/computePricingPutPricing.d.ts.map +1 -0
- package/dist/commonjs/react-query/computePricingPutPricing.js +47 -0
- package/dist/commonjs/react-query/computePricingPutPricing.js.map +1 -0
- package/dist/commonjs/react-query/computeUsageGetComputeUsage.core.d.ts +1 -1
- package/dist/commonjs/react-query/computeUsageGetComputeUsage.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/computeUsageGetComputeUsage.d.ts +2 -2
- package/dist/commonjs/react-query/computeUsageGetComputeUsage.d.ts.map +1 -1
- package/dist/commonjs/react-query/computeVolumesCreateStandaloneVolume.d.ts +25 -0
- package/dist/commonjs/react-query/computeVolumesCreateStandaloneVolume.d.ts.map +1 -0
- package/dist/commonjs/react-query/computeVolumesCreateStandaloneVolume.js +44 -0
- package/dist/commonjs/react-query/computeVolumesCreateStandaloneVolume.js.map +1 -0
- package/dist/commonjs/react-query/computeVolumesDeleteStandaloneVolume.d.ts +28 -0
- package/dist/commonjs/react-query/computeVolumesDeleteStandaloneVolume.d.ts.map +1 -0
- package/dist/commonjs/react-query/computeVolumesDeleteStandaloneVolume.js +47 -0
- package/dist/commonjs/react-query/computeVolumesDeleteStandaloneVolume.js.map +1 -0
- package/dist/commonjs/react-query/computeVolumesGetStandaloneVolume.core.d.ts +14 -0
- package/dist/commonjs/react-query/computeVolumesGetStandaloneVolume.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/computeVolumesGetStandaloneVolume.core.js +42 -0
- package/dist/commonjs/react-query/computeVolumesGetStandaloneVolume.core.js.map +1 -0
- package/dist/commonjs/react-query/computeVolumesGetStandaloneVolume.d.ts +29 -0
- package/dist/commonjs/react-query/computeVolumesGetStandaloneVolume.d.ts.map +1 -0
- package/dist/commonjs/react-query/computeVolumesGetStandaloneVolume.js +59 -0
- package/dist/commonjs/react-query/computeVolumesGetStandaloneVolume.js.map +1 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumeAttachments.core.d.ts +18 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumeAttachments.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumeAttachments.core.js +45 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumeAttachments.core.js.map +1 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumeAttachments.d.ts +39 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumeAttachments.d.ts.map +1 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumeAttachments.js +63 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumeAttachments.js.map +1 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumes.core.d.ts +18 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumes.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumes.core.js +44 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumes.core.js.map +1 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumes.d.ts +37 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumes.d.ts.map +1 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumes.js +59 -0
- package/dist/commonjs/react-query/computeVolumesListStandaloneVolumes.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +7 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +7 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/sdk/computepricing.d.ts +19 -0
- package/dist/commonjs/sdk/computepricing.d.ts.map +1 -0
- package/dist/commonjs/sdk/computepricing.js +32 -0
- package/dist/commonjs/sdk/computepricing.js.map +1 -0
- package/dist/commonjs/sdk/computevolumes.d.ts +28 -0
- package/dist/commonjs/sdk/computevolumes.d.ts.map +1 -0
- package/dist/commonjs/sdk/computevolumes.js +50 -0
- package/dist/commonjs/sdk/computevolumes.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +6 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +8 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/computePricingGetPricing.d.ts +19 -0
- package/dist/esm/funcs/computePricingGetPricing.d.ts.map +1 -0
- package/dist/esm/funcs/computePricingGetPricing.js +99 -0
- package/dist/esm/funcs/computePricingGetPricing.js.map +1 -0
- package/dist/esm/funcs/computePricingPutPricing.d.ts +19 -0
- package/dist/esm/funcs/computePricingPutPricing.d.ts.map +1 -0
- package/dist/esm/funcs/computePricingPutPricing.js +107 -0
- package/dist/esm/funcs/computePricingPutPricing.js.map +1 -0
- package/dist/esm/funcs/computeVolumesCreateStandaloneVolume.d.ts +16 -0
- package/dist/esm/funcs/computeVolumesCreateStandaloneVolume.d.ts.map +1 -0
- package/dist/esm/funcs/computeVolumesCreateStandaloneVolume.js +92 -0
- package/dist/esm/funcs/computeVolumesCreateStandaloneVolume.js.map +1 -0
- package/dist/esm/funcs/computeVolumesDeleteStandaloneVolume.d.ts +19 -0
- package/dist/esm/funcs/computeVolumesDeleteStandaloneVolume.d.ts.map +1 -0
- package/dist/esm/funcs/computeVolumesDeleteStandaloneVolume.js +97 -0
- package/dist/esm/funcs/computeVolumesDeleteStandaloneVolume.js.map +1 -0
- package/dist/esm/funcs/computeVolumesGetStandaloneVolume.d.ts +16 -0
- package/dist/esm/funcs/computeVolumesGetStandaloneVolume.d.ts.map +1 -0
- package/dist/esm/funcs/computeVolumesGetStandaloneVolume.js +94 -0
- package/dist/esm/funcs/computeVolumesGetStandaloneVolume.js.map +1 -0
- package/dist/esm/funcs/computeVolumesListStandaloneVolumeAttachments.d.ts +16 -0
- package/dist/esm/funcs/computeVolumesListStandaloneVolumeAttachments.d.ts.map +1 -0
- package/dist/esm/funcs/computeVolumesListStandaloneVolumeAttachments.js +100 -0
- package/dist/esm/funcs/computeVolumesListStandaloneVolumeAttachments.js.map +1 -0
- package/dist/esm/funcs/computeVolumesListStandaloneVolumes.d.ts +16 -0
- package/dist/esm/funcs/computeVolumesListStandaloneVolumes.d.ts.map +1 -0
- package/dist/esm/funcs/computeVolumesListStandaloneVolumes.js +94 -0
- package/dist/esm/funcs/computeVolumesListStandaloneVolumes.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/encodings.d.ts +10 -9
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +29 -13
- package/dist/esm/lib/encodings.js.map +1 -1
- 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 +15 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/computePricingGetPricing.d.ts +8 -0
- package/dist/esm/mcp-server/tools/computePricingGetPricing.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/computePricingGetPricing.js +28 -0
- package/dist/esm/mcp-server/tools/computePricingGetPricing.js.map +1 -0
- package/dist/esm/mcp-server/tools/computePricingPutPricing.d.ts +8 -0
- package/dist/esm/mcp-server/tools/computePricingPutPricing.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/computePricingPutPricing.js +28 -0
- package/dist/esm/mcp-server/tools/computePricingPutPricing.js.map +1 -0
- package/dist/esm/mcp-server/tools/computeVolumesCreateStandaloneVolume.d.ts +8 -0
- package/dist/esm/mcp-server/tools/computeVolumesCreateStandaloneVolume.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/computeVolumesCreateStandaloneVolume.js +26 -0
- package/dist/esm/mcp-server/tools/computeVolumesCreateStandaloneVolume.js.map +1 -0
- package/dist/esm/mcp-server/tools/computeVolumesDeleteStandaloneVolume.d.ts +8 -0
- package/dist/esm/mcp-server/tools/computeVolumesDeleteStandaloneVolume.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/computeVolumesDeleteStandaloneVolume.js +28 -0
- package/dist/esm/mcp-server/tools/computeVolumesDeleteStandaloneVolume.js.map +1 -0
- package/dist/esm/mcp-server/tools/computeVolumesGetStandaloneVolume.d.ts +8 -0
- package/dist/esm/mcp-server/tools/computeVolumesGetStandaloneVolume.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/computeVolumesGetStandaloneVolume.js +26 -0
- package/dist/esm/mcp-server/tools/computeVolumesGetStandaloneVolume.js.map +1 -0
- package/dist/esm/mcp-server/tools/computeVolumesListStandaloneVolumeAttachments.d.ts +8 -0
- package/dist/esm/mcp-server/tools/computeVolumesListStandaloneVolumeAttachments.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/computeVolumesListStandaloneVolumeAttachments.js +26 -0
- package/dist/esm/mcp-server/tools/computeVolumesListStandaloneVolumeAttachments.js.map +1 -0
- package/dist/esm/mcp-server/tools/computeVolumesListStandaloneVolumes.d.ts +8 -0
- package/dist/esm/mcp-server/tools/computeVolumesListStandaloneVolumes.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/computeVolumesListStandaloneVolumes.js +26 -0
- package/dist/esm/mcp-server/tools/computeVolumesListStandaloneVolumes.js.map +1 -0
- package/dist/esm/models/components/computejob.d.ts +3 -0
- package/dist/esm/models/components/computejob.d.ts.map +1 -1
- package/dist/esm/models/components/computejob.js +3 -0
- package/dist/esm/models/components/computejob.js.map +1 -1
- package/dist/esm/models/components/computejobcreate.d.ts +3 -0
- package/dist/esm/models/components/computejobcreate.d.ts.map +1 -1
- package/dist/esm/models/components/computejobcreate.js +3 -0
- package/dist/esm/models/components/computejobcreate.js.map +1 -1
- package/dist/esm/models/components/computeoffer.d.ts +2 -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/computepricing.d.ts +24 -0
- package/dist/esm/models/components/computepricing.d.ts.map +1 -0
- package/dist/esm/models/components/computepricing.js +35 -0
- package/dist/esm/models/components/computepricing.js.map +1 -0
- package/dist/esm/models/components/computepricingupdate.d.ts +20 -0
- package/dist/esm/models/components/computepricingupdate.d.ts.map +1 -0
- package/dist/esm/models/components/computepricingupdate.js +29 -0
- package/dist/esm/models/components/computepricingupdate.js.map +1 -0
- package/dist/esm/models/components/computeresourcecreate.d.ts +3 -0
- package/dist/esm/models/components/computeresourcecreate.d.ts.map +1 -1
- package/dist/esm/models/components/computeresourcecreate.js +3 -0
- package/dist/esm/models/components/computeresourcecreate.js.map +1 -1
- package/dist/esm/models/components/computeservice.d.ts +3 -0
- package/dist/esm/models/components/computeservice.d.ts.map +1 -1
- package/dist/esm/models/components/computeservice.js +3 -0
- package/dist/esm/models/components/computeservice.js.map +1 -1
- package/dist/esm/models/components/computestandalonevolume.d.ts +47 -0
- package/dist/esm/models/components/computestandalonevolume.d.ts.map +1 -0
- package/dist/esm/models/components/computestandalonevolume.js +79 -0
- package/dist/esm/models/components/computestandalonevolume.js.map +1 -0
- package/dist/esm/models/components/computestandalonevolumeattachment.d.ts +34 -0
- package/dist/esm/models/components/computestandalonevolumeattachment.d.ts.map +1 -0
- package/dist/esm/models/components/computestandalonevolumeattachment.js +56 -0
- package/dist/esm/models/components/computestandalonevolumeattachment.js.map +1 -0
- package/dist/esm/models/components/computestandalonevolumeattachmentlist.d.ts +22 -0
- package/dist/esm/models/components/computestandalonevolumeattachmentlist.d.ts.map +1 -0
- package/dist/esm/models/components/computestandalonevolumeattachmentlist.js +34 -0
- package/dist/esm/models/components/computestandalonevolumeattachmentlist.js.map +1 -0
- package/dist/esm/models/components/computestandalonevolumeattachmentstate.d.ts +16 -0
- package/dist/esm/models/components/computestandalonevolumeattachmentstate.d.ts.map +1 -0
- package/dist/esm/models/components/computestandalonevolumeattachmentstate.js +17 -0
- package/dist/esm/models/components/computestandalonevolumeattachmentstate.js.map +1 -0
- package/dist/esm/models/components/computestandalonevolumecreate.d.ts +17 -0
- package/dist/esm/models/components/computestandalonevolumecreate.d.ts.map +1 -0
- package/dist/esm/models/components/computestandalonevolumecreate.js +20 -0
- package/dist/esm/models/components/computestandalonevolumecreate.js.map +1 -0
- package/dist/esm/models/components/computestandalonevolumelist.d.ts +22 -0
- package/dist/esm/models/components/computestandalonevolumelist.d.ts.map +1 -0
- package/dist/esm/models/components/computestandalonevolumelist.js +34 -0
- package/dist/esm/models/components/computestandalonevolumelist.js.map +1 -0
- package/dist/esm/models/components/computestandalonevolumemount.d.ts +19 -0
- package/dist/esm/models/components/computestandalonevolumemount.d.ts.map +1 -0
- package/dist/esm/models/components/computestandalonevolumemount.js +33 -0
- package/dist/esm/models/components/computestandalonevolumemount.js.map +1 -0
- package/dist/esm/models/components/computestandalonevolumestate.d.ts +15 -0
- package/dist/esm/models/components/computestandalonevolumestate.d.ts.map +1 -0
- package/dist/esm/models/components/computestandalonevolumestate.js +16 -0
- package/dist/esm/models/components/computestandalonevolumestate.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 +76 -2
- package/dist/esm/models/components/computeusage.d.ts.map +1 -1
- package/dist/esm/models/components/computeusage.js +67 -5
- package/dist/esm/models/components/computeusage.js.map +1 -1
- package/dist/esm/models/components/computeusageresourcetype.d.ts +13 -0
- package/dist/esm/models/components/computeusageresourcetype.d.ts.map +1 -0
- package/dist/esm/models/components/computeusageresourcetype.js +14 -0
- package/dist/esm/models/components/computeusageresourcetype.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +11 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +11 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/responsescreaterequest.d.ts +5 -0
- package/dist/esm/models/components/responsescreaterequest.d.ts.map +1 -1
- package/dist/esm/models/components/responsescreaterequest.js +4 -0
- package/dist/esm/models/components/responsescreaterequest.js.map +1 -1
- package/dist/esm/models/operations/createstandalonevolume.d.ts +34 -0
- package/dist/esm/models/operations/createstandalonevolume.d.ts.map +1 -0
- package/dist/esm/models/operations/createstandalonevolume.js +54 -0
- package/dist/esm/models/operations/createstandalonevolume.js.map +1 -0
- package/dist/esm/models/operations/deletestandalonevolume.d.ts +32 -0
- package/dist/esm/models/operations/deletestandalonevolume.d.ts.map +1 -0
- package/dist/esm/models/operations/deletestandalonevolume.js +48 -0
- package/dist/esm/models/operations/deletestandalonevolume.js.map +1 -0
- package/dist/esm/models/operations/getcomputeusage.d.ts +7 -1
- package/dist/esm/models/operations/getcomputeusage.d.ts.map +1 -1
- package/dist/esm/models/operations/getcomputeusage.js +2 -2
- package/dist/esm/models/operations/getcomputeusage.js.map +1 -1
- package/dist/esm/models/operations/getpricing.d.ts +49 -0
- package/dist/esm/models/operations/getpricing.d.ts.map +1 -0
- package/dist/esm/models/operations/getpricing.js +78 -0
- package/dist/esm/models/operations/getpricing.js.map +1 -0
- package/dist/esm/models/operations/getstandalonevolume.d.ts +32 -0
- package/dist/esm/models/operations/getstandalonevolume.d.ts.map +1 -0
- package/dist/esm/models/operations/getstandalonevolume.js +48 -0
- package/dist/esm/models/operations/getstandalonevolume.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +7 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +7 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/liststandalonevolumeattachments.d.ts +38 -0
- package/dist/esm/models/operations/liststandalonevolumeattachments.d.ts.map +1 -0
- package/dist/esm/models/operations/liststandalonevolumeattachments.js +56 -0
- package/dist/esm/models/operations/liststandalonevolumeattachments.js.map +1 -0
- package/dist/esm/models/operations/liststandalonevolumes.d.ts +36 -0
- package/dist/esm/models/operations/liststandalonevolumes.d.ts.map +1 -0
- package/dist/esm/models/operations/liststandalonevolumes.js +52 -0
- package/dist/esm/models/operations/liststandalonevolumes.js.map +1 -0
- package/dist/esm/models/operations/putpricing.d.ts +58 -0
- package/dist/esm/models/operations/putpricing.d.ts.map +1 -0
- package/dist/esm/models/operations/putpricing.js +90 -0
- package/dist/esm/models/operations/putpricing.js.map +1 -0
- package/dist/esm/react-query/computePricingGetPricing.core.d.ts +14 -0
- package/dist/esm/react-query/computePricingGetPricing.core.d.ts.map +1 -0
- package/dist/esm/react-query/computePricingGetPricing.core.js +31 -0
- package/dist/esm/react-query/computePricingGetPricing.core.js.map +1 -0
- package/dist/esm/react-query/computePricingGetPricing.d.ts +34 -0
- package/dist/esm/react-query/computePricingGetPricing.d.ts.map +1 -0
- package/dist/esm/react-query/computePricingGetPricing.js +55 -0
- package/dist/esm/react-query/computePricingGetPricing.js.map +1 -0
- package/dist/esm/react-query/computePricingPutPricing.d.ts +28 -0
- package/dist/esm/react-query/computePricingPutPricing.d.ts.map +1 -0
- package/dist/esm/react-query/computePricingPutPricing.js +42 -0
- package/dist/esm/react-query/computePricingPutPricing.js.map +1 -0
- package/dist/esm/react-query/computeUsageGetComputeUsage.core.d.ts +1 -1
- package/dist/esm/react-query/computeUsageGetComputeUsage.core.d.ts.map +1 -1
- package/dist/esm/react-query/computeUsageGetComputeUsage.d.ts +2 -2
- package/dist/esm/react-query/computeUsageGetComputeUsage.d.ts.map +1 -1
- package/dist/esm/react-query/computeVolumesCreateStandaloneVolume.d.ts +25 -0
- package/dist/esm/react-query/computeVolumesCreateStandaloneVolume.d.ts.map +1 -0
- package/dist/esm/react-query/computeVolumesCreateStandaloneVolume.js +39 -0
- package/dist/esm/react-query/computeVolumesCreateStandaloneVolume.js.map +1 -0
- package/dist/esm/react-query/computeVolumesDeleteStandaloneVolume.d.ts +28 -0
- package/dist/esm/react-query/computeVolumesDeleteStandaloneVolume.d.ts.map +1 -0
- package/dist/esm/react-query/computeVolumesDeleteStandaloneVolume.js +42 -0
- package/dist/esm/react-query/computeVolumesDeleteStandaloneVolume.js.map +1 -0
- package/dist/esm/react-query/computeVolumesGetStandaloneVolume.core.d.ts +14 -0
- package/dist/esm/react-query/computeVolumesGetStandaloneVolume.core.d.ts.map +1 -0
- package/dist/esm/react-query/computeVolumesGetStandaloneVolume.core.js +37 -0
- package/dist/esm/react-query/computeVolumesGetStandaloneVolume.core.js.map +1 -0
- package/dist/esm/react-query/computeVolumesGetStandaloneVolume.d.ts +29 -0
- package/dist/esm/react-query/computeVolumesGetStandaloneVolume.d.ts.map +1 -0
- package/dist/esm/react-query/computeVolumesGetStandaloneVolume.js +49 -0
- package/dist/esm/react-query/computeVolumesGetStandaloneVolume.js.map +1 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumeAttachments.core.d.ts +18 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumeAttachments.core.d.ts.map +1 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumeAttachments.core.js +40 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumeAttachments.core.js.map +1 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumeAttachments.d.ts +39 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumeAttachments.d.ts.map +1 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumeAttachments.js +53 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumeAttachments.js.map +1 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumes.core.d.ts +18 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumes.core.d.ts.map +1 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumes.core.js +39 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumes.core.js.map +1 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumes.d.ts +37 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumes.d.ts.map +1 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumes.js +49 -0
- package/dist/esm/react-query/computeVolumesListStandaloneVolumes.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +7 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +7 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/sdk/computepricing.d.ts +19 -0
- package/dist/esm/sdk/computepricing.d.ts.map +1 -0
- package/dist/esm/sdk/computepricing.js +28 -0
- package/dist/esm/sdk/computepricing.js.map +1 -0
- package/dist/esm/sdk/computevolumes.d.ts +28 -0
- package/dist/esm/sdk/computevolumes.d.ts.map +1 -0
- package/dist/esm/sdk/computevolumes.js +46 -0
- package/dist/esm/sdk/computevolumes.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +6 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +8 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/computePricingGetPricing.ts +188 -0
- package/src/funcs/computePricingPutPricing.ts +200 -0
- package/src/funcs/computeVolumesCreateStandaloneVolume.ts +185 -0
- package/src/funcs/computeVolumesDeleteStandaloneVolume.ts +186 -0
- package/src/funcs/computeVolumesGetStandaloneVolume.ts +183 -0
- package/src/funcs/computeVolumesListStandaloneVolumeAttachments.ts +200 -0
- package/src/funcs/computeVolumesListStandaloneVolumes.ts +184 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +58 -23
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +15 -1
- package/src/mcp-server/tools/computePricingGetPricing.ts +37 -0
- package/src/mcp-server/tools/computePricingPutPricing.ts +37 -0
- package/src/mcp-server/tools/computeVolumesCreateStandaloneVolume.ts +37 -0
- package/src/mcp-server/tools/computeVolumesDeleteStandaloneVolume.ts +39 -0
- package/src/mcp-server/tools/computeVolumesGetStandaloneVolume.ts +37 -0
- package/src/mcp-server/tools/computeVolumesListStandaloneVolumeAttachments.ts +38 -0
- package/src/mcp-server/tools/computeVolumesListStandaloneVolumes.ts +37 -0
- package/src/models/components/computejob.ts +10 -0
- package/src/models/components/computejobcreate.ts +10 -0
- package/src/models/components/computeoffer.ts +6 -0
- package/src/models/components/computepricing.ts +71 -0
- package/src/models/components/computepricingupdate.ts +63 -0
- package/src/models/components/computeresourcecreate.ts +10 -0
- package/src/models/components/computeservice.ts +10 -0
- package/src/models/components/computestandalonevolume.ts +153 -0
- package/src/models/components/computestandalonevolumeattachment.ts +118 -0
- package/src/models/components/computestandalonevolumeattachmentlist.ts +77 -0
- package/src/models/components/computestandalonevolumeattachmentstate.ts +28 -0
- package/src/models/components/computestandalonevolumecreate.ts +53 -0
- package/src/models/components/computestandalonevolumelist.ts +76 -0
- package/src/models/components/computestandalonevolumemount.ts +68 -0
- package/src/models/components/computestandalonevolumestate.ts +26 -0
- package/src/models/components/computetenant.ts +6 -0
- package/src/models/components/computetenantupdate.ts +6 -0
- package/src/models/components/computeusage.ts +132 -9
- package/src/models/components/computeusageresourcetype.ts +24 -0
- package/src/models/components/index.ts +11 -0
- package/src/models/components/responsescreaterequest.ts +9 -0
- package/src/models/operations/createstandalonevolume.ts +128 -0
- package/src/models/operations/deletestandalonevolume.ts +117 -0
- package/src/models/operations/getcomputeusage.ts +9 -3
- package/src/models/operations/getpricing.ts +174 -0
- package/src/models/operations/getstandalonevolume.ts +115 -0
- package/src/models/operations/index.ts +7 -0
- package/src/models/operations/liststandalonevolumeattachments.ts +140 -0
- package/src/models/operations/liststandalonevolumes.ts +125 -0
- package/src/models/operations/putpricing.ts +195 -0
- package/src/react-query/computePricingGetPricing.core.ts +74 -0
- package/src/react-query/computePricingGetPricing.ts +143 -0
- package/src/react-query/computePricingPutPricing.ts +109 -0
- package/src/react-query/computeUsageGetComputeUsage.core.ts +1 -1
- package/src/react-query/computeUsageGetComputeUsage.ts +2 -2
- package/src/react-query/computeVolumesCreateStandaloneVolume.ts +106 -0
- package/src/react-query/computeVolumesDeleteStandaloneVolume.ts +109 -0
- package/src/react-query/computeVolumesGetStandaloneVolume.core.ts +82 -0
- package/src/react-query/computeVolumesGetStandaloneVolume.ts +140 -0
- package/src/react-query/computeVolumesListStandaloneVolumeAttachments.core.ts +95 -0
- package/src/react-query/computeVolumesListStandaloneVolumeAttachments.ts +162 -0
- package/src/react-query/computeVolumesListStandaloneVolumes.core.ts +89 -0
- package/src/react-query/computeVolumesListStandaloneVolumes.ts +153 -0
- package/src/react-query/index.ts +7 -0
- package/src/sdk/computepricing.ts +45 -0
- package/src/sdk/computevolumes.ts +87 -0
- package/src/sdk/sdk.ts +12 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { computePricingGetPricing } from "../../funcs/computePricingGetPricing.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetPricingRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$computePricingGetPricing: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "compute-pricing-get-pricing",
|
|
15
|
+
description: `Get the latest committed storage price
|
|
16
|
+
|
|
17
|
+
The latest version may be scheduled for the next UTC hour. Before the first version is written this route returns pricing_not_configured.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await computePricingGetPricing(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value.result;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { computePricingPutPricing } from "../../funcs/computePricingPutPricing.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.PutPricingRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$computePricingPutPricing: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "compute-pricing-put-pricing",
|
|
15
|
+
description: `Create an immutable storage-price version
|
|
16
|
+
|
|
17
|
+
Cluster administrators only. If-Match: 0 performs the explicit bootstrap. Every version activates at the next UTC-hour boundary; equivalent idempotent replay precedes version comparison.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await computePricingPutPricing(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value.result;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { computeVolumesCreateStandaloneVolume } from "../../funcs/computeVolumesCreateStandaloneVolume.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.CreateStandaloneVolumeRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$computeVolumesCreateStandaloneVolume: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "compute-volumes-create-standalone-volume",
|
|
17
|
+
description: `Create a standalone shared volume`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await computeVolumesCreateStandaloneVolume(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { computeVolumesDeleteStandaloneVolume } from "../../funcs/computeVolumesDeleteStandaloneVolume.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.DeleteStandaloneVolumeRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$computeVolumesDeleteStandaloneVolume: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "compute-volumes-delete-standalone-volume",
|
|
17
|
+
description: `Permanently delete a standalone volume
|
|
18
|
+
|
|
19
|
+
Deletion bypasses tenant enablement and budget gates, but is refused while non-terminal attachments exist.`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] = await computeVolumesDeleteStandaloneVolume(
|
|
23
|
+
client,
|
|
24
|
+
args.request,
|
|
25
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
26
|
+
).$inspect();
|
|
27
|
+
|
|
28
|
+
if (!result.ok) {
|
|
29
|
+
return {
|
|
30
|
+
content: [{ type: "text", text: result.error.message }],
|
|
31
|
+
isError: true,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const value = result.value;
|
|
36
|
+
|
|
37
|
+
return formatResult(value, apiCall);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { computeVolumesGetStandaloneVolume } from "../../funcs/computeVolumesGetStandaloneVolume.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetStandaloneVolumeRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$computeVolumesGetStandaloneVolume: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "compute-volumes-get-standalone-volume",
|
|
17
|
+
description: `Get a standalone volume`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await computeVolumesGetStandaloneVolume(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { computeVolumesListStandaloneVolumeAttachments } from "../../funcs/computeVolumesListStandaloneVolumeAttachments.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListStandaloneVolumeAttachmentsRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$computeVolumesListStandaloneVolumeAttachments: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "compute-volumes-list-standalone-volume-attachments",
|
|
17
|
+
description: `List volume attachments`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] =
|
|
21
|
+
await computeVolumesListStandaloneVolumeAttachments(
|
|
22
|
+
client,
|
|
23
|
+
args.request,
|
|
24
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
25
|
+
).$inspect();
|
|
26
|
+
|
|
27
|
+
if (!result.ok) {
|
|
28
|
+
return {
|
|
29
|
+
content: [{ type: "text", text: result.error.message }],
|
|
30
|
+
isError: true,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const value = result.value;
|
|
35
|
+
|
|
36
|
+
return formatResult(value, apiCall);
|
|
37
|
+
},
|
|
38
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { computeVolumesListStandaloneVolumes } from "../../funcs/computeVolumesListStandaloneVolumes.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListStandaloneVolumesRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$computeVolumesListStandaloneVolumes: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "compute-volumes-list-standalone-volumes",
|
|
17
|
+
description: `List organization volumes`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await computeVolumesListStandaloneVolumes(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -48,6 +48,12 @@ import {
|
|
|
48
48
|
ComputeSSH$Outbound,
|
|
49
49
|
ComputeSSH$outboundSchema,
|
|
50
50
|
} from "./computessh.js";
|
|
51
|
+
import {
|
|
52
|
+
ComputeStandaloneVolumeMount,
|
|
53
|
+
ComputeStandaloneVolumeMount$inboundSchema,
|
|
54
|
+
ComputeStandaloneVolumeMount$Outbound,
|
|
55
|
+
ComputeStandaloneVolumeMount$outboundSchema,
|
|
56
|
+
} from "./computestandalonevolumemount.js";
|
|
51
57
|
|
|
52
58
|
export type ComputeJob = {
|
|
53
59
|
accruedUsd: number;
|
|
@@ -69,6 +75,7 @@ export type ComputeJob = {
|
|
|
69
75
|
startedAt: Date | null;
|
|
70
76
|
state: ComputeResourceState;
|
|
71
77
|
terminalAt: Date | null;
|
|
78
|
+
volumes?: Array<ComputeStandaloneVolumeMount> | undefined;
|
|
72
79
|
exitCode?: number | undefined;
|
|
73
80
|
};
|
|
74
81
|
|
|
@@ -100,6 +107,7 @@ export const ComputeJob$inboundSchema: z.ZodType<
|
|
|
100
107
|
terminal_at: z.nullable(
|
|
101
108
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
102
109
|
),
|
|
110
|
+
volumes: z.array(ComputeStandaloneVolumeMount$inboundSchema).optional(),
|
|
103
111
|
exit_code: z.number().int().optional(),
|
|
104
112
|
}).transform((v) => {
|
|
105
113
|
return remap$(v, {
|
|
@@ -130,6 +138,7 @@ export type ComputeJob$Outbound = {
|
|
|
130
138
|
started_at: string | null;
|
|
131
139
|
state: string;
|
|
132
140
|
terminal_at: string | null;
|
|
141
|
+
volumes?: Array<ComputeStandaloneVolumeMount$Outbound> | undefined;
|
|
133
142
|
exit_code?: number | undefined;
|
|
134
143
|
};
|
|
135
144
|
|
|
@@ -155,6 +164,7 @@ export const ComputeJob$outboundSchema: z.ZodType<
|
|
|
155
164
|
startedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
156
165
|
state: ComputeResourceState$outboundSchema,
|
|
157
166
|
terminalAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
167
|
+
volumes: z.array(ComputeStandaloneVolumeMount$outboundSchema).optional(),
|
|
158
168
|
exitCode: z.number().int().optional(),
|
|
159
169
|
}).transform((v) => {
|
|
160
170
|
return remap$(v, {
|
|
@@ -36,6 +36,12 @@ import {
|
|
|
36
36
|
ComputeRequest$Outbound,
|
|
37
37
|
ComputeRequest$outboundSchema,
|
|
38
38
|
} from "./computerequest.js";
|
|
39
|
+
import {
|
|
40
|
+
ComputeStandaloneVolumeMount,
|
|
41
|
+
ComputeStandaloneVolumeMount$inboundSchema,
|
|
42
|
+
ComputeStandaloneVolumeMount$Outbound,
|
|
43
|
+
ComputeStandaloneVolumeMount$outboundSchema,
|
|
44
|
+
} from "./computestandalonevolumemount.js";
|
|
39
45
|
|
|
40
46
|
/**
|
|
41
47
|
* Create body for a job. Jobs accept the same fields as services except the service block.
|
|
@@ -47,6 +53,7 @@ export type ComputeJobCreate = {
|
|
|
47
53
|
limits?: ComputeLimits | undefined;
|
|
48
54
|
name?: string | undefined;
|
|
49
55
|
placement?: ComputePlacement | undefined;
|
|
56
|
+
volumes?: Array<ComputeStandaloneVolumeMount> | undefined;
|
|
50
57
|
};
|
|
51
58
|
|
|
52
59
|
/** @internal */
|
|
@@ -61,6 +68,7 @@ export const ComputeJobCreate$inboundSchema: z.ZodType<
|
|
|
61
68
|
limits: ComputeLimits$inboundSchema.optional(),
|
|
62
69
|
name: z.string().optional(),
|
|
63
70
|
placement: ComputePlacement$inboundSchema.optional(),
|
|
71
|
+
volumes: z.array(ComputeStandaloneVolumeMount$inboundSchema).optional(),
|
|
64
72
|
});
|
|
65
73
|
/** @internal */
|
|
66
74
|
export type ComputeJobCreate$Outbound = {
|
|
@@ -70,6 +78,7 @@ export type ComputeJobCreate$Outbound = {
|
|
|
70
78
|
limits?: ComputeLimits$Outbound | undefined;
|
|
71
79
|
name?: string | undefined;
|
|
72
80
|
placement?: ComputePlacement$Outbound | undefined;
|
|
81
|
+
volumes?: Array<ComputeStandaloneVolumeMount$Outbound> | undefined;
|
|
73
82
|
};
|
|
74
83
|
|
|
75
84
|
/** @internal */
|
|
@@ -84,6 +93,7 @@ export const ComputeJobCreate$outboundSchema: z.ZodType<
|
|
|
84
93
|
limits: ComputeLimits$outboundSchema.optional(),
|
|
85
94
|
name: z.string().optional(),
|
|
86
95
|
placement: ComputePlacement$outboundSchema.optional(),
|
|
96
|
+
volumes: z.array(ComputeStandaloneVolumeMount$outboundSchema).optional(),
|
|
87
97
|
});
|
|
88
98
|
|
|
89
99
|
export function computeJobCreateToJSON(
|
|
@@ -17,6 +17,7 @@ export type ComputeOfferCapabilities = {
|
|
|
17
17
|
scaleToZero: boolean;
|
|
18
18
|
sharedVolume: boolean;
|
|
19
19
|
ssh: boolean;
|
|
20
|
+
standaloneVolume: boolean;
|
|
20
21
|
tcpPorts: boolean;
|
|
21
22
|
};
|
|
22
23
|
|
|
@@ -65,6 +66,7 @@ export const ComputeOfferCapabilities$inboundSchema: z.ZodType<
|
|
|
65
66
|
scale_to_zero: z.boolean(),
|
|
66
67
|
shared_volume: z.boolean(),
|
|
67
68
|
ssh: z.boolean(),
|
|
69
|
+
standalone_volume: z.boolean(),
|
|
68
70
|
tcp_ports: z.boolean(),
|
|
69
71
|
}).transform((v) => {
|
|
70
72
|
return remap$(v, {
|
|
@@ -75,6 +77,7 @@ export const ComputeOfferCapabilities$inboundSchema: z.ZodType<
|
|
|
75
77
|
"persistent_volume": "persistentVolume",
|
|
76
78
|
"scale_to_zero": "scaleToZero",
|
|
77
79
|
"shared_volume": "sharedVolume",
|
|
80
|
+
"standalone_volume": "standaloneVolume",
|
|
78
81
|
"tcp_ports": "tcpPorts",
|
|
79
82
|
});
|
|
80
83
|
});
|
|
@@ -88,6 +91,7 @@ export type ComputeOfferCapabilities$Outbound = {
|
|
|
88
91
|
scale_to_zero: boolean;
|
|
89
92
|
shared_volume: boolean;
|
|
90
93
|
ssh: boolean;
|
|
94
|
+
standalone_volume: boolean;
|
|
91
95
|
tcp_ports: boolean;
|
|
92
96
|
};
|
|
93
97
|
|
|
@@ -105,6 +109,7 @@ export const ComputeOfferCapabilities$outboundSchema: z.ZodType<
|
|
|
105
109
|
scaleToZero: z.boolean(),
|
|
106
110
|
sharedVolume: z.boolean(),
|
|
107
111
|
ssh: z.boolean(),
|
|
112
|
+
standaloneVolume: z.boolean(),
|
|
108
113
|
tcpPorts: z.boolean(),
|
|
109
114
|
}).transform((v) => {
|
|
110
115
|
return remap$(v, {
|
|
@@ -115,6 +120,7 @@ export const ComputeOfferCapabilities$outboundSchema: z.ZodType<
|
|
|
115
120
|
persistentVolume: "persistent_volume",
|
|
116
121
|
scaleToZero: "scale_to_zero",
|
|
117
122
|
sharedVolume: "shared_volume",
|
|
123
|
+
standaloneVolume: "standalone_volume",
|
|
118
124
|
tcpPorts: "tcp_ports",
|
|
119
125
|
});
|
|
120
126
|
});
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
|
|
11
|
+
export type ComputePricing = {
|
|
12
|
+
effectiveAt: Date;
|
|
13
|
+
version: number;
|
|
14
|
+
/**
|
|
15
|
+
* Exact USD-per-GiB-hour decimal from 0.000000000000000001 through 10000000000 inclusive, in increments of 0.000000000000000001, with at most 38 mantissa digits, 64 JSON-number characters, and exponent magnitude 128. This range is representable by the numeric(38,18) hourly ledger across the supported int64 stored-byte domain.
|
|
16
|
+
*/
|
|
17
|
+
volumeStorageUsdPerGibHour: number;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ComputePricing$inboundSchema: z.ZodType<
|
|
22
|
+
ComputePricing,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
effective_at: z.string().datetime({ offset: true }).transform(v =>
|
|
27
|
+
new Date(v)
|
|
28
|
+
),
|
|
29
|
+
version: z.number().int(),
|
|
30
|
+
volume_storage_usd_per_gib_hour: z.number(),
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"effective_at": "effectiveAt",
|
|
34
|
+
"volume_storage_usd_per_gib_hour": "volumeStorageUsdPerGibHour",
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type ComputePricing$Outbound = {
|
|
39
|
+
effective_at: string;
|
|
40
|
+
version: number;
|
|
41
|
+
volume_storage_usd_per_gib_hour: number;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const ComputePricing$outboundSchema: z.ZodType<
|
|
46
|
+
ComputePricing$Outbound,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
ComputePricing
|
|
49
|
+
> = z.object({
|
|
50
|
+
effectiveAt: z.date().transform(v => v.toISOString()),
|
|
51
|
+
version: z.number().int(),
|
|
52
|
+
volumeStorageUsdPerGibHour: z.number(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return remap$(v, {
|
|
55
|
+
effectiveAt: "effective_at",
|
|
56
|
+
volumeStorageUsdPerGibHour: "volume_storage_usd_per_gib_hour",
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export function computePricingToJSON(computePricing: ComputePricing): string {
|
|
61
|
+
return JSON.stringify(ComputePricing$outboundSchema.parse(computePricing));
|
|
62
|
+
}
|
|
63
|
+
export function computePricingFromJSON(
|
|
64
|
+
jsonString: string,
|
|
65
|
+
): SafeParseResult<ComputePricing, SDKValidationError> {
|
|
66
|
+
return safeParse(
|
|
67
|
+
jsonString,
|
|
68
|
+
(x) => ComputePricing$inboundSchema.parse(JSON.parse(x)),
|
|
69
|
+
`Failed to parse 'ComputePricing' from JSON`,
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
|
|
11
|
+
export type ComputePricingUpdate = {
|
|
12
|
+
/**
|
|
13
|
+
* Exact USD-per-GiB-hour decimal from 0.000000000000000001 through 10000000000 inclusive, in increments of 0.000000000000000001, with at most 38 mantissa digits, 64 JSON-number characters, and exponent magnitude 128. This range is representable by the numeric(38,18) hourly ledger across the supported int64 stored-byte domain.
|
|
14
|
+
*/
|
|
15
|
+
volumeStorageUsdPerGibHour: number;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ComputePricingUpdate$inboundSchema: z.ZodType<
|
|
20
|
+
ComputePricingUpdate,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
volume_storage_usd_per_gib_hour: z.number(),
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
"volume_storage_usd_per_gib_hour": "volumeStorageUsdPerGibHour",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type ComputePricingUpdate$Outbound = {
|
|
32
|
+
volume_storage_usd_per_gib_hour: number;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const ComputePricingUpdate$outboundSchema: z.ZodType<
|
|
37
|
+
ComputePricingUpdate$Outbound,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
ComputePricingUpdate
|
|
40
|
+
> = z.object({
|
|
41
|
+
volumeStorageUsdPerGibHour: z.number(),
|
|
42
|
+
}).transform((v) => {
|
|
43
|
+
return remap$(v, {
|
|
44
|
+
volumeStorageUsdPerGibHour: "volume_storage_usd_per_gib_hour",
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export function computePricingUpdateToJSON(
|
|
49
|
+
computePricingUpdate: ComputePricingUpdate,
|
|
50
|
+
): string {
|
|
51
|
+
return JSON.stringify(
|
|
52
|
+
ComputePricingUpdate$outboundSchema.parse(computePricingUpdate),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
export function computePricingUpdateFromJSON(
|
|
56
|
+
jsonString: string,
|
|
57
|
+
): SafeParseResult<ComputePricingUpdate, SDKValidationError> {
|
|
58
|
+
return safeParse(
|
|
59
|
+
jsonString,
|
|
60
|
+
(x) => ComputePricingUpdate$inboundSchema.parse(JSON.parse(x)),
|
|
61
|
+
`Failed to parse 'ComputePricingUpdate' from JSON`,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
@@ -42,6 +42,12 @@ import {
|
|
|
42
42
|
ComputeServiceInput$Outbound,
|
|
43
43
|
ComputeServiceInput$outboundSchema,
|
|
44
44
|
} from "./computeserviceinput.js";
|
|
45
|
+
import {
|
|
46
|
+
ComputeStandaloneVolumeMount,
|
|
47
|
+
ComputeStandaloneVolumeMount$inboundSchema,
|
|
48
|
+
ComputeStandaloneVolumeMount$Outbound,
|
|
49
|
+
ComputeStandaloneVolumeMount$outboundSchema,
|
|
50
|
+
} from "./computestandalonevolumemount.js";
|
|
45
51
|
|
|
46
52
|
export type ComputeResourceCreate = {
|
|
47
53
|
access?: ComputeAccessCreate | undefined;
|
|
@@ -51,6 +57,7 @@ export type ComputeResourceCreate = {
|
|
|
51
57
|
name?: string | undefined;
|
|
52
58
|
placement?: ComputePlacement | undefined;
|
|
53
59
|
service?: ComputeServiceInput | undefined;
|
|
60
|
+
volumes?: Array<ComputeStandaloneVolumeMount> | undefined;
|
|
54
61
|
};
|
|
55
62
|
|
|
56
63
|
/** @internal */
|
|
@@ -66,6 +73,7 @@ export const ComputeResourceCreate$inboundSchema: z.ZodType<
|
|
|
66
73
|
name: z.string().optional(),
|
|
67
74
|
placement: ComputePlacement$inboundSchema.optional(),
|
|
68
75
|
service: ComputeServiceInput$inboundSchema.optional(),
|
|
76
|
+
volumes: z.array(ComputeStandaloneVolumeMount$inboundSchema).optional(),
|
|
69
77
|
});
|
|
70
78
|
/** @internal */
|
|
71
79
|
export type ComputeResourceCreate$Outbound = {
|
|
@@ -76,6 +84,7 @@ export type ComputeResourceCreate$Outbound = {
|
|
|
76
84
|
name?: string | undefined;
|
|
77
85
|
placement?: ComputePlacement$Outbound | undefined;
|
|
78
86
|
service?: ComputeServiceInput$Outbound | undefined;
|
|
87
|
+
volumes?: Array<ComputeStandaloneVolumeMount$Outbound> | undefined;
|
|
79
88
|
};
|
|
80
89
|
|
|
81
90
|
/** @internal */
|
|
@@ -91,6 +100,7 @@ export const ComputeResourceCreate$outboundSchema: z.ZodType<
|
|
|
91
100
|
name: z.string().optional(),
|
|
92
101
|
placement: ComputePlacement$outboundSchema.optional(),
|
|
93
102
|
service: ComputeServiceInput$outboundSchema.optional(),
|
|
103
|
+
volumes: z.array(ComputeStandaloneVolumeMount$outboundSchema).optional(),
|
|
94
104
|
});
|
|
95
105
|
|
|
96
106
|
export function computeResourceCreateToJSON(
|
|
@@ -48,6 +48,12 @@ import {
|
|
|
48
48
|
ComputeSSH$Outbound,
|
|
49
49
|
ComputeSSH$outboundSchema,
|
|
50
50
|
} from "./computessh.js";
|
|
51
|
+
import {
|
|
52
|
+
ComputeStandaloneVolumeMount,
|
|
53
|
+
ComputeStandaloneVolumeMount$inboundSchema,
|
|
54
|
+
ComputeStandaloneVolumeMount$Outbound,
|
|
55
|
+
ComputeStandaloneVolumeMount$outboundSchema,
|
|
56
|
+
} from "./computestandalonevolumemount.js";
|
|
51
57
|
import {
|
|
52
58
|
ComputeVolume,
|
|
53
59
|
ComputeVolume$inboundSchema,
|
|
@@ -75,6 +81,7 @@ export type ComputeService = {
|
|
|
75
81
|
startedAt: Date | null;
|
|
76
82
|
state: ComputeResourceState;
|
|
77
83
|
terminalAt: Date | null;
|
|
84
|
+
volumes?: Array<ComputeStandaloneVolumeMount> | undefined;
|
|
78
85
|
ready: boolean;
|
|
79
86
|
volume?: ComputeVolume | undefined;
|
|
80
87
|
};
|
|
@@ -107,6 +114,7 @@ export const ComputeService$inboundSchema: z.ZodType<
|
|
|
107
114
|
terminal_at: z.nullable(
|
|
108
115
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
109
116
|
),
|
|
117
|
+
volumes: z.array(ComputeStandaloneVolumeMount$inboundSchema).optional(),
|
|
110
118
|
ready: z.boolean(),
|
|
111
119
|
volume: ComputeVolume$inboundSchema.optional(),
|
|
112
120
|
}).transform((v) => {
|
|
@@ -137,6 +145,7 @@ export type ComputeService$Outbound = {
|
|
|
137
145
|
started_at: string | null;
|
|
138
146
|
state: string;
|
|
139
147
|
terminal_at: string | null;
|
|
148
|
+
volumes?: Array<ComputeStandaloneVolumeMount$Outbound> | undefined;
|
|
140
149
|
ready: boolean;
|
|
141
150
|
volume?: ComputeVolume$Outbound | undefined;
|
|
142
151
|
};
|
|
@@ -163,6 +172,7 @@ export const ComputeService$outboundSchema: z.ZodType<
|
|
|
163
172
|
startedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
164
173
|
state: ComputeResourceState$outboundSchema,
|
|
165
174
|
terminalAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
175
|
+
volumes: z.array(ComputeStandaloneVolumeMount$outboundSchema).optional(),
|
|
166
176
|
ready: z.boolean(),
|
|
167
177
|
volume: ComputeVolume$outboundSchema.optional(),
|
|
168
178
|
}).transform((v) => {
|