latitudesh-typescript-sdk 0.6.3 → 0.7.1
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 +33 -1
- package/bin/mcp-server.js +2380 -350
- package/bin/mcp-server.js.map +72 -28
- package/dist/commonjs/funcs/plansGetManagedDatabasePlans.d.ts +14 -0
- package/dist/commonjs/funcs/plansGetManagedDatabasePlans.d.ts.map +1 -0
- package/dist/commonjs/funcs/plansGetManagedDatabasePlans.js +104 -0
- package/dist/commonjs/funcs/plansGetManagedDatabasePlans.js.map +1 -0
- package/dist/commonjs/funcs/privateNetworksList.js +1 -0
- package/dist/commonjs/funcs/privateNetworksList.js.map +1 -1
- package/dist/commonjs/funcs/privateNetworksListAssignments.js +1 -0
- package/dist/commonjs/funcs/privateNetworksListAssignments.js.map +1 -1
- package/dist/commonjs/funcs/serversList.js +1 -0
- package/dist/commonjs/funcs/serversList.js.map +1 -1
- package/dist/commonjs/funcs/virtualMachineBackupsCreate.d.ts +18 -0
- package/dist/commonjs/funcs/virtualMachineBackupsCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachineBackupsCreate.js +123 -0
- package/dist/commonjs/funcs/virtualMachineBackupsCreate.js.map +1 -0
- package/dist/commonjs/funcs/virtualMachineBackupsCreateForVirtualMachine.d.ts +19 -0
- package/dist/commonjs/funcs/virtualMachineBackupsCreateForVirtualMachine.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachineBackupsCreateForVirtualMachine.js +126 -0
- package/dist/commonjs/funcs/virtualMachineBackupsCreateForVirtualMachine.js.map +1 -0
- package/dist/commonjs/funcs/virtualMachineBackupsDelete.d.ts +19 -0
- package/dist/commonjs/funcs/virtualMachineBackupsDelete.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachineBackupsDelete.js +129 -0
- package/dist/commonjs/funcs/virtualMachineBackupsDelete.js.map +1 -0
- package/dist/commonjs/funcs/virtualMachineBackupsGet.d.ts +16 -0
- package/dist/commonjs/funcs/virtualMachineBackupsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachineBackupsGet.js +126 -0
- package/dist/commonjs/funcs/virtualMachineBackupsGet.js.map +1 -0
- package/dist/commonjs/funcs/virtualMachineBackupsList.d.ts +18 -0
- package/dist/commonjs/funcs/virtualMachineBackupsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachineBackupsList.js +113 -0
- package/dist/commonjs/funcs/virtualMachineBackupsList.js.map +1 -0
- package/dist/commonjs/funcs/virtualMachineBackupsListForVirtualMachine.d.ts +19 -0
- package/dist/commonjs/funcs/virtualMachineBackupsListForVirtualMachine.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachineBackupsListForVirtualMachine.js +126 -0
- package/dist/commonjs/funcs/virtualMachineBackupsListForVirtualMachine.js.map +1 -0
- package/dist/commonjs/funcs/virtualMachineRestoresCreate.d.ts +18 -0
- package/dist/commonjs/funcs/virtualMachineRestoresCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachineRestoresCreate.js +123 -0
- package/dist/commonjs/funcs/virtualMachineRestoresCreate.js.map +1 -0
- package/dist/commonjs/funcs/virtualMachineRestoresCreateForVirtualMachineBackup.d.ts +19 -0
- package/dist/commonjs/funcs/virtualMachineRestoresCreateForVirtualMachineBackup.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachineRestoresCreateForVirtualMachineBackup.js +133 -0
- package/dist/commonjs/funcs/virtualMachineRestoresCreateForVirtualMachineBackup.js.map +1 -0
- package/dist/commonjs/funcs/virtualMachineRestoresGet.d.ts +16 -0
- package/dist/commonjs/funcs/virtualMachineRestoresGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachineRestoresGet.js +126 -0
- package/dist/commonjs/funcs/virtualMachineRestoresGet.js.map +1 -0
- package/dist/commonjs/funcs/virtualMachineRestoresList.d.ts +18 -0
- package/dist/commonjs/funcs/virtualMachineRestoresList.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachineRestoresList.js +113 -0
- package/dist/commonjs/funcs/virtualMachineRestoresList.js.map +1 -0
- package/dist/commonjs/funcs/virtualMachineRestoresListForBackup.d.ts +19 -0
- package/dist/commonjs/funcs/virtualMachineRestoresListForBackup.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachineRestoresListForBackup.js +129 -0
- package/dist/commonjs/funcs/virtualMachineRestoresListForBackup.js.map +1 -0
- package/dist/commonjs/funcs/virtualMachineRestoresListForVirtualMachineBackup.d.ts +19 -0
- package/dist/commonjs/funcs/virtualMachineRestoresListForVirtualMachineBackup.d.ts.map +1 -0
- package/dist/commonjs/funcs/virtualMachineRestoresListForVirtualMachineBackup.js +130 -0
- package/dist/commonjs/funcs/virtualMachineRestoresListForVirtualMachineBackup.js.map +1 -0
- package/dist/commonjs/funcs/virtualMachinesGet.js +4 -0
- package/dist/commonjs/funcs/virtualMachinesGet.js.map +1 -1
- package/dist/commonjs/funcs/virtualMachinesList.d.ts +2 -1
- package/dist/commonjs/funcs/virtualMachinesList.d.ts.map +1 -1
- package/dist/commonjs/funcs/virtualMachinesList.js +8 -1
- package/dist/commonjs/funcs/virtualMachinesList.js.map +1 -1
- package/dist/commonjs/funcs/virtualMachinesUpdateVirtualMachine.js +2 -2
- package/dist/commonjs/funcs/virtualMachinesUpdateVirtualMachine.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- 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 +27 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/plansGetManagedDatabasePlans.d.ts +3 -0
- package/dist/commonjs/mcp-server/tools/plansGetManagedDatabasePlans.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/plansGetManagedDatabasePlans.js +24 -0
- package/dist/commonjs/mcp-server/tools/plansGetManagedDatabasePlans.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsCreate.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsCreate.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsCreate.js +65 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsCreate.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsCreateForVirtualMachine.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsCreateForVirtualMachine.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsCreateForVirtualMachine.js +65 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsCreateForVirtualMachine.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsDelete.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsDelete.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsDelete.js +65 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsDelete.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsGet.js +62 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsGet.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsList.d.ts +3 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsList.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsList.js +27 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsList.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsListForVirtualMachine.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsListForVirtualMachine.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsListForVirtualMachine.js +65 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineBackupsListForVirtualMachine.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresCreate.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresCreate.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresCreate.js +65 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresCreate.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresCreateForVirtualMachineBackup.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresCreateForVirtualMachineBackup.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresCreateForVirtualMachineBackup.js +65 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresCreateForVirtualMachineBackup.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresGet.js +62 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresGet.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresList.d.ts +3 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresList.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresList.js +27 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresList.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresListForBackup.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresListForBackup.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresListForBackup.js +65 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresListForBackup.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresListForVirtualMachineBackup.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresListForVirtualMachineBackup.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresListForVirtualMachineBackup.js +65 -0
- package/dist/commonjs/mcp-server/tools/virtualMachineRestoresListForVirtualMachineBackup.js.map +1 -0
- package/dist/commonjs/models/customtagdata.d.ts +2 -2
- package/dist/commonjs/models/customtagdata.d.ts.map +1 -1
- package/dist/commonjs/models/customtagdata.js +2 -2
- package/dist/commonjs/models/customtagdata.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +10 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +10 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/manageddatabaseplanattributes.d.ts +133 -0
- package/dist/commonjs/models/manageddatabaseplanattributes.d.ts.map +1 -0
- package/dist/commonjs/models/manageddatabaseplanattributes.js +187 -0
- package/dist/commonjs/models/manageddatabaseplanattributes.js.map +1 -0
- package/dist/commonjs/models/manageddatabaseplans.d.ts +18 -0
- package/dist/commonjs/models/manageddatabaseplans.d.ts.map +1 -0
- package/dist/commonjs/models/manageddatabaseplans.js +59 -0
- package/dist/commonjs/models/manageddatabaseplans.js.map +1 -0
- package/dist/commonjs/models/operations/createvirtualmachinebackup.d.ts +17 -0
- package/dist/commonjs/models/operations/createvirtualmachinebackup.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createvirtualmachinebackup.js +67 -0
- package/dist/commonjs/models/operations/createvirtualmachinebackup.js.map +1 -0
- package/dist/commonjs/models/operations/createvirtualmachinerestore.d.ts +22 -0
- package/dist/commonjs/models/operations/createvirtualmachinerestore.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createvirtualmachinerestore.js +78 -0
- package/dist/commonjs/models/operations/createvirtualmachinerestore.js.map +1 -0
- package/dist/commonjs/models/operations/deletevirtualmachinebackup.d.ts +17 -0
- package/dist/commonjs/models/operations/deletevirtualmachinebackup.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletevirtualmachinebackup.js +58 -0
- package/dist/commonjs/models/operations/deletevirtualmachinebackup.js.map +1 -0
- package/dist/commonjs/models/operations/getservers.d.ts +5 -0
- package/dist/commonjs/models/operations/getservers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getservers.js +4 -0
- package/dist/commonjs/models/operations/getservers.js.map +1 -1
- package/dist/commonjs/models/operations/getvirtualmachinebackup.d.ts +17 -0
- package/dist/commonjs/models/operations/getvirtualmachinebackup.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getvirtualmachinebackup.js +58 -0
- package/dist/commonjs/models/operations/getvirtualmachinebackup.js.map +1 -0
- package/dist/commonjs/models/operations/getvirtualmachinerestore.d.ts +17 -0
- package/dist/commonjs/models/operations/getvirtualmachinerestore.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getvirtualmachinerestore.js +58 -0
- package/dist/commonjs/models/operations/getvirtualmachinerestore.js.map +1 -0
- package/dist/commonjs/models/operations/getvirtualnetworks.d.ts +5 -0
- package/dist/commonjs/models/operations/getvirtualnetworks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getvirtualnetworks.js +4 -0
- package/dist/commonjs/models/operations/getvirtualnetworks.js.map +1 -1
- package/dist/commonjs/models/operations/getvirtualnetworksassignments.d.ts +5 -0
- package/dist/commonjs/models/operations/getvirtualnetworksassignments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getvirtualnetworksassignments.js +4 -0
- package/dist/commonjs/models/operations/getvirtualnetworksassignments.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +8 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +8 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/indexvirtualmachine.d.ts +5 -0
- package/dist/commonjs/models/operations/indexvirtualmachine.d.ts.map +1 -1
- package/dist/commonjs/models/operations/indexvirtualmachine.js +2 -0
- package/dist/commonjs/models/operations/indexvirtualmachine.js.map +1 -1
- package/dist/commonjs/models/operations/listbackuprestores.d.ts +17 -0
- package/dist/commonjs/models/operations/listbackuprestores.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listbackuprestores.js +67 -0
- package/dist/commonjs/models/operations/listbackuprestores.js.map +1 -0
- package/dist/commonjs/models/operations/listvirtualmachinescopedbackups.d.ts +17 -0
- package/dist/commonjs/models/operations/listvirtualmachinescopedbackups.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listvirtualmachinescopedbackups.js +67 -0
- package/dist/commonjs/models/operations/listvirtualmachinescopedbackups.js.map +1 -0
- package/dist/commonjs/models/operations/listvirtualmachinescopedrestores.d.ts +19 -0
- package/dist/commonjs/models/operations/listvirtualmachinescopedrestores.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listvirtualmachinescopedrestores.js +71 -0
- package/dist/commonjs/models/operations/listvirtualmachinescopedrestores.js.map +1 -0
- package/dist/commonjs/models/operations/showvirtualmachine.d.ts +5 -0
- package/dist/commonjs/models/operations/showvirtualmachine.d.ts.map +1 -1
- package/dist/commonjs/models/operations/showvirtualmachine.js +4 -0
- package/dist/commonjs/models/operations/showvirtualmachine.js.map +1 -1
- package/dist/commonjs/models/operations/updatevirtualnetwork.d.ts +1 -1
- package/dist/commonjs/models/operations/updatevirtualnetwork.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevirtualnetwork.js +2 -2
- package/dist/commonjs/models/operations/updatevirtualnetwork.js.map +1 -1
- package/dist/commonjs/models/servers.d.ts +3 -11
- package/dist/commonjs/models/servers.d.ts.map +1 -1
- package/dist/commonjs/models/servers.js +4 -15
- package/dist/commonjs/models/servers.js.map +1 -1
- package/dist/commonjs/models/virtualmachineattributes.d.ts +2 -2
- package/dist/commonjs/models/virtualmachinebackup.d.ts +29 -0
- package/dist/commonjs/models/virtualmachinebackup.d.ts.map +1 -0
- package/dist/commonjs/models/virtualmachinebackup.js +73 -0
- package/dist/commonjs/models/virtualmachinebackup.js.map +1 -0
- package/dist/commonjs/models/virtualmachinebackupattributes.d.ts +85 -0
- package/dist/commonjs/models/virtualmachinebackupattributes.d.ts.map +1 -0
- package/dist/commonjs/models/virtualmachinebackupattributes.js +146 -0
- package/dist/commonjs/models/virtualmachinebackupattributes.js.map +1 -0
- package/dist/commonjs/models/virtualmachinebackuppayload.d.ts +57 -0
- package/dist/commonjs/models/virtualmachinebackuppayload.d.ts.map +1 -0
- package/dist/commonjs/models/virtualmachinebackuppayload.js +110 -0
- package/dist/commonjs/models/virtualmachinebackuppayload.js.map +1 -0
- package/dist/commonjs/models/virtualmachinebackups.d.ts +29 -0
- package/dist/commonjs/models/virtualmachinebackups.d.ts.map +1 -0
- package/dist/commonjs/models/virtualmachinebackups.js +73 -0
- package/dist/commonjs/models/virtualmachinebackups.js.map +1 -0
- package/dist/commonjs/models/virtualmachinepayload.d.ts +1 -1
- package/dist/commonjs/models/virtualmachinerestore.d.ts +29 -0
- package/dist/commonjs/models/virtualmachinerestore.d.ts.map +1 -0
- package/dist/commonjs/models/virtualmachinerestore.js +73 -0
- package/dist/commonjs/models/virtualmachinerestore.js.map +1 -0
- package/dist/commonjs/models/virtualmachinerestoreattributes.d.ts +99 -0
- package/dist/commonjs/models/virtualmachinerestoreattributes.d.ts.map +1 -0
- package/dist/commonjs/models/virtualmachinerestoreattributes.js +152 -0
- package/dist/commonjs/models/virtualmachinerestoreattributes.js.map +1 -0
- package/dist/commonjs/models/virtualmachinerestorepayload.d.ts +67 -0
- package/dist/commonjs/models/virtualmachinerestorepayload.d.ts.map +1 -0
- package/dist/commonjs/models/virtualmachinerestorepayload.js +105 -0
- package/dist/commonjs/models/virtualmachinerestorepayload.js.map +1 -0
- package/dist/commonjs/models/virtualmachinerestores.d.ts +29 -0
- package/dist/commonjs/models/virtualmachinerestores.d.ts.map +1 -0
- package/dist/commonjs/models/virtualmachinerestores.js +73 -0
- package/dist/commonjs/models/virtualmachinerestores.js.map +1 -0
- package/dist/commonjs/models/virtualmachineupdatepayload.d.ts +26 -0
- package/dist/commonjs/models/virtualmachineupdatepayload.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachineupdatepayload.js +18 -1
- package/dist/commonjs/models/virtualmachineupdatepayload.js.map +1 -1
- package/dist/commonjs/models/virtualnetworkassignments.d.ts +3 -11
- package/dist/commonjs/models/virtualnetworkassignments.d.ts.map +1 -1
- package/dist/commonjs/models/virtualnetworkassignments.js +4 -15
- package/dist/commonjs/models/virtualnetworkassignments.js.map +1 -1
- package/dist/commonjs/models/virtualnetworkdata.d.ts +4 -4
- package/dist/commonjs/models/virtualnetworkdata.d.ts.map +1 -1
- package/dist/commonjs/models/virtualnetworkdata.js +4 -4
- package/dist/commonjs/models/virtualnetworkdata.js.map +1 -1
- package/dist/commonjs/models/virtualnetworks.d.ts +3 -11
- package/dist/commonjs/models/virtualnetworks.d.ts.map +1 -1
- package/dist/commonjs/models/virtualnetworks.js +4 -15
- package/dist/commonjs/models/virtualnetworks.js.map +1 -1
- package/dist/commonjs/sdk/plans.d.ts +4 -0
- package/dist/commonjs/sdk/plans.d.ts.map +1 -1
- package/dist/commonjs/sdk/plans.js +7 -0
- package/dist/commonjs/sdk/plans.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +6 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +8 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/virtualmachinebackups.d.ts +45 -0
- package/dist/commonjs/sdk/virtualmachinebackups.d.ts.map +1 -0
- package/dist/commonjs/sdk/virtualmachinebackups.js +69 -0
- package/dist/commonjs/sdk/virtualmachinebackups.js.map +1 -0
- package/dist/commonjs/sdk/virtualmachinerestores.d.ts +45 -0
- package/dist/commonjs/sdk/virtualmachinerestores.d.ts.map +1 -0
- package/dist/commonjs/sdk/virtualmachinerestores.js +69 -0
- package/dist/commonjs/sdk/virtualmachinerestores.js.map +1 -0
- package/dist/esm/funcs/plansGetManagedDatabasePlans.d.ts +14 -0
- package/dist/esm/funcs/plansGetManagedDatabasePlans.d.ts.map +1 -0
- package/dist/esm/funcs/plansGetManagedDatabasePlans.js +68 -0
- package/dist/esm/funcs/plansGetManagedDatabasePlans.js.map +1 -0
- package/dist/esm/funcs/privateNetworksList.js +1 -0
- package/dist/esm/funcs/privateNetworksList.js.map +1 -1
- package/dist/esm/funcs/privateNetworksListAssignments.js +1 -0
- package/dist/esm/funcs/privateNetworksListAssignments.js.map +1 -1
- package/dist/esm/funcs/serversList.js +1 -0
- package/dist/esm/funcs/serversList.js.map +1 -1
- package/dist/esm/funcs/virtualMachineBackupsCreate.d.ts +18 -0
- package/dist/esm/funcs/virtualMachineBackupsCreate.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachineBackupsCreate.js +87 -0
- package/dist/esm/funcs/virtualMachineBackupsCreate.js.map +1 -0
- package/dist/esm/funcs/virtualMachineBackupsCreateForVirtualMachine.d.ts +19 -0
- package/dist/esm/funcs/virtualMachineBackupsCreateForVirtualMachine.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachineBackupsCreateForVirtualMachine.js +90 -0
- package/dist/esm/funcs/virtualMachineBackupsCreateForVirtualMachine.js.map +1 -0
- package/dist/esm/funcs/virtualMachineBackupsDelete.d.ts +19 -0
- package/dist/esm/funcs/virtualMachineBackupsDelete.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachineBackupsDelete.js +93 -0
- package/dist/esm/funcs/virtualMachineBackupsDelete.js.map +1 -0
- package/dist/esm/funcs/virtualMachineBackupsGet.d.ts +16 -0
- package/dist/esm/funcs/virtualMachineBackupsGet.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachineBackupsGet.js +90 -0
- package/dist/esm/funcs/virtualMachineBackupsGet.js.map +1 -0
- package/dist/esm/funcs/virtualMachineBackupsList.d.ts +18 -0
- package/dist/esm/funcs/virtualMachineBackupsList.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachineBackupsList.js +77 -0
- package/dist/esm/funcs/virtualMachineBackupsList.js.map +1 -0
- package/dist/esm/funcs/virtualMachineBackupsListForVirtualMachine.d.ts +19 -0
- package/dist/esm/funcs/virtualMachineBackupsListForVirtualMachine.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachineBackupsListForVirtualMachine.js +90 -0
- package/dist/esm/funcs/virtualMachineBackupsListForVirtualMachine.js.map +1 -0
- package/dist/esm/funcs/virtualMachineRestoresCreate.d.ts +18 -0
- package/dist/esm/funcs/virtualMachineRestoresCreate.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachineRestoresCreate.js +87 -0
- package/dist/esm/funcs/virtualMachineRestoresCreate.js.map +1 -0
- package/dist/esm/funcs/virtualMachineRestoresCreateForVirtualMachineBackup.d.ts +19 -0
- package/dist/esm/funcs/virtualMachineRestoresCreateForVirtualMachineBackup.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachineRestoresCreateForVirtualMachineBackup.js +97 -0
- package/dist/esm/funcs/virtualMachineRestoresCreateForVirtualMachineBackup.js.map +1 -0
- package/dist/esm/funcs/virtualMachineRestoresGet.d.ts +16 -0
- package/dist/esm/funcs/virtualMachineRestoresGet.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachineRestoresGet.js +90 -0
- package/dist/esm/funcs/virtualMachineRestoresGet.js.map +1 -0
- package/dist/esm/funcs/virtualMachineRestoresList.d.ts +18 -0
- package/dist/esm/funcs/virtualMachineRestoresList.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachineRestoresList.js +77 -0
- package/dist/esm/funcs/virtualMachineRestoresList.js.map +1 -0
- package/dist/esm/funcs/virtualMachineRestoresListForBackup.d.ts +19 -0
- package/dist/esm/funcs/virtualMachineRestoresListForBackup.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachineRestoresListForBackup.js +93 -0
- package/dist/esm/funcs/virtualMachineRestoresListForBackup.js.map +1 -0
- package/dist/esm/funcs/virtualMachineRestoresListForVirtualMachineBackup.d.ts +19 -0
- package/dist/esm/funcs/virtualMachineRestoresListForVirtualMachineBackup.d.ts.map +1 -0
- package/dist/esm/funcs/virtualMachineRestoresListForVirtualMachineBackup.js +94 -0
- package/dist/esm/funcs/virtualMachineRestoresListForVirtualMachineBackup.js.map +1 -0
- package/dist/esm/funcs/virtualMachinesGet.js +5 -1
- package/dist/esm/funcs/virtualMachinesGet.js.map +1 -1
- package/dist/esm/funcs/virtualMachinesList.d.ts +2 -1
- package/dist/esm/funcs/virtualMachinesList.d.ts.map +1 -1
- package/dist/esm/funcs/virtualMachinesList.js +8 -1
- package/dist/esm/funcs/virtualMachinesList.js.map +1 -1
- package/dist/esm/funcs/virtualMachinesUpdateVirtualMachine.js +2 -2
- package/dist/esm/funcs/virtualMachinesUpdateVirtualMachine.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- 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 +27 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/plansGetManagedDatabasePlans.d.ts +3 -0
- package/dist/esm/mcp-server/tools/plansGetManagedDatabasePlans.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/plansGetManagedDatabasePlans.js +21 -0
- package/dist/esm/mcp-server/tools/plansGetManagedDatabasePlans.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsCreate.d.ts +8 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsCreate.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsCreate.js +29 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsCreate.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsCreateForVirtualMachine.d.ts +8 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsCreateForVirtualMachine.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsCreateForVirtualMachine.js +29 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsCreateForVirtualMachine.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsDelete.d.ts +8 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsDelete.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsDelete.js +29 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsDelete.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsGet.js +26 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsGet.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsList.d.ts +3 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsList.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsList.js +24 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsList.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsListForVirtualMachine.d.ts +8 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsListForVirtualMachine.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsListForVirtualMachine.js +29 -0
- package/dist/esm/mcp-server/tools/virtualMachineBackupsListForVirtualMachine.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresCreate.d.ts +8 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresCreate.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresCreate.js +29 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresCreate.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresCreateForVirtualMachineBackup.d.ts +8 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresCreateForVirtualMachineBackup.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresCreateForVirtualMachineBackup.js +29 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresCreateForVirtualMachineBackup.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresGet.js +26 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresGet.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresList.d.ts +3 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresList.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresList.js +24 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresList.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresListForBackup.d.ts +8 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresListForBackup.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresListForBackup.js +29 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresListForBackup.js.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresListForVirtualMachineBackup.d.ts +8 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresListForVirtualMachineBackup.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresListForVirtualMachineBackup.js +29 -0
- package/dist/esm/mcp-server/tools/virtualMachineRestoresListForVirtualMachineBackup.js.map +1 -0
- package/dist/esm/models/customtagdata.d.ts +2 -2
- package/dist/esm/models/customtagdata.d.ts.map +1 -1
- package/dist/esm/models/customtagdata.js +2 -2
- package/dist/esm/models/customtagdata.js.map +1 -1
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +10 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/manageddatabaseplanattributes.d.ts +133 -0
- package/dist/esm/models/manageddatabaseplanattributes.d.ts.map +1 -0
- package/dist/esm/models/manageddatabaseplanattributes.js +139 -0
- package/dist/esm/models/manageddatabaseplanattributes.js.map +1 -0
- package/dist/esm/models/manageddatabaseplans.d.ts +18 -0
- package/dist/esm/models/manageddatabaseplans.d.ts.map +1 -0
- package/dist/esm/models/manageddatabaseplans.js +21 -0
- package/dist/esm/models/manageddatabaseplans.js.map +1 -0
- package/dist/esm/models/operations/createvirtualmachinebackup.d.ts +17 -0
- package/dist/esm/models/operations/createvirtualmachinebackup.d.ts.map +1 -0
- package/dist/esm/models/operations/createvirtualmachinebackup.js +29 -0
- package/dist/esm/models/operations/createvirtualmachinebackup.js.map +1 -0
- package/dist/esm/models/operations/createvirtualmachinerestore.d.ts +22 -0
- package/dist/esm/models/operations/createvirtualmachinerestore.d.ts.map +1 -0
- package/dist/esm/models/operations/createvirtualmachinerestore.js +40 -0
- package/dist/esm/models/operations/createvirtualmachinerestore.js.map +1 -0
- package/dist/esm/models/operations/deletevirtualmachinebackup.d.ts +17 -0
- package/dist/esm/models/operations/deletevirtualmachinebackup.d.ts.map +1 -0
- package/dist/esm/models/operations/deletevirtualmachinebackup.js +20 -0
- package/dist/esm/models/operations/deletevirtualmachinebackup.js.map +1 -0
- package/dist/esm/models/operations/getservers.d.ts +5 -0
- package/dist/esm/models/operations/getservers.d.ts.map +1 -1
- package/dist/esm/models/operations/getservers.js +4 -0
- package/dist/esm/models/operations/getservers.js.map +1 -1
- package/dist/esm/models/operations/getvirtualmachinebackup.d.ts +17 -0
- package/dist/esm/models/operations/getvirtualmachinebackup.d.ts.map +1 -0
- package/dist/esm/models/operations/getvirtualmachinebackup.js +20 -0
- package/dist/esm/models/operations/getvirtualmachinebackup.js.map +1 -0
- package/dist/esm/models/operations/getvirtualmachinerestore.d.ts +17 -0
- package/dist/esm/models/operations/getvirtualmachinerestore.d.ts.map +1 -0
- package/dist/esm/models/operations/getvirtualmachinerestore.js +20 -0
- package/dist/esm/models/operations/getvirtualmachinerestore.js.map +1 -0
- package/dist/esm/models/operations/getvirtualnetworks.d.ts +5 -0
- package/dist/esm/models/operations/getvirtualnetworks.d.ts.map +1 -1
- package/dist/esm/models/operations/getvirtualnetworks.js +4 -0
- package/dist/esm/models/operations/getvirtualnetworks.js.map +1 -1
- package/dist/esm/models/operations/getvirtualnetworksassignments.d.ts +5 -0
- package/dist/esm/models/operations/getvirtualnetworksassignments.d.ts.map +1 -1
- package/dist/esm/models/operations/getvirtualnetworksassignments.js +4 -0
- package/dist/esm/models/operations/getvirtualnetworksassignments.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +8 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +8 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/indexvirtualmachine.d.ts +5 -0
- package/dist/esm/models/operations/indexvirtualmachine.d.ts.map +1 -1
- package/dist/esm/models/operations/indexvirtualmachine.js +2 -0
- package/dist/esm/models/operations/indexvirtualmachine.js.map +1 -1
- package/dist/esm/models/operations/listbackuprestores.d.ts +17 -0
- package/dist/esm/models/operations/listbackuprestores.d.ts.map +1 -0
- package/dist/esm/models/operations/listbackuprestores.js +29 -0
- package/dist/esm/models/operations/listbackuprestores.js.map +1 -0
- package/dist/esm/models/operations/listvirtualmachinescopedbackups.d.ts +17 -0
- package/dist/esm/models/operations/listvirtualmachinescopedbackups.d.ts.map +1 -0
- package/dist/esm/models/operations/listvirtualmachinescopedbackups.js +29 -0
- package/dist/esm/models/operations/listvirtualmachinescopedbackups.js.map +1 -0
- package/dist/esm/models/operations/listvirtualmachinescopedrestores.d.ts +19 -0
- package/dist/esm/models/operations/listvirtualmachinescopedrestores.d.ts.map +1 -0
- package/dist/esm/models/operations/listvirtualmachinescopedrestores.js +33 -0
- package/dist/esm/models/operations/listvirtualmachinescopedrestores.js.map +1 -0
- package/dist/esm/models/operations/showvirtualmachine.d.ts +5 -0
- package/dist/esm/models/operations/showvirtualmachine.d.ts.map +1 -1
- package/dist/esm/models/operations/showvirtualmachine.js +4 -0
- package/dist/esm/models/operations/showvirtualmachine.js.map +1 -1
- package/dist/esm/models/operations/updatevirtualnetwork.d.ts +1 -1
- package/dist/esm/models/operations/updatevirtualnetwork.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevirtualnetwork.js +2 -2
- package/dist/esm/models/operations/updatevirtualnetwork.js.map +1 -1
- package/dist/esm/models/servers.d.ts +3 -11
- package/dist/esm/models/servers.d.ts.map +1 -1
- package/dist/esm/models/servers.js +3 -12
- package/dist/esm/models/servers.js.map +1 -1
- package/dist/esm/models/virtualmachineattributes.d.ts +2 -2
- package/dist/esm/models/virtualmachinebackup.d.ts +29 -0
- package/dist/esm/models/virtualmachinebackup.d.ts.map +1 -0
- package/dist/esm/models/virtualmachinebackup.js +33 -0
- package/dist/esm/models/virtualmachinebackup.js.map +1 -0
- package/dist/esm/models/virtualmachinebackupattributes.d.ts +85 -0
- package/dist/esm/models/virtualmachinebackupattributes.d.ts.map +1 -0
- package/dist/esm/models/virtualmachinebackupattributes.js +104 -0
- package/dist/esm/models/virtualmachinebackupattributes.js.map +1 -0
- package/dist/esm/models/virtualmachinebackuppayload.d.ts +57 -0
- package/dist/esm/models/virtualmachinebackuppayload.d.ts.map +1 -0
- package/dist/esm/models/virtualmachinebackuppayload.js +68 -0
- package/dist/esm/models/virtualmachinebackuppayload.js.map +1 -0
- package/dist/esm/models/virtualmachinebackups.d.ts +29 -0
- package/dist/esm/models/virtualmachinebackups.d.ts.map +1 -0
- package/dist/esm/models/virtualmachinebackups.js +33 -0
- package/dist/esm/models/virtualmachinebackups.js.map +1 -0
- package/dist/esm/models/virtualmachinepayload.d.ts +1 -1
- package/dist/esm/models/virtualmachinerestore.d.ts +29 -0
- package/dist/esm/models/virtualmachinerestore.d.ts.map +1 -0
- package/dist/esm/models/virtualmachinerestore.js +33 -0
- package/dist/esm/models/virtualmachinerestore.js.map +1 -0
- package/dist/esm/models/virtualmachinerestoreattributes.d.ts +99 -0
- package/dist/esm/models/virtualmachinerestoreattributes.d.ts.map +1 -0
- package/dist/esm/models/virtualmachinerestoreattributes.js +108 -0
- package/dist/esm/models/virtualmachinerestoreattributes.js.map +1 -0
- package/dist/esm/models/virtualmachinerestorepayload.d.ts +67 -0
- package/dist/esm/models/virtualmachinerestorepayload.d.ts.map +1 -0
- package/dist/esm/models/virtualmachinerestorepayload.js +63 -0
- package/dist/esm/models/virtualmachinerestorepayload.js.map +1 -0
- package/dist/esm/models/virtualmachinerestores.d.ts +29 -0
- package/dist/esm/models/virtualmachinerestores.d.ts.map +1 -0
- package/dist/esm/models/virtualmachinerestores.js +33 -0
- package/dist/esm/models/virtualmachinerestores.js.map +1 -0
- package/dist/esm/models/virtualmachineupdatepayload.d.ts +26 -0
- package/dist/esm/models/virtualmachineupdatepayload.d.ts.map +1 -1
- package/dist/esm/models/virtualmachineupdatepayload.js +17 -0
- package/dist/esm/models/virtualmachineupdatepayload.js.map +1 -1
- package/dist/esm/models/virtualnetworkassignments.d.ts +3 -11
- package/dist/esm/models/virtualnetworkassignments.d.ts.map +1 -1
- package/dist/esm/models/virtualnetworkassignments.js +3 -12
- package/dist/esm/models/virtualnetworkassignments.js.map +1 -1
- package/dist/esm/models/virtualnetworkdata.d.ts +4 -4
- package/dist/esm/models/virtualnetworkdata.d.ts.map +1 -1
- package/dist/esm/models/virtualnetworkdata.js +4 -4
- package/dist/esm/models/virtualnetworkdata.js.map +1 -1
- package/dist/esm/models/virtualnetworks.d.ts +3 -11
- package/dist/esm/models/virtualnetworks.d.ts.map +1 -1
- package/dist/esm/models/virtualnetworks.js +3 -12
- package/dist/esm/models/virtualnetworks.js.map +1 -1
- package/dist/esm/sdk/plans.d.ts +4 -0
- package/dist/esm/sdk/plans.d.ts.map +1 -1
- package/dist/esm/sdk/plans.js +7 -0
- package/dist/esm/sdk/plans.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +6 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +8 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/virtualmachinebackups.d.ts +45 -0
- package/dist/esm/sdk/virtualmachinebackups.d.ts.map +1 -0
- package/dist/esm/sdk/virtualmachinebackups.js +65 -0
- package/dist/esm/sdk/virtualmachinebackups.js.map +1 -0
- package/dist/esm/sdk/virtualmachinerestores.d.ts +45 -0
- package/dist/esm/sdk/virtualmachinerestores.d.ts.map +1 -0
- package/dist/esm/sdk/virtualmachinerestores.js +65 -0
- package/dist/esm/sdk/virtualmachinerestores.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/plansGetManagedDatabasePlans.ts +143 -0
- package/src/funcs/privateNetworksList.ts +1 -0
- package/src/funcs/privateNetworksListAssignments.ts +1 -0
- package/src/funcs/serversList.ts +1 -0
- package/src/funcs/virtualMachineBackupsCreate.ts +175 -0
- package/src/funcs/virtualMachineBackupsCreateForVirtualMachine.ts +185 -0
- package/src/funcs/virtualMachineBackupsDelete.ts +182 -0
- package/src/funcs/virtualMachineBackupsGet.ts +179 -0
- package/src/funcs/virtualMachineBackupsList.ts +157 -0
- package/src/funcs/virtualMachineBackupsListForVirtualMachine.ts +187 -0
- package/src/funcs/virtualMachineRestoresCreate.ts +175 -0
- package/src/funcs/virtualMachineRestoresCreateForVirtualMachineBackup.ts +192 -0
- package/src/funcs/virtualMachineRestoresGet.ts +179 -0
- package/src/funcs/virtualMachineRestoresList.ts +157 -0
- package/src/funcs/virtualMachineRestoresListForBackup.ts +183 -0
- package/src/funcs/virtualMachineRestoresListForVirtualMachineBackup.ts +191 -0
- package/src/funcs/virtualMachinesGet.ts +6 -1
- package/src/funcs/virtualMachinesList.ts +13 -1
- package/src/funcs/virtualMachinesUpdateVirtualMachine.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +27 -1
- package/src/mcp-server/tools/plansGetManagedDatabasePlans.ts +28 -0
- package/src/mcp-server/tools/virtualMachineBackupsCreate.ts +38 -0
- package/src/mcp-server/tools/virtualMachineBackupsCreateForVirtualMachine.ts +41 -0
- package/src/mcp-server/tools/virtualMachineBackupsDelete.ts +38 -0
- package/src/mcp-server/tools/virtualMachineBackupsGet.ts +35 -0
- package/src/mcp-server/tools/virtualMachineBackupsList.ts +31 -0
- package/src/mcp-server/tools/virtualMachineBackupsListForVirtualMachine.ts +40 -0
- package/src/mcp-server/tools/virtualMachineRestoresCreate.ts +38 -0
- package/src/mcp-server/tools/virtualMachineRestoresCreateForVirtualMachineBackup.ts +40 -0
- package/src/mcp-server/tools/virtualMachineRestoresGet.ts +35 -0
- package/src/mcp-server/tools/virtualMachineRestoresList.ts +31 -0
- package/src/mcp-server/tools/virtualMachineRestoresListForBackup.ts +40 -0
- package/src/mcp-server/tools/virtualMachineRestoresListForVirtualMachineBackup.ts +40 -0
- package/src/models/customtagdata.ts +4 -4
- package/src/models/index.ts +10 -0
- package/src/models/manageddatabaseplanattributes.ts +399 -0
- package/src/models/manageddatabaseplans.ts +57 -0
- package/src/models/operations/createvirtualmachinebackup.ts +62 -0
- package/src/models/operations/createvirtualmachinerestore.ts +82 -0
- package/src/models/operations/deletevirtualmachinebackup.ts +53 -0
- package/src/models/operations/getservers.ts +9 -0
- package/src/models/operations/getvirtualmachinebackup.ts +53 -0
- package/src/models/operations/getvirtualmachinerestore.ts +53 -0
- package/src/models/operations/getvirtualnetworks.ts +9 -0
- package/src/models/operations/getvirtualnetworksassignments.ts +9 -0
- package/src/models/operations/index.ts +8 -0
- package/src/models/operations/indexvirtualmachine.ts +7 -0
- package/src/models/operations/listbackuprestores.ts +60 -0
- package/src/models/operations/listvirtualmachinescopedbackups.ts +64 -0
- package/src/models/operations/listvirtualmachinescopedrestores.ts +75 -0
- package/src/models/operations/showvirtualmachine.ts +9 -0
- package/src/models/operations/updatevirtualnetwork.ts +3 -3
- package/src/models/servers.ts +10 -35
- package/src/models/virtualmachineattributes.ts +2 -2
- package/src/models/virtualmachinebackup.ts +96 -0
- package/src/models/virtualmachinebackupattributes.ts +275 -0
- package/src/models/virtualmachinebackuppayload.ts +179 -0
- package/src/models/virtualmachinebackups.ts +96 -0
- package/src/models/virtualmachinepayload.ts +1 -1
- package/src/models/virtualmachinerestore.ts +96 -0
- package/src/models/virtualmachinerestoreattributes.ts +309 -0
- package/src/models/virtualmachinerestorepayload.ts +187 -0
- package/src/models/virtualmachinerestores.ts +96 -0
- package/src/models/virtualmachineupdatepayload.ts +34 -0
- package/src/models/virtualnetworkassignments.ts +10 -41
- package/src/models/virtualnetworkdata.ts +8 -8
- package/src/models/virtualnetworks.ts +10 -39
- package/src/sdk/plans.ts +13 -0
- package/src/sdk/sdk.ts +16 -0
- package/src/sdk/virtualmachinebackups.ts +113 -0
- package/src/sdk/virtualmachinerestores.ts +113 -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.7.1",
|
|
53153
|
+
genVersion: "2.916.2",
|
|
53154
|
+
userAgent: "speakeasy-sdk/typescript 0.7.1 2.916.2 2023-06-01 latitudesh-typescript-sdk"
|
|
53155
53155
|
};
|
|
53156
53156
|
});
|
|
53157
53157
|
|
|
@@ -55362,14 +55362,14 @@ var init_customtagdata = __esm(() => {
|
|
|
55362
55362
|
CustomTagDataAttributes$inboundSchema = objectType({
|
|
55363
55363
|
name: stringType().optional(),
|
|
55364
55364
|
slug: stringType().optional(),
|
|
55365
|
-
description: stringType().optional(),
|
|
55365
|
+
description: nullableType(stringType()).optional(),
|
|
55366
55366
|
color: stringType().optional(),
|
|
55367
55367
|
team: TeamInclude$inboundSchema.optional()
|
|
55368
55368
|
});
|
|
55369
55369
|
CustomTagDataAttributes$outboundSchema = objectType({
|
|
55370
55370
|
name: stringType().optional(),
|
|
55371
55371
|
slug: stringType().optional(),
|
|
55372
|
-
description: stringType().optional(),
|
|
55372
|
+
description: nullableType(stringType()).optional(),
|
|
55373
55373
|
color: stringType().optional(),
|
|
55374
55374
|
team: TeamInclude$outboundSchema.optional()
|
|
55375
55375
|
});
|
|
@@ -56962,6 +56962,104 @@ var init_kubernetesclusterupdateresponse = __esm(() => {
|
|
|
56962
56962
|
});
|
|
56963
56963
|
});
|
|
56964
56964
|
|
|
56965
|
+
// src/models/manageddatabaseplanattributes.ts
|
|
56966
|
+
var ManagedDatabasePlanAttributesType, ManagedDatabasePlanAttributesType$inboundSchema, ManagedDatabasePlanAttributesType$outboundSchema, ManagedDatabasePlanAttributesSpecs$inboundSchema, ManagedDatabasePlanAttributesSpecs$outboundSchema, ManagedDatabasePlanAttributesSite$inboundSchema, ManagedDatabasePlanAttributesSite$outboundSchema, ManagedDatabasePlanAttributesPricing$inboundSchema, ManagedDatabasePlanAttributesPricing$outboundSchema, ManagedDatabasePlanAttributesRegion$inboundSchema, ManagedDatabasePlanAttributesRegion$outboundSchema, ManagedDatabasePlanAttributesAttributes$inboundSchema, ManagedDatabasePlanAttributesAttributes$outboundSchema, ManagedDatabasePlanAttributes$inboundSchema, ManagedDatabasePlanAttributes$outboundSchema;
|
|
56967
|
+
var init_manageddatabaseplanattributes = __esm(() => {
|
|
56968
|
+
init_v3();
|
|
56969
|
+
ManagedDatabasePlanAttributesType = {
|
|
56970
|
+
ManagedDatabasePlans: "managed_database_plans"
|
|
56971
|
+
};
|
|
56972
|
+
ManagedDatabasePlanAttributesType$inboundSchema = nativeEnumType(ManagedDatabasePlanAttributesType);
|
|
56973
|
+
ManagedDatabasePlanAttributesType$outboundSchema = ManagedDatabasePlanAttributesType$inboundSchema;
|
|
56974
|
+
ManagedDatabasePlanAttributesSpecs$inboundSchema = objectType({
|
|
56975
|
+
cpu: stringType().optional(),
|
|
56976
|
+
memory: stringType().optional(),
|
|
56977
|
+
storage: stringType().optional(),
|
|
56978
|
+
shards: numberType().int().optional(),
|
|
56979
|
+
replicas: numberType().int().optional(),
|
|
56980
|
+
iops: nullableType(stringType()).optional()
|
|
56981
|
+
});
|
|
56982
|
+
ManagedDatabasePlanAttributesSpecs$outboundSchema = objectType({
|
|
56983
|
+
cpu: stringType().optional(),
|
|
56984
|
+
memory: stringType().optional(),
|
|
56985
|
+
storage: stringType().optional(),
|
|
56986
|
+
shards: numberType().int().optional(),
|
|
56987
|
+
replicas: numberType().int().optional(),
|
|
56988
|
+
iops: nullableType(stringType()).optional()
|
|
56989
|
+
});
|
|
56990
|
+
ManagedDatabasePlanAttributesSite$inboundSchema = objectType({
|
|
56991
|
+
id: stringType().optional(),
|
|
56992
|
+
name: stringType().optional(),
|
|
56993
|
+
slug: stringType().optional(),
|
|
56994
|
+
facility: stringType().optional()
|
|
56995
|
+
});
|
|
56996
|
+
ManagedDatabasePlanAttributesSite$outboundSchema = objectType({
|
|
56997
|
+
id: stringType().optional(),
|
|
56998
|
+
name: stringType().optional(),
|
|
56999
|
+
slug: stringType().optional(),
|
|
57000
|
+
facility: stringType().optional()
|
|
57001
|
+
});
|
|
57002
|
+
ManagedDatabasePlanAttributesPricing$inboundSchema = objectType({
|
|
57003
|
+
month: nullableType(numberType()).optional(),
|
|
57004
|
+
year: nullableType(numberType()).optional()
|
|
57005
|
+
});
|
|
57006
|
+
ManagedDatabasePlanAttributesPricing$outboundSchema = objectType({
|
|
57007
|
+
month: nullableType(numberType()).optional(),
|
|
57008
|
+
year: nullableType(numberType()).optional()
|
|
57009
|
+
});
|
|
57010
|
+
ManagedDatabasePlanAttributesRegion$inboundSchema = objectType({
|
|
57011
|
+
region: stringType().optional(),
|
|
57012
|
+
city: stringType().optional(),
|
|
57013
|
+
country: stringType().optional(),
|
|
57014
|
+
site: lazyType(() => ManagedDatabasePlanAttributesSite$inboundSchema).optional(),
|
|
57015
|
+
pricing: recordType(lazyType(() => ManagedDatabasePlanAttributesPricing$inboundSchema)).optional()
|
|
57016
|
+
});
|
|
57017
|
+
ManagedDatabasePlanAttributesRegion$outboundSchema = objectType({
|
|
57018
|
+
region: stringType().optional(),
|
|
57019
|
+
city: stringType().optional(),
|
|
57020
|
+
country: stringType().optional(),
|
|
57021
|
+
site: lazyType(() => ManagedDatabasePlanAttributesSite$outboundSchema).optional(),
|
|
57022
|
+
pricing: recordType(lazyType(() => ManagedDatabasePlanAttributesPricing$outboundSchema)).optional()
|
|
57023
|
+
});
|
|
57024
|
+
ManagedDatabasePlanAttributesAttributes$inboundSchema = objectType({
|
|
57025
|
+
name: stringType().optional(),
|
|
57026
|
+
slug: stringType().optional(),
|
|
57027
|
+
engine: stringType().optional(),
|
|
57028
|
+
specs: lazyType(() => ManagedDatabasePlanAttributesSpecs$inboundSchema).optional(),
|
|
57029
|
+
regions: arrayType(lazyType(() => ManagedDatabasePlanAttributesRegion$inboundSchema)).optional()
|
|
57030
|
+
});
|
|
57031
|
+
ManagedDatabasePlanAttributesAttributes$outboundSchema = objectType({
|
|
57032
|
+
name: stringType().optional(),
|
|
57033
|
+
slug: stringType().optional(),
|
|
57034
|
+
engine: stringType().optional(),
|
|
57035
|
+
specs: lazyType(() => ManagedDatabasePlanAttributesSpecs$outboundSchema).optional(),
|
|
57036
|
+
regions: arrayType(lazyType(() => ManagedDatabasePlanAttributesRegion$outboundSchema)).optional()
|
|
57037
|
+
});
|
|
57038
|
+
ManagedDatabasePlanAttributes$inboundSchema = objectType({
|
|
57039
|
+
id: stringType().optional(),
|
|
57040
|
+
type: ManagedDatabasePlanAttributesType$inboundSchema.optional(),
|
|
57041
|
+
attributes: lazyType(() => ManagedDatabasePlanAttributesAttributes$inboundSchema).optional()
|
|
57042
|
+
});
|
|
57043
|
+
ManagedDatabasePlanAttributes$outboundSchema = objectType({
|
|
57044
|
+
id: stringType().optional(),
|
|
57045
|
+
type: ManagedDatabasePlanAttributesType$outboundSchema.optional(),
|
|
57046
|
+
attributes: lazyType(() => ManagedDatabasePlanAttributesAttributes$outboundSchema).optional()
|
|
57047
|
+
});
|
|
57048
|
+
});
|
|
57049
|
+
|
|
57050
|
+
// src/models/manageddatabaseplans.ts
|
|
57051
|
+
var ManagedDatabasePlans$inboundSchema, ManagedDatabasePlans$outboundSchema;
|
|
57052
|
+
var init_manageddatabaseplans = __esm(() => {
|
|
57053
|
+
init_v3();
|
|
57054
|
+
init_manageddatabaseplanattributes();
|
|
57055
|
+
ManagedDatabasePlans$inboundSchema = objectType({
|
|
57056
|
+
data: arrayType(ManagedDatabasePlanAttributes$inboundSchema).optional()
|
|
57057
|
+
});
|
|
57058
|
+
ManagedDatabasePlans$outboundSchema = objectType({
|
|
57059
|
+
data: arrayType(ManagedDatabasePlanAttributes$outboundSchema).optional()
|
|
57060
|
+
});
|
|
57061
|
+
});
|
|
57062
|
+
|
|
56965
57063
|
// src/models/membership.ts
|
|
56966
57064
|
var MembershipRole, MembershipRole$inboundSchema, MembershipRole$outboundSchema, MembershipAttributes$inboundSchema, MembershipAttributes$outboundSchema, MembershipData$inboundSchema, MembershipData$outboundSchema, Membership$inboundSchema, Membership$outboundSchema;
|
|
56967
57065
|
var init_membership = __esm(() => {
|
|
@@ -58157,19 +58255,18 @@ var init_serverrescue = __esm(() => {
|
|
|
58157
58255
|
});
|
|
58158
58256
|
|
|
58159
58257
|
// src/models/servers.ts
|
|
58160
|
-
var
|
|
58258
|
+
var Servers$inboundSchema, Servers$outboundSchema;
|
|
58161
58259
|
var init_servers = __esm(() => {
|
|
58162
58260
|
init_v3();
|
|
58261
|
+
init_paginationmeta();
|
|
58163
58262
|
init_serverdata();
|
|
58164
|
-
ServersMeta$inboundSchema = objectType({});
|
|
58165
|
-
ServersMeta$outboundSchema = objectType({});
|
|
58166
58263
|
Servers$inboundSchema = objectType({
|
|
58167
58264
|
data: arrayType(ServerData$inboundSchema).optional(),
|
|
58168
|
-
meta:
|
|
58265
|
+
meta: PaginationMeta$inboundSchema.optional()
|
|
58169
58266
|
});
|
|
58170
58267
|
Servers$outboundSchema = objectType({
|
|
58171
58268
|
data: arrayType(ServerData$outboundSchema).optional(),
|
|
58172
|
-
meta:
|
|
58269
|
+
meta: PaginationMeta$outboundSchema.optional()
|
|
58173
58270
|
});
|
|
58174
58271
|
});
|
|
58175
58272
|
|
|
@@ -59484,6 +59581,156 @@ var init_virtualmachine = __esm(() => {
|
|
|
59484
59581
|
});
|
|
59485
59582
|
});
|
|
59486
59583
|
|
|
59584
|
+
// src/models/virtualmachinebackupattributes.ts
|
|
59585
|
+
var VirtualMachineBackupAttributesType, VirtualMachineBackupAttributesStatus, VirtualMachineBackupAttributesType$inboundSchema, VirtualMachineBackupAttributesType$outboundSchema, VirtualMachineBackupAttributesStatus$inboundSchema, VirtualMachineBackupAttributesStatus$outboundSchema, VirtualMachineBackupAttributesVirtualMachine$inboundSchema, VirtualMachineBackupAttributesVirtualMachine$outboundSchema, VirtualMachineBackupAttributesAttributes$inboundSchema, VirtualMachineBackupAttributesAttributes$outboundSchema, VirtualMachineBackupAttributes$inboundSchema, VirtualMachineBackupAttributes$outboundSchema;
|
|
59586
|
+
var init_virtualmachinebackupattributes = __esm(() => {
|
|
59587
|
+
init_v3();
|
|
59588
|
+
init_primitives();
|
|
59589
|
+
init_projectinclude();
|
|
59590
|
+
init_teaminclude();
|
|
59591
|
+
VirtualMachineBackupAttributesType = {
|
|
59592
|
+
VirtualMachineBackups: "virtual_machine_backups"
|
|
59593
|
+
};
|
|
59594
|
+
VirtualMachineBackupAttributesStatus = {
|
|
59595
|
+
Creating: "Creating",
|
|
59596
|
+
Ready: "Ready",
|
|
59597
|
+
Failed: "Failed",
|
|
59598
|
+
Archived: "Archived"
|
|
59599
|
+
};
|
|
59600
|
+
VirtualMachineBackupAttributesType$inboundSchema = nativeEnumType(VirtualMachineBackupAttributesType);
|
|
59601
|
+
VirtualMachineBackupAttributesType$outboundSchema = VirtualMachineBackupAttributesType$inboundSchema;
|
|
59602
|
+
VirtualMachineBackupAttributesStatus$inboundSchema = nativeEnumType(VirtualMachineBackupAttributesStatus);
|
|
59603
|
+
VirtualMachineBackupAttributesStatus$outboundSchema = VirtualMachineBackupAttributesStatus$inboundSchema;
|
|
59604
|
+
VirtualMachineBackupAttributesVirtualMachine$inboundSchema = objectType({
|
|
59605
|
+
id: stringType().optional(),
|
|
59606
|
+
name: stringType().optional()
|
|
59607
|
+
});
|
|
59608
|
+
VirtualMachineBackupAttributesVirtualMachine$outboundSchema = objectType({
|
|
59609
|
+
id: stringType().optional(),
|
|
59610
|
+
name: stringType().optional()
|
|
59611
|
+
});
|
|
59612
|
+
VirtualMachineBackupAttributesAttributes$inboundSchema = objectType({
|
|
59613
|
+
status: VirtualMachineBackupAttributesStatus$inboundSchema.optional(),
|
|
59614
|
+
size_bytes: nullableType(numberType().int()).optional(),
|
|
59615
|
+
expires_at: nullableType(stringType()).optional(),
|
|
59616
|
+
failure_reason: nullableType(stringType()).optional(),
|
|
59617
|
+
created_at: stringType().optional(),
|
|
59618
|
+
virtual_machine: lazyType(() => VirtualMachineBackupAttributesVirtualMachine$inboundSchema).optional(),
|
|
59619
|
+
team: TeamInclude$inboundSchema.optional(),
|
|
59620
|
+
project: ProjectInclude$inboundSchema.optional()
|
|
59621
|
+
}).transform((v2) => {
|
|
59622
|
+
return remap(v2, {
|
|
59623
|
+
size_bytes: "sizeBytes",
|
|
59624
|
+
expires_at: "expiresAt",
|
|
59625
|
+
failure_reason: "failureReason",
|
|
59626
|
+
created_at: "createdAt",
|
|
59627
|
+
virtual_machine: "virtualMachine"
|
|
59628
|
+
});
|
|
59629
|
+
});
|
|
59630
|
+
VirtualMachineBackupAttributesAttributes$outboundSchema = objectType({
|
|
59631
|
+
status: VirtualMachineBackupAttributesStatus$outboundSchema.optional(),
|
|
59632
|
+
sizeBytes: nullableType(numberType().int()).optional(),
|
|
59633
|
+
expiresAt: nullableType(stringType()).optional(),
|
|
59634
|
+
failureReason: nullableType(stringType()).optional(),
|
|
59635
|
+
createdAt: stringType().optional(),
|
|
59636
|
+
virtualMachine: lazyType(() => VirtualMachineBackupAttributesVirtualMachine$outboundSchema).optional(),
|
|
59637
|
+
team: TeamInclude$outboundSchema.optional(),
|
|
59638
|
+
project: ProjectInclude$outboundSchema.optional()
|
|
59639
|
+
}).transform((v2) => {
|
|
59640
|
+
return remap(v2, {
|
|
59641
|
+
sizeBytes: "size_bytes",
|
|
59642
|
+
expiresAt: "expires_at",
|
|
59643
|
+
failureReason: "failure_reason",
|
|
59644
|
+
createdAt: "created_at",
|
|
59645
|
+
virtualMachine: "virtual_machine"
|
|
59646
|
+
});
|
|
59647
|
+
});
|
|
59648
|
+
VirtualMachineBackupAttributes$inboundSchema = objectType({
|
|
59649
|
+
id: stringType().optional(),
|
|
59650
|
+
type: VirtualMachineBackupAttributesType$inboundSchema.optional(),
|
|
59651
|
+
attributes: lazyType(() => VirtualMachineBackupAttributesAttributes$inboundSchema).optional()
|
|
59652
|
+
});
|
|
59653
|
+
VirtualMachineBackupAttributes$outboundSchema = objectType({
|
|
59654
|
+
id: stringType().optional(),
|
|
59655
|
+
type: VirtualMachineBackupAttributesType$outboundSchema.optional(),
|
|
59656
|
+
attributes: lazyType(() => VirtualMachineBackupAttributesAttributes$outboundSchema).optional()
|
|
59657
|
+
});
|
|
59658
|
+
});
|
|
59659
|
+
|
|
59660
|
+
// src/models/virtualmachinebackup.ts
|
|
59661
|
+
var VirtualMachineBackupMeta$inboundSchema, VirtualMachineBackupMeta$outboundSchema, VirtualMachineBackup$inboundSchema, VirtualMachineBackup$outboundSchema;
|
|
59662
|
+
var init_virtualmachinebackup = __esm(() => {
|
|
59663
|
+
init_v3();
|
|
59664
|
+
init_virtualmachinebackupattributes();
|
|
59665
|
+
VirtualMachineBackupMeta$inboundSchema = objectType({});
|
|
59666
|
+
VirtualMachineBackupMeta$outboundSchema = objectType({});
|
|
59667
|
+
VirtualMachineBackup$inboundSchema = objectType({
|
|
59668
|
+
data: VirtualMachineBackupAttributes$inboundSchema.optional(),
|
|
59669
|
+
meta: lazyType(() => VirtualMachineBackupMeta$inboundSchema).optional()
|
|
59670
|
+
});
|
|
59671
|
+
VirtualMachineBackup$outboundSchema = objectType({
|
|
59672
|
+
data: VirtualMachineBackupAttributes$outboundSchema.optional(),
|
|
59673
|
+
meta: lazyType(() => VirtualMachineBackupMeta$outboundSchema).optional()
|
|
59674
|
+
});
|
|
59675
|
+
});
|
|
59676
|
+
|
|
59677
|
+
// src/models/virtualmachinebackuppayload.ts
|
|
59678
|
+
var VirtualMachineBackupPayloadType, VirtualMachineBackupPayloadType$inboundSchema, VirtualMachineBackupPayloadType$outboundSchema, VirtualMachineBackupPayloadAttributes$inboundSchema, VirtualMachineBackupPayloadAttributes$outboundSchema, VirtualMachineBackupPayloadData$inboundSchema, VirtualMachineBackupPayloadData$outboundSchema, VirtualMachineBackupPayload$inboundSchema, VirtualMachineBackupPayload$outboundSchema;
|
|
59679
|
+
var init_virtualmachinebackuppayload = __esm(() => {
|
|
59680
|
+
init_v3();
|
|
59681
|
+
init_primitives();
|
|
59682
|
+
VirtualMachineBackupPayloadType = {
|
|
59683
|
+
VirtualMachineBackups: "virtual_machine_backups"
|
|
59684
|
+
};
|
|
59685
|
+
VirtualMachineBackupPayloadType$inboundSchema = nativeEnumType(VirtualMachineBackupPayloadType);
|
|
59686
|
+
VirtualMachineBackupPayloadType$outboundSchema = VirtualMachineBackupPayloadType$inboundSchema;
|
|
59687
|
+
VirtualMachineBackupPayloadAttributes$inboundSchema = objectType({
|
|
59688
|
+
virtual_machine: stringType().optional()
|
|
59689
|
+
}).transform((v2) => {
|
|
59690
|
+
return remap(v2, {
|
|
59691
|
+
virtual_machine: "virtualMachine"
|
|
59692
|
+
});
|
|
59693
|
+
});
|
|
59694
|
+
VirtualMachineBackupPayloadAttributes$outboundSchema = objectType({
|
|
59695
|
+
virtualMachine: stringType().optional()
|
|
59696
|
+
}).transform((v2) => {
|
|
59697
|
+
return remap(v2, {
|
|
59698
|
+
virtualMachine: "virtual_machine"
|
|
59699
|
+
});
|
|
59700
|
+
});
|
|
59701
|
+
VirtualMachineBackupPayloadData$inboundSchema = objectType({
|
|
59702
|
+
type: VirtualMachineBackupPayloadType$inboundSchema.optional(),
|
|
59703
|
+
attributes: lazyType(() => VirtualMachineBackupPayloadAttributes$inboundSchema).optional()
|
|
59704
|
+
});
|
|
59705
|
+
VirtualMachineBackupPayloadData$outboundSchema = objectType({
|
|
59706
|
+
type: VirtualMachineBackupPayloadType$outboundSchema.optional(),
|
|
59707
|
+
attributes: lazyType(() => VirtualMachineBackupPayloadAttributes$outboundSchema).optional()
|
|
59708
|
+
});
|
|
59709
|
+
VirtualMachineBackupPayload$inboundSchema = objectType({
|
|
59710
|
+
data: lazyType(() => VirtualMachineBackupPayloadData$inboundSchema).optional()
|
|
59711
|
+
});
|
|
59712
|
+
VirtualMachineBackupPayload$outboundSchema = objectType({
|
|
59713
|
+
data: lazyType(() => VirtualMachineBackupPayloadData$outboundSchema).optional()
|
|
59714
|
+
});
|
|
59715
|
+
});
|
|
59716
|
+
|
|
59717
|
+
// src/models/virtualmachinebackups.ts
|
|
59718
|
+
var VirtualMachineBackupsMeta$inboundSchema, VirtualMachineBackupsMeta$outboundSchema, VirtualMachineBackups$inboundSchema, VirtualMachineBackups$outboundSchema;
|
|
59719
|
+
var init_virtualmachinebackups = __esm(() => {
|
|
59720
|
+
init_v3();
|
|
59721
|
+
init_virtualmachinebackupattributes();
|
|
59722
|
+
VirtualMachineBackupsMeta$inboundSchema = objectType({});
|
|
59723
|
+
VirtualMachineBackupsMeta$outboundSchema = objectType({});
|
|
59724
|
+
VirtualMachineBackups$inboundSchema = objectType({
|
|
59725
|
+
data: arrayType(VirtualMachineBackupAttributes$inboundSchema).optional(),
|
|
59726
|
+
meta: lazyType(() => VirtualMachineBackupsMeta$inboundSchema).optional()
|
|
59727
|
+
});
|
|
59728
|
+
VirtualMachineBackups$outboundSchema = objectType({
|
|
59729
|
+
data: arrayType(VirtualMachineBackupAttributes$outboundSchema).optional(),
|
|
59730
|
+
meta: lazyType(() => VirtualMachineBackupsMeta$outboundSchema).optional()
|
|
59731
|
+
});
|
|
59732
|
+
});
|
|
59733
|
+
|
|
59487
59734
|
// src/models/virtualmachinemetrics.ts
|
|
59488
59735
|
var Metric, Range, VirtualMachineMetricsUnit, Metric$inboundSchema, Metric$outboundSchema, Range$inboundSchema, Range$outboundSchema, VirtualMachineMetricsUnit$inboundSchema, VirtualMachineMetricsUnit$outboundSchema, Point$inboundSchema, Point$outboundSchema, VirtualMachineMetrics$inboundSchema, VirtualMachineMetrics$outboundSchema;
|
|
59489
59736
|
var init_virtualmachinemetrics = __esm(() => {
|
|
@@ -59898,6 +60145,146 @@ var init_virtualmachineplans = __esm(() => {
|
|
|
59898
60145
|
});
|
|
59899
60146
|
});
|
|
59900
60147
|
|
|
60148
|
+
// src/models/virtualmachinerestoreattributes.ts
|
|
60149
|
+
var VirtualMachineRestoreAttributesType, VirtualMachineRestoreAttributesStatus, VirtualMachineRestoreAttributesType$inboundSchema, VirtualMachineRestoreAttributesType$outboundSchema, VirtualMachineRestoreAttributesStatus$inboundSchema, VirtualMachineRestoreAttributesStatus$outboundSchema, Backup$inboundSchema, Backup$outboundSchema, VirtualMachineRestoreAttributesVirtualMachine$inboundSchema, VirtualMachineRestoreAttributesVirtualMachine$outboundSchema, VirtualMachineRestoreAttributesAttributes$inboundSchema, VirtualMachineRestoreAttributesAttributes$outboundSchema, VirtualMachineRestoreAttributes$inboundSchema, VirtualMachineRestoreAttributes$outboundSchema;
|
|
60150
|
+
var init_virtualmachinerestoreattributes = __esm(() => {
|
|
60151
|
+
init_v3();
|
|
60152
|
+
init_primitives();
|
|
60153
|
+
init_projectinclude();
|
|
60154
|
+
init_teaminclude();
|
|
60155
|
+
VirtualMachineRestoreAttributesType = {
|
|
60156
|
+
VirtualMachineRestores: "virtual_machine_restores"
|
|
60157
|
+
};
|
|
60158
|
+
VirtualMachineRestoreAttributesStatus = {
|
|
60159
|
+
Creating: "Creating",
|
|
60160
|
+
Ready: "Ready",
|
|
60161
|
+
Failed: "Failed"
|
|
60162
|
+
};
|
|
60163
|
+
VirtualMachineRestoreAttributesType$inboundSchema = nativeEnumType(VirtualMachineRestoreAttributesType);
|
|
60164
|
+
VirtualMachineRestoreAttributesType$outboundSchema = VirtualMachineRestoreAttributesType$inboundSchema;
|
|
60165
|
+
VirtualMachineRestoreAttributesStatus$inboundSchema = nativeEnumType(VirtualMachineRestoreAttributesStatus);
|
|
60166
|
+
VirtualMachineRestoreAttributesStatus$outboundSchema = VirtualMachineRestoreAttributesStatus$inboundSchema;
|
|
60167
|
+
Backup$inboundSchema = objectType({
|
|
60168
|
+
id: stringType().optional()
|
|
60169
|
+
});
|
|
60170
|
+
Backup$outboundSchema = objectType({
|
|
60171
|
+
id: stringType().optional()
|
|
60172
|
+
});
|
|
60173
|
+
VirtualMachineRestoreAttributesVirtualMachine$inboundSchema = objectType({
|
|
60174
|
+
id: stringType().optional(),
|
|
60175
|
+
name: stringType().optional()
|
|
60176
|
+
});
|
|
60177
|
+
VirtualMachineRestoreAttributesVirtualMachine$outboundSchema = objectType({
|
|
60178
|
+
id: stringType().optional(),
|
|
60179
|
+
name: stringType().optional()
|
|
60180
|
+
});
|
|
60181
|
+
VirtualMachineRestoreAttributesAttributes$inboundSchema = objectType({
|
|
60182
|
+
status: VirtualMachineRestoreAttributesStatus$inboundSchema.optional(),
|
|
60183
|
+
created_at: stringType().optional(),
|
|
60184
|
+
backup: lazyType(() => Backup$inboundSchema).optional(),
|
|
60185
|
+
virtual_machine: nullableType(lazyType(() => VirtualMachineRestoreAttributesVirtualMachine$inboundSchema)).optional(),
|
|
60186
|
+
team: TeamInclude$inboundSchema.optional(),
|
|
60187
|
+
project: ProjectInclude$inboundSchema.optional()
|
|
60188
|
+
}).transform((v2) => {
|
|
60189
|
+
return remap(v2, {
|
|
60190
|
+
created_at: "createdAt",
|
|
60191
|
+
virtual_machine: "virtualMachine"
|
|
60192
|
+
});
|
|
60193
|
+
});
|
|
60194
|
+
VirtualMachineRestoreAttributesAttributes$outboundSchema = objectType({
|
|
60195
|
+
status: VirtualMachineRestoreAttributesStatus$outboundSchema.optional(),
|
|
60196
|
+
createdAt: stringType().optional(),
|
|
60197
|
+
backup: lazyType(() => Backup$outboundSchema).optional(),
|
|
60198
|
+
virtualMachine: nullableType(lazyType(() => VirtualMachineRestoreAttributesVirtualMachine$outboundSchema)).optional(),
|
|
60199
|
+
team: TeamInclude$outboundSchema.optional(),
|
|
60200
|
+
project: ProjectInclude$outboundSchema.optional()
|
|
60201
|
+
}).transform((v2) => {
|
|
60202
|
+
return remap(v2, {
|
|
60203
|
+
createdAt: "created_at",
|
|
60204
|
+
virtualMachine: "virtual_machine"
|
|
60205
|
+
});
|
|
60206
|
+
});
|
|
60207
|
+
VirtualMachineRestoreAttributes$inboundSchema = objectType({
|
|
60208
|
+
id: stringType().optional(),
|
|
60209
|
+
type: VirtualMachineRestoreAttributesType$inboundSchema.optional(),
|
|
60210
|
+
attributes: lazyType(() => VirtualMachineRestoreAttributesAttributes$inboundSchema).optional()
|
|
60211
|
+
});
|
|
60212
|
+
VirtualMachineRestoreAttributes$outboundSchema = objectType({
|
|
60213
|
+
id: stringType().optional(),
|
|
60214
|
+
type: VirtualMachineRestoreAttributesType$outboundSchema.optional(),
|
|
60215
|
+
attributes: lazyType(() => VirtualMachineRestoreAttributesAttributes$outboundSchema).optional()
|
|
60216
|
+
});
|
|
60217
|
+
});
|
|
60218
|
+
|
|
60219
|
+
// src/models/virtualmachinerestore.ts
|
|
60220
|
+
var VirtualMachineRestoreMeta$inboundSchema, VirtualMachineRestoreMeta$outboundSchema, VirtualMachineRestore$inboundSchema, VirtualMachineRestore$outboundSchema;
|
|
60221
|
+
var init_virtualmachinerestore = __esm(() => {
|
|
60222
|
+
init_v3();
|
|
60223
|
+
init_virtualmachinerestoreattributes();
|
|
60224
|
+
VirtualMachineRestoreMeta$inboundSchema = objectType({});
|
|
60225
|
+
VirtualMachineRestoreMeta$outboundSchema = objectType({});
|
|
60226
|
+
VirtualMachineRestore$inboundSchema = objectType({
|
|
60227
|
+
data: VirtualMachineRestoreAttributes$inboundSchema.optional(),
|
|
60228
|
+
meta: lazyType(() => VirtualMachineRestoreMeta$inboundSchema).optional()
|
|
60229
|
+
});
|
|
60230
|
+
VirtualMachineRestore$outboundSchema = objectType({
|
|
60231
|
+
data: VirtualMachineRestoreAttributes$outboundSchema.optional(),
|
|
60232
|
+
meta: lazyType(() => VirtualMachineRestoreMeta$outboundSchema).optional()
|
|
60233
|
+
});
|
|
60234
|
+
});
|
|
60235
|
+
|
|
60236
|
+
// src/models/virtualmachinerestorepayload.ts
|
|
60237
|
+
var VirtualMachineRestorePayloadType, VirtualMachineRestorePayloadType$inboundSchema, VirtualMachineRestorePayloadType$outboundSchema, VirtualMachineRestorePayloadAttributes$inboundSchema, VirtualMachineRestorePayloadAttributes$outboundSchema, VirtualMachineRestorePayloadData$inboundSchema, VirtualMachineRestorePayloadData$outboundSchema, VirtualMachineRestorePayload$inboundSchema, VirtualMachineRestorePayload$outboundSchema;
|
|
60238
|
+
var init_virtualmachinerestorepayload = __esm(() => {
|
|
60239
|
+
init_v3();
|
|
60240
|
+
VirtualMachineRestorePayloadType = {
|
|
60241
|
+
VirtualMachineRestores: "virtual_machine_restores"
|
|
60242
|
+
};
|
|
60243
|
+
VirtualMachineRestorePayloadType$inboundSchema = nativeEnumType(VirtualMachineRestorePayloadType);
|
|
60244
|
+
VirtualMachineRestorePayloadType$outboundSchema = VirtualMachineRestorePayloadType$inboundSchema;
|
|
60245
|
+
VirtualMachineRestorePayloadAttributes$inboundSchema = objectType({
|
|
60246
|
+
backup: stringType().optional(),
|
|
60247
|
+
name: nullableType(stringType()).optional(),
|
|
60248
|
+
site: nullableType(stringType()).optional()
|
|
60249
|
+
});
|
|
60250
|
+
VirtualMachineRestorePayloadAttributes$outboundSchema = objectType({
|
|
60251
|
+
backup: stringType().optional(),
|
|
60252
|
+
name: nullableType(stringType()).optional(),
|
|
60253
|
+
site: nullableType(stringType()).optional()
|
|
60254
|
+
});
|
|
60255
|
+
VirtualMachineRestorePayloadData$inboundSchema = objectType({
|
|
60256
|
+
type: VirtualMachineRestorePayloadType$inboundSchema.optional(),
|
|
60257
|
+
attributes: lazyType(() => VirtualMachineRestorePayloadAttributes$inboundSchema).optional()
|
|
60258
|
+
});
|
|
60259
|
+
VirtualMachineRestorePayloadData$outboundSchema = objectType({
|
|
60260
|
+
type: VirtualMachineRestorePayloadType$outboundSchema.optional(),
|
|
60261
|
+
attributes: lazyType(() => VirtualMachineRestorePayloadAttributes$outboundSchema).optional()
|
|
60262
|
+
});
|
|
60263
|
+
VirtualMachineRestorePayload$inboundSchema = objectType({
|
|
60264
|
+
data: lazyType(() => VirtualMachineRestorePayloadData$inboundSchema).optional()
|
|
60265
|
+
});
|
|
60266
|
+
VirtualMachineRestorePayload$outboundSchema = objectType({
|
|
60267
|
+
data: lazyType(() => VirtualMachineRestorePayloadData$outboundSchema).optional()
|
|
60268
|
+
});
|
|
60269
|
+
});
|
|
60270
|
+
|
|
60271
|
+
// src/models/virtualmachinerestores.ts
|
|
60272
|
+
var VirtualMachineRestoresMeta$inboundSchema, VirtualMachineRestoresMeta$outboundSchema, VirtualMachineRestores$inboundSchema, VirtualMachineRestores$outboundSchema;
|
|
60273
|
+
var init_virtualmachinerestores = __esm(() => {
|
|
60274
|
+
init_v3();
|
|
60275
|
+
init_virtualmachinerestoreattributes();
|
|
60276
|
+
VirtualMachineRestoresMeta$inboundSchema = objectType({});
|
|
60277
|
+
VirtualMachineRestoresMeta$outboundSchema = objectType({});
|
|
60278
|
+
VirtualMachineRestores$inboundSchema = objectType({
|
|
60279
|
+
data: arrayType(VirtualMachineRestoreAttributes$inboundSchema).optional(),
|
|
60280
|
+
meta: lazyType(() => VirtualMachineRestoresMeta$inboundSchema).optional()
|
|
60281
|
+
});
|
|
60282
|
+
VirtualMachineRestores$outboundSchema = objectType({
|
|
60283
|
+
data: arrayType(VirtualMachineRestoreAttributes$outboundSchema).optional(),
|
|
60284
|
+
meta: lazyType(() => VirtualMachineRestoresMeta$outboundSchema).optional()
|
|
60285
|
+
});
|
|
60286
|
+
});
|
|
60287
|
+
|
|
59901
60288
|
// src/models/virtualmachines.ts
|
|
59902
60289
|
var VirtualMachinesMeta$inboundSchema, VirtualMachinesMeta$outboundSchema, VirtualMachines$inboundSchema, VirtualMachines$outboundSchema;
|
|
59903
60290
|
var init_virtualmachines = __esm(() => {
|
|
@@ -59916,21 +60303,32 @@ var init_virtualmachines = __esm(() => {
|
|
|
59916
60303
|
});
|
|
59917
60304
|
|
|
59918
60305
|
// src/models/virtualmachineupdatepayload.ts
|
|
59919
|
-
var VirtualMachineUpdatePayloadType, VirtualMachineUpdatePayloadType$inboundSchema, VirtualMachineUpdatePayloadType$outboundSchema, VirtualMachineUpdatePayloadAttributes$inboundSchema, VirtualMachineUpdatePayloadAttributes$outboundSchema, VirtualMachineUpdatePayloadData$inboundSchema, VirtualMachineUpdatePayloadData$outboundSchema, VirtualMachineUpdatePayload$inboundSchema, VirtualMachineUpdatePayload$outboundSchema;
|
|
60306
|
+
var VirtualMachineUpdatePayloadType, BillingEnum, VirtualMachineUpdatePayloadType$inboundSchema, VirtualMachineUpdatePayloadType$outboundSchema, BillingEnum$inboundSchema, BillingEnum$outboundSchema, VirtualMachineUpdatePayloadAttributes$inboundSchema, VirtualMachineUpdatePayloadAttributes$outboundSchema, VirtualMachineUpdatePayloadData$inboundSchema, VirtualMachineUpdatePayloadData$outboundSchema, VirtualMachineUpdatePayload$inboundSchema, VirtualMachineUpdatePayload$outboundSchema;
|
|
59920
60307
|
var init_virtualmachineupdatepayload = __esm(() => {
|
|
59921
60308
|
init_v3();
|
|
59922
60309
|
VirtualMachineUpdatePayloadType = {
|
|
59923
60310
|
VirtualMachines: "virtual_machines"
|
|
59924
60311
|
};
|
|
60312
|
+
BillingEnum = {
|
|
60313
|
+
Hourly: "hourly",
|
|
60314
|
+
Monthly: "monthly",
|
|
60315
|
+
Yearly: "yearly"
|
|
60316
|
+
};
|
|
59925
60317
|
VirtualMachineUpdatePayloadType$inboundSchema = nativeEnumType(VirtualMachineUpdatePayloadType);
|
|
59926
60318
|
VirtualMachineUpdatePayloadType$outboundSchema = VirtualMachineUpdatePayloadType$inboundSchema;
|
|
60319
|
+
BillingEnum$inboundSchema = nativeEnumType(BillingEnum);
|
|
60320
|
+
BillingEnum$outboundSchema = BillingEnum$inboundSchema;
|
|
59927
60321
|
VirtualMachineUpdatePayloadAttributes$inboundSchema = objectType({
|
|
59928
60322
|
name: stringType().optional(),
|
|
59929
|
-
tags: nullableType(arrayType(stringType())).optional()
|
|
60323
|
+
tags: nullableType(arrayType(stringType())).optional(),
|
|
60324
|
+
billing: BillingEnum$inboundSchema.optional(),
|
|
60325
|
+
plan: stringType().optional()
|
|
59930
60326
|
});
|
|
59931
60327
|
VirtualMachineUpdatePayloadAttributes$outboundSchema = objectType({
|
|
59932
60328
|
name: stringType().optional(),
|
|
59933
|
-
tags: nullableType(arrayType(stringType())).optional()
|
|
60329
|
+
tags: nullableType(arrayType(stringType())).optional(),
|
|
60330
|
+
billing: BillingEnum$outboundSchema.optional(),
|
|
60331
|
+
plan: stringType().optional()
|
|
59934
60332
|
});
|
|
59935
60333
|
VirtualMachineUpdatePayloadData$inboundSchema = objectType({
|
|
59936
60334
|
type: VirtualMachineUpdatePayloadType$inboundSchema,
|
|
@@ -59986,14 +60384,14 @@ var init_virtualnetworkdata = __esm(() => {
|
|
|
59986
60384
|
VirtualNetworkDataTag$inboundSchema = objectType({
|
|
59987
60385
|
id: stringType().optional(),
|
|
59988
60386
|
name: stringType().optional(),
|
|
59989
|
-
description: stringType().optional(),
|
|
59990
|
-
color: stringType().optional()
|
|
60387
|
+
description: nullableType(stringType()).optional(),
|
|
60388
|
+
color: nullableType(stringType()).optional()
|
|
59991
60389
|
});
|
|
59992
60390
|
VirtualNetworkDataTag$outboundSchema = objectType({
|
|
59993
60391
|
id: stringType().optional(),
|
|
59994
60392
|
name: stringType().optional(),
|
|
59995
|
-
description: stringType().optional(),
|
|
59996
|
-
color: stringType().optional()
|
|
60393
|
+
description: nullableType(stringType()).optional(),
|
|
60394
|
+
color: nullableType(stringType()).optional()
|
|
59997
60395
|
});
|
|
59998
60396
|
VirtualNetworkDataAttributes$inboundSchema = objectType({
|
|
59999
60397
|
vid: numberType().int().optional(),
|
|
@@ -60130,36 +60528,34 @@ var init_virtualnetworkassignment = __esm(() => {
|
|
|
60130
60528
|
});
|
|
60131
60529
|
|
|
60132
60530
|
// src/models/virtualnetworkassignments.ts
|
|
60133
|
-
var
|
|
60531
|
+
var VirtualNetworkAssignments$inboundSchema, VirtualNetworkAssignments$outboundSchema;
|
|
60134
60532
|
var init_virtualnetworkassignments = __esm(() => {
|
|
60135
60533
|
init_v3();
|
|
60534
|
+
init_paginationmeta();
|
|
60136
60535
|
init_virtualnetworkassignmentdata();
|
|
60137
|
-
VirtualNetworkAssignmentsMeta$inboundSchema = objectType({});
|
|
60138
|
-
VirtualNetworkAssignmentsMeta$outboundSchema = objectType({});
|
|
60139
60536
|
VirtualNetworkAssignments$inboundSchema = objectType({
|
|
60140
60537
|
data: arrayType(VirtualNetworkAssignmentData$inboundSchema).optional(),
|
|
60141
|
-
meta:
|
|
60538
|
+
meta: PaginationMeta$inboundSchema.optional()
|
|
60142
60539
|
});
|
|
60143
60540
|
VirtualNetworkAssignments$outboundSchema = objectType({
|
|
60144
60541
|
data: arrayType(VirtualNetworkAssignmentData$outboundSchema).optional(),
|
|
60145
|
-
meta:
|
|
60542
|
+
meta: PaginationMeta$outboundSchema.optional()
|
|
60146
60543
|
});
|
|
60147
60544
|
});
|
|
60148
60545
|
|
|
60149
60546
|
// src/models/virtualnetworks.ts
|
|
60150
|
-
var
|
|
60547
|
+
var VirtualNetworks$inboundSchema, VirtualNetworks$outboundSchema;
|
|
60151
60548
|
var init_virtualnetworks = __esm(() => {
|
|
60152
60549
|
init_v3();
|
|
60550
|
+
init_paginationmeta();
|
|
60153
60551
|
init_virtualnetworkdata();
|
|
60154
|
-
VirtualNetworksMeta$inboundSchema = objectType({});
|
|
60155
|
-
VirtualNetworksMeta$outboundSchema = objectType({});
|
|
60156
60552
|
VirtualNetworks$inboundSchema = objectType({
|
|
60157
60553
|
data: arrayType(VirtualNetworkData$inboundSchema).optional(),
|
|
60158
|
-
meta:
|
|
60554
|
+
meta: PaginationMeta$inboundSchema.optional()
|
|
60159
60555
|
});
|
|
60160
60556
|
VirtualNetworks$outboundSchema = objectType({
|
|
60161
60557
|
data: arrayType(VirtualNetworkData$outboundSchema).optional(),
|
|
60162
|
-
meta:
|
|
60558
|
+
meta: PaginationMeta$outboundSchema.optional()
|
|
60163
60559
|
});
|
|
60164
60560
|
});
|
|
60165
60561
|
|
|
@@ -60346,6 +60742,8 @@ var init_models = __esm(() => {
|
|
|
60346
60742
|
init_kubernetesclusters();
|
|
60347
60743
|
init_kubernetesclustersummarydata();
|
|
60348
60744
|
init_kubernetesclusterupdateresponse();
|
|
60745
|
+
init_manageddatabaseplanattributes();
|
|
60746
|
+
init_manageddatabaseplans();
|
|
60349
60747
|
init_membership();
|
|
60350
60748
|
init_objectstoragedata();
|
|
60351
60749
|
init_objectstorages();
|
|
@@ -60394,12 +60792,20 @@ var init_models = __esm(() => {
|
|
|
60394
60792
|
init_userupdate();
|
|
60395
60793
|
init_virtualmachine();
|
|
60396
60794
|
init_virtualmachineattributes();
|
|
60795
|
+
init_virtualmachinebackup();
|
|
60796
|
+
init_virtualmachinebackupattributes();
|
|
60797
|
+
init_virtualmachinebackuppayload();
|
|
60798
|
+
init_virtualmachinebackups();
|
|
60397
60799
|
init_virtualmachinemetrics();
|
|
60398
60800
|
init_virtualmachinenetworkattachmentcreatepayload();
|
|
60399
60801
|
init_virtualmachinenetworkattachmentresource();
|
|
60400
60802
|
init_virtualmachinenetworkattachments();
|
|
60401
60803
|
init_virtualmachinepayload();
|
|
60402
60804
|
init_virtualmachineplans();
|
|
60805
|
+
init_virtualmachinerestore();
|
|
60806
|
+
init_virtualmachinerestoreattributes();
|
|
60807
|
+
init_virtualmachinerestorepayload();
|
|
60808
|
+
init_virtualmachinerestores();
|
|
60403
60809
|
init_virtualmachines();
|
|
60404
60810
|
init_virtualmachineupdatepayload();
|
|
60405
60811
|
init_virtualnetwork();
|
|
@@ -61212,6 +61618,27 @@ var init_createvirtualmachineaction = __esm(() => {
|
|
|
61212
61618
|
});
|
|
61213
61619
|
});
|
|
61214
61620
|
|
|
61621
|
+
// src/models/operations/createvirtualmachinebackup.ts
|
|
61622
|
+
var CreateVirtualMachineBackupRequest$inboundSchema, CreateVirtualMachineBackupRequest$outboundSchema;
|
|
61623
|
+
var init_createvirtualmachinebackup = __esm(() => {
|
|
61624
|
+
init_v3();
|
|
61625
|
+
init_primitives();
|
|
61626
|
+
CreateVirtualMachineBackupRequest$inboundSchema = objectType({
|
|
61627
|
+
virtual_machine_id: stringType()
|
|
61628
|
+
}).transform((v2) => {
|
|
61629
|
+
return remap(v2, {
|
|
61630
|
+
virtual_machine_id: "virtualMachineId"
|
|
61631
|
+
});
|
|
61632
|
+
});
|
|
61633
|
+
CreateVirtualMachineBackupRequest$outboundSchema = objectType({
|
|
61634
|
+
virtualMachineId: stringType()
|
|
61635
|
+
}).transform((v2) => {
|
|
61636
|
+
return remap(v2, {
|
|
61637
|
+
virtualMachineId: "virtual_machine_id"
|
|
61638
|
+
});
|
|
61639
|
+
});
|
|
61640
|
+
});
|
|
61641
|
+
|
|
61215
61642
|
// src/models/operations/createvirtualmachinenetworkattachment.ts
|
|
61216
61643
|
var CreateVirtualMachineNetworkAttachmentRequest$inboundSchema, CreateVirtualMachineNetworkAttachmentRequest$outboundSchema, CreateVirtualMachineNetworkAttachmentMeta$inboundSchema, CreateVirtualMachineNetworkAttachmentMeta$outboundSchema, CreateVirtualMachineNetworkAttachmentResponse$inboundSchema, CreateVirtualMachineNetworkAttachmentResponse$outboundSchema;
|
|
61217
61644
|
var init_createvirtualmachinenetworkattachment = __esm(() => {
|
|
@@ -61250,6 +61677,36 @@ var init_createvirtualmachinenetworkattachment = __esm(() => {
|
|
|
61250
61677
|
});
|
|
61251
61678
|
});
|
|
61252
61679
|
|
|
61680
|
+
// src/models/operations/createvirtualmachinerestore.ts
|
|
61681
|
+
var CreateVirtualMachineRestoreRequest$inboundSchema, CreateVirtualMachineRestoreRequest$outboundSchema;
|
|
61682
|
+
var init_createvirtualmachinerestore = __esm(() => {
|
|
61683
|
+
init_v3();
|
|
61684
|
+
init_primitives();
|
|
61685
|
+
init_models();
|
|
61686
|
+
CreateVirtualMachineRestoreRequest$inboundSchema = objectType({
|
|
61687
|
+
virtual_machine_id: stringType(),
|
|
61688
|
+
backup_id: stringType(),
|
|
61689
|
+
virtual_machine_restore_payload: VirtualMachineRestorePayload$inboundSchema.optional()
|
|
61690
|
+
}).transform((v2) => {
|
|
61691
|
+
return remap(v2, {
|
|
61692
|
+
virtual_machine_id: "virtualMachineId",
|
|
61693
|
+
backup_id: "backupId",
|
|
61694
|
+
virtual_machine_restore_payload: "virtualMachineRestorePayload"
|
|
61695
|
+
});
|
|
61696
|
+
});
|
|
61697
|
+
CreateVirtualMachineRestoreRequest$outboundSchema = objectType({
|
|
61698
|
+
virtualMachineId: stringType(),
|
|
61699
|
+
backupId: stringType(),
|
|
61700
|
+
virtualMachineRestorePayload: VirtualMachineRestorePayload$outboundSchema.optional()
|
|
61701
|
+
}).transform((v2) => {
|
|
61702
|
+
return remap(v2, {
|
|
61703
|
+
virtualMachineId: "virtual_machine_id",
|
|
61704
|
+
backupId: "backup_id",
|
|
61705
|
+
virtualMachineRestorePayload: "virtual_machine_restore_payload"
|
|
61706
|
+
});
|
|
61707
|
+
});
|
|
61708
|
+
});
|
|
61709
|
+
|
|
61253
61710
|
// src/models/operations/createvirtualnetwork.ts
|
|
61254
61711
|
var CreateVirtualNetworkType2, CreateVirtualNetworkSite2, CreateVirtualNetworkType2$inboundSchema, CreateVirtualNetworkType2$outboundSchema, CreateVirtualNetworkSite2$inboundSchema, CreateVirtualNetworkSite2$outboundSchema, CreateVirtualNetworkAttributes2$inboundSchema, CreateVirtualNetworkAttributes2$outboundSchema, CreateVirtualNetworkData2$inboundSchema, CreateVirtualNetworkData2$outboundSchema, CreateVirtualNetworkRequest$inboundSchema, CreateVirtualNetworkRequest$outboundSchema;
|
|
61255
61712
|
var init_createvirtualnetwork = __esm(() => {
|
|
@@ -61574,6 +62031,18 @@ var init_deleteuserdata = __esm(() => {
|
|
|
61574
62031
|
});
|
|
61575
62032
|
});
|
|
61576
62033
|
|
|
62034
|
+
// src/models/operations/deletevirtualmachinebackup.ts
|
|
62035
|
+
var DeleteVirtualMachineBackupRequest$inboundSchema, DeleteVirtualMachineBackupRequest$outboundSchema;
|
|
62036
|
+
var init_deletevirtualmachinebackup = __esm(() => {
|
|
62037
|
+
init_v3();
|
|
62038
|
+
DeleteVirtualMachineBackupRequest$inboundSchema = objectType({
|
|
62039
|
+
id: stringType()
|
|
62040
|
+
});
|
|
62041
|
+
DeleteVirtualMachineBackupRequest$outboundSchema = objectType({
|
|
62042
|
+
id: stringType()
|
|
62043
|
+
});
|
|
62044
|
+
});
|
|
62045
|
+
|
|
61577
62046
|
// src/models/operations/deletevirtualnetworksassignments.ts
|
|
61578
62047
|
var DeleteVirtualNetworksAssignmentsRequest$inboundSchema, DeleteVirtualNetworksAssignmentsRequest$outboundSchema;
|
|
61579
62048
|
var init_deletevirtualnetworksassignments = __esm(() => {
|
|
@@ -62724,6 +63193,7 @@ var init_getservers = __esm(() => {
|
|
|
62724
63193
|
"filter[disk][lte]": numberType().int().optional(),
|
|
62725
63194
|
"filter[tags]": stringType().optional(),
|
|
62726
63195
|
"extra_fields[servers]": stringType().optional(),
|
|
63196
|
+
"stats[total]": stringType().optional(),
|
|
62727
63197
|
"page[size]": numberType().int().default(20),
|
|
62728
63198
|
"page[number]": numberType().int().default(1)
|
|
62729
63199
|
}).transform((v2) => {
|
|
@@ -62745,6 +63215,7 @@ var init_getservers = __esm(() => {
|
|
|
62745
63215
|
"filter[disk][lte]": "filterDiskLte",
|
|
62746
63216
|
"filter[tags]": "filterTags",
|
|
62747
63217
|
"extra_fields[servers]": "extraFieldsServers",
|
|
63218
|
+
"stats[total]": "statsTotal",
|
|
62748
63219
|
"page[size]": "pageSize",
|
|
62749
63220
|
"page[number]": "pageNumber"
|
|
62750
63221
|
});
|
|
@@ -62767,6 +63238,7 @@ var init_getservers = __esm(() => {
|
|
|
62767
63238
|
filterDiskLte: numberType().int().optional(),
|
|
62768
63239
|
filterTags: stringType().optional(),
|
|
62769
63240
|
extraFieldsServers: stringType().optional(),
|
|
63241
|
+
statsTotal: stringType().optional(),
|
|
62770
63242
|
pageSize: numberType().int().default(20),
|
|
62771
63243
|
pageNumber: numberType().int().default(1)
|
|
62772
63244
|
}).transform((v2) => {
|
|
@@ -62788,6 +63260,7 @@ var init_getservers = __esm(() => {
|
|
|
62788
63260
|
filterDiskLte: "filter[disk][lte]",
|
|
62789
63261
|
filterTags: "filter[tags]",
|
|
62790
63262
|
extraFieldsServers: "extra_fields[servers]",
|
|
63263
|
+
statsTotal: "stats[total]",
|
|
62791
63264
|
pageSize: "page[size]",
|
|
62792
63265
|
pageNumber: "page[number]"
|
|
62793
63266
|
});
|
|
@@ -63173,6 +63646,30 @@ var init_getusersdata = __esm(() => {
|
|
|
63173
63646
|
});
|
|
63174
63647
|
});
|
|
63175
63648
|
|
|
63649
|
+
// src/models/operations/getvirtualmachinebackup.ts
|
|
63650
|
+
var GetVirtualMachineBackupRequest$inboundSchema, GetVirtualMachineBackupRequest$outboundSchema;
|
|
63651
|
+
var init_getvirtualmachinebackup = __esm(() => {
|
|
63652
|
+
init_v3();
|
|
63653
|
+
GetVirtualMachineBackupRequest$inboundSchema = objectType({
|
|
63654
|
+
id: stringType()
|
|
63655
|
+
});
|
|
63656
|
+
GetVirtualMachineBackupRequest$outboundSchema = objectType({
|
|
63657
|
+
id: stringType()
|
|
63658
|
+
});
|
|
63659
|
+
});
|
|
63660
|
+
|
|
63661
|
+
// src/models/operations/getvirtualmachinerestore.ts
|
|
63662
|
+
var GetVirtualMachineRestoreRequest$inboundSchema, GetVirtualMachineRestoreRequest$outboundSchema;
|
|
63663
|
+
var init_getvirtualmachinerestore = __esm(() => {
|
|
63664
|
+
init_v3();
|
|
63665
|
+
GetVirtualMachineRestoreRequest$inboundSchema = objectType({
|
|
63666
|
+
id: stringType()
|
|
63667
|
+
});
|
|
63668
|
+
GetVirtualMachineRestoreRequest$outboundSchema = objectType({
|
|
63669
|
+
id: stringType()
|
|
63670
|
+
});
|
|
63671
|
+
});
|
|
63672
|
+
|
|
63176
63673
|
// src/models/operations/getvirtualnetwork.ts
|
|
63177
63674
|
var GetVirtualNetworkRequest$inboundSchema, GetVirtualNetworkRequest$outboundSchema;
|
|
63178
63675
|
var init_getvirtualnetwork = __esm(() => {
|
|
@@ -63204,6 +63701,7 @@ var init_getvirtualnetworks = __esm(() => {
|
|
|
63204
63701
|
"filter[location]": stringType().optional(),
|
|
63205
63702
|
"filter[project]": stringType().optional(),
|
|
63206
63703
|
"filter[tags]": stringType().optional(),
|
|
63704
|
+
"stats[total]": stringType().optional(),
|
|
63207
63705
|
"page[size]": numberType().int().default(20),
|
|
63208
63706
|
"page[number]": numberType().int().default(1)
|
|
63209
63707
|
}).transform((v2) => {
|
|
@@ -63211,6 +63709,7 @@ var init_getvirtualnetworks = __esm(() => {
|
|
|
63211
63709
|
"filter[location]": "filterLocation",
|
|
63212
63710
|
"filter[project]": "filterProject",
|
|
63213
63711
|
"filter[tags]": "filterTags",
|
|
63712
|
+
"stats[total]": "statsTotal",
|
|
63214
63713
|
"page[size]": "pageSize",
|
|
63215
63714
|
"page[number]": "pageNumber"
|
|
63216
63715
|
});
|
|
@@ -63219,6 +63718,7 @@ var init_getvirtualnetworks = __esm(() => {
|
|
|
63219
63718
|
filterLocation: stringType().optional(),
|
|
63220
63719
|
filterProject: stringType().optional(),
|
|
63221
63720
|
filterTags: stringType().optional(),
|
|
63721
|
+
statsTotal: stringType().optional(),
|
|
63222
63722
|
pageSize: numberType().int().default(20),
|
|
63223
63723
|
pageNumber: numberType().int().default(1)
|
|
63224
63724
|
}).transform((v2) => {
|
|
@@ -63226,6 +63726,7 @@ var init_getvirtualnetworks = __esm(() => {
|
|
|
63226
63726
|
filterLocation: "filter[location]",
|
|
63227
63727
|
filterProject: "filter[project]",
|
|
63228
63728
|
filterTags: "filter[tags]",
|
|
63729
|
+
statsTotal: "stats[total]",
|
|
63229
63730
|
pageSize: "page[size]",
|
|
63230
63731
|
pageNumber: "page[number]"
|
|
63231
63732
|
});
|
|
@@ -63256,6 +63757,7 @@ var init_getvirtualnetworksassignments = __esm(() => {
|
|
|
63256
63757
|
"filter[server]": stringType().optional(),
|
|
63257
63758
|
"filter[vid]": stringType().optional(),
|
|
63258
63759
|
"filter[virtual_network_id]": stringType().optional(),
|
|
63760
|
+
"stats[total]": stringType().optional(),
|
|
63259
63761
|
"page[size]": numberType().int().default(20),
|
|
63260
63762
|
"page[number]": numberType().int().default(1)
|
|
63261
63763
|
}).transform((v2) => {
|
|
@@ -63263,6 +63765,7 @@ var init_getvirtualnetworksassignments = __esm(() => {
|
|
|
63263
63765
|
"filter[server]": "filterServer",
|
|
63264
63766
|
"filter[vid]": "filterVid",
|
|
63265
63767
|
"filter[virtual_network_id]": "filterVirtualNetworkId",
|
|
63768
|
+
"stats[total]": "statsTotal",
|
|
63266
63769
|
"page[size]": "pageSize",
|
|
63267
63770
|
"page[number]": "pageNumber"
|
|
63268
63771
|
});
|
|
@@ -63271,6 +63774,7 @@ var init_getvirtualnetworksassignments = __esm(() => {
|
|
|
63271
63774
|
filterServer: stringType().optional(),
|
|
63272
63775
|
filterVid: stringType().optional(),
|
|
63273
63776
|
filterVirtualNetworkId: stringType().optional(),
|
|
63777
|
+
statsTotal: stringType().optional(),
|
|
63274
63778
|
pageSize: numberType().int().default(20),
|
|
63275
63779
|
pageNumber: numberType().int().default(1)
|
|
63276
63780
|
}).transform((v2) => {
|
|
@@ -63278,6 +63782,7 @@ var init_getvirtualnetworksassignments = __esm(() => {
|
|
|
63278
63782
|
filterServer: "filter[server]",
|
|
63279
63783
|
filterVid: "filter[vid]",
|
|
63280
63784
|
filterVirtualNetworkId: "filter[virtual_network_id]",
|
|
63785
|
+
statsTotal: "stats[total]",
|
|
63281
63786
|
pageSize: "page[size]",
|
|
63282
63787
|
pageNumber: "page[number]"
|
|
63283
63788
|
});
|
|
@@ -63381,7 +63886,8 @@ var init_indexvirtualmachine = __esm(() => {
|
|
|
63381
63886
|
IndexVirtualMachineRequest$inboundSchema = objectType({
|
|
63382
63887
|
"filter[project]": stringType().optional(),
|
|
63383
63888
|
"filter[tags]": stringType().optional(),
|
|
63384
|
-
"extra_fields[virtual_machines]": stringType().optional()
|
|
63889
|
+
"extra_fields[virtual_machines]": stringType().optional(),
|
|
63890
|
+
sort: stringType().optional()
|
|
63385
63891
|
}).transform((v2) => {
|
|
63386
63892
|
return remap(v2, {
|
|
63387
63893
|
"filter[project]": "filterProject",
|
|
@@ -63392,7 +63898,8 @@ var init_indexvirtualmachine = __esm(() => {
|
|
|
63392
63898
|
IndexVirtualMachineRequest$outboundSchema = objectType({
|
|
63393
63899
|
filterProject: stringType().optional(),
|
|
63394
63900
|
filterTags: stringType().optional(),
|
|
63395
|
-
extraFieldsVirtualMachines: stringType().optional()
|
|
63901
|
+
extraFieldsVirtualMachines: stringType().optional(),
|
|
63902
|
+
sort: stringType().optional()
|
|
63396
63903
|
}).transform((v2) => {
|
|
63397
63904
|
return remap(v2, {
|
|
63398
63905
|
filterProject: "filter[project]",
|
|
@@ -63402,6 +63909,27 @@ var init_indexvirtualmachine = __esm(() => {
|
|
|
63402
63909
|
});
|
|
63403
63910
|
});
|
|
63404
63911
|
|
|
63912
|
+
// src/models/operations/listbackuprestores.ts
|
|
63913
|
+
var ListBackupRestoresRequest$inboundSchema, ListBackupRestoresRequest$outboundSchema;
|
|
63914
|
+
var init_listbackuprestores = __esm(() => {
|
|
63915
|
+
init_v3();
|
|
63916
|
+
init_primitives();
|
|
63917
|
+
ListBackupRestoresRequest$inboundSchema = objectType({
|
|
63918
|
+
backup_id: stringType()
|
|
63919
|
+
}).transform((v2) => {
|
|
63920
|
+
return remap(v2, {
|
|
63921
|
+
backup_id: "backupId"
|
|
63922
|
+
});
|
|
63923
|
+
});
|
|
63924
|
+
ListBackupRestoresRequest$outboundSchema = objectType({
|
|
63925
|
+
backupId: stringType()
|
|
63926
|
+
}).transform((v2) => {
|
|
63927
|
+
return remap(v2, {
|
|
63928
|
+
backupId: "backup_id"
|
|
63929
|
+
});
|
|
63930
|
+
});
|
|
63931
|
+
});
|
|
63932
|
+
|
|
63405
63933
|
// src/models/operations/listelasticips.ts
|
|
63406
63934
|
var FilterStatus, FilterStatus$inboundSchema, FilterStatus$outboundSchema, ListElasticIpsRequest$inboundSchema, ListElasticIpsRequest$outboundSchema, ListElasticIpsResponse$inboundSchema, ListElasticIpsResponse$outboundSchema;
|
|
63407
63935
|
var init_listelasticips = __esm(() => {
|
|
@@ -63549,6 +64077,52 @@ var init_listvirtualmachinenetworkattachments = __esm(() => {
|
|
|
63549
64077
|
});
|
|
63550
64078
|
});
|
|
63551
64079
|
|
|
64080
|
+
// src/models/operations/listvirtualmachinescopedbackups.ts
|
|
64081
|
+
var ListVirtualMachineScopedBackupsRequest$inboundSchema, ListVirtualMachineScopedBackupsRequest$outboundSchema;
|
|
64082
|
+
var init_listvirtualmachinescopedbackups = __esm(() => {
|
|
64083
|
+
init_v3();
|
|
64084
|
+
init_primitives();
|
|
64085
|
+
ListVirtualMachineScopedBackupsRequest$inboundSchema = objectType({
|
|
64086
|
+
virtual_machine_id: stringType()
|
|
64087
|
+
}).transform((v2) => {
|
|
64088
|
+
return remap(v2, {
|
|
64089
|
+
virtual_machine_id: "virtualMachineId"
|
|
64090
|
+
});
|
|
64091
|
+
});
|
|
64092
|
+
ListVirtualMachineScopedBackupsRequest$outboundSchema = objectType({
|
|
64093
|
+
virtualMachineId: stringType()
|
|
64094
|
+
}).transform((v2) => {
|
|
64095
|
+
return remap(v2, {
|
|
64096
|
+
virtualMachineId: "virtual_machine_id"
|
|
64097
|
+
});
|
|
64098
|
+
});
|
|
64099
|
+
});
|
|
64100
|
+
|
|
64101
|
+
// src/models/operations/listvirtualmachinescopedrestores.ts
|
|
64102
|
+
var ListVirtualMachineScopedRestoresRequest$inboundSchema, ListVirtualMachineScopedRestoresRequest$outboundSchema;
|
|
64103
|
+
var init_listvirtualmachinescopedrestores = __esm(() => {
|
|
64104
|
+
init_v3();
|
|
64105
|
+
init_primitives();
|
|
64106
|
+
ListVirtualMachineScopedRestoresRequest$inboundSchema = objectType({
|
|
64107
|
+
virtual_machine_id: stringType(),
|
|
64108
|
+
backup_id: stringType()
|
|
64109
|
+
}).transform((v2) => {
|
|
64110
|
+
return remap(v2, {
|
|
64111
|
+
virtual_machine_id: "virtualMachineId",
|
|
64112
|
+
backup_id: "backupId"
|
|
64113
|
+
});
|
|
64114
|
+
});
|
|
64115
|
+
ListVirtualMachineScopedRestoresRequest$outboundSchema = objectType({
|
|
64116
|
+
virtualMachineId: stringType(),
|
|
64117
|
+
backupId: stringType()
|
|
64118
|
+
}).transform((v2) => {
|
|
64119
|
+
return remap(v2, {
|
|
64120
|
+
virtualMachineId: "virtual_machine_id",
|
|
64121
|
+
backupId: "backup_id"
|
|
64122
|
+
});
|
|
64123
|
+
});
|
|
64124
|
+
});
|
|
64125
|
+
|
|
63552
64126
|
// src/models/operations/patchcurrentteam.ts
|
|
63553
64127
|
var PatchCurrentTeamType2, PatchCurrentTeamType2$inboundSchema, PatchCurrentTeamType2$outboundSchema, PatchCurrentTeamAttributes2$inboundSchema, PatchCurrentTeamAttributes2$outboundSchema, PatchCurrentTeamData2$inboundSchema, PatchCurrentTeamData2$outboundSchema, PatchCurrentTeamRequestBody2$inboundSchema, PatchCurrentTeamRequestBody2$outboundSchema, PatchCurrentTeamRequest$inboundSchema, PatchCurrentTeamRequest$outboundSchema, PatchCurrentTeamResponse$inboundSchema, PatchCurrentTeamResponse$outboundSchema;
|
|
63554
64128
|
var init_patchcurrentteam = __esm(() => {
|
|
@@ -64822,17 +65396,21 @@ var init_showvirtualmachine = __esm(() => {
|
|
|
64822
65396
|
init_v3();
|
|
64823
65397
|
init_primitives();
|
|
64824
65398
|
ShowVirtualMachineRequest$inboundSchema = objectType({
|
|
64825
|
-
virtual_machine_id: stringType()
|
|
65399
|
+
virtual_machine_id: stringType(),
|
|
65400
|
+
"extra_fields[virtual_machines]": stringType().optional()
|
|
64826
65401
|
}).transform((v2) => {
|
|
64827
65402
|
return remap(v2, {
|
|
64828
|
-
virtual_machine_id: "virtualMachineId"
|
|
65403
|
+
virtual_machine_id: "virtualMachineId",
|
|
65404
|
+
"extra_fields[virtual_machines]": "extraFieldsVirtualMachines"
|
|
64829
65405
|
});
|
|
64830
65406
|
});
|
|
64831
65407
|
ShowVirtualMachineRequest$outboundSchema = objectType({
|
|
64832
|
-
virtualMachineId: stringType()
|
|
65408
|
+
virtualMachineId: stringType(),
|
|
65409
|
+
extraFieldsVirtualMachines: stringType().optional()
|
|
64833
65410
|
}).transform((v2) => {
|
|
64834
65411
|
return remap(v2, {
|
|
64835
|
-
virtualMachineId: "virtual_machine_id"
|
|
65412
|
+
virtualMachineId: "virtual_machine_id",
|
|
65413
|
+
extraFieldsVirtualMachines: "extra_fields[virtual_machines]"
|
|
64836
65414
|
});
|
|
64837
65415
|
});
|
|
64838
65416
|
});
|
|
@@ -65485,11 +66063,11 @@ var init_updatevirtualnetwork = __esm(() => {
|
|
|
65485
66063
|
UpdateVirtualNetworkType2$outboundSchema = UpdateVirtualNetworkType2$inboundSchema;
|
|
65486
66064
|
UpdateVirtualNetworkAttributes2$inboundSchema = objectType({
|
|
65487
66065
|
tags: arrayType(stringType()).optional(),
|
|
65488
|
-
description: stringType().
|
|
66066
|
+
description: stringType().optional()
|
|
65489
66067
|
});
|
|
65490
66068
|
UpdateVirtualNetworkAttributes2$outboundSchema = objectType({
|
|
65491
66069
|
tags: arrayType(stringType()).optional(),
|
|
65492
|
-
description: stringType().
|
|
66070
|
+
description: stringType().optional()
|
|
65493
66071
|
});
|
|
65494
66072
|
UpdateVirtualNetworkData2$inboundSchema = objectType({
|
|
65495
66073
|
id: stringType(),
|
|
@@ -65540,7 +66118,9 @@ var init_operations = __esm(() => {
|
|
|
65540
66118
|
init_createserverreinstall();
|
|
65541
66119
|
init_createtag();
|
|
65542
66120
|
init_createvirtualmachineaction();
|
|
66121
|
+
init_createvirtualmachinebackup();
|
|
65543
66122
|
init_createvirtualmachinenetworkattachment();
|
|
66123
|
+
init_createvirtualmachinerestore();
|
|
65544
66124
|
init_createvirtualnetwork();
|
|
65545
66125
|
init_deleteapikey();
|
|
65546
66126
|
init_deleteelasticip();
|
|
@@ -65555,6 +66135,7 @@ var init_operations = __esm(() => {
|
|
|
65555
66135
|
init_deletestoragefilesystems();
|
|
65556
66136
|
init_deletestoragevolumes();
|
|
65557
66137
|
init_deleteuserdata();
|
|
66138
|
+
init_deletevirtualmachinebackup();
|
|
65558
66139
|
init_deletevirtualnetworksassignments();
|
|
65559
66140
|
init_deletevpnsession();
|
|
65560
66141
|
init_destroyserver();
|
|
@@ -65603,16 +66184,21 @@ var init_operations = __esm(() => {
|
|
|
65603
66184
|
init_getuserdata();
|
|
65604
66185
|
init_getuserprofile();
|
|
65605
66186
|
init_getusersdata();
|
|
66187
|
+
init_getvirtualmachinebackup();
|
|
66188
|
+
init_getvirtualmachinerestore();
|
|
65606
66189
|
init_getvirtualnetwork();
|
|
65607
66190
|
init_getvirtualnetworks();
|
|
65608
66191
|
init_getvirtualnetworksassignments();
|
|
65609
66192
|
init_getvmplans();
|
|
65610
66193
|
init_getvpnsessions();
|
|
65611
66194
|
init_indexvirtualmachine();
|
|
66195
|
+
init_listbackuprestores();
|
|
65612
66196
|
init_listelasticips();
|
|
65613
66197
|
init_listfirewalls();
|
|
65614
66198
|
init_listkubernetesclusters();
|
|
65615
66199
|
init_listvirtualmachinenetworkattachments();
|
|
66200
|
+
init_listvirtualmachinescopedbackups();
|
|
66201
|
+
init_listvirtualmachinescopedrestores();
|
|
65616
66202
|
init_patchcurrentteam();
|
|
65617
66203
|
init_patchstoragefilesystems();
|
|
65618
66204
|
init_patchuserdata();
|
|
@@ -71067,11 +71653,96 @@ Lists all bandwidth plans.`,
|
|
|
71067
71653
|
};
|
|
71068
71654
|
});
|
|
71069
71655
|
|
|
71656
|
+
// src/funcs/plansGetManagedDatabasePlans.ts
|
|
71657
|
+
function plansGetManagedDatabasePlans(client, options) {
|
|
71658
|
+
return new APIPromise($do47(client, options));
|
|
71659
|
+
}
|
|
71660
|
+
async function $do47(client, options) {
|
|
71661
|
+
const path = pathToFunc("/plans/managed_databases")();
|
|
71662
|
+
const headers = new Headers(compactMap({
|
|
71663
|
+
Accept: "application/vnd.api+json"
|
|
71664
|
+
}));
|
|
71665
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
71666
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
71667
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
71668
|
+
const context = {
|
|
71669
|
+
options: client._options,
|
|
71670
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
71671
|
+
operationID: "get-managed-database-plans",
|
|
71672
|
+
oAuth2Scopes: null,
|
|
71673
|
+
resolvedSecurity: requestSecurity,
|
|
71674
|
+
securitySource: client._options.bearer,
|
|
71675
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
71676
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
71677
|
+
};
|
|
71678
|
+
const requestRes = client._createRequest(context, {
|
|
71679
|
+
security: requestSecurity,
|
|
71680
|
+
method: "GET",
|
|
71681
|
+
baseURL: options?.serverURL,
|
|
71682
|
+
path,
|
|
71683
|
+
headers,
|
|
71684
|
+
userAgent: client._options.userAgent,
|
|
71685
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
71686
|
+
}, options);
|
|
71687
|
+
if (!requestRes.ok) {
|
|
71688
|
+
return [requestRes, { status: "invalid" }];
|
|
71689
|
+
}
|
|
71690
|
+
const req = requestRes.value;
|
|
71691
|
+
const doResult = await client._do(req, {
|
|
71692
|
+
context,
|
|
71693
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
71694
|
+
retryConfig: context.retryConfig,
|
|
71695
|
+
retryCodes: context.retryCodes
|
|
71696
|
+
});
|
|
71697
|
+
if (!doResult.ok) {
|
|
71698
|
+
return [doResult, { status: "request-error", request: req }];
|
|
71699
|
+
}
|
|
71700
|
+
const response = doResult.value;
|
|
71701
|
+
const [result] = await match(json(200, ManagedDatabasePlans$inboundSchema, {
|
|
71702
|
+
ctype: "application/vnd.api+json"
|
|
71703
|
+
}), fail("4XX"), fail("5XX"))(response, req);
|
|
71704
|
+
if (!result.ok) {
|
|
71705
|
+
return [result, { status: "complete", request: req, response }];
|
|
71706
|
+
}
|
|
71707
|
+
return [result, { status: "complete", request: req, response }];
|
|
71708
|
+
}
|
|
71709
|
+
var init_plansGetManagedDatabasePlans = __esm(() => {
|
|
71710
|
+
init_http();
|
|
71711
|
+
init_matchers();
|
|
71712
|
+
init_primitives();
|
|
71713
|
+
init_security();
|
|
71714
|
+
init_url();
|
|
71715
|
+
init_models();
|
|
71716
|
+
init_async();
|
|
71717
|
+
});
|
|
71718
|
+
|
|
71719
|
+
// src/mcp-server/tools/plansGetManagedDatabasePlans.ts
|
|
71720
|
+
var tool$plansGetManagedDatabasePlans;
|
|
71721
|
+
var init_plansGetManagedDatabasePlans2 = __esm(() => {
|
|
71722
|
+
init_plansGetManagedDatabasePlans();
|
|
71723
|
+
init_tools();
|
|
71724
|
+
tool$plansGetManagedDatabasePlans = {
|
|
71725
|
+
name: "plans-get-managed-database-plans",
|
|
71726
|
+
description: `List managed database plans`,
|
|
71727
|
+
tool: async (client, ctx) => {
|
|
71728
|
+
const [result, apiCall] = await plansGetManagedDatabasePlans(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71729
|
+
if (!result.ok) {
|
|
71730
|
+
return {
|
|
71731
|
+
content: [{ type: "text", text: result.error.message }],
|
|
71732
|
+
isError: true
|
|
71733
|
+
};
|
|
71734
|
+
}
|
|
71735
|
+
const value = result.value;
|
|
71736
|
+
return formatResult(value, apiCall);
|
|
71737
|
+
}
|
|
71738
|
+
};
|
|
71739
|
+
});
|
|
71740
|
+
|
|
71070
71741
|
// src/funcs/plansList.ts
|
|
71071
71742
|
function plansList(client, request, options) {
|
|
71072
|
-
return new APIPromise($
|
|
71743
|
+
return new APIPromise($do48(client, request, options));
|
|
71073
71744
|
}
|
|
71074
|
-
async function $
|
|
71745
|
+
async function $do48(client, request, options) {
|
|
71075
71746
|
const parsed = safeParse4(request, (value) => GetPlansRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71076
71747
|
if (!parsed.ok) {
|
|
71077
71748
|
return [parsed, { status: "invalid" }];
|
|
@@ -71182,9 +71853,9 @@ Lists all plans. Availability by region is included in \`attributes.regions.loca
|
|
|
71182
71853
|
|
|
71183
71854
|
// src/funcs/plansListStorage.ts
|
|
71184
71855
|
function plansListStorage(client, options) {
|
|
71185
|
-
return new APIPromise($
|
|
71856
|
+
return new APIPromise($do49(client, options));
|
|
71186
71857
|
}
|
|
71187
|
-
async function $
|
|
71858
|
+
async function $do49(client, options) {
|
|
71188
71859
|
const path = pathToFunc("/plans/storage")();
|
|
71189
71860
|
const headers = new Headers(compactMap({
|
|
71190
71861
|
Accept: "application/vnd.api+json"
|
|
@@ -71267,9 +71938,9 @@ var init_plansListStorage2 = __esm(() => {
|
|
|
71267
71938
|
|
|
71268
71939
|
// src/funcs/plansUpdateBandwidth.ts
|
|
71269
71940
|
function plansUpdateBandwidth(client, request, options) {
|
|
71270
|
-
return new APIPromise($
|
|
71941
|
+
return new APIPromise($do50(client, request, options));
|
|
71271
71942
|
}
|
|
71272
|
-
async function $
|
|
71943
|
+
async function $do50(client, request, options) {
|
|
71273
71944
|
const parsed = safeParse4(request, (value) => UpdatePlansBandwidthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71274
71945
|
if (!parsed.ok) {
|
|
71275
71946
|
return [parsed, { status: "invalid" }];
|
|
@@ -71371,9 +72042,9 @@ Allows to increase or decrease bandwidth packages. Only admins and owners can re
|
|
|
71371
72042
|
|
|
71372
72043
|
// src/funcs/plansVmList.ts
|
|
71373
72044
|
function plansVmList(client, request, options) {
|
|
71374
|
-
return new APIPromise($
|
|
72045
|
+
return new APIPromise($do51(client, request, options));
|
|
71375
72046
|
}
|
|
71376
|
-
async function $
|
|
72047
|
+
async function $do51(client, request, options) {
|
|
71377
72048
|
const parsed = safeParse4(request, (value) => GetVmPlansRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71378
72049
|
if (!parsed.ok) {
|
|
71379
72050
|
return [parsed, { status: "invalid" }];
|
|
@@ -71475,9 +72146,9 @@ var init_plansVmList2 = __esm(() => {
|
|
|
71475
72146
|
|
|
71476
72147
|
// src/funcs/privateNetworksAssign.ts
|
|
71477
72148
|
function privateNetworksAssign(client, request, options) {
|
|
71478
|
-
return new APIPromise($
|
|
72149
|
+
return new APIPromise($do52(client, request, options));
|
|
71479
72150
|
}
|
|
71480
|
-
async function $
|
|
72151
|
+
async function $do52(client, request, options) {
|
|
71481
72152
|
const parsed = safeParse4(request, (value) => AssignServerVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71482
72153
|
if (!parsed.ok) {
|
|
71483
72154
|
return [parsed, { status: "invalid" }];
|
|
@@ -71576,9 +72247,9 @@ var init_privateNetworksAssign2 = __esm(() => {
|
|
|
71576
72247
|
|
|
71577
72248
|
// src/funcs/privateNetworksCreate.ts
|
|
71578
72249
|
function privateNetworksCreate(client, request, options) {
|
|
71579
|
-
return new APIPromise($
|
|
72250
|
+
return new APIPromise($do53(client, request, options));
|
|
71580
72251
|
}
|
|
71581
|
-
async function $
|
|
72252
|
+
async function $do53(client, request, options) {
|
|
71582
72253
|
const parsed = safeParse4(request, (value) => CreateVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71583
72254
|
if (!parsed.ok) {
|
|
71584
72255
|
return [parsed, { status: "invalid" }];
|
|
@@ -71680,9 +72351,9 @@ Creates a new Virtual Network.
|
|
|
71680
72351
|
|
|
71681
72352
|
// src/funcs/privateNetworksDeleteAssignment.ts
|
|
71682
72353
|
function privateNetworksDeleteAssignment(client, request, options) {
|
|
71683
|
-
return new APIPromise($
|
|
72354
|
+
return new APIPromise($do54(client, request, options));
|
|
71684
72355
|
}
|
|
71685
|
-
async function $
|
|
72356
|
+
async function $do54(client, request, options) {
|
|
71686
72357
|
const parsed = safeParse4(request, (value) => DeleteVirtualNetworksAssignmentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71687
72358
|
if (!parsed.ok) {
|
|
71688
72359
|
return [parsed, { status: "invalid" }];
|
|
@@ -71786,9 +72457,9 @@ Allow you to remove a Virtual Network assignment.
|
|
|
71786
72457
|
|
|
71787
72458
|
// src/funcs/privateNetworksGet.ts
|
|
71788
72459
|
function privateNetworksGet(client, request, options) {
|
|
71789
|
-
return new APIPromise($
|
|
72460
|
+
return new APIPromise($do55(client, request, options));
|
|
71790
72461
|
}
|
|
71791
|
-
async function $
|
|
72462
|
+
async function $do55(client, request, options) {
|
|
71792
72463
|
const parsed = safeParse4(request, (value) => GetVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71793
72464
|
if (!parsed.ok) {
|
|
71794
72465
|
return [parsed, { status: "invalid" }];
|
|
@@ -71895,9 +72566,9 @@ Retrieve a Virtual Network.
|
|
|
71895
72566
|
|
|
71896
72567
|
// src/funcs/privateNetworksList.ts
|
|
71897
72568
|
function privateNetworksList(client, request, options) {
|
|
71898
|
-
return new APIPromise($
|
|
72569
|
+
return new APIPromise($do56(client, request, options));
|
|
71899
72570
|
}
|
|
71900
|
-
async function $
|
|
72571
|
+
async function $do56(client, request, options) {
|
|
71901
72572
|
const parsed = safeParse4(request, (value) => GetVirtualNetworksRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71902
72573
|
if (!parsed.ok) {
|
|
71903
72574
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -71910,7 +72581,8 @@ async function $do55(client, request, options) {
|
|
|
71910
72581
|
"filter[project]": payload?.["filter[project]"],
|
|
71911
72582
|
"filter[tags]": payload?.["filter[tags]"],
|
|
71912
72583
|
"page[number]": payload?.["page[number]"],
|
|
71913
|
-
"page[size]": payload?.["page[size]"]
|
|
72584
|
+
"page[size]": payload?.["page[size]"],
|
|
72585
|
+
"stats[total]": payload?.["stats[total]"]
|
|
71914
72586
|
});
|
|
71915
72587
|
const headers = new Headers(compactMap({
|
|
71916
72588
|
Accept: "application/vnd.api+json"
|
|
@@ -72039,9 +72711,9 @@ Lists virtual networks assigned to a project
|
|
|
72039
72711
|
|
|
72040
72712
|
// src/funcs/privateNetworksListAssignments.ts
|
|
72041
72713
|
function privateNetworksListAssignments(client, request, options) {
|
|
72042
|
-
return new APIPromise($
|
|
72714
|
+
return new APIPromise($do57(client, request, options));
|
|
72043
72715
|
}
|
|
72044
|
-
async function $
|
|
72716
|
+
async function $do57(client, request, options) {
|
|
72045
72717
|
const parsed = safeParse4(request, (value) => GetVirtualNetworksAssignmentsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
72046
72718
|
if (!parsed.ok) {
|
|
72047
72719
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -72054,7 +72726,8 @@ async function $do56(client, request, options) {
|
|
|
72054
72726
|
"filter[vid]": payload?.["filter[vid]"],
|
|
72055
72727
|
"filter[virtual_network_id]": payload?.["filter[virtual_network_id]"],
|
|
72056
72728
|
"page[number]": payload?.["page[number]"],
|
|
72057
|
-
"page[size]": payload?.["page[size]"]
|
|
72729
|
+
"page[size]": payload?.["page[size]"],
|
|
72730
|
+
"stats[total]": payload?.["stats[total]"]
|
|
72058
72731
|
});
|
|
72059
72732
|
const headers = new Headers(compactMap({
|
|
72060
72733
|
Accept: "application/vnd.api+json"
|
|
@@ -72180,9 +72853,9 @@ Returns a list of all servers assigned to virtual networks.
|
|
|
72180
72853
|
|
|
72181
72854
|
// src/funcs/privateNetworksUpdate.ts
|
|
72182
72855
|
function privateNetworksUpdate(client, request, options) {
|
|
72183
|
-
return new APIPromise($
|
|
72856
|
+
return new APIPromise($do58(client, request, options));
|
|
72184
72857
|
}
|
|
72185
|
-
async function $
|
|
72858
|
+
async function $do58(client, request, options) {
|
|
72186
72859
|
const parsed = safeParse4(request, (value) => UpdateVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72187
72860
|
if (!parsed.ok) {
|
|
72188
72861
|
return [parsed, { status: "invalid" }];
|
|
@@ -72290,9 +72963,9 @@ Update a Virtual Network.
|
|
|
72290
72963
|
|
|
72291
72964
|
// src/funcs/projectsCreate.ts
|
|
72292
72965
|
function projectsCreate(client, request, options) {
|
|
72293
|
-
return new APIPromise($
|
|
72966
|
+
return new APIPromise($do59(client, request, options));
|
|
72294
72967
|
}
|
|
72295
|
-
async function $
|
|
72968
|
+
async function $do59(client, request, options) {
|
|
72296
72969
|
const parsed = safeParse4(request, (value) => CreateProjectRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72297
72970
|
if (!parsed.ok) {
|
|
72298
72971
|
return [parsed, { status: "invalid" }];
|
|
@@ -72390,9 +73063,9 @@ var init_projectsCreate2 = __esm(() => {
|
|
|
72390
73063
|
|
|
72391
73064
|
// src/funcs/projectsDelete.ts
|
|
72392
73065
|
function projectsDelete(client, request, options) {
|
|
72393
|
-
return new APIPromise($
|
|
73066
|
+
return new APIPromise($do60(client, request, options));
|
|
72394
73067
|
}
|
|
72395
|
-
async function $
|
|
73068
|
+
async function $do60(client, request, options) {
|
|
72396
73069
|
const parsed = safeParse4(request, (value) => DeleteProjectRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72397
73070
|
if (!parsed.ok) {
|
|
72398
73071
|
return [parsed, { status: "invalid" }];
|
|
@@ -72495,9 +73168,9 @@ Deletes a project and releases associated resources. Any Elastic IPs assigned to
|
|
|
72495
73168
|
|
|
72496
73169
|
// src/funcs/projectsList.ts
|
|
72497
73170
|
function projectsList(client, request, options) {
|
|
72498
|
-
return new APIPromise($
|
|
73171
|
+
return new APIPromise($do61(client, request, options));
|
|
72499
73172
|
}
|
|
72500
|
-
async function $
|
|
73173
|
+
async function $do61(client, request, options) {
|
|
72501
73174
|
const parsed = safeParse4(request, (value) => GetProjectsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
72502
73175
|
if (!parsed.ok) {
|
|
72503
73176
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -72643,9 +73316,9 @@ Returns a list of all projects for the current team
|
|
|
72643
73316
|
|
|
72644
73317
|
// src/funcs/projectsSshKeysPostProjectSshKey.ts
|
|
72645
73318
|
function projectsSshKeysPostProjectSshKey(client, request, options) {
|
|
72646
|
-
return new APIPromise($
|
|
73319
|
+
return new APIPromise($do62(client, request, options));
|
|
72647
73320
|
}
|
|
72648
|
-
async function $
|
|
73321
|
+
async function $do62(client, request, options) {
|
|
72649
73322
|
const parsed = safeParse4(request, (value) => PostProjectSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72650
73323
|
if (!parsed.ok) {
|
|
72651
73324
|
return [parsed, { status: "invalid" }];
|
|
@@ -72752,9 +73425,9 @@ Allow you create SSH Keys in a project. These keys can be used to access servers
|
|
|
72752
73425
|
|
|
72753
73426
|
// src/funcs/projectsUpdate.ts
|
|
72754
73427
|
function projectsUpdate(client, request, options) {
|
|
72755
|
-
return new APIPromise($
|
|
73428
|
+
return new APIPromise($do63(client, request, options));
|
|
72756
73429
|
}
|
|
72757
|
-
async function $
|
|
73430
|
+
async function $do63(client, request, options) {
|
|
72758
73431
|
const parsed = safeParse4(request, (value) => UpdateProjectRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72759
73432
|
if (!parsed.ok) {
|
|
72760
73433
|
return [parsed, { status: "invalid" }];
|
|
@@ -72858,9 +73531,9 @@ var init_projectsUpdate2 = __esm(() => {
|
|
|
72858
73531
|
|
|
72859
73532
|
// src/funcs/regionsFetch.ts
|
|
72860
73533
|
function regionsFetch(client, request, options) {
|
|
72861
|
-
return new APIPromise($
|
|
73534
|
+
return new APIPromise($do64(client, request, options));
|
|
72862
73535
|
}
|
|
72863
|
-
async function $
|
|
73536
|
+
async function $do64(client, request, options) {
|
|
72864
73537
|
const parsed = safeParse4(request, (value) => GetRegionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72865
73538
|
if (!parsed.ok) {
|
|
72866
73539
|
return [parsed, { status: "invalid" }];
|
|
@@ -72964,9 +73637,9 @@ var init_regionsFetch2 = __esm(() => {
|
|
|
72964
73637
|
|
|
72965
73638
|
// src/funcs/regionsGet.ts
|
|
72966
73639
|
function regionsGet(client, request, options) {
|
|
72967
|
-
return new APIPromise($
|
|
73640
|
+
return new APIPromise($do65(client, request, options));
|
|
72968
73641
|
}
|
|
72969
|
-
async function $
|
|
73642
|
+
async function $do65(client, request, options) {
|
|
72970
73643
|
const parsed = safeParse4(request, (value) => GetRegionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
72971
73644
|
if (!parsed.ok) {
|
|
72972
73645
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -73106,9 +73779,9 @@ Lists all [available locations](https://latitude.sh/locations). For server avail
|
|
|
73106
73779
|
|
|
73107
73780
|
// src/funcs/rolesGet.ts
|
|
73108
73781
|
function rolesGet(client, request, options) {
|
|
73109
|
-
return new APIPromise($
|
|
73782
|
+
return new APIPromise($do66(client, request, options));
|
|
73110
73783
|
}
|
|
73111
|
-
async function $
|
|
73784
|
+
async function $do66(client, request, options) {
|
|
73112
73785
|
const parsed = safeParse4(request, (value) => GetRoleIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73113
73786
|
if (!parsed.ok) {
|
|
73114
73787
|
return [parsed, { status: "invalid" }];
|
|
@@ -73212,9 +73885,9 @@ var init_rolesGet2 = __esm(() => {
|
|
|
73212
73885
|
|
|
73213
73886
|
// src/funcs/rolesList.ts
|
|
73214
73887
|
function rolesList(client, request, options) {
|
|
73215
|
-
return new APIPromise($
|
|
73888
|
+
return new APIPromise($do67(client, request, options));
|
|
73216
73889
|
}
|
|
73217
|
-
async function $
|
|
73890
|
+
async function $do67(client, request, options) {
|
|
73218
73891
|
const parsed = safeParse4(request, (value) => GetRolesRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
73219
73892
|
if (!parsed.ok) {
|
|
73220
73893
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -73353,9 +74026,9 @@ Returns a list of all roles that can be assigned to users
|
|
|
73353
74026
|
|
|
73354
74027
|
// src/funcs/serversCreate.ts
|
|
73355
74028
|
function serversCreate(client, request, options) {
|
|
73356
|
-
return new APIPromise($
|
|
74029
|
+
return new APIPromise($do68(client, request, options));
|
|
73357
74030
|
}
|
|
73358
|
-
async function $
|
|
74031
|
+
async function $do68(client, request, options) {
|
|
73359
74032
|
const parsed = safeParse4(request, (value) => CreateServerRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73360
74033
|
if (!parsed.ok) {
|
|
73361
74034
|
return [parsed, { status: "invalid" }];
|
|
@@ -73454,9 +74127,9 @@ var init_serversCreate2 = __esm(() => {
|
|
|
73454
74127
|
|
|
73455
74128
|
// src/funcs/serversCreateIpmiSession.ts
|
|
73456
74129
|
function serversCreateIpmiSession(client, request, options) {
|
|
73457
|
-
return new APIPromise($
|
|
74130
|
+
return new APIPromise($do69(client, request, options));
|
|
73458
74131
|
}
|
|
73459
|
-
async function $
|
|
74132
|
+
async function $do69(client, request, options) {
|
|
73460
74133
|
const parsed = safeParse4(request, (value) => CreateIpmiSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73461
74134
|
if (!parsed.ok) {
|
|
73462
74135
|
return [parsed, { status: "invalid" }];
|
|
@@ -73566,9 +74239,9 @@ Related guide: https://docs.latitude.sh/docs/ipmi
|
|
|
73566
74239
|
|
|
73567
74240
|
// src/funcs/serversDelete.ts
|
|
73568
74241
|
function serversDelete(client, request, options) {
|
|
73569
|
-
return new APIPromise($
|
|
74242
|
+
return new APIPromise($do70(client, request, options));
|
|
73570
74243
|
}
|
|
73571
|
-
async function $
|
|
74244
|
+
async function $do70(client, request, options) {
|
|
73572
74245
|
const parsed = safeParse4(request, (value) => DestroyServerRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73573
74246
|
if (!parsed.ok) {
|
|
73574
74247
|
return [parsed, { status: "invalid" }];
|
|
@@ -73673,9 +74346,9 @@ var init_serversDelete2 = __esm(() => {
|
|
|
73673
74346
|
|
|
73674
74347
|
// src/funcs/serversExitRescueMode.ts
|
|
73675
74348
|
function serversExitRescueMode(client, request, options) {
|
|
73676
|
-
return new APIPromise($
|
|
74349
|
+
return new APIPromise($do71(client, request, options));
|
|
73677
74350
|
}
|
|
73678
|
-
async function $
|
|
74351
|
+
async function $do71(client, request, options) {
|
|
73679
74352
|
const parsed = safeParse4(request, (value) => ServerExitRescueModeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73680
74353
|
if (!parsed.ok) {
|
|
73681
74354
|
return [parsed, { status: "invalid" }];
|
|
@@ -73781,9 +74454,9 @@ Exits rescue mode on a given server.`,
|
|
|
73781
74454
|
|
|
73782
74455
|
// src/funcs/serversGet.ts
|
|
73783
74456
|
function serversGet(client, request, options) {
|
|
73784
|
-
return new APIPromise($
|
|
74457
|
+
return new APIPromise($do72(client, request, options));
|
|
73785
74458
|
}
|
|
73786
|
-
async function $
|
|
74459
|
+
async function $do72(client, request, options) {
|
|
73787
74460
|
const parsed = safeParse4(request, (value) => GetServerRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73788
74461
|
if (!parsed.ok) {
|
|
73789
74462
|
return [parsed, { status: "invalid" }];
|
|
@@ -73894,9 +74567,9 @@ Returns a server that belongs to the team.
|
|
|
73894
74567
|
|
|
73895
74568
|
// src/funcs/serversGetDeployConfig.ts
|
|
73896
74569
|
function serversGetDeployConfig(client, request, options) {
|
|
73897
|
-
return new APIPromise($
|
|
74570
|
+
return new APIPromise($do73(client, request, options));
|
|
73898
74571
|
}
|
|
73899
|
-
async function $
|
|
74572
|
+
async function $do73(client, request, options) {
|
|
73900
74573
|
const parsed = safeParse4(request, (value) => GetServerDeployConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73901
74574
|
if (!parsed.ok) {
|
|
73902
74575
|
return [parsed, { status: "invalid" }];
|
|
@@ -74000,9 +74673,9 @@ var init_serversGetDeployConfig2 = __esm(() => {
|
|
|
74000
74673
|
|
|
74001
74674
|
// src/funcs/serversGetOutOfBand.ts
|
|
74002
74675
|
function serversGetOutOfBand(client, request, options) {
|
|
74003
|
-
return new APIPromise($
|
|
74676
|
+
return new APIPromise($do74(client, request, options));
|
|
74004
74677
|
}
|
|
74005
|
-
async function $
|
|
74678
|
+
async function $do74(client, request, options) {
|
|
74006
74679
|
const parsed = safeParse4(request, (value) => GetServerOutOfBandRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74007
74680
|
if (!parsed.ok) {
|
|
74008
74681
|
return [parsed, { status: "invalid" }];
|
|
@@ -74106,9 +74779,9 @@ var init_serversGetOutOfBand2 = __esm(() => {
|
|
|
74106
74779
|
|
|
74107
74780
|
// src/funcs/serversList.ts
|
|
74108
74781
|
function serversList(client, request, options) {
|
|
74109
|
-
return new APIPromise($
|
|
74782
|
+
return new APIPromise($do75(client, request, options));
|
|
74110
74783
|
}
|
|
74111
|
-
async function $
|
|
74784
|
+
async function $do75(client, request, options) {
|
|
74112
74785
|
const parsed = safeParse4(request, (value) => GetServersRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
74113
74786
|
if (!parsed.ok) {
|
|
74114
74787
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -74135,7 +74808,8 @@ async function $do74(client, request, options) {
|
|
|
74135
74808
|
"filter[status]": payload?.["filter[status]"],
|
|
74136
74809
|
"filter[tags]": payload?.["filter[tags]"],
|
|
74137
74810
|
"page[number]": payload?.["page[number]"],
|
|
74138
|
-
"page[size]": payload?.["page[size]"]
|
|
74811
|
+
"page[size]": payload?.["page[size]"],
|
|
74812
|
+
"stats[total]": payload?.["stats[total]"]
|
|
74139
74813
|
});
|
|
74140
74814
|
const headers = new Headers(compactMap({
|
|
74141
74815
|
Accept: "application/vnd.api+json"
|
|
@@ -74264,9 +74938,9 @@ Returns a list of all servers belonging to the team.
|
|
|
74264
74938
|
|
|
74265
74939
|
// src/funcs/serversLock.ts
|
|
74266
74940
|
function serversLock(client, request, options) {
|
|
74267
|
-
return new APIPromise($
|
|
74941
|
+
return new APIPromise($do76(client, request, options));
|
|
74268
74942
|
}
|
|
74269
|
-
async function $
|
|
74943
|
+
async function $do76(client, request, options) {
|
|
74270
74944
|
const parsed = safeParse4(request, (value) => ServerLockRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74271
74945
|
if (!parsed.ok) {
|
|
74272
74946
|
return [parsed, { status: "invalid" }];
|
|
@@ -74372,9 +75046,9 @@ Locks the server. A locked server cannot be deleted or modified and no actions c
|
|
|
74372
75046
|
|
|
74373
75047
|
// src/funcs/serversReinstall.ts
|
|
74374
75048
|
function serversReinstall(client, request, options) {
|
|
74375
|
-
return new APIPromise($
|
|
75049
|
+
return new APIPromise($do77(client, request, options));
|
|
74376
75050
|
}
|
|
74377
|
-
async function $
|
|
75051
|
+
async function $do77(client, request, options) {
|
|
74378
75052
|
const parsed = safeParse4(request, (value) => CreateServerReinstallRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74379
75053
|
if (!parsed.ok) {
|
|
74380
75054
|
return [parsed, { status: "invalid" }];
|
|
@@ -74482,9 +75156,9 @@ var init_serversReinstall2 = __esm(() => {
|
|
|
74482
75156
|
|
|
74483
75157
|
// src/funcs/serversRunAction.ts
|
|
74484
75158
|
function serversRunAction(client, request, options) {
|
|
74485
|
-
return new APIPromise($
|
|
75159
|
+
return new APIPromise($do78(client, request, options));
|
|
74486
75160
|
}
|
|
74487
|
-
async function $
|
|
75161
|
+
async function $do78(client, request, options) {
|
|
74488
75162
|
const parsed = safeParse4(request, (value) => CreateServerActionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74489
75163
|
if (!parsed.ok) {
|
|
74490
75164
|
return [parsed, { status: "invalid" }];
|
|
@@ -74595,9 +75269,9 @@ Performs an action on a given server:
|
|
|
74595
75269
|
|
|
74596
75270
|
// src/funcs/serversScheduleDeletion.ts
|
|
74597
75271
|
function serversScheduleDeletion(client, request, options) {
|
|
74598
|
-
return new APIPromise($
|
|
75272
|
+
return new APIPromise($do79(client, request, options));
|
|
74599
75273
|
}
|
|
74600
|
-
async function $
|
|
75274
|
+
async function $do79(client, request, options) {
|
|
74601
75275
|
const parsed = safeParse4(request, (value) => ServerScheduleDeletionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74602
75276
|
if (!parsed.ok) {
|
|
74603
75277
|
return [parsed, { status: "invalid" }];
|
|
@@ -74703,9 +75377,9 @@ Schedules the server to be removed at the end of the billing cycle.`,
|
|
|
74703
75377
|
|
|
74704
75378
|
// src/funcs/serversStartOutOfBandConnection.ts
|
|
74705
75379
|
function serversStartOutOfBandConnection(client, request, options) {
|
|
74706
|
-
return new APIPromise($
|
|
75380
|
+
return new APIPromise($do80(client, request, options));
|
|
74707
75381
|
}
|
|
74708
|
-
async function $
|
|
75382
|
+
async function $do80(client, request, options) {
|
|
74709
75383
|
const parsed = safeParse4(request, (value) => CreateServerOutOfBandRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74710
75384
|
if (!parsed.ok) {
|
|
74711
75385
|
return [parsed, { status: "invalid" }];
|
|
@@ -74810,9 +75484,9 @@ var init_serversStartOutOfBandConnection2 = __esm(() => {
|
|
|
74810
75484
|
|
|
74811
75485
|
// src/funcs/serversStartRescueMode.ts
|
|
74812
75486
|
function serversStartRescueMode(client, request, options) {
|
|
74813
|
-
return new APIPromise($
|
|
75487
|
+
return new APIPromise($do81(client, request, options));
|
|
74814
75488
|
}
|
|
74815
|
-
async function $
|
|
75489
|
+
async function $do81(client, request, options) {
|
|
74816
75490
|
const parsed = safeParse4(request, (value) => ServerStartRescueModeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74817
75491
|
if (!parsed.ok) {
|
|
74818
75492
|
return [parsed, { status: "invalid" }];
|
|
@@ -74918,9 +75592,9 @@ Starts rescue mode on a given server.`,
|
|
|
74918
75592
|
|
|
74919
75593
|
// src/funcs/serversUnlock.ts
|
|
74920
75594
|
function serversUnlock(client, request, options) {
|
|
74921
|
-
return new APIPromise($
|
|
75595
|
+
return new APIPromise($do82(client, request, options));
|
|
74922
75596
|
}
|
|
74923
|
-
async function $
|
|
75597
|
+
async function $do82(client, request, options) {
|
|
74924
75598
|
const parsed = safeParse4(request, (value) => ServerUnlockRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74925
75599
|
if (!parsed.ok) {
|
|
74926
75600
|
return [parsed, { status: "invalid" }];
|
|
@@ -75026,9 +75700,9 @@ Unlocks the server. A locked server cannot be deleted or modified and no actions
|
|
|
75026
75700
|
|
|
75027
75701
|
// src/funcs/serversUnscheduleDeletion.ts
|
|
75028
75702
|
function serversUnscheduleDeletion(client, request, options) {
|
|
75029
|
-
return new APIPromise($
|
|
75703
|
+
return new APIPromise($do83(client, request, options));
|
|
75030
75704
|
}
|
|
75031
|
-
async function $
|
|
75705
|
+
async function $do83(client, request, options) {
|
|
75032
75706
|
const parsed = safeParse4(request, (value) => ServerUnscheduleDeletionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75033
75707
|
if (!parsed.ok) {
|
|
75034
75708
|
return [parsed, { status: "invalid" }];
|
|
@@ -75131,9 +75805,9 @@ Unschedules the server removal at the end of the billing cycle.`,
|
|
|
75131
75805
|
|
|
75132
75806
|
// src/funcs/serversUpdate.ts
|
|
75133
75807
|
function serversUpdate(client, request, options) {
|
|
75134
|
-
return new APIPromise($
|
|
75808
|
+
return new APIPromise($do84(client, request, options));
|
|
75135
75809
|
}
|
|
75136
|
-
async function $
|
|
75810
|
+
async function $do84(client, request, options) {
|
|
75137
75811
|
const parsed = safeParse4(request, (value) => UpdateServerRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75138
75812
|
if (!parsed.ok) {
|
|
75139
75813
|
return [parsed, { status: "invalid" }];
|
|
@@ -75238,9 +75912,9 @@ var init_serversUpdate2 = __esm(() => {
|
|
|
75238
75912
|
|
|
75239
75913
|
// src/funcs/serversUpdateDeployConfig.ts
|
|
75240
75914
|
function serversUpdateDeployConfig(client, request, options) {
|
|
75241
|
-
return new APIPromise($
|
|
75915
|
+
return new APIPromise($do85(client, request, options));
|
|
75242
75916
|
}
|
|
75243
|
-
async function $
|
|
75917
|
+
async function $do85(client, request, options) {
|
|
75244
75918
|
const parsed = safeParse4(request, (value) => UpdateServerDeployConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75245
75919
|
if (!parsed.ok) {
|
|
75246
75920
|
return [parsed, { status: "invalid" }];
|
|
@@ -75345,9 +76019,9 @@ var init_serversUpdateDeployConfig2 = __esm(() => {
|
|
|
75345
76019
|
|
|
75346
76020
|
// src/funcs/sshKeysCreate.ts
|
|
75347
76021
|
function sshKeysCreate(client, request, options) {
|
|
75348
|
-
return new APIPromise($
|
|
76022
|
+
return new APIPromise($do86(client, request, options));
|
|
75349
76023
|
}
|
|
75350
|
-
async function $
|
|
76024
|
+
async function $do86(client, request, options) {
|
|
75351
76025
|
const parsed = safeParse4(request, (value) => PostSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75352
76026
|
if (!parsed.ok) {
|
|
75353
76027
|
return [parsed, { status: "invalid" }];
|
|
@@ -75448,9 +76122,9 @@ Allows you create SSH Keys. These keys can be used to access servers after deplo
|
|
|
75448
76122
|
|
|
75449
76123
|
// src/funcs/sshKeysDelete.ts
|
|
75450
76124
|
function sshKeysDelete(client, request, options) {
|
|
75451
|
-
return new APIPromise($
|
|
76125
|
+
return new APIPromise($do87(client, request, options));
|
|
75452
76126
|
}
|
|
75453
|
-
async function $
|
|
76127
|
+
async function $do87(client, request, options) {
|
|
75454
76128
|
const parsed = safeParse4(request, (value) => DeleteSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75455
76129
|
if (!parsed.ok) {
|
|
75456
76130
|
return [parsed, { status: "invalid" }];
|
|
@@ -75554,9 +76228,9 @@ Allows you remove SSH Keys in a project. Remove a SSH Key from the project won't
|
|
|
75554
76228
|
|
|
75555
76229
|
// src/funcs/sshKeysGet.ts
|
|
75556
76230
|
function sshKeysGet(client, request, options) {
|
|
75557
|
-
return new APIPromise($
|
|
76231
|
+
return new APIPromise($do88(client, request, options));
|
|
75558
76232
|
}
|
|
75559
|
-
async function $
|
|
76233
|
+
async function $do88(client, request, options) {
|
|
75560
76234
|
const parsed = safeParse4(request, (value) => GetProjectSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75561
76235
|
if (!parsed.ok) {
|
|
75562
76236
|
return [parsed, { status: "invalid" }];
|
|
@@ -75666,9 +76340,9 @@ List all SSH Keys in the project. These keys can be used to access servers after
|
|
|
75666
76340
|
|
|
75667
76341
|
// src/funcs/sshKeysList.ts
|
|
75668
76342
|
function sshKeysList(client, request, options) {
|
|
75669
|
-
return new APIPromise($
|
|
76343
|
+
return new APIPromise($do89(client, request, options));
|
|
75670
76344
|
}
|
|
75671
|
-
async function $
|
|
76345
|
+
async function $do89(client, request, options) {
|
|
75672
76346
|
const parsed = safeParse4(request, (value) => GetProjectSshKeysRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75673
76347
|
if (!parsed.ok) {
|
|
75674
76348
|
return [parsed, { status: "invalid" }];
|
|
@@ -75782,9 +76456,9 @@ List all SSH Keys in the project. These keys can be used to access servers after
|
|
|
75782
76456
|
|
|
75783
76457
|
// src/funcs/sshKeysListAll.ts
|
|
75784
76458
|
function sshKeysListAll(client, request, options) {
|
|
75785
|
-
return new APIPromise($
|
|
76459
|
+
return new APIPromise($do90(client, request, options));
|
|
75786
76460
|
}
|
|
75787
|
-
async function $
|
|
76461
|
+
async function $do90(client, request, options) {
|
|
75788
76462
|
const parsed = safeParse4(request, (value) => GetSshKeysRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
75789
76463
|
if (!parsed.ok) {
|
|
75790
76464
|
return [parsed, { status: "invalid" }];
|
|
@@ -75894,9 +76568,9 @@ List all SSH Keys in the project. These keys can be used to access servers after
|
|
|
75894
76568
|
|
|
75895
76569
|
// src/funcs/sshKeysModifyProjectKey.ts
|
|
75896
76570
|
function sshKeysModifyProjectKey(client, request, options) {
|
|
75897
|
-
return new APIPromise($
|
|
76571
|
+
return new APIPromise($do91(client, request, options));
|
|
75898
76572
|
}
|
|
75899
|
-
async function $
|
|
76573
|
+
async function $do91(client, request, options) {
|
|
75900
76574
|
const parsed = safeParse4(request, (value) => PutProjectSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75901
76575
|
if (!parsed.ok) {
|
|
75902
76576
|
return [parsed, { status: "invalid" }];
|
|
@@ -76007,9 +76681,9 @@ Allow you update SSH Key in a project. These keys can be used to access servers
|
|
|
76007
76681
|
|
|
76008
76682
|
// src/funcs/sshKeysRemoveFromProject.ts
|
|
76009
76683
|
function sshKeysRemoveFromProject(client, request, options) {
|
|
76010
|
-
return new APIPromise($
|
|
76684
|
+
return new APIPromise($do92(client, request, options));
|
|
76011
76685
|
}
|
|
76012
|
-
async function $
|
|
76686
|
+
async function $do92(client, request, options) {
|
|
76013
76687
|
const parsed = safeParse4(request, (value) => DeleteProjectSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76014
76688
|
if (!parsed.ok) {
|
|
76015
76689
|
return [parsed, { status: "invalid" }];
|
|
@@ -76117,9 +76791,9 @@ Allow you remove SSH Keys in a project. Remove a SSH Key from the project won't
|
|
|
76117
76791
|
|
|
76118
76792
|
// src/funcs/sshKeysRetrieve.ts
|
|
76119
76793
|
function sshKeysRetrieve(client, request, options) {
|
|
76120
|
-
return new APIPromise($
|
|
76794
|
+
return new APIPromise($do93(client, request, options));
|
|
76121
76795
|
}
|
|
76122
|
-
async function $
|
|
76796
|
+
async function $do93(client, request, options) {
|
|
76123
76797
|
const parsed = safeParse4(request, (value) => GetSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76124
76798
|
if (!parsed.ok) {
|
|
76125
76799
|
return [parsed, { status: "invalid" }];
|
|
@@ -76225,9 +76899,9 @@ List all SSH Keys in the project. These keys can be used to access servers after
|
|
|
76225
76899
|
|
|
76226
76900
|
// src/funcs/sshKeysUpdate.ts
|
|
76227
76901
|
function sshKeysUpdate(client, request, options) {
|
|
76228
|
-
return new APIPromise($
|
|
76902
|
+
return new APIPromise($do94(client, request, options));
|
|
76229
76903
|
}
|
|
76230
|
-
async function $
|
|
76904
|
+
async function $do94(client, request, options) {
|
|
76231
76905
|
const parsed = safeParse4(request, (value) => PutSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76232
76906
|
if (!parsed.ok) {
|
|
76233
76907
|
return [parsed, { status: "invalid" }];
|
|
@@ -76334,9 +77008,9 @@ Allows you update SSH Key in a project. These keys can be used to access servers
|
|
|
76334
77008
|
|
|
76335
77009
|
// src/funcs/tagsCreate.ts
|
|
76336
77010
|
function tagsCreate(client, request, options) {
|
|
76337
|
-
return new APIPromise($
|
|
77011
|
+
return new APIPromise($do95(client, request, options));
|
|
76338
77012
|
}
|
|
76339
|
-
async function $
|
|
77013
|
+
async function $do95(client, request, options) {
|
|
76340
77014
|
const parsed = safeParse4(request, (value) => CreateTagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76341
77015
|
if (!parsed.ok) {
|
|
76342
77016
|
return [parsed, { status: "invalid" }];
|
|
@@ -76444,9 +77118,9 @@ Create a Tag in the team.
|
|
|
76444
77118
|
|
|
76445
77119
|
// src/funcs/tagsDelete.ts
|
|
76446
77120
|
function tagsDelete(client, request, options) {
|
|
76447
|
-
return new APIPromise($
|
|
77121
|
+
return new APIPromise($do96(client, request, options));
|
|
76448
77122
|
}
|
|
76449
|
-
async function $
|
|
77123
|
+
async function $do96(client, request, options) {
|
|
76450
77124
|
const parsed = safeParse4(request, (value) => DestroyTagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76451
77125
|
if (!parsed.ok) {
|
|
76452
77126
|
return [parsed, { status: "invalid" }];
|
|
@@ -76550,9 +77224,9 @@ Update a Tag in the team.
|
|
|
76550
77224
|
|
|
76551
77225
|
// src/funcs/tagsList.ts
|
|
76552
77226
|
function tagsList(client, options) {
|
|
76553
|
-
return new APIPromise($
|
|
77227
|
+
return new APIPromise($do97(client, options));
|
|
76554
77228
|
}
|
|
76555
|
-
async function $
|
|
77229
|
+
async function $do97(client, options) {
|
|
76556
77230
|
const path = pathToFunc("/tags")();
|
|
76557
77231
|
const headers = new Headers(compactMap({
|
|
76558
77232
|
Accept: "application/vnd.api+json"
|
|
@@ -76638,9 +77312,9 @@ List all Tags in the team.
|
|
|
76638
77312
|
|
|
76639
77313
|
// src/funcs/tagsUpdate.ts
|
|
76640
77314
|
function tagsUpdate(client, request, options) {
|
|
76641
|
-
return new APIPromise($
|
|
77315
|
+
return new APIPromise($do98(client, request, options));
|
|
76642
77316
|
}
|
|
76643
|
-
async function $
|
|
77317
|
+
async function $do98(client, request, options) {
|
|
76644
77318
|
const parsed = safeParse4(request, (value) => UpdateTagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76645
77319
|
if (!parsed.ok) {
|
|
76646
77320
|
return [parsed, { status: "invalid" }];
|
|
@@ -76754,9 +77428,9 @@ Update a Tag in the team.
|
|
|
76754
77428
|
|
|
76755
77429
|
// src/funcs/teamMembersDelete.ts
|
|
76756
77430
|
function teamMembersDelete(client, request, options) {
|
|
76757
|
-
return new APIPromise($
|
|
77431
|
+
return new APIPromise($do99(client, request, options));
|
|
76758
77432
|
}
|
|
76759
|
-
async function $
|
|
77433
|
+
async function $do99(client, request, options) {
|
|
76760
77434
|
const parsed = safeParse4(request, (value) => DestroyTeamMemberRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76761
77435
|
if (!parsed.ok) {
|
|
76762
77436
|
return [parsed, { status: "invalid" }];
|
|
@@ -76857,9 +77531,9 @@ var init_teamMembersDelete2 = __esm(() => {
|
|
|
76857
77531
|
|
|
76858
77532
|
// src/funcs/teamMembersPostTeamMembers.ts
|
|
76859
77533
|
function teamMembersPostTeamMembers(client, request, options) {
|
|
76860
|
-
return new APIPromise($
|
|
77534
|
+
return new APIPromise($do100(client, request, options));
|
|
76861
77535
|
}
|
|
76862
|
-
async function $
|
|
77536
|
+
async function $do100(client, request, options) {
|
|
76863
77537
|
const parsed = safeParse4(request, (value) => PostTeamMembersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76864
77538
|
if (!parsed.ok) {
|
|
76865
77539
|
return [parsed, { status: "invalid" }];
|
|
@@ -76958,9 +77632,9 @@ var init_teamMembersPostTeamMembers2 = __esm(() => {
|
|
|
76958
77632
|
|
|
76959
77633
|
// src/funcs/teamsCreate.ts
|
|
76960
77634
|
function teamsCreate(client, request, options) {
|
|
76961
|
-
return new APIPromise($
|
|
77635
|
+
return new APIPromise($do101(client, request, options));
|
|
76962
77636
|
}
|
|
76963
|
-
async function $
|
|
77637
|
+
async function $do101(client, request, options) {
|
|
76964
77638
|
const parsed = safeParse4(request, (value) => PostTeamRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76965
77639
|
if (!parsed.ok) {
|
|
76966
77640
|
return [parsed, { status: "invalid" }];
|
|
@@ -77058,9 +77732,9 @@ var init_teamsCreate2 = __esm(() => {
|
|
|
77058
77732
|
|
|
77059
77733
|
// src/funcs/teamsGet.ts
|
|
77060
77734
|
function teamsGet(client, options) {
|
|
77061
|
-
return new APIPromise($
|
|
77735
|
+
return new APIPromise($do102(client, options));
|
|
77062
77736
|
}
|
|
77063
|
-
async function $
|
|
77737
|
+
async function $do102(client, options) {
|
|
77064
77738
|
const path = pathToFunc("/team")();
|
|
77065
77739
|
const headers = new Headers(compactMap({
|
|
77066
77740
|
Accept: "application/vnd.api+json"
|
|
@@ -77143,9 +77817,9 @@ var init_teamsGet2 = __esm(() => {
|
|
|
77143
77817
|
|
|
77144
77818
|
// src/funcs/teamsMembersGetTeamMembers.ts
|
|
77145
77819
|
function teamsMembersGetTeamMembers(client, request, options) {
|
|
77146
|
-
return new APIPromise($
|
|
77820
|
+
return new APIPromise($do103(client, request, options));
|
|
77147
77821
|
}
|
|
77148
|
-
async function $
|
|
77822
|
+
async function $do103(client, request, options) {
|
|
77149
77823
|
const parsed = safeParse4(request, (value) => GetTeamMembersRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
77150
77824
|
if (!parsed.ok) {
|
|
77151
77825
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -77281,9 +77955,9 @@ var init_teamsMembersGetTeamMembers2 = __esm(() => {
|
|
|
77281
77955
|
|
|
77282
77956
|
// src/funcs/teamsUpdate.ts
|
|
77283
77957
|
function teamsUpdate(client, request, options) {
|
|
77284
|
-
return new APIPromise($
|
|
77958
|
+
return new APIPromise($do104(client, request, options));
|
|
77285
77959
|
}
|
|
77286
|
-
async function $
|
|
77960
|
+
async function $do104(client, request, options) {
|
|
77287
77961
|
const parsed = safeParse4(request, (value) => PatchCurrentTeamRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77288
77962
|
if (!parsed.ok) {
|
|
77289
77963
|
return [parsed, { status: "invalid" }];
|
|
@@ -77387,9 +78061,9 @@ var init_teamsUpdate2 = __esm(() => {
|
|
|
77387
78061
|
|
|
77388
78062
|
// src/funcs/trafficGet.ts
|
|
77389
78063
|
function trafficGet(client, request, options) {
|
|
77390
|
-
return new APIPromise($
|
|
78064
|
+
return new APIPromise($do105(client, request, options));
|
|
77391
78065
|
}
|
|
77392
|
-
async function $
|
|
78066
|
+
async function $do105(client, request, options) {
|
|
77393
78067
|
const parsed = safeParse4(request, (value) => GetTrafficConsumptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77394
78068
|
if (!parsed.ok) {
|
|
77395
78069
|
return [parsed, { status: "invalid" }];
|
|
@@ -77494,9 +78168,9 @@ var init_trafficGet2 = __esm(() => {
|
|
|
77494
78168
|
|
|
77495
78169
|
// src/funcs/trafficGetQuota.ts
|
|
77496
78170
|
function trafficGetQuota(client, request, options) {
|
|
77497
|
-
return new APIPromise($
|
|
78171
|
+
return new APIPromise($do106(client, request, options));
|
|
77498
78172
|
}
|
|
77499
|
-
async function $
|
|
78173
|
+
async function $do106(client, request, options) {
|
|
77500
78174
|
const parsed = safeParse4(request, (value) => GetTrafficQuotaRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
77501
78175
|
if (!parsed.ok) {
|
|
77502
78176
|
return [parsed, { status: "invalid" }];
|
|
@@ -77598,9 +78272,9 @@ var init_trafficGetQuota2 = __esm(() => {
|
|
|
77598
78272
|
|
|
77599
78273
|
// src/funcs/userDataCreate.ts
|
|
77600
78274
|
function userDataCreate(client, request, options) {
|
|
77601
|
-
return new APIPromise($
|
|
78275
|
+
return new APIPromise($do107(client, request, options));
|
|
77602
78276
|
}
|
|
77603
|
-
async function $
|
|
78277
|
+
async function $do107(client, request, options) {
|
|
77604
78278
|
const parsed = safeParse4(request, (value) => PostProjectUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77605
78279
|
if (!parsed.ok) {
|
|
77606
78280
|
return [parsed, { status: "invalid" }];
|
|
@@ -77708,9 +78382,9 @@ Allows you to create User Data in a project, which can be used to perform custom
|
|
|
77708
78382
|
|
|
77709
78383
|
// src/funcs/userDataCreateNew.ts
|
|
77710
78384
|
function userDataCreateNew(client, request, options) {
|
|
77711
|
-
return new APIPromise($
|
|
78385
|
+
return new APIPromise($do108(client, request, options));
|
|
77712
78386
|
}
|
|
77713
|
-
async function $
|
|
78387
|
+
async function $do108(client, request, options) {
|
|
77714
78388
|
const parsed = safeParse4(request, (value) => PostUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77715
78389
|
if (!parsed.ok) {
|
|
77716
78390
|
return [parsed, { status: "invalid" }];
|
|
@@ -77812,9 +78486,9 @@ Allows you to create User Data in a team, which can be used to perform custom se
|
|
|
77812
78486
|
|
|
77813
78487
|
// src/funcs/userDataDelete.ts
|
|
77814
78488
|
function userDataDelete(client, request, options) {
|
|
77815
|
-
return new APIPromise($
|
|
78489
|
+
return new APIPromise($do109(client, request, options));
|
|
77816
78490
|
}
|
|
77817
|
-
async function $
|
|
78491
|
+
async function $do109(client, request, options) {
|
|
77818
78492
|
const parsed = safeParse4(request, (value) => DeleteUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77819
78493
|
if (!parsed.ok) {
|
|
77820
78494
|
return [parsed, { status: "invalid" }];
|
|
@@ -77915,9 +78589,9 @@ var init_userDataDelete2 = __esm(() => {
|
|
|
77915
78589
|
|
|
77916
78590
|
// src/funcs/userDataDeleteProjectUserData.ts
|
|
77917
78591
|
function userDataDeleteProjectUserData(client, request, options) {
|
|
77918
|
-
return new APIPromise($
|
|
78592
|
+
return new APIPromise($do110(client, request, options));
|
|
77919
78593
|
}
|
|
77920
|
-
async function $
|
|
78594
|
+
async function $do110(client, request, options) {
|
|
77921
78595
|
const parsed = safeParse4(request, (value) => DeleteProjectUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77922
78596
|
if (!parsed.ok) {
|
|
77923
78597
|
return [parsed, { status: "invalid" }];
|
|
@@ -78025,9 +78699,9 @@ Allow you remove User Data in a project.
|
|
|
78025
78699
|
|
|
78026
78700
|
// src/funcs/userDataGetProjectUserData.ts
|
|
78027
78701
|
function userDataGetProjectUserData(client, request, options) {
|
|
78028
|
-
return new APIPromise($
|
|
78702
|
+
return new APIPromise($do111(client, request, options));
|
|
78029
78703
|
}
|
|
78030
|
-
async function $
|
|
78704
|
+
async function $do111(client, request, options) {
|
|
78031
78705
|
const parsed = safeParse4(request, (value) => GetProjectUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78032
78706
|
if (!parsed.ok) {
|
|
78033
78707
|
return [parsed, { status: "invalid" }];
|
|
@@ -78142,9 +78816,9 @@ Get User Data in the project. These scripts can be used to configure servers wit
|
|
|
78142
78816
|
|
|
78143
78817
|
// src/funcs/userDataGetProjectUsersData.ts
|
|
78144
78818
|
function userDataGetProjectUsersData(client, request, options) {
|
|
78145
|
-
return new APIPromise($
|
|
78819
|
+
return new APIPromise($do112(client, request, options));
|
|
78146
78820
|
}
|
|
78147
|
-
async function $
|
|
78821
|
+
async function $do112(client, request, options) {
|
|
78148
78822
|
const parsed = safeParse4(request, (value) => GetProjectUsersDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78149
78823
|
if (!parsed.ok) {
|
|
78150
78824
|
return [parsed, { status: "invalid" }];
|
|
@@ -78255,9 +78929,9 @@ List all Users Data in the project. These scripts can be used to configure serve
|
|
|
78255
78929
|
|
|
78256
78930
|
// src/funcs/userDataList.ts
|
|
78257
78931
|
function userDataList(client, request, options) {
|
|
78258
|
-
return new APIPromise($
|
|
78932
|
+
return new APIPromise($do113(client, request, options));
|
|
78259
78933
|
}
|
|
78260
|
-
async function $
|
|
78934
|
+
async function $do113(client, request, options) {
|
|
78261
78935
|
const parsed = safeParse4(request, (value) => GetUsersDataRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
78262
78936
|
if (!parsed.ok) {
|
|
78263
78937
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -78400,9 +79074,9 @@ List all Users Data in the project. These scripts can be used to configure serve
|
|
|
78400
79074
|
|
|
78401
79075
|
// src/funcs/userDataRetrieve.ts
|
|
78402
79076
|
function userDataRetrieve(client, request, options) {
|
|
78403
|
-
return new APIPromise($
|
|
79077
|
+
return new APIPromise($do114(client, request, options));
|
|
78404
79078
|
}
|
|
78405
|
-
async function $
|
|
79079
|
+
async function $do114(client, request, options) {
|
|
78406
79080
|
const parsed = safeParse4(request, (value) => GetUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78407
79081
|
if (!parsed.ok) {
|
|
78408
79082
|
return [parsed, { status: "invalid" }];
|
|
@@ -78513,9 +79187,9 @@ Get User Data in the project. These scripts can be used to configure servers wit
|
|
|
78513
79187
|
|
|
78514
79188
|
// src/funcs/userDataUpdate.ts
|
|
78515
79189
|
function userDataUpdate(client, request, options) {
|
|
78516
|
-
return new APIPromise($
|
|
79190
|
+
return new APIPromise($do115(client, request, options));
|
|
78517
79191
|
}
|
|
78518
|
-
async function $
|
|
79192
|
+
async function $do115(client, request, options) {
|
|
78519
79193
|
const parsed = safeParse4(request, (value) => PatchUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78520
79194
|
if (!parsed.ok) {
|
|
78521
79195
|
return [parsed, { status: "invalid" }];
|
|
@@ -78623,9 +79297,9 @@ Allow you update User Data in a team.
|
|
|
78623
79297
|
|
|
78624
79298
|
// src/funcs/userDataUpdateForProject.ts
|
|
78625
79299
|
function userDataUpdateForProject(client, request, options) {
|
|
78626
|
-
return new APIPromise($
|
|
79300
|
+
return new APIPromise($do116(client, request, options));
|
|
78627
79301
|
}
|
|
78628
|
-
async function $
|
|
79302
|
+
async function $do116(client, request, options) {
|
|
78629
79303
|
const parsed = safeParse4(request, (value) => PutProjectUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78630
79304
|
if (!parsed.ok) {
|
|
78631
79305
|
return [parsed, { status: "invalid" }];
|
|
@@ -78737,9 +79411,9 @@ Allow you update User Data in a project.
|
|
|
78737
79411
|
|
|
78738
79412
|
// src/funcs/userProfileGet.ts
|
|
78739
79413
|
function userProfileGet(client, options) {
|
|
78740
|
-
return new APIPromise($
|
|
79414
|
+
return new APIPromise($do117(client, options));
|
|
78741
79415
|
}
|
|
78742
|
-
async function $
|
|
79416
|
+
async function $do117(client, options) {
|
|
78743
79417
|
const path = pathToFunc("/user/profile")();
|
|
78744
79418
|
const headers = new Headers(compactMap({
|
|
78745
79419
|
Accept: "application/vnd.api+json"
|
|
@@ -78825,9 +79499,9 @@ Retrieve the current user profile
|
|
|
78825
79499
|
|
|
78826
79500
|
// src/funcs/userProfileListTeams.ts
|
|
78827
79501
|
function userProfileListTeams(client, options) {
|
|
78828
|
-
return new APIPromise($
|
|
79502
|
+
return new APIPromise($do118(client, options));
|
|
78829
79503
|
}
|
|
78830
|
-
async function $
|
|
79504
|
+
async function $do118(client, options) {
|
|
78831
79505
|
const path = pathToFunc("/user/teams")();
|
|
78832
79506
|
const headers = new Headers(compactMap({
|
|
78833
79507
|
Accept: "application/vnd.api+json"
|
|
@@ -78913,9 +79587,9 @@ Returns a list of all teams the user belongs to
|
|
|
78913
79587
|
|
|
78914
79588
|
// src/funcs/userProfileUpdate.ts
|
|
78915
79589
|
function userProfileUpdate(client, request, options) {
|
|
78916
|
-
return new APIPromise($
|
|
79590
|
+
return new APIPromise($do119(client, request, options));
|
|
78917
79591
|
}
|
|
78918
|
-
async function $
|
|
79592
|
+
async function $do119(client, request, options) {
|
|
78919
79593
|
const parsed = safeParse4(request, (value) => PatchUserProfileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78920
79594
|
if (!parsed.ok) {
|
|
78921
79595
|
return [parsed, { status: "invalid" }];
|
|
@@ -79020,18 +79694,18 @@ Update the current user profile
|
|
|
79020
79694
|
};
|
|
79021
79695
|
});
|
|
79022
79696
|
|
|
79023
|
-
// src/funcs/
|
|
79024
|
-
function
|
|
79025
|
-
return new APIPromise($
|
|
79697
|
+
// src/funcs/virtualMachineBackupsCreate.ts
|
|
79698
|
+
function virtualMachineBackupsCreate(client, request, options) {
|
|
79699
|
+
return new APIPromise($do120(client, request, options));
|
|
79026
79700
|
}
|
|
79027
|
-
async function $
|
|
79028
|
-
const parsed = safeParse4(request, (value) =>
|
|
79701
|
+
async function $do120(client, request, options) {
|
|
79702
|
+
const parsed = safeParse4(request, (value) => VirtualMachineBackupPayload$outboundSchema.parse(value), "Input validation failed");
|
|
79029
79703
|
if (!parsed.ok) {
|
|
79030
79704
|
return [parsed, { status: "invalid" }];
|
|
79031
79705
|
}
|
|
79032
79706
|
const payload = parsed.value;
|
|
79033
79707
|
const body = encodeJSON("body", payload, { explode: true });
|
|
79034
|
-
const path = pathToFunc("/
|
|
79708
|
+
const path = pathToFunc("/virtual_machine_backups")();
|
|
79035
79709
|
const headers = new Headers(compactMap({
|
|
79036
79710
|
"Content-Type": "application/json",
|
|
79037
79711
|
Accept: "application/vnd.api+json"
|
|
@@ -79042,7 +79716,7 @@ async function $do119(client, request, options) {
|
|
|
79042
79716
|
const context = {
|
|
79043
79717
|
options: client._options,
|
|
79044
79718
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79045
|
-
operationID: "create-virtual-machine",
|
|
79719
|
+
operationID: "create-virtual-machine-backup-top-level",
|
|
79046
79720
|
oAuth2Scopes: null,
|
|
79047
79721
|
resolvedSecurity: requestSecurity,
|
|
79048
79722
|
securitySource: client._options.bearer,
|
|
@@ -79073,15 +79747,20 @@ async function $do119(client, request, options) {
|
|
|
79073
79747
|
return [doResult, { status: "request-error", request: req }];
|
|
79074
79748
|
}
|
|
79075
79749
|
const response = doResult.value;
|
|
79076
|
-
const
|
|
79750
|
+
const responseFields = {
|
|
79751
|
+
HttpMeta: { Response: response, Request: req }
|
|
79752
|
+
};
|
|
79753
|
+
const [result] = await match(json(201, VirtualMachineBackup$inboundSchema, {
|
|
79077
79754
|
ctype: "application/vnd.api+json"
|
|
79078
|
-
}),
|
|
79755
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
79756
|
+
ctype: "application/vnd.api+json"
|
|
79757
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
79079
79758
|
if (!result.ok) {
|
|
79080
79759
|
return [result, { status: "complete", request: req, response }];
|
|
79081
79760
|
}
|
|
79082
79761
|
return [result, { status: "complete", request: req, response }];
|
|
79083
79762
|
}
|
|
79084
|
-
var
|
|
79763
|
+
var init_virtualMachineBackupsCreate = __esm(() => {
|
|
79085
79764
|
init_encodings();
|
|
79086
79765
|
init_http();
|
|
79087
79766
|
init_matchers();
|
|
@@ -79089,28 +79768,29 @@ var init_virtualMachinesCreate = __esm(() => {
|
|
|
79089
79768
|
init_schemas4();
|
|
79090
79769
|
init_security();
|
|
79091
79770
|
init_url();
|
|
79771
|
+
init_errors4();
|
|
79092
79772
|
init_models();
|
|
79093
79773
|
init_async();
|
|
79094
79774
|
});
|
|
79095
79775
|
|
|
79096
|
-
// src/mcp-server/tools/
|
|
79097
|
-
var args112, tool$
|
|
79098
|
-
var
|
|
79099
|
-
|
|
79776
|
+
// src/mcp-server/tools/virtualMachineBackupsCreate.ts
|
|
79777
|
+
var args112, tool$virtualMachineBackupsCreate;
|
|
79778
|
+
var init_virtualMachineBackupsCreate2 = __esm(() => {
|
|
79779
|
+
init_virtualMachineBackupsCreate();
|
|
79100
79780
|
init_models();
|
|
79101
79781
|
init_tools();
|
|
79102
79782
|
args112 = {
|
|
79103
|
-
request:
|
|
79783
|
+
request: VirtualMachineBackupPayload$inboundSchema
|
|
79104
79784
|
};
|
|
79105
|
-
tool$
|
|
79106
|
-
name: "virtual-
|
|
79107
|
-
description: `Create VM
|
|
79785
|
+
tool$virtualMachineBackupsCreate = {
|
|
79786
|
+
name: "virtual-machine-backups-create",
|
|
79787
|
+
description: `Create VM backup (top-level)
|
|
79108
79788
|
|
|
79109
|
-
|
|
79789
|
+
Triggers a backup of the Virtual Machine referenced in the body.
|
|
79110
79790
|
`,
|
|
79111
79791
|
args: args112,
|
|
79112
79792
|
tool: async (client, args113, ctx) => {
|
|
79113
|
-
const [result, apiCall] = await
|
|
79793
|
+
const [result, apiCall] = await virtualMachineBackupsCreate(client, args113.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79114
79794
|
if (!result.ok) {
|
|
79115
79795
|
return {
|
|
79116
79796
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79123,24 +79803,23 @@ Creates a new Virtual Machine.
|
|
|
79123
79803
|
};
|
|
79124
79804
|
});
|
|
79125
79805
|
|
|
79126
|
-
// src/funcs/
|
|
79127
|
-
function
|
|
79128
|
-
return new APIPromise($
|
|
79806
|
+
// src/funcs/virtualMachineBackupsCreateForVirtualMachine.ts
|
|
79807
|
+
function virtualMachineBackupsCreateForVirtualMachine(client, request, options) {
|
|
79808
|
+
return new APIPromise($do121(client, request, options));
|
|
79129
79809
|
}
|
|
79130
|
-
async function $
|
|
79131
|
-
const parsed = safeParse4(request, (value) =>
|
|
79810
|
+
async function $do121(client, request, options) {
|
|
79811
|
+
const parsed = safeParse4(request, (value) => CreateVirtualMachineBackupRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79132
79812
|
if (!parsed.ok) {
|
|
79133
79813
|
return [parsed, { status: "invalid" }];
|
|
79134
79814
|
}
|
|
79135
79815
|
const payload = parsed.value;
|
|
79136
|
-
const body =
|
|
79816
|
+
const body = null;
|
|
79137
79817
|
const pathParams = {
|
|
79138
79818
|
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
79139
79819
|
};
|
|
79140
|
-
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/
|
|
79820
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/backups")(pathParams);
|
|
79141
79821
|
const headers = new Headers(compactMap({
|
|
79142
|
-
|
|
79143
|
-
Accept: "*/*"
|
|
79822
|
+
Accept: "application/vnd.api+json"
|
|
79144
79823
|
}));
|
|
79145
79824
|
const secConfig = await extractSecurity(client._options.bearer);
|
|
79146
79825
|
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
@@ -79148,7 +79827,7 @@ async function $do120(client, request, options) {
|
|
|
79148
79827
|
const context = {
|
|
79149
79828
|
options: client._options,
|
|
79150
79829
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79151
|
-
operationID: "create-virtual-machine-
|
|
79830
|
+
operationID: "create-virtual-machine-backup",
|
|
79152
79831
|
oAuth2Scopes: null,
|
|
79153
79832
|
resolvedSecurity: requestSecurity,
|
|
79154
79833
|
securitySource: client._options.bearer,
|
|
@@ -79179,14 +79858,20 @@ async function $do120(client, request, options) {
|
|
|
79179
79858
|
return [doResult, { status: "request-error", request: req }];
|
|
79180
79859
|
}
|
|
79181
79860
|
const response = doResult.value;
|
|
79182
|
-
const
|
|
79861
|
+
const responseFields = {
|
|
79862
|
+
HttpMeta: { Response: response, Request: req }
|
|
79863
|
+
};
|
|
79864
|
+
const [result] = await match(json(201, VirtualMachineBackup$inboundSchema, {
|
|
79865
|
+
ctype: "application/vnd.api+json"
|
|
79866
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
79867
|
+
ctype: "application/vnd.api+json"
|
|
79868
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
79183
79869
|
if (!result.ok) {
|
|
79184
79870
|
return [result, { status: "complete", request: req, response }];
|
|
79185
79871
|
}
|
|
79186
79872
|
return [result, { status: "complete", request: req, response }];
|
|
79187
79873
|
}
|
|
79188
|
-
var
|
|
79189
|
-
init_v3();
|
|
79874
|
+
var init_virtualMachineBackupsCreateForVirtualMachine = __esm(() => {
|
|
79190
79875
|
init_encodings();
|
|
79191
79876
|
init_http();
|
|
79192
79877
|
init_matchers();
|
|
@@ -79194,59 +79879,61 @@ var init_virtualMachinesCreateVirtualMachineAction = __esm(() => {
|
|
|
79194
79879
|
init_schemas4();
|
|
79195
79880
|
init_security();
|
|
79196
79881
|
init_url();
|
|
79882
|
+
init_errors4();
|
|
79883
|
+
init_models();
|
|
79197
79884
|
init_operations();
|
|
79198
79885
|
init_async();
|
|
79199
79886
|
});
|
|
79200
79887
|
|
|
79201
|
-
// src/mcp-server/tools/
|
|
79202
|
-
var args113, tool$
|
|
79203
|
-
var
|
|
79204
|
-
|
|
79888
|
+
// src/mcp-server/tools/virtualMachineBackupsCreateForVirtualMachine.ts
|
|
79889
|
+
var args113, tool$virtualMachineBackupsCreateForVirtualMachine;
|
|
79890
|
+
var init_virtualMachineBackupsCreateForVirtualMachine2 = __esm(() => {
|
|
79891
|
+
init_virtualMachineBackupsCreateForVirtualMachine();
|
|
79205
79892
|
init_operations();
|
|
79206
79893
|
init_tools();
|
|
79207
79894
|
args113 = {
|
|
79208
|
-
request:
|
|
79895
|
+
request: CreateVirtualMachineBackupRequest$inboundSchema
|
|
79209
79896
|
};
|
|
79210
|
-
tool$
|
|
79211
|
-
name: "virtual-
|
|
79212
|
-
description: `
|
|
79897
|
+
tool$virtualMachineBackupsCreateForVirtualMachine = {
|
|
79898
|
+
name: "virtual-machine-backups-create-for-virtual-machine",
|
|
79899
|
+
description: `Create VM backup
|
|
79213
79900
|
|
|
79214
|
-
|
|
79215
|
-
- \`power_on\` - Starts the virtual machine
|
|
79216
|
-
- \`power_off\` - Stops the virtual machine
|
|
79217
|
-
- \`reboot\` - Restarts the virtual machine
|
|
79901
|
+
Triggers a backup of the given Virtual Machine.
|
|
79218
79902
|
`,
|
|
79219
79903
|
args: args113,
|
|
79220
79904
|
tool: async (client, args114, ctx) => {
|
|
79221
|
-
const [result, apiCall] = await
|
|
79905
|
+
const [result, apiCall] = await virtualMachineBackupsCreateForVirtualMachine(client, args114.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79222
79906
|
if (!result.ok) {
|
|
79223
79907
|
return {
|
|
79224
79908
|
content: [{ type: "text", text: result.error.message }],
|
|
79225
79909
|
isError: true
|
|
79226
79910
|
};
|
|
79227
79911
|
}
|
|
79228
|
-
|
|
79912
|
+
const value = result.value;
|
|
79913
|
+
return formatResult(value, apiCall);
|
|
79229
79914
|
}
|
|
79230
79915
|
};
|
|
79231
79916
|
});
|
|
79232
79917
|
|
|
79233
|
-
// src/funcs/
|
|
79234
|
-
function
|
|
79235
|
-
return new APIPromise($
|
|
79918
|
+
// src/funcs/virtualMachineBackupsDelete.ts
|
|
79919
|
+
function virtualMachineBackupsDelete(client, request, options) {
|
|
79920
|
+
return new APIPromise($do122(client, request, options));
|
|
79236
79921
|
}
|
|
79237
|
-
async function $
|
|
79238
|
-
const parsed = safeParse4(request, (value) =>
|
|
79922
|
+
async function $do122(client, request, options) {
|
|
79923
|
+
const parsed = safeParse4(request, (value) => DeleteVirtualMachineBackupRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79239
79924
|
if (!parsed.ok) {
|
|
79240
79925
|
return [parsed, { status: "invalid" }];
|
|
79241
79926
|
}
|
|
79242
79927
|
const payload = parsed.value;
|
|
79243
|
-
const body =
|
|
79928
|
+
const body = null;
|
|
79244
79929
|
const pathParams = {
|
|
79245
|
-
|
|
79930
|
+
id: encodeSimple("id", payload.id, {
|
|
79931
|
+
explode: false,
|
|
79932
|
+
charEncoding: "percent"
|
|
79933
|
+
})
|
|
79246
79934
|
};
|
|
79247
|
-
const path = pathToFunc("/
|
|
79935
|
+
const path = pathToFunc("/virtual_machine_backups/{id}")(pathParams);
|
|
79248
79936
|
const headers = new Headers(compactMap({
|
|
79249
|
-
"Content-Type": "application/json",
|
|
79250
79937
|
Accept: "application/vnd.api+json"
|
|
79251
79938
|
}));
|
|
79252
79939
|
const secConfig = await extractSecurity(client._options.bearer);
|
|
@@ -79255,7 +79942,7 @@ async function $do121(client, request, options) {
|
|
|
79255
79942
|
const context = {
|
|
79256
79943
|
options: client._options,
|
|
79257
79944
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79258
|
-
operationID: "
|
|
79945
|
+
operationID: "delete-virtual-machine-backup",
|
|
79259
79946
|
oAuth2Scopes: null,
|
|
79260
79947
|
resolvedSecurity: requestSecurity,
|
|
79261
79948
|
securitySource: client._options.bearer,
|
|
@@ -79264,7 +79951,7 @@ async function $do121(client, request, options) {
|
|
|
79264
79951
|
};
|
|
79265
79952
|
const requestRes = client._createRequest(context, {
|
|
79266
79953
|
security: requestSecurity,
|
|
79267
|
-
method: "
|
|
79954
|
+
method: "DELETE",
|
|
79268
79955
|
baseURL: options?.serverURL,
|
|
79269
79956
|
path,
|
|
79270
79957
|
headers,
|
|
@@ -79286,13 +79973,20 @@ async function $do121(client, request, options) {
|
|
|
79286
79973
|
return [doResult, { status: "request-error", request: req }];
|
|
79287
79974
|
}
|
|
79288
79975
|
const response = doResult.value;
|
|
79289
|
-
const
|
|
79976
|
+
const responseFields = {
|
|
79977
|
+
HttpMeta: { Response: response, Request: req }
|
|
79978
|
+
};
|
|
79979
|
+
const [result] = await match(json(202, VirtualMachineBackup$inboundSchema, {
|
|
79980
|
+
ctype: "application/vnd.api+json"
|
|
79981
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
79982
|
+
ctype: "application/vnd.api+json"
|
|
79983
|
+
}), fail([404, 409, 422, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
79290
79984
|
if (!result.ok) {
|
|
79291
79985
|
return [result, { status: "complete", request: req, response }];
|
|
79292
79986
|
}
|
|
79293
79987
|
return [result, { status: "complete", request: req, response }];
|
|
79294
79988
|
}
|
|
79295
|
-
var
|
|
79989
|
+
var init_virtualMachineBackupsDelete = __esm(() => {
|
|
79296
79990
|
init_encodings();
|
|
79297
79991
|
init_http();
|
|
79298
79992
|
init_matchers();
|
|
@@ -79300,28 +79994,30 @@ var init_virtualMachinesCreateVirtualMachineNetworkAttachment = __esm(() => {
|
|
|
79300
79994
|
init_schemas4();
|
|
79301
79995
|
init_security();
|
|
79302
79996
|
init_url();
|
|
79997
|
+
init_errors4();
|
|
79998
|
+
init_models();
|
|
79303
79999
|
init_operations();
|
|
79304
80000
|
init_async();
|
|
79305
80001
|
});
|
|
79306
80002
|
|
|
79307
|
-
// src/mcp-server/tools/
|
|
79308
|
-
var args114, tool$
|
|
79309
|
-
var
|
|
79310
|
-
|
|
80003
|
+
// src/mcp-server/tools/virtualMachineBackupsDelete.ts
|
|
80004
|
+
var args114, tool$virtualMachineBackupsDelete;
|
|
80005
|
+
var init_virtualMachineBackupsDelete2 = __esm(() => {
|
|
80006
|
+
init_virtualMachineBackupsDelete();
|
|
79311
80007
|
init_operations();
|
|
79312
80008
|
init_tools();
|
|
79313
80009
|
args114 = {
|
|
79314
|
-
request:
|
|
80010
|
+
request: DeleteVirtualMachineBackupRequest$inboundSchema
|
|
79315
80011
|
};
|
|
79316
|
-
tool$
|
|
79317
|
-
name: "virtual-
|
|
79318
|
-
description: `
|
|
80012
|
+
tool$virtualMachineBackupsDelete = {
|
|
80013
|
+
name: "virtual-machine-backups-delete",
|
|
80014
|
+
description: `Delete VM backup
|
|
79319
80015
|
|
|
79320
|
-
|
|
80016
|
+
Archives and deletes a Virtual Machine backup. Work runs asynchronously and returns 202 Accepted. Only \`Ready\` or \`Failed\` backups can be deleted, and not while a restore from the backup is in progress.
|
|
79321
80017
|
`,
|
|
79322
80018
|
args: args114,
|
|
79323
80019
|
tool: async (client, args115, ctx) => {
|
|
79324
|
-
const [result, apiCall] = await
|
|
80020
|
+
const [result, apiCall] = await virtualMachineBackupsDelete(client, args115.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79325
80021
|
if (!result.ok) {
|
|
79326
80022
|
return {
|
|
79327
80023
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79334,23 +80030,26 @@ Attaches a virtual network (VLAN) to a Virtual Machine. Work runs asynchronously
|
|
|
79334
80030
|
};
|
|
79335
80031
|
});
|
|
79336
80032
|
|
|
79337
|
-
// src/funcs/
|
|
79338
|
-
function
|
|
79339
|
-
return new APIPromise($
|
|
80033
|
+
// src/funcs/virtualMachineBackupsGet.ts
|
|
80034
|
+
function virtualMachineBackupsGet(client, request, options) {
|
|
80035
|
+
return new APIPromise($do123(client, request, options));
|
|
79340
80036
|
}
|
|
79341
|
-
async function $
|
|
79342
|
-
const parsed = safeParse4(request, (value) =>
|
|
80037
|
+
async function $do123(client, request, options) {
|
|
80038
|
+
const parsed = safeParse4(request, (value) => GetVirtualMachineBackupRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79343
80039
|
if (!parsed.ok) {
|
|
79344
80040
|
return [parsed, { status: "invalid" }];
|
|
79345
80041
|
}
|
|
79346
80042
|
const payload = parsed.value;
|
|
79347
80043
|
const body = null;
|
|
79348
80044
|
const pathParams = {
|
|
79349
|
-
|
|
80045
|
+
id: encodeSimple("id", payload.id, {
|
|
80046
|
+
explode: false,
|
|
80047
|
+
charEncoding: "percent"
|
|
80048
|
+
})
|
|
79350
80049
|
};
|
|
79351
|
-
const path = pathToFunc("/
|
|
80050
|
+
const path = pathToFunc("/virtual_machine_backups/{id}")(pathParams);
|
|
79352
80051
|
const headers = new Headers(compactMap({
|
|
79353
|
-
Accept: "
|
|
80052
|
+
Accept: "application/vnd.api+json"
|
|
79354
80053
|
}));
|
|
79355
80054
|
const secConfig = await extractSecurity(client._options.bearer);
|
|
79356
80055
|
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
@@ -79358,7 +80057,1301 @@ async function $do122(client, request, options) {
|
|
|
79358
80057
|
const context = {
|
|
79359
80058
|
options: client._options,
|
|
79360
80059
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79361
|
-
operationID: "
|
|
80060
|
+
operationID: "get-virtual-machine-backup",
|
|
80061
|
+
oAuth2Scopes: null,
|
|
80062
|
+
resolvedSecurity: requestSecurity,
|
|
80063
|
+
securitySource: client._options.bearer,
|
|
80064
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80065
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80066
|
+
};
|
|
80067
|
+
const requestRes = client._createRequest(context, {
|
|
80068
|
+
security: requestSecurity,
|
|
80069
|
+
method: "GET",
|
|
80070
|
+
baseURL: options?.serverURL,
|
|
80071
|
+
path,
|
|
80072
|
+
headers,
|
|
80073
|
+
body,
|
|
80074
|
+
userAgent: client._options.userAgent,
|
|
80075
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80076
|
+
}, options);
|
|
80077
|
+
if (!requestRes.ok) {
|
|
80078
|
+
return [requestRes, { status: "invalid" }];
|
|
80079
|
+
}
|
|
80080
|
+
const req = requestRes.value;
|
|
80081
|
+
const doResult = await client._do(req, {
|
|
80082
|
+
context,
|
|
80083
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80084
|
+
retryConfig: context.retryConfig,
|
|
80085
|
+
retryCodes: context.retryCodes
|
|
80086
|
+
});
|
|
80087
|
+
if (!doResult.ok) {
|
|
80088
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80089
|
+
}
|
|
80090
|
+
const response = doResult.value;
|
|
80091
|
+
const responseFields = {
|
|
80092
|
+
HttpMeta: { Response: response, Request: req }
|
|
80093
|
+
};
|
|
80094
|
+
const [result] = await match(json(200, VirtualMachineBackup$inboundSchema, {
|
|
80095
|
+
ctype: "application/vnd.api+json"
|
|
80096
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80097
|
+
ctype: "application/vnd.api+json"
|
|
80098
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80099
|
+
if (!result.ok) {
|
|
80100
|
+
return [result, { status: "complete", request: req, response }];
|
|
80101
|
+
}
|
|
80102
|
+
return [result, { status: "complete", request: req, response }];
|
|
80103
|
+
}
|
|
80104
|
+
var init_virtualMachineBackupsGet = __esm(() => {
|
|
80105
|
+
init_encodings();
|
|
80106
|
+
init_http();
|
|
80107
|
+
init_matchers();
|
|
80108
|
+
init_primitives();
|
|
80109
|
+
init_schemas4();
|
|
80110
|
+
init_security();
|
|
80111
|
+
init_url();
|
|
80112
|
+
init_errors4();
|
|
80113
|
+
init_models();
|
|
80114
|
+
init_operations();
|
|
80115
|
+
init_async();
|
|
80116
|
+
});
|
|
80117
|
+
|
|
80118
|
+
// src/mcp-server/tools/virtualMachineBackupsGet.ts
|
|
80119
|
+
var args115, tool$virtualMachineBackupsGet;
|
|
80120
|
+
var init_virtualMachineBackupsGet2 = __esm(() => {
|
|
80121
|
+
init_virtualMachineBackupsGet();
|
|
80122
|
+
init_operations();
|
|
80123
|
+
init_tools();
|
|
80124
|
+
args115 = {
|
|
80125
|
+
request: GetVirtualMachineBackupRequest$inboundSchema
|
|
80126
|
+
};
|
|
80127
|
+
tool$virtualMachineBackupsGet = {
|
|
80128
|
+
name: "virtual-machine-backups-get",
|
|
80129
|
+
description: `Get VM backup`,
|
|
80130
|
+
args: args115,
|
|
80131
|
+
tool: async (client, args116, ctx) => {
|
|
80132
|
+
const [result, apiCall] = await virtualMachineBackupsGet(client, args116.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80133
|
+
if (!result.ok) {
|
|
80134
|
+
return {
|
|
80135
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80136
|
+
isError: true
|
|
80137
|
+
};
|
|
80138
|
+
}
|
|
80139
|
+
const value = result.value;
|
|
80140
|
+
return formatResult(value, apiCall);
|
|
80141
|
+
}
|
|
80142
|
+
};
|
|
80143
|
+
});
|
|
80144
|
+
|
|
80145
|
+
// src/funcs/virtualMachineBackupsList.ts
|
|
80146
|
+
function virtualMachineBackupsList(client, options) {
|
|
80147
|
+
return new APIPromise($do124(client, options));
|
|
80148
|
+
}
|
|
80149
|
+
async function $do124(client, options) {
|
|
80150
|
+
const path = pathToFunc("/virtual_machine_backups")();
|
|
80151
|
+
const headers = new Headers(compactMap({
|
|
80152
|
+
Accept: "application/vnd.api+json"
|
|
80153
|
+
}));
|
|
80154
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80155
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80156
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80157
|
+
const context = {
|
|
80158
|
+
options: client._options,
|
|
80159
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80160
|
+
operationID: "list-virtual-machine-backups",
|
|
80161
|
+
oAuth2Scopes: null,
|
|
80162
|
+
resolvedSecurity: requestSecurity,
|
|
80163
|
+
securitySource: client._options.bearer,
|
|
80164
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80165
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80166
|
+
};
|
|
80167
|
+
const requestRes = client._createRequest(context, {
|
|
80168
|
+
security: requestSecurity,
|
|
80169
|
+
method: "GET",
|
|
80170
|
+
baseURL: options?.serverURL,
|
|
80171
|
+
path,
|
|
80172
|
+
headers,
|
|
80173
|
+
userAgent: client._options.userAgent,
|
|
80174
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80175
|
+
}, options);
|
|
80176
|
+
if (!requestRes.ok) {
|
|
80177
|
+
return [requestRes, { status: "invalid" }];
|
|
80178
|
+
}
|
|
80179
|
+
const req = requestRes.value;
|
|
80180
|
+
const doResult = await client._do(req, {
|
|
80181
|
+
context,
|
|
80182
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80183
|
+
retryConfig: context.retryConfig,
|
|
80184
|
+
retryCodes: context.retryCodes
|
|
80185
|
+
});
|
|
80186
|
+
if (!doResult.ok) {
|
|
80187
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80188
|
+
}
|
|
80189
|
+
const response = doResult.value;
|
|
80190
|
+
const responseFields = {
|
|
80191
|
+
HttpMeta: { Response: response, Request: req }
|
|
80192
|
+
};
|
|
80193
|
+
const [result] = await match(json(200, VirtualMachineBackups$inboundSchema, {
|
|
80194
|
+
ctype: "application/vnd.api+json"
|
|
80195
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80196
|
+
ctype: "application/vnd.api+json"
|
|
80197
|
+
}), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80198
|
+
if (!result.ok) {
|
|
80199
|
+
return [result, { status: "complete", request: req, response }];
|
|
80200
|
+
}
|
|
80201
|
+
return [result, { status: "complete", request: req, response }];
|
|
80202
|
+
}
|
|
80203
|
+
var init_virtualMachineBackupsList = __esm(() => {
|
|
80204
|
+
init_http();
|
|
80205
|
+
init_matchers();
|
|
80206
|
+
init_primitives();
|
|
80207
|
+
init_security();
|
|
80208
|
+
init_url();
|
|
80209
|
+
init_errors4();
|
|
80210
|
+
init_models();
|
|
80211
|
+
init_async();
|
|
80212
|
+
});
|
|
80213
|
+
|
|
80214
|
+
// src/mcp-server/tools/virtualMachineBackupsList.ts
|
|
80215
|
+
var tool$virtualMachineBackupsList;
|
|
80216
|
+
var init_virtualMachineBackupsList2 = __esm(() => {
|
|
80217
|
+
init_virtualMachineBackupsList();
|
|
80218
|
+
init_tools();
|
|
80219
|
+
tool$virtualMachineBackupsList = {
|
|
80220
|
+
name: "virtual-machine-backups-list",
|
|
80221
|
+
description: `List all VM backups
|
|
80222
|
+
|
|
80223
|
+
Lists every backup that belongs to the authenticated team.
|
|
80224
|
+
`,
|
|
80225
|
+
tool: async (client, ctx) => {
|
|
80226
|
+
const [result, apiCall] = await virtualMachineBackupsList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80227
|
+
if (!result.ok) {
|
|
80228
|
+
return {
|
|
80229
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80230
|
+
isError: true
|
|
80231
|
+
};
|
|
80232
|
+
}
|
|
80233
|
+
const value = result.value;
|
|
80234
|
+
return formatResult(value, apiCall);
|
|
80235
|
+
}
|
|
80236
|
+
};
|
|
80237
|
+
});
|
|
80238
|
+
|
|
80239
|
+
// src/funcs/virtualMachineBackupsListForVirtualMachine.ts
|
|
80240
|
+
function virtualMachineBackupsListForVirtualMachine(client, request, options) {
|
|
80241
|
+
return new APIPromise($do125(client, request, options));
|
|
80242
|
+
}
|
|
80243
|
+
async function $do125(client, request, options) {
|
|
80244
|
+
const parsed = safeParse4(request, (value) => ListVirtualMachineScopedBackupsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80245
|
+
if (!parsed.ok) {
|
|
80246
|
+
return [parsed, { status: "invalid" }];
|
|
80247
|
+
}
|
|
80248
|
+
const payload = parsed.value;
|
|
80249
|
+
const body = null;
|
|
80250
|
+
const pathParams = {
|
|
80251
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
80252
|
+
};
|
|
80253
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/backups")(pathParams);
|
|
80254
|
+
const headers = new Headers(compactMap({
|
|
80255
|
+
Accept: "application/vnd.api+json"
|
|
80256
|
+
}));
|
|
80257
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80258
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80259
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80260
|
+
const context = {
|
|
80261
|
+
options: client._options,
|
|
80262
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80263
|
+
operationID: "list-virtual-machine-scoped-backups",
|
|
80264
|
+
oAuth2Scopes: null,
|
|
80265
|
+
resolvedSecurity: requestSecurity,
|
|
80266
|
+
securitySource: client._options.bearer,
|
|
80267
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80268
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80269
|
+
};
|
|
80270
|
+
const requestRes = client._createRequest(context, {
|
|
80271
|
+
security: requestSecurity,
|
|
80272
|
+
method: "GET",
|
|
80273
|
+
baseURL: options?.serverURL,
|
|
80274
|
+
path,
|
|
80275
|
+
headers,
|
|
80276
|
+
body,
|
|
80277
|
+
userAgent: client._options.userAgent,
|
|
80278
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80279
|
+
}, options);
|
|
80280
|
+
if (!requestRes.ok) {
|
|
80281
|
+
return [requestRes, { status: "invalid" }];
|
|
80282
|
+
}
|
|
80283
|
+
const req = requestRes.value;
|
|
80284
|
+
const doResult = await client._do(req, {
|
|
80285
|
+
context,
|
|
80286
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80287
|
+
retryConfig: context.retryConfig,
|
|
80288
|
+
retryCodes: context.retryCodes
|
|
80289
|
+
});
|
|
80290
|
+
if (!doResult.ok) {
|
|
80291
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80292
|
+
}
|
|
80293
|
+
const response = doResult.value;
|
|
80294
|
+
const responseFields = {
|
|
80295
|
+
HttpMeta: { Response: response, Request: req }
|
|
80296
|
+
};
|
|
80297
|
+
const [result] = await match(json(200, VirtualMachineBackups$inboundSchema, {
|
|
80298
|
+
ctype: "application/vnd.api+json"
|
|
80299
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80300
|
+
ctype: "application/vnd.api+json"
|
|
80301
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80302
|
+
if (!result.ok) {
|
|
80303
|
+
return [result, { status: "complete", request: req, response }];
|
|
80304
|
+
}
|
|
80305
|
+
return [result, { status: "complete", request: req, response }];
|
|
80306
|
+
}
|
|
80307
|
+
var init_virtualMachineBackupsListForVirtualMachine = __esm(() => {
|
|
80308
|
+
init_encodings();
|
|
80309
|
+
init_http();
|
|
80310
|
+
init_matchers();
|
|
80311
|
+
init_primitives();
|
|
80312
|
+
init_schemas4();
|
|
80313
|
+
init_security();
|
|
80314
|
+
init_url();
|
|
80315
|
+
init_errors4();
|
|
80316
|
+
init_models();
|
|
80317
|
+
init_operations();
|
|
80318
|
+
init_async();
|
|
80319
|
+
});
|
|
80320
|
+
|
|
80321
|
+
// src/mcp-server/tools/virtualMachineBackupsListForVirtualMachine.ts
|
|
80322
|
+
var args116, tool$virtualMachineBackupsListForVirtualMachine;
|
|
80323
|
+
var init_virtualMachineBackupsListForVirtualMachine2 = __esm(() => {
|
|
80324
|
+
init_virtualMachineBackupsListForVirtualMachine();
|
|
80325
|
+
init_operations();
|
|
80326
|
+
init_tools();
|
|
80327
|
+
args116 = {
|
|
80328
|
+
request: ListVirtualMachineScopedBackupsRequest$inboundSchema
|
|
80329
|
+
};
|
|
80330
|
+
tool$virtualMachineBackupsListForVirtualMachine = {
|
|
80331
|
+
name: "virtual-machine-backups-list-for-virtual-machine",
|
|
80332
|
+
description: `List a VM's backups
|
|
80333
|
+
|
|
80334
|
+
Lists the backups of the given Virtual Machine.
|
|
80335
|
+
`,
|
|
80336
|
+
args: args116,
|
|
80337
|
+
tool: async (client, args117, ctx) => {
|
|
80338
|
+
const [result, apiCall] = await virtualMachineBackupsListForVirtualMachine(client, args117.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80339
|
+
if (!result.ok) {
|
|
80340
|
+
return {
|
|
80341
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80342
|
+
isError: true
|
|
80343
|
+
};
|
|
80344
|
+
}
|
|
80345
|
+
const value = result.value;
|
|
80346
|
+
return formatResult(value, apiCall);
|
|
80347
|
+
}
|
|
80348
|
+
};
|
|
80349
|
+
});
|
|
80350
|
+
|
|
80351
|
+
// src/funcs/virtualMachineRestoresCreate.ts
|
|
80352
|
+
function virtualMachineRestoresCreate(client, request, options) {
|
|
80353
|
+
return new APIPromise($do126(client, request, options));
|
|
80354
|
+
}
|
|
80355
|
+
async function $do126(client, request, options) {
|
|
80356
|
+
const parsed = safeParse4(request, (value) => VirtualMachineRestorePayload$outboundSchema.parse(value), "Input validation failed");
|
|
80357
|
+
if (!parsed.ok) {
|
|
80358
|
+
return [parsed, { status: "invalid" }];
|
|
80359
|
+
}
|
|
80360
|
+
const payload = parsed.value;
|
|
80361
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
80362
|
+
const path = pathToFunc("/virtual_machine_restores")();
|
|
80363
|
+
const headers = new Headers(compactMap({
|
|
80364
|
+
"Content-Type": "application/json",
|
|
80365
|
+
Accept: "application/vnd.api+json"
|
|
80366
|
+
}));
|
|
80367
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80368
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80369
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80370
|
+
const context = {
|
|
80371
|
+
options: client._options,
|
|
80372
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80373
|
+
operationID: "create-virtual-machine-restore-flat",
|
|
80374
|
+
oAuth2Scopes: null,
|
|
80375
|
+
resolvedSecurity: requestSecurity,
|
|
80376
|
+
securitySource: client._options.bearer,
|
|
80377
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80378
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80379
|
+
};
|
|
80380
|
+
const requestRes = client._createRequest(context, {
|
|
80381
|
+
security: requestSecurity,
|
|
80382
|
+
method: "POST",
|
|
80383
|
+
baseURL: options?.serverURL,
|
|
80384
|
+
path,
|
|
80385
|
+
headers,
|
|
80386
|
+
body,
|
|
80387
|
+
userAgent: client._options.userAgent,
|
|
80388
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80389
|
+
}, options);
|
|
80390
|
+
if (!requestRes.ok) {
|
|
80391
|
+
return [requestRes, { status: "invalid" }];
|
|
80392
|
+
}
|
|
80393
|
+
const req = requestRes.value;
|
|
80394
|
+
const doResult = await client._do(req, {
|
|
80395
|
+
context,
|
|
80396
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80397
|
+
retryConfig: context.retryConfig,
|
|
80398
|
+
retryCodes: context.retryCodes
|
|
80399
|
+
});
|
|
80400
|
+
if (!doResult.ok) {
|
|
80401
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80402
|
+
}
|
|
80403
|
+
const response = doResult.value;
|
|
80404
|
+
const responseFields = {
|
|
80405
|
+
HttpMeta: { Response: response, Request: req }
|
|
80406
|
+
};
|
|
80407
|
+
const [result] = await match(json(201, VirtualMachineRestore$inboundSchema, {
|
|
80408
|
+
ctype: "application/vnd.api+json"
|
|
80409
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80410
|
+
ctype: "application/vnd.api+json"
|
|
80411
|
+
}), fail([404, 409, 422, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80412
|
+
if (!result.ok) {
|
|
80413
|
+
return [result, { status: "complete", request: req, response }];
|
|
80414
|
+
}
|
|
80415
|
+
return [result, { status: "complete", request: req, response }];
|
|
80416
|
+
}
|
|
80417
|
+
var init_virtualMachineRestoresCreate = __esm(() => {
|
|
80418
|
+
init_encodings();
|
|
80419
|
+
init_http();
|
|
80420
|
+
init_matchers();
|
|
80421
|
+
init_primitives();
|
|
80422
|
+
init_schemas4();
|
|
80423
|
+
init_security();
|
|
80424
|
+
init_url();
|
|
80425
|
+
init_errors4();
|
|
80426
|
+
init_models();
|
|
80427
|
+
init_async();
|
|
80428
|
+
});
|
|
80429
|
+
|
|
80430
|
+
// src/mcp-server/tools/virtualMachineRestoresCreate.ts
|
|
80431
|
+
var args117, tool$virtualMachineRestoresCreate;
|
|
80432
|
+
var init_virtualMachineRestoresCreate2 = __esm(() => {
|
|
80433
|
+
init_virtualMachineRestoresCreate();
|
|
80434
|
+
init_models();
|
|
80435
|
+
init_tools();
|
|
80436
|
+
args117 = {
|
|
80437
|
+
request: VirtualMachineRestorePayload$inboundSchema
|
|
80438
|
+
};
|
|
80439
|
+
tool$virtualMachineRestoresCreate = {
|
|
80440
|
+
name: "virtual-machine-restores-create",
|
|
80441
|
+
description: `Create VM restore (flat)
|
|
80442
|
+
|
|
80443
|
+
Restores the backup referenced in the body into a new Virtual Machine. Optionally accepts a \`name\` for the restored VM and a target \`site\` slug to restore into another region.
|
|
80444
|
+
`,
|
|
80445
|
+
args: args117,
|
|
80446
|
+
tool: async (client, args118, ctx) => {
|
|
80447
|
+
const [result, apiCall] = await virtualMachineRestoresCreate(client, args118.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80448
|
+
if (!result.ok) {
|
|
80449
|
+
return {
|
|
80450
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80451
|
+
isError: true
|
|
80452
|
+
};
|
|
80453
|
+
}
|
|
80454
|
+
const value = result.value;
|
|
80455
|
+
return formatResult(value, apiCall);
|
|
80456
|
+
}
|
|
80457
|
+
};
|
|
80458
|
+
});
|
|
80459
|
+
|
|
80460
|
+
// src/funcs/virtualMachineRestoresCreateForVirtualMachineBackup.ts
|
|
80461
|
+
function virtualMachineRestoresCreateForVirtualMachineBackup(client, request, options) {
|
|
80462
|
+
return new APIPromise($do127(client, request, options));
|
|
80463
|
+
}
|
|
80464
|
+
async function $do127(client, request, options) {
|
|
80465
|
+
const parsed = safeParse4(request, (value) => CreateVirtualMachineRestoreRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80466
|
+
if (!parsed.ok) {
|
|
80467
|
+
return [parsed, { status: "invalid" }];
|
|
80468
|
+
}
|
|
80469
|
+
const payload = parsed.value;
|
|
80470
|
+
const body = encodeJSON("body", payload.virtual_machine_restore_payload, {
|
|
80471
|
+
explode: true
|
|
80472
|
+
});
|
|
80473
|
+
const pathParams = {
|
|
80474
|
+
backup_id: encodeSimple("backup_id", payload.backup_id, {
|
|
80475
|
+
explode: false,
|
|
80476
|
+
charEncoding: "percent"
|
|
80477
|
+
}),
|
|
80478
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
80479
|
+
};
|
|
80480
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/backups/{backup_id}/restores")(pathParams);
|
|
80481
|
+
const headers = new Headers(compactMap({
|
|
80482
|
+
"Content-Type": "application/json",
|
|
80483
|
+
Accept: "application/vnd.api+json"
|
|
80484
|
+
}));
|
|
80485
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80486
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80487
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80488
|
+
const context = {
|
|
80489
|
+
options: client._options,
|
|
80490
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80491
|
+
operationID: "create-virtual-machine-restore",
|
|
80492
|
+
oAuth2Scopes: null,
|
|
80493
|
+
resolvedSecurity: requestSecurity,
|
|
80494
|
+
securitySource: client._options.bearer,
|
|
80495
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80496
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80497
|
+
};
|
|
80498
|
+
const requestRes = client._createRequest(context, {
|
|
80499
|
+
security: requestSecurity,
|
|
80500
|
+
method: "POST",
|
|
80501
|
+
baseURL: options?.serverURL,
|
|
80502
|
+
path,
|
|
80503
|
+
headers,
|
|
80504
|
+
body,
|
|
80505
|
+
userAgent: client._options.userAgent,
|
|
80506
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80507
|
+
}, options);
|
|
80508
|
+
if (!requestRes.ok) {
|
|
80509
|
+
return [requestRes, { status: "invalid" }];
|
|
80510
|
+
}
|
|
80511
|
+
const req = requestRes.value;
|
|
80512
|
+
const doResult = await client._do(req, {
|
|
80513
|
+
context,
|
|
80514
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80515
|
+
retryConfig: context.retryConfig,
|
|
80516
|
+
retryCodes: context.retryCodes
|
|
80517
|
+
});
|
|
80518
|
+
if (!doResult.ok) {
|
|
80519
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80520
|
+
}
|
|
80521
|
+
const response = doResult.value;
|
|
80522
|
+
const responseFields = {
|
|
80523
|
+
HttpMeta: { Response: response, Request: req }
|
|
80524
|
+
};
|
|
80525
|
+
const [result] = await match(json(201, VirtualMachineRestore$inboundSchema, {
|
|
80526
|
+
ctype: "application/vnd.api+json"
|
|
80527
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80528
|
+
ctype: "application/vnd.api+json"
|
|
80529
|
+
}), fail([404, 409, 422, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80530
|
+
if (!result.ok) {
|
|
80531
|
+
return [result, { status: "complete", request: req, response }];
|
|
80532
|
+
}
|
|
80533
|
+
return [result, { status: "complete", request: req, response }];
|
|
80534
|
+
}
|
|
80535
|
+
var init_virtualMachineRestoresCreateForVirtualMachineBackup = __esm(() => {
|
|
80536
|
+
init_encodings();
|
|
80537
|
+
init_http();
|
|
80538
|
+
init_matchers();
|
|
80539
|
+
init_primitives();
|
|
80540
|
+
init_schemas4();
|
|
80541
|
+
init_security();
|
|
80542
|
+
init_url();
|
|
80543
|
+
init_errors4();
|
|
80544
|
+
init_models();
|
|
80545
|
+
init_operations();
|
|
80546
|
+
init_async();
|
|
80547
|
+
});
|
|
80548
|
+
|
|
80549
|
+
// src/mcp-server/tools/virtualMachineRestoresCreateForVirtualMachineBackup.ts
|
|
80550
|
+
var args118, tool$virtualMachineRestoresCreateForVirtualMachineBackup;
|
|
80551
|
+
var init_virtualMachineRestoresCreateForVirtualMachineBackup2 = __esm(() => {
|
|
80552
|
+
init_virtualMachineRestoresCreateForVirtualMachineBackup();
|
|
80553
|
+
init_operations();
|
|
80554
|
+
init_tools();
|
|
80555
|
+
args118 = {
|
|
80556
|
+
request: CreateVirtualMachineRestoreRequest$inboundSchema
|
|
80557
|
+
};
|
|
80558
|
+
tool$virtualMachineRestoresCreateForVirtualMachineBackup = {
|
|
80559
|
+
name: "virtual-machine-restores-create-for-virtual-machine-backup",
|
|
80560
|
+
description: `Create VM restore
|
|
80561
|
+
|
|
80562
|
+
Restores a backup into a new Virtual Machine. Optionally accepts a \`name\` for the restored VM and a target \`site\` slug to restore into another region.
|
|
80563
|
+
`,
|
|
80564
|
+
args: args118,
|
|
80565
|
+
tool: async (client, args119, ctx) => {
|
|
80566
|
+
const [result, apiCall] = await virtualMachineRestoresCreateForVirtualMachineBackup(client, args119.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80567
|
+
if (!result.ok) {
|
|
80568
|
+
return {
|
|
80569
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80570
|
+
isError: true
|
|
80571
|
+
};
|
|
80572
|
+
}
|
|
80573
|
+
const value = result.value;
|
|
80574
|
+
return formatResult(value, apiCall);
|
|
80575
|
+
}
|
|
80576
|
+
};
|
|
80577
|
+
});
|
|
80578
|
+
|
|
80579
|
+
// src/funcs/virtualMachineRestoresGet.ts
|
|
80580
|
+
function virtualMachineRestoresGet(client, request, options) {
|
|
80581
|
+
return new APIPromise($do128(client, request, options));
|
|
80582
|
+
}
|
|
80583
|
+
async function $do128(client, request, options) {
|
|
80584
|
+
const parsed = safeParse4(request, (value) => GetVirtualMachineRestoreRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80585
|
+
if (!parsed.ok) {
|
|
80586
|
+
return [parsed, { status: "invalid" }];
|
|
80587
|
+
}
|
|
80588
|
+
const payload = parsed.value;
|
|
80589
|
+
const body = null;
|
|
80590
|
+
const pathParams = {
|
|
80591
|
+
id: encodeSimple("id", payload.id, {
|
|
80592
|
+
explode: false,
|
|
80593
|
+
charEncoding: "percent"
|
|
80594
|
+
})
|
|
80595
|
+
};
|
|
80596
|
+
const path = pathToFunc("/virtual_machine_restores/{id}")(pathParams);
|
|
80597
|
+
const headers = new Headers(compactMap({
|
|
80598
|
+
Accept: "application/vnd.api+json"
|
|
80599
|
+
}));
|
|
80600
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80601
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80602
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80603
|
+
const context = {
|
|
80604
|
+
options: client._options,
|
|
80605
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80606
|
+
operationID: "get-virtual-machine-restore",
|
|
80607
|
+
oAuth2Scopes: null,
|
|
80608
|
+
resolvedSecurity: requestSecurity,
|
|
80609
|
+
securitySource: client._options.bearer,
|
|
80610
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80611
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80612
|
+
};
|
|
80613
|
+
const requestRes = client._createRequest(context, {
|
|
80614
|
+
security: requestSecurity,
|
|
80615
|
+
method: "GET",
|
|
80616
|
+
baseURL: options?.serverURL,
|
|
80617
|
+
path,
|
|
80618
|
+
headers,
|
|
80619
|
+
body,
|
|
80620
|
+
userAgent: client._options.userAgent,
|
|
80621
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80622
|
+
}, options);
|
|
80623
|
+
if (!requestRes.ok) {
|
|
80624
|
+
return [requestRes, { status: "invalid" }];
|
|
80625
|
+
}
|
|
80626
|
+
const req = requestRes.value;
|
|
80627
|
+
const doResult = await client._do(req, {
|
|
80628
|
+
context,
|
|
80629
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80630
|
+
retryConfig: context.retryConfig,
|
|
80631
|
+
retryCodes: context.retryCodes
|
|
80632
|
+
});
|
|
80633
|
+
if (!doResult.ok) {
|
|
80634
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80635
|
+
}
|
|
80636
|
+
const response = doResult.value;
|
|
80637
|
+
const responseFields = {
|
|
80638
|
+
HttpMeta: { Response: response, Request: req }
|
|
80639
|
+
};
|
|
80640
|
+
const [result] = await match(json(200, VirtualMachineRestore$inboundSchema, {
|
|
80641
|
+
ctype: "application/vnd.api+json"
|
|
80642
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80643
|
+
ctype: "application/vnd.api+json"
|
|
80644
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80645
|
+
if (!result.ok) {
|
|
80646
|
+
return [result, { status: "complete", request: req, response }];
|
|
80647
|
+
}
|
|
80648
|
+
return [result, { status: "complete", request: req, response }];
|
|
80649
|
+
}
|
|
80650
|
+
var init_virtualMachineRestoresGet = __esm(() => {
|
|
80651
|
+
init_encodings();
|
|
80652
|
+
init_http();
|
|
80653
|
+
init_matchers();
|
|
80654
|
+
init_primitives();
|
|
80655
|
+
init_schemas4();
|
|
80656
|
+
init_security();
|
|
80657
|
+
init_url();
|
|
80658
|
+
init_errors4();
|
|
80659
|
+
init_models();
|
|
80660
|
+
init_operations();
|
|
80661
|
+
init_async();
|
|
80662
|
+
});
|
|
80663
|
+
|
|
80664
|
+
// src/mcp-server/tools/virtualMachineRestoresGet.ts
|
|
80665
|
+
var args119, tool$virtualMachineRestoresGet;
|
|
80666
|
+
var init_virtualMachineRestoresGet2 = __esm(() => {
|
|
80667
|
+
init_virtualMachineRestoresGet();
|
|
80668
|
+
init_operations();
|
|
80669
|
+
init_tools();
|
|
80670
|
+
args119 = {
|
|
80671
|
+
request: GetVirtualMachineRestoreRequest$inboundSchema
|
|
80672
|
+
};
|
|
80673
|
+
tool$virtualMachineRestoresGet = {
|
|
80674
|
+
name: "virtual-machine-restores-get",
|
|
80675
|
+
description: `Get VM restore`,
|
|
80676
|
+
args: args119,
|
|
80677
|
+
tool: async (client, args120, ctx) => {
|
|
80678
|
+
const [result, apiCall] = await virtualMachineRestoresGet(client, args120.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80679
|
+
if (!result.ok) {
|
|
80680
|
+
return {
|
|
80681
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80682
|
+
isError: true
|
|
80683
|
+
};
|
|
80684
|
+
}
|
|
80685
|
+
const value = result.value;
|
|
80686
|
+
return formatResult(value, apiCall);
|
|
80687
|
+
}
|
|
80688
|
+
};
|
|
80689
|
+
});
|
|
80690
|
+
|
|
80691
|
+
// src/funcs/virtualMachineRestoresList.ts
|
|
80692
|
+
function virtualMachineRestoresList(client, options) {
|
|
80693
|
+
return new APIPromise($do129(client, options));
|
|
80694
|
+
}
|
|
80695
|
+
async function $do129(client, options) {
|
|
80696
|
+
const path = pathToFunc("/virtual_machine_restores")();
|
|
80697
|
+
const headers = new Headers(compactMap({
|
|
80698
|
+
Accept: "application/vnd.api+json"
|
|
80699
|
+
}));
|
|
80700
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80701
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80702
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80703
|
+
const context = {
|
|
80704
|
+
options: client._options,
|
|
80705
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80706
|
+
operationID: "list-virtual-machine-restores",
|
|
80707
|
+
oAuth2Scopes: null,
|
|
80708
|
+
resolvedSecurity: requestSecurity,
|
|
80709
|
+
securitySource: client._options.bearer,
|
|
80710
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80711
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80712
|
+
};
|
|
80713
|
+
const requestRes = client._createRequest(context, {
|
|
80714
|
+
security: requestSecurity,
|
|
80715
|
+
method: "GET",
|
|
80716
|
+
baseURL: options?.serverURL,
|
|
80717
|
+
path,
|
|
80718
|
+
headers,
|
|
80719
|
+
userAgent: client._options.userAgent,
|
|
80720
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80721
|
+
}, options);
|
|
80722
|
+
if (!requestRes.ok) {
|
|
80723
|
+
return [requestRes, { status: "invalid" }];
|
|
80724
|
+
}
|
|
80725
|
+
const req = requestRes.value;
|
|
80726
|
+
const doResult = await client._do(req, {
|
|
80727
|
+
context,
|
|
80728
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80729
|
+
retryConfig: context.retryConfig,
|
|
80730
|
+
retryCodes: context.retryCodes
|
|
80731
|
+
});
|
|
80732
|
+
if (!doResult.ok) {
|
|
80733
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80734
|
+
}
|
|
80735
|
+
const response = doResult.value;
|
|
80736
|
+
const responseFields = {
|
|
80737
|
+
HttpMeta: { Response: response, Request: req }
|
|
80738
|
+
};
|
|
80739
|
+
const [result] = await match(json(200, VirtualMachineRestores$inboundSchema, {
|
|
80740
|
+
ctype: "application/vnd.api+json"
|
|
80741
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80742
|
+
ctype: "application/vnd.api+json"
|
|
80743
|
+
}), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80744
|
+
if (!result.ok) {
|
|
80745
|
+
return [result, { status: "complete", request: req, response }];
|
|
80746
|
+
}
|
|
80747
|
+
return [result, { status: "complete", request: req, response }];
|
|
80748
|
+
}
|
|
80749
|
+
var init_virtualMachineRestoresList = __esm(() => {
|
|
80750
|
+
init_http();
|
|
80751
|
+
init_matchers();
|
|
80752
|
+
init_primitives();
|
|
80753
|
+
init_security();
|
|
80754
|
+
init_url();
|
|
80755
|
+
init_errors4();
|
|
80756
|
+
init_models();
|
|
80757
|
+
init_async();
|
|
80758
|
+
});
|
|
80759
|
+
|
|
80760
|
+
// src/mcp-server/tools/virtualMachineRestoresList.ts
|
|
80761
|
+
var tool$virtualMachineRestoresList;
|
|
80762
|
+
var init_virtualMachineRestoresList2 = __esm(() => {
|
|
80763
|
+
init_virtualMachineRestoresList();
|
|
80764
|
+
init_tools();
|
|
80765
|
+
tool$virtualMachineRestoresList = {
|
|
80766
|
+
name: "virtual-machine-restores-list",
|
|
80767
|
+
description: `List all VM restores
|
|
80768
|
+
|
|
80769
|
+
Lists every restore that belongs to the authenticated team.
|
|
80770
|
+
`,
|
|
80771
|
+
tool: async (client, ctx) => {
|
|
80772
|
+
const [result, apiCall] = await virtualMachineRestoresList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80773
|
+
if (!result.ok) {
|
|
80774
|
+
return {
|
|
80775
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80776
|
+
isError: true
|
|
80777
|
+
};
|
|
80778
|
+
}
|
|
80779
|
+
const value = result.value;
|
|
80780
|
+
return formatResult(value, apiCall);
|
|
80781
|
+
}
|
|
80782
|
+
};
|
|
80783
|
+
});
|
|
80784
|
+
|
|
80785
|
+
// src/funcs/virtualMachineRestoresListForBackup.ts
|
|
80786
|
+
function virtualMachineRestoresListForBackup(client, request, options) {
|
|
80787
|
+
return new APIPromise($do130(client, request, options));
|
|
80788
|
+
}
|
|
80789
|
+
async function $do130(client, request, options) {
|
|
80790
|
+
const parsed = safeParse4(request, (value) => ListBackupRestoresRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80791
|
+
if (!parsed.ok) {
|
|
80792
|
+
return [parsed, { status: "invalid" }];
|
|
80793
|
+
}
|
|
80794
|
+
const payload = parsed.value;
|
|
80795
|
+
const body = null;
|
|
80796
|
+
const pathParams = {
|
|
80797
|
+
backup_id: encodeSimple("backup_id", payload.backup_id, {
|
|
80798
|
+
explode: false,
|
|
80799
|
+
charEncoding: "percent"
|
|
80800
|
+
})
|
|
80801
|
+
};
|
|
80802
|
+
const path = pathToFunc("/virtual_machine_backups/{backup_id}/restores")(pathParams);
|
|
80803
|
+
const headers = new Headers(compactMap({
|
|
80804
|
+
Accept: "application/vnd.api+json"
|
|
80805
|
+
}));
|
|
80806
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80807
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80808
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80809
|
+
const context = {
|
|
80810
|
+
options: client._options,
|
|
80811
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80812
|
+
operationID: "list-backup-restores",
|
|
80813
|
+
oAuth2Scopes: null,
|
|
80814
|
+
resolvedSecurity: requestSecurity,
|
|
80815
|
+
securitySource: client._options.bearer,
|
|
80816
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80817
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80818
|
+
};
|
|
80819
|
+
const requestRes = client._createRequest(context, {
|
|
80820
|
+
security: requestSecurity,
|
|
80821
|
+
method: "GET",
|
|
80822
|
+
baseURL: options?.serverURL,
|
|
80823
|
+
path,
|
|
80824
|
+
headers,
|
|
80825
|
+
body,
|
|
80826
|
+
userAgent: client._options.userAgent,
|
|
80827
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80828
|
+
}, options);
|
|
80829
|
+
if (!requestRes.ok) {
|
|
80830
|
+
return [requestRes, { status: "invalid" }];
|
|
80831
|
+
}
|
|
80832
|
+
const req = requestRes.value;
|
|
80833
|
+
const doResult = await client._do(req, {
|
|
80834
|
+
context,
|
|
80835
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80836
|
+
retryConfig: context.retryConfig,
|
|
80837
|
+
retryCodes: context.retryCodes
|
|
80838
|
+
});
|
|
80839
|
+
if (!doResult.ok) {
|
|
80840
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80841
|
+
}
|
|
80842
|
+
const response = doResult.value;
|
|
80843
|
+
const responseFields = {
|
|
80844
|
+
HttpMeta: { Response: response, Request: req }
|
|
80845
|
+
};
|
|
80846
|
+
const [result] = await match(json(200, VirtualMachineRestores$inboundSchema, {
|
|
80847
|
+
ctype: "application/vnd.api+json"
|
|
80848
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80849
|
+
ctype: "application/vnd.api+json"
|
|
80850
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80851
|
+
if (!result.ok) {
|
|
80852
|
+
return [result, { status: "complete", request: req, response }];
|
|
80853
|
+
}
|
|
80854
|
+
return [result, { status: "complete", request: req, response }];
|
|
80855
|
+
}
|
|
80856
|
+
var init_virtualMachineRestoresListForBackup = __esm(() => {
|
|
80857
|
+
init_encodings();
|
|
80858
|
+
init_http();
|
|
80859
|
+
init_matchers();
|
|
80860
|
+
init_primitives();
|
|
80861
|
+
init_schemas4();
|
|
80862
|
+
init_security();
|
|
80863
|
+
init_url();
|
|
80864
|
+
init_errors4();
|
|
80865
|
+
init_models();
|
|
80866
|
+
init_operations();
|
|
80867
|
+
init_async();
|
|
80868
|
+
});
|
|
80869
|
+
|
|
80870
|
+
// src/mcp-server/tools/virtualMachineRestoresListForBackup.ts
|
|
80871
|
+
var args120, tool$virtualMachineRestoresListForBackup;
|
|
80872
|
+
var init_virtualMachineRestoresListForBackup2 = __esm(() => {
|
|
80873
|
+
init_virtualMachineRestoresListForBackup();
|
|
80874
|
+
init_operations();
|
|
80875
|
+
init_tools();
|
|
80876
|
+
args120 = {
|
|
80877
|
+
request: ListBackupRestoresRequest$inboundSchema
|
|
80878
|
+
};
|
|
80879
|
+
tool$virtualMachineRestoresListForBackup = {
|
|
80880
|
+
name: "virtual-machine-restores-list-for-backup",
|
|
80881
|
+
description: `List a backup's restores (top-level backup path)
|
|
80882
|
+
|
|
80883
|
+
Lists the restores created from the given backup, reached via the top-level backup path.
|
|
80884
|
+
`,
|
|
80885
|
+
args: args120,
|
|
80886
|
+
tool: async (client, args121, ctx) => {
|
|
80887
|
+
const [result, apiCall] = await virtualMachineRestoresListForBackup(client, args121.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80888
|
+
if (!result.ok) {
|
|
80889
|
+
return {
|
|
80890
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80891
|
+
isError: true
|
|
80892
|
+
};
|
|
80893
|
+
}
|
|
80894
|
+
const value = result.value;
|
|
80895
|
+
return formatResult(value, apiCall);
|
|
80896
|
+
}
|
|
80897
|
+
};
|
|
80898
|
+
});
|
|
80899
|
+
|
|
80900
|
+
// src/funcs/virtualMachineRestoresListForVirtualMachineBackup.ts
|
|
80901
|
+
function virtualMachineRestoresListForVirtualMachineBackup(client, request, options) {
|
|
80902
|
+
return new APIPromise($do131(client, request, options));
|
|
80903
|
+
}
|
|
80904
|
+
async function $do131(client, request, options) {
|
|
80905
|
+
const parsed = safeParse4(request, (value) => ListVirtualMachineScopedRestoresRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80906
|
+
if (!parsed.ok) {
|
|
80907
|
+
return [parsed, { status: "invalid" }];
|
|
80908
|
+
}
|
|
80909
|
+
const payload = parsed.value;
|
|
80910
|
+
const body = null;
|
|
80911
|
+
const pathParams = {
|
|
80912
|
+
backup_id: encodeSimple("backup_id", payload.backup_id, {
|
|
80913
|
+
explode: false,
|
|
80914
|
+
charEncoding: "percent"
|
|
80915
|
+
}),
|
|
80916
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
80917
|
+
};
|
|
80918
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/backups/{backup_id}/restores")(pathParams);
|
|
80919
|
+
const headers = new Headers(compactMap({
|
|
80920
|
+
Accept: "application/vnd.api+json"
|
|
80921
|
+
}));
|
|
80922
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80923
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80924
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80925
|
+
const context = {
|
|
80926
|
+
options: client._options,
|
|
80927
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80928
|
+
operationID: "list-virtual-machine-scoped-restores",
|
|
80929
|
+
oAuth2Scopes: null,
|
|
80930
|
+
resolvedSecurity: requestSecurity,
|
|
80931
|
+
securitySource: client._options.bearer,
|
|
80932
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80933
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80934
|
+
};
|
|
80935
|
+
const requestRes = client._createRequest(context, {
|
|
80936
|
+
security: requestSecurity,
|
|
80937
|
+
method: "GET",
|
|
80938
|
+
baseURL: options?.serverURL,
|
|
80939
|
+
path,
|
|
80940
|
+
headers,
|
|
80941
|
+
body,
|
|
80942
|
+
userAgent: client._options.userAgent,
|
|
80943
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80944
|
+
}, options);
|
|
80945
|
+
if (!requestRes.ok) {
|
|
80946
|
+
return [requestRes, { status: "invalid" }];
|
|
80947
|
+
}
|
|
80948
|
+
const req = requestRes.value;
|
|
80949
|
+
const doResult = await client._do(req, {
|
|
80950
|
+
context,
|
|
80951
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80952
|
+
retryConfig: context.retryConfig,
|
|
80953
|
+
retryCodes: context.retryCodes
|
|
80954
|
+
});
|
|
80955
|
+
if (!doResult.ok) {
|
|
80956
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80957
|
+
}
|
|
80958
|
+
const response = doResult.value;
|
|
80959
|
+
const responseFields = {
|
|
80960
|
+
HttpMeta: { Response: response, Request: req }
|
|
80961
|
+
};
|
|
80962
|
+
const [result] = await match(json(200, VirtualMachineRestores$inboundSchema, {
|
|
80963
|
+
ctype: "application/vnd.api+json"
|
|
80964
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80965
|
+
ctype: "application/vnd.api+json"
|
|
80966
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80967
|
+
if (!result.ok) {
|
|
80968
|
+
return [result, { status: "complete", request: req, response }];
|
|
80969
|
+
}
|
|
80970
|
+
return [result, { status: "complete", request: req, response }];
|
|
80971
|
+
}
|
|
80972
|
+
var init_virtualMachineRestoresListForVirtualMachineBackup = __esm(() => {
|
|
80973
|
+
init_encodings();
|
|
80974
|
+
init_http();
|
|
80975
|
+
init_matchers();
|
|
80976
|
+
init_primitives();
|
|
80977
|
+
init_schemas4();
|
|
80978
|
+
init_security();
|
|
80979
|
+
init_url();
|
|
80980
|
+
init_errors4();
|
|
80981
|
+
init_models();
|
|
80982
|
+
init_operations();
|
|
80983
|
+
init_async();
|
|
80984
|
+
});
|
|
80985
|
+
|
|
80986
|
+
// src/mcp-server/tools/virtualMachineRestoresListForVirtualMachineBackup.ts
|
|
80987
|
+
var args121, tool$virtualMachineRestoresListForVirtualMachineBackup;
|
|
80988
|
+
var init_virtualMachineRestoresListForVirtualMachineBackup2 = __esm(() => {
|
|
80989
|
+
init_virtualMachineRestoresListForVirtualMachineBackup();
|
|
80990
|
+
init_operations();
|
|
80991
|
+
init_tools();
|
|
80992
|
+
args121 = {
|
|
80993
|
+
request: ListVirtualMachineScopedRestoresRequest$inboundSchema
|
|
80994
|
+
};
|
|
80995
|
+
tool$virtualMachineRestoresListForVirtualMachineBackup = {
|
|
80996
|
+
name: "virtual-machine-restores-list-for-virtual-machine-backup",
|
|
80997
|
+
description: `List a backup's restores
|
|
80998
|
+
|
|
80999
|
+
Lists the restores created from the given backup.
|
|
81000
|
+
`,
|
|
81001
|
+
args: args121,
|
|
81002
|
+
tool: async (client, args122, ctx) => {
|
|
81003
|
+
const [result, apiCall] = await virtualMachineRestoresListForVirtualMachineBackup(client, args122.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
81004
|
+
if (!result.ok) {
|
|
81005
|
+
return {
|
|
81006
|
+
content: [{ type: "text", text: result.error.message }],
|
|
81007
|
+
isError: true
|
|
81008
|
+
};
|
|
81009
|
+
}
|
|
81010
|
+
const value = result.value;
|
|
81011
|
+
return formatResult(value, apiCall);
|
|
81012
|
+
}
|
|
81013
|
+
};
|
|
81014
|
+
});
|
|
81015
|
+
|
|
81016
|
+
// src/funcs/virtualMachinesCreate.ts
|
|
81017
|
+
function virtualMachinesCreate(client, request, options) {
|
|
81018
|
+
return new APIPromise($do132(client, request, options));
|
|
81019
|
+
}
|
|
81020
|
+
async function $do132(client, request, options) {
|
|
81021
|
+
const parsed = safeParse4(request, (value) => VirtualMachinePayload$outboundSchema.parse(value), "Input validation failed");
|
|
81022
|
+
if (!parsed.ok) {
|
|
81023
|
+
return [parsed, { status: "invalid" }];
|
|
81024
|
+
}
|
|
81025
|
+
const payload = parsed.value;
|
|
81026
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
81027
|
+
const path = pathToFunc("/virtual_machines")();
|
|
81028
|
+
const headers = new Headers(compactMap({
|
|
81029
|
+
"Content-Type": "application/json",
|
|
81030
|
+
Accept: "application/vnd.api+json"
|
|
81031
|
+
}));
|
|
81032
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
81033
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
81034
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
81035
|
+
const context = {
|
|
81036
|
+
options: client._options,
|
|
81037
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
81038
|
+
operationID: "create-virtual-machine",
|
|
81039
|
+
oAuth2Scopes: null,
|
|
81040
|
+
resolvedSecurity: requestSecurity,
|
|
81041
|
+
securitySource: client._options.bearer,
|
|
81042
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
81043
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
81044
|
+
};
|
|
81045
|
+
const requestRes = client._createRequest(context, {
|
|
81046
|
+
security: requestSecurity,
|
|
81047
|
+
method: "POST",
|
|
81048
|
+
baseURL: options?.serverURL,
|
|
81049
|
+
path,
|
|
81050
|
+
headers,
|
|
81051
|
+
body,
|
|
81052
|
+
userAgent: client._options.userAgent,
|
|
81053
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
81054
|
+
}, options);
|
|
81055
|
+
if (!requestRes.ok) {
|
|
81056
|
+
return [requestRes, { status: "invalid" }];
|
|
81057
|
+
}
|
|
81058
|
+
const req = requestRes.value;
|
|
81059
|
+
const doResult = await client._do(req, {
|
|
81060
|
+
context,
|
|
81061
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
81062
|
+
retryConfig: context.retryConfig,
|
|
81063
|
+
retryCodes: context.retryCodes
|
|
81064
|
+
});
|
|
81065
|
+
if (!doResult.ok) {
|
|
81066
|
+
return [doResult, { status: "request-error", request: req }];
|
|
81067
|
+
}
|
|
81068
|
+
const response = doResult.value;
|
|
81069
|
+
const [result] = await match(json(201, VirtualMachine$inboundSchema, {
|
|
81070
|
+
ctype: "application/vnd.api+json"
|
|
81071
|
+
}), fail("4XX"), fail("5XX"))(response, req);
|
|
81072
|
+
if (!result.ok) {
|
|
81073
|
+
return [result, { status: "complete", request: req, response }];
|
|
81074
|
+
}
|
|
81075
|
+
return [result, { status: "complete", request: req, response }];
|
|
81076
|
+
}
|
|
81077
|
+
var init_virtualMachinesCreate = __esm(() => {
|
|
81078
|
+
init_encodings();
|
|
81079
|
+
init_http();
|
|
81080
|
+
init_matchers();
|
|
81081
|
+
init_primitives();
|
|
81082
|
+
init_schemas4();
|
|
81083
|
+
init_security();
|
|
81084
|
+
init_url();
|
|
81085
|
+
init_models();
|
|
81086
|
+
init_async();
|
|
81087
|
+
});
|
|
81088
|
+
|
|
81089
|
+
// src/mcp-server/tools/virtualMachinesCreate.ts
|
|
81090
|
+
var args122, tool$virtualMachinesCreate;
|
|
81091
|
+
var init_virtualMachinesCreate2 = __esm(() => {
|
|
81092
|
+
init_virtualMachinesCreate();
|
|
81093
|
+
init_models();
|
|
81094
|
+
init_tools();
|
|
81095
|
+
args122 = {
|
|
81096
|
+
request: VirtualMachinePayload$inboundSchema
|
|
81097
|
+
};
|
|
81098
|
+
tool$virtualMachinesCreate = {
|
|
81099
|
+
name: "virtual-machines-create",
|
|
81100
|
+
description: `Create VM
|
|
81101
|
+
|
|
81102
|
+
Creates a new Virtual Machine.
|
|
81103
|
+
`,
|
|
81104
|
+
args: args122,
|
|
81105
|
+
tool: async (client, args123, ctx) => {
|
|
81106
|
+
const [result, apiCall] = await virtualMachinesCreate(client, args123.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
81107
|
+
if (!result.ok) {
|
|
81108
|
+
return {
|
|
81109
|
+
content: [{ type: "text", text: result.error.message }],
|
|
81110
|
+
isError: true
|
|
81111
|
+
};
|
|
81112
|
+
}
|
|
81113
|
+
const value = result.value;
|
|
81114
|
+
return formatResult(value, apiCall);
|
|
81115
|
+
}
|
|
81116
|
+
};
|
|
81117
|
+
});
|
|
81118
|
+
|
|
81119
|
+
// src/funcs/virtualMachinesCreateVirtualMachineAction.ts
|
|
81120
|
+
function virtualMachinesCreateVirtualMachineAction(client, request, options) {
|
|
81121
|
+
return new APIPromise($do133(client, request, options));
|
|
81122
|
+
}
|
|
81123
|
+
async function $do133(client, request, options) {
|
|
81124
|
+
const parsed = safeParse4(request, (value) => CreateVirtualMachineActionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
81125
|
+
if (!parsed.ok) {
|
|
81126
|
+
return [parsed, { status: "invalid" }];
|
|
81127
|
+
}
|
|
81128
|
+
const payload = parsed.value;
|
|
81129
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
81130
|
+
const pathParams = {
|
|
81131
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
81132
|
+
};
|
|
81133
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/actions")(pathParams);
|
|
81134
|
+
const headers = new Headers(compactMap({
|
|
81135
|
+
"Content-Type": "application/json",
|
|
81136
|
+
Accept: "*/*"
|
|
81137
|
+
}));
|
|
81138
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
81139
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
81140
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
81141
|
+
const context = {
|
|
81142
|
+
options: client._options,
|
|
81143
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
81144
|
+
operationID: "create-virtual-machine-action",
|
|
81145
|
+
oAuth2Scopes: null,
|
|
81146
|
+
resolvedSecurity: requestSecurity,
|
|
81147
|
+
securitySource: client._options.bearer,
|
|
81148
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
81149
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
81150
|
+
};
|
|
81151
|
+
const requestRes = client._createRequest(context, {
|
|
81152
|
+
security: requestSecurity,
|
|
81153
|
+
method: "POST",
|
|
81154
|
+
baseURL: options?.serverURL,
|
|
81155
|
+
path,
|
|
81156
|
+
headers,
|
|
81157
|
+
body,
|
|
81158
|
+
userAgent: client._options.userAgent,
|
|
81159
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
81160
|
+
}, options);
|
|
81161
|
+
if (!requestRes.ok) {
|
|
81162
|
+
return [requestRes, { status: "invalid" }];
|
|
81163
|
+
}
|
|
81164
|
+
const req = requestRes.value;
|
|
81165
|
+
const doResult = await client._do(req, {
|
|
81166
|
+
context,
|
|
81167
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
81168
|
+
retryConfig: context.retryConfig,
|
|
81169
|
+
retryCodes: context.retryCodes
|
|
81170
|
+
});
|
|
81171
|
+
if (!doResult.ok) {
|
|
81172
|
+
return [doResult, { status: "request-error", request: req }];
|
|
81173
|
+
}
|
|
81174
|
+
const response = doResult.value;
|
|
81175
|
+
const [result] = await match(nil(201, voidType()), fail("4XX"), fail("5XX"))(response, req);
|
|
81176
|
+
if (!result.ok) {
|
|
81177
|
+
return [result, { status: "complete", request: req, response }];
|
|
81178
|
+
}
|
|
81179
|
+
return [result, { status: "complete", request: req, response }];
|
|
81180
|
+
}
|
|
81181
|
+
var init_virtualMachinesCreateVirtualMachineAction = __esm(() => {
|
|
81182
|
+
init_v3();
|
|
81183
|
+
init_encodings();
|
|
81184
|
+
init_http();
|
|
81185
|
+
init_matchers();
|
|
81186
|
+
init_primitives();
|
|
81187
|
+
init_schemas4();
|
|
81188
|
+
init_security();
|
|
81189
|
+
init_url();
|
|
81190
|
+
init_operations();
|
|
81191
|
+
init_async();
|
|
81192
|
+
});
|
|
81193
|
+
|
|
81194
|
+
// src/mcp-server/tools/virtualMachinesCreateVirtualMachineAction.ts
|
|
81195
|
+
var args123, tool$virtualMachinesCreateVirtualMachineAction;
|
|
81196
|
+
var init_virtualMachinesCreateVirtualMachineAction2 = __esm(() => {
|
|
81197
|
+
init_virtualMachinesCreateVirtualMachineAction();
|
|
81198
|
+
init_operations();
|
|
81199
|
+
init_tools();
|
|
81200
|
+
args123 = {
|
|
81201
|
+
request: CreateVirtualMachineActionRequest$inboundSchema
|
|
81202
|
+
};
|
|
81203
|
+
tool$virtualMachinesCreateVirtualMachineAction = {
|
|
81204
|
+
name: "virtual-machines-create-virtual-machine-action",
|
|
81205
|
+
description: `Run VM power action
|
|
81206
|
+
|
|
81207
|
+
Performs a power action on a given virtual machine:
|
|
81208
|
+
- \`power_on\` - Starts the virtual machine
|
|
81209
|
+
- \`power_off\` - Stops the virtual machine
|
|
81210
|
+
- \`reboot\` - Restarts the virtual machine
|
|
81211
|
+
`,
|
|
81212
|
+
args: args123,
|
|
81213
|
+
tool: async (client, args124, ctx) => {
|
|
81214
|
+
const [result, apiCall] = await virtualMachinesCreateVirtualMachineAction(client, args124.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
81215
|
+
if (!result.ok) {
|
|
81216
|
+
return {
|
|
81217
|
+
content: [{ type: "text", text: result.error.message }],
|
|
81218
|
+
isError: true
|
|
81219
|
+
};
|
|
81220
|
+
}
|
|
81221
|
+
return formatResult(undefined, apiCall);
|
|
81222
|
+
}
|
|
81223
|
+
};
|
|
81224
|
+
});
|
|
81225
|
+
|
|
81226
|
+
// src/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.ts
|
|
81227
|
+
function virtualMachinesCreateVirtualMachineNetworkAttachment(client, request, options) {
|
|
81228
|
+
return new APIPromise($do134(client, request, options));
|
|
81229
|
+
}
|
|
81230
|
+
async function $do134(client, request, options) {
|
|
81231
|
+
const parsed = safeParse4(request, (value) => CreateVirtualMachineNetworkAttachmentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
81232
|
+
if (!parsed.ok) {
|
|
81233
|
+
return [parsed, { status: "invalid" }];
|
|
81234
|
+
}
|
|
81235
|
+
const payload = parsed.value;
|
|
81236
|
+
const body = encodeJSON("body", payload.virtual_machine_network_attachment_create_payload, { explode: true });
|
|
81237
|
+
const pathParams = {
|
|
81238
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
81239
|
+
};
|
|
81240
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/network_attachments")(pathParams);
|
|
81241
|
+
const headers = new Headers(compactMap({
|
|
81242
|
+
"Content-Type": "application/json",
|
|
81243
|
+
Accept: "application/vnd.api+json"
|
|
81244
|
+
}));
|
|
81245
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
81246
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
81247
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
81248
|
+
const context = {
|
|
81249
|
+
options: client._options,
|
|
81250
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
81251
|
+
operationID: "create-virtual-machine-network-attachment",
|
|
81252
|
+
oAuth2Scopes: null,
|
|
81253
|
+
resolvedSecurity: requestSecurity,
|
|
81254
|
+
securitySource: client._options.bearer,
|
|
81255
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
81256
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
81257
|
+
};
|
|
81258
|
+
const requestRes = client._createRequest(context, {
|
|
81259
|
+
security: requestSecurity,
|
|
81260
|
+
method: "POST",
|
|
81261
|
+
baseURL: options?.serverURL,
|
|
81262
|
+
path,
|
|
81263
|
+
headers,
|
|
81264
|
+
body,
|
|
81265
|
+
userAgent: client._options.userAgent,
|
|
81266
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
81267
|
+
}, options);
|
|
81268
|
+
if (!requestRes.ok) {
|
|
81269
|
+
return [requestRes, { status: "invalid" }];
|
|
81270
|
+
}
|
|
81271
|
+
const req = requestRes.value;
|
|
81272
|
+
const doResult = await client._do(req, {
|
|
81273
|
+
context,
|
|
81274
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
81275
|
+
retryConfig: context.retryConfig,
|
|
81276
|
+
retryCodes: context.retryCodes
|
|
81277
|
+
});
|
|
81278
|
+
if (!doResult.ok) {
|
|
81279
|
+
return [doResult, { status: "request-error", request: req }];
|
|
81280
|
+
}
|
|
81281
|
+
const response = doResult.value;
|
|
81282
|
+
const [result] = await match(json(202, CreateVirtualMachineNetworkAttachmentResponse$inboundSchema, { ctype: "application/vnd.api+json" }), fail([403, 404, 422, "4XX"]), fail("5XX"))(response, req);
|
|
81283
|
+
if (!result.ok) {
|
|
81284
|
+
return [result, { status: "complete", request: req, response }];
|
|
81285
|
+
}
|
|
81286
|
+
return [result, { status: "complete", request: req, response }];
|
|
81287
|
+
}
|
|
81288
|
+
var init_virtualMachinesCreateVirtualMachineNetworkAttachment = __esm(() => {
|
|
81289
|
+
init_encodings();
|
|
81290
|
+
init_http();
|
|
81291
|
+
init_matchers();
|
|
81292
|
+
init_primitives();
|
|
81293
|
+
init_schemas4();
|
|
81294
|
+
init_security();
|
|
81295
|
+
init_url();
|
|
81296
|
+
init_operations();
|
|
81297
|
+
init_async();
|
|
81298
|
+
});
|
|
81299
|
+
|
|
81300
|
+
// src/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.ts
|
|
81301
|
+
var args124, tool$virtualMachinesCreateVirtualMachineNetworkAttachment;
|
|
81302
|
+
var init_virtualMachinesCreateVirtualMachineNetworkAttachment2 = __esm(() => {
|
|
81303
|
+
init_virtualMachinesCreateVirtualMachineNetworkAttachment();
|
|
81304
|
+
init_operations();
|
|
81305
|
+
init_tools();
|
|
81306
|
+
args124 = {
|
|
81307
|
+
request: CreateVirtualMachineNetworkAttachmentRequest$inboundSchema
|
|
81308
|
+
};
|
|
81309
|
+
tool$virtualMachinesCreateVirtualMachineNetworkAttachment = {
|
|
81310
|
+
name: "virtual-machines-create-virtual-machine-network-attachment",
|
|
81311
|
+
description: `Attach a network to a VM
|
|
81312
|
+
|
|
81313
|
+
Attaches a virtual network (VLAN) to a Virtual Machine. Work runs asynchronously and returns 202 Accepted.
|
|
81314
|
+
`,
|
|
81315
|
+
args: args124,
|
|
81316
|
+
tool: async (client, args125, ctx) => {
|
|
81317
|
+
const [result, apiCall] = await virtualMachinesCreateVirtualMachineNetworkAttachment(client, args125.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
81318
|
+
if (!result.ok) {
|
|
81319
|
+
return {
|
|
81320
|
+
content: [{ type: "text", text: result.error.message }],
|
|
81321
|
+
isError: true
|
|
81322
|
+
};
|
|
81323
|
+
}
|
|
81324
|
+
const value = result.value;
|
|
81325
|
+
return formatResult(value, apiCall);
|
|
81326
|
+
}
|
|
81327
|
+
};
|
|
81328
|
+
});
|
|
81329
|
+
|
|
81330
|
+
// src/funcs/virtualMachinesDelete.ts
|
|
81331
|
+
function virtualMachinesDelete(client, request, options) {
|
|
81332
|
+
return new APIPromise($do135(client, request, options));
|
|
81333
|
+
}
|
|
81334
|
+
async function $do135(client, request, options) {
|
|
81335
|
+
const parsed = safeParse4(request, (value) => DestroyVirtualMachineRequest$outboundSchema.parse(value), "Input validation failed");
|
|
81336
|
+
if (!parsed.ok) {
|
|
81337
|
+
return [parsed, { status: "invalid" }];
|
|
81338
|
+
}
|
|
81339
|
+
const payload = parsed.value;
|
|
81340
|
+
const body = null;
|
|
81341
|
+
const pathParams = {
|
|
81342
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
81343
|
+
};
|
|
81344
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}")(pathParams);
|
|
81345
|
+
const headers = new Headers(compactMap({
|
|
81346
|
+
Accept: "*/*"
|
|
81347
|
+
}));
|
|
81348
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
81349
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
81350
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
81351
|
+
const context = {
|
|
81352
|
+
options: client._options,
|
|
81353
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
81354
|
+
operationID: "destroy-virtual-machine",
|
|
79362
81355
|
oAuth2Scopes: null,
|
|
79363
81356
|
resolvedSecurity: requestSecurity,
|
|
79364
81357
|
securitySource: client._options.bearer,
|
|
@@ -79409,12 +81402,12 @@ var init_virtualMachinesDelete = __esm(() => {
|
|
|
79409
81402
|
});
|
|
79410
81403
|
|
|
79411
81404
|
// src/mcp-server/tools/virtualMachinesDelete.ts
|
|
79412
|
-
var
|
|
81405
|
+
var args125, tool$virtualMachinesDelete;
|
|
79413
81406
|
var init_virtualMachinesDelete2 = __esm(() => {
|
|
79414
81407
|
init_virtualMachinesDelete();
|
|
79415
81408
|
init_operations();
|
|
79416
81409
|
init_tools();
|
|
79417
|
-
|
|
81410
|
+
args125 = {
|
|
79418
81411
|
request: DestroyVirtualMachineRequest$inboundSchema
|
|
79419
81412
|
};
|
|
79420
81413
|
tool$virtualMachinesDelete = {
|
|
@@ -79423,9 +81416,9 @@ var init_virtualMachinesDelete2 = __esm(() => {
|
|
|
79423
81416
|
|
|
79424
81417
|
Destroys a Virtual Machine.
|
|
79425
81418
|
`,
|
|
79426
|
-
args:
|
|
79427
|
-
tool: async (client,
|
|
79428
|
-
const [result, apiCall] = await virtualMachinesDelete(client,
|
|
81419
|
+
args: args125,
|
|
81420
|
+
tool: async (client, args126, ctx) => {
|
|
81421
|
+
const [result, apiCall] = await virtualMachinesDelete(client, args126.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79429
81422
|
if (!result.ok) {
|
|
79430
81423
|
return {
|
|
79431
81424
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79439,9 +81432,9 @@ Destroys a Virtual Machine.
|
|
|
79439
81432
|
|
|
79440
81433
|
// src/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.ts
|
|
79441
81434
|
function virtualMachinesDestroyVirtualMachineNetworkAttachment(client, request, options) {
|
|
79442
|
-
return new APIPromise($
|
|
81435
|
+
return new APIPromise($do136(client, request, options));
|
|
79443
81436
|
}
|
|
79444
|
-
async function $
|
|
81437
|
+
async function $do136(client, request, options) {
|
|
79445
81438
|
const parsed = safeParse4(request, (value) => DestroyVirtualMachineNetworkAttachmentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79446
81439
|
if (!parsed.ok) {
|
|
79447
81440
|
return [parsed, { status: "invalid" }];
|
|
@@ -79515,12 +81508,12 @@ var init_virtualMachinesDestroyVirtualMachineNetworkAttachment = __esm(() => {
|
|
|
79515
81508
|
});
|
|
79516
81509
|
|
|
79517
81510
|
// src/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.ts
|
|
79518
|
-
var
|
|
81511
|
+
var args126, tool$virtualMachinesDestroyVirtualMachineNetworkAttachment;
|
|
79519
81512
|
var init_virtualMachinesDestroyVirtualMachineNetworkAttachment2 = __esm(() => {
|
|
79520
81513
|
init_virtualMachinesDestroyVirtualMachineNetworkAttachment();
|
|
79521
81514
|
init_operations();
|
|
79522
81515
|
init_tools();
|
|
79523
|
-
|
|
81516
|
+
args126 = {
|
|
79524
81517
|
request: DestroyVirtualMachineNetworkAttachmentRequest$inboundSchema
|
|
79525
81518
|
};
|
|
79526
81519
|
tool$virtualMachinesDestroyVirtualMachineNetworkAttachment = {
|
|
@@ -79529,9 +81522,9 @@ var init_virtualMachinesDestroyVirtualMachineNetworkAttachment2 = __esm(() => {
|
|
|
79529
81522
|
|
|
79530
81523
|
Detaches a virtual network (VLAN) from a Virtual Machine. Work runs asynchronously and returns 202 Accepted.
|
|
79531
81524
|
`,
|
|
79532
|
-
args:
|
|
79533
|
-
tool: async (client,
|
|
79534
|
-
const [result, apiCall] = await virtualMachinesDestroyVirtualMachineNetworkAttachment(client,
|
|
81525
|
+
args: args126,
|
|
81526
|
+
tool: async (client, args127, ctx) => {
|
|
81527
|
+
const [result, apiCall] = await virtualMachinesDestroyVirtualMachineNetworkAttachment(client, args127.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79535
81528
|
if (!result.ok) {
|
|
79536
81529
|
return {
|
|
79537
81530
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79546,9 +81539,9 @@ Detaches a virtual network (VLAN) from a Virtual Machine. Work runs asynchronous
|
|
|
79546
81539
|
|
|
79547
81540
|
// src/funcs/virtualMachinesGet.ts
|
|
79548
81541
|
function virtualMachinesGet(client, request, options) {
|
|
79549
|
-
return new APIPromise($
|
|
81542
|
+
return new APIPromise($do137(client, request, options));
|
|
79550
81543
|
}
|
|
79551
|
-
async function $
|
|
81544
|
+
async function $do137(client, request, options) {
|
|
79552
81545
|
const parsed = safeParse4(request, (value) => ShowVirtualMachineRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79553
81546
|
if (!parsed.ok) {
|
|
79554
81547
|
return [parsed, { status: "invalid" }];
|
|
@@ -79559,6 +81552,9 @@ async function $do124(client, request, options) {
|
|
|
79559
81552
|
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
79560
81553
|
};
|
|
79561
81554
|
const path = pathToFunc("/virtual_machines/{virtual_machine_id}")(pathParams);
|
|
81555
|
+
const query = encodeFormQuery({
|
|
81556
|
+
"extra_fields[virtual_machines]": payload["extra_fields[virtual_machines]"]
|
|
81557
|
+
});
|
|
79562
81558
|
const headers = new Headers(compactMap({
|
|
79563
81559
|
Accept: "application/vnd.api+json"
|
|
79564
81560
|
}));
|
|
@@ -79581,6 +81577,7 @@ async function $do124(client, request, options) {
|
|
|
79581
81577
|
baseURL: options?.serverURL,
|
|
79582
81578
|
path,
|
|
79583
81579
|
headers,
|
|
81580
|
+
query,
|
|
79584
81581
|
body,
|
|
79585
81582
|
userAgent: client._options.userAgent,
|
|
79586
81583
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -79621,12 +81618,12 @@ var init_virtualMachinesGet = __esm(() => {
|
|
|
79621
81618
|
});
|
|
79622
81619
|
|
|
79623
81620
|
// src/mcp-server/tools/virtualMachinesGet.ts
|
|
79624
|
-
var
|
|
81621
|
+
var args127, tool$virtualMachinesGet;
|
|
79625
81622
|
var init_virtualMachinesGet2 = __esm(() => {
|
|
79626
81623
|
init_virtualMachinesGet();
|
|
79627
81624
|
init_operations();
|
|
79628
81625
|
init_tools();
|
|
79629
|
-
|
|
81626
|
+
args127 = {
|
|
79630
81627
|
request: ShowVirtualMachineRequest$inboundSchema
|
|
79631
81628
|
};
|
|
79632
81629
|
tool$virtualMachinesGet = {
|
|
@@ -79635,9 +81632,9 @@ var init_virtualMachinesGet2 = __esm(() => {
|
|
|
79635
81632
|
|
|
79636
81633
|
Show a Virtual Machine.
|
|
79637
81634
|
`,
|
|
79638
|
-
args:
|
|
79639
|
-
tool: async (client,
|
|
79640
|
-
const [result, apiCall] = await virtualMachinesGet(client,
|
|
81635
|
+
args: args127,
|
|
81636
|
+
tool: async (client, args128, ctx) => {
|
|
81637
|
+
const [result, apiCall] = await virtualMachinesGet(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79641
81638
|
if (!result.ok) {
|
|
79642
81639
|
return {
|
|
79643
81640
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79652,9 +81649,9 @@ Show a Virtual Machine.
|
|
|
79652
81649
|
|
|
79653
81650
|
// src/funcs/virtualMachinesList.ts
|
|
79654
81651
|
function virtualMachinesList(client, request, options) {
|
|
79655
|
-
return new APIPromise($
|
|
81652
|
+
return new APIPromise($do138(client, request, options));
|
|
79656
81653
|
}
|
|
79657
|
-
async function $
|
|
81654
|
+
async function $do138(client, request, options) {
|
|
79658
81655
|
const parsed = safeParse4(request, (value) => IndexVirtualMachineRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
79659
81656
|
if (!parsed.ok) {
|
|
79660
81657
|
return [parsed, { status: "invalid" }];
|
|
@@ -79665,7 +81662,8 @@ async function $do125(client, request, options) {
|
|
|
79665
81662
|
const query = encodeFormQuery({
|
|
79666
81663
|
"extra_fields[virtual_machines]": payload?.["extra_fields[virtual_machines]"],
|
|
79667
81664
|
"filter[project]": payload?.["filter[project]"],
|
|
79668
|
-
"filter[tags]": payload?.["filter[tags]"]
|
|
81665
|
+
"filter[tags]": payload?.["filter[tags]"],
|
|
81666
|
+
sort: payload?.sort
|
|
79669
81667
|
});
|
|
79670
81668
|
const headers = new Headers(compactMap({
|
|
79671
81669
|
Accept: "application/vnd.api+json"
|
|
@@ -79708,9 +81706,14 @@ async function $do125(client, request, options) {
|
|
|
79708
81706
|
return [doResult, { status: "request-error", request: req }];
|
|
79709
81707
|
}
|
|
79710
81708
|
const response = doResult.value;
|
|
81709
|
+
const responseFields = {
|
|
81710
|
+
HttpMeta: { Response: response, Request: req }
|
|
81711
|
+
};
|
|
79711
81712
|
const [result] = await match(json(200, VirtualMachines$inboundSchema, {
|
|
79712
81713
|
ctype: "application/vnd.api+json"
|
|
79713
|
-
}),
|
|
81714
|
+
}), jsonErr(400, ErrorObject$inboundSchema, {
|
|
81715
|
+
ctype: "application/vnd.api+json"
|
|
81716
|
+
}), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
79714
81717
|
if (!result.ok) {
|
|
79715
81718
|
return [result, { status: "complete", request: req, response }];
|
|
79716
81719
|
}
|
|
@@ -79724,18 +81727,19 @@ var init_virtualMachinesList = __esm(() => {
|
|
|
79724
81727
|
init_schemas4();
|
|
79725
81728
|
init_security();
|
|
79726
81729
|
init_url();
|
|
81730
|
+
init_errors4();
|
|
79727
81731
|
init_models();
|
|
79728
81732
|
init_operations();
|
|
79729
81733
|
init_async();
|
|
79730
81734
|
});
|
|
79731
81735
|
|
|
79732
81736
|
// src/mcp-server/tools/virtualMachinesList.ts
|
|
79733
|
-
var
|
|
81737
|
+
var args128, tool$virtualMachinesList;
|
|
79734
81738
|
var init_virtualMachinesList2 = __esm(() => {
|
|
79735
81739
|
init_virtualMachinesList();
|
|
79736
81740
|
init_operations();
|
|
79737
81741
|
init_tools();
|
|
79738
|
-
|
|
81742
|
+
args128 = {
|
|
79739
81743
|
request: IndexVirtualMachineRequest$inboundSchema.optional()
|
|
79740
81744
|
};
|
|
79741
81745
|
tool$virtualMachinesList = {
|
|
@@ -79744,9 +81748,9 @@ var init_virtualMachinesList2 = __esm(() => {
|
|
|
79744
81748
|
|
|
79745
81749
|
Show all Team's Virtual Machines.
|
|
79746
81750
|
`,
|
|
79747
|
-
args:
|
|
79748
|
-
tool: async (client,
|
|
79749
|
-
const [result, apiCall] = await virtualMachinesList(client,
|
|
81751
|
+
args: args128,
|
|
81752
|
+
tool: async (client, args129, ctx) => {
|
|
81753
|
+
const [result, apiCall] = await virtualMachinesList(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79750
81754
|
if (!result.ok) {
|
|
79751
81755
|
return {
|
|
79752
81756
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79761,9 +81765,9 @@ Show all Team's Virtual Machines.
|
|
|
79761
81765
|
|
|
79762
81766
|
// src/funcs/virtualMachinesListVirtualMachineNetworkAttachments.ts
|
|
79763
81767
|
function virtualMachinesListVirtualMachineNetworkAttachments(client, request, options) {
|
|
79764
|
-
return new APIPromise($
|
|
81768
|
+
return new APIPromise($do139(client, request, options));
|
|
79765
81769
|
}
|
|
79766
|
-
async function $
|
|
81770
|
+
async function $do139(client, request, options) {
|
|
79767
81771
|
const parsed = safeParse4(request, (value) => ListVirtualMachineNetworkAttachmentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79768
81772
|
if (!parsed.ok) {
|
|
79769
81773
|
return [parsed, { status: "invalid" }];
|
|
@@ -79836,12 +81840,12 @@ var init_virtualMachinesListVirtualMachineNetworkAttachments = __esm(() => {
|
|
|
79836
81840
|
});
|
|
79837
81841
|
|
|
79838
81842
|
// src/mcp-server/tools/virtualMachinesListVirtualMachineNetworkAttachments.ts
|
|
79839
|
-
var
|
|
81843
|
+
var args129, tool$virtualMachinesListVirtualMachineNetworkAttachments;
|
|
79840
81844
|
var init_virtualMachinesListVirtualMachineNetworkAttachments2 = __esm(() => {
|
|
79841
81845
|
init_virtualMachinesListVirtualMachineNetworkAttachments();
|
|
79842
81846
|
init_operations();
|
|
79843
81847
|
init_tools();
|
|
79844
|
-
|
|
81848
|
+
args129 = {
|
|
79845
81849
|
request: ListVirtualMachineNetworkAttachmentsRequest$inboundSchema
|
|
79846
81850
|
};
|
|
79847
81851
|
tool$virtualMachinesListVirtualMachineNetworkAttachments = {
|
|
@@ -79850,9 +81854,9 @@ var init_virtualMachinesListVirtualMachineNetworkAttachments2 = __esm(() => {
|
|
|
79850
81854
|
|
|
79851
81855
|
Lists the secondary network attachments currently configured for a Virtual Machine.
|
|
79852
81856
|
`,
|
|
79853
|
-
args:
|
|
79854
|
-
tool: async (client,
|
|
79855
|
-
const [result, apiCall] = await virtualMachinesListVirtualMachineNetworkAttachments(client,
|
|
81857
|
+
args: args129,
|
|
81858
|
+
tool: async (client, args130, ctx) => {
|
|
81859
|
+
const [result, apiCall] = await virtualMachinesListVirtualMachineNetworkAttachments(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79856
81860
|
if (!result.ok) {
|
|
79857
81861
|
return {
|
|
79858
81862
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79867,9 +81871,9 @@ Lists the secondary network attachments currently configured for a Virtual Machi
|
|
|
79867
81871
|
|
|
79868
81872
|
// src/funcs/virtualMachinesShowVirtualMachineMetrics.ts
|
|
79869
81873
|
function virtualMachinesShowVirtualMachineMetrics(client, request, options) {
|
|
79870
|
-
return new APIPromise($
|
|
81874
|
+
return new APIPromise($do140(client, request, options));
|
|
79871
81875
|
}
|
|
79872
|
-
async function $
|
|
81876
|
+
async function $do140(client, request, options) {
|
|
79873
81877
|
const parsed = safeParse4(request, (value) => ShowVirtualMachineMetricsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79874
81878
|
if (!parsed.ok) {
|
|
79875
81879
|
return [parsed, { status: "invalid" }];
|
|
@@ -79948,12 +81952,12 @@ var init_virtualMachinesShowVirtualMachineMetrics = __esm(() => {
|
|
|
79948
81952
|
});
|
|
79949
81953
|
|
|
79950
81954
|
// src/mcp-server/tools/virtualMachinesShowVirtualMachineMetrics.ts
|
|
79951
|
-
var
|
|
81955
|
+
var args130, tool$virtualMachinesShowVirtualMachineMetrics;
|
|
79952
81956
|
var init_virtualMachinesShowVirtualMachineMetrics2 = __esm(() => {
|
|
79953
81957
|
init_virtualMachinesShowVirtualMachineMetrics();
|
|
79954
81958
|
init_operations();
|
|
79955
81959
|
init_tools();
|
|
79956
|
-
|
|
81960
|
+
args130 = {
|
|
79957
81961
|
request: ShowVirtualMachineMetricsRequest$inboundSchema
|
|
79958
81962
|
};
|
|
79959
81963
|
tool$virtualMachinesShowVirtualMachineMetrics = {
|
|
@@ -79961,9 +81965,9 @@ var init_virtualMachinesShowVirtualMachineMetrics2 = __esm(() => {
|
|
|
79961
81965
|
description: `Retrieve VM metrics
|
|
79962
81966
|
|
|
79963
81967
|
Retrieve a time series for a single metric of a Virtual Machine.`,
|
|
79964
|
-
args:
|
|
79965
|
-
tool: async (client,
|
|
79966
|
-
const [result, apiCall] = await virtualMachinesShowVirtualMachineMetrics(client,
|
|
81968
|
+
args: args130,
|
|
81969
|
+
tool: async (client, args131, ctx) => {
|
|
81970
|
+
const [result, apiCall] = await virtualMachinesShowVirtualMachineMetrics(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79967
81971
|
if (!result.ok) {
|
|
79968
81972
|
return {
|
|
79969
81973
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79978,9 +81982,9 @@ Retrieve a time series for a single metric of a Virtual Machine.`,
|
|
|
79978
81982
|
|
|
79979
81983
|
// src/funcs/virtualMachinesUpdateVirtualMachine.ts
|
|
79980
81984
|
function virtualMachinesUpdateVirtualMachine(client, request, options) {
|
|
79981
|
-
return new APIPromise($
|
|
81985
|
+
return new APIPromise($do141(client, request, options));
|
|
79982
81986
|
}
|
|
79983
|
-
async function $
|
|
81987
|
+
async function $do141(client, request, options) {
|
|
79984
81988
|
const parsed = safeParse4(request, (value) => UpdateVirtualMachineRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79985
81989
|
if (!parsed.ok) {
|
|
79986
81990
|
return [parsed, { status: "invalid" }];
|
|
@@ -80034,9 +82038,9 @@ async function $do128(client, request, options) {
|
|
|
80034
82038
|
return [doResult, { status: "request-error", request: req }];
|
|
80035
82039
|
}
|
|
80036
82040
|
const response = doResult.value;
|
|
80037
|
-
const [result] = await match(json(200, VirtualMachine$inboundSchema, {
|
|
82041
|
+
const [result] = await match(json([200, 202], VirtualMachine$inboundSchema, {
|
|
80038
82042
|
ctype: "application/vnd.api+json"
|
|
80039
|
-
}), fail([404, 422, "4XX"]), fail("5XX"))(response, req);
|
|
82043
|
+
}), fail([404, 409, 422, "4XX"]), fail("5XX"))(response, req);
|
|
80040
82044
|
if (!result.ok) {
|
|
80041
82045
|
return [result, { status: "complete", request: req, response }];
|
|
80042
82046
|
}
|
|
@@ -80056,12 +82060,12 @@ var init_virtualMachinesUpdateVirtualMachine = __esm(() => {
|
|
|
80056
82060
|
});
|
|
80057
82061
|
|
|
80058
82062
|
// src/mcp-server/tools/virtualMachinesUpdateVirtualMachine.ts
|
|
80059
|
-
var
|
|
82063
|
+
var args131, tool$virtualMachinesUpdateVirtualMachine;
|
|
80060
82064
|
var init_virtualMachinesUpdateVirtualMachine2 = __esm(() => {
|
|
80061
82065
|
init_virtualMachinesUpdateVirtualMachine();
|
|
80062
82066
|
init_operations();
|
|
80063
82067
|
init_tools();
|
|
80064
|
-
|
|
82068
|
+
args131 = {
|
|
80065
82069
|
request: UpdateVirtualMachineRequest$inboundSchema
|
|
80066
82070
|
};
|
|
80067
82071
|
tool$virtualMachinesUpdateVirtualMachine = {
|
|
@@ -80070,9 +82074,9 @@ var init_virtualMachinesUpdateVirtualMachine2 = __esm(() => {
|
|
|
80070
82074
|
|
|
80071
82075
|
Updates a Virtual Machine's display name (hostname).
|
|
80072
82076
|
`,
|
|
80073
|
-
args:
|
|
80074
|
-
tool: async (client,
|
|
80075
|
-
const [result, apiCall] = await virtualMachinesUpdateVirtualMachine(client,
|
|
82077
|
+
args: args131,
|
|
82078
|
+
tool: async (client, args132, ctx) => {
|
|
82079
|
+
const [result, apiCall] = await virtualMachinesUpdateVirtualMachine(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80076
82080
|
if (!result.ok) {
|
|
80077
82081
|
return {
|
|
80078
82082
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80087,9 +82091,9 @@ Updates a Virtual Machine's display name (hostname).
|
|
|
80087
82091
|
|
|
80088
82092
|
// src/funcs/virtualNetworksDelete.ts
|
|
80089
82093
|
function virtualNetworksDelete(client, request, options) {
|
|
80090
|
-
return new APIPromise($
|
|
82094
|
+
return new APIPromise($do142(client, request, options));
|
|
80091
82095
|
}
|
|
80092
|
-
async function $
|
|
82096
|
+
async function $do142(client, request, options) {
|
|
80093
82097
|
const parsed = safeParse4(request, (value) => DestroyVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80094
82098
|
if (!parsed.ok) {
|
|
80095
82099
|
return [parsed, { status: "invalid" }];
|
|
@@ -80163,12 +82167,12 @@ var init_virtualNetworksDelete = __esm(() => {
|
|
|
80163
82167
|
});
|
|
80164
82168
|
|
|
80165
82169
|
// src/mcp-server/tools/virtualNetworksDelete.ts
|
|
80166
|
-
var
|
|
82170
|
+
var args132, tool$virtualNetworksDelete;
|
|
80167
82171
|
var init_virtualNetworksDelete2 = __esm(() => {
|
|
80168
82172
|
init_virtualNetworksDelete();
|
|
80169
82173
|
init_operations();
|
|
80170
82174
|
init_tools();
|
|
80171
|
-
|
|
82175
|
+
args132 = {
|
|
80172
82176
|
request: DestroyVirtualNetworkRequest$inboundSchema
|
|
80173
82177
|
};
|
|
80174
82178
|
tool$virtualNetworksDelete = {
|
|
@@ -80177,9 +82181,9 @@ var init_virtualNetworksDelete2 = __esm(() => {
|
|
|
80177
82181
|
|
|
80178
82182
|
Delete virtual network
|
|
80179
82183
|
`,
|
|
80180
|
-
args:
|
|
80181
|
-
tool: async (client,
|
|
80182
|
-
const [result, apiCall] = await virtualNetworksDelete(client,
|
|
82184
|
+
args: args132,
|
|
82185
|
+
tool: async (client, args133, ctx) => {
|
|
82186
|
+
const [result, apiCall] = await virtualNetworksDelete(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80183
82187
|
if (!result.ok) {
|
|
80184
82188
|
return {
|
|
80185
82189
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80193,9 +82197,9 @@ Delete virtual network
|
|
|
80193
82197
|
|
|
80194
82198
|
// src/funcs/vpnSessionsCreate.ts
|
|
80195
82199
|
function vpnSessionsCreate(client, request, options) {
|
|
80196
|
-
return new APIPromise($
|
|
82200
|
+
return new APIPromise($do143(client, request, options));
|
|
80197
82201
|
}
|
|
80198
|
-
async function $
|
|
82202
|
+
async function $do143(client, request, options) {
|
|
80199
82203
|
const parsed = safeParse4(request, (value) => PostVpnSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80200
82204
|
if (!parsed.ok) {
|
|
80201
82205
|
return [parsed, { status: "invalid" }];
|
|
@@ -80266,12 +82270,12 @@ var init_vpnSessionsCreate = __esm(() => {
|
|
|
80266
82270
|
});
|
|
80267
82271
|
|
|
80268
82272
|
// src/mcp-server/tools/vpnSessionsCreate.ts
|
|
80269
|
-
var
|
|
82273
|
+
var args133, tool$vpnSessionsCreate;
|
|
80270
82274
|
var init_vpnSessionsCreate2 = __esm(() => {
|
|
80271
82275
|
init_vpnSessionsCreate();
|
|
80272
82276
|
init_operations();
|
|
80273
82277
|
init_tools();
|
|
80274
|
-
|
|
82278
|
+
args133 = {
|
|
80275
82279
|
request: PostVpnSessionRequest$inboundSchema
|
|
80276
82280
|
};
|
|
80277
82281
|
tool$vpnSessionsCreate = {
|
|
@@ -80281,9 +82285,9 @@ var init_vpnSessionsCreate2 = __esm(() => {
|
|
|
80281
82285
|
Creates a new VPN Session.
|
|
80282
82286
|
\`NOTE:\` The VPN credentials are only listed ONCE upon creation. They can however be refreshed or deleted.
|
|
80283
82287
|
`,
|
|
80284
|
-
args:
|
|
80285
|
-
tool: async (client,
|
|
80286
|
-
const [result, apiCall] = await vpnSessionsCreate(client,
|
|
82288
|
+
args: args133,
|
|
82289
|
+
tool: async (client, args134, ctx) => {
|
|
82290
|
+
const [result, apiCall] = await vpnSessionsCreate(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80287
82291
|
if (!result.ok) {
|
|
80288
82292
|
return {
|
|
80289
82293
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80298,9 +82302,9 @@ Creates a new VPN Session.
|
|
|
80298
82302
|
|
|
80299
82303
|
// src/funcs/vpnSessionsDelete.ts
|
|
80300
82304
|
function vpnSessionsDelete(client, request, options) {
|
|
80301
|
-
return new APIPromise($
|
|
82305
|
+
return new APIPromise($do144(client, request, options));
|
|
80302
82306
|
}
|
|
80303
|
-
async function $
|
|
82307
|
+
async function $do144(client, request, options) {
|
|
80304
82308
|
const parsed = safeParse4(request, (value) => DeleteVpnSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80305
82309
|
if (!parsed.ok) {
|
|
80306
82310
|
return [parsed, { status: "invalid" }];
|
|
@@ -80374,12 +82378,12 @@ var init_vpnSessionsDelete = __esm(() => {
|
|
|
80374
82378
|
});
|
|
80375
82379
|
|
|
80376
82380
|
// src/mcp-server/tools/vpnSessionsDelete.ts
|
|
80377
|
-
var
|
|
82381
|
+
var args134, tool$vpnSessionsDelete;
|
|
80378
82382
|
var init_vpnSessionsDelete2 = __esm(() => {
|
|
80379
82383
|
init_vpnSessionsDelete();
|
|
80380
82384
|
init_operations();
|
|
80381
82385
|
init_tools();
|
|
80382
|
-
|
|
82386
|
+
args134 = {
|
|
80383
82387
|
request: DeleteVpnSessionRequest$inboundSchema
|
|
80384
82388
|
};
|
|
80385
82389
|
tool$vpnSessionsDelete = {
|
|
@@ -80388,9 +82392,9 @@ var init_vpnSessionsDelete2 = __esm(() => {
|
|
|
80388
82392
|
|
|
80389
82393
|
Deletes an existing VPN Session.
|
|
80390
82394
|
`,
|
|
80391
|
-
args:
|
|
80392
|
-
tool: async (client,
|
|
80393
|
-
const [result, apiCall] = await vpnSessionsDelete(client,
|
|
82395
|
+
args: args134,
|
|
82396
|
+
tool: async (client, args135, ctx) => {
|
|
82397
|
+
const [result, apiCall] = await vpnSessionsDelete(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80394
82398
|
if (!result.ok) {
|
|
80395
82399
|
return {
|
|
80396
82400
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80404,9 +82408,9 @@ Deletes an existing VPN Session.
|
|
|
80404
82408
|
|
|
80405
82409
|
// src/funcs/vpnSessionsList.ts
|
|
80406
82410
|
function vpnSessionsList(client, request, options) {
|
|
80407
|
-
return new APIPromise($
|
|
82411
|
+
return new APIPromise($do145(client, request, options));
|
|
80408
82412
|
}
|
|
80409
|
-
async function $
|
|
82413
|
+
async function $do145(client, request, options) {
|
|
80410
82414
|
const parsed = safeParse4(request, (value) => GetVpnSessionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
80411
82415
|
if (!parsed.ok) {
|
|
80412
82416
|
return [parsed, { status: "invalid" }];
|
|
@@ -80479,20 +82483,20 @@ var init_vpnSessionsList = __esm(() => {
|
|
|
80479
82483
|
});
|
|
80480
82484
|
|
|
80481
82485
|
// src/mcp-server/tools/vpnSessionsList.ts
|
|
80482
|
-
var
|
|
82486
|
+
var args135, tool$vpnSessionsList;
|
|
80483
82487
|
var init_vpnSessionsList2 = __esm(() => {
|
|
80484
82488
|
init_vpnSessionsList();
|
|
80485
82489
|
init_operations();
|
|
80486
82490
|
init_tools();
|
|
80487
|
-
|
|
82491
|
+
args135 = {
|
|
80488
82492
|
request: GetVpnSessionsRequest$inboundSchema.optional()
|
|
80489
82493
|
};
|
|
80490
82494
|
tool$vpnSessionsList = {
|
|
80491
82495
|
name: "vpn-sessions-list",
|
|
80492
82496
|
description: `List VPN sessions`,
|
|
80493
|
-
args:
|
|
80494
|
-
tool: async (client,
|
|
80495
|
-
const [result, apiCall] = await vpnSessionsList(client,
|
|
82497
|
+
args: args135,
|
|
82498
|
+
tool: async (client, args136, ctx) => {
|
|
82499
|
+
const [result, apiCall] = await vpnSessionsList(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80496
82500
|
if (!result.ok) {
|
|
80497
82501
|
return {
|
|
80498
82502
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80507,9 +82511,9 @@ var init_vpnSessionsList2 = __esm(() => {
|
|
|
80507
82511
|
|
|
80508
82512
|
// src/funcs/vpnSessionsRefreshPassword.ts
|
|
80509
82513
|
function vpnSessionsRefreshPassword(client, request, options) {
|
|
80510
|
-
return new APIPromise($
|
|
82514
|
+
return new APIPromise($do146(client, request, options));
|
|
80511
82515
|
}
|
|
80512
|
-
async function $
|
|
82516
|
+
async function $do146(client, request, options) {
|
|
80513
82517
|
const parsed = safeParse4(request, (value) => PutVpnSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80514
82518
|
if (!parsed.ok) {
|
|
80515
82519
|
return [parsed, { status: "invalid" }];
|
|
@@ -80585,12 +82589,12 @@ var init_vpnSessionsRefreshPassword = __esm(() => {
|
|
|
80585
82589
|
});
|
|
80586
82590
|
|
|
80587
82591
|
// src/mcp-server/tools/vpnSessionsRefreshPassword.ts
|
|
80588
|
-
var
|
|
82592
|
+
var args136, tool$vpnSessionsRefreshPassword;
|
|
80589
82593
|
var init_vpnSessionsRefreshPassword2 = __esm(() => {
|
|
80590
82594
|
init_vpnSessionsRefreshPassword();
|
|
80591
82595
|
init_operations();
|
|
80592
82596
|
init_tools();
|
|
80593
|
-
|
|
82597
|
+
args136 = {
|
|
80594
82598
|
request: PutVpnSessionRequest$inboundSchema
|
|
80595
82599
|
};
|
|
80596
82600
|
tool$vpnSessionsRefreshPassword = {
|
|
@@ -80599,9 +82603,9 @@ var init_vpnSessionsRefreshPassword2 = __esm(() => {
|
|
|
80599
82603
|
|
|
80600
82604
|
Refreshing an existing VPN Session will create new credentials for that session
|
|
80601
82605
|
`,
|
|
80602
|
-
args:
|
|
80603
|
-
tool: async (client,
|
|
80604
|
-
const [result, apiCall] = await vpnSessionsRefreshPassword(client,
|
|
82606
|
+
args: args136,
|
|
82607
|
+
tool: async (client, args137, ctx) => {
|
|
82608
|
+
const [result, apiCall] = await vpnSessionsRefreshPassword(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80605
82609
|
if (!result.ok) {
|
|
80606
82610
|
return {
|
|
80607
82611
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80618,7 +82622,7 @@ Refreshing an existing VPN Session will create new credentials for that session
|
|
|
80618
82622
|
function createMCPServer(deps) {
|
|
80619
82623
|
const server2 = new McpServer({
|
|
80620
82624
|
name: "Latitudesh",
|
|
80621
|
-
version: "0.
|
|
82625
|
+
version: "0.7.1"
|
|
80622
82626
|
});
|
|
80623
82627
|
const client = new LatitudeshCore({
|
|
80624
82628
|
bearer: deps.bearer,
|
|
@@ -80673,6 +82677,7 @@ function createMCPServer(deps) {
|
|
|
80673
82677
|
tool(tool$plansGetBandwidth);
|
|
80674
82678
|
tool(tool$plansUpdateBandwidth);
|
|
80675
82679
|
tool(tool$plansListStorage);
|
|
82680
|
+
tool(tool$plansGetManagedDatabasePlans);
|
|
80676
82681
|
tool(tool$projectsList);
|
|
80677
82682
|
tool(tool$projectsCreate);
|
|
80678
82683
|
tool(tool$projectsUpdate);
|
|
@@ -80750,6 +82755,18 @@ function createMCPServer(deps) {
|
|
|
80750
82755
|
tool(tool$virtualMachinesListVirtualMachineNetworkAttachments);
|
|
80751
82756
|
tool(tool$virtualMachinesCreateVirtualMachineNetworkAttachment);
|
|
80752
82757
|
tool(tool$virtualMachinesDestroyVirtualMachineNetworkAttachment);
|
|
82758
|
+
tool(tool$virtualMachineBackupsListForVirtualMachine);
|
|
82759
|
+
tool(tool$virtualMachineBackupsCreateForVirtualMachine);
|
|
82760
|
+
tool(tool$virtualMachineBackupsList);
|
|
82761
|
+
tool(tool$virtualMachineBackupsCreate);
|
|
82762
|
+
tool(tool$virtualMachineBackupsGet);
|
|
82763
|
+
tool(tool$virtualMachineBackupsDelete);
|
|
82764
|
+
tool(tool$virtualMachineRestoresListForVirtualMachineBackup);
|
|
82765
|
+
tool(tool$virtualMachineRestoresCreateForVirtualMachineBackup);
|
|
82766
|
+
tool(tool$virtualMachineRestoresListForBackup);
|
|
82767
|
+
tool(tool$virtualMachineRestoresList);
|
|
82768
|
+
tool(tool$virtualMachineRestoresCreate);
|
|
82769
|
+
tool(tool$virtualMachineRestoresGet);
|
|
80753
82770
|
tool(tool$privateNetworksList);
|
|
80754
82771
|
tool(tool$privateNetworksCreate);
|
|
80755
82772
|
tool(tool$privateNetworksUpdate);
|
|
@@ -80819,6 +82836,7 @@ var init_server4 = __esm(() => {
|
|
|
80819
82836
|
init_operatingSystemsListPlans2();
|
|
80820
82837
|
init_plansGet2();
|
|
80821
82838
|
init_plansGetBandwidth2();
|
|
82839
|
+
init_plansGetManagedDatabasePlans2();
|
|
80822
82840
|
init_plansList2();
|
|
80823
82841
|
init_plansListStorage2();
|
|
80824
82842
|
init_plansUpdateBandwidth2();
|
|
@@ -80891,6 +82909,18 @@ var init_server4 = __esm(() => {
|
|
|
80891
82909
|
init_userProfileGet2();
|
|
80892
82910
|
init_userProfileListTeams2();
|
|
80893
82911
|
init_userProfileUpdate2();
|
|
82912
|
+
init_virtualMachineBackupsCreate2();
|
|
82913
|
+
init_virtualMachineBackupsCreateForVirtualMachine2();
|
|
82914
|
+
init_virtualMachineBackupsDelete2();
|
|
82915
|
+
init_virtualMachineBackupsGet2();
|
|
82916
|
+
init_virtualMachineBackupsList2();
|
|
82917
|
+
init_virtualMachineBackupsListForVirtualMachine2();
|
|
82918
|
+
init_virtualMachineRestoresCreate2();
|
|
82919
|
+
init_virtualMachineRestoresCreateForVirtualMachineBackup2();
|
|
82920
|
+
init_virtualMachineRestoresGet2();
|
|
82921
|
+
init_virtualMachineRestoresList2();
|
|
82922
|
+
init_virtualMachineRestoresListForBackup2();
|
|
82923
|
+
init_virtualMachineRestoresListForVirtualMachineBackup2();
|
|
80894
82924
|
init_virtualMachinesCreate2();
|
|
80895
82925
|
init_virtualMachinesCreateVirtualMachineAction2();
|
|
80896
82926
|
init_virtualMachinesCreateVirtualMachineNetworkAttachment2();
|
|
@@ -82109,7 +84139,7 @@ var routes = ln({
|
|
|
82109
84139
|
var app = _e(routes, {
|
|
82110
84140
|
name: "mcp",
|
|
82111
84141
|
versionInfo: {
|
|
82112
|
-
currentVersion: "0.
|
|
84142
|
+
currentVersion: "0.7.1"
|
|
82113
84143
|
}
|
|
82114
84144
|
});
|
|
82115
84145
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -82117,5 +84147,5 @@ export {
|
|
|
82117
84147
|
app
|
|
82118
84148
|
};
|
|
82119
84149
|
|
|
82120
|
-
//# debugId=
|
|
84150
|
+
//# debugId=FB3BFAE6E22565CC64756E2164756E21
|
|
82121
84151
|
//# sourceMappingURL=mcp-server.js.map
|