latitudesh-typescript-sdk 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -9
- package/bin/mcp-server.js +1099 -158
- package/bin/mcp-server.js.map +64 -47
- package/dist/commonjs/funcs/blockStorageDeleteStorageVolumes.d.ts +1 -1
- package/dist/commonjs/funcs/blockStorageDeleteStorageVolumes.js +1 -1
- package/dist/commonjs/funcs/blockStorageGetStorageVolume.d.ts +1 -1
- package/dist/commonjs/funcs/blockStorageGetStorageVolume.js +1 -1
- package/dist/commonjs/funcs/blockStoragePostStorageVolumesMount.d.ts +1 -1
- package/dist/commonjs/funcs/blockStoragePostStorageVolumesMount.js +1 -1
- package/dist/commonjs/funcs/filesystemStorageDeleteFilesystem.d.ts +1 -1
- package/dist/commonjs/funcs/filesystemStorageDeleteFilesystem.js +1 -1
- package/dist/commonjs/funcs/objectStorageDeleteStorageBuckets.d.ts +1 -1
- package/dist/commonjs/funcs/objectStorageDeleteStorageBuckets.js +1 -1
- package/dist/commonjs/funcs/objectStorageGetStorageBucket.d.ts +1 -1
- package/dist/commonjs/funcs/objectStorageGetStorageBucket.js +1 -1
- package/dist/commonjs/funcs/objectStorageGetStorageBuckets.d.ts +1 -1
- package/dist/commonjs/funcs/objectStorageGetStorageBuckets.js +1 -1
- package/dist/commonjs/funcs/objectStoragePostStorageBuckets.d.ts +1 -1
- package/dist/commonjs/funcs/objectStoragePostStorageBuckets.js +1 -1
- package/dist/commonjs/funcs/sshKeysList.js +3 -0
- package/dist/commonjs/funcs/sshKeysList.js.map +1 -1
- package/dist/commonjs/funcs/sshKeysListAll.js +3 -0
- package/dist/commonjs/funcs/sshKeysListAll.js.map +1 -1
- package/dist/commonjs/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.d.ts +17 -0
- package/dist/commonjs/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.js +119 -0
- package/dist/commonjs/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.js.map +1 -0
- package/dist/commonjs/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.d.ts +17 -0
- package/dist/commonjs/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.js +122 -0
- package/dist/commonjs/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.js.map +1 -0
- package/dist/commonjs/funcs/virtualMachinesList.js +1 -0
- package/dist/commonjs/funcs/virtualMachinesList.js.map +1 -1
- package/dist/commonjs/funcs/virtualMachinesListVirtualMachineNetworkAttachments.d.ts +18 -0
- package/dist/commonjs/funcs/virtualMachinesListVirtualMachineNetworkAttachments.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachinesListVirtualMachineNetworkAttachments.js +121 -0
- package/dist/commonjs/funcs/virtualMachinesListVirtualMachineNetworkAttachments.js.map +1 -0
- package/dist/commonjs/funcs/virtualMachinesShowVirtualMachineMetrics.d.ts +18 -0
- package/dist/commonjs/funcs/virtualMachinesShowVirtualMachineMetrics.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachinesShowVirtualMachineMetrics.js +126 -0
- package/dist/commonjs/funcs/virtualMachinesShowVirtualMachineMetrics.js.map +1 -0
- package/dist/commonjs/hooks/types.d.ts +1 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +13 -4
- package/dist/commonjs/lib/sdks.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 +9 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/blockStorageDeleteStorageVolumes.js +1 -1
- package/dist/commonjs/mcp-server/tools/blockStorageDeleteStorageVolumes.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/blockStorageGetStorageVolume.js +1 -1
- package/dist/commonjs/mcp-server/tools/blockStorageGetStorageVolume.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/blockStoragePostStorageVolumesMount.js +1 -1
- package/dist/commonjs/mcp-server/tools/blockStoragePostStorageVolumesMount.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/filesystemStorageDeleteFilesystem.js +1 -1
- package/dist/commonjs/mcp-server/tools/filesystemStorageDeleteFilesystem.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/objectStorageDeleteStorageBuckets.js +1 -1
- package/dist/commonjs/mcp-server/tools/objectStorageGetStorageBucket.js +1 -1
- package/dist/commonjs/mcp-server/tools/objectStorageGetStorageBuckets.js +1 -1
- package/dist/commonjs/mcp-server/tools/objectStoragePostStorageBuckets.js +1 -1
- package/dist/commonjs/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.js +65 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.js +65 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesListVirtualMachineNetworkAttachments.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesListVirtualMachineNetworkAttachments.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesListVirtualMachineNetworkAttachments.js +65 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesListVirtualMachineNetworkAttachments.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesShowVirtualMachineMetrics.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesShowVirtualMachineMetrics.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesShowVirtualMachineMetrics.js +64 -0
- package/dist/commonjs/mcp-server/tools/virtualMachinesShowVirtualMachineMetrics.js.map +1 -0
- package/dist/commonjs/models/deployconfig.d.ts +52 -0
- package/dist/commonjs/models/deployconfig.d.ts.map +1 -1
- package/dist/commonjs/models/deployconfig.js +68 -1
- package/dist/commonjs/models/deployconfig.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +5 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +5 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operatingsystemdata.d.ts +1 -1
- package/dist/commonjs/models/operatingsystemdata.js +1 -1
- package/dist/commonjs/models/operatingsystemdata.js.map +1 -1
- package/dist/commonjs/models/operations/createvirtualmachinenetworkattachment.d.ts +49 -0
- package/dist/commonjs/models/operations/createvirtualmachinenetworkattachment.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createvirtualmachinenetworkattachment.js +106 -0
- package/dist/commonjs/models/operations/createvirtualmachinenetworkattachment.js.map +1 -0
- package/dist/commonjs/models/operations/destroyvirtualmachinenetworkattachment.d.ts +51 -0
- package/dist/commonjs/models/operations/destroyvirtualmachinenetworkattachment.d.ts.map +1 -0
- package/dist/commonjs/models/operations/destroyvirtualmachinenetworkattachment.js +102 -0
- package/dist/commonjs/models/operations/destroyvirtualmachinenetworkattachment.js.map +1 -0
- package/dist/commonjs/models/operations/getplansoperatingsystem.d.ts +2 -18
- package/dist/commonjs/models/operations/getplansoperatingsystem.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getplansoperatingsystem.js +3 -19
- package/dist/commonjs/models/operations/getplansoperatingsystem.js.map +1 -1
- package/dist/commonjs/models/operations/getprojectsshkeys.d.ts +15 -0
- package/dist/commonjs/models/operations/getprojectsshkeys.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getprojectsshkeys.js +12 -0
- package/dist/commonjs/models/operations/getprojectsshkeys.js.map +1 -1
- package/dist/commonjs/models/operations/getsshkeys.d.ts +15 -0
- package/dist/commonjs/models/operations/getsshkeys.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getsshkeys.js +12 -0
- package/dist/commonjs/models/operations/getsshkeys.js.map +1 -1
- package/dist/commonjs/models/operations/getstoragevolume.d.ts +1 -1
- package/dist/commonjs/models/operations/getvpnsessions.d.ts +8 -8
- package/dist/commonjs/models/operations/getvpnsessions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getvpnsessions.js +11 -12
- package/dist/commonjs/models/operations/getvpnsessions.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +4 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +4 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/indexvirtualmachine.d.ts +6 -1
- package/dist/commonjs/models/operations/indexvirtualmachine.d.ts.map +1 -1
- package/dist/commonjs/models/operations/indexvirtualmachine.js +4 -0
- package/dist/commonjs/models/operations/indexvirtualmachine.js.map +1 -1
- package/dist/commonjs/models/operations/listvirtualmachinenetworkattachments.d.ts +17 -0
- package/dist/commonjs/models/operations/listvirtualmachinenetworkattachments.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listvirtualmachinenetworkattachments.js +67 -0
- package/dist/commonjs/models/operations/listvirtualmachinenetworkattachments.js.map +1 -0
- package/dist/commonjs/models/operations/poststoragebuckets.d.ts +9 -9
- package/dist/commonjs/models/operations/poststoragebuckets.js +2 -2
- package/dist/commonjs/models/operations/poststoragefilesystems.d.ts +1 -1
- package/dist/commonjs/models/operations/poststoragevolumes.d.ts +1 -1
- package/dist/commonjs/models/operations/poststoragevolumesmount.d.ts +2 -2
- package/dist/commonjs/models/operations/showvirtualmachinemetrics.d.ts +46 -0
- package/dist/commonjs/models/operations/showvirtualmachinemetrics.d.ts.map +1 -0
- package/dist/commonjs/models/operations/showvirtualmachinemetrics.js +96 -0
- package/dist/commonjs/models/operations/showvirtualmachinemetrics.js.map +1 -0
- package/dist/commonjs/models/paginationmeta.d.ts +46 -0
- package/dist/commonjs/models/paginationmeta.d.ts.map +1 -0
- package/dist/commonjs/models/paginationmeta.js +91 -0
- package/dist/commonjs/models/paginationmeta.js.map +1 -0
- package/dist/commonjs/models/sshkeydata.d.ts +21 -0
- package/dist/commonjs/models/sshkeydata.d.ts.map +1 -1
- package/dist/commonjs/models/sshkeydata.js +25 -1
- package/dist/commonjs/models/sshkeydata.js.map +1 -1
- package/dist/commonjs/models/sshkeys.d.ts +3 -11
- package/dist/commonjs/models/sshkeys.d.ts.map +1 -1
- package/dist/commonjs/models/sshkeys.js +4 -15
- package/dist/commonjs/models/sshkeys.js.map +1 -1
- package/dist/commonjs/models/virtualmachineattributes.d.ts +35 -0
- package/dist/commonjs/models/virtualmachineattributes.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachineattributes.js +39 -1
- package/dist/commonjs/models/virtualmachineattributes.js.map +1 -1
- package/dist/commonjs/models/virtualmachinemetrics.d.ts +90 -0
- package/dist/commonjs/models/virtualmachinemetrics.d.ts.map +1 -0
- package/dist/commonjs/models/virtualmachinemetrics.js +118 -0
- package/dist/commonjs/models/virtualmachinemetrics.js.map +1 -0
- package/dist/commonjs/models/virtualmachinenetworkattachmentcreatepayload.d.ts +57 -0
- package/dist/commonjs/models/virtualmachinenetworkattachmentcreatepayload.d.ts.map +1 -0
- package/dist/commonjs/models/virtualmachinenetworkattachmentcreatepayload.js +110 -0
- package/dist/commonjs/models/virtualmachinenetworkattachmentcreatepayload.js.map +1 -0
- package/dist/commonjs/models/virtualmachinenetworkattachmentresource.d.ts +64 -0
- package/dist/commonjs/models/virtualmachinenetworkattachmentresource.d.ts.map +1 -0
- package/dist/commonjs/models/virtualmachinenetworkattachmentresource.js +105 -0
- package/dist/commonjs/models/virtualmachinenetworkattachmentresource.js.map +1 -0
- package/dist/commonjs/models/virtualmachinenetworkattachments.d.ts +18 -0
- package/dist/commonjs/models/virtualmachinenetworkattachments.d.ts.map +1 -0
- package/dist/commonjs/models/virtualmachinenetworkattachments.js +61 -0
- package/dist/commonjs/models/virtualmachinenetworkattachments.js.map +1 -0
- package/dist/commonjs/models/virtualmachinepayload.d.ts +22 -0
- package/dist/commonjs/models/virtualmachinepayload.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachinepayload.js +19 -1
- package/dist/commonjs/models/virtualmachinepayload.js.map +1 -1
- package/dist/commonjs/models/virtualmachineupdatepayload.d.ts +7 -2
- package/dist/commonjs/models/virtualmachineupdatepayload.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachineupdatepayload.js +4 -2
- package/dist/commonjs/models/virtualmachineupdatepayload.js.map +1 -1
- package/dist/commonjs/models/virtualnetworkdata.d.ts +8 -8
- package/dist/commonjs/models/virtualnetworkdata.d.ts.map +1 -1
- package/dist/commonjs/models/virtualnetworkdata.js +11 -13
- package/dist/commonjs/models/virtualnetworkdata.js.map +1 -1
- package/dist/commonjs/sdk/blockstorage.d.ts +3 -3
- package/dist/commonjs/sdk/blockstorage.js +3 -3
- package/dist/commonjs/sdk/filesystemstorage.d.ts +1 -1
- package/dist/commonjs/sdk/filesystemstorage.js +1 -1
- package/dist/commonjs/sdk/objectstorage.d.ts +4 -4
- package/dist/commonjs/sdk/objectstorage.js +4 -4
- package/dist/commonjs/sdk/virtualmachines.d.ts +28 -0
- package/dist/commonjs/sdk/virtualmachines.d.ts.map +1 -1
- package/dist/commonjs/sdk/virtualmachines.js +40 -0
- package/dist/commonjs/sdk/virtualmachines.js.map +1 -1
- package/dist/esm/funcs/blockStorageDeleteStorageVolumes.d.ts +1 -1
- package/dist/esm/funcs/blockStorageDeleteStorageVolumes.js +1 -1
- package/dist/esm/funcs/blockStorageGetStorageVolume.d.ts +1 -1
- package/dist/esm/funcs/blockStorageGetStorageVolume.js +1 -1
- package/dist/esm/funcs/blockStoragePostStorageVolumesMount.d.ts +1 -1
- package/dist/esm/funcs/blockStoragePostStorageVolumesMount.js +1 -1
- package/dist/esm/funcs/filesystemStorageDeleteFilesystem.d.ts +1 -1
- package/dist/esm/funcs/filesystemStorageDeleteFilesystem.js +1 -1
- package/dist/esm/funcs/objectStorageDeleteStorageBuckets.d.ts +1 -1
- package/dist/esm/funcs/objectStorageDeleteStorageBuckets.js +1 -1
- package/dist/esm/funcs/objectStorageGetStorageBucket.d.ts +1 -1
- package/dist/esm/funcs/objectStorageGetStorageBucket.js +1 -1
- package/dist/esm/funcs/objectStorageGetStorageBuckets.d.ts +1 -1
- package/dist/esm/funcs/objectStorageGetStorageBuckets.js +1 -1
- package/dist/esm/funcs/objectStoragePostStorageBuckets.d.ts +1 -1
- package/dist/esm/funcs/objectStoragePostStorageBuckets.js +1 -1
- package/dist/esm/funcs/sshKeysList.js +3 -0
- package/dist/esm/funcs/sshKeysList.js.map +1 -1
- package/dist/esm/funcs/sshKeysListAll.js +3 -0
- package/dist/esm/funcs/sshKeysListAll.js.map +1 -1
- package/dist/esm/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.d.ts +17 -0
- package/dist/esm/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.js +83 -0
- package/dist/esm/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.js.map +1 -0
- package/dist/esm/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.d.ts +17 -0
- package/dist/esm/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.js +86 -0
- package/dist/esm/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.js.map +1 -0
- package/dist/esm/funcs/virtualMachinesList.js +1 -0
- package/dist/esm/funcs/virtualMachinesList.js.map +1 -1
- package/dist/esm/funcs/virtualMachinesListVirtualMachineNetworkAttachments.d.ts +18 -0
- package/dist/esm/funcs/virtualMachinesListVirtualMachineNetworkAttachments.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachinesListVirtualMachineNetworkAttachments.js +85 -0
- package/dist/esm/funcs/virtualMachinesListVirtualMachineNetworkAttachments.js.map +1 -0
- package/dist/esm/funcs/virtualMachinesShowVirtualMachineMetrics.d.ts +18 -0
- package/dist/esm/funcs/virtualMachinesShowVirtualMachineMetrics.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachinesShowVirtualMachineMetrics.js +90 -0
- package/dist/esm/funcs/virtualMachinesShowVirtualMachineMetrics.js.map +1 -0
- package/dist/esm/hooks/types.d.ts +1 -0
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +13 -4
- package/dist/esm/lib/sdks.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 +9 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/blockStorageDeleteStorageVolumes.js +1 -1
- package/dist/esm/mcp-server/tools/blockStorageDeleteStorageVolumes.js.map +1 -1
- package/dist/esm/mcp-server/tools/blockStorageGetStorageVolume.js +1 -1
- package/dist/esm/mcp-server/tools/blockStorageGetStorageVolume.js.map +1 -1
- package/dist/esm/mcp-server/tools/blockStoragePostStorageVolumesMount.js +1 -1
- package/dist/esm/mcp-server/tools/blockStoragePostStorageVolumesMount.js.map +1 -1
- package/dist/esm/mcp-server/tools/filesystemStorageDeleteFilesystem.js +1 -1
- package/dist/esm/mcp-server/tools/filesystemStorageDeleteFilesystem.js.map +1 -1
- package/dist/esm/mcp-server/tools/objectStorageDeleteStorageBuckets.js +1 -1
- package/dist/esm/mcp-server/tools/objectStorageGetStorageBucket.js +1 -1
- package/dist/esm/mcp-server/tools/objectStorageGetStorageBuckets.js +1 -1
- package/dist/esm/mcp-server/tools/objectStoragePostStorageBuckets.js +1 -1
- package/dist/esm/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.d.ts +8 -0
- package/dist/esm/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.js +29 -0
- package/dist/esm/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.d.ts +8 -0
- package/dist/esm/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.js +29 -0
- package/dist/esm/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachinesListVirtualMachineNetworkAttachments.d.ts +8 -0
- package/dist/esm/mcp-server/tools/virtualMachinesListVirtualMachineNetworkAttachments.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachinesListVirtualMachineNetworkAttachments.js +29 -0
- package/dist/esm/mcp-server/tools/virtualMachinesListVirtualMachineNetworkAttachments.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachinesShowVirtualMachineMetrics.d.ts +8 -0
- package/dist/esm/mcp-server/tools/virtualMachinesShowVirtualMachineMetrics.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachinesShowVirtualMachineMetrics.js +28 -0
- package/dist/esm/mcp-server/tools/virtualMachinesShowVirtualMachineMetrics.js.map +1 -0
- package/dist/esm/models/deployconfig.d.ts +52 -0
- package/dist/esm/models/deployconfig.d.ts.map +1 -1
- package/dist/esm/models/deployconfig.js +65 -0
- package/dist/esm/models/deployconfig.js.map +1 -1
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +5 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operatingsystemdata.d.ts +1 -1
- package/dist/esm/models/operatingsystemdata.js +1 -1
- package/dist/esm/models/operatingsystemdata.js.map +1 -1
- package/dist/esm/models/operations/createvirtualmachinenetworkattachment.d.ts +49 -0
- package/dist/esm/models/operations/createvirtualmachinenetworkattachment.d.ts.map +1 -0
- package/dist/esm/models/operations/createvirtualmachinenetworkattachment.js +64 -0
- package/dist/esm/models/operations/createvirtualmachinenetworkattachment.js.map +1 -0
- package/dist/esm/models/operations/destroyvirtualmachinenetworkattachment.d.ts +51 -0
- package/dist/esm/models/operations/destroyvirtualmachinenetworkattachment.d.ts.map +1 -0
- package/dist/esm/models/operations/destroyvirtualmachinenetworkattachment.js +60 -0
- package/dist/esm/models/operations/destroyvirtualmachinenetworkattachment.js.map +1 -0
- package/dist/esm/models/operations/getplansoperatingsystem.d.ts +2 -18
- package/dist/esm/models/operations/getplansoperatingsystem.d.ts.map +1 -1
- package/dist/esm/models/operations/getplansoperatingsystem.js +2 -16
- package/dist/esm/models/operations/getplansoperatingsystem.js.map +1 -1
- package/dist/esm/models/operations/getprojectsshkeys.d.ts +15 -0
- package/dist/esm/models/operations/getprojectsshkeys.d.ts.map +1 -1
- package/dist/esm/models/operations/getprojectsshkeys.js +12 -0
- package/dist/esm/models/operations/getprojectsshkeys.js.map +1 -1
- package/dist/esm/models/operations/getsshkeys.d.ts +15 -0
- package/dist/esm/models/operations/getsshkeys.d.ts.map +1 -1
- package/dist/esm/models/operations/getsshkeys.js +12 -0
- package/dist/esm/models/operations/getsshkeys.js.map +1 -1
- package/dist/esm/models/operations/getstoragevolume.d.ts +1 -1
- package/dist/esm/models/operations/getvpnsessions.d.ts +8 -8
- package/dist/esm/models/operations/getvpnsessions.d.ts.map +1 -1
- package/dist/esm/models/operations/getvpnsessions.js +8 -9
- package/dist/esm/models/operations/getvpnsessions.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +4 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +4 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/indexvirtualmachine.d.ts +6 -1
- package/dist/esm/models/operations/indexvirtualmachine.d.ts.map +1 -1
- package/dist/esm/models/operations/indexvirtualmachine.js +4 -0
- package/dist/esm/models/operations/indexvirtualmachine.js.map +1 -1
- package/dist/esm/models/operations/listvirtualmachinenetworkattachments.d.ts +17 -0
- package/dist/esm/models/operations/listvirtualmachinenetworkattachments.d.ts.map +1 -0
- package/dist/esm/models/operations/listvirtualmachinenetworkattachments.js +29 -0
- package/dist/esm/models/operations/listvirtualmachinenetworkattachments.js.map +1 -0
- package/dist/esm/models/operations/poststoragebuckets.d.ts +9 -9
- package/dist/esm/models/operations/poststoragebuckets.js +2 -2
- package/dist/esm/models/operations/poststoragefilesystems.d.ts +1 -1
- package/dist/esm/models/operations/poststoragevolumes.d.ts +1 -1
- package/dist/esm/models/operations/poststoragevolumesmount.d.ts +2 -2
- package/dist/esm/models/operations/showvirtualmachinemetrics.d.ts +46 -0
- package/dist/esm/models/operations/showvirtualmachinemetrics.d.ts.map +1 -0
- package/dist/esm/models/operations/showvirtualmachinemetrics.js +58 -0
- package/dist/esm/models/operations/showvirtualmachinemetrics.js.map +1 -0
- package/dist/esm/models/paginationmeta.d.ts +46 -0
- package/dist/esm/models/paginationmeta.d.ts.map +1 -0
- package/dist/esm/models/paginationmeta.js +49 -0
- package/dist/esm/models/paginationmeta.js.map +1 -0
- package/dist/esm/models/sshkeydata.d.ts +21 -0
- package/dist/esm/models/sshkeydata.d.ts.map +1 -1
- package/dist/esm/models/sshkeydata.js +22 -0
- package/dist/esm/models/sshkeydata.js.map +1 -1
- package/dist/esm/models/sshkeys.d.ts +3 -11
- package/dist/esm/models/sshkeys.d.ts.map +1 -1
- package/dist/esm/models/sshkeys.js +3 -12
- package/dist/esm/models/sshkeys.js.map +1 -1
- package/dist/esm/models/virtualmachineattributes.d.ts +35 -0
- package/dist/esm/models/virtualmachineattributes.d.ts.map +1 -1
- package/dist/esm/models/virtualmachineattributes.js +36 -0
- package/dist/esm/models/virtualmachineattributes.js.map +1 -1
- package/dist/esm/models/virtualmachinemetrics.d.ts +90 -0
- package/dist/esm/models/virtualmachinemetrics.d.ts.map +1 -0
- package/dist/esm/models/virtualmachinemetrics.js +78 -0
- package/dist/esm/models/virtualmachinemetrics.js.map +1 -0
- package/dist/esm/models/virtualmachinenetworkattachmentcreatepayload.d.ts +57 -0
- package/dist/esm/models/virtualmachinenetworkattachmentcreatepayload.d.ts.map +1 -0
- package/dist/esm/models/virtualmachinenetworkattachmentcreatepayload.js +68 -0
- package/dist/esm/models/virtualmachinenetworkattachmentcreatepayload.js.map +1 -0
- package/dist/esm/models/virtualmachinenetworkattachmentresource.d.ts +64 -0
- package/dist/esm/models/virtualmachinenetworkattachmentresource.d.ts.map +1 -0
- package/dist/esm/models/virtualmachinenetworkattachmentresource.js +65 -0
- package/dist/esm/models/virtualmachinenetworkattachmentresource.js.map +1 -0
- package/dist/esm/models/virtualmachinenetworkattachments.d.ts +18 -0
- package/dist/esm/models/virtualmachinenetworkattachments.d.ts.map +1 -0
- package/dist/esm/models/virtualmachinenetworkattachments.js +23 -0
- package/dist/esm/models/virtualmachinenetworkattachments.js.map +1 -0
- package/dist/esm/models/virtualmachinepayload.d.ts +22 -0
- package/dist/esm/models/virtualmachinepayload.d.ts.map +1 -1
- package/dist/esm/models/virtualmachinepayload.js +16 -0
- package/dist/esm/models/virtualmachinepayload.js.map +1 -1
- package/dist/esm/models/virtualmachineupdatepayload.d.ts +7 -2
- package/dist/esm/models/virtualmachineupdatepayload.d.ts.map +1 -1
- package/dist/esm/models/virtualmachineupdatepayload.js +4 -2
- package/dist/esm/models/virtualmachineupdatepayload.js.map +1 -1
- package/dist/esm/models/virtualnetworkdata.d.ts +8 -8
- package/dist/esm/models/virtualnetworkdata.d.ts.map +1 -1
- package/dist/esm/models/virtualnetworkdata.js +8 -10
- package/dist/esm/models/virtualnetworkdata.js.map +1 -1
- package/dist/esm/sdk/blockstorage.d.ts +3 -3
- package/dist/esm/sdk/blockstorage.js +3 -3
- package/dist/esm/sdk/filesystemstorage.d.ts +1 -1
- package/dist/esm/sdk/filesystemstorage.js +1 -1
- package/dist/esm/sdk/objectstorage.d.ts +4 -4
- package/dist/esm/sdk/objectstorage.js +4 -4
- package/dist/esm/sdk/virtualmachines.d.ts +28 -0
- package/dist/esm/sdk/virtualmachines.d.ts.map +1 -1
- package/dist/esm/sdk/virtualmachines.js +40 -0
- package/dist/esm/sdk/virtualmachines.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/blockStorageDeleteStorageVolumes.ts +1 -1
- package/src/funcs/blockStorageGetStorageVolume.ts +1 -1
- package/src/funcs/blockStoragePostStorageVolumesMount.ts +1 -1
- package/src/funcs/filesystemStorageDeleteFilesystem.ts +1 -1
- package/src/funcs/objectStorageDeleteStorageBuckets.ts +1 -1
- package/src/funcs/objectStorageGetStorageBucket.ts +1 -1
- package/src/funcs/objectStorageGetStorageBuckets.ts +1 -1
- package/src/funcs/objectStoragePostStorageBuckets.ts +1 -1
- package/src/funcs/sshKeysList.ts +3 -0
- package/src/funcs/sshKeysListAll.ts +3 -0
- package/src/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.ts +181 -0
- package/src/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.ts +180 -0
- package/src/funcs/virtualMachinesList.ts +1 -0
- package/src/funcs/virtualMachinesListVirtualMachineNetworkAttachments.ts +175 -0
- package/src/funcs/virtualMachinesShowVirtualMachineMetrics.ts +181 -0
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +13 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/blockStorageDeleteStorageVolumes.ts +1 -1
- package/src/mcp-server/tools/blockStorageGetStorageVolume.ts +1 -1
- package/src/mcp-server/tools/blockStoragePostStorageVolumesMount.ts +1 -1
- package/src/mcp-server/tools/filesystemStorageDeleteFilesystem.ts +1 -1
- package/src/mcp-server/tools/objectStorageDeleteStorageBuckets.ts +1 -1
- package/src/mcp-server/tools/objectStorageGetStorageBucket.ts +1 -1
- package/src/mcp-server/tools/objectStorageGetStorageBuckets.ts +1 -1
- package/src/mcp-server/tools/objectStoragePostStorageBuckets.ts +1 -1
- package/src/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.ts +41 -0
- package/src/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.ts +41 -0
- package/src/mcp-server/tools/virtualMachinesListVirtualMachineNetworkAttachments.ts +40 -0
- package/src/mcp-server/tools/virtualMachinesShowVirtualMachineMetrics.ts +39 -0
- package/src/models/deployconfig.ts +116 -0
- package/src/models/index.ts +5 -0
- package/src/models/operatingsystemdata.ts +1 -1
- package/src/models/operations/createvirtualmachinenetworkattachment.ts +196 -0
- package/src/models/operations/destroyvirtualmachinenetworkattachment.ts +189 -0
- package/src/models/operations/getplansoperatingsystem.ts +4 -53
- package/src/models/operations/getprojectsshkeys.ts +27 -0
- package/src/models/operations/getsshkeys.ts +27 -0
- package/src/models/operations/getstoragevolume.ts +1 -1
- package/src/models/operations/getvpnsessions.ts +26 -16
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/indexvirtualmachine.ts +10 -1
- package/src/models/operations/listvirtualmachinenetworkattachments.ts +71 -0
- package/src/models/operations/poststoragebuckets.ts +9 -9
- package/src/models/operations/poststoragefilesystems.ts +1 -1
- package/src/models/operations/poststoragevolumes.ts +1 -1
- package/src/models/operations/poststoragevolumesmount.ts +2 -2
- package/src/models/operations/showvirtualmachinemetrics.ts +108 -0
- package/src/models/paginationmeta.ts +129 -0
- package/src/models/sshkeydata.ts +55 -0
- package/src/models/sshkeys.ts +10 -35
- package/src/models/virtualmachineattributes.ts +89 -0
- package/src/models/virtualmachinemetrics.ts +175 -0
- package/src/models/virtualmachinenetworkattachmentcreatepayload.ts +210 -0
- package/src/models/virtualmachinenetworkattachmentresource.ts +185 -0
- package/src/models/virtualmachinenetworkattachments.ts +61 -0
- package/src/models/virtualmachinepayload.ts +50 -0
- package/src/models/virtualmachineupdatepayload.ts +11 -4
- package/src/models/virtualnetworkdata.ts +36 -26
- package/src/sdk/blockstorage.ts +3 -3
- package/src/sdk/filesystemstorage.ts +1 -1
- package/src/sdk/objectstorage.ts +4 -4
- package/src/sdk/virtualmachines.ts +72 -0
package/bin/mcp-server.js
CHANGED
|
@@ -53149,9 +53149,9 @@ var init_config = __esm(() => {
|
|
|
53149
53149
|
SDK_METADATA = {
|
|
53150
53150
|
language: "typescript",
|
|
53151
53151
|
openapiDocVersion: "2023-06-01",
|
|
53152
|
-
sdkVersion: "0.
|
|
53153
|
-
genVersion: "2.
|
|
53154
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
53152
|
+
sdkVersion: "0.5.0",
|
|
53153
|
+
genVersion: "2.897.1",
|
|
53154
|
+
userAgent: "speakeasy-sdk/typescript 0.5.0 2.897.1 2023-06-01 latitudesh-typescript-sdk"
|
|
53155
53155
|
};
|
|
53156
53156
|
});
|
|
53157
53157
|
|
|
@@ -53585,6 +53585,84 @@ var init_http = __esm(() => {
|
|
|
53585
53585
|
codeRangeRE = new RegExp("^[0-9]xx$", "i");
|
|
53586
53586
|
});
|
|
53587
53587
|
|
|
53588
|
+
// src/lib/primitives.ts
|
|
53589
|
+
function remap(inp, mappings) {
|
|
53590
|
+
let out = {};
|
|
53591
|
+
if (!Object.keys(mappings).length) {
|
|
53592
|
+
out = inp;
|
|
53593
|
+
return out;
|
|
53594
|
+
}
|
|
53595
|
+
for (const [k2, v2] of Object.entries(inp)) {
|
|
53596
|
+
const j2 = mappings[k2];
|
|
53597
|
+
if (j2 === null) {
|
|
53598
|
+
continue;
|
|
53599
|
+
}
|
|
53600
|
+
out[j2 ?? k2] = v2;
|
|
53601
|
+
}
|
|
53602
|
+
return out;
|
|
53603
|
+
}
|
|
53604
|
+
function combineSignals(...signals) {
|
|
53605
|
+
const filtered = [];
|
|
53606
|
+
for (const signal of signals) {
|
|
53607
|
+
if (signal) {
|
|
53608
|
+
filtered.push(signal);
|
|
53609
|
+
}
|
|
53610
|
+
}
|
|
53611
|
+
switch (filtered.length) {
|
|
53612
|
+
case 0:
|
|
53613
|
+
case 1:
|
|
53614
|
+
return filtered[0] || null;
|
|
53615
|
+
default:
|
|
53616
|
+
if ("any" in AbortSignal && typeof AbortSignal.any === "function") {
|
|
53617
|
+
return AbortSignal.any(filtered);
|
|
53618
|
+
}
|
|
53619
|
+
return abortSignalAny(filtered);
|
|
53620
|
+
}
|
|
53621
|
+
}
|
|
53622
|
+
function abortSignalAny(signals) {
|
|
53623
|
+
const controller = new AbortController;
|
|
53624
|
+
const result = controller.signal;
|
|
53625
|
+
if (!signals.length) {
|
|
53626
|
+
return controller.signal;
|
|
53627
|
+
}
|
|
53628
|
+
if (signals.length === 1) {
|
|
53629
|
+
return signals[0] || controller.signal;
|
|
53630
|
+
}
|
|
53631
|
+
for (const signal of signals) {
|
|
53632
|
+
if (signal.aborted) {
|
|
53633
|
+
return signal;
|
|
53634
|
+
}
|
|
53635
|
+
}
|
|
53636
|
+
function abort() {
|
|
53637
|
+
controller.abort(this.reason);
|
|
53638
|
+
clean();
|
|
53639
|
+
}
|
|
53640
|
+
const signalRefs = [];
|
|
53641
|
+
function clean() {
|
|
53642
|
+
for (const signalRef of signalRefs) {
|
|
53643
|
+
const signal = signalRef.deref();
|
|
53644
|
+
if (signal) {
|
|
53645
|
+
signal.removeEventListener("abort", abort);
|
|
53646
|
+
}
|
|
53647
|
+
}
|
|
53648
|
+
}
|
|
53649
|
+
for (const signal of signals) {
|
|
53650
|
+
signalRefs.push(new WeakRef(signal));
|
|
53651
|
+
signal.addEventListener("abort", abort);
|
|
53652
|
+
}
|
|
53653
|
+
return result;
|
|
53654
|
+
}
|
|
53655
|
+
function compactMap(values) {
|
|
53656
|
+
const out = {};
|
|
53657
|
+
for (const [k2, v2] of Object.entries(values)) {
|
|
53658
|
+
if (typeof v2 !== "undefined") {
|
|
53659
|
+
out[k2] = v2;
|
|
53660
|
+
}
|
|
53661
|
+
}
|
|
53662
|
+
return out;
|
|
53663
|
+
}
|
|
53664
|
+
var init_primitives = () => {};
|
|
53665
|
+
|
|
53588
53666
|
// src/lib/retries.ts
|
|
53589
53667
|
async function retry(fetchFn, options) {
|
|
53590
53668
|
switch (options.config.strategy) {
|
|
@@ -53807,9 +53885,8 @@ class ClientSDK {
|
|
|
53807
53885
|
...options?.fetchOptions,
|
|
53808
53886
|
...options
|
|
53809
53887
|
};
|
|
53810
|
-
if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
|
|
53811
|
-
|
|
53812
|
-
fetchOptions.signal = timeoutSignal;
|
|
53888
|
+
if (!fetchOptions?.signal && conf.timeoutMs != null && conf.timeoutMs > 0) {
|
|
53889
|
+
context.timeoutMs = conf.timeoutMs;
|
|
53813
53890
|
}
|
|
53814
53891
|
if (conf.body instanceof ReadableStream) {
|
|
53815
53892
|
Object.assign(fetchOptions, { duplex: "half" });
|
|
@@ -53834,8 +53911,16 @@ class ClientSDK {
|
|
|
53834
53911
|
}
|
|
53835
53912
|
async _do(request, options) {
|
|
53836
53913
|
const { context, isErrorStatusCode } = options;
|
|
53914
|
+
const timeoutMs = context.timeoutMs;
|
|
53837
53915
|
return retry(async () => {
|
|
53838
|
-
const
|
|
53916
|
+
const cloned = request.clone();
|
|
53917
|
+
let attempt = cloned;
|
|
53918
|
+
if (timeoutMs != null && timeoutMs > 0) {
|
|
53919
|
+
const timeoutSignal = AbortSignal.timeout(timeoutMs);
|
|
53920
|
+
const combined = combineSignals(cloned.signal, timeoutSignal) ?? timeoutSignal;
|
|
53921
|
+
attempt = new Request(cloned, { signal: combined });
|
|
53922
|
+
}
|
|
53923
|
+
const req = await this.#hooks.beforeRequest(context, attempt);
|
|
53839
53924
|
await logRequest(this.#logger, req).catch((e) => this.#logger?.log("Failed to log request:", e));
|
|
53840
53925
|
let response = await this.#httpClient.request(req);
|
|
53841
53926
|
try {
|
|
@@ -53954,6 +54039,7 @@ var init_sdks = __esm(() => {
|
|
|
53954
54039
|
init_encodings();
|
|
53955
54040
|
init_env();
|
|
53956
54041
|
init_http();
|
|
54042
|
+
init_primitives();
|
|
53957
54043
|
init_retries();
|
|
53958
54044
|
gt = typeof globalThis === "undefined" ? null : globalThis;
|
|
53959
54045
|
webWorkerLike = typeof gt === "object" && gt != null && "importScripts" in gt && typeof gt["importScripts"] === "function";
|
|
@@ -54472,33 +54558,6 @@ var init_matchers = __esm(() => {
|
|
|
54472
54558
|
headerValRE = /, */;
|
|
54473
54559
|
});
|
|
54474
54560
|
|
|
54475
|
-
// src/lib/primitives.ts
|
|
54476
|
-
function remap(inp, mappings) {
|
|
54477
|
-
let out = {};
|
|
54478
|
-
if (!Object.keys(mappings).length) {
|
|
54479
|
-
out = inp;
|
|
54480
|
-
return out;
|
|
54481
|
-
}
|
|
54482
|
-
for (const [k2, v2] of Object.entries(inp)) {
|
|
54483
|
-
const j2 = mappings[k2];
|
|
54484
|
-
if (j2 === null) {
|
|
54485
|
-
continue;
|
|
54486
|
-
}
|
|
54487
|
-
out[j2 ?? k2] = v2;
|
|
54488
|
-
}
|
|
54489
|
-
return out;
|
|
54490
|
-
}
|
|
54491
|
-
function compactMap(values) {
|
|
54492
|
-
const out = {};
|
|
54493
|
-
for (const [k2, v2] of Object.entries(values)) {
|
|
54494
|
-
if (typeof v2 !== "undefined") {
|
|
54495
|
-
out[k2] = v2;
|
|
54496
|
-
}
|
|
54497
|
-
}
|
|
54498
|
-
return out;
|
|
54499
|
-
}
|
|
54500
|
-
var init_primitives = () => {};
|
|
54501
|
-
|
|
54502
54561
|
// src/lib/schemas.ts
|
|
54503
54562
|
function safeParse4(rawValue, fn, errorMessage) {
|
|
54504
54563
|
try {
|
|
@@ -55295,10 +55354,53 @@ var init_customtags = __esm(() => {
|
|
|
55295
55354
|
});
|
|
55296
55355
|
|
|
55297
55356
|
// src/models/deployconfig.ts
|
|
55298
|
-
var Partition$inboundSchema, Partition$outboundSchema, DeployConfigAttributes$inboundSchema, DeployConfigAttributes$outboundSchema, DeployConfigData$inboundSchema, DeployConfigData$outboundSchema, DeployConfig$inboundSchema, DeployConfig$outboundSchema;
|
|
55357
|
+
var DeployConfigRole, RaidLevel, Filesystem, DeployConfigRole$inboundSchema, DeployConfigRole$outboundSchema, RaidLevel$inboundSchema, RaidLevel$outboundSchema, Filesystem$inboundSchema, Filesystem$outboundSchema, DiskLayout$inboundSchema, DiskLayout$outboundSchema, Partition$inboundSchema, Partition$outboundSchema, DeployConfigAttributes$inboundSchema, DeployConfigAttributes$outboundSchema, DeployConfigData$inboundSchema, DeployConfigData$outboundSchema, DeployConfig$inboundSchema, DeployConfig$outboundSchema;
|
|
55299
55358
|
var init_deployconfig = __esm(() => {
|
|
55300
55359
|
init_v3();
|
|
55301
55360
|
init_primitives();
|
|
55361
|
+
DeployConfigRole = {
|
|
55362
|
+
Os: "os",
|
|
55363
|
+
Storage: "storage",
|
|
55364
|
+
Raw: "raw"
|
|
55365
|
+
};
|
|
55366
|
+
RaidLevel = {
|
|
55367
|
+
Raid0: "raid-0",
|
|
55368
|
+
Raid1: "raid-1"
|
|
55369
|
+
};
|
|
55370
|
+
Filesystem = {
|
|
55371
|
+
Ext4: "ext4",
|
|
55372
|
+
Xfs: "xfs"
|
|
55373
|
+
};
|
|
55374
|
+
DeployConfigRole$inboundSchema = nativeEnumType(DeployConfigRole);
|
|
55375
|
+
DeployConfigRole$outboundSchema = DeployConfigRole$inboundSchema;
|
|
55376
|
+
RaidLevel$inboundSchema = nativeEnumType(RaidLevel);
|
|
55377
|
+
RaidLevel$outboundSchema = RaidLevel$inboundSchema;
|
|
55378
|
+
Filesystem$inboundSchema = nativeEnumType(Filesystem);
|
|
55379
|
+
Filesystem$outboundSchema = Filesystem$inboundSchema;
|
|
55380
|
+
DiskLayout$inboundSchema = objectType({
|
|
55381
|
+
count: numberType().int(),
|
|
55382
|
+
role: DeployConfigRole$inboundSchema,
|
|
55383
|
+
raid_level: nullableType(RaidLevel$inboundSchema).optional(),
|
|
55384
|
+
filesystem: nullableType(Filesystem$inboundSchema).optional(),
|
|
55385
|
+
mount_point: nullableType(stringType()).optional()
|
|
55386
|
+
}).transform((v2) => {
|
|
55387
|
+
return remap(v2, {
|
|
55388
|
+
raid_level: "raidLevel",
|
|
55389
|
+
mount_point: "mountPoint"
|
|
55390
|
+
});
|
|
55391
|
+
});
|
|
55392
|
+
DiskLayout$outboundSchema = objectType({
|
|
55393
|
+
count: numberType().int(),
|
|
55394
|
+
role: DeployConfigRole$outboundSchema,
|
|
55395
|
+
raidLevel: nullableType(RaidLevel$outboundSchema).optional(),
|
|
55396
|
+
filesystem: nullableType(Filesystem$outboundSchema).optional(),
|
|
55397
|
+
mountPoint: nullableType(stringType()).optional()
|
|
55398
|
+
}).transform((v2) => {
|
|
55399
|
+
return remap(v2, {
|
|
55400
|
+
raidLevel: "raid_level",
|
|
55401
|
+
mountPoint: "mount_point"
|
|
55402
|
+
});
|
|
55403
|
+
});
|
|
55302
55404
|
Partition$inboundSchema = objectType({
|
|
55303
55405
|
path: stringType().optional(),
|
|
55304
55406
|
size_in_gb: numberType().int().optional(),
|
|
@@ -55323,12 +55425,14 @@ var init_deployconfig = __esm(() => {
|
|
|
55323
55425
|
operating_system: stringType().optional(),
|
|
55324
55426
|
hostname: stringType().optional(),
|
|
55325
55427
|
raid: stringType().optional(),
|
|
55428
|
+
disk_layout: nullableType(arrayType(lazyType(() => DiskLayout$inboundSchema))).optional(),
|
|
55326
55429
|
user_data: stringType().optional(),
|
|
55327
55430
|
ssh_keys: arrayType(stringType()).optional(),
|
|
55328
55431
|
partitions: nullableType(arrayType(lazyType(() => Partition$inboundSchema))).optional()
|
|
55329
55432
|
}).transform((v2) => {
|
|
55330
55433
|
return remap(v2, {
|
|
55331
55434
|
operating_system: "operatingSystem",
|
|
55435
|
+
disk_layout: "diskLayout",
|
|
55332
55436
|
user_data: "userData",
|
|
55333
55437
|
ssh_keys: "sshKeys"
|
|
55334
55438
|
});
|
|
@@ -55337,12 +55441,14 @@ var init_deployconfig = __esm(() => {
|
|
|
55337
55441
|
operatingSystem: stringType().optional(),
|
|
55338
55442
|
hostname: stringType().optional(),
|
|
55339
55443
|
raid: stringType().optional(),
|
|
55444
|
+
diskLayout: nullableType(arrayType(lazyType(() => DiskLayout$outboundSchema))).optional(),
|
|
55340
55445
|
userData: stringType().optional(),
|
|
55341
55446
|
sshKeys: arrayType(stringType()).optional(),
|
|
55342
55447
|
partitions: nullableType(arrayType(lazyType(() => Partition$outboundSchema))).optional()
|
|
55343
55448
|
}).transform((v2) => {
|
|
55344
55449
|
return remap(v2, {
|
|
55345
55450
|
operatingSystem: "operating_system",
|
|
55451
|
+
diskLayout: "disk_layout",
|
|
55346
55452
|
userData: "user_data",
|
|
55347
55453
|
sshKeys: "ssh_keys"
|
|
55348
55454
|
});
|
|
@@ -56895,7 +57001,7 @@ var init_operatingsystemdata = __esm(() => {
|
|
|
56895
57001
|
init_v3();
|
|
56896
57002
|
init_primitives();
|
|
56897
57003
|
OperatingSystemDataType = {
|
|
56898
|
-
|
|
57004
|
+
OperatingSystem: "operating_system"
|
|
56899
57005
|
};
|
|
56900
57006
|
OperatingSystemDataType$inboundSchema = nativeEnumType(OperatingSystemDataType);
|
|
56901
57007
|
OperatingSystemDataType$outboundSchema = OperatingSystemDataType$inboundSchema;
|
|
@@ -57049,6 +57155,30 @@ var init_outofbandconnection = __esm(() => {
|
|
|
57049
57155
|
});
|
|
57050
57156
|
});
|
|
57051
57157
|
|
|
57158
|
+
// src/models/paginationmeta.ts
|
|
57159
|
+
var Total$inboundSchema, Total$outboundSchema, PaginationMetaStats$inboundSchema, PaginationMetaStats$outboundSchema, PaginationMeta$inboundSchema, PaginationMeta$outboundSchema;
|
|
57160
|
+
var init_paginationmeta = __esm(() => {
|
|
57161
|
+
init_v3();
|
|
57162
|
+
Total$inboundSchema = objectType({
|
|
57163
|
+
count: numberType().int().optional()
|
|
57164
|
+
});
|
|
57165
|
+
Total$outboundSchema = objectType({
|
|
57166
|
+
count: numberType().int().optional()
|
|
57167
|
+
});
|
|
57168
|
+
PaginationMetaStats$inboundSchema = objectType({
|
|
57169
|
+
total: lazyType(() => Total$inboundSchema).optional()
|
|
57170
|
+
});
|
|
57171
|
+
PaginationMetaStats$outboundSchema = objectType({
|
|
57172
|
+
total: lazyType(() => Total$outboundSchema).optional()
|
|
57173
|
+
});
|
|
57174
|
+
PaginationMeta$inboundSchema = objectType({
|
|
57175
|
+
stats: lazyType(() => PaginationMetaStats$inboundSchema).optional()
|
|
57176
|
+
});
|
|
57177
|
+
PaginationMeta$outboundSchema = objectType({
|
|
57178
|
+
stats: lazyType(() => PaginationMetaStats$outboundSchema).optional()
|
|
57179
|
+
});
|
|
57180
|
+
});
|
|
57181
|
+
|
|
57052
57182
|
// src/models/plandata.ts
|
|
57053
57183
|
var TypePlans, Feature, DriveType, PlanDataStockLevel, TypePlans$inboundSchema, TypePlans$outboundSchema, Feature$inboundSchema, Feature$outboundSchema, Cpu$inboundSchema, Cpu$outboundSchema, Memory$inboundSchema, Memory$outboundSchema, DriveType$inboundSchema, DriveType$outboundSchema, Drive$inboundSchema, Drive$outboundSchema, PlanDataNic$inboundSchema, PlanDataNic$outboundSchema, Gpu$inboundSchema, Gpu$outboundSchema, PlanDataSpecs$inboundSchema, PlanDataSpecs$outboundSchema, PlanDataLocations$inboundSchema, PlanDataLocations$outboundSchema, PlanDataStockLevel$inboundSchema, PlanDataStockLevel$outboundSchema, PlanDataUSD$inboundSchema, PlanDataUSD$outboundSchema, PlanDataBRL$inboundSchema, PlanDataBRL$outboundSchema, PlanDataPricing$inboundSchema, PlanDataPricing$outboundSchema, PlanDataRegion$inboundSchema, PlanDataRegion$outboundSchema, PlanDataAttributes$inboundSchema, PlanDataAttributes$outboundSchema, PlanData$inboundSchema, PlanData$outboundSchema;
|
|
57054
57184
|
var init_plandata = __esm(() => {
|
|
@@ -58005,7 +58135,7 @@ var init_userinclude = __esm(() => {
|
|
|
58005
58135
|
});
|
|
58006
58136
|
|
|
58007
58137
|
// src/models/sshkeydata.ts
|
|
58008
|
-
var SshKeyDataType, SshKeyDataType$inboundSchema, SshKeyDataType$outboundSchema, SshKeyDataAttributes$inboundSchema, SshKeyDataAttributes$outboundSchema, SshKeyData$inboundSchema, SshKeyData$outboundSchema;
|
|
58138
|
+
var SshKeyDataType, SshKeyDataType$inboundSchema, SshKeyDataType$outboundSchema, SshKeyDataTag$inboundSchema, SshKeyDataTag$outboundSchema, SshKeyDataAttributes$inboundSchema, SshKeyDataAttributes$outboundSchema, SshKeyData$inboundSchema, SshKeyData$outboundSchema;
|
|
58009
58139
|
var init_sshkeydata = __esm(() => {
|
|
58010
58140
|
init_v3();
|
|
58011
58141
|
init_primitives();
|
|
@@ -58016,7 +58146,20 @@ var init_sshkeydata = __esm(() => {
|
|
|
58016
58146
|
};
|
|
58017
58147
|
SshKeyDataType$inboundSchema = nativeEnumType(SshKeyDataType);
|
|
58018
58148
|
SshKeyDataType$outboundSchema = SshKeyDataType$inboundSchema;
|
|
58149
|
+
SshKeyDataTag$inboundSchema = objectType({
|
|
58150
|
+
id: stringType().optional(),
|
|
58151
|
+
name: stringType().optional(),
|
|
58152
|
+
description: nullableType(stringType()).optional(),
|
|
58153
|
+
color: nullableType(stringType()).optional()
|
|
58154
|
+
});
|
|
58155
|
+
SshKeyDataTag$outboundSchema = objectType({
|
|
58156
|
+
id: stringType().optional(),
|
|
58157
|
+
name: stringType().optional(),
|
|
58158
|
+
description: nullableType(stringType()).optional(),
|
|
58159
|
+
color: nullableType(stringType()).optional()
|
|
58160
|
+
});
|
|
58019
58161
|
SshKeyDataAttributes$inboundSchema = objectType({
|
|
58162
|
+
tags: arrayType(lazyType(() => SshKeyDataTag$inboundSchema)).optional(),
|
|
58020
58163
|
name: stringType().optional(),
|
|
58021
58164
|
public_key: stringType().optional(),
|
|
58022
58165
|
fingerprint: stringType().optional(),
|
|
@@ -58032,6 +58175,7 @@ var init_sshkeydata = __esm(() => {
|
|
|
58032
58175
|
});
|
|
58033
58176
|
});
|
|
58034
58177
|
SshKeyDataAttributes$outboundSchema = objectType({
|
|
58178
|
+
tags: arrayType(lazyType(() => SshKeyDataTag$outboundSchema)).optional(),
|
|
58035
58179
|
name: stringType().optional(),
|
|
58036
58180
|
publicKey: stringType().optional(),
|
|
58037
58181
|
fingerprint: stringType().optional(),
|
|
@@ -58059,19 +58203,18 @@ var init_sshkeydata = __esm(() => {
|
|
|
58059
58203
|
});
|
|
58060
58204
|
|
|
58061
58205
|
// src/models/sshkeys.ts
|
|
58062
|
-
var
|
|
58206
|
+
var SshKeys$inboundSchema, SshKeys$outboundSchema;
|
|
58063
58207
|
var init_sshkeys = __esm(() => {
|
|
58064
58208
|
init_v3();
|
|
58209
|
+
init_paginationmeta();
|
|
58065
58210
|
init_sshkeydata();
|
|
58066
|
-
SshKeysMeta$inboundSchema = objectType({});
|
|
58067
|
-
SshKeysMeta$outboundSchema = objectType({});
|
|
58068
58211
|
SshKeys$inboundSchema = objectType({
|
|
58069
58212
|
data: arrayType(SshKeyData$inboundSchema).optional(),
|
|
58070
|
-
meta:
|
|
58213
|
+
meta: PaginationMeta$inboundSchema.optional()
|
|
58071
58214
|
});
|
|
58072
58215
|
SshKeys$outboundSchema = objectType({
|
|
58073
58216
|
data: arrayType(SshKeyData$outboundSchema).optional(),
|
|
58074
|
-
meta:
|
|
58217
|
+
meta: PaginationMeta$outboundSchema.optional()
|
|
58075
58218
|
});
|
|
58076
58219
|
});
|
|
58077
58220
|
|
|
@@ -58956,7 +59099,7 @@ var init_userupdate = __esm(() => {
|
|
|
58956
59099
|
});
|
|
58957
59100
|
|
|
58958
59101
|
// src/models/virtualmachineattributes.ts
|
|
58959
|
-
var VirtualMachineAttributesType, VirtualMachineAttributesStatus, VirtualMachineAttributesType$inboundSchema, VirtualMachineAttributesType$outboundSchema, VirtualMachineAttributesStatus$inboundSchema, VirtualMachineAttributesStatus$outboundSchema, VirtualMachineAttributesFeatures$inboundSchema, VirtualMachineAttributesFeatures$outboundSchema, VirtualMachineAttributesDistro$inboundSchema, VirtualMachineAttributesDistro$outboundSchema, VirtualMachineAttributesOperatingSystem$inboundSchema, VirtualMachineAttributesOperatingSystem$outboundSchema, VirtualMachineAttributesCredentials$inboundSchema, VirtualMachineAttributesCredentials$outboundSchema, VirtualMachineAttributesPlan$inboundSchema, VirtualMachineAttributesPlan$outboundSchema, VirtualMachineAttributesSpecs$inboundSchema, VirtualMachineAttributesSpecs$outboundSchema, VirtualMachineAttributesAttributes$inboundSchema, VirtualMachineAttributesAttributes$outboundSchema, VirtualMachineAttributes$inboundSchema, VirtualMachineAttributes$outboundSchema;
|
|
59102
|
+
var VirtualMachineAttributesType, VirtualMachineAttributesStatus, VirtualMachineAttributesType$inboundSchema, VirtualMachineAttributesType$outboundSchema, VirtualMachineAttributesStatus$inboundSchema, VirtualMachineAttributesStatus$outboundSchema, VirtualMachineAttributesFeatures$inboundSchema, VirtualMachineAttributesFeatures$outboundSchema, VirtualMachineAttributesDistro$inboundSchema, VirtualMachineAttributesDistro$outboundSchema, VirtualMachineAttributesOperatingSystem$inboundSchema, VirtualMachineAttributesOperatingSystem$outboundSchema, VirtualMachineAttributesCredentials$inboundSchema, VirtualMachineAttributesCredentials$outboundSchema, VirtualMachineAttributesPlan$inboundSchema, VirtualMachineAttributesPlan$outboundSchema, VirtualMachineAttributesSpecs$inboundSchema, VirtualMachineAttributesSpecs$outboundSchema, VirtualMachineAttributesTag$inboundSchema, VirtualMachineAttributesTag$outboundSchema, VirtualMachineAttributesAttributes$inboundSchema, VirtualMachineAttributesAttributes$outboundSchema, VirtualMachineAttributes$inboundSchema, VirtualMachineAttributes$outboundSchema;
|
|
58960
59103
|
var init_virtualmachineattributes = __esm(() => {
|
|
58961
59104
|
init_v3();
|
|
58962
59105
|
init_primitives();
|
|
@@ -59063,6 +59206,18 @@ var init_virtualmachineattributes = __esm(() => {
|
|
|
59063
59206
|
nic: nullableType(stringType()).optional(),
|
|
59064
59207
|
gpu: nullableType(stringType()).optional()
|
|
59065
59208
|
});
|
|
59209
|
+
VirtualMachineAttributesTag$inboundSchema = objectType({
|
|
59210
|
+
id: stringType().optional(),
|
|
59211
|
+
name: stringType().optional(),
|
|
59212
|
+
description: nullableType(stringType()).optional(),
|
|
59213
|
+
color: nullableType(stringType()).optional()
|
|
59214
|
+
});
|
|
59215
|
+
VirtualMachineAttributesTag$outboundSchema = objectType({
|
|
59216
|
+
id: stringType().optional(),
|
|
59217
|
+
name: stringType().optional(),
|
|
59218
|
+
description: nullableType(stringType()).optional(),
|
|
59219
|
+
color: nullableType(stringType()).optional()
|
|
59220
|
+
});
|
|
59066
59221
|
VirtualMachineAttributesAttributes$inboundSchema = objectType({
|
|
59067
59222
|
name: stringType().optional(),
|
|
59068
59223
|
created_at: stringType().optional(),
|
|
@@ -59070,15 +59225,22 @@ var init_virtualmachineattributes = __esm(() => {
|
|
|
59070
59225
|
primary_ipv4: nullableType(stringType()).optional(),
|
|
59071
59226
|
operating_system: nullableType(lazyType(() => VirtualMachineAttributesOperatingSystem$inboundSchema)).optional(),
|
|
59072
59227
|
credentials: nullableType(lazyType(() => VirtualMachineAttributesCredentials$inboundSchema)).optional(),
|
|
59228
|
+
site: nullableType(stringType()).optional(),
|
|
59229
|
+
billing: nullableType(stringType()).optional(),
|
|
59230
|
+
user_data: nullableType(stringType()).optional(),
|
|
59073
59231
|
plan: lazyType(() => VirtualMachineAttributesPlan$inboundSchema).optional(),
|
|
59074
59232
|
specs: lazyType(() => VirtualMachineAttributesSpecs$inboundSchema).optional(),
|
|
59233
|
+
tags: arrayType(lazyType(() => VirtualMachineAttributesTag$inboundSchema)).optional(),
|
|
59075
59234
|
team: TeamInclude$inboundSchema.optional(),
|
|
59076
|
-
project: ProjectInclude$inboundSchema.optional()
|
|
59235
|
+
project: ProjectInclude$inboundSchema.optional(),
|
|
59236
|
+
pending_restart: booleanType().optional()
|
|
59077
59237
|
}).transform((v2) => {
|
|
59078
59238
|
return remap(v2, {
|
|
59079
59239
|
created_at: "createdAt",
|
|
59080
59240
|
primary_ipv4: "primaryIpv4",
|
|
59081
|
-
operating_system: "operatingSystem"
|
|
59241
|
+
operating_system: "operatingSystem",
|
|
59242
|
+
user_data: "userData",
|
|
59243
|
+
pending_restart: "pendingRestart"
|
|
59082
59244
|
});
|
|
59083
59245
|
});
|
|
59084
59246
|
VirtualMachineAttributesAttributes$outboundSchema = objectType({
|
|
@@ -59088,15 +59250,22 @@ var init_virtualmachineattributes = __esm(() => {
|
|
|
59088
59250
|
primaryIpv4: nullableType(stringType()).optional(),
|
|
59089
59251
|
operatingSystem: nullableType(lazyType(() => VirtualMachineAttributesOperatingSystem$outboundSchema)).optional(),
|
|
59090
59252
|
credentials: nullableType(lazyType(() => VirtualMachineAttributesCredentials$outboundSchema)).optional(),
|
|
59253
|
+
site: nullableType(stringType()).optional(),
|
|
59254
|
+
billing: nullableType(stringType()).optional(),
|
|
59255
|
+
userData: nullableType(stringType()).optional(),
|
|
59091
59256
|
plan: lazyType(() => VirtualMachineAttributesPlan$outboundSchema).optional(),
|
|
59092
59257
|
specs: lazyType(() => VirtualMachineAttributesSpecs$outboundSchema).optional(),
|
|
59258
|
+
tags: arrayType(lazyType(() => VirtualMachineAttributesTag$outboundSchema)).optional(),
|
|
59093
59259
|
team: TeamInclude$outboundSchema.optional(),
|
|
59094
|
-
project: ProjectInclude$outboundSchema.optional()
|
|
59260
|
+
project: ProjectInclude$outboundSchema.optional(),
|
|
59261
|
+
pendingRestart: booleanType().optional()
|
|
59095
59262
|
}).transform((v2) => {
|
|
59096
59263
|
return remap(v2, {
|
|
59097
59264
|
createdAt: "created_at",
|
|
59098
59265
|
primaryIpv4: "primary_ipv4",
|
|
59099
|
-
operatingSystem: "operating_system"
|
|
59266
|
+
operatingSystem: "operating_system",
|
|
59267
|
+
userData: "user_data",
|
|
59268
|
+
pendingRestart: "pending_restart"
|
|
59100
59269
|
});
|
|
59101
59270
|
});
|
|
59102
59271
|
VirtualMachineAttributes$inboundSchema = objectType({
|
|
@@ -59128,8 +59297,157 @@ var init_virtualmachine = __esm(() => {
|
|
|
59128
59297
|
});
|
|
59129
59298
|
});
|
|
59130
59299
|
|
|
59300
|
+
// src/models/virtualmachinemetrics.ts
|
|
59301
|
+
var Metric, Range, VirtualMachineMetricsUnit, Metric$inboundSchema, Metric$outboundSchema, Range$inboundSchema, Range$outboundSchema, VirtualMachineMetricsUnit$inboundSchema, VirtualMachineMetricsUnit$outboundSchema, Point$inboundSchema, Point$outboundSchema, VirtualMachineMetrics$inboundSchema, VirtualMachineMetrics$outboundSchema;
|
|
59302
|
+
var init_virtualmachinemetrics = __esm(() => {
|
|
59303
|
+
init_v3();
|
|
59304
|
+
Metric = {
|
|
59305
|
+
Cpu: "cpu",
|
|
59306
|
+
Memory: "memory",
|
|
59307
|
+
Network: "network",
|
|
59308
|
+
Disk: "disk"
|
|
59309
|
+
};
|
|
59310
|
+
Range = {
|
|
59311
|
+
Fivem: "5m",
|
|
59312
|
+
Fifteenm: "15m",
|
|
59313
|
+
Oneh: "1h",
|
|
59314
|
+
TwentyFourh: "24h"
|
|
59315
|
+
};
|
|
59316
|
+
VirtualMachineMetricsUnit = {
|
|
59317
|
+
Percent: "percent",
|
|
59318
|
+
BytesPerSecond: "bytes_per_second"
|
|
59319
|
+
};
|
|
59320
|
+
Metric$inboundSchema = nativeEnumType(Metric);
|
|
59321
|
+
Metric$outboundSchema = Metric$inboundSchema;
|
|
59322
|
+
Range$inboundSchema = nativeEnumType(Range);
|
|
59323
|
+
Range$outboundSchema = Range$inboundSchema;
|
|
59324
|
+
VirtualMachineMetricsUnit$inboundSchema = nativeEnumType(VirtualMachineMetricsUnit);
|
|
59325
|
+
VirtualMachineMetricsUnit$outboundSchema = VirtualMachineMetricsUnit$inboundSchema;
|
|
59326
|
+
Point$inboundSchema = objectType({
|
|
59327
|
+
timestamp: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
59328
|
+
value: numberType().optional()
|
|
59329
|
+
});
|
|
59330
|
+
Point$outboundSchema = objectType({
|
|
59331
|
+
timestamp: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
59332
|
+
value: numberType().optional()
|
|
59333
|
+
});
|
|
59334
|
+
VirtualMachineMetrics$inboundSchema = objectType({
|
|
59335
|
+
metric: Metric$inboundSchema.optional(),
|
|
59336
|
+
range: Range$inboundSchema.optional(),
|
|
59337
|
+
step: stringType().optional(),
|
|
59338
|
+
unit: VirtualMachineMetricsUnit$inboundSchema.optional(),
|
|
59339
|
+
points: arrayType(lazyType(() => Point$inboundSchema)).optional()
|
|
59340
|
+
});
|
|
59341
|
+
VirtualMachineMetrics$outboundSchema = objectType({
|
|
59342
|
+
metric: Metric$outboundSchema.optional(),
|
|
59343
|
+
range: Range$outboundSchema.optional(),
|
|
59344
|
+
step: stringType().optional(),
|
|
59345
|
+
unit: VirtualMachineMetricsUnit$outboundSchema.optional(),
|
|
59346
|
+
points: arrayType(lazyType(() => Point$outboundSchema)).optional()
|
|
59347
|
+
});
|
|
59348
|
+
});
|
|
59349
|
+
|
|
59350
|
+
// src/models/virtualmachinenetworkattachmentcreatepayload.ts
|
|
59351
|
+
var VirtualMachineNetworkAttachmentCreatePayloadType, VirtualMachineNetworkAttachmentCreatePayloadType$inboundSchema, VirtualMachineNetworkAttachmentCreatePayloadType$outboundSchema, VirtualMachineNetworkAttachmentCreatePayloadAttributes$inboundSchema, VirtualMachineNetworkAttachmentCreatePayloadAttributes$outboundSchema, VirtualMachineNetworkAttachmentCreatePayloadData$inboundSchema, VirtualMachineNetworkAttachmentCreatePayloadData$outboundSchema, VirtualMachineNetworkAttachmentCreatePayload$inboundSchema, VirtualMachineNetworkAttachmentCreatePayload$outboundSchema;
|
|
59352
|
+
var init_virtualmachinenetworkattachmentcreatepayload = __esm(() => {
|
|
59353
|
+
init_v3();
|
|
59354
|
+
init_primitives();
|
|
59355
|
+
VirtualMachineNetworkAttachmentCreatePayloadType = {
|
|
59356
|
+
VirtualMachineNetworkAttachments: "virtual_machine_network_attachments"
|
|
59357
|
+
};
|
|
59358
|
+
VirtualMachineNetworkAttachmentCreatePayloadType$inboundSchema = nativeEnumType(VirtualMachineNetworkAttachmentCreatePayloadType);
|
|
59359
|
+
VirtualMachineNetworkAttachmentCreatePayloadType$outboundSchema = VirtualMachineNetworkAttachmentCreatePayloadType$inboundSchema;
|
|
59360
|
+
VirtualMachineNetworkAttachmentCreatePayloadAttributes$inboundSchema = objectType({
|
|
59361
|
+
virtual_network_id: stringType()
|
|
59362
|
+
}).transform((v2) => {
|
|
59363
|
+
return remap(v2, {
|
|
59364
|
+
virtual_network_id: "virtualNetworkId"
|
|
59365
|
+
});
|
|
59366
|
+
});
|
|
59367
|
+
VirtualMachineNetworkAttachmentCreatePayloadAttributes$outboundSchema = objectType({
|
|
59368
|
+
virtualNetworkId: stringType()
|
|
59369
|
+
}).transform((v2) => {
|
|
59370
|
+
return remap(v2, {
|
|
59371
|
+
virtualNetworkId: "virtual_network_id"
|
|
59372
|
+
});
|
|
59373
|
+
});
|
|
59374
|
+
VirtualMachineNetworkAttachmentCreatePayloadData$inboundSchema = objectType({
|
|
59375
|
+
type: VirtualMachineNetworkAttachmentCreatePayloadType$inboundSchema,
|
|
59376
|
+
attributes: lazyType(() => VirtualMachineNetworkAttachmentCreatePayloadAttributes$inboundSchema)
|
|
59377
|
+
});
|
|
59378
|
+
VirtualMachineNetworkAttachmentCreatePayloadData$outboundSchema = objectType({
|
|
59379
|
+
type: VirtualMachineNetworkAttachmentCreatePayloadType$outboundSchema,
|
|
59380
|
+
attributes: lazyType(() => VirtualMachineNetworkAttachmentCreatePayloadAttributes$outboundSchema)
|
|
59381
|
+
});
|
|
59382
|
+
VirtualMachineNetworkAttachmentCreatePayload$inboundSchema = objectType({
|
|
59383
|
+
data: lazyType(() => VirtualMachineNetworkAttachmentCreatePayloadData$inboundSchema)
|
|
59384
|
+
});
|
|
59385
|
+
VirtualMachineNetworkAttachmentCreatePayload$outboundSchema = objectType({
|
|
59386
|
+
data: lazyType(() => VirtualMachineNetworkAttachmentCreatePayloadData$outboundSchema)
|
|
59387
|
+
});
|
|
59388
|
+
});
|
|
59389
|
+
|
|
59390
|
+
// src/models/virtualmachinenetworkattachmentresource.ts
|
|
59391
|
+
var VirtualMachineNetworkAttachmentResourceType, VirtualMachineNetworkAttachmentResourceType$inboundSchema, VirtualMachineNetworkAttachmentResourceType$outboundSchema, VirtualMachineNetworkAttachmentResourceAttributes$inboundSchema, VirtualMachineNetworkAttachmentResourceAttributes$outboundSchema, VirtualMachineNetworkAttachmentResource$inboundSchema, VirtualMachineNetworkAttachmentResource$outboundSchema;
|
|
59392
|
+
var init_virtualmachinenetworkattachmentresource = __esm(() => {
|
|
59393
|
+
init_v3();
|
|
59394
|
+
init_primitives();
|
|
59395
|
+
VirtualMachineNetworkAttachmentResourceType = {
|
|
59396
|
+
VirtualMachineNetworkAttachments: "virtual_machine_network_attachments"
|
|
59397
|
+
};
|
|
59398
|
+
VirtualMachineNetworkAttachmentResourceType$inboundSchema = nativeEnumType(VirtualMachineNetworkAttachmentResourceType);
|
|
59399
|
+
VirtualMachineNetworkAttachmentResourceType$outboundSchema = VirtualMachineNetworkAttachmentResourceType$inboundSchema;
|
|
59400
|
+
VirtualMachineNetworkAttachmentResourceAttributes$inboundSchema = objectType({
|
|
59401
|
+
virtual_network_id: stringType().optional(),
|
|
59402
|
+
vid: numberType().int().optional(),
|
|
59403
|
+
nad_name: stringType().optional(),
|
|
59404
|
+
pending_restart: booleanType().optional()
|
|
59405
|
+
}).transform((v2) => {
|
|
59406
|
+
return remap(v2, {
|
|
59407
|
+
virtual_network_id: "virtualNetworkId",
|
|
59408
|
+
nad_name: "nadName",
|
|
59409
|
+
pending_restart: "pendingRestart"
|
|
59410
|
+
});
|
|
59411
|
+
});
|
|
59412
|
+
VirtualMachineNetworkAttachmentResourceAttributes$outboundSchema = objectType({
|
|
59413
|
+
virtualNetworkId: stringType().optional(),
|
|
59414
|
+
vid: numberType().int().optional(),
|
|
59415
|
+
nadName: stringType().optional(),
|
|
59416
|
+
pendingRestart: booleanType().optional()
|
|
59417
|
+
}).transform((v2) => {
|
|
59418
|
+
return remap(v2, {
|
|
59419
|
+
virtualNetworkId: "virtual_network_id",
|
|
59420
|
+
nadName: "nad_name",
|
|
59421
|
+
pendingRestart: "pending_restart"
|
|
59422
|
+
});
|
|
59423
|
+
});
|
|
59424
|
+
VirtualMachineNetworkAttachmentResource$inboundSchema = objectType({
|
|
59425
|
+
id: stringType().optional(),
|
|
59426
|
+
type: VirtualMachineNetworkAttachmentResourceType$inboundSchema.optional(),
|
|
59427
|
+
attributes: lazyType(() => VirtualMachineNetworkAttachmentResourceAttributes$inboundSchema).optional()
|
|
59428
|
+
});
|
|
59429
|
+
VirtualMachineNetworkAttachmentResource$outboundSchema = objectType({
|
|
59430
|
+
id: stringType().optional(),
|
|
59431
|
+
type: VirtualMachineNetworkAttachmentResourceType$outboundSchema.optional(),
|
|
59432
|
+
attributes: lazyType(() => VirtualMachineNetworkAttachmentResourceAttributes$outboundSchema).optional()
|
|
59433
|
+
});
|
|
59434
|
+
});
|
|
59435
|
+
|
|
59436
|
+
// src/models/virtualmachinenetworkattachments.ts
|
|
59437
|
+
var VirtualMachineNetworkAttachments$inboundSchema, VirtualMachineNetworkAttachments$outboundSchema;
|
|
59438
|
+
var init_virtualmachinenetworkattachments = __esm(() => {
|
|
59439
|
+
init_v3();
|
|
59440
|
+
init_virtualmachinenetworkattachmentresource();
|
|
59441
|
+
VirtualMachineNetworkAttachments$inboundSchema = objectType({
|
|
59442
|
+
data: arrayType(VirtualMachineNetworkAttachmentResource$inboundSchema).optional()
|
|
59443
|
+
});
|
|
59444
|
+
VirtualMachineNetworkAttachments$outboundSchema = objectType({
|
|
59445
|
+
data: arrayType(VirtualMachineNetworkAttachmentResource$outboundSchema).optional()
|
|
59446
|
+
});
|
|
59447
|
+
});
|
|
59448
|
+
|
|
59131
59449
|
// src/models/virtualmachinepayload.ts
|
|
59132
|
-
var VirtualMachinePayloadType, VirtualMachinePayloadType$inboundSchema, VirtualMachinePayloadType$outboundSchema, VirtualMachinePayloadAttributes$inboundSchema, VirtualMachinePayloadAttributes$outboundSchema, VirtualMachinePayloadData$inboundSchema, VirtualMachinePayloadData$outboundSchema, VirtualMachinePayload$inboundSchema, VirtualMachinePayload$outboundSchema;
|
|
59450
|
+
var VirtualMachinePayloadType, VirtualMachinePayloadType$inboundSchema, VirtualMachinePayloadType$outboundSchema, UserDataUnion$inboundSchema, UserDataUnion$outboundSchema, VirtualMachinePayloadAttributes$inboundSchema, VirtualMachinePayloadAttributes$outboundSchema, VirtualMachinePayloadData$inboundSchema, VirtualMachinePayloadData$outboundSchema, VirtualMachinePayload$inboundSchema, VirtualMachinePayload$outboundSchema;
|
|
59133
59451
|
var init_virtualmachinepayload = __esm(() => {
|
|
59134
59452
|
init_v3();
|
|
59135
59453
|
init_primitives();
|
|
@@ -59138,16 +59456,21 @@ var init_virtualmachinepayload = __esm(() => {
|
|
|
59138
59456
|
};
|
|
59139
59457
|
VirtualMachinePayloadType$inboundSchema = nativeEnumType(VirtualMachinePayloadType);
|
|
59140
59458
|
VirtualMachinePayloadType$outboundSchema = VirtualMachinePayloadType$inboundSchema;
|
|
59459
|
+
UserDataUnion$inboundSchema = unionType([numberType().int(), stringType()]);
|
|
59460
|
+
UserDataUnion$outboundSchema = unionType([numberType().int(), stringType()]);
|
|
59141
59461
|
VirtualMachinePayloadAttributes$inboundSchema = objectType({
|
|
59142
59462
|
name: stringType().default("my-vm"),
|
|
59143
59463
|
plan: nullableType(stringType()).optional(),
|
|
59144
59464
|
ssh_keys: nullableType(arrayType(stringType())).optional(),
|
|
59145
59465
|
project: stringType().default("my-project"),
|
|
59146
|
-
operating_system: nullableType(stringType()).optional()
|
|
59466
|
+
operating_system: nullableType(stringType()).optional(),
|
|
59467
|
+
user_data: nullableType(unionType([numberType().int(), stringType()])).optional(),
|
|
59468
|
+
tags: nullableType(arrayType(stringType())).optional()
|
|
59147
59469
|
}).transform((v2) => {
|
|
59148
59470
|
return remap(v2, {
|
|
59149
59471
|
ssh_keys: "sshKeys",
|
|
59150
|
-
operating_system: "operatingSystem"
|
|
59472
|
+
operating_system: "operatingSystem",
|
|
59473
|
+
user_data: "userData"
|
|
59151
59474
|
});
|
|
59152
59475
|
});
|
|
59153
59476
|
VirtualMachinePayloadAttributes$outboundSchema = objectType({
|
|
@@ -59155,11 +59478,14 @@ var init_virtualmachinepayload = __esm(() => {
|
|
|
59155
59478
|
plan: nullableType(stringType()).optional(),
|
|
59156
59479
|
sshKeys: nullableType(arrayType(stringType())).optional(),
|
|
59157
59480
|
project: stringType().default("my-project"),
|
|
59158
|
-
operatingSystem: nullableType(stringType()).optional()
|
|
59481
|
+
operatingSystem: nullableType(stringType()).optional(),
|
|
59482
|
+
userData: nullableType(unionType([numberType().int(), stringType()])).optional(),
|
|
59483
|
+
tags: nullableType(arrayType(stringType())).optional()
|
|
59159
59484
|
}).transform((v2) => {
|
|
59160
59485
|
return remap(v2, {
|
|
59161
59486
|
sshKeys: "ssh_keys",
|
|
59162
|
-
operatingSystem: "operating_system"
|
|
59487
|
+
operatingSystem: "operating_system",
|
|
59488
|
+
userData: "user_data"
|
|
59163
59489
|
});
|
|
59164
59490
|
});
|
|
59165
59491
|
VirtualMachinePayloadData$inboundSchema = objectType({
|
|
@@ -59414,10 +59740,12 @@ var init_virtualmachineupdatepayload = __esm(() => {
|
|
|
59414
59740
|
VirtualMachineUpdatePayloadType$inboundSchema = nativeEnumType(VirtualMachineUpdatePayloadType);
|
|
59415
59741
|
VirtualMachineUpdatePayloadType$outboundSchema = VirtualMachineUpdatePayloadType$inboundSchema;
|
|
59416
59742
|
VirtualMachineUpdatePayloadAttributes$inboundSchema = objectType({
|
|
59417
|
-
name: stringType()
|
|
59743
|
+
name: stringType().optional(),
|
|
59744
|
+
tags: nullableType(arrayType(stringType())).optional()
|
|
59418
59745
|
});
|
|
59419
59746
|
VirtualMachineUpdatePayloadAttributes$outboundSchema = objectType({
|
|
59420
|
-
name: stringType()
|
|
59747
|
+
name: stringType().optional(),
|
|
59748
|
+
tags: nullableType(arrayType(stringType())).optional()
|
|
59421
59749
|
});
|
|
59422
59750
|
VirtualMachineUpdatePayloadData$inboundSchema = objectType({
|
|
59423
59751
|
type: VirtualMachineUpdatePayloadType$inboundSchema,
|
|
@@ -59438,7 +59766,7 @@ var init_virtualmachineupdatepayload = __esm(() => {
|
|
|
59438
59766
|
});
|
|
59439
59767
|
|
|
59440
59768
|
// src/models/virtualnetworkdata.ts
|
|
59441
|
-
var VirtualNetworkDataType, VirtualNetworkDataType$inboundSchema, VirtualNetworkDataType$outboundSchema, VirtualNetworkDataSite$inboundSchema, VirtualNetworkDataSite$outboundSchema, VirtualNetworkDataRegion$inboundSchema, VirtualNetworkDataRegion$outboundSchema,
|
|
59769
|
+
var VirtualNetworkDataType, VirtualNetworkDataType$inboundSchema, VirtualNetworkDataType$outboundSchema, VirtualNetworkDataSite$inboundSchema, VirtualNetworkDataSite$outboundSchema, VirtualNetworkDataRegion$inboundSchema, VirtualNetworkDataRegion$outboundSchema, VirtualNetworkDataTag$inboundSchema, VirtualNetworkDataTag$outboundSchema, VirtualNetworkDataAttributes$inboundSchema, VirtualNetworkDataAttributes$outboundSchema, VirtualNetworkData$inboundSchema, VirtualNetworkData$outboundSchema;
|
|
59442
59770
|
var init_virtualnetworkdata = __esm(() => {
|
|
59443
59771
|
init_v3();
|
|
59444
59772
|
init_primitives();
|
|
@@ -59470,13 +59798,13 @@ var init_virtualnetworkdata = __esm(() => {
|
|
|
59470
59798
|
country: stringType().optional(),
|
|
59471
59799
|
site: lazyType(() => VirtualNetworkDataSite$outboundSchema).optional()
|
|
59472
59800
|
});
|
|
59473
|
-
|
|
59801
|
+
VirtualNetworkDataTag$inboundSchema = objectType({
|
|
59474
59802
|
id: stringType().optional(),
|
|
59475
59803
|
name: stringType().optional(),
|
|
59476
59804
|
description: stringType().optional(),
|
|
59477
59805
|
color: stringType().optional()
|
|
59478
59806
|
});
|
|
59479
|
-
|
|
59807
|
+
VirtualNetworkDataTag$outboundSchema = objectType({
|
|
59480
59808
|
id: stringType().optional(),
|
|
59481
59809
|
name: stringType().optional(),
|
|
59482
59810
|
description: stringType().optional(),
|
|
@@ -59490,7 +59818,7 @@ var init_virtualnetworkdata = __esm(() => {
|
|
|
59490
59818
|
region: lazyType(() => VirtualNetworkDataRegion$inboundSchema).optional(),
|
|
59491
59819
|
created_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
59492
59820
|
assignments_count: numberType().int().optional(),
|
|
59493
|
-
tags: arrayType(lazyType(() =>
|
|
59821
|
+
tags: arrayType(lazyType(() => VirtualNetworkDataTag$inboundSchema)).optional()
|
|
59494
59822
|
}).transform((v2) => {
|
|
59495
59823
|
return remap(v2, {
|
|
59496
59824
|
created_at: "createdAt",
|
|
@@ -59505,7 +59833,7 @@ var init_virtualnetworkdata = __esm(() => {
|
|
|
59505
59833
|
region: lazyType(() => VirtualNetworkDataRegion$outboundSchema).optional(),
|
|
59506
59834
|
createdAt: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
59507
59835
|
assignmentsCount: numberType().int().optional(),
|
|
59508
|
-
tags: arrayType(lazyType(() =>
|
|
59836
|
+
tags: arrayType(lazyType(() => VirtualNetworkDataTag$outboundSchema)).optional()
|
|
59509
59837
|
}).transform((v2) => {
|
|
59510
59838
|
return remap(v2, {
|
|
59511
59839
|
createdAt: "created_at",
|
|
@@ -59837,6 +60165,7 @@ var init_models = __esm(() => {
|
|
|
59837
60165
|
init_operatingsystemdata();
|
|
59838
60166
|
init_operatingsystems();
|
|
59839
60167
|
init_outofbandconnection();
|
|
60168
|
+
init_paginationmeta();
|
|
59840
60169
|
init_plan();
|
|
59841
60170
|
init_plandata();
|
|
59842
60171
|
init_project();
|
|
@@ -59878,6 +60207,10 @@ var init_models = __esm(() => {
|
|
|
59878
60207
|
init_userupdate();
|
|
59879
60208
|
init_virtualmachine();
|
|
59880
60209
|
init_virtualmachineattributes();
|
|
60210
|
+
init_virtualmachinemetrics();
|
|
60211
|
+
init_virtualmachinenetworkattachmentcreatepayload();
|
|
60212
|
+
init_virtualmachinenetworkattachmentresource();
|
|
60213
|
+
init_virtualmachinenetworkattachments();
|
|
59881
60214
|
init_virtualmachinepayload();
|
|
59882
60215
|
init_virtualmachineplans();
|
|
59883
60216
|
init_virtualmachines();
|
|
@@ -60692,6 +61025,44 @@ var init_createvirtualmachineaction = __esm(() => {
|
|
|
60692
61025
|
});
|
|
60693
61026
|
});
|
|
60694
61027
|
|
|
61028
|
+
// src/models/operations/createvirtualmachinenetworkattachment.ts
|
|
61029
|
+
var CreateVirtualMachineNetworkAttachmentRequest$inboundSchema, CreateVirtualMachineNetworkAttachmentRequest$outboundSchema, CreateVirtualMachineNetworkAttachmentMeta$inboundSchema, CreateVirtualMachineNetworkAttachmentMeta$outboundSchema, CreateVirtualMachineNetworkAttachmentResponse$inboundSchema, CreateVirtualMachineNetworkAttachmentResponse$outboundSchema;
|
|
61030
|
+
var init_createvirtualmachinenetworkattachment = __esm(() => {
|
|
61031
|
+
init_v3();
|
|
61032
|
+
init_primitives();
|
|
61033
|
+
init_models();
|
|
61034
|
+
CreateVirtualMachineNetworkAttachmentRequest$inboundSchema = objectType({
|
|
61035
|
+
virtual_machine_id: stringType(),
|
|
61036
|
+
virtual_machine_network_attachment_create_payload: VirtualMachineNetworkAttachmentCreatePayload$inboundSchema
|
|
61037
|
+
}).transform((v2) => {
|
|
61038
|
+
return remap(v2, {
|
|
61039
|
+
virtual_machine_id: "virtualMachineId",
|
|
61040
|
+
virtual_machine_network_attachment_create_payload: "virtualMachineNetworkAttachmentCreatePayload"
|
|
61041
|
+
});
|
|
61042
|
+
});
|
|
61043
|
+
CreateVirtualMachineNetworkAttachmentRequest$outboundSchema = objectType({
|
|
61044
|
+
virtualMachineId: stringType(),
|
|
61045
|
+
virtualMachineNetworkAttachmentCreatePayload: VirtualMachineNetworkAttachmentCreatePayload$outboundSchema
|
|
61046
|
+
}).transform((v2) => {
|
|
61047
|
+
return remap(v2, {
|
|
61048
|
+
virtualMachineId: "virtual_machine_id",
|
|
61049
|
+
virtualMachineNetworkAttachmentCreatePayload: "virtual_machine_network_attachment_create_payload"
|
|
61050
|
+
});
|
|
61051
|
+
});
|
|
61052
|
+
CreateVirtualMachineNetworkAttachmentMeta$inboundSchema = objectType({
|
|
61053
|
+
status: stringType().optional()
|
|
61054
|
+
});
|
|
61055
|
+
CreateVirtualMachineNetworkAttachmentMeta$outboundSchema = objectType({
|
|
61056
|
+
status: stringType().optional()
|
|
61057
|
+
});
|
|
61058
|
+
CreateVirtualMachineNetworkAttachmentResponse$inboundSchema = objectType({
|
|
61059
|
+
meta: lazyType(() => CreateVirtualMachineNetworkAttachmentMeta$inboundSchema).optional()
|
|
61060
|
+
});
|
|
61061
|
+
CreateVirtualMachineNetworkAttachmentResponse$outboundSchema = objectType({
|
|
61062
|
+
meta: lazyType(() => CreateVirtualMachineNetworkAttachmentMeta$outboundSchema).optional()
|
|
61063
|
+
});
|
|
61064
|
+
});
|
|
61065
|
+
|
|
60695
61066
|
// src/models/operations/createvirtualnetwork.ts
|
|
60696
61067
|
var CreateVirtualNetworkType2, CreateVirtualNetworkSite2, CreateVirtualNetworkType2$inboundSchema, CreateVirtualNetworkType2$outboundSchema, CreateVirtualNetworkSite2$inboundSchema, CreateVirtualNetworkSite2$outboundSchema, CreateVirtualNetworkAttributes2$inboundSchema, CreateVirtualNetworkAttributes2$outboundSchema, CreateVirtualNetworkData2$inboundSchema, CreateVirtualNetworkData2$outboundSchema, CreateVirtualNetworkRequest$inboundSchema, CreateVirtualNetworkRequest$outboundSchema;
|
|
60697
61068
|
var init_createvirtualnetwork = __esm(() => {
|
|
@@ -61144,6 +61515,41 @@ var init_destroyvirtualmachine = __esm(() => {
|
|
|
61144
61515
|
});
|
|
61145
61516
|
});
|
|
61146
61517
|
|
|
61518
|
+
// src/models/operations/destroyvirtualmachinenetworkattachment.ts
|
|
61519
|
+
var DestroyVirtualMachineNetworkAttachmentRequest$inboundSchema, DestroyVirtualMachineNetworkAttachmentRequest$outboundSchema, DestroyVirtualMachineNetworkAttachmentMeta$inboundSchema, DestroyVirtualMachineNetworkAttachmentMeta$outboundSchema, DestroyVirtualMachineNetworkAttachmentResponse$inboundSchema, DestroyVirtualMachineNetworkAttachmentResponse$outboundSchema;
|
|
61520
|
+
var init_destroyvirtualmachinenetworkattachment = __esm(() => {
|
|
61521
|
+
init_v3();
|
|
61522
|
+
init_primitives();
|
|
61523
|
+
DestroyVirtualMachineNetworkAttachmentRequest$inboundSchema = objectType({
|
|
61524
|
+
virtual_machine_id: stringType(),
|
|
61525
|
+
id: stringType()
|
|
61526
|
+
}).transform((v2) => {
|
|
61527
|
+
return remap(v2, {
|
|
61528
|
+
virtual_machine_id: "virtualMachineId"
|
|
61529
|
+
});
|
|
61530
|
+
});
|
|
61531
|
+
DestroyVirtualMachineNetworkAttachmentRequest$outboundSchema = objectType({
|
|
61532
|
+
virtualMachineId: stringType(),
|
|
61533
|
+
id: stringType()
|
|
61534
|
+
}).transform((v2) => {
|
|
61535
|
+
return remap(v2, {
|
|
61536
|
+
virtualMachineId: "virtual_machine_id"
|
|
61537
|
+
});
|
|
61538
|
+
});
|
|
61539
|
+
DestroyVirtualMachineNetworkAttachmentMeta$inboundSchema = objectType({
|
|
61540
|
+
status: stringType().optional()
|
|
61541
|
+
});
|
|
61542
|
+
DestroyVirtualMachineNetworkAttachmentMeta$outboundSchema = objectType({
|
|
61543
|
+
status: stringType().optional()
|
|
61544
|
+
});
|
|
61545
|
+
DestroyVirtualMachineNetworkAttachmentResponse$inboundSchema = objectType({
|
|
61546
|
+
meta: lazyType(() => DestroyVirtualMachineNetworkAttachmentMeta$inboundSchema).optional()
|
|
61547
|
+
});
|
|
61548
|
+
DestroyVirtualMachineNetworkAttachmentResponse$outboundSchema = objectType({
|
|
61549
|
+
meta: lazyType(() => DestroyVirtualMachineNetworkAttachmentMeta$outboundSchema).optional()
|
|
61550
|
+
});
|
|
61551
|
+
});
|
|
61552
|
+
|
|
61147
61553
|
// src/models/operations/destroyvirtualnetwork.ts
|
|
61148
61554
|
var DestroyVirtualNetworkRequest$inboundSchema, DestroyVirtualNetworkRequest$outboundSchema;
|
|
61149
61555
|
var init_destroyvirtualnetwork = __esm(() => {
|
|
@@ -61688,7 +62094,7 @@ var init_getplans = __esm(() => {
|
|
|
61688
62094
|
});
|
|
61689
62095
|
|
|
61690
62096
|
// src/models/operations/getplansoperatingsystem.ts
|
|
61691
|
-
var GetPlansOperatingSystemRequest$inboundSchema, GetPlansOperatingSystemRequest$outboundSchema,
|
|
62097
|
+
var GetPlansOperatingSystemRequest$inboundSchema, GetPlansOperatingSystemRequest$outboundSchema, GetPlansOperatingSystemResponse$inboundSchema, GetPlansOperatingSystemResponse$outboundSchema;
|
|
61692
62098
|
var init_getplansoperatingsystem = __esm(() => {
|
|
61693
62099
|
init_v3();
|
|
61694
62100
|
init_primitives();
|
|
@@ -61711,21 +62117,15 @@ var init_getplansoperatingsystem = __esm(() => {
|
|
|
61711
62117
|
pageNumber: "page[number]"
|
|
61712
62118
|
});
|
|
61713
62119
|
});
|
|
61714
|
-
GetPlansOperatingSystemResponseBody$inboundSchema = objectType({
|
|
61715
|
-
data: arrayType(OperatingSystems$inboundSchema).optional()
|
|
61716
|
-
});
|
|
61717
|
-
GetPlansOperatingSystemResponseBody$outboundSchema = objectType({
|
|
61718
|
-
data: arrayType(OperatingSystems$outboundSchema).optional()
|
|
61719
|
-
});
|
|
61720
62120
|
GetPlansOperatingSystemResponse$inboundSchema = objectType({
|
|
61721
|
-
Result:
|
|
62121
|
+
Result: OperatingSystems$inboundSchema
|
|
61722
62122
|
}).transform((v2) => {
|
|
61723
62123
|
return remap(v2, {
|
|
61724
62124
|
Result: "result"
|
|
61725
62125
|
});
|
|
61726
62126
|
});
|
|
61727
62127
|
GetPlansOperatingSystemResponse$outboundSchema = objectType({
|
|
61728
|
-
result:
|
|
62128
|
+
result: OperatingSystems$outboundSchema
|
|
61729
62129
|
}).transform((v2) => {
|
|
61730
62130
|
return remap(v2, {
|
|
61731
62131
|
result: "Result"
|
|
@@ -61840,20 +62240,32 @@ var init_getprojectsshkeys = __esm(() => {
|
|
|
61840
62240
|
init_primitives();
|
|
61841
62241
|
GetProjectSshKeysRequest$inboundSchema = objectType({
|
|
61842
62242
|
project_id: stringType(),
|
|
61843
|
-
"filter[tags]": stringType().optional()
|
|
62243
|
+
"filter[tags]": stringType().optional(),
|
|
62244
|
+
"stats[total]": stringType().optional(),
|
|
62245
|
+
"page[number]": numberType().int().optional(),
|
|
62246
|
+
"page[size]": numberType().int().optional()
|
|
61844
62247
|
}).transform((v2) => {
|
|
61845
62248
|
return remap(v2, {
|
|
61846
62249
|
project_id: "projectId",
|
|
61847
|
-
"filter[tags]": "filterTags"
|
|
62250
|
+
"filter[tags]": "filterTags",
|
|
62251
|
+
"stats[total]": "statsTotal",
|
|
62252
|
+
"page[number]": "pageNumber",
|
|
62253
|
+
"page[size]": "pageSize"
|
|
61848
62254
|
});
|
|
61849
62255
|
});
|
|
61850
62256
|
GetProjectSshKeysRequest$outboundSchema = objectType({
|
|
61851
62257
|
projectId: stringType(),
|
|
61852
|
-
filterTags: stringType().optional()
|
|
62258
|
+
filterTags: stringType().optional(),
|
|
62259
|
+
statsTotal: stringType().optional(),
|
|
62260
|
+
pageNumber: numberType().int().optional(),
|
|
62261
|
+
pageSize: numberType().int().optional()
|
|
61853
62262
|
}).transform((v2) => {
|
|
61854
62263
|
return remap(v2, {
|
|
61855
62264
|
projectId: "project_id",
|
|
61856
|
-
filterTags: "filter[tags]"
|
|
62265
|
+
filterTags: "filter[tags]",
|
|
62266
|
+
statsTotal: "stats[total]",
|
|
62267
|
+
pageNumber: "page[number]",
|
|
62268
|
+
pageSize: "page[size]"
|
|
61857
62269
|
});
|
|
61858
62270
|
});
|
|
61859
62271
|
});
|
|
@@ -62243,23 +62655,35 @@ var init_getsshkeys = __esm(() => {
|
|
|
62243
62655
|
GetSshKeysRequest$inboundSchema = objectType({
|
|
62244
62656
|
"filter[project]": stringType().optional(),
|
|
62245
62657
|
"filter[scope]": stringType().optional(),
|
|
62246
|
-
"filter[tags]": stringType().optional()
|
|
62658
|
+
"filter[tags]": stringType().optional(),
|
|
62659
|
+
"stats[total]": stringType().optional(),
|
|
62660
|
+
"page[number]": numberType().int().optional(),
|
|
62661
|
+
"page[size]": numberType().int().optional()
|
|
62247
62662
|
}).transform((v2) => {
|
|
62248
62663
|
return remap(v2, {
|
|
62249
62664
|
"filter[project]": "filterProject",
|
|
62250
62665
|
"filter[scope]": "filterScope",
|
|
62251
|
-
"filter[tags]": "filterTags"
|
|
62666
|
+
"filter[tags]": "filterTags",
|
|
62667
|
+
"stats[total]": "statsTotal",
|
|
62668
|
+
"page[number]": "pageNumber",
|
|
62669
|
+
"page[size]": "pageSize"
|
|
62252
62670
|
});
|
|
62253
62671
|
});
|
|
62254
62672
|
GetSshKeysRequest$outboundSchema = objectType({
|
|
62255
62673
|
filterProject: stringType().optional(),
|
|
62256
62674
|
filterScope: stringType().optional(),
|
|
62257
|
-
filterTags: stringType().optional()
|
|
62675
|
+
filterTags: stringType().optional(),
|
|
62676
|
+
statsTotal: stringType().optional(),
|
|
62677
|
+
pageNumber: numberType().int().optional(),
|
|
62678
|
+
pageSize: numberType().int().optional()
|
|
62258
62679
|
}).transform((v2) => {
|
|
62259
62680
|
return remap(v2, {
|
|
62260
62681
|
filterProject: "filter[project]",
|
|
62261
62682
|
filterScope: "filter[scope]",
|
|
62262
|
-
filterTags: "filter[tags]"
|
|
62683
|
+
filterTags: "filter[tags]",
|
|
62684
|
+
statsTotal: "stats[total]",
|
|
62685
|
+
pageNumber: "page[number]",
|
|
62686
|
+
pageSize: "page[size]"
|
|
62263
62687
|
});
|
|
62264
62688
|
});
|
|
62265
62689
|
});
|
|
@@ -62680,7 +63104,7 @@ var init_getvmplans = __esm(() => {
|
|
|
62680
63104
|
});
|
|
62681
63105
|
|
|
62682
63106
|
// src/models/operations/getvpnsessions.ts
|
|
62683
|
-
var FilterLocation, FilterLocation$inboundSchema, FilterLocation$outboundSchema, GetVpnSessionsRequest$inboundSchema, GetVpnSessionsRequest$outboundSchema,
|
|
63107
|
+
var FilterLocation, FilterLocation$inboundSchema, FilterLocation$outboundSchema, GetVpnSessionsRequest$inboundSchema, GetVpnSessionsRequest$outboundSchema, GetVpnSessionsMeta$inboundSchema, GetVpnSessionsMeta$outboundSchema, GetVpnSessionsResponse$inboundSchema, GetVpnSessionsResponse$outboundSchema;
|
|
62684
63108
|
var init_getvpnsessions = __esm(() => {
|
|
62685
63109
|
init_v3();
|
|
62686
63110
|
init_primitives();
|
|
@@ -62721,15 +63145,15 @@ var init_getvpnsessions = __esm(() => {
|
|
|
62721
63145
|
filterLocation: "filter[location]"
|
|
62722
63146
|
});
|
|
62723
63147
|
});
|
|
62724
|
-
|
|
62725
|
-
|
|
63148
|
+
GetVpnSessionsMeta$inboundSchema = objectType({});
|
|
63149
|
+
GetVpnSessionsMeta$outboundSchema = objectType({});
|
|
62726
63150
|
GetVpnSessionsResponse$inboundSchema = objectType({
|
|
62727
63151
|
data: arrayType(VpnSessionDataWithPassword$inboundSchema).optional(),
|
|
62728
|
-
meta: lazyType(() =>
|
|
63152
|
+
meta: lazyType(() => GetVpnSessionsMeta$inboundSchema).optional()
|
|
62729
63153
|
});
|
|
62730
63154
|
GetVpnSessionsResponse$outboundSchema = objectType({
|
|
62731
63155
|
data: arrayType(VpnSessionDataWithPassword$outboundSchema).optional(),
|
|
62732
|
-
meta: lazyType(() =>
|
|
63156
|
+
meta: lazyType(() => GetVpnSessionsMeta$outboundSchema).optional()
|
|
62733
63157
|
});
|
|
62734
63158
|
});
|
|
62735
63159
|
|
|
@@ -62740,19 +63164,23 @@ var init_indexvirtualmachine = __esm(() => {
|
|
|
62740
63164
|
init_primitives();
|
|
62741
63165
|
IndexVirtualMachineRequest$inboundSchema = objectType({
|
|
62742
63166
|
"filter[project]": stringType().optional(),
|
|
63167
|
+
"filter[tags]": stringType().optional(),
|
|
62743
63168
|
"extra_fields[virtual_machines]": stringType().optional()
|
|
62744
63169
|
}).transform((v2) => {
|
|
62745
63170
|
return remap(v2, {
|
|
62746
63171
|
"filter[project]": "filterProject",
|
|
63172
|
+
"filter[tags]": "filterTags",
|
|
62747
63173
|
"extra_fields[virtual_machines]": "extraFieldsVirtualMachines"
|
|
62748
63174
|
});
|
|
62749
63175
|
});
|
|
62750
63176
|
IndexVirtualMachineRequest$outboundSchema = objectType({
|
|
62751
63177
|
filterProject: stringType().optional(),
|
|
63178
|
+
filterTags: stringType().optional(),
|
|
62752
63179
|
extraFieldsVirtualMachines: stringType().optional()
|
|
62753
63180
|
}).transform((v2) => {
|
|
62754
63181
|
return remap(v2, {
|
|
62755
63182
|
filterProject: "filter[project]",
|
|
63183
|
+
filterTags: "filter[tags]",
|
|
62756
63184
|
extraFieldsVirtualMachines: "extra_fields[virtual_machines]"
|
|
62757
63185
|
});
|
|
62758
63186
|
});
|
|
@@ -62884,6 +63312,27 @@ var init_listkubernetesclusters = __esm(() => {
|
|
|
62884
63312
|
});
|
|
62885
63313
|
});
|
|
62886
63314
|
|
|
63315
|
+
// src/models/operations/listvirtualmachinenetworkattachments.ts
|
|
63316
|
+
var ListVirtualMachineNetworkAttachmentsRequest$inboundSchema, ListVirtualMachineNetworkAttachmentsRequest$outboundSchema;
|
|
63317
|
+
var init_listvirtualmachinenetworkattachments = __esm(() => {
|
|
63318
|
+
init_v3();
|
|
63319
|
+
init_primitives();
|
|
63320
|
+
ListVirtualMachineNetworkAttachmentsRequest$inboundSchema = objectType({
|
|
63321
|
+
virtual_machine_id: stringType()
|
|
63322
|
+
}).transform((v2) => {
|
|
63323
|
+
return remap(v2, {
|
|
63324
|
+
virtual_machine_id: "virtualMachineId"
|
|
63325
|
+
});
|
|
63326
|
+
});
|
|
63327
|
+
ListVirtualMachineNetworkAttachmentsRequest$outboundSchema = objectType({
|
|
63328
|
+
virtualMachineId: stringType()
|
|
63329
|
+
}).transform((v2) => {
|
|
63330
|
+
return remap(v2, {
|
|
63331
|
+
virtualMachineId: "virtual_machine_id"
|
|
63332
|
+
});
|
|
63333
|
+
});
|
|
63334
|
+
});
|
|
63335
|
+
|
|
62887
63336
|
// src/models/operations/patchcurrentteam.ts
|
|
62888
63337
|
var PatchCurrentTeamType2, PatchCurrentTeamCurrency2, PatchCurrentTeamType2$inboundSchema, PatchCurrentTeamType2$outboundSchema, PatchCurrentTeamCurrency2$inboundSchema, PatchCurrentTeamCurrency2$outboundSchema, PatchCurrentTeamAttributes2$inboundSchema, PatchCurrentTeamAttributes2$outboundSchema, PatchCurrentTeamData2$inboundSchema, PatchCurrentTeamData2$outboundSchema, PatchCurrentTeamRequestBody2$inboundSchema, PatchCurrentTeamRequestBody2$outboundSchema, PatchCurrentTeamRequest$inboundSchema, PatchCurrentTeamRequest$outboundSchema, PatchCurrentTeamResponse$inboundSchema, PatchCurrentTeamResponse$outboundSchema;
|
|
62889
63338
|
var init_patchcurrentteam = __esm(() => {
|
|
@@ -64176,6 +64625,51 @@ var init_showvirtualmachine = __esm(() => {
|
|
|
64176
64625
|
});
|
|
64177
64626
|
});
|
|
64178
64627
|
|
|
64628
|
+
// src/models/operations/showvirtualmachinemetrics.ts
|
|
64629
|
+
var Metric2, Range2, Metric$inboundSchema2, Metric$outboundSchema2, Range$inboundSchema2, Range$outboundSchema2, ShowVirtualMachineMetricsRequest$inboundSchema, ShowVirtualMachineMetricsRequest$outboundSchema;
|
|
64630
|
+
var init_showvirtualmachinemetrics = __esm(() => {
|
|
64631
|
+
init_v3();
|
|
64632
|
+
init_primitives();
|
|
64633
|
+
Metric2 = {
|
|
64634
|
+
Cpu: "cpu",
|
|
64635
|
+
Memory: "memory",
|
|
64636
|
+
Network: "network",
|
|
64637
|
+
Disk: "disk"
|
|
64638
|
+
};
|
|
64639
|
+
Range2 = {
|
|
64640
|
+
Fivem: "5m",
|
|
64641
|
+
Fifteenm: "15m",
|
|
64642
|
+
Oneh: "1h",
|
|
64643
|
+
TwentyFourh: "24h"
|
|
64644
|
+
};
|
|
64645
|
+
Metric$inboundSchema2 = nativeEnumType(Metric2);
|
|
64646
|
+
Metric$outboundSchema2 = Metric$inboundSchema2;
|
|
64647
|
+
Range$inboundSchema2 = nativeEnumType(Range2);
|
|
64648
|
+
Range$outboundSchema2 = Range$inboundSchema2;
|
|
64649
|
+
ShowVirtualMachineMetricsRequest$inboundSchema = objectType({
|
|
64650
|
+
virtual_machine_id: stringType(),
|
|
64651
|
+
metric: Metric$inboundSchema2,
|
|
64652
|
+
range: Range$inboundSchema2.optional(),
|
|
64653
|
+
force_refresh: booleanType().optional()
|
|
64654
|
+
}).transform((v2) => {
|
|
64655
|
+
return remap(v2, {
|
|
64656
|
+
virtual_machine_id: "virtualMachineId",
|
|
64657
|
+
force_refresh: "forceRefresh"
|
|
64658
|
+
});
|
|
64659
|
+
});
|
|
64660
|
+
ShowVirtualMachineMetricsRequest$outboundSchema = objectType({
|
|
64661
|
+
virtualMachineId: stringType(),
|
|
64662
|
+
metric: Metric$outboundSchema2,
|
|
64663
|
+
range: Range$outboundSchema2.optional(),
|
|
64664
|
+
forceRefresh: booleanType().optional()
|
|
64665
|
+
}).transform((v2) => {
|
|
64666
|
+
return remap(v2, {
|
|
64667
|
+
virtualMachineId: "virtual_machine_id",
|
|
64668
|
+
forceRefresh: "force_refresh"
|
|
64669
|
+
});
|
|
64670
|
+
});
|
|
64671
|
+
});
|
|
64672
|
+
|
|
64179
64673
|
// src/models/operations/updateapikey.ts
|
|
64180
64674
|
var UpdateApiKeyRequest$inboundSchema, UpdateApiKeyRequest$outboundSchema, UpdateApiKeyResponse$inboundSchema, UpdateApiKeyResponse$outboundSchema;
|
|
64181
64675
|
var init_updateapikey2 = __esm(() => {
|
|
@@ -64834,6 +65328,7 @@ var init_operations = __esm(() => {
|
|
|
64834
65328
|
init_createserverreinstall();
|
|
64835
65329
|
init_createtag();
|
|
64836
65330
|
init_createvirtualmachineaction();
|
|
65331
|
+
init_createvirtualmachinenetworkattachment();
|
|
64837
65332
|
init_createvirtualnetwork();
|
|
64838
65333
|
init_deleteapikey();
|
|
64839
65334
|
init_deleteelasticip();
|
|
@@ -64854,6 +65349,7 @@ var init_operations = __esm(() => {
|
|
|
64854
65349
|
init_destroytag();
|
|
64855
65350
|
init_destroyteammember();
|
|
64856
65351
|
init_destroyvirtualmachine();
|
|
65352
|
+
init_destroyvirtualmachinenetworkattachment();
|
|
64857
65353
|
init_destroyvirtualnetwork();
|
|
64858
65354
|
init_getallfirewallassignments();
|
|
64859
65355
|
init_getbandwidthplans();
|
|
@@ -64904,6 +65400,7 @@ var init_operations = __esm(() => {
|
|
|
64904
65400
|
init_listelasticips();
|
|
64905
65401
|
init_listfirewalls();
|
|
64906
65402
|
init_listkubernetesclusters();
|
|
65403
|
+
init_listvirtualmachinenetworkattachments();
|
|
64907
65404
|
init_patchcurrentteam();
|
|
64908
65405
|
init_patchstoragefilesystems();
|
|
64909
65406
|
init_patchuserdata();
|
|
@@ -64932,6 +65429,7 @@ var init_operations = __esm(() => {
|
|
|
64932
65429
|
init_serverunlock();
|
|
64933
65430
|
init_serverunscheduledeletion();
|
|
64934
65431
|
init_showvirtualmachine();
|
|
65432
|
+
init_showvirtualmachinemetrics();
|
|
64935
65433
|
init_updateapikey2();
|
|
64936
65434
|
init_updateelasticip2();
|
|
64937
65435
|
init_updatefirewall();
|
|
@@ -65691,7 +66189,7 @@ var init_blockStorageDeleteStorageVolumes2 = __esm(() => {
|
|
|
65691
66189
|
name: "block-storage-delete-storage-volumes",
|
|
65692
66190
|
description: `Delete volume
|
|
65693
66191
|
|
|
65694
|
-
Allows you to remove
|
|
66192
|
+
Allows you to remove a volume from a project.`,
|
|
65695
66193
|
args: args6,
|
|
65696
66194
|
tool: async (client, args7, ctx) => {
|
|
65697
66195
|
const [result, apiCall] = await blockStorageDeleteStorageVolumes(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -65797,7 +66295,7 @@ var init_blockStorageGetStorageVolume2 = __esm(() => {
|
|
|
65797
66295
|
name: "block-storage-get-storage-volume",
|
|
65798
66296
|
description: `Retrieve volume
|
|
65799
66297
|
|
|
65800
|
-
Shows details of a specific volume
|
|
66298
|
+
Shows details of a specific volume.`,
|
|
65801
66299
|
args: args7,
|
|
65802
66300
|
tool: async (client, args8, ctx) => {
|
|
65803
66301
|
const [result, apiCall] = await blockStorageGetStorageVolume(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -66162,7 +66660,7 @@ var init_blockStoragePostStorageVolumesMount2 = __esm(() => {
|
|
|
66162
66660
|
name: "block-storage-post-storage-volumes-mount",
|
|
66163
66661
|
description: `Mount volume
|
|
66164
66662
|
|
|
66165
|
-
Mounts volume
|
|
66663
|
+
Mounts a volume by adding the client to an allowed list`,
|
|
66166
66664
|
args: args10,
|
|
66167
66665
|
tool: async (client, args11, ctx) => {
|
|
66168
66666
|
const [result, apiCall] = await blockStoragePostStorageVolumesMount(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -67152,7 +67650,7 @@ var init_filesystemStorageDeleteFilesystem2 = __esm(() => {
|
|
|
67152
67650
|
name: "filesystem-storage-delete-filesystem",
|
|
67153
67651
|
description: `Delete filesystem
|
|
67154
67652
|
|
|
67155
|
-
Allows you to remove
|
|
67653
|
+
Allows you to remove a filesystem from a project.`,
|
|
67156
67654
|
args: args18,
|
|
67157
67655
|
tool: async (client, args19, ctx) => {
|
|
67158
67656
|
const [result, apiCall] = await filesystemStorageDeleteFilesystem(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -69610,7 +70108,7 @@ var init_objectStorageDeleteStorageBuckets2 = __esm(() => {
|
|
|
69610
70108
|
};
|
|
69611
70109
|
tool$objectStorageDeleteStorageBuckets = {
|
|
69612
70110
|
name: "object-storage-delete-storage-buckets",
|
|
69613
|
-
description: `Delete
|
|
70111
|
+
description: `Delete bucket
|
|
69614
70112
|
|
|
69615
70113
|
Allows you to remove an object storage from a project.`,
|
|
69616
70114
|
args: args38,
|
|
@@ -69722,7 +70220,7 @@ var init_objectStorageGetStorageBucket2 = __esm(() => {
|
|
|
69722
70220
|
};
|
|
69723
70221
|
tool$objectStorageGetStorageBucket = {
|
|
69724
70222
|
name: "object-storage-get-storage-bucket",
|
|
69725
|
-
description: `Retrieve
|
|
70223
|
+
description: `Retrieve bucket
|
|
69726
70224
|
|
|
69727
70225
|
Shows details of a specific object storage.`,
|
|
69728
70226
|
args: args39,
|
|
@@ -69834,7 +70332,7 @@ var init_objectStorageGetStorageBuckets2 = __esm(() => {
|
|
|
69834
70332
|
};
|
|
69835
70333
|
tool$objectStorageGetStorageBuckets = {
|
|
69836
70334
|
name: "object-storage-get-storage-buckets",
|
|
69837
|
-
description: `List
|
|
70335
|
+
description: `List buckets
|
|
69838
70336
|
|
|
69839
70337
|
Lists all object storages from a team.`,
|
|
69840
70338
|
args: args40,
|
|
@@ -69944,7 +70442,7 @@ var init_objectStoragePostStorageBuckets2 = __esm(() => {
|
|
|
69944
70442
|
};
|
|
69945
70443
|
tool$objectStoragePostStorageBuckets = {
|
|
69946
70444
|
name: "object-storage-post-storage-buckets",
|
|
69947
|
-
description: `Create
|
|
70445
|
+
description: `Create bucket
|
|
69948
70446
|
|
|
69949
70447
|
Creates a new object storage bucket for a project.`,
|
|
69950
70448
|
args: args41,
|
|
@@ -74968,7 +75466,10 @@ async function $do88(client, request, options) {
|
|
|
74968
75466
|
};
|
|
74969
75467
|
const path = pathToFunc("/projects/{project_id}/ssh_keys")(pathParams);
|
|
74970
75468
|
const query = encodeFormQuery({
|
|
74971
|
-
"filter[tags]": payload["filter[tags]"]
|
|
75469
|
+
"filter[tags]": payload["filter[tags]"],
|
|
75470
|
+
"page[number]": payload["page[number]"],
|
|
75471
|
+
"page[size]": payload["page[size]"],
|
|
75472
|
+
"stats[total]": payload["stats[total]"]
|
|
74972
75473
|
});
|
|
74973
75474
|
const headers = new Headers(compactMap({
|
|
74974
75475
|
Accept: "application/vnd.api+json"
|
|
@@ -75077,7 +75578,10 @@ async function $do89(client, request, options) {
|
|
|
75077
75578
|
const query = encodeFormQuery({
|
|
75078
75579
|
"filter[project]": payload?.["filter[project]"],
|
|
75079
75580
|
"filter[scope]": payload?.["filter[scope]"],
|
|
75080
|
-
"filter[tags]": payload?.["filter[tags]"]
|
|
75581
|
+
"filter[tags]": payload?.["filter[tags]"],
|
|
75582
|
+
"page[number]": payload?.["page[number]"],
|
|
75583
|
+
"page[size]": payload?.["page[size]"],
|
|
75584
|
+
"stats[total]": payload?.["stats[total]"]
|
|
75081
75585
|
});
|
|
75082
75586
|
const headers = new Headers(compactMap({
|
|
75083
75587
|
Accept: "application/vnd.api+json"
|
|
@@ -78473,11 +78977,115 @@ Performs a power action on a given virtual machine:
|
|
|
78473
78977
|
};
|
|
78474
78978
|
});
|
|
78475
78979
|
|
|
78476
|
-
// src/funcs/
|
|
78477
|
-
function
|
|
78980
|
+
// src/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.ts
|
|
78981
|
+
function virtualMachinesCreateVirtualMachineNetworkAttachment(client, request, options) {
|
|
78478
78982
|
return new APIPromise($do121(client, request, options));
|
|
78479
78983
|
}
|
|
78480
78984
|
async function $do121(client, request, options) {
|
|
78985
|
+
const parsed = safeParse4(request, (value) => CreateVirtualMachineNetworkAttachmentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78986
|
+
if (!parsed.ok) {
|
|
78987
|
+
return [parsed, { status: "invalid" }];
|
|
78988
|
+
}
|
|
78989
|
+
const payload = parsed.value;
|
|
78990
|
+
const body = encodeJSON("body", payload.virtual_machine_network_attachment_create_payload, { explode: true });
|
|
78991
|
+
const pathParams = {
|
|
78992
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
78993
|
+
};
|
|
78994
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/network_attachments")(pathParams);
|
|
78995
|
+
const headers = new Headers(compactMap({
|
|
78996
|
+
"Content-Type": "application/json",
|
|
78997
|
+
Accept: "application/vnd.api+json"
|
|
78998
|
+
}));
|
|
78999
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
79000
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
79001
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
79002
|
+
const context = {
|
|
79003
|
+
options: client._options,
|
|
79004
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79005
|
+
operationID: "create-virtual-machine-network-attachment",
|
|
79006
|
+
oAuth2Scopes: null,
|
|
79007
|
+
resolvedSecurity: requestSecurity,
|
|
79008
|
+
securitySource: client._options.bearer,
|
|
79009
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
79010
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
79011
|
+
};
|
|
79012
|
+
const requestRes = client._createRequest(context, {
|
|
79013
|
+
security: requestSecurity,
|
|
79014
|
+
method: "POST",
|
|
79015
|
+
baseURL: options?.serverURL,
|
|
79016
|
+
path,
|
|
79017
|
+
headers,
|
|
79018
|
+
body,
|
|
79019
|
+
userAgent: client._options.userAgent,
|
|
79020
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
79021
|
+
}, options);
|
|
79022
|
+
if (!requestRes.ok) {
|
|
79023
|
+
return [requestRes, { status: "invalid" }];
|
|
79024
|
+
}
|
|
79025
|
+
const req = requestRes.value;
|
|
79026
|
+
const doResult = await client._do(req, {
|
|
79027
|
+
context,
|
|
79028
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
79029
|
+
retryConfig: context.retryConfig,
|
|
79030
|
+
retryCodes: context.retryCodes
|
|
79031
|
+
});
|
|
79032
|
+
if (!doResult.ok) {
|
|
79033
|
+
return [doResult, { status: "request-error", request: req }];
|
|
79034
|
+
}
|
|
79035
|
+
const response = doResult.value;
|
|
79036
|
+
const [result] = await match(json(202, CreateVirtualMachineNetworkAttachmentResponse$inboundSchema, { ctype: "application/vnd.api+json" }), fail([403, 404, 422, "4XX"]), fail("5XX"))(response, req);
|
|
79037
|
+
if (!result.ok) {
|
|
79038
|
+
return [result, { status: "complete", request: req, response }];
|
|
79039
|
+
}
|
|
79040
|
+
return [result, { status: "complete", request: req, response }];
|
|
79041
|
+
}
|
|
79042
|
+
var init_virtualMachinesCreateVirtualMachineNetworkAttachment = __esm(() => {
|
|
79043
|
+
init_encodings();
|
|
79044
|
+
init_http();
|
|
79045
|
+
init_matchers();
|
|
79046
|
+
init_primitives();
|
|
79047
|
+
init_schemas4();
|
|
79048
|
+
init_security();
|
|
79049
|
+
init_url();
|
|
79050
|
+
init_operations();
|
|
79051
|
+
init_async();
|
|
79052
|
+
});
|
|
79053
|
+
|
|
79054
|
+
// src/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.ts
|
|
79055
|
+
var args114, tool$virtualMachinesCreateVirtualMachineNetworkAttachment;
|
|
79056
|
+
var init_virtualMachinesCreateVirtualMachineNetworkAttachment2 = __esm(() => {
|
|
79057
|
+
init_virtualMachinesCreateVirtualMachineNetworkAttachment();
|
|
79058
|
+
init_operations();
|
|
79059
|
+
init_tools();
|
|
79060
|
+
args114 = {
|
|
79061
|
+
request: CreateVirtualMachineNetworkAttachmentRequest$inboundSchema
|
|
79062
|
+
};
|
|
79063
|
+
tool$virtualMachinesCreateVirtualMachineNetworkAttachment = {
|
|
79064
|
+
name: "virtual-machines-create-virtual-machine-network-attachment",
|
|
79065
|
+
description: `Attach a network to a VM
|
|
79066
|
+
|
|
79067
|
+
Attaches a virtual network (VLAN) to a Virtual Machine. Work runs asynchronously and returns 202 Accepted.
|
|
79068
|
+
`,
|
|
79069
|
+
args: args114,
|
|
79070
|
+
tool: async (client, args115, ctx) => {
|
|
79071
|
+
const [result, apiCall] = await virtualMachinesCreateVirtualMachineNetworkAttachment(client, args115.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79072
|
+
if (!result.ok) {
|
|
79073
|
+
return {
|
|
79074
|
+
content: [{ type: "text", text: result.error.message }],
|
|
79075
|
+
isError: true
|
|
79076
|
+
};
|
|
79077
|
+
}
|
|
79078
|
+
const value = result.value;
|
|
79079
|
+
return formatResult(value, apiCall);
|
|
79080
|
+
}
|
|
79081
|
+
};
|
|
79082
|
+
});
|
|
79083
|
+
|
|
79084
|
+
// src/funcs/virtualMachinesDelete.ts
|
|
79085
|
+
function virtualMachinesDelete(client, request, options) {
|
|
79086
|
+
return new APIPromise($do122(client, request, options));
|
|
79087
|
+
}
|
|
79088
|
+
async function $do122(client, request, options) {
|
|
78481
79089
|
const parsed = safeParse4(request, (value) => DestroyVirtualMachineRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78482
79090
|
if (!parsed.ok) {
|
|
78483
79091
|
return [parsed, { status: "invalid" }];
|
|
@@ -78548,12 +79156,12 @@ var init_virtualMachinesDelete = __esm(() => {
|
|
|
78548
79156
|
});
|
|
78549
79157
|
|
|
78550
79158
|
// src/mcp-server/tools/virtualMachinesDelete.ts
|
|
78551
|
-
var
|
|
79159
|
+
var args115, tool$virtualMachinesDelete;
|
|
78552
79160
|
var init_virtualMachinesDelete2 = __esm(() => {
|
|
78553
79161
|
init_virtualMachinesDelete();
|
|
78554
79162
|
init_operations();
|
|
78555
79163
|
init_tools();
|
|
78556
|
-
|
|
79164
|
+
args115 = {
|
|
78557
79165
|
request: DestroyVirtualMachineRequest$inboundSchema
|
|
78558
79166
|
};
|
|
78559
79167
|
tool$virtualMachinesDelete = {
|
|
@@ -78562,9 +79170,9 @@ var init_virtualMachinesDelete2 = __esm(() => {
|
|
|
78562
79170
|
|
|
78563
79171
|
Destroys a Virtual Machine.
|
|
78564
79172
|
`,
|
|
78565
|
-
args:
|
|
78566
|
-
tool: async (client,
|
|
78567
|
-
const [result, apiCall] = await virtualMachinesDelete(client,
|
|
79173
|
+
args: args115,
|
|
79174
|
+
tool: async (client, args116, ctx) => {
|
|
79175
|
+
const [result, apiCall] = await virtualMachinesDelete(client, args116.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78568
79176
|
if (!result.ok) {
|
|
78569
79177
|
return {
|
|
78570
79178
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78576,11 +79184,118 @@ Destroys a Virtual Machine.
|
|
|
78576
79184
|
};
|
|
78577
79185
|
});
|
|
78578
79186
|
|
|
79187
|
+
// src/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.ts
|
|
79188
|
+
function virtualMachinesDestroyVirtualMachineNetworkAttachment(client, request, options) {
|
|
79189
|
+
return new APIPromise($do123(client, request, options));
|
|
79190
|
+
}
|
|
79191
|
+
async function $do123(client, request, options) {
|
|
79192
|
+
const parsed = safeParse4(request, (value) => DestroyVirtualMachineNetworkAttachmentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79193
|
+
if (!parsed.ok) {
|
|
79194
|
+
return [parsed, { status: "invalid" }];
|
|
79195
|
+
}
|
|
79196
|
+
const payload = parsed.value;
|
|
79197
|
+
const body = null;
|
|
79198
|
+
const pathParams = {
|
|
79199
|
+
id: encodeSimple("id", payload.id, {
|
|
79200
|
+
explode: false,
|
|
79201
|
+
charEncoding: "percent"
|
|
79202
|
+
}),
|
|
79203
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
79204
|
+
};
|
|
79205
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/network_attachments/{id}")(pathParams);
|
|
79206
|
+
const headers = new Headers(compactMap({
|
|
79207
|
+
Accept: "application/vnd.api+json"
|
|
79208
|
+
}));
|
|
79209
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
79210
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
79211
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
79212
|
+
const context = {
|
|
79213
|
+
options: client._options,
|
|
79214
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79215
|
+
operationID: "destroy-virtual-machine-network-attachment",
|
|
79216
|
+
oAuth2Scopes: null,
|
|
79217
|
+
resolvedSecurity: requestSecurity,
|
|
79218
|
+
securitySource: client._options.bearer,
|
|
79219
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
79220
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
79221
|
+
};
|
|
79222
|
+
const requestRes = client._createRequest(context, {
|
|
79223
|
+
security: requestSecurity,
|
|
79224
|
+
method: "DELETE",
|
|
79225
|
+
baseURL: options?.serverURL,
|
|
79226
|
+
path,
|
|
79227
|
+
headers,
|
|
79228
|
+
body,
|
|
79229
|
+
userAgent: client._options.userAgent,
|
|
79230
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
79231
|
+
}, options);
|
|
79232
|
+
if (!requestRes.ok) {
|
|
79233
|
+
return [requestRes, { status: "invalid" }];
|
|
79234
|
+
}
|
|
79235
|
+
const req = requestRes.value;
|
|
79236
|
+
const doResult = await client._do(req, {
|
|
79237
|
+
context,
|
|
79238
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
79239
|
+
retryConfig: context.retryConfig,
|
|
79240
|
+
retryCodes: context.retryCodes
|
|
79241
|
+
});
|
|
79242
|
+
if (!doResult.ok) {
|
|
79243
|
+
return [doResult, { status: "request-error", request: req }];
|
|
79244
|
+
}
|
|
79245
|
+
const response = doResult.value;
|
|
79246
|
+
const [result] = await match(json(202, DestroyVirtualMachineNetworkAttachmentResponse$inboundSchema, { ctype: "application/vnd.api+json" }), fail([403, 404, "4XX"]), fail("5XX"))(response, req);
|
|
79247
|
+
if (!result.ok) {
|
|
79248
|
+
return [result, { status: "complete", request: req, response }];
|
|
79249
|
+
}
|
|
79250
|
+
return [result, { status: "complete", request: req, response }];
|
|
79251
|
+
}
|
|
79252
|
+
var init_virtualMachinesDestroyVirtualMachineNetworkAttachment = __esm(() => {
|
|
79253
|
+
init_encodings();
|
|
79254
|
+
init_http();
|
|
79255
|
+
init_matchers();
|
|
79256
|
+
init_primitives();
|
|
79257
|
+
init_schemas4();
|
|
79258
|
+
init_security();
|
|
79259
|
+
init_url();
|
|
79260
|
+
init_operations();
|
|
79261
|
+
init_async();
|
|
79262
|
+
});
|
|
79263
|
+
|
|
79264
|
+
// src/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.ts
|
|
79265
|
+
var args116, tool$virtualMachinesDestroyVirtualMachineNetworkAttachment;
|
|
79266
|
+
var init_virtualMachinesDestroyVirtualMachineNetworkAttachment2 = __esm(() => {
|
|
79267
|
+
init_virtualMachinesDestroyVirtualMachineNetworkAttachment();
|
|
79268
|
+
init_operations();
|
|
79269
|
+
init_tools();
|
|
79270
|
+
args116 = {
|
|
79271
|
+
request: DestroyVirtualMachineNetworkAttachmentRequest$inboundSchema
|
|
79272
|
+
};
|
|
79273
|
+
tool$virtualMachinesDestroyVirtualMachineNetworkAttachment = {
|
|
79274
|
+
name: "virtual-machines-destroy-virtual-machine-network-attachment",
|
|
79275
|
+
description: `Detach a network from a VM
|
|
79276
|
+
|
|
79277
|
+
Detaches a virtual network (VLAN) from a Virtual Machine. Work runs asynchronously and returns 202 Accepted.
|
|
79278
|
+
`,
|
|
79279
|
+
args: args116,
|
|
79280
|
+
tool: async (client, args117, ctx) => {
|
|
79281
|
+
const [result, apiCall] = await virtualMachinesDestroyVirtualMachineNetworkAttachment(client, args117.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79282
|
+
if (!result.ok) {
|
|
79283
|
+
return {
|
|
79284
|
+
content: [{ type: "text", text: result.error.message }],
|
|
79285
|
+
isError: true
|
|
79286
|
+
};
|
|
79287
|
+
}
|
|
79288
|
+
const value = result.value;
|
|
79289
|
+
return formatResult(value, apiCall);
|
|
79290
|
+
}
|
|
79291
|
+
};
|
|
79292
|
+
});
|
|
79293
|
+
|
|
78579
79294
|
// src/funcs/virtualMachinesGet.ts
|
|
78580
79295
|
function virtualMachinesGet(client, request, options) {
|
|
78581
|
-
return new APIPromise($
|
|
79296
|
+
return new APIPromise($do124(client, request, options));
|
|
78582
79297
|
}
|
|
78583
|
-
async function $
|
|
79298
|
+
async function $do124(client, request, options) {
|
|
78584
79299
|
const parsed = safeParse4(request, (value) => ShowVirtualMachineRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78585
79300
|
if (!parsed.ok) {
|
|
78586
79301
|
return [parsed, { status: "invalid" }];
|
|
@@ -78653,12 +79368,12 @@ var init_virtualMachinesGet = __esm(() => {
|
|
|
78653
79368
|
});
|
|
78654
79369
|
|
|
78655
79370
|
// src/mcp-server/tools/virtualMachinesGet.ts
|
|
78656
|
-
var
|
|
79371
|
+
var args117, tool$virtualMachinesGet;
|
|
78657
79372
|
var init_virtualMachinesGet2 = __esm(() => {
|
|
78658
79373
|
init_virtualMachinesGet();
|
|
78659
79374
|
init_operations();
|
|
78660
79375
|
init_tools();
|
|
78661
|
-
|
|
79376
|
+
args117 = {
|
|
78662
79377
|
request: ShowVirtualMachineRequest$inboundSchema
|
|
78663
79378
|
};
|
|
78664
79379
|
tool$virtualMachinesGet = {
|
|
@@ -78667,9 +79382,9 @@ var init_virtualMachinesGet2 = __esm(() => {
|
|
|
78667
79382
|
|
|
78668
79383
|
Show a Virtual Machine.
|
|
78669
79384
|
`,
|
|
78670
|
-
args:
|
|
78671
|
-
tool: async (client,
|
|
78672
|
-
const [result, apiCall] = await virtualMachinesGet(client,
|
|
79385
|
+
args: args117,
|
|
79386
|
+
tool: async (client, args118, ctx) => {
|
|
79387
|
+
const [result, apiCall] = await virtualMachinesGet(client, args118.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78673
79388
|
if (!result.ok) {
|
|
78674
79389
|
return {
|
|
78675
79390
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78684,9 +79399,9 @@ Show a Virtual Machine.
|
|
|
78684
79399
|
|
|
78685
79400
|
// src/funcs/virtualMachinesList.ts
|
|
78686
79401
|
function virtualMachinesList(client, request, options) {
|
|
78687
|
-
return new APIPromise($
|
|
79402
|
+
return new APIPromise($do125(client, request, options));
|
|
78688
79403
|
}
|
|
78689
|
-
async function $
|
|
79404
|
+
async function $do125(client, request, options) {
|
|
78690
79405
|
const parsed = safeParse4(request, (value) => IndexVirtualMachineRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
78691
79406
|
if (!parsed.ok) {
|
|
78692
79407
|
return [parsed, { status: "invalid" }];
|
|
@@ -78696,7 +79411,8 @@ async function $do123(client, request, options) {
|
|
|
78696
79411
|
const path = pathToFunc("/virtual_machines")();
|
|
78697
79412
|
const query = encodeFormQuery({
|
|
78698
79413
|
"extra_fields[virtual_machines]": payload?.["extra_fields[virtual_machines]"],
|
|
78699
|
-
"filter[project]": payload?.["filter[project]"]
|
|
79414
|
+
"filter[project]": payload?.["filter[project]"],
|
|
79415
|
+
"filter[tags]": payload?.["filter[tags]"]
|
|
78700
79416
|
});
|
|
78701
79417
|
const headers = new Headers(compactMap({
|
|
78702
79418
|
Accept: "application/vnd.api+json"
|
|
@@ -78761,12 +79477,12 @@ var init_virtualMachinesList = __esm(() => {
|
|
|
78761
79477
|
});
|
|
78762
79478
|
|
|
78763
79479
|
// src/mcp-server/tools/virtualMachinesList.ts
|
|
78764
|
-
var
|
|
79480
|
+
var args118, tool$virtualMachinesList;
|
|
78765
79481
|
var init_virtualMachinesList2 = __esm(() => {
|
|
78766
79482
|
init_virtualMachinesList();
|
|
78767
79483
|
init_operations();
|
|
78768
79484
|
init_tools();
|
|
78769
|
-
|
|
79485
|
+
args118 = {
|
|
78770
79486
|
request: IndexVirtualMachineRequest$inboundSchema.optional()
|
|
78771
79487
|
};
|
|
78772
79488
|
tool$virtualMachinesList = {
|
|
@@ -78775,9 +79491,226 @@ var init_virtualMachinesList2 = __esm(() => {
|
|
|
78775
79491
|
|
|
78776
79492
|
Show all Team's Virtual Machines.
|
|
78777
79493
|
`,
|
|
78778
|
-
args:
|
|
78779
|
-
tool: async (client,
|
|
78780
|
-
const [result, apiCall] = await virtualMachinesList(client,
|
|
79494
|
+
args: args118,
|
|
79495
|
+
tool: async (client, args119, ctx) => {
|
|
79496
|
+
const [result, apiCall] = await virtualMachinesList(client, args119.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79497
|
+
if (!result.ok) {
|
|
79498
|
+
return {
|
|
79499
|
+
content: [{ type: "text", text: result.error.message }],
|
|
79500
|
+
isError: true
|
|
79501
|
+
};
|
|
79502
|
+
}
|
|
79503
|
+
const value = result.value;
|
|
79504
|
+
return formatResult(value, apiCall);
|
|
79505
|
+
}
|
|
79506
|
+
};
|
|
79507
|
+
});
|
|
79508
|
+
|
|
79509
|
+
// src/funcs/virtualMachinesListVirtualMachineNetworkAttachments.ts
|
|
79510
|
+
function virtualMachinesListVirtualMachineNetworkAttachments(client, request, options) {
|
|
79511
|
+
return new APIPromise($do126(client, request, options));
|
|
79512
|
+
}
|
|
79513
|
+
async function $do126(client, request, options) {
|
|
79514
|
+
const parsed = safeParse4(request, (value) => ListVirtualMachineNetworkAttachmentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79515
|
+
if (!parsed.ok) {
|
|
79516
|
+
return [parsed, { status: "invalid" }];
|
|
79517
|
+
}
|
|
79518
|
+
const payload = parsed.value;
|
|
79519
|
+
const body = null;
|
|
79520
|
+
const pathParams = {
|
|
79521
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
79522
|
+
};
|
|
79523
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/network_attachments")(pathParams);
|
|
79524
|
+
const headers = new Headers(compactMap({
|
|
79525
|
+
Accept: "application/vnd.api+json"
|
|
79526
|
+
}));
|
|
79527
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
79528
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
79529
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
79530
|
+
const context = {
|
|
79531
|
+
options: client._options,
|
|
79532
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79533
|
+
operationID: "list-virtual-machine-network-attachments",
|
|
79534
|
+
oAuth2Scopes: null,
|
|
79535
|
+
resolvedSecurity: requestSecurity,
|
|
79536
|
+
securitySource: client._options.bearer,
|
|
79537
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
79538
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
79539
|
+
};
|
|
79540
|
+
const requestRes = client._createRequest(context, {
|
|
79541
|
+
security: requestSecurity,
|
|
79542
|
+
method: "GET",
|
|
79543
|
+
baseURL: options?.serverURL,
|
|
79544
|
+
path,
|
|
79545
|
+
headers,
|
|
79546
|
+
body,
|
|
79547
|
+
userAgent: client._options.userAgent,
|
|
79548
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
79549
|
+
}, options);
|
|
79550
|
+
if (!requestRes.ok) {
|
|
79551
|
+
return [requestRes, { status: "invalid" }];
|
|
79552
|
+
}
|
|
79553
|
+
const req = requestRes.value;
|
|
79554
|
+
const doResult = await client._do(req, {
|
|
79555
|
+
context,
|
|
79556
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
79557
|
+
retryConfig: context.retryConfig,
|
|
79558
|
+
retryCodes: context.retryCodes
|
|
79559
|
+
});
|
|
79560
|
+
if (!doResult.ok) {
|
|
79561
|
+
return [doResult, { status: "request-error", request: req }];
|
|
79562
|
+
}
|
|
79563
|
+
const response = doResult.value;
|
|
79564
|
+
const [result] = await match(json(200, VirtualMachineNetworkAttachments$inboundSchema, {
|
|
79565
|
+
ctype: "application/vnd.api+json"
|
|
79566
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req);
|
|
79567
|
+
if (!result.ok) {
|
|
79568
|
+
return [result, { status: "complete", request: req, response }];
|
|
79569
|
+
}
|
|
79570
|
+
return [result, { status: "complete", request: req, response }];
|
|
79571
|
+
}
|
|
79572
|
+
var init_virtualMachinesListVirtualMachineNetworkAttachments = __esm(() => {
|
|
79573
|
+
init_encodings();
|
|
79574
|
+
init_http();
|
|
79575
|
+
init_matchers();
|
|
79576
|
+
init_primitives();
|
|
79577
|
+
init_schemas4();
|
|
79578
|
+
init_security();
|
|
79579
|
+
init_url();
|
|
79580
|
+
init_models();
|
|
79581
|
+
init_operations();
|
|
79582
|
+
init_async();
|
|
79583
|
+
});
|
|
79584
|
+
|
|
79585
|
+
// src/mcp-server/tools/virtualMachinesListVirtualMachineNetworkAttachments.ts
|
|
79586
|
+
var args119, tool$virtualMachinesListVirtualMachineNetworkAttachments;
|
|
79587
|
+
var init_virtualMachinesListVirtualMachineNetworkAttachments2 = __esm(() => {
|
|
79588
|
+
init_virtualMachinesListVirtualMachineNetworkAttachments();
|
|
79589
|
+
init_operations();
|
|
79590
|
+
init_tools();
|
|
79591
|
+
args119 = {
|
|
79592
|
+
request: ListVirtualMachineNetworkAttachmentsRequest$inboundSchema
|
|
79593
|
+
};
|
|
79594
|
+
tool$virtualMachinesListVirtualMachineNetworkAttachments = {
|
|
79595
|
+
name: "virtual-machines-list-virtual-machine-network-attachments",
|
|
79596
|
+
description: `List VM network attachments
|
|
79597
|
+
|
|
79598
|
+
Lists the secondary network attachments currently configured for a Virtual Machine.
|
|
79599
|
+
`,
|
|
79600
|
+
args: args119,
|
|
79601
|
+
tool: async (client, args120, ctx) => {
|
|
79602
|
+
const [result, apiCall] = await virtualMachinesListVirtualMachineNetworkAttachments(client, args120.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79603
|
+
if (!result.ok) {
|
|
79604
|
+
return {
|
|
79605
|
+
content: [{ type: "text", text: result.error.message }],
|
|
79606
|
+
isError: true
|
|
79607
|
+
};
|
|
79608
|
+
}
|
|
79609
|
+
const value = result.value;
|
|
79610
|
+
return formatResult(value, apiCall);
|
|
79611
|
+
}
|
|
79612
|
+
};
|
|
79613
|
+
});
|
|
79614
|
+
|
|
79615
|
+
// src/funcs/virtualMachinesShowVirtualMachineMetrics.ts
|
|
79616
|
+
function virtualMachinesShowVirtualMachineMetrics(client, request, options) {
|
|
79617
|
+
return new APIPromise($do127(client, request, options));
|
|
79618
|
+
}
|
|
79619
|
+
async function $do127(client, request, options) {
|
|
79620
|
+
const parsed = safeParse4(request, (value) => ShowVirtualMachineMetricsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79621
|
+
if (!parsed.ok) {
|
|
79622
|
+
return [parsed, { status: "invalid" }];
|
|
79623
|
+
}
|
|
79624
|
+
const payload = parsed.value;
|
|
79625
|
+
const body = null;
|
|
79626
|
+
const pathParams = {
|
|
79627
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
79628
|
+
};
|
|
79629
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/metrics")(pathParams);
|
|
79630
|
+
const query = encodeFormQuery({
|
|
79631
|
+
force_refresh: payload.force_refresh,
|
|
79632
|
+
metric: payload.metric,
|
|
79633
|
+
range: payload.range
|
|
79634
|
+
});
|
|
79635
|
+
const headers = new Headers(compactMap({
|
|
79636
|
+
Accept: "application/vnd.api+json"
|
|
79637
|
+
}));
|
|
79638
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
79639
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
79640
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
79641
|
+
const context = {
|
|
79642
|
+
options: client._options,
|
|
79643
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79644
|
+
operationID: "show-virtual-machine-metrics",
|
|
79645
|
+
oAuth2Scopes: null,
|
|
79646
|
+
resolvedSecurity: requestSecurity,
|
|
79647
|
+
securitySource: client._options.bearer,
|
|
79648
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
79649
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
79650
|
+
};
|
|
79651
|
+
const requestRes = client._createRequest(context, {
|
|
79652
|
+
security: requestSecurity,
|
|
79653
|
+
method: "GET",
|
|
79654
|
+
baseURL: options?.serverURL,
|
|
79655
|
+
path,
|
|
79656
|
+
headers,
|
|
79657
|
+
query,
|
|
79658
|
+
body,
|
|
79659
|
+
userAgent: client._options.userAgent,
|
|
79660
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
79661
|
+
}, options);
|
|
79662
|
+
if (!requestRes.ok) {
|
|
79663
|
+
return [requestRes, { status: "invalid" }];
|
|
79664
|
+
}
|
|
79665
|
+
const req = requestRes.value;
|
|
79666
|
+
const doResult = await client._do(req, {
|
|
79667
|
+
context,
|
|
79668
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
79669
|
+
retryConfig: context.retryConfig,
|
|
79670
|
+
retryCodes: context.retryCodes
|
|
79671
|
+
});
|
|
79672
|
+
if (!doResult.ok) {
|
|
79673
|
+
return [doResult, { status: "request-error", request: req }];
|
|
79674
|
+
}
|
|
79675
|
+
const response = doResult.value;
|
|
79676
|
+
const [result] = await match(json(200, VirtualMachineMetrics$inboundSchema, {
|
|
79677
|
+
ctype: "application/vnd.api+json"
|
|
79678
|
+
}), fail("4XX"), fail("5XX"))(response, req);
|
|
79679
|
+
if (!result.ok) {
|
|
79680
|
+
return [result, { status: "complete", request: req, response }];
|
|
79681
|
+
}
|
|
79682
|
+
return [result, { status: "complete", request: req, response }];
|
|
79683
|
+
}
|
|
79684
|
+
var init_virtualMachinesShowVirtualMachineMetrics = __esm(() => {
|
|
79685
|
+
init_encodings();
|
|
79686
|
+
init_http();
|
|
79687
|
+
init_matchers();
|
|
79688
|
+
init_primitives();
|
|
79689
|
+
init_schemas4();
|
|
79690
|
+
init_security();
|
|
79691
|
+
init_url();
|
|
79692
|
+
init_models();
|
|
79693
|
+
init_operations();
|
|
79694
|
+
init_async();
|
|
79695
|
+
});
|
|
79696
|
+
|
|
79697
|
+
// src/mcp-server/tools/virtualMachinesShowVirtualMachineMetrics.ts
|
|
79698
|
+
var args120, tool$virtualMachinesShowVirtualMachineMetrics;
|
|
79699
|
+
var init_virtualMachinesShowVirtualMachineMetrics2 = __esm(() => {
|
|
79700
|
+
init_virtualMachinesShowVirtualMachineMetrics();
|
|
79701
|
+
init_operations();
|
|
79702
|
+
init_tools();
|
|
79703
|
+
args120 = {
|
|
79704
|
+
request: ShowVirtualMachineMetricsRequest$inboundSchema
|
|
79705
|
+
};
|
|
79706
|
+
tool$virtualMachinesShowVirtualMachineMetrics = {
|
|
79707
|
+
name: "virtual-machines-show-virtual-machine-metrics",
|
|
79708
|
+
description: `Retrieve VM metrics
|
|
79709
|
+
|
|
79710
|
+
Retrieve a time series for a single metric of a Virtual Machine.`,
|
|
79711
|
+
args: args120,
|
|
79712
|
+
tool: async (client, args121, ctx) => {
|
|
79713
|
+
const [result, apiCall] = await virtualMachinesShowVirtualMachineMetrics(client, args121.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78781
79714
|
if (!result.ok) {
|
|
78782
79715
|
return {
|
|
78783
79716
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78792,9 +79725,9 @@ Show all Team's Virtual Machines.
|
|
|
78792
79725
|
|
|
78793
79726
|
// src/funcs/virtualMachinesUpdateVirtualMachine.ts
|
|
78794
79727
|
function virtualMachinesUpdateVirtualMachine(client, request, options) {
|
|
78795
|
-
return new APIPromise($
|
|
79728
|
+
return new APIPromise($do128(client, request, options));
|
|
78796
79729
|
}
|
|
78797
|
-
async function $
|
|
79730
|
+
async function $do128(client, request, options) {
|
|
78798
79731
|
const parsed = safeParse4(request, (value) => UpdateVirtualMachineRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78799
79732
|
if (!parsed.ok) {
|
|
78800
79733
|
return [parsed, { status: "invalid" }];
|
|
@@ -78870,12 +79803,12 @@ var init_virtualMachinesUpdateVirtualMachine = __esm(() => {
|
|
|
78870
79803
|
});
|
|
78871
79804
|
|
|
78872
79805
|
// src/mcp-server/tools/virtualMachinesUpdateVirtualMachine.ts
|
|
78873
|
-
var
|
|
79806
|
+
var args121, tool$virtualMachinesUpdateVirtualMachine;
|
|
78874
79807
|
var init_virtualMachinesUpdateVirtualMachine2 = __esm(() => {
|
|
78875
79808
|
init_virtualMachinesUpdateVirtualMachine();
|
|
78876
79809
|
init_operations();
|
|
78877
79810
|
init_tools();
|
|
78878
|
-
|
|
79811
|
+
args121 = {
|
|
78879
79812
|
request: UpdateVirtualMachineRequest$inboundSchema
|
|
78880
79813
|
};
|
|
78881
79814
|
tool$virtualMachinesUpdateVirtualMachine = {
|
|
@@ -78884,9 +79817,9 @@ var init_virtualMachinesUpdateVirtualMachine2 = __esm(() => {
|
|
|
78884
79817
|
|
|
78885
79818
|
Updates a Virtual Machine's display name (hostname).
|
|
78886
79819
|
`,
|
|
78887
|
-
args:
|
|
78888
|
-
tool: async (client,
|
|
78889
|
-
const [result, apiCall] = await virtualMachinesUpdateVirtualMachine(client,
|
|
79820
|
+
args: args121,
|
|
79821
|
+
tool: async (client, args122, ctx) => {
|
|
79822
|
+
const [result, apiCall] = await virtualMachinesUpdateVirtualMachine(client, args122.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78890
79823
|
if (!result.ok) {
|
|
78891
79824
|
return {
|
|
78892
79825
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78901,9 +79834,9 @@ Updates a Virtual Machine's display name (hostname).
|
|
|
78901
79834
|
|
|
78902
79835
|
// src/funcs/virtualNetworksDelete.ts
|
|
78903
79836
|
function virtualNetworksDelete(client, request, options) {
|
|
78904
|
-
return new APIPromise($
|
|
79837
|
+
return new APIPromise($do129(client, request, options));
|
|
78905
79838
|
}
|
|
78906
|
-
async function $
|
|
79839
|
+
async function $do129(client, request, options) {
|
|
78907
79840
|
const parsed = safeParse4(request, (value) => DestroyVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78908
79841
|
if (!parsed.ok) {
|
|
78909
79842
|
return [parsed, { status: "invalid" }];
|
|
@@ -78977,12 +79910,12 @@ var init_virtualNetworksDelete = __esm(() => {
|
|
|
78977
79910
|
});
|
|
78978
79911
|
|
|
78979
79912
|
// src/mcp-server/tools/virtualNetworksDelete.ts
|
|
78980
|
-
var
|
|
79913
|
+
var args122, tool$virtualNetworksDelete;
|
|
78981
79914
|
var init_virtualNetworksDelete2 = __esm(() => {
|
|
78982
79915
|
init_virtualNetworksDelete();
|
|
78983
79916
|
init_operations();
|
|
78984
79917
|
init_tools();
|
|
78985
|
-
|
|
79918
|
+
args122 = {
|
|
78986
79919
|
request: DestroyVirtualNetworkRequest$inboundSchema
|
|
78987
79920
|
};
|
|
78988
79921
|
tool$virtualNetworksDelete = {
|
|
@@ -78991,9 +79924,9 @@ var init_virtualNetworksDelete2 = __esm(() => {
|
|
|
78991
79924
|
|
|
78992
79925
|
Delete virtual network
|
|
78993
79926
|
`,
|
|
78994
|
-
args:
|
|
78995
|
-
tool: async (client,
|
|
78996
|
-
const [result, apiCall] = await virtualNetworksDelete(client,
|
|
79927
|
+
args: args122,
|
|
79928
|
+
tool: async (client, args123, ctx) => {
|
|
79929
|
+
const [result, apiCall] = await virtualNetworksDelete(client, args123.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78997
79930
|
if (!result.ok) {
|
|
78998
79931
|
return {
|
|
78999
79932
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79007,9 +79940,9 @@ Delete virtual network
|
|
|
79007
79940
|
|
|
79008
79941
|
// src/funcs/vpnSessionsCreate.ts
|
|
79009
79942
|
function vpnSessionsCreate(client, request, options) {
|
|
79010
|
-
return new APIPromise($
|
|
79943
|
+
return new APIPromise($do130(client, request, options));
|
|
79011
79944
|
}
|
|
79012
|
-
async function $
|
|
79945
|
+
async function $do130(client, request, options) {
|
|
79013
79946
|
const parsed = safeParse4(request, (value) => PostVpnSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79014
79947
|
if (!parsed.ok) {
|
|
79015
79948
|
return [parsed, { status: "invalid" }];
|
|
@@ -79080,12 +80013,12 @@ var init_vpnSessionsCreate = __esm(() => {
|
|
|
79080
80013
|
});
|
|
79081
80014
|
|
|
79082
80015
|
// src/mcp-server/tools/vpnSessionsCreate.ts
|
|
79083
|
-
var
|
|
80016
|
+
var args123, tool$vpnSessionsCreate;
|
|
79084
80017
|
var init_vpnSessionsCreate2 = __esm(() => {
|
|
79085
80018
|
init_vpnSessionsCreate();
|
|
79086
80019
|
init_operations();
|
|
79087
80020
|
init_tools();
|
|
79088
|
-
|
|
80021
|
+
args123 = {
|
|
79089
80022
|
request: PostVpnSessionRequest$inboundSchema
|
|
79090
80023
|
};
|
|
79091
80024
|
tool$vpnSessionsCreate = {
|
|
@@ -79095,9 +80028,9 @@ var init_vpnSessionsCreate2 = __esm(() => {
|
|
|
79095
80028
|
Creates a new VPN Session.
|
|
79096
80029
|
\`NOTE:\` The VPN credentials are only listed ONCE upon creation. They can however be refreshed or deleted.
|
|
79097
80030
|
`,
|
|
79098
|
-
args:
|
|
79099
|
-
tool: async (client,
|
|
79100
|
-
const [result, apiCall] = await vpnSessionsCreate(client,
|
|
80031
|
+
args: args123,
|
|
80032
|
+
tool: async (client, args124, ctx) => {
|
|
80033
|
+
const [result, apiCall] = await vpnSessionsCreate(client, args124.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79101
80034
|
if (!result.ok) {
|
|
79102
80035
|
return {
|
|
79103
80036
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79112,9 +80045,9 @@ Creates a new VPN Session.
|
|
|
79112
80045
|
|
|
79113
80046
|
// src/funcs/vpnSessionsDelete.ts
|
|
79114
80047
|
function vpnSessionsDelete(client, request, options) {
|
|
79115
|
-
return new APIPromise($
|
|
80048
|
+
return new APIPromise($do131(client, request, options));
|
|
79116
80049
|
}
|
|
79117
|
-
async function $
|
|
80050
|
+
async function $do131(client, request, options) {
|
|
79118
80051
|
const parsed = safeParse4(request, (value) => DeleteVpnSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79119
80052
|
if (!parsed.ok) {
|
|
79120
80053
|
return [parsed, { status: "invalid" }];
|
|
@@ -79188,12 +80121,12 @@ var init_vpnSessionsDelete = __esm(() => {
|
|
|
79188
80121
|
});
|
|
79189
80122
|
|
|
79190
80123
|
// src/mcp-server/tools/vpnSessionsDelete.ts
|
|
79191
|
-
var
|
|
80124
|
+
var args124, tool$vpnSessionsDelete;
|
|
79192
80125
|
var init_vpnSessionsDelete2 = __esm(() => {
|
|
79193
80126
|
init_vpnSessionsDelete();
|
|
79194
80127
|
init_operations();
|
|
79195
80128
|
init_tools();
|
|
79196
|
-
|
|
80129
|
+
args124 = {
|
|
79197
80130
|
request: DeleteVpnSessionRequest$inboundSchema
|
|
79198
80131
|
};
|
|
79199
80132
|
tool$vpnSessionsDelete = {
|
|
@@ -79202,9 +80135,9 @@ var init_vpnSessionsDelete2 = __esm(() => {
|
|
|
79202
80135
|
|
|
79203
80136
|
Deletes an existing VPN Session.
|
|
79204
80137
|
`,
|
|
79205
|
-
args:
|
|
79206
|
-
tool: async (client,
|
|
79207
|
-
const [result, apiCall] = await vpnSessionsDelete(client,
|
|
80138
|
+
args: args124,
|
|
80139
|
+
tool: async (client, args125, ctx) => {
|
|
80140
|
+
const [result, apiCall] = await vpnSessionsDelete(client, args125.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79208
80141
|
if (!result.ok) {
|
|
79209
80142
|
return {
|
|
79210
80143
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79218,9 +80151,9 @@ Deletes an existing VPN Session.
|
|
|
79218
80151
|
|
|
79219
80152
|
// src/funcs/vpnSessionsList.ts
|
|
79220
80153
|
function vpnSessionsList(client, request, options) {
|
|
79221
|
-
return new APIPromise($
|
|
80154
|
+
return new APIPromise($do132(client, request, options));
|
|
79222
80155
|
}
|
|
79223
|
-
async function $
|
|
80156
|
+
async function $do132(client, request, options) {
|
|
79224
80157
|
const parsed = safeParse4(request, (value) => GetVpnSessionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
79225
80158
|
if (!parsed.ok) {
|
|
79226
80159
|
return [parsed, { status: "invalid" }];
|
|
@@ -79293,20 +80226,20 @@ var init_vpnSessionsList = __esm(() => {
|
|
|
79293
80226
|
});
|
|
79294
80227
|
|
|
79295
80228
|
// src/mcp-server/tools/vpnSessionsList.ts
|
|
79296
|
-
var
|
|
80229
|
+
var args125, tool$vpnSessionsList;
|
|
79297
80230
|
var init_vpnSessionsList2 = __esm(() => {
|
|
79298
80231
|
init_vpnSessionsList();
|
|
79299
80232
|
init_operations();
|
|
79300
80233
|
init_tools();
|
|
79301
|
-
|
|
80234
|
+
args125 = {
|
|
79302
80235
|
request: GetVpnSessionsRequest$inboundSchema.optional()
|
|
79303
80236
|
};
|
|
79304
80237
|
tool$vpnSessionsList = {
|
|
79305
80238
|
name: "vpn-sessions-list",
|
|
79306
80239
|
description: `List VPN sessions`,
|
|
79307
|
-
args:
|
|
79308
|
-
tool: async (client,
|
|
79309
|
-
const [result, apiCall] = await vpnSessionsList(client,
|
|
80240
|
+
args: args125,
|
|
80241
|
+
tool: async (client, args126, ctx) => {
|
|
80242
|
+
const [result, apiCall] = await vpnSessionsList(client, args126.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79310
80243
|
if (!result.ok) {
|
|
79311
80244
|
return {
|
|
79312
80245
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79321,9 +80254,9 @@ var init_vpnSessionsList2 = __esm(() => {
|
|
|
79321
80254
|
|
|
79322
80255
|
// src/funcs/vpnSessionsRefreshPassword.ts
|
|
79323
80256
|
function vpnSessionsRefreshPassword(client, request, options) {
|
|
79324
|
-
return new APIPromise($
|
|
80257
|
+
return new APIPromise($do133(client, request, options));
|
|
79325
80258
|
}
|
|
79326
|
-
async function $
|
|
80259
|
+
async function $do133(client, request, options) {
|
|
79327
80260
|
const parsed = safeParse4(request, (value) => PutVpnSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79328
80261
|
if (!parsed.ok) {
|
|
79329
80262
|
return [parsed, { status: "invalid" }];
|
|
@@ -79399,12 +80332,12 @@ var init_vpnSessionsRefreshPassword = __esm(() => {
|
|
|
79399
80332
|
});
|
|
79400
80333
|
|
|
79401
80334
|
// src/mcp-server/tools/vpnSessionsRefreshPassword.ts
|
|
79402
|
-
var
|
|
80335
|
+
var args126, tool$vpnSessionsRefreshPassword;
|
|
79403
80336
|
var init_vpnSessionsRefreshPassword2 = __esm(() => {
|
|
79404
80337
|
init_vpnSessionsRefreshPassword();
|
|
79405
80338
|
init_operations();
|
|
79406
80339
|
init_tools();
|
|
79407
|
-
|
|
80340
|
+
args126 = {
|
|
79408
80341
|
request: PutVpnSessionRequest$inboundSchema
|
|
79409
80342
|
};
|
|
79410
80343
|
tool$vpnSessionsRefreshPassword = {
|
|
@@ -79413,9 +80346,9 @@ var init_vpnSessionsRefreshPassword2 = __esm(() => {
|
|
|
79413
80346
|
|
|
79414
80347
|
Refreshing an existing VPN Session will create new credentials for that session
|
|
79415
80348
|
`,
|
|
79416
|
-
args:
|
|
79417
|
-
tool: async (client,
|
|
79418
|
-
const [result, apiCall] = await vpnSessionsRefreshPassword(client,
|
|
80349
|
+
args: args126,
|
|
80350
|
+
tool: async (client, args127, ctx) => {
|
|
80351
|
+
const [result, apiCall] = await vpnSessionsRefreshPassword(client, args127.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79419
80352
|
if (!result.ok) {
|
|
79420
80353
|
return {
|
|
79421
80354
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79432,7 +80365,7 @@ Refreshing an existing VPN Session will create new credentials for that session
|
|
|
79432
80365
|
function createMCPServer(deps) {
|
|
79433
80366
|
const server2 = new McpServer({
|
|
79434
80367
|
name: "Latitudesh",
|
|
79435
|
-
version: "0.
|
|
80368
|
+
version: "0.5.0"
|
|
79436
80369
|
});
|
|
79437
80370
|
const client = new LatitudeshCore({
|
|
79438
80371
|
bearer: deps.bearer,
|
|
@@ -79560,6 +80493,10 @@ function createMCPServer(deps) {
|
|
|
79560
80493
|
tool(tool$virtualMachinesDelete);
|
|
79561
80494
|
tool(tool$virtualMachinesUpdateVirtualMachine);
|
|
79562
80495
|
tool(tool$virtualMachinesCreateVirtualMachineAction);
|
|
80496
|
+
tool(tool$virtualMachinesShowVirtualMachineMetrics);
|
|
80497
|
+
tool(tool$virtualMachinesListVirtualMachineNetworkAttachments);
|
|
80498
|
+
tool(tool$virtualMachinesCreateVirtualMachineNetworkAttachment);
|
|
80499
|
+
tool(tool$virtualMachinesDestroyVirtualMachineNetworkAttachment);
|
|
79563
80500
|
tool(tool$privateNetworksList);
|
|
79564
80501
|
tool(tool$privateNetworksCreate);
|
|
79565
80502
|
tool(tool$privateNetworksUpdate);
|
|
@@ -79703,9 +80640,13 @@ var init_server4 = __esm(() => {
|
|
|
79703
80640
|
init_userProfileUpdate2();
|
|
79704
80641
|
init_virtualMachinesCreate2();
|
|
79705
80642
|
init_virtualMachinesCreateVirtualMachineAction2();
|
|
80643
|
+
init_virtualMachinesCreateVirtualMachineNetworkAttachment2();
|
|
79706
80644
|
init_virtualMachinesDelete2();
|
|
80645
|
+
init_virtualMachinesDestroyVirtualMachineNetworkAttachment2();
|
|
79707
80646
|
init_virtualMachinesGet2();
|
|
79708
80647
|
init_virtualMachinesList2();
|
|
80648
|
+
init_virtualMachinesListVirtualMachineNetworkAttachments2();
|
|
80649
|
+
init_virtualMachinesShowVirtualMachineMetrics2();
|
|
79709
80650
|
init_virtualMachinesUpdateVirtualMachine2();
|
|
79710
80651
|
init_virtualNetworksDelete2();
|
|
79711
80652
|
init_vpnSessionsCreate2();
|
|
@@ -80915,7 +81856,7 @@ var routes = ln({
|
|
|
80915
81856
|
var app = _e(routes, {
|
|
80916
81857
|
name: "mcp",
|
|
80917
81858
|
versionInfo: {
|
|
80918
|
-
currentVersion: "0.
|
|
81859
|
+
currentVersion: "0.5.0"
|
|
80919
81860
|
}
|
|
80920
81861
|
});
|
|
80921
81862
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -80923,5 +81864,5 @@ export {
|
|
|
80923
81864
|
app
|
|
80924
81865
|
};
|
|
80925
81866
|
|
|
80926
|
-
//# debugId=
|
|
81867
|
+
//# debugId=13BE0D09A67F877B64756E2164756E21
|
|
80927
81868
|
//# sourceMappingURL=mcp-server.js.map
|